configure revision 33177f591a46e2a476fe8ab49f7055532b48fd40
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.60 for LLVM 3.1svn.
4#
5# Report bugs to <http://llvm.org/bugs/>.
6#
7# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8# 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
9# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
11#
12# Copyright (c) 2003-2012 University of Illinois at Urbana-Champaign.
13## --------------------- ##
14## M4sh Initialization.  ##
15## --------------------- ##
16
17# Be Bourne compatible
18if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
19  emulate sh
20  NULLCMD=:
21  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22  # is contrary to our usage.  Disable this feature.
23  alias -g '${1+"$@"}'='"$@"'
24  setopt NO_GLOB_SUBST
25else
26  case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
27fi
28BIN_SH=xpg4; export BIN_SH # for Tru64
29DUALCASE=1; export DUALCASE # for MKS sh
30
31
32# PATH needs CR
33# Avoid depending upon Character Ranges.
34as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37as_cr_digits='0123456789'
38as_cr_alnum=$as_cr_Letters$as_cr_digits
39
40# The user is always right.
41if test "${PATH_SEPARATOR+set}" != set; then
42  echo "#! /bin/sh" >conf$$.sh
43  echo  "exit 0"   >>conf$$.sh
44  chmod +x conf$$.sh
45  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
46    PATH_SEPARATOR=';'
47  else
48    PATH_SEPARATOR=:
49  fi
50  rm -f conf$$.sh
51fi
52
53# Support unset when possible.
54if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
55  as_unset=unset
56else
57  as_unset=false
58fi
59
60
61# IFS
62# We need space, tab and new line, in precisely that order.  Quoting is
63# there to prevent editors from complaining about space-tab.
64# (If _AS_PATH_WALK were called with IFS unset, it would disable word
65# splitting by setting IFS to empty value.)
66as_nl='
67'
68IFS=" ""	$as_nl"
69
70# Find who we are.  Look in the path if we contain no directory separator.
71case $0 in
72  *[\\/]* ) as_myself=$0 ;;
73  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
74for as_dir in $PATH
75do
76  IFS=$as_save_IFS
77  test -z "$as_dir" && as_dir=.
78  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
79done
80IFS=$as_save_IFS
81
82     ;;
83esac
84# We did not find ourselves, most probably we were run as `sh COMMAND'
85# in which case we are not to be found in the path.
86if test "x$as_myself" = x; then
87  as_myself=$0
88fi
89if test ! -f "$as_myself"; then
90  echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
91  { (exit 1); exit 1; }
92fi
93
94# Work around bugs in pre-3.0 UWIN ksh.
95for as_var in ENV MAIL MAILPATH
96do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
97done
98PS1='$ '
99PS2='> '
100PS4='+ '
101
102# NLS nuisances.
103for as_var in \
104  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
106  LC_TELEPHONE LC_TIME
107do
108  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109    eval $as_var=C; export $as_var
110  else
111    ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
112  fi
113done
114
115# Required to use basename.
116if expr a : '\(a\)' >/dev/null 2>&1 &&
117   test "X`expr 00001 : '.*\(...\)'`" = X001; then
118  as_expr=expr
119else
120  as_expr=false
121fi
122
123if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
124  as_basename=basename
125else
126  as_basename=false
127fi
128
129
130# Name of the executable.
131as_me=`$as_basename -- "$0" ||
132$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133	 X"$0" : 'X\(//\)$' \| \
134	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
135echo X/"$0" |
136    sed '/^.*\/\([^/][^/]*\)\/*$/{
137	    s//\1/
138	    q
139	  }
140	  /^X\/\(\/\/\)$/{
141	    s//\1/
142	    q
143	  }
144	  /^X\/\(\/\).*/{
145	    s//\1/
146	    q
147	  }
148	  s/.*/./; q'`
149
150# CDPATH.
151$as_unset CDPATH
152
153
154if test "x$CONFIG_SHELL" = x; then
155  if (eval ":") 2>/dev/null; then
156  as_have_required=yes
157else
158  as_have_required=no
159fi
160
161  if test $as_have_required = yes && 	 (eval ":
162(as_func_return () {
163  (exit \$1)
164}
165as_func_success () {
166  as_func_return 0
167}
168as_func_failure () {
169  as_func_return 1
170}
171as_func_ret_success () {
172  return 0
173}
174as_func_ret_failure () {
175  return 1
176}
177
178exitcode=0
179if as_func_success; then
180  :
181else
182  exitcode=1
183  echo as_func_success failed.
184fi
185
186if as_func_failure; then
187  exitcode=1
188  echo as_func_failure succeeded.
189fi
190
191if as_func_ret_success; then
192  :
193else
194  exitcode=1
195  echo as_func_ret_success failed.
196fi
197
198if as_func_ret_failure; then
199  exitcode=1
200  echo as_func_ret_failure succeeded.
201fi
202
203if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
204  :
205else
206  exitcode=1
207  echo positional parameters were not saved.
208fi
209
210test \$exitcode = 0) || { (exit 1); exit 1; }
211
212(
213  as_lineno_1=\$LINENO
214  as_lineno_2=\$LINENO
215  test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216  test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217") 2> /dev/null; then
218  :
219else
220  as_candidate_shells=
221    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222for as_dir in /usr/bin/posix$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
223do
224  IFS=$as_save_IFS
225  test -z "$as_dir" && as_dir=.
226  case $as_dir in
227	 /*)
228	   for as_base in sh bash ksh sh5; do
229	     as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
230	   done;;
231       esac
232done
233IFS=$as_save_IFS
234
235
236      for as_shell in $as_candidate_shells $SHELL; do
237	 # Try only shells that exist, to save several forks.
238	 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239		{ ("$as_shell") 2> /dev/null <<\_ASEOF
240# Be Bourne compatible
241if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
242  emulate sh
243  NULLCMD=:
244  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
245  # is contrary to our usage.  Disable this feature.
246  alias -g '${1+"$@"}'='"$@"'
247  setopt NO_GLOB_SUBST
248else
249  case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
250fi
251BIN_SH=xpg4; export BIN_SH # for Tru64
252DUALCASE=1; export DUALCASE # for MKS sh
253
254:
255_ASEOF
256}; then
257  CONFIG_SHELL=$as_shell
258	       as_have_required=yes
259	       if { "$as_shell" 2> /dev/null <<\_ASEOF
260# Be Bourne compatible
261if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262  emulate sh
263  NULLCMD=:
264  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265  # is contrary to our usage.  Disable this feature.
266  alias -g '${1+"$@"}'='"$@"'
267  setopt NO_GLOB_SUBST
268else
269  case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
270fi
271BIN_SH=xpg4; export BIN_SH # for Tru64
272DUALCASE=1; export DUALCASE # for MKS sh
273
274:
275(as_func_return () {
276  (exit $1)
277}
278as_func_success () {
279  as_func_return 0
280}
281as_func_failure () {
282  as_func_return 1
283}
284as_func_ret_success () {
285  return 0
286}
287as_func_ret_failure () {
288  return 1
289}
290
291exitcode=0
292if as_func_success; then
293  :
294else
295  exitcode=1
296  echo as_func_success failed.
297fi
298
299if as_func_failure; then
300  exitcode=1
301  echo as_func_failure succeeded.
302fi
303
304if as_func_ret_success; then
305  :
306else
307  exitcode=1
308  echo as_func_ret_success failed.
309fi
310
311if as_func_ret_failure; then
312  exitcode=1
313  echo as_func_ret_failure succeeded.
314fi
315
316if ( set x; as_func_ret_success y && test x = "$1" ); then
317  :
318else
319  exitcode=1
320  echo positional parameters were not saved.
321fi
322
323test $exitcode = 0) || { (exit 1); exit 1; }
324
325(
326  as_lineno_1=$LINENO
327  as_lineno_2=$LINENO
328  test "x$as_lineno_1" != "x$as_lineno_2" &&
329  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
330
331_ASEOF
332}; then
333  break
334fi
335
336fi
337
338      done
339
340      if test "x$CONFIG_SHELL" != x; then
341  for as_var in BASH_ENV ENV
342        do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
343        done
344        export CONFIG_SHELL
345        exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
346fi
347
348
349    if test $as_have_required = no; then
350  echo This script requires a shell more modern than all the
351      echo shells that I found on your system.  Please install a
352      echo modern shell, or manually run the script under such a
353      echo shell if you do have one.
354      { (exit 1); exit 1; }
355fi
356
357
358fi
359
360fi
361
362
363
364(eval "as_func_return () {
365  (exit \$1)
366}
367as_func_success () {
368  as_func_return 0
369}
370as_func_failure () {
371  as_func_return 1
372}
373as_func_ret_success () {
374  return 0
375}
376as_func_ret_failure () {
377  return 1
378}
379
380exitcode=0
381if as_func_success; then
382  :
383else
384  exitcode=1
385  echo as_func_success failed.
386fi
387
388if as_func_failure; then
389  exitcode=1
390  echo as_func_failure succeeded.
391fi
392
393if as_func_ret_success; then
394  :
395else
396  exitcode=1
397  echo as_func_ret_success failed.
398fi
399
400if as_func_ret_failure; then
401  exitcode=1
402  echo as_func_ret_failure succeeded.
403fi
404
405if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
406  :
407else
408  exitcode=1
409  echo positional parameters were not saved.
410fi
411
412test \$exitcode = 0") || {
413  echo No shell found that supports shell functions.
414  echo Please tell autoconf@gnu.org about your system,
415  echo including any error possibly output before this
416  echo message
417}
418
419
420
421  as_lineno_1=$LINENO
422  as_lineno_2=$LINENO
423  test "x$as_lineno_1" != "x$as_lineno_2" &&
424  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
425
426  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
427  # uniformly replaced by the line number.  The first 'sed' inserts a
428  # line-number line after each line using $LINENO; the second 'sed'
429  # does the real work.  The second script uses 'N' to pair each
430  # line-number line with the line containing $LINENO, and appends
431  # trailing '-' during substitution so that $LINENO is not a special
432  # case at line end.
433  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
434  # scripts with optimization help from Paolo Bonzini.  Blame Lee
435  # E. McMahon (1931-1989) for sed's syntax.  :-)
436  sed -n '
437    p
438    /[$]LINENO/=
439  ' <$as_myself |
440    sed '
441      s/[$]LINENO.*/&-/
442      t lineno
443      b
444      :lineno
445      N
446      :loop
447      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
448      t loop
449      s/-\n.*//
450    ' >$as_me.lineno &&
451  chmod +x "$as_me.lineno" ||
452    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
453   { (exit 1); exit 1; }; }
454
455  # Don't try to exec as it changes $[0], causing all sort of problems
456  # (the dirname of $[0] is not the place where we might find the
457  # original and so on.  Autoconf is especially sensitive to this).
458  . "./$as_me.lineno"
459  # Exit status is that of the last command.
460  exit
461}
462
463
464if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
465  as_dirname=dirname
466else
467  as_dirname=false
468fi
469
470ECHO_C= ECHO_N= ECHO_T=
471case `echo -n x` in
472-n*)
473  case `echo 'x\c'` in
474  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
475  *)   ECHO_C='\c';;
476  esac;;
477*)
478  ECHO_N='-n';;
479esac
480
481if expr a : '\(a\)' >/dev/null 2>&1 &&
482   test "X`expr 00001 : '.*\(...\)'`" = X001; then
483  as_expr=expr
484else
485  as_expr=false
486fi
487
488rm -f conf$$ conf$$.exe conf$$.file
489if test -d conf$$.dir; then
490  rm -f conf$$.dir/conf$$.file
491else
492  rm -f conf$$.dir
493  mkdir conf$$.dir
494fi
495echo >conf$$.file
496if ln -s conf$$.file conf$$ 2>/dev/null; then
497  as_ln_s='ln -s'
498  # ... but there are two gotchas:
499  # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
500  # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
501  # In both cases, we have to default to `cp -p'.
502  ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
503    as_ln_s='cp -p'
504elif ln conf$$.file conf$$ 2>/dev/null; then
505  as_ln_s=ln
506else
507  as_ln_s='cp -p'
508fi
509rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
510rmdir conf$$.dir 2>/dev/null
511
512if mkdir -p . 2>/dev/null; then
513  as_mkdir_p=:
514else
515  test -d ./-p && rmdir ./-p
516  as_mkdir_p=false
517fi
518
519# Find out whether ``test -x'' works.  Don't use a zero-byte file, as
520# systems may use methods other than mode bits to determine executability.
521cat >conf$$.file <<_ASEOF
522#! /bin/sh
523exit 0
524_ASEOF
525chmod +x conf$$.file
526if test -x conf$$.file >/dev/null 2>&1; then
527  as_executable_p="test -x"
528else
529  as_executable_p=:
530fi
531rm -f conf$$.file
532
533# Sed expression to map a string onto a valid CPP name.
534as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
535
536# Sed expression to map a string onto a valid variable name.
537as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
538
539
540
541exec 7<&0 </dev/null 6>&1
542
543# Name of the host.
544# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
545# so uname gets run too.
546ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
547
548#
549# Initializations.
550#
551ac_default_prefix=/usr/local
552ac_clean_files=
553ac_config_libobj_dir=.
554LIBOBJS=
555cross_compiling=no
556subdirs=
557MFLAGS=
558MAKEFLAGS=
559SHELL=${CONFIG_SHELL-/bin/sh}
560
561# Identity of this package.
562PACKAGE_NAME='LLVM'
563PACKAGE_TARNAME='llvm'
564PACKAGE_VERSION='3.1svn'
565PACKAGE_STRING='LLVM 3.1svn'
566PACKAGE_BUGREPORT='http://llvm.org/bugs/'
567
568ac_unique_file="lib/VMCore/Module.cpp"
569# Factoring default headers for most tests.
570ac_includes_default="\
571#include <stdio.h>
572#if HAVE_SYS_TYPES_H
573# include <sys/types.h>
574#endif
575#if HAVE_SYS_STAT_H
576# include <sys/stat.h>
577#endif
578#if STDC_HEADERS
579# include <stdlib.h>
580# include <stddef.h>
581#else
582# if HAVE_STDLIB_H
583#  include <stdlib.h>
584# endif
585#endif
586#if HAVE_STRING_H
587# if !STDC_HEADERS && HAVE_MEMORY_H
588#  include <memory.h>
589# endif
590# include <string.h>
591#endif
592#if HAVE_STRINGS_H
593# include <strings.h>
594#endif
595#if HAVE_INTTYPES_H
596# include <inttypes.h>
597#endif
598#if HAVE_STDINT_H
599# include <stdint.h>
600#endif
601#if HAVE_UNISTD_H
602# include <unistd.h>
603#endif"
604
605ac_subst_vars='SHELL
606PATH_SEPARATOR
607PACKAGE_NAME
608PACKAGE_TARNAME
609PACKAGE_VERSION
610PACKAGE_STRING
611PACKAGE_BUGREPORT
612exec_prefix
613prefix
614program_transform_name
615bindir
616sbindir
617libexecdir
618datarootdir
619datadir
620sysconfdir
621sharedstatedir
622localstatedir
623includedir
624oldincludedir
625docdir
626infodir
627htmldir
628dvidir
629pdfdir
630psdir
631libdir
632localedir
633mandir
634DEFS
635ECHO_C
636ECHO_N
637ECHO_T
638LIBS
639build_alias
640host_alias
641target_alias
642LLVM_COPYRIGHT
643CC
644CFLAGS
645LDFLAGS
646CPPFLAGS
647ac_ct_CC
648EXEEXT
649OBJEXT
650CXX
651CXXFLAGS
652ac_ct_CXX
653CPP
654subdirs
655ENABLE_POLLY
656LLVM_HAS_POLLY
657build
658build_cpu
659build_vendor
660build_os
661host
662host_cpu
663host_vendor
664host_os
665target
666target_cpu
667target_vendor
668target_os
669OS
670HOST_OS
671TARGET_OS
672LINKALL
673NOLINKALL
674LLVM_ON_UNIX
675LLVM_ON_WIN32
676ARCH
677ENDIAN
678GREP
679EGREP
680LLVM_CROSS_COMPILING
681BUILD_CC
682BUILD_EXEEXT
683BUILD_CXX
684CVSBUILD
685ENABLE_LIBCPP
686ENABLE_OPTIMIZED
687ENABLE_PROFILING
688DISABLE_ASSERTIONS
689ENABLE_EXPENSIVE_CHECKS
690EXPENSIVE_CHECKS
691DEBUG_RUNTIME
692DEBUG_SYMBOLS
693JIT
694TARGET_HAS_JIT
695ENABLE_DOCS
696ENABLE_DOXYGEN
697LLVM_ENABLE_THREADS
698ENABLE_PTHREADS
699ENABLE_PIC
700ENABLE_SHARED
701ENABLE_EMBED_STDCXX
702ENABLE_TIMESTAMPS
703TARGETS_TO_BUILD
704LLVM_ENUM_TARGETS
705LLVM_ENUM_ASM_PRINTERS
706LLVM_ENUM_ASM_PARSERS
707LLVM_ENUM_DISASSEMBLERS
708ENABLE_CBE_PRINTF_A
709OPTIMIZE_OPTION
710EXTRA_OPTIONS
711EXTRA_LD_OPTIONS
712CLANG_SRC_ROOT
713BINUTILS_INCDIR
714INTERNAL_PREFIX
715NM
716ifGNUmake
717LN_S
718CMP
719CP
720DATE
721FIND
722MKDIR
723MV
724RANLIB
725AR
726RM
727SED
728TAR
729BINPWD
730GRAPHVIZ
731DOT
732FDP
733NEATO
734TWOPI
735CIRCO
736GV
737DOTTY
738XDOT_PY
739PERL
740HAVE_PERL
741INSTALL_PROGRAM
742INSTALL_SCRIPT
743INSTALL_DATA
744BZIP2
745CAT
746DOXYGEN
747GROFF
748GZIPBIN
749POD2HTML
750POD2MAN
751PDFROFF
752RUNTEST
753TCLSH
754ZIP
755OCAMLC
756OCAMLOPT
757OCAMLDEP
758OCAMLDOC
759GAS
760HAVE_LINK_VERSION_SCRIPT
761INSTALL_LTDL_TRUE
762INSTALL_LTDL_FALSE
763CONVENIENCE_LTDL_TRUE
764CONVENIENCE_LTDL_FALSE
765LIBADD_DL
766NO_VARIADIC_MACROS
767NO_MISSING_FIELD_INITIALIZERS
768COVERED_SWITCH_DEFAULT
769USE_UDIS86
770USE_OPROFILE
771HAVE_PTHREAD
772HUGE_VAL_SANITY
773MMAP_FILE
774SHLIBEXT
775SHLIBPATH_VAR
776LLVM_PREFIX
777LLVM_BINDIR
778LLVM_LIBDIR
779LLVM_DATADIR
780LLVM_DOCSDIR
781LLVM_ETCDIR
782LLVM_INCLUDEDIR
783LLVM_INFODIR
784LLVM_MANDIR
785LLVM_CONFIGTIME
786BINDINGS_TO_BUILD
787ALL_BINDINGS
788OCAML_LIBDIR
789ENABLE_VISIBILITY_INLINES_HIDDEN
790RPATH
791RDYNAMIC
792LIBOBJS
793LTLIBOBJS'
794ac_subst_files=''
795      ac_precious_vars='build_alias
796host_alias
797target_alias
798CC
799CFLAGS
800LDFLAGS
801CPPFLAGS
802CXX
803CXXFLAGS
804CCC
805CPP'
806ac_subdirs_all='projects/llvm-gcc
807projects/test-suite
808projects/llvm-test
809projects/poolalloc
810projects/llvm-poolalloc
811projects/sample
812projects/privbracket
813projects/llvm-stacker
814projects/llvm-reopt
815projects/llvm-java
816projects/llvm-tv
817projects/safecode
818projects/llvm-kernel
819tools/polly'
820
821# Initialize some variables set by options.
822ac_init_help=
823ac_init_version=false
824# The variables have the same names as the options, with
825# dashes changed to underlines.
826cache_file=/dev/null
827exec_prefix=NONE
828no_create=
829no_recursion=
830prefix=NONE
831program_prefix=NONE
832program_suffix=NONE
833program_transform_name=s,x,x,
834silent=
835site=
836srcdir=
837verbose=
838x_includes=NONE
839x_libraries=NONE
840
841# Installation directory options.
842# These are left unexpanded so users can "make install exec_prefix=/foo"
843# and all the variables that are supposed to be based on exec_prefix
844# by default will actually change.
845# Use braces instead of parens because sh, perl, etc. also accept them.
846# (The list follows the same order as the GNU Coding Standards.)
847bindir='${exec_prefix}/bin'
848sbindir='${exec_prefix}/sbin'
849libexecdir='${exec_prefix}/libexec'
850datarootdir='${prefix}/share'
851datadir='${datarootdir}'
852sysconfdir='${prefix}/etc'
853sharedstatedir='${prefix}/com'
854localstatedir='${prefix}/var'
855includedir='${prefix}/include'
856oldincludedir='/usr/include'
857docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
858infodir='${datarootdir}/info'
859htmldir='${docdir}'
860dvidir='${docdir}'
861pdfdir='${docdir}'
862psdir='${docdir}'
863libdir='${exec_prefix}/lib'
864localedir='${datarootdir}/locale'
865mandir='${datarootdir}/man'
866
867ac_prev=
868ac_dashdash=
869for ac_option
870do
871  # If the previous option needs an argument, assign it.
872  if test -n "$ac_prev"; then
873    eval $ac_prev=\$ac_option
874    ac_prev=
875    continue
876  fi
877
878  case $ac_option in
879  *=*)	ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
880  *)	ac_optarg=yes ;;
881  esac
882
883  # Accept the important Cygnus configure options, so we can diagnose typos.
884
885  case $ac_dashdash$ac_option in
886  --)
887    ac_dashdash=yes ;;
888
889  -bindir | --bindir | --bindi | --bind | --bin | --bi)
890    ac_prev=bindir ;;
891  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
892    bindir=$ac_optarg ;;
893
894  -build | --build | --buil | --bui | --bu)
895    ac_prev=build_alias ;;
896  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
897    build_alias=$ac_optarg ;;
898
899  -cache-file | --cache-file | --cache-fil | --cache-fi \
900  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
901    ac_prev=cache_file ;;
902  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
903  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
904    cache_file=$ac_optarg ;;
905
906  --config-cache | -C)
907    cache_file=config.cache ;;
908
909  -datadir | --datadir | --datadi | --datad)
910    ac_prev=datadir ;;
911  -datadir=* | --datadir=* | --datadi=* | --datad=*)
912    datadir=$ac_optarg ;;
913
914  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
915  | --dataroo | --dataro | --datar)
916    ac_prev=datarootdir ;;
917  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
918  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
919    datarootdir=$ac_optarg ;;
920
921  -disable-* | --disable-*)
922    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
923    # Reject names that are not valid shell variable names.
924    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
925      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
926   { (exit 1); exit 1; }; }
927    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
928    eval enable_$ac_feature=no ;;
929
930  -docdir | --docdir | --docdi | --doc | --do)
931    ac_prev=docdir ;;
932  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
933    docdir=$ac_optarg ;;
934
935  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
936    ac_prev=dvidir ;;
937  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
938    dvidir=$ac_optarg ;;
939
940  -enable-* | --enable-*)
941    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
942    # Reject names that are not valid shell variable names.
943    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
944      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
945   { (exit 1); exit 1; }; }
946    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
947    eval enable_$ac_feature=\$ac_optarg ;;
948
949  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
950  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
951  | --exec | --exe | --ex)
952    ac_prev=exec_prefix ;;
953  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
954  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
955  | --exec=* | --exe=* | --ex=*)
956    exec_prefix=$ac_optarg ;;
957
958  -gas | --gas | --ga | --g)
959    # Obsolete; use --with-gas.
960    with_gas=yes ;;
961
962  -help | --help | --hel | --he | -h)
963    ac_init_help=long ;;
964  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
965    ac_init_help=recursive ;;
966  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
967    ac_init_help=short ;;
968
969  -host | --host | --hos | --ho)
970    ac_prev=host_alias ;;
971  -host=* | --host=* | --hos=* | --ho=*)
972    host_alias=$ac_optarg ;;
973
974  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
975    ac_prev=htmldir ;;
976  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
977  | --ht=*)
978    htmldir=$ac_optarg ;;
979
980  -includedir | --includedir | --includedi | --included | --include \
981  | --includ | --inclu | --incl | --inc)
982    ac_prev=includedir ;;
983  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
984  | --includ=* | --inclu=* | --incl=* | --inc=*)
985    includedir=$ac_optarg ;;
986
987  -infodir | --infodir | --infodi | --infod | --info | --inf)
988    ac_prev=infodir ;;
989  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
990    infodir=$ac_optarg ;;
991
992  -libdir | --libdir | --libdi | --libd)
993    ac_prev=libdir ;;
994  -libdir=* | --libdir=* | --libdi=* | --libd=*)
995    libdir=$ac_optarg ;;
996
997  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
998  | --libexe | --libex | --libe)
999    ac_prev=libexecdir ;;
1000  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1001  | --libexe=* | --libex=* | --libe=*)
1002    libexecdir=$ac_optarg ;;
1003
1004  -localedir | --localedir | --localedi | --localed | --locale)
1005    ac_prev=localedir ;;
1006  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1007    localedir=$ac_optarg ;;
1008
1009  -localstatedir | --localstatedir | --localstatedi | --localstated \
1010  | --localstate | --localstat | --localsta | --localst | --locals)
1011    ac_prev=localstatedir ;;
1012  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1013  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1014    localstatedir=$ac_optarg ;;
1015
1016  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1017    ac_prev=mandir ;;
1018  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1019    mandir=$ac_optarg ;;
1020
1021  -nfp | --nfp | --nf)
1022    # Obsolete; use --without-fp.
1023    with_fp=no ;;
1024
1025  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1026  | --no-cr | --no-c | -n)
1027    no_create=yes ;;
1028
1029  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1030  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1031    no_recursion=yes ;;
1032
1033  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1034  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1035  | --oldin | --oldi | --old | --ol | --o)
1036    ac_prev=oldincludedir ;;
1037  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1038  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1039  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1040    oldincludedir=$ac_optarg ;;
1041
1042  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1043    ac_prev=prefix ;;
1044  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1045    prefix=$ac_optarg ;;
1046
1047  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1048  | --program-pre | --program-pr | --program-p)
1049    ac_prev=program_prefix ;;
1050  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1051  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1052    program_prefix=$ac_optarg ;;
1053
1054  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1055  | --program-suf | --program-su | --program-s)
1056    ac_prev=program_suffix ;;
1057  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1058  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1059    program_suffix=$ac_optarg ;;
1060
1061  -program-transform-name | --program-transform-name \
1062  | --program-transform-nam | --program-transform-na \
1063  | --program-transform-n | --program-transform- \
1064  | --program-transform | --program-transfor \
1065  | --program-transfo | --program-transf \
1066  | --program-trans | --program-tran \
1067  | --progr-tra | --program-tr | --program-t)
1068    ac_prev=program_transform_name ;;
1069  -program-transform-name=* | --program-transform-name=* \
1070  | --program-transform-nam=* | --program-transform-na=* \
1071  | --program-transform-n=* | --program-transform-=* \
1072  | --program-transform=* | --program-transfor=* \
1073  | --program-transfo=* | --program-transf=* \
1074  | --program-trans=* | --program-tran=* \
1075  | --progr-tra=* | --program-tr=* | --program-t=*)
1076    program_transform_name=$ac_optarg ;;
1077
1078  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1079    ac_prev=pdfdir ;;
1080  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1081    pdfdir=$ac_optarg ;;
1082
1083  -psdir | --psdir | --psdi | --psd | --ps)
1084    ac_prev=psdir ;;
1085  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1086    psdir=$ac_optarg ;;
1087
1088  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1089  | -silent | --silent | --silen | --sile | --sil)
1090    silent=yes ;;
1091
1092  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1093    ac_prev=sbindir ;;
1094  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1095  | --sbi=* | --sb=*)
1096    sbindir=$ac_optarg ;;
1097
1098  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1099  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1100  | --sharedst | --shareds | --shared | --share | --shar \
1101  | --sha | --sh)
1102    ac_prev=sharedstatedir ;;
1103  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1104  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1105  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1106  | --sha=* | --sh=*)
1107    sharedstatedir=$ac_optarg ;;
1108
1109  -site | --site | --sit)
1110    ac_prev=site ;;
1111  -site=* | --site=* | --sit=*)
1112    site=$ac_optarg ;;
1113
1114  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1115    ac_prev=srcdir ;;
1116  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1117    srcdir=$ac_optarg ;;
1118
1119  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1120  | --syscon | --sysco | --sysc | --sys | --sy)
1121    ac_prev=sysconfdir ;;
1122  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1123  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1124    sysconfdir=$ac_optarg ;;
1125
1126  -target | --target | --targe | --targ | --tar | --ta | --t)
1127    ac_prev=target_alias ;;
1128  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1129    target_alias=$ac_optarg ;;
1130
1131  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1132    verbose=yes ;;
1133
1134  -version | --version | --versio | --versi | --vers | -V)
1135    ac_init_version=: ;;
1136
1137  -with-* | --with-*)
1138    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1139    # Reject names that are not valid shell variable names.
1140    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1141      { echo "$as_me: error: invalid package name: $ac_package" >&2
1142   { (exit 1); exit 1; }; }
1143    ac_package=`echo $ac_package| sed 's/-/_/g'`
1144    eval with_$ac_package=\$ac_optarg ;;
1145
1146  -without-* | --without-*)
1147    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1148    # Reject names that are not valid shell variable names.
1149    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1150      { echo "$as_me: error: invalid package name: $ac_package" >&2
1151   { (exit 1); exit 1; }; }
1152    ac_package=`echo $ac_package | sed 's/-/_/g'`
1153    eval with_$ac_package=no ;;
1154
1155  --x)
1156    # Obsolete; use --with-x.
1157    with_x=yes ;;
1158
1159  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1160  | --x-incl | --x-inc | --x-in | --x-i)
1161    ac_prev=x_includes ;;
1162  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1163  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1164    x_includes=$ac_optarg ;;
1165
1166  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1167  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1168    ac_prev=x_libraries ;;
1169  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1170  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1171    x_libraries=$ac_optarg ;;
1172
1173  -*) { echo "$as_me: error: unrecognized option: $ac_option
1174Try \`$0 --help' for more information." >&2
1175   { (exit 1); exit 1; }; }
1176    ;;
1177
1178  *=*)
1179    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1180    # Reject names that are not valid shell variable names.
1181    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1182      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1183   { (exit 1); exit 1; }; }
1184    eval $ac_envvar=\$ac_optarg
1185    export $ac_envvar ;;
1186
1187  *)
1188    # FIXME: should be removed in autoconf 3.0.
1189    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1190    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1191      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1192    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1193    ;;
1194
1195  esac
1196done
1197
1198if test -n "$ac_prev"; then
1199  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1200  { echo "$as_me: error: missing argument to $ac_option" >&2
1201   { (exit 1); exit 1; }; }
1202fi
1203
1204# Be sure to have absolute directory names.
1205for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1206		datadir sysconfdir sharedstatedir localstatedir includedir \
1207		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1208		libdir localedir mandir
1209do
1210  eval ac_val=\$$ac_var
1211  case $ac_val in
1212    [\\/$]* | ?:[\\/]* )  continue;;
1213    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1214  esac
1215  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1216   { (exit 1); exit 1; }; }
1217done
1218
1219# There might be people who depend on the old broken behavior: `$host'
1220# used to hold the argument of --host etc.
1221# FIXME: To remove some day.
1222build=$build_alias
1223host=$host_alias
1224target=$target_alias
1225
1226# FIXME: To remove some day.
1227if test "x$host_alias" != x; then
1228  if test "x$build_alias" = x; then
1229    cross_compiling=maybe
1230    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1231    If a cross compiler is detected then cross compile mode will be used." >&2
1232  elif test "x$build_alias" != "x$host_alias"; then
1233    cross_compiling=yes
1234  fi
1235fi
1236
1237ac_tool_prefix=
1238test -n "$host_alias" && ac_tool_prefix=$host_alias-
1239
1240test "$silent" = yes && exec 6>/dev/null
1241
1242
1243ac_pwd=`pwd` && test -n "$ac_pwd" &&
1244ac_ls_di=`ls -di .` &&
1245ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1246  { echo "$as_me: error: Working directory cannot be determined" >&2
1247   { (exit 1); exit 1; }; }
1248test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1249  { echo "$as_me: error: pwd does not report name of working directory" >&2
1250   { (exit 1); exit 1; }; }
1251
1252
1253# Find the source files, if location was not specified.
1254if test -z "$srcdir"; then
1255  ac_srcdir_defaulted=yes
1256  # Try the directory containing this script, then the parent directory.
1257  ac_confdir=`$as_dirname -- "$0" ||
1258$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1259	 X"$0" : 'X\(//\)[^/]' \| \
1260	 X"$0" : 'X\(//\)$' \| \
1261	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1262echo X"$0" |
1263    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1264	    s//\1/
1265	    q
1266	  }
1267	  /^X\(\/\/\)[^/].*/{
1268	    s//\1/
1269	    q
1270	  }
1271	  /^X\(\/\/\)$/{
1272	    s//\1/
1273	    q
1274	  }
1275	  /^X\(\/\).*/{
1276	    s//\1/
1277	    q
1278	  }
1279	  s/.*/./; q'`
1280  srcdir=$ac_confdir
1281  if test ! -r "$srcdir/$ac_unique_file"; then
1282    srcdir=..
1283  fi
1284else
1285  ac_srcdir_defaulted=no
1286fi
1287if test ! -r "$srcdir/$ac_unique_file"; then
1288  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1289  { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1290   { (exit 1); exit 1; }; }
1291fi
1292ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1293ac_abs_confdir=`(
1294	cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1295   { (exit 1); exit 1; }; }
1296	pwd)`
1297# When building in place, set srcdir=.
1298if test "$ac_abs_confdir" = "$ac_pwd"; then
1299  srcdir=.
1300fi
1301# Remove unnecessary trailing slashes from srcdir.
1302# Double slashes in file names in object file debugging info
1303# mess up M-x gdb in Emacs.
1304case $srcdir in
1305*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1306esac
1307for ac_var in $ac_precious_vars; do
1308  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1309  eval ac_env_${ac_var}_value=\$${ac_var}
1310  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1311  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1312done
1313
1314#
1315# Report the --help message.
1316#
1317if test "$ac_init_help" = "long"; then
1318  # Omit some internal or obsolete options to make the list less imposing.
1319  # This message is too long to be a string in the A/UX 3.1 sh.
1320  cat <<_ACEOF
1321\`configure' configures LLVM 3.1svn to adapt to many kinds of systems.
1322
1323Usage: $0 [OPTION]... [VAR=VALUE]...
1324
1325To assign environment variables (e.g., CC, CFLAGS...), specify them as
1326VAR=VALUE.  See below for descriptions of some of the useful variables.
1327
1328Defaults for the options are specified in brackets.
1329
1330Configuration:
1331  -h, --help              display this help and exit
1332      --help=short        display options specific to this package
1333      --help=recursive    display the short help of all the included packages
1334  -V, --version           display version information and exit
1335  -q, --quiet, --silent   do not print \`checking...' messages
1336      --cache-file=FILE   cache test results in FILE [disabled]
1337  -C, --config-cache      alias for \`--cache-file=config.cache'
1338  -n, --no-create         do not create output files
1339      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1340
1341Installation directories:
1342  --prefix=PREFIX         install architecture-independent files in PREFIX
1343			  [$ac_default_prefix]
1344  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1345			  [PREFIX]
1346
1347By default, \`make install' will install all the files in
1348\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1349an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1350for instance \`--prefix=\$HOME'.
1351
1352For better control, use the options below.
1353
1354Fine tuning of the installation directories:
1355  --bindir=DIR           user executables [EPREFIX/bin]
1356  --sbindir=DIR          system admin executables [EPREFIX/sbin]
1357  --libexecdir=DIR       program executables [EPREFIX/libexec]
1358  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1359  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1360  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1361  --libdir=DIR           object code libraries [EPREFIX/lib]
1362  --includedir=DIR       C header files [PREFIX/include]
1363  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1364  --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1365  --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1366  --infodir=DIR          info documentation [DATAROOTDIR/info]
1367  --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1368  --mandir=DIR           man documentation [DATAROOTDIR/man]
1369  --docdir=DIR           documentation root [DATAROOTDIR/doc/llvm]
1370  --htmldir=DIR          html documentation [DOCDIR]
1371  --dvidir=DIR           dvi documentation [DOCDIR]
1372  --pdfdir=DIR           pdf documentation [DOCDIR]
1373  --psdir=DIR            ps documentation [DOCDIR]
1374_ACEOF
1375
1376  cat <<\_ACEOF
1377
1378System types:
1379  --build=BUILD     configure for building on BUILD [guessed]
1380  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1381  --target=TARGET   configure for building compilers for TARGET [HOST]
1382_ACEOF
1383fi
1384
1385if test -n "$ac_init_help"; then
1386  case $ac_init_help in
1387     short | recursive ) echo "Configuration of LLVM 3.1svn:";;
1388   esac
1389  cat <<\_ACEOF
1390
1391Optional Features:
1392  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1393  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1394  --enable-polly          Use polly if available (default is YES)
1395  --enable-libcpp         Use libc++ if available (default is NO)
1396  --enable-optimized      Compile with optimizations enabled (default is NO)
1397  --enable-profiling      Compile with profiling enabled (default is NO)
1398  --enable-assertions     Compile with assertion checks enabled (default is
1399                          YES)
1400  --enable-expensive-checks
1401                          Compile with expensive debug checks enabled (default
1402                          is NO)
1403  --enable-debug-runtime  Build runtime libs with debug symbols (default is
1404                          NO)
1405  --enable-debug-symbols  Build compiler with debug symbols (default is NO if
1406                          optimization is on and YES if it's off)
1407  --enable-jit            Enable Just In Time Compiling (default is YES)
1408  --enable-docs           Build documents (default is YES)
1409  --enable-doxygen        Build doxygen documentation (default is NO)
1410  --enable-threads        Use threads if available (default is YES)
1411  --enable-pthreads       Use pthreads if available (default is YES)
1412  --enable-pic            Build LLVM with Position Independent Code (default
1413                          is YES)
1414  --enable-shared         Build a shared library and link tools against it
1415                          (default is NO)
1416  --enable-embed-stdcxx   Build a shared library with embedded libstdc++ for
1417                          Win32 DLL (default is NO)
1418  --enable-timestamps     Enable embedding timestamp information in build
1419                          (default is YES)
1420  --enable-targets        Build specific host targets: all or
1421                          target1,target2,... Valid targets are: host, x86,
1422                          x86_64, sparc, powerpc, arm, mips, spu, hexagon,
1423                          xcore, msp430, ptx, cbe, and cpp (default=all)
1424  --enable-cbe-printf-a   Enable C Backend output with hex floating point via
1425                          %a (default is YES)
1426  --enable-bindings       Build specific language bindings:
1427                          all,auto,none,{binding-name} (default=auto)
1428  --enable-libffi         Check for the presence of libffi (default is NO)
1429  --enable-ltdl-install   install libltdl
1430
1431Optional Packages:
1432  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1433  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1434  --with-optimize-option  Select the compiler options to use for optimized
1435                          builds
1436  --with-extra-options    Specify additional options to compile LLVM with
1437  --with-extra-ld-options Specify additional options to link LLVM with
1438  --with-ocaml-libdir     Specify install location for ocaml bindings (default
1439                          is stdlib)
1440  --with-clang-srcdir     Directory to the out-of-tree Clang source
1441  --with-clang-resource-dir
1442                          Relative directory from the Clang binary for
1443                          resource files
1444  --with-c-include-dirs   Colon separated list of directories clang will
1445                          search for headers
1446  --with-gcc-toolchain    Directory where gcc is installed.
1447  --with-binutils-include Specify path to binutils/include/ containing
1448                          plugin-api.h file for gold plugin.
1449  --with-bug-report-url   Specify the URL where bug reports should be
1450                          submitted (default=http://llvm.org/bugs/)
1451  --with-internal-prefix  Installation directory for internal files
1452  --with-tclinclude       directory where tcl headers are
1453  --with-udis86=<path>    Use udis86 external x86 disassembler library
1454  --with-oprofile=<prefix>
1455                          Tell OProfile >= 0.9.4 how to symbolize JIT output
1456
1457Some influential environment variables:
1458  CC          C compiler command
1459  CFLAGS      C compiler flags
1460  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1461              nonstandard directory <lib dir>
1462  CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1463              you have headers in a nonstandard directory <include dir>
1464  CXX         C++ compiler command
1465  CXXFLAGS    C++ compiler flags
1466  CPP         C preprocessor
1467
1468Use these variables to override the choices made by `configure' or to help
1469it to find libraries and programs with nonstandard names/locations.
1470
1471Report bugs to <http://llvm.org/bugs/>.
1472_ACEOF
1473ac_status=$?
1474fi
1475
1476if test "$ac_init_help" = "recursive"; then
1477  # If there are subdirs, report their specific --help.
1478  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1479    test -d "$ac_dir" || continue
1480    ac_builddir=.
1481
1482case "$ac_dir" in
1483.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1484*)
1485  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1486  # A ".." for each directory in $ac_dir_suffix.
1487  ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1488  case $ac_top_builddir_sub in
1489  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1490  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1491  esac ;;
1492esac
1493ac_abs_top_builddir=$ac_pwd
1494ac_abs_builddir=$ac_pwd$ac_dir_suffix
1495# for backward compatibility:
1496ac_top_builddir=$ac_top_build_prefix
1497
1498case $srcdir in
1499  .)  # We are building in place.
1500    ac_srcdir=.
1501    ac_top_srcdir=$ac_top_builddir_sub
1502    ac_abs_top_srcdir=$ac_pwd ;;
1503  [\\/]* | ?:[\\/]* )  # Absolute name.
1504    ac_srcdir=$srcdir$ac_dir_suffix;
1505    ac_top_srcdir=$srcdir
1506    ac_abs_top_srcdir=$srcdir ;;
1507  *) # Relative name.
1508    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1509    ac_top_srcdir=$ac_top_build_prefix$srcdir
1510    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1511esac
1512ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1513
1514    cd "$ac_dir" || { ac_status=$?; continue; }
1515    # Check for guested configure.
1516    if test -f "$ac_srcdir/configure.gnu"; then
1517      echo &&
1518      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1519    elif test -f "$ac_srcdir/configure"; then
1520      echo &&
1521      $SHELL "$ac_srcdir/configure" --help=recursive
1522    else
1523      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1524    fi || ac_status=$?
1525    cd "$ac_pwd" || { ac_status=$?; break; }
1526  done
1527fi
1528
1529test -n "$ac_init_help" && exit $ac_status
1530if $ac_init_version; then
1531  cat <<\_ACEOF
1532LLVM configure 3.1svn
1533generated by GNU Autoconf 2.60
1534
1535Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
15362002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1537This configure script is free software; the Free Software Foundation
1538gives unlimited permission to copy, distribute and modify it.
1539
1540Copyright (c) 2003-2012 University of Illinois at Urbana-Champaign.
1541_ACEOF
1542  exit
1543fi
1544cat >config.log <<_ACEOF
1545This file contains any messages produced by compilers while
1546running configure, to aid debugging if configure makes a mistake.
1547
1548It was created by LLVM $as_me 3.1svn, which was
1549generated by GNU Autoconf 2.60.  Invocation command line was
1550
1551  $ $0 $@
1552
1553_ACEOF
1554exec 5>>config.log
1555{
1556cat <<_ASUNAME
1557## --------- ##
1558## Platform. ##
1559## --------- ##
1560
1561hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1562uname -m = `(uname -m) 2>/dev/null || echo unknown`
1563uname -r = `(uname -r) 2>/dev/null || echo unknown`
1564uname -s = `(uname -s) 2>/dev/null || echo unknown`
1565uname -v = `(uname -v) 2>/dev/null || echo unknown`
1566
1567/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1568/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1569
1570/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1571/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1572/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1573/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1574/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1575/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1576/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1577
1578_ASUNAME
1579
1580as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1581for as_dir in $PATH
1582do
1583  IFS=$as_save_IFS
1584  test -z "$as_dir" && as_dir=.
1585  echo "PATH: $as_dir"
1586done
1587IFS=$as_save_IFS
1588
1589} >&5
1590
1591cat >&5 <<_ACEOF
1592
1593
1594## ----------- ##
1595## Core tests. ##
1596## ----------- ##
1597
1598_ACEOF
1599
1600
1601# Keep a trace of the command line.
1602# Strip out --no-create and --no-recursion so they do not pile up.
1603# Strip out --silent because we don't want to record it for future runs.
1604# Also quote any args containing shell meta-characters.
1605# Make two passes to allow for proper duplicate-argument suppression.
1606ac_configure_args=
1607ac_configure_args0=
1608ac_configure_args1=
1609ac_must_keep_next=false
1610for ac_pass in 1 2
1611do
1612  for ac_arg
1613  do
1614    case $ac_arg in
1615    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1616    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1617    | -silent | --silent | --silen | --sile | --sil)
1618      continue ;;
1619    *\'*)
1620      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1621    esac
1622    case $ac_pass in
1623    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1624    2)
1625      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1626      if test $ac_must_keep_next = true; then
1627	ac_must_keep_next=false # Got value, back to normal.
1628      else
1629	case $ac_arg in
1630	  *=* | --config-cache | -C | -disable-* | --disable-* \
1631	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1632	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1633	  | -with-* | --with-* | -without-* | --without-* | --x)
1634	    case "$ac_configure_args0 " in
1635	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1636	    esac
1637	    ;;
1638	  -* ) ac_must_keep_next=true ;;
1639	esac
1640      fi
1641      ac_configure_args="$ac_configure_args '$ac_arg'"
1642      ;;
1643    esac
1644  done
1645done
1646$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1647$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1648
1649# When interrupted or exit'd, cleanup temporary files, and complete
1650# config.log.  We remove comments because anyway the quotes in there
1651# would cause problems or look ugly.
1652# WARNING: Use '\'' to represent an apostrophe within the trap.
1653# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1654trap 'exit_status=$?
1655  # Save into config.log some information that might help in debugging.
1656  {
1657    echo
1658
1659    cat <<\_ASBOX
1660## ---------------- ##
1661## Cache variables. ##
1662## ---------------- ##
1663_ASBOX
1664    echo
1665    # The following way of writing the cache mishandles newlines in values,
1666(
1667  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1668    eval ac_val=\$$ac_var
1669    case $ac_val in #(
1670    *${as_nl}*)
1671      case $ac_var in #(
1672      *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1673echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1674      esac
1675      case $ac_var in #(
1676      _ | IFS | as_nl) ;; #(
1677      *) $as_unset $ac_var ;;
1678      esac ;;
1679    esac
1680  done
1681  (set) 2>&1 |
1682    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1683    *${as_nl}ac_space=\ *)
1684      sed -n \
1685	"s/'\''/'\''\\\\'\'''\''/g;
1686	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1687      ;; #(
1688    *)
1689      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1690      ;;
1691    esac |
1692    sort
1693)
1694    echo
1695
1696    cat <<\_ASBOX
1697## ----------------- ##
1698## Output variables. ##
1699## ----------------- ##
1700_ASBOX
1701    echo
1702    for ac_var in $ac_subst_vars
1703    do
1704      eval ac_val=\$$ac_var
1705      case $ac_val in
1706      *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1707      esac
1708      echo "$ac_var='\''$ac_val'\''"
1709    done | sort
1710    echo
1711
1712    if test -n "$ac_subst_files"; then
1713      cat <<\_ASBOX
1714## ------------------- ##
1715## File substitutions. ##
1716## ------------------- ##
1717_ASBOX
1718      echo
1719      for ac_var in $ac_subst_files
1720      do
1721	eval ac_val=\$$ac_var
1722	case $ac_val in
1723	*\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1724	esac
1725	echo "$ac_var='\''$ac_val'\''"
1726      done | sort
1727      echo
1728    fi
1729
1730    if test -s confdefs.h; then
1731      cat <<\_ASBOX
1732## ----------- ##
1733## confdefs.h. ##
1734## ----------- ##
1735_ASBOX
1736      echo
1737      cat confdefs.h
1738      echo
1739    fi
1740    test "$ac_signal" != 0 &&
1741      echo "$as_me: caught signal $ac_signal"
1742    echo "$as_me: exit $exit_status"
1743  } >&5
1744  rm -f core *.core core.conftest.* &&
1745    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1746    exit $exit_status
1747' 0
1748for ac_signal in 1 2 13 15; do
1749  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1750done
1751ac_signal=0
1752
1753# confdefs.h avoids OS command line length limits that DEFS can exceed.
1754rm -f -r conftest* confdefs.h
1755
1756# Predefined preprocessor variables.
1757
1758cat >>confdefs.h <<_ACEOF
1759#define PACKAGE_NAME "$PACKAGE_NAME"
1760_ACEOF
1761
1762
1763cat >>confdefs.h <<_ACEOF
1764#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1765_ACEOF
1766
1767
1768cat >>confdefs.h <<_ACEOF
1769#define PACKAGE_VERSION "$PACKAGE_VERSION"
1770_ACEOF
1771
1772
1773cat >>confdefs.h <<_ACEOF
1774#define PACKAGE_STRING "$PACKAGE_STRING"
1775_ACEOF
1776
1777
1778cat >>confdefs.h <<_ACEOF
1779#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1780_ACEOF
1781
1782
1783# Let the site file select an alternate cache file if it wants to.
1784# Prefer explicitly selected file to automatically selected ones.
1785if test -n "$CONFIG_SITE"; then
1786  set x "$CONFIG_SITE"
1787elif test "x$prefix" != xNONE; then
1788  set x "$prefix/share/config.site" "$prefix/etc/config.site"
1789else
1790  set x "$ac_default_prefix/share/config.site" \
1791	"$ac_default_prefix/etc/config.site"
1792fi
1793shift
1794for ac_site_file
1795do
1796  if test -r "$ac_site_file"; then
1797    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1798echo "$as_me: loading site script $ac_site_file" >&6;}
1799    sed 's/^/| /' "$ac_site_file" >&5
1800    . "$ac_site_file"
1801  fi
1802done
1803
1804if test -r "$cache_file"; then
1805  # Some versions of bash will fail to source /dev/null (special
1806  # files actually), so we avoid doing that.
1807  if test -f "$cache_file"; then
1808    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1809echo "$as_me: loading cache $cache_file" >&6;}
1810    case $cache_file in
1811      [\\/]* | ?:[\\/]* ) . "$cache_file";;
1812      *)                      . "./$cache_file";;
1813    esac
1814  fi
1815else
1816  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1817echo "$as_me: creating cache $cache_file" >&6;}
1818  >$cache_file
1819fi
1820
1821# Check that the precious variables saved in the cache have kept the same
1822# value.
1823ac_cache_corrupted=false
1824for ac_var in $ac_precious_vars; do
1825  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1826  eval ac_new_set=\$ac_env_${ac_var}_set
1827  eval ac_old_val=\$ac_cv_env_${ac_var}_value
1828  eval ac_new_val=\$ac_env_${ac_var}_value
1829  case $ac_old_set,$ac_new_set in
1830    set,)
1831      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1832echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1833      ac_cache_corrupted=: ;;
1834    ,set)
1835      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1836echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1837      ac_cache_corrupted=: ;;
1838    ,);;
1839    *)
1840      if test "x$ac_old_val" != "x$ac_new_val"; then
1841	{ echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1842echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1843	{ echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1844echo "$as_me:   former value:  $ac_old_val" >&2;}
1845	{ echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1846echo "$as_me:   current value: $ac_new_val" >&2;}
1847	ac_cache_corrupted=:
1848      fi;;
1849  esac
1850  # Pass precious variables to config.status.
1851  if test "$ac_new_set" = set; then
1852    case $ac_new_val in
1853    *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1854    *) ac_arg=$ac_var=$ac_new_val ;;
1855    esac
1856    case " $ac_configure_args " in
1857      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1858      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1859    esac
1860  fi
1861done
1862if $ac_cache_corrupted; then
1863  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1864echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1865  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1866echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1867   { (exit 1); exit 1; }; }
1868fi
1869
1870
1871
1872
1873
1874
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894ac_ext=c
1895ac_cpp='$CPP $CPPFLAGS'
1896ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1897ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1898ac_compiler_gnu=$ac_cv_c_compiler_gnu
1899
1900
1901
1902cat >>confdefs.h <<\_ACEOF
1903#define LLVM_VERSION_MAJOR 3
1904_ACEOF
1905
1906
1907cat >>confdefs.h <<\_ACEOF
1908#define LLVM_VERSION_MINOR 1
1909_ACEOF
1910
1911
1912LLVM_COPYRIGHT="Copyright (c) 2003-2012 University of Illinois at Urbana-Champaign."
1913
1914
1915
1916
1917
1918
1919
1920ac_aux_dir=
1921for ac_dir in autoconf "$srcdir"/autoconf; do
1922  if test -f "$ac_dir/install-sh"; then
1923    ac_aux_dir=$ac_dir
1924    ac_install_sh="$ac_aux_dir/install-sh -c"
1925    break
1926  elif test -f "$ac_dir/install.sh"; then
1927    ac_aux_dir=$ac_dir
1928    ac_install_sh="$ac_aux_dir/install.sh -c"
1929    break
1930  elif test -f "$ac_dir/shtool"; then
1931    ac_aux_dir=$ac_dir
1932    ac_install_sh="$ac_aux_dir/shtool install -c"
1933    break
1934  fi
1935done
1936if test -z "$ac_aux_dir"; then
1937  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
1938echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
1939   { (exit 1); exit 1; }; }
1940fi
1941
1942# These three variables are undocumented and unsupported,
1943# and are intended to be withdrawn in a future Autoconf release.
1944# They can cause serious problems if a builder's source tree is in a directory
1945# whose full name contains unusual characters.
1946ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
1947ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
1948ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
1949
1950
1951
1952if test ${srcdir} != "." ; then
1953  if test -f ${srcdir}/include/llvm/Config/config.h ; then
1954    { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
1955echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1956   { (exit 1); exit 1; }; }
1957  fi
1958fi
1959
1960ac_ext=c
1961ac_cpp='$CPP $CPPFLAGS'
1962ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1963ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1964ac_compiler_gnu=$ac_cv_c_compiler_gnu
1965if test -n "$ac_tool_prefix"; then
1966  for ac_prog in clang llvm-gcc gcc
1967  do
1968    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1969set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1970{ echo "$as_me:$LINENO: checking for $ac_word" >&5
1971echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1972if test "${ac_cv_prog_CC+set}" = set; then
1973  echo $ECHO_N "(cached) $ECHO_C" >&6
1974else
1975  if test -n "$CC"; then
1976  ac_cv_prog_CC="$CC" # Let the user override the test.
1977else
1978as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1979for as_dir in $PATH
1980do
1981  IFS=$as_save_IFS
1982  test -z "$as_dir" && as_dir=.
1983  for ac_exec_ext in '' $ac_executable_extensions; do
1984  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
1985    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1986    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1987    break 2
1988  fi
1989done
1990done
1991IFS=$as_save_IFS
1992
1993fi
1994fi
1995CC=$ac_cv_prog_CC
1996if test -n "$CC"; then
1997  { echo "$as_me:$LINENO: result: $CC" >&5
1998echo "${ECHO_T}$CC" >&6; }
1999else
2000  { echo "$as_me:$LINENO: result: no" >&5
2001echo "${ECHO_T}no" >&6; }
2002fi
2003
2004
2005    test -n "$CC" && break
2006  done
2007fi
2008if test -z "$CC"; then
2009  ac_ct_CC=$CC
2010  for ac_prog in clang llvm-gcc gcc
2011do
2012  # Extract the first word of "$ac_prog", so it can be a program name with args.
2013set dummy $ac_prog; ac_word=$2
2014{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2015echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2016if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2017  echo $ECHO_N "(cached) $ECHO_C" >&6
2018else
2019  if test -n "$ac_ct_CC"; then
2020  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2021else
2022as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2023for as_dir in $PATH
2024do
2025  IFS=$as_save_IFS
2026  test -z "$as_dir" && as_dir=.
2027  for ac_exec_ext in '' $ac_executable_extensions; do
2028  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2029    ac_cv_prog_ac_ct_CC="$ac_prog"
2030    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2031    break 2
2032  fi
2033done
2034done
2035IFS=$as_save_IFS
2036
2037fi
2038fi
2039ac_ct_CC=$ac_cv_prog_ac_ct_CC
2040if test -n "$ac_ct_CC"; then
2041  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2042echo "${ECHO_T}$ac_ct_CC" >&6; }
2043else
2044  { echo "$as_me:$LINENO: result: no" >&5
2045echo "${ECHO_T}no" >&6; }
2046fi
2047
2048
2049  test -n "$ac_ct_CC" && break
2050done
2051
2052  if test "x$ac_ct_CC" = x; then
2053    CC=""
2054  else
2055    case $cross_compiling:$ac_tool_warned in
2056yes:)
2057{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2058whose name does not start with the host triplet.  If you think this
2059configuration is useful to you, please write to autoconf@gnu.org." >&5
2060echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2061whose name does not start with the host triplet.  If you think this
2062configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2063ac_tool_warned=yes ;;
2064esac
2065    CC=$ac_ct_CC
2066  fi
2067fi
2068
2069
2070test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2071See \`config.log' for more details." >&5
2072echo "$as_me: error: no acceptable C compiler found in \$PATH
2073See \`config.log' for more details." >&2;}
2074   { (exit 1); exit 1; }; }
2075
2076# Provide some information about the compiler.
2077echo "$as_me:$LINENO: checking for C compiler version" >&5
2078ac_compiler=`set X $ac_compile; echo $2`
2079{ (ac_try="$ac_compiler --version >&5"
2080case "(($ac_try" in
2081  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2082  *) ac_try_echo=$ac_try;;
2083esac
2084eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2085  (eval "$ac_compiler --version >&5") 2>&5
2086  ac_status=$?
2087  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2088  (exit $ac_status); }
2089{ (ac_try="$ac_compiler -v >&5"
2090case "(($ac_try" in
2091  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2092  *) ac_try_echo=$ac_try;;
2093esac
2094eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2095  (eval "$ac_compiler -v >&5") 2>&5
2096  ac_status=$?
2097  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2098  (exit $ac_status); }
2099{ (ac_try="$ac_compiler -V >&5"
2100case "(($ac_try" in
2101  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2102  *) ac_try_echo=$ac_try;;
2103esac
2104eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2105  (eval "$ac_compiler -V >&5") 2>&5
2106  ac_status=$?
2107  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2108  (exit $ac_status); }
2109
2110cat >conftest.$ac_ext <<_ACEOF
2111/* confdefs.h.  */
2112_ACEOF
2113cat confdefs.h >>conftest.$ac_ext
2114cat >>conftest.$ac_ext <<_ACEOF
2115/* end confdefs.h.  */
2116
2117int
2118main ()
2119{
2120
2121  ;
2122  return 0;
2123}
2124_ACEOF
2125ac_clean_files_save=$ac_clean_files
2126ac_clean_files="$ac_clean_files a.out a.exe b.out"
2127# Try to create an executable without -o first, disregard a.out.
2128# It will help us diagnose broken compilers, and finding out an intuition
2129# of exeext.
2130{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2131echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2132ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2133#
2134# List of possible output files, starting from the most likely.
2135# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2136# only as a last resort.  b.out is created by i960 compilers.
2137ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2138#
2139# The IRIX 6 linker writes into existing files which may not be
2140# executable, retaining their permissions.  Remove them first so a
2141# subsequent execution test works.
2142ac_rmfiles=
2143for ac_file in $ac_files
2144do
2145  case $ac_file in
2146    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2147    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2148  esac
2149done
2150rm -f $ac_rmfiles
2151
2152if { (ac_try="$ac_link_default"
2153case "(($ac_try" in
2154  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2155  *) ac_try_echo=$ac_try;;
2156esac
2157eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2158  (eval "$ac_link_default") 2>&5
2159  ac_status=$?
2160  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2161  (exit $ac_status); }; then
2162  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2163# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2164# in a Makefile.  We should not override ac_cv_exeext if it was cached,
2165# so that the user can short-circuit this test for compilers unknown to
2166# Autoconf.
2167for ac_file in $ac_files
2168do
2169  test -f "$ac_file" || continue
2170  case $ac_file in
2171    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2172	;;
2173    [ab].out )
2174	# We found the default executable, but exeext='' is most
2175	# certainly right.
2176	break;;
2177    *.* )
2178        if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2179	then :; else
2180	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2181	fi
2182	# We set ac_cv_exeext here because the later test for it is not
2183	# safe: cross compilers may not add the suffix if given an `-o'
2184	# argument, so we may need to know it at that point already.
2185	# Even if this section looks crufty: it has the advantage of
2186	# actually working.
2187	break;;
2188    * )
2189	break;;
2190  esac
2191done
2192test "$ac_cv_exeext" = no && ac_cv_exeext=
2193
2194else
2195  echo "$as_me: failed program was:" >&5
2196sed 's/^/| /' conftest.$ac_ext >&5
2197
2198{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2199See \`config.log' for more details." >&5
2200echo "$as_me: error: C compiler cannot create executables
2201See \`config.log' for more details." >&2;}
2202   { (exit 77); exit 77; }; }
2203fi
2204
2205ac_exeext=$ac_cv_exeext
2206{ echo "$as_me:$LINENO: result: $ac_file" >&5
2207echo "${ECHO_T}$ac_file" >&6; }
2208
2209# Check that the compiler produces executables we can run.  If not, either
2210# the compiler is broken, or we cross compile.
2211{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2212echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2213# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2214# If not cross compiling, check that we can run a simple program.
2215if test "$cross_compiling" != yes; then
2216  if { ac_try='./$ac_file'
2217  { (case "(($ac_try" in
2218  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2219  *) ac_try_echo=$ac_try;;
2220esac
2221eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2222  (eval "$ac_try") 2>&5
2223  ac_status=$?
2224  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2225  (exit $ac_status); }; }; then
2226    cross_compiling=no
2227  else
2228    if test "$cross_compiling" = maybe; then
2229	cross_compiling=yes
2230    else
2231	{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2232If you meant to cross compile, use \`--host'.
2233See \`config.log' for more details." >&5
2234echo "$as_me: error: cannot run C compiled programs.
2235If you meant to cross compile, use \`--host'.
2236See \`config.log' for more details." >&2;}
2237   { (exit 1); exit 1; }; }
2238    fi
2239  fi
2240fi
2241{ echo "$as_me:$LINENO: result: yes" >&5
2242echo "${ECHO_T}yes" >&6; }
2243
2244rm -f a.out a.exe conftest$ac_cv_exeext b.out
2245ac_clean_files=$ac_clean_files_save
2246# Check that the compiler produces executables we can run.  If not, either
2247# the compiler is broken, or we cross compile.
2248{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2249echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2250{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
2251echo "${ECHO_T}$cross_compiling" >&6; }
2252
2253{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
2254echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2255if { (ac_try="$ac_link"
2256case "(($ac_try" in
2257  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2258  *) ac_try_echo=$ac_try;;
2259esac
2260eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2261  (eval "$ac_link") 2>&5
2262  ac_status=$?
2263  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2264  (exit $ac_status); }; then
2265  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2266# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2267# work properly (i.e., refer to `conftest.exe'), while it won't with
2268# `rm'.
2269for ac_file in conftest.exe conftest conftest.*; do
2270  test -f "$ac_file" || continue
2271  case $ac_file in
2272    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2273    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2274	  break;;
2275    * ) break;;
2276  esac
2277done
2278else
2279  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2280See \`config.log' for more details." >&5
2281echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2282See \`config.log' for more details." >&2;}
2283   { (exit 1); exit 1; }; }
2284fi
2285
2286rm -f conftest$ac_cv_exeext
2287{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2288echo "${ECHO_T}$ac_cv_exeext" >&6; }
2289
2290rm -f conftest.$ac_ext
2291EXEEXT=$ac_cv_exeext
2292ac_exeext=$EXEEXT
2293{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
2294echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2295if test "${ac_cv_objext+set}" = set; then
2296  echo $ECHO_N "(cached) $ECHO_C" >&6
2297else
2298  cat >conftest.$ac_ext <<_ACEOF
2299/* confdefs.h.  */
2300_ACEOF
2301cat confdefs.h >>conftest.$ac_ext
2302cat >>conftest.$ac_ext <<_ACEOF
2303/* end confdefs.h.  */
2304
2305int
2306main ()
2307{
2308
2309  ;
2310  return 0;
2311}
2312_ACEOF
2313rm -f conftest.o conftest.obj
2314if { (ac_try="$ac_compile"
2315case "(($ac_try" in
2316  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2317  *) ac_try_echo=$ac_try;;
2318esac
2319eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2320  (eval "$ac_compile") 2>&5
2321  ac_status=$?
2322  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2323  (exit $ac_status); }; then
2324  for ac_file in conftest.o conftest.obj conftest.*; do
2325  test -f "$ac_file" || continue;
2326  case $ac_file in
2327    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2328    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2329       break;;
2330  esac
2331done
2332else
2333  echo "$as_me: failed program was:" >&5
2334sed 's/^/| /' conftest.$ac_ext >&5
2335
2336{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2337See \`config.log' for more details." >&5
2338echo "$as_me: error: cannot compute suffix of object files: cannot compile
2339See \`config.log' for more details." >&2;}
2340   { (exit 1); exit 1; }; }
2341fi
2342
2343rm -f conftest.$ac_cv_objext conftest.$ac_ext
2344fi
2345{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2346echo "${ECHO_T}$ac_cv_objext" >&6; }
2347OBJEXT=$ac_cv_objext
2348ac_objext=$OBJEXT
2349{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2350echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2351if test "${ac_cv_c_compiler_gnu+set}" = set; then
2352  echo $ECHO_N "(cached) $ECHO_C" >&6
2353else
2354  cat >conftest.$ac_ext <<_ACEOF
2355/* confdefs.h.  */
2356_ACEOF
2357cat confdefs.h >>conftest.$ac_ext
2358cat >>conftest.$ac_ext <<_ACEOF
2359/* end confdefs.h.  */
2360
2361int
2362main ()
2363{
2364#ifndef __GNUC__
2365       choke me
2366#endif
2367
2368  ;
2369  return 0;
2370}
2371_ACEOF
2372rm -f conftest.$ac_objext
2373if { (ac_try="$ac_compile"
2374case "(($ac_try" in
2375  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2376  *) ac_try_echo=$ac_try;;
2377esac
2378eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2379  (eval "$ac_compile") 2>conftest.er1
2380  ac_status=$?
2381  grep -v '^ *+' conftest.er1 >conftest.err
2382  rm -f conftest.er1
2383  cat conftest.err >&5
2384  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2385  (exit $ac_status); } &&
2386	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2387  { (case "(($ac_try" in
2388  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2389  *) ac_try_echo=$ac_try;;
2390esac
2391eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2392  (eval "$ac_try") 2>&5
2393  ac_status=$?
2394  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2395  (exit $ac_status); }; } &&
2396	 { ac_try='test -s conftest.$ac_objext'
2397  { (case "(($ac_try" in
2398  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2399  *) ac_try_echo=$ac_try;;
2400esac
2401eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2402  (eval "$ac_try") 2>&5
2403  ac_status=$?
2404  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2405  (exit $ac_status); }; }; then
2406  ac_compiler_gnu=yes
2407else
2408  echo "$as_me: failed program was:" >&5
2409sed 's/^/| /' conftest.$ac_ext >&5
2410
2411	ac_compiler_gnu=no
2412fi
2413
2414rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2415ac_cv_c_compiler_gnu=$ac_compiler_gnu
2416
2417fi
2418{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2419echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2420GCC=`test $ac_compiler_gnu = yes && echo yes`
2421ac_test_CFLAGS=${CFLAGS+set}
2422ac_save_CFLAGS=$CFLAGS
2423{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2424echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2425if test "${ac_cv_prog_cc_g+set}" = set; then
2426  echo $ECHO_N "(cached) $ECHO_C" >&6
2427else
2428  ac_save_c_werror_flag=$ac_c_werror_flag
2429   ac_c_werror_flag=yes
2430   ac_cv_prog_cc_g=no
2431   CFLAGS="-g"
2432   cat >conftest.$ac_ext <<_ACEOF
2433/* confdefs.h.  */
2434_ACEOF
2435cat confdefs.h >>conftest.$ac_ext
2436cat >>conftest.$ac_ext <<_ACEOF
2437/* end confdefs.h.  */
2438
2439int
2440main ()
2441{
2442
2443  ;
2444  return 0;
2445}
2446_ACEOF
2447rm -f conftest.$ac_objext
2448if { (ac_try="$ac_compile"
2449case "(($ac_try" in
2450  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2451  *) ac_try_echo=$ac_try;;
2452esac
2453eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2454  (eval "$ac_compile") 2>conftest.er1
2455  ac_status=$?
2456  grep -v '^ *+' conftest.er1 >conftest.err
2457  rm -f conftest.er1
2458  cat conftest.err >&5
2459  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2460  (exit $ac_status); } &&
2461	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2462  { (case "(($ac_try" in
2463  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2464  *) ac_try_echo=$ac_try;;
2465esac
2466eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2467  (eval "$ac_try") 2>&5
2468  ac_status=$?
2469  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2470  (exit $ac_status); }; } &&
2471	 { ac_try='test -s conftest.$ac_objext'
2472  { (case "(($ac_try" in
2473  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2474  *) ac_try_echo=$ac_try;;
2475esac
2476eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2477  (eval "$ac_try") 2>&5
2478  ac_status=$?
2479  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2480  (exit $ac_status); }; }; then
2481  ac_cv_prog_cc_g=yes
2482else
2483  echo "$as_me: failed program was:" >&5
2484sed 's/^/| /' conftest.$ac_ext >&5
2485
2486	CFLAGS=""
2487      cat >conftest.$ac_ext <<_ACEOF
2488/* confdefs.h.  */
2489_ACEOF
2490cat confdefs.h >>conftest.$ac_ext
2491cat >>conftest.$ac_ext <<_ACEOF
2492/* end confdefs.h.  */
2493
2494int
2495main ()
2496{
2497
2498  ;
2499  return 0;
2500}
2501_ACEOF
2502rm -f conftest.$ac_objext
2503if { (ac_try="$ac_compile"
2504case "(($ac_try" in
2505  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2506  *) ac_try_echo=$ac_try;;
2507esac
2508eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2509  (eval "$ac_compile") 2>conftest.er1
2510  ac_status=$?
2511  grep -v '^ *+' conftest.er1 >conftest.err
2512  rm -f conftest.er1
2513  cat conftest.err >&5
2514  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2515  (exit $ac_status); } &&
2516	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2517  { (case "(($ac_try" in
2518  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2519  *) ac_try_echo=$ac_try;;
2520esac
2521eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2522  (eval "$ac_try") 2>&5
2523  ac_status=$?
2524  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2525  (exit $ac_status); }; } &&
2526	 { ac_try='test -s conftest.$ac_objext'
2527  { (case "(($ac_try" in
2528  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2529  *) ac_try_echo=$ac_try;;
2530esac
2531eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2532  (eval "$ac_try") 2>&5
2533  ac_status=$?
2534  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2535  (exit $ac_status); }; }; then
2536  :
2537else
2538  echo "$as_me: failed program was:" >&5
2539sed 's/^/| /' conftest.$ac_ext >&5
2540
2541	ac_c_werror_flag=$ac_save_c_werror_flag
2542	 CFLAGS="-g"
2543	 cat >conftest.$ac_ext <<_ACEOF
2544/* confdefs.h.  */
2545_ACEOF
2546cat confdefs.h >>conftest.$ac_ext
2547cat >>conftest.$ac_ext <<_ACEOF
2548/* end confdefs.h.  */
2549
2550int
2551main ()
2552{
2553
2554  ;
2555  return 0;
2556}
2557_ACEOF
2558rm -f conftest.$ac_objext
2559if { (ac_try="$ac_compile"
2560case "(($ac_try" in
2561  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2562  *) ac_try_echo=$ac_try;;
2563esac
2564eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2565  (eval "$ac_compile") 2>conftest.er1
2566  ac_status=$?
2567  grep -v '^ *+' conftest.er1 >conftest.err
2568  rm -f conftest.er1
2569  cat conftest.err >&5
2570  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2571  (exit $ac_status); } &&
2572	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2573  { (case "(($ac_try" in
2574  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2575  *) ac_try_echo=$ac_try;;
2576esac
2577eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2578  (eval "$ac_try") 2>&5
2579  ac_status=$?
2580  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2581  (exit $ac_status); }; } &&
2582	 { ac_try='test -s conftest.$ac_objext'
2583  { (case "(($ac_try" in
2584  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2585  *) ac_try_echo=$ac_try;;
2586esac
2587eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2588  (eval "$ac_try") 2>&5
2589  ac_status=$?
2590  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2591  (exit $ac_status); }; }; then
2592  ac_cv_prog_cc_g=yes
2593else
2594  echo "$as_me: failed program was:" >&5
2595sed 's/^/| /' conftest.$ac_ext >&5
2596
2597
2598fi
2599
2600rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2601fi
2602
2603rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2604fi
2605
2606rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2607   ac_c_werror_flag=$ac_save_c_werror_flag
2608fi
2609{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2610echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2611if test "$ac_test_CFLAGS" = set; then
2612  CFLAGS=$ac_save_CFLAGS
2613elif test $ac_cv_prog_cc_g = yes; then
2614  if test "$GCC" = yes; then
2615    CFLAGS="-g -O2"
2616  else
2617    CFLAGS="-g"
2618  fi
2619else
2620  if test "$GCC" = yes; then
2621    CFLAGS="-O2"
2622  else
2623    CFLAGS=
2624  fi
2625fi
2626{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2627echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2628if test "${ac_cv_prog_cc_c89+set}" = set; then
2629  echo $ECHO_N "(cached) $ECHO_C" >&6
2630else
2631  ac_cv_prog_cc_c89=no
2632ac_save_CC=$CC
2633cat >conftest.$ac_ext <<_ACEOF
2634/* confdefs.h.  */
2635_ACEOF
2636cat confdefs.h >>conftest.$ac_ext
2637cat >>conftest.$ac_ext <<_ACEOF
2638/* end confdefs.h.  */
2639#include <stdarg.h>
2640#include <stdio.h>
2641#include <sys/types.h>
2642#include <sys/stat.h>
2643/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2644struct buf { int x; };
2645FILE * (*rcsopen) (struct buf *, struct stat *, int);
2646static char *e (p, i)
2647     char **p;
2648     int i;
2649{
2650  return p[i];
2651}
2652static char *f (char * (*g) (char **, int), char **p, ...)
2653{
2654  char *s;
2655  va_list v;
2656  va_start (v,p);
2657  s = g (p, va_arg (v,int));
2658  va_end (v);
2659  return s;
2660}
2661
2662/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2663   function prototypes and stuff, but not '\xHH' hex character constants.
2664   These don't provoke an error unfortunately, instead are silently treated
2665   as 'x'.  The following induces an error, until -std is added to get
2666   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2667   array size at least.  It's necessary to write '\x00'==0 to get something
2668   that's true only with -std.  */
2669int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2670
2671/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2672   inside strings and character constants.  */
2673#define FOO(x) 'x'
2674int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2675
2676int test (int i, double x);
2677struct s1 {int (*f) (int a);};
2678struct s2 {int (*f) (double a);};
2679int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2680int argc;
2681char **argv;
2682int
2683main ()
2684{
2685return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2686  ;
2687  return 0;
2688}
2689_ACEOF
2690for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2691	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2692do
2693  CC="$ac_save_CC $ac_arg"
2694  rm -f conftest.$ac_objext
2695if { (ac_try="$ac_compile"
2696case "(($ac_try" in
2697  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2698  *) ac_try_echo=$ac_try;;
2699esac
2700eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2701  (eval "$ac_compile") 2>conftest.er1
2702  ac_status=$?
2703  grep -v '^ *+' conftest.er1 >conftest.err
2704  rm -f conftest.er1
2705  cat conftest.err >&5
2706  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2707  (exit $ac_status); } &&
2708	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2709  { (case "(($ac_try" in
2710  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2711  *) ac_try_echo=$ac_try;;
2712esac
2713eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2714  (eval "$ac_try") 2>&5
2715  ac_status=$?
2716  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2717  (exit $ac_status); }; } &&
2718	 { ac_try='test -s conftest.$ac_objext'
2719  { (case "(($ac_try" in
2720  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2721  *) ac_try_echo=$ac_try;;
2722esac
2723eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2724  (eval "$ac_try") 2>&5
2725  ac_status=$?
2726  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2727  (exit $ac_status); }; }; then
2728  ac_cv_prog_cc_c89=$ac_arg
2729else
2730  echo "$as_me: failed program was:" >&5
2731sed 's/^/| /' conftest.$ac_ext >&5
2732
2733
2734fi
2735
2736rm -f core conftest.err conftest.$ac_objext
2737  test "x$ac_cv_prog_cc_c89" != "xno" && break
2738done
2739rm -f conftest.$ac_ext
2740CC=$ac_save_CC
2741
2742fi
2743# AC_CACHE_VAL
2744case "x$ac_cv_prog_cc_c89" in
2745  x)
2746    { echo "$as_me:$LINENO: result: none needed" >&5
2747echo "${ECHO_T}none needed" >&6; } ;;
2748  xno)
2749    { echo "$as_me:$LINENO: result: unsupported" >&5
2750echo "${ECHO_T}unsupported" >&6; } ;;
2751  *)
2752    CC="$CC $ac_cv_prog_cc_c89"
2753    { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2754echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2755esac
2756
2757
2758ac_ext=c
2759ac_cpp='$CPP $CPPFLAGS'
2760ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2761ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2762ac_compiler_gnu=$ac_cv_c_compiler_gnu
2763
2764ac_ext=cpp
2765ac_cpp='$CXXCPP $CPPFLAGS'
2766ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2767ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2768ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2769if test -z "$CXX"; then
2770  if test -n "$CCC"; then
2771    CXX=$CCC
2772  else
2773    if test -n "$ac_tool_prefix"; then
2774  for ac_prog in clang++ llvm-g++ g++
2775  do
2776    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2777set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2778{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2779echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2780if test "${ac_cv_prog_CXX+set}" = set; then
2781  echo $ECHO_N "(cached) $ECHO_C" >&6
2782else
2783  if test -n "$CXX"; then
2784  ac_cv_prog_CXX="$CXX" # Let the user override the test.
2785else
2786as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2787for as_dir in $PATH
2788do
2789  IFS=$as_save_IFS
2790  test -z "$as_dir" && as_dir=.
2791  for ac_exec_ext in '' $ac_executable_extensions; do
2792  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2793    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2794    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2795    break 2
2796  fi
2797done
2798done
2799IFS=$as_save_IFS
2800
2801fi
2802fi
2803CXX=$ac_cv_prog_CXX
2804if test -n "$CXX"; then
2805  { echo "$as_me:$LINENO: result: $CXX" >&5
2806echo "${ECHO_T}$CXX" >&6; }
2807else
2808  { echo "$as_me:$LINENO: result: no" >&5
2809echo "${ECHO_T}no" >&6; }
2810fi
2811
2812
2813    test -n "$CXX" && break
2814  done
2815fi
2816if test -z "$CXX"; then
2817  ac_ct_CXX=$CXX
2818  for ac_prog in clang++ llvm-g++ g++
2819do
2820  # Extract the first word of "$ac_prog", so it can be a program name with args.
2821set dummy $ac_prog; ac_word=$2
2822{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2823echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2824if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2825  echo $ECHO_N "(cached) $ECHO_C" >&6
2826else
2827  if test -n "$ac_ct_CXX"; then
2828  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2829else
2830as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2831for as_dir in $PATH
2832do
2833  IFS=$as_save_IFS
2834  test -z "$as_dir" && as_dir=.
2835  for ac_exec_ext in '' $ac_executable_extensions; do
2836  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2837    ac_cv_prog_ac_ct_CXX="$ac_prog"
2838    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2839    break 2
2840  fi
2841done
2842done
2843IFS=$as_save_IFS
2844
2845fi
2846fi
2847ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2848if test -n "$ac_ct_CXX"; then
2849  { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2850echo "${ECHO_T}$ac_ct_CXX" >&6; }
2851else
2852  { echo "$as_me:$LINENO: result: no" >&5
2853echo "${ECHO_T}no" >&6; }
2854fi
2855
2856
2857  test -n "$ac_ct_CXX" && break
2858done
2859
2860  if test "x$ac_ct_CXX" = x; then
2861    CXX="g++"
2862  else
2863    case $cross_compiling:$ac_tool_warned in
2864yes:)
2865{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2866whose name does not start with the host triplet.  If you think this
2867configuration is useful to you, please write to autoconf@gnu.org." >&5
2868echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2869whose name does not start with the host triplet.  If you think this
2870configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2871ac_tool_warned=yes ;;
2872esac
2873    CXX=$ac_ct_CXX
2874  fi
2875fi
2876
2877  fi
2878fi
2879# Provide some information about the compiler.
2880echo "$as_me:$LINENO: checking for C++ compiler version" >&5
2881ac_compiler=`set X $ac_compile; echo $2`
2882{ (ac_try="$ac_compiler --version >&5"
2883case "(($ac_try" in
2884  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2885  *) ac_try_echo=$ac_try;;
2886esac
2887eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2888  (eval "$ac_compiler --version >&5") 2>&5
2889  ac_status=$?
2890  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2891  (exit $ac_status); }
2892{ (ac_try="$ac_compiler -v >&5"
2893case "(($ac_try" in
2894  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2895  *) ac_try_echo=$ac_try;;
2896esac
2897eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2898  (eval "$ac_compiler -v >&5") 2>&5
2899  ac_status=$?
2900  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2901  (exit $ac_status); }
2902{ (ac_try="$ac_compiler -V >&5"
2903case "(($ac_try" in
2904  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2905  *) ac_try_echo=$ac_try;;
2906esac
2907eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2908  (eval "$ac_compiler -V >&5") 2>&5
2909  ac_status=$?
2910  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2911  (exit $ac_status); }
2912
2913{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2914echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
2915if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2916  echo $ECHO_N "(cached) $ECHO_C" >&6
2917else
2918  cat >conftest.$ac_ext <<_ACEOF
2919/* confdefs.h.  */
2920_ACEOF
2921cat confdefs.h >>conftest.$ac_ext
2922cat >>conftest.$ac_ext <<_ACEOF
2923/* end confdefs.h.  */
2924
2925int
2926main ()
2927{
2928#ifndef __GNUC__
2929       choke me
2930#endif
2931
2932  ;
2933  return 0;
2934}
2935_ACEOF
2936rm -f conftest.$ac_objext
2937if { (ac_try="$ac_compile"
2938case "(($ac_try" in
2939  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2940  *) ac_try_echo=$ac_try;;
2941esac
2942eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2943  (eval "$ac_compile") 2>conftest.er1
2944  ac_status=$?
2945  grep -v '^ *+' conftest.er1 >conftest.err
2946  rm -f conftest.er1
2947  cat conftest.err >&5
2948  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2949  (exit $ac_status); } &&
2950	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2951  { (case "(($ac_try" in
2952  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2953  *) ac_try_echo=$ac_try;;
2954esac
2955eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2956  (eval "$ac_try") 2>&5
2957  ac_status=$?
2958  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2959  (exit $ac_status); }; } &&
2960	 { ac_try='test -s conftest.$ac_objext'
2961  { (case "(($ac_try" in
2962  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2963  *) ac_try_echo=$ac_try;;
2964esac
2965eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2966  (eval "$ac_try") 2>&5
2967  ac_status=$?
2968  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2969  (exit $ac_status); }; }; then
2970  ac_compiler_gnu=yes
2971else
2972  echo "$as_me: failed program was:" >&5
2973sed 's/^/| /' conftest.$ac_ext >&5
2974
2975	ac_compiler_gnu=no
2976fi
2977
2978rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2979ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2980
2981fi
2982{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2983echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
2984GXX=`test $ac_compiler_gnu = yes && echo yes`
2985ac_test_CXXFLAGS=${CXXFLAGS+set}
2986ac_save_CXXFLAGS=$CXXFLAGS
2987{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2988echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
2989if test "${ac_cv_prog_cxx_g+set}" = set; then
2990  echo $ECHO_N "(cached) $ECHO_C" >&6
2991else
2992  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
2993   ac_cxx_werror_flag=yes
2994   ac_cv_prog_cxx_g=no
2995   CXXFLAGS="-g"
2996   cat >conftest.$ac_ext <<_ACEOF
2997/* confdefs.h.  */
2998_ACEOF
2999cat confdefs.h >>conftest.$ac_ext
3000cat >>conftest.$ac_ext <<_ACEOF
3001/* end confdefs.h.  */
3002
3003int
3004main ()
3005{
3006
3007  ;
3008  return 0;
3009}
3010_ACEOF
3011rm -f conftest.$ac_objext
3012if { (ac_try="$ac_compile"
3013case "(($ac_try" in
3014  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3015  *) ac_try_echo=$ac_try;;
3016esac
3017eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3018  (eval "$ac_compile") 2>conftest.er1
3019  ac_status=$?
3020  grep -v '^ *+' conftest.er1 >conftest.err
3021  rm -f conftest.er1
3022  cat conftest.err >&5
3023  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3024  (exit $ac_status); } &&
3025	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3026  { (case "(($ac_try" in
3027  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3028  *) ac_try_echo=$ac_try;;
3029esac
3030eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3031  (eval "$ac_try") 2>&5
3032  ac_status=$?
3033  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3034  (exit $ac_status); }; } &&
3035	 { ac_try='test -s conftest.$ac_objext'
3036  { (case "(($ac_try" in
3037  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3038  *) ac_try_echo=$ac_try;;
3039esac
3040eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3041  (eval "$ac_try") 2>&5
3042  ac_status=$?
3043  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3044  (exit $ac_status); }; }; then
3045  ac_cv_prog_cxx_g=yes
3046else
3047  echo "$as_me: failed program was:" >&5
3048sed 's/^/| /' conftest.$ac_ext >&5
3049
3050	CXXFLAGS=""
3051      cat >conftest.$ac_ext <<_ACEOF
3052/* confdefs.h.  */
3053_ACEOF
3054cat confdefs.h >>conftest.$ac_ext
3055cat >>conftest.$ac_ext <<_ACEOF
3056/* end confdefs.h.  */
3057
3058int
3059main ()
3060{
3061
3062  ;
3063  return 0;
3064}
3065_ACEOF
3066rm -f conftest.$ac_objext
3067if { (ac_try="$ac_compile"
3068case "(($ac_try" in
3069  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3070  *) ac_try_echo=$ac_try;;
3071esac
3072eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3073  (eval "$ac_compile") 2>conftest.er1
3074  ac_status=$?
3075  grep -v '^ *+' conftest.er1 >conftest.err
3076  rm -f conftest.er1
3077  cat conftest.err >&5
3078  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3079  (exit $ac_status); } &&
3080	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3081  { (case "(($ac_try" in
3082  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3083  *) ac_try_echo=$ac_try;;
3084esac
3085eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3086  (eval "$ac_try") 2>&5
3087  ac_status=$?
3088  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3089  (exit $ac_status); }; } &&
3090	 { ac_try='test -s conftest.$ac_objext'
3091  { (case "(($ac_try" in
3092  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3093  *) ac_try_echo=$ac_try;;
3094esac
3095eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3096  (eval "$ac_try") 2>&5
3097  ac_status=$?
3098  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3099  (exit $ac_status); }; }; then
3100  :
3101else
3102  echo "$as_me: failed program was:" >&5
3103sed 's/^/| /' conftest.$ac_ext >&5
3104
3105	ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3106	 CXXFLAGS="-g"
3107	 cat >conftest.$ac_ext <<_ACEOF
3108/* confdefs.h.  */
3109_ACEOF
3110cat confdefs.h >>conftest.$ac_ext
3111cat >>conftest.$ac_ext <<_ACEOF
3112/* end confdefs.h.  */
3113
3114int
3115main ()
3116{
3117
3118  ;
3119  return 0;
3120}
3121_ACEOF
3122rm -f conftest.$ac_objext
3123if { (ac_try="$ac_compile"
3124case "(($ac_try" in
3125  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3126  *) ac_try_echo=$ac_try;;
3127esac
3128eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3129  (eval "$ac_compile") 2>conftest.er1
3130  ac_status=$?
3131  grep -v '^ *+' conftest.er1 >conftest.err
3132  rm -f conftest.er1
3133  cat conftest.err >&5
3134  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3135  (exit $ac_status); } &&
3136	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3137  { (case "(($ac_try" in
3138  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3139  *) ac_try_echo=$ac_try;;
3140esac
3141eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3142  (eval "$ac_try") 2>&5
3143  ac_status=$?
3144  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3145  (exit $ac_status); }; } &&
3146	 { ac_try='test -s conftest.$ac_objext'
3147  { (case "(($ac_try" in
3148  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3149  *) ac_try_echo=$ac_try;;
3150esac
3151eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3152  (eval "$ac_try") 2>&5
3153  ac_status=$?
3154  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3155  (exit $ac_status); }; }; then
3156  ac_cv_prog_cxx_g=yes
3157else
3158  echo "$as_me: failed program was:" >&5
3159sed 's/^/| /' conftest.$ac_ext >&5
3160
3161
3162fi
3163
3164rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3165fi
3166
3167rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3168fi
3169
3170rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3171   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3172fi
3173{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3174echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3175if test "$ac_test_CXXFLAGS" = set; then
3176  CXXFLAGS=$ac_save_CXXFLAGS
3177elif test $ac_cv_prog_cxx_g = yes; then
3178  if test "$GXX" = yes; then
3179    CXXFLAGS="-g -O2"
3180  else
3181    CXXFLAGS="-g"
3182  fi
3183else
3184  if test "$GXX" = yes; then
3185    CXXFLAGS="-O2"
3186  else
3187    CXXFLAGS=
3188  fi
3189fi
3190ac_ext=c
3191ac_cpp='$CPP $CPPFLAGS'
3192ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3193ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3194ac_compiler_gnu=$ac_cv_c_compiler_gnu
3195
3196ac_ext=c
3197ac_cpp='$CPP $CPPFLAGS'
3198ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3199ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3200ac_compiler_gnu=$ac_cv_c_compiler_gnu
3201{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3202echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3203# On Suns, sometimes $CPP names a directory.
3204if test -n "$CPP" && test -d "$CPP"; then
3205  CPP=
3206fi
3207if test -z "$CPP"; then
3208  if test "${ac_cv_prog_CPP+set}" = set; then
3209  echo $ECHO_N "(cached) $ECHO_C" >&6
3210else
3211      # Double quotes because CPP needs to be expanded
3212    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3213    do
3214      ac_preproc_ok=false
3215for ac_c_preproc_warn_flag in '' yes
3216do
3217  # Use a header file that comes with gcc, so configuring glibc
3218  # with a fresh cross-compiler works.
3219  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3220  # <limits.h> exists even on freestanding compilers.
3221  # On the NeXT, cc -E runs the code through the compiler's parser,
3222  # not just through cpp. "Syntax error" is here to catch this case.
3223  cat >conftest.$ac_ext <<_ACEOF
3224/* confdefs.h.  */
3225_ACEOF
3226cat confdefs.h >>conftest.$ac_ext
3227cat >>conftest.$ac_ext <<_ACEOF
3228/* end confdefs.h.  */
3229#ifdef __STDC__
3230# include <limits.h>
3231#else
3232# include <assert.h>
3233#endif
3234		     Syntax error
3235_ACEOF
3236if { (ac_try="$ac_cpp conftest.$ac_ext"
3237case "(($ac_try" in
3238  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3239  *) ac_try_echo=$ac_try;;
3240esac
3241eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3242  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3243  ac_status=$?
3244  grep -v '^ *+' conftest.er1 >conftest.err
3245  rm -f conftest.er1
3246  cat conftest.err >&5
3247  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3248  (exit $ac_status); } >/dev/null; then
3249  if test -s conftest.err; then
3250    ac_cpp_err=$ac_c_preproc_warn_flag
3251    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3252  else
3253    ac_cpp_err=
3254  fi
3255else
3256  ac_cpp_err=yes
3257fi
3258if test -z "$ac_cpp_err"; then
3259  :
3260else
3261  echo "$as_me: failed program was:" >&5
3262sed 's/^/| /' conftest.$ac_ext >&5
3263
3264  # Broken: fails on valid input.
3265continue
3266fi
3267
3268rm -f conftest.err conftest.$ac_ext
3269
3270  # OK, works on sane cases.  Now check whether nonexistent headers
3271  # can be detected and how.
3272  cat >conftest.$ac_ext <<_ACEOF
3273/* confdefs.h.  */
3274_ACEOF
3275cat confdefs.h >>conftest.$ac_ext
3276cat >>conftest.$ac_ext <<_ACEOF
3277/* end confdefs.h.  */
3278#include <ac_nonexistent.h>
3279_ACEOF
3280if { (ac_try="$ac_cpp conftest.$ac_ext"
3281case "(($ac_try" in
3282  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3283  *) ac_try_echo=$ac_try;;
3284esac
3285eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3286  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3287  ac_status=$?
3288  grep -v '^ *+' conftest.er1 >conftest.err
3289  rm -f conftest.er1
3290  cat conftest.err >&5
3291  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3292  (exit $ac_status); } >/dev/null; then
3293  if test -s conftest.err; then
3294    ac_cpp_err=$ac_c_preproc_warn_flag
3295    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3296  else
3297    ac_cpp_err=
3298  fi
3299else
3300  ac_cpp_err=yes
3301fi
3302if test -z "$ac_cpp_err"; then
3303  # Broken: success on invalid input.
3304continue
3305else
3306  echo "$as_me: failed program was:" >&5
3307sed 's/^/| /' conftest.$ac_ext >&5
3308
3309  # Passes both tests.
3310ac_preproc_ok=:
3311break
3312fi
3313
3314rm -f conftest.err conftest.$ac_ext
3315
3316done
3317# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3318rm -f conftest.err conftest.$ac_ext
3319if $ac_preproc_ok; then
3320  break
3321fi
3322
3323    done
3324    ac_cv_prog_CPP=$CPP
3325
3326fi
3327  CPP=$ac_cv_prog_CPP
3328else
3329  ac_cv_prog_CPP=$CPP
3330fi
3331{ echo "$as_me:$LINENO: result: $CPP" >&5
3332echo "${ECHO_T}$CPP" >&6; }
3333ac_preproc_ok=false
3334for ac_c_preproc_warn_flag in '' yes
3335do
3336  # Use a header file that comes with gcc, so configuring glibc
3337  # with a fresh cross-compiler works.
3338  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3339  # <limits.h> exists even on freestanding compilers.
3340  # On the NeXT, cc -E runs the code through the compiler's parser,
3341  # not just through cpp. "Syntax error" is here to catch this case.
3342  cat >conftest.$ac_ext <<_ACEOF
3343/* confdefs.h.  */
3344_ACEOF
3345cat confdefs.h >>conftest.$ac_ext
3346cat >>conftest.$ac_ext <<_ACEOF
3347/* end confdefs.h.  */
3348#ifdef __STDC__
3349# include <limits.h>
3350#else
3351# include <assert.h>
3352#endif
3353		     Syntax error
3354_ACEOF
3355if { (ac_try="$ac_cpp conftest.$ac_ext"
3356case "(($ac_try" in
3357  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3358  *) ac_try_echo=$ac_try;;
3359esac
3360eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3361  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3362  ac_status=$?
3363  grep -v '^ *+' conftest.er1 >conftest.err
3364  rm -f conftest.er1
3365  cat conftest.err >&5
3366  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3367  (exit $ac_status); } >/dev/null; then
3368  if test -s conftest.err; then
3369    ac_cpp_err=$ac_c_preproc_warn_flag
3370    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3371  else
3372    ac_cpp_err=
3373  fi
3374else
3375  ac_cpp_err=yes
3376fi
3377if test -z "$ac_cpp_err"; then
3378  :
3379else
3380  echo "$as_me: failed program was:" >&5
3381sed 's/^/| /' conftest.$ac_ext >&5
3382
3383  # Broken: fails on valid input.
3384continue
3385fi
3386
3387rm -f conftest.err conftest.$ac_ext
3388
3389  # OK, works on sane cases.  Now check whether nonexistent headers
3390  # can be detected and how.
3391  cat >conftest.$ac_ext <<_ACEOF
3392/* confdefs.h.  */
3393_ACEOF
3394cat confdefs.h >>conftest.$ac_ext
3395cat >>conftest.$ac_ext <<_ACEOF
3396/* end confdefs.h.  */
3397#include <ac_nonexistent.h>
3398_ACEOF
3399if { (ac_try="$ac_cpp conftest.$ac_ext"
3400case "(($ac_try" in
3401  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3402  *) ac_try_echo=$ac_try;;
3403esac
3404eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3405  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3406  ac_status=$?
3407  grep -v '^ *+' conftest.er1 >conftest.err
3408  rm -f conftest.er1
3409  cat conftest.err >&5
3410  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3411  (exit $ac_status); } >/dev/null; then
3412  if test -s conftest.err; then
3413    ac_cpp_err=$ac_c_preproc_warn_flag
3414    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3415  else
3416    ac_cpp_err=
3417  fi
3418else
3419  ac_cpp_err=yes
3420fi
3421if test -z "$ac_cpp_err"; then
3422  # Broken: success on invalid input.
3423continue
3424else
3425  echo "$as_me: failed program was:" >&5
3426sed 's/^/| /' conftest.$ac_ext >&5
3427
3428  # Passes both tests.
3429ac_preproc_ok=:
3430break
3431fi
3432
3433rm -f conftest.err conftest.$ac_ext
3434
3435done
3436# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3437rm -f conftest.err conftest.$ac_ext
3438if $ac_preproc_ok; then
3439  :
3440else
3441  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3442See \`config.log' for more details." >&5
3443echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3444See \`config.log' for more details." >&2;}
3445   { (exit 1); exit 1; }; }
3446fi
3447
3448ac_ext=c
3449ac_cpp='$CPP $CPPFLAGS'
3450ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3451ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3452ac_compiler_gnu=$ac_cv_c_compiler_gnu
3453
3454
3455
3456
3457if test -d ${srcdir}/projects/llvm-gcc ; then
3458  subdirs="$subdirs projects/llvm-gcc"
3459
3460fi
3461
3462if test -d ${srcdir}/projects/test-suite ; then
3463  subdirs="$subdirs projects/test-suite"
3464
3465fi
3466
3467if test -d ${srcdir}/projects/llvm-test ; then
3468  subdirs="$subdirs projects/llvm-test"
3469
3470fi
3471
3472if test -d ${srcdir}/projects/poolalloc ; then
3473  subdirs="$subdirs projects/poolalloc"
3474
3475fi
3476
3477if test -d ${srcdir}/projects/llvm-poolalloc ; then
3478  subdirs="$subdirs projects/llvm-poolalloc"
3479
3480fi
3481
3482for i in `ls ${srcdir}/projects`
3483do
3484  if test -d ${srcdir}/projects/${i} ; then
3485    case ${i} in
3486      sample)       subdirs="$subdirs projects/sample"
3487    ;;
3488      privbracket)  subdirs="$subdirs projects/privbracket"
3489 ;;
3490      llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
3491 ;;
3492      llvm-reopt)   subdirs="$subdirs projects/llvm-reopt"
3493;;
3494      llvm-java)    subdirs="$subdirs projects/llvm-java"
3495 ;;
3496      llvm-tv)      subdirs="$subdirs projects/llvm-tv"
3497   ;;
3498      safecode)     subdirs="$subdirs projects/safecode"
3499 ;;
3500      llvm-kernel)  subdirs="$subdirs projects/llvm-kernel"
3501 ;;
3502      compiler-rt)       ;;
3503      llvm-gcc)       ;;
3504      test-suite)     ;;
3505      llvm-test)      ;;
3506      poolalloc)      ;;
3507      llvm-poolalloc) ;;
3508      *)
3509        { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
3510echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
3511        ;;
3512    esac
3513  fi
3514done
3515
3516# Check whether --enable-polly was given.
3517if test "${enable_polly+set}" = set; then
3518  enableval=$enable_polly;
3519else
3520  enableval=default
3521fi
3522
3523case "$enableval" in
3524  yes) ENABLE_POLLY=1
3525 ;;
3526  no)  ENABLE_POLLY=0
3527 ;;
3528  default) ENABLE_POLLY=1
3529 ;;
3530  *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&5
3531echo "$as_me: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&2;}
3532   { (exit 1); exit 1; }; } ;;
3533esac
3534
3535
3536if (test -d ${srcdir}/tools/polly) && (test $ENABLE_POLLY -eq 1) ; then
3537  LLVM_HAS_POLLY=1
3538
3539  subdirs="$subdirs tools/polly"
3540
3541fi
3542
3543
3544# Make sure we can run config.sub.
3545$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3546  { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3547echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3548   { (exit 1); exit 1; }; }
3549
3550{ echo "$as_me:$LINENO: checking build system type" >&5
3551echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
3552if test "${ac_cv_build+set}" = set; then
3553  echo $ECHO_N "(cached) $ECHO_C" >&6
3554else
3555  ac_build_alias=$build_alias
3556test "x$ac_build_alias" = x &&
3557  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3558test "x$ac_build_alias" = x &&
3559  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3560echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3561   { (exit 1); exit 1; }; }
3562ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3563  { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3564echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3565   { (exit 1); exit 1; }; }
3566
3567fi
3568{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3569echo "${ECHO_T}$ac_cv_build" >&6; }
3570case $ac_cv_build in
3571*-*-*) ;;
3572*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3573echo "$as_me: error: invalid value of canonical build" >&2;}
3574   { (exit 1); exit 1; }; };;
3575esac
3576build=$ac_cv_build
3577ac_save_IFS=$IFS; IFS='-'
3578set x $ac_cv_build
3579shift
3580build_cpu=$1
3581build_vendor=$2
3582shift; shift
3583# Remember, the first character of IFS is used to create $*,
3584# except with old shells:
3585build_os=$*
3586IFS=$ac_save_IFS
3587case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3588
3589
3590{ echo "$as_me:$LINENO: checking host system type" >&5
3591echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3592if test "${ac_cv_host+set}" = set; then
3593  echo $ECHO_N "(cached) $ECHO_C" >&6
3594else
3595  if test "x$host_alias" = x; then
3596  ac_cv_host=$ac_cv_build
3597else
3598  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3599    { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3600echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3601   { (exit 1); exit 1; }; }
3602fi
3603
3604fi
3605{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3606echo "${ECHO_T}$ac_cv_host" >&6; }
3607case $ac_cv_host in
3608*-*-*) ;;
3609*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3610echo "$as_me: error: invalid value of canonical host" >&2;}
3611   { (exit 1); exit 1; }; };;
3612esac
3613host=$ac_cv_host
3614ac_save_IFS=$IFS; IFS='-'
3615set x $ac_cv_host
3616shift
3617host_cpu=$1
3618host_vendor=$2
3619shift; shift
3620# Remember, the first character of IFS is used to create $*,
3621# except with old shells:
3622host_os=$*
3623IFS=$ac_save_IFS
3624case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3625
3626
3627{ echo "$as_me:$LINENO: checking target system type" >&5
3628echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
3629if test "${ac_cv_target+set}" = set; then
3630  echo $ECHO_N "(cached) $ECHO_C" >&6
3631else
3632  if test "x$target_alias" = x; then
3633  ac_cv_target=$ac_cv_host
3634else
3635  ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3636    { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
3637echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
3638   { (exit 1); exit 1; }; }
3639fi
3640
3641fi
3642{ echo "$as_me:$LINENO: result: $ac_cv_target" >&5
3643echo "${ECHO_T}$ac_cv_target" >&6; }
3644case $ac_cv_target in
3645*-*-*) ;;
3646*) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
3647echo "$as_me: error: invalid value of canonical target" >&2;}
3648   { (exit 1); exit 1; }; };;
3649esac
3650target=$ac_cv_target
3651ac_save_IFS=$IFS; IFS='-'
3652set x $ac_cv_target
3653shift
3654target_cpu=$1
3655target_vendor=$2
3656shift; shift
3657# Remember, the first character of IFS is used to create $*,
3658# except with old shells:
3659target_os=$*
3660IFS=$ac_save_IFS
3661case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3662
3663
3664# The aliases save the names the user supplied, while $host etc.
3665# will get canonicalized.
3666test -n "$target_alias" &&
3667  test "$program_prefix$program_suffix$program_transform_name" = \
3668    NONENONEs,x,x, &&
3669  program_prefix=${target_alias}-
3670
3671{ echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
3672echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
3673if test "${llvm_cv_os_type+set}" = set; then
3674  echo $ECHO_N "(cached) $ECHO_C" >&6
3675else
3676  case $host in
3677  *-*-aix*)
3678    llvm_cv_link_all_option="-Wl,--whole-archive"
3679    llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3680    llvm_cv_os_type="AIX"
3681    llvm_cv_platform_type="Unix" ;;
3682  *-*-irix*)
3683    llvm_cv_link_all_option="-Wl,--whole-archive"
3684    llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3685    llvm_cv_os_type="IRIX"
3686    llvm_cv_platform_type="Unix" ;;
3687  *-*-cygwin*)
3688    llvm_cv_link_all_option="-Wl,--whole-archive"
3689    llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3690    llvm_cv_os_type="Cygwin"
3691    llvm_cv_platform_type="Unix" ;;
3692  *-*-darwin*)
3693    llvm_cv_link_all_option="-Wl,-all_load"
3694    llvm_cv_no_link_all_option="-Wl,-noall_load"
3695    llvm_cv_os_type="Darwin"
3696    llvm_cv_platform_type="Unix" ;;
3697  *-*-minix*)
3698    llvm_cv_link_all_option="-Wl,-all_load"
3699    llvm_cv_no_link_all_option="-Wl,-noall_load"
3700    llvm_cv_os_type="Minix"
3701    llvm_cv_platform_type="Unix" ;;
3702  *-*-freebsd* | *-*-kfreebsd-gnu)
3703    llvm_cv_link_all_option="-Wl,--whole-archive"
3704    llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3705    llvm_cv_os_type="FreeBSD"
3706    llvm_cv_platform_type="Unix" ;;
3707  *-*-openbsd*)
3708    llvm_cv_link_all_option="-Wl,--whole-archive"
3709    llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3710    llvm_cv_os_type="OpenBSD"
3711    llvm_cv_platform_type="Unix" ;;
3712  *-*-netbsd*)
3713    llvm_cv_link_all_option="-Wl,--whole-archive"
3714    llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3715    llvm_cv_os_type="NetBSD"
3716    llvm_cv_platform_type="Unix" ;;
3717  *-*-dragonfly*)
3718    llvm_cv_link_all_option="-Wl,--whole-archive"
3719    llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3720    llvm_cv_os_type="DragonFly"
3721    llvm_cv_platform_type="Unix" ;;
3722  *-*-hpux*)
3723    llvm_cv_link_all_option="-Wl,--whole-archive"
3724    llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3725    llvm_cv_os_type="HP-UX"
3726    llvm_cv_platform_type="Unix" ;;
3727  *-*-interix*)
3728    llvm_cv_link_all_option="-Wl,--whole-archive"
3729    llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3730    llvm_cv_os_type="Interix"
3731    llvm_cv_platform_type="Unix" ;;
3732  *-*-linux*)
3733    llvm_cv_link_all_option="-Wl,--whole-archive"
3734    llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3735    llvm_cv_os_type="Linux"
3736    llvm_cv_platform_type="Unix" ;;
3737  *-*-gnu*)
3738    llvm_cv_link_all_option="-Wl,--whole-archive"
3739    llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3740    llvm_cv_os_type="GNU"
3741    llvm_cv_platform_type="Unix" ;;
3742  *-*-solaris*)
3743    llvm_cv_link_all_option="-Wl,-z,allextract"
3744    llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
3745    llvm_cv_os_type="SunOS"
3746    llvm_cv_platform_type="Unix" ;;
3747  *-*-auroraux*)
3748    llvm_cv_link_all_option="-Wl,-z,allextract"
3749    llvm_cv_link_all_option="-Wl,-z,defaultextract"
3750    llvm_cv_os_type="AuroraUX"
3751    llvm_cv_platform_type="Unix" ;;
3752  *-*-win32*)
3753    llvm_cv_link_all_option="-Wl,--whole-archive"
3754    llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3755    llvm_cv_os_type="Win32"
3756    llvm_cv_platform_type="Win32" ;;
3757  *-*-mingw*)
3758    llvm_cv_link_all_option="-Wl,--whole-archive"
3759    llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3760    llvm_cv_os_type="MingW"
3761    llvm_cv_platform_type="Win32" ;;
3762  *-*-haiku*)
3763    llvm_cv_link_all_option="-Wl,--whole-archive"
3764    llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3765    llvm_cv_os_type="Haiku"
3766    llvm_cv_platform_type="Unix" ;;
3767  *-unknown-eabi*)
3768    llvm_cv_link_all_option="-Wl,--whole-archive"
3769    llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3770    llvm_cv_os_type="Freestanding"
3771    llvm_cv_platform_type="Unix" ;;
3772  *-unknown-elf*)
3773    llvm_cv_link_all_option="-Wl,--whole-archive"
3774    llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3775    llvm_cv_os_type="Freestanding"
3776    llvm_cv_platform_type="Unix" ;;
3777  *)
3778    llvm_cv_link_all_option=""
3779    llvm_cv_no_link_all_option=""
3780    llvm_cv_os_type="Unknown"
3781    llvm_cv_platform_type="Unknown" ;;
3782esac
3783fi
3784{ echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
3785echo "${ECHO_T}$llvm_cv_os_type" >&6; }
3786
3787{ echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
3788echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
3789if test "${llvm_cv_target_os_type+set}" = set; then
3790  echo $ECHO_N "(cached) $ECHO_C" >&6
3791else
3792  case $target in
3793  *-*-aix*)
3794    llvm_cv_target_os_type="AIX" ;;
3795  *-*-irix*)
3796    llvm_cv_target_os_type="IRIX" ;;
3797  *-*-cygwin*)
3798    llvm_cv_target_os_type="Cygwin" ;;
3799  *-*-darwin*)
3800    llvm_cv_target_os_type="Darwin" ;;
3801  *-*-minix*)
3802    llvm_cv_target_os_type="Minix" ;;
3803  *-*-freebsd*)
3804    llvm_cv_target_os_type="FreeBSD" ;;
3805  *-*-openbsd*)
3806    llvm_cv_target_os_type="OpenBSD" ;;
3807  *-*-netbsd*)
3808    llvm_cv_target_os_type="NetBSD" ;;
3809  *-*-dragonfly*)
3810    llvm_cv_target_os_type="DragonFly" ;;
3811  *-*-hpux*)
3812    llvm_cv_target_os_type="HP-UX" ;;
3813  *-*-interix*)
3814    llvm_cv_target_os_type="Interix" ;;
3815  *-*-linux*)
3816    llvm_cv_target_os_type="Linux" ;;
3817  *-*-solaris*)
3818    llvm_cv_target_os_type="SunOS" ;;
3819  *-*-auroraux*)
3820    llvm_cv_target_os_type="AuroraUX" ;;
3821  *-*-win32*)
3822    llvm_cv_target_os_type="Win32" ;;
3823  *-*-mingw*)
3824    llvm_cv_target_os_type="MingW" ;;
3825  *-*-haiku*)
3826    llvm_cv_target_os_type="Haiku" ;;
3827  *-*-rtems*)
3828    llvm_cv_target_os_type="RTEMS" ;;
3829  *-*-nacl*)
3830    llvm_cv_target_os_type="NativeClient" ;;
3831  *-unknown-eabi*)
3832    llvm_cv_target_os_type="Freestanding" ;;
3833  *)
3834    llvm_cv_target_os_type="Unknown" ;;
3835esac
3836fi
3837{ echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
3838echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
3839
3840if test "$llvm_cv_os_type" = "Unknown" ; then
3841  { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
3842echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
3843   { (exit 1); exit 1; }; }
3844fi
3845
3846OS=$llvm_cv_os_type
3847
3848HOST_OS=$llvm_cv_os_type
3849
3850TARGET_OS=$llvm_cv_target_os_type
3851
3852
3853LINKALL=$llvm_cv_link_all_option
3854
3855NOLINKALL=$llvm_cv_no_link_all_option
3856
3857
3858case $llvm_cv_platform_type in
3859  Unix)
3860
3861cat >>confdefs.h <<\_ACEOF
3862#define LLVM_ON_UNIX 1
3863_ACEOF
3864
3865    LLVM_ON_UNIX=1
3866
3867    LLVM_ON_WIN32=0
3868
3869    ;;
3870  Win32)
3871
3872cat >>confdefs.h <<\_ACEOF
3873#define LLVM_ON_WIN32 1
3874_ACEOF
3875
3876    LLVM_ON_UNIX=0
3877
3878    LLVM_ON_WIN32=1
3879
3880    ;;
3881esac
3882
3883{ echo "$as_me:$LINENO: checking target architecture" >&5
3884echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
3885if test "${llvm_cv_target_arch+set}" = set; then
3886  echo $ECHO_N "(cached) $ECHO_C" >&6
3887else
3888  case $target in
3889  i?86-*)                 llvm_cv_target_arch="x86" ;;
3890  amd64-* | x86_64-*)     llvm_cv_target_arch="x86_64" ;;
3891  sparc*-*)               llvm_cv_target_arch="Sparc" ;;
3892  powerpc*-*)             llvm_cv_target_arch="PowerPC" ;;
3893  arm*-*)                 llvm_cv_target_arch="ARM" ;;
3894  mips-*)                 llvm_cv_target_arch="Mips" ;;
3895  mipsel-*)               llvm_cv_target_arch="Mips" ;;
3896  xcore-*)                llvm_cv_target_arch="XCore" ;;
3897  msp430-*)               llvm_cv_target_arch="MSP430" ;;
3898  hexagon-*)              llvm_cv_target_arch="Hexagon" ;;
3899  mblaze-*)               llvm_cv_target_arch="MBlaze" ;;
3900  ptx-*)                  llvm_cv_target_arch="PTX" ;;
3901  *)                      llvm_cv_target_arch="Unknown" ;;
3902esac
3903fi
3904{ echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
3905echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
3906
3907if test "$llvm_cv_target_arch" = "Unknown" ; then
3908  { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
3909echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
3910fi
3911
3912case "$llvm_cv_target_arch" in
3913    x86)     LLVM_NATIVE_ARCH="X86" ;;
3914    x86_64)  LLVM_NATIVE_ARCH="X86" ;;
3915    *)       LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
3916esac
3917
3918ARCH=$llvm_cv_target_arch
3919
3920
3921
3922
3923{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3924echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3925if test "${ac_cv_path_GREP+set}" = set; then
3926  echo $ECHO_N "(cached) $ECHO_C" >&6
3927else
3928  # Extract the first word of "grep ggrep" to use in msg output
3929if test -z "$GREP"; then
3930set dummy grep ggrep; ac_prog_name=$2
3931if test "${ac_cv_path_GREP+set}" = set; then
3932  echo $ECHO_N "(cached) $ECHO_C" >&6
3933else
3934  ac_path_GREP_found=false
3935# Loop through the user's path and test for each of PROGNAME-LIST
3936as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3937for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3938do
3939  IFS=$as_save_IFS
3940  test -z "$as_dir" && as_dir=.
3941  for ac_prog in grep ggrep; do
3942  for ac_exec_ext in '' $ac_executable_extensions; do
3943    ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3944    { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3945    # Check for GNU ac_path_GREP and select it if it is found.
3946  # Check for GNU $ac_path_GREP
3947case `"$ac_path_GREP" --version 2>&1` in
3948*GNU*)
3949  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3950*)
3951  ac_count=0
3952  echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3953  while :
3954  do
3955    cat "conftest.in" "conftest.in" >"conftest.tmp"
3956    mv "conftest.tmp" "conftest.in"
3957    cp "conftest.in" "conftest.nl"
3958    echo 'GREP' >> "conftest.nl"
3959    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3960    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3961    ac_count=`expr $ac_count + 1`
3962    if test $ac_count -gt ${ac_path_GREP_max-0}; then
3963      # Best one so far, save it but keep looking for a better one
3964      ac_cv_path_GREP="$ac_path_GREP"
3965      ac_path_GREP_max=$ac_count
3966    fi
3967    # 10*(2^10) chars as input seems more than enough
3968    test $ac_count -gt 10 && break
3969  done
3970  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3971esac
3972
3973
3974    $ac_path_GREP_found && break 3
3975  done
3976done
3977
3978done
3979IFS=$as_save_IFS
3980
3981
3982fi
3983
3984GREP="$ac_cv_path_GREP"
3985if test -z "$GREP"; then
3986  { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3987echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3988   { (exit 1); exit 1; }; }
3989fi
3990
3991else
3992  ac_cv_path_GREP=$GREP
3993fi
3994
3995
3996fi
3997{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3998echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3999 GREP="$ac_cv_path_GREP"
4000
4001
4002{ echo "$as_me:$LINENO: checking for egrep" >&5
4003echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4004if test "${ac_cv_path_EGREP+set}" = set; then
4005  echo $ECHO_N "(cached) $ECHO_C" >&6
4006else
4007  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4008   then ac_cv_path_EGREP="$GREP -E"
4009   else
4010     # Extract the first word of "egrep" to use in msg output
4011if test -z "$EGREP"; then
4012set dummy egrep; ac_prog_name=$2
4013if test "${ac_cv_path_EGREP+set}" = set; then
4014  echo $ECHO_N "(cached) $ECHO_C" >&6
4015else
4016  ac_path_EGREP_found=false
4017# Loop through the user's path and test for each of PROGNAME-LIST
4018as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4019for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4020do
4021  IFS=$as_save_IFS
4022  test -z "$as_dir" && as_dir=.
4023  for ac_prog in egrep; do
4024  for ac_exec_ext in '' $ac_executable_extensions; do
4025    ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4026    { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
4027    # Check for GNU ac_path_EGREP and select it if it is found.
4028  # Check for GNU $ac_path_EGREP
4029case `"$ac_path_EGREP" --version 2>&1` in
4030*GNU*)
4031  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4032*)
4033  ac_count=0
4034  echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4035  while :
4036  do
4037    cat "conftest.in" "conftest.in" >"conftest.tmp"
4038    mv "conftest.tmp" "conftest.in"
4039    cp "conftest.in" "conftest.nl"
4040    echo 'EGREP' >> "conftest.nl"
4041    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4042    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4043    ac_count=`expr $ac_count + 1`
4044    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4045      # Best one so far, save it but keep looking for a better one
4046      ac_cv_path_EGREP="$ac_path_EGREP"
4047      ac_path_EGREP_max=$ac_count
4048    fi
4049    # 10*(2^10) chars as input seems more than enough
4050    test $ac_count -gt 10 && break
4051  done
4052  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4053esac
4054
4055
4056    $ac_path_EGREP_found && break 3
4057  done
4058done
4059
4060done
4061IFS=$as_save_IFS
4062
4063
4064fi
4065
4066EGREP="$ac_cv_path_EGREP"
4067if test -z "$EGREP"; then
4068  { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4069echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4070   { (exit 1); exit 1; }; }
4071fi
4072
4073else
4074  ac_cv_path_EGREP=$EGREP
4075fi
4076
4077
4078   fi
4079fi
4080{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4081echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4082 EGREP="$ac_cv_path_EGREP"
4083
4084
4085{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4086echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4087if test "${ac_cv_header_stdc+set}" = set; then
4088  echo $ECHO_N "(cached) $ECHO_C" >&6
4089else
4090  cat >conftest.$ac_ext <<_ACEOF
4091/* confdefs.h.  */
4092_ACEOF
4093cat confdefs.h >>conftest.$ac_ext
4094cat >>conftest.$ac_ext <<_ACEOF
4095/* end confdefs.h.  */
4096#include <stdlib.h>
4097#include <stdarg.h>
4098#include <string.h>
4099#include <float.h>
4100
4101int
4102main ()
4103{
4104
4105  ;
4106  return 0;
4107}
4108_ACEOF
4109rm -f conftest.$ac_objext
4110if { (ac_try="$ac_compile"
4111case "(($ac_try" in
4112  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4113  *) ac_try_echo=$ac_try;;
4114esac
4115eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4116  (eval "$ac_compile") 2>conftest.er1
4117  ac_status=$?
4118  grep -v '^ *+' conftest.er1 >conftest.err
4119  rm -f conftest.er1
4120  cat conftest.err >&5
4121  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4122  (exit $ac_status); } &&
4123	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4124  { (case "(($ac_try" in
4125  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4126  *) ac_try_echo=$ac_try;;
4127esac
4128eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4129  (eval "$ac_try") 2>&5
4130  ac_status=$?
4131  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4132  (exit $ac_status); }; } &&
4133	 { ac_try='test -s conftest.$ac_objext'
4134  { (case "(($ac_try" in
4135  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4136  *) ac_try_echo=$ac_try;;
4137esac
4138eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4139  (eval "$ac_try") 2>&5
4140  ac_status=$?
4141  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4142  (exit $ac_status); }; }; then
4143  ac_cv_header_stdc=yes
4144else
4145  echo "$as_me: failed program was:" >&5
4146sed 's/^/| /' conftest.$ac_ext >&5
4147
4148	ac_cv_header_stdc=no
4149fi
4150
4151rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4152
4153if test $ac_cv_header_stdc = yes; then
4154  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4155  cat >conftest.$ac_ext <<_ACEOF
4156/* confdefs.h.  */
4157_ACEOF
4158cat confdefs.h >>conftest.$ac_ext
4159cat >>conftest.$ac_ext <<_ACEOF
4160/* end confdefs.h.  */
4161#include <string.h>
4162
4163_ACEOF
4164if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4165  $EGREP "memchr" >/dev/null 2>&1; then
4166  :
4167else
4168  ac_cv_header_stdc=no
4169fi
4170rm -f conftest*
4171
4172fi
4173
4174if test $ac_cv_header_stdc = yes; then
4175  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4176  cat >conftest.$ac_ext <<_ACEOF
4177/* confdefs.h.  */
4178_ACEOF
4179cat confdefs.h >>conftest.$ac_ext
4180cat >>conftest.$ac_ext <<_ACEOF
4181/* end confdefs.h.  */
4182#include <stdlib.h>
4183
4184_ACEOF
4185if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4186  $EGREP "free" >/dev/null 2>&1; then
4187  :
4188else
4189  ac_cv_header_stdc=no
4190fi
4191rm -f conftest*
4192
4193fi
4194
4195if test $ac_cv_header_stdc = yes; then
4196  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4197  if test "$cross_compiling" = yes; then
4198  :
4199else
4200  cat >conftest.$ac_ext <<_ACEOF
4201/* confdefs.h.  */
4202_ACEOF
4203cat confdefs.h >>conftest.$ac_ext
4204cat >>conftest.$ac_ext <<_ACEOF
4205/* end confdefs.h.  */
4206#include <ctype.h>
4207#include <stdlib.h>
4208#if ((' ' & 0x0FF) == 0x020)
4209# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4210# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4211#else
4212# define ISLOWER(c) \
4213		   (('a' <= (c) && (c) <= 'i') \
4214		     || ('j' <= (c) && (c) <= 'r') \
4215		     || ('s' <= (c) && (c) <= 'z'))
4216# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4217#endif
4218
4219#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4220int
4221main ()
4222{
4223  int i;
4224  for (i = 0; i < 256; i++)
4225    if (XOR (islower (i), ISLOWER (i))
4226	|| toupper (i) != TOUPPER (i))
4227      return 2;
4228  return 0;
4229}
4230_ACEOF
4231rm -f conftest$ac_exeext
4232if { (ac_try="$ac_link"
4233case "(($ac_try" in
4234  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4235  *) ac_try_echo=$ac_try;;
4236esac
4237eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4238  (eval "$ac_link") 2>&5
4239  ac_status=$?
4240  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4241  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4242  { (case "(($ac_try" in
4243  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4244  *) ac_try_echo=$ac_try;;
4245esac
4246eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4247  (eval "$ac_try") 2>&5
4248  ac_status=$?
4249  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4250  (exit $ac_status); }; }; then
4251  :
4252else
4253  echo "$as_me: program exited with status $ac_status" >&5
4254echo "$as_me: failed program was:" >&5
4255sed 's/^/| /' conftest.$ac_ext >&5
4256
4257( exit $ac_status )
4258ac_cv_header_stdc=no
4259fi
4260rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4261fi
4262
4263
4264fi
4265fi
4266{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4267echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4268if test $ac_cv_header_stdc = yes; then
4269
4270cat >>confdefs.h <<\_ACEOF
4271#define STDC_HEADERS 1
4272_ACEOF
4273
4274fi
4275
4276# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4277
4278
4279
4280
4281
4282
4283
4284
4285
4286for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4287		  inttypes.h stdint.h unistd.h
4288do
4289as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4290{ echo "$as_me:$LINENO: checking for $ac_header" >&5
4291echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4292if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4293  echo $ECHO_N "(cached) $ECHO_C" >&6
4294else
4295  cat >conftest.$ac_ext <<_ACEOF
4296/* confdefs.h.  */
4297_ACEOF
4298cat confdefs.h >>conftest.$ac_ext
4299cat >>conftest.$ac_ext <<_ACEOF
4300/* end confdefs.h.  */
4301$ac_includes_default
4302
4303#include <$ac_header>
4304_ACEOF
4305rm -f conftest.$ac_objext
4306if { (ac_try="$ac_compile"
4307case "(($ac_try" in
4308  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4309  *) ac_try_echo=$ac_try;;
4310esac
4311eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4312  (eval "$ac_compile") 2>conftest.er1
4313  ac_status=$?
4314  grep -v '^ *+' conftest.er1 >conftest.err
4315  rm -f conftest.er1
4316  cat conftest.err >&5
4317  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4318  (exit $ac_status); } &&
4319	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4320  { (case "(($ac_try" in
4321  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4322  *) ac_try_echo=$ac_try;;
4323esac
4324eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4325  (eval "$ac_try") 2>&5
4326  ac_status=$?
4327  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4328  (exit $ac_status); }; } &&
4329	 { ac_try='test -s conftest.$ac_objext'
4330  { (case "(($ac_try" in
4331  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4332  *) ac_try_echo=$ac_try;;
4333esac
4334eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4335  (eval "$ac_try") 2>&5
4336  ac_status=$?
4337  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4338  (exit $ac_status); }; }; then
4339  eval "$as_ac_Header=yes"
4340else
4341  echo "$as_me: failed program was:" >&5
4342sed 's/^/| /' conftest.$ac_ext >&5
4343
4344	eval "$as_ac_Header=no"
4345fi
4346
4347rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4348fi
4349ac_res=`eval echo '${'$as_ac_Header'}'`
4350	       { echo "$as_me:$LINENO: result: $ac_res" >&5
4351echo "${ECHO_T}$ac_res" >&6; }
4352if test `eval echo '${'$as_ac_Header'}'` = yes; then
4353  cat >>confdefs.h <<_ACEOF
4354#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4355_ACEOF
4356
4357fi
4358
4359done
4360
4361
4362{ echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4363echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4364if test "${ac_cv_c_bigendian+set}" = set; then
4365  echo $ECHO_N "(cached) $ECHO_C" >&6
4366else
4367  # See if sys/param.h defines the BYTE_ORDER macro.
4368cat >conftest.$ac_ext <<_ACEOF
4369/* confdefs.h.  */
4370_ACEOF
4371cat confdefs.h >>conftest.$ac_ext
4372cat >>conftest.$ac_ext <<_ACEOF
4373/* end confdefs.h.  */
4374#include <sys/types.h>
4375#include <sys/param.h>
4376
4377int
4378main ()
4379{
4380#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4381 bogus endian macros
4382#endif
4383
4384  ;
4385  return 0;
4386}
4387_ACEOF
4388rm -f conftest.$ac_objext
4389if { (ac_try="$ac_compile"
4390case "(($ac_try" in
4391  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4392  *) ac_try_echo=$ac_try;;
4393esac
4394eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4395  (eval "$ac_compile") 2>conftest.er1
4396  ac_status=$?
4397  grep -v '^ *+' conftest.er1 >conftest.err
4398  rm -f conftest.er1
4399  cat conftest.err >&5
4400  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4401  (exit $ac_status); } &&
4402	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4403  { (case "(($ac_try" in
4404  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4405  *) ac_try_echo=$ac_try;;
4406esac
4407eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4408  (eval "$ac_try") 2>&5
4409  ac_status=$?
4410  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4411  (exit $ac_status); }; } &&
4412	 { ac_try='test -s conftest.$ac_objext'
4413  { (case "(($ac_try" in
4414  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4415  *) ac_try_echo=$ac_try;;
4416esac
4417eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4418  (eval "$ac_try") 2>&5
4419  ac_status=$?
4420  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4421  (exit $ac_status); }; }; then
4422  # It does; now see whether it defined to BIG_ENDIAN or not.
4423cat >conftest.$ac_ext <<_ACEOF
4424/* confdefs.h.  */
4425_ACEOF
4426cat confdefs.h >>conftest.$ac_ext
4427cat >>conftest.$ac_ext <<_ACEOF
4428/* end confdefs.h.  */
4429#include <sys/types.h>
4430#include <sys/param.h>
4431
4432int
4433main ()
4434{
4435#if BYTE_ORDER != BIG_ENDIAN
4436 not big endian
4437#endif
4438
4439  ;
4440  return 0;
4441}
4442_ACEOF
4443rm -f conftest.$ac_objext
4444if { (ac_try="$ac_compile"
4445case "(($ac_try" in
4446  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4447  *) ac_try_echo=$ac_try;;
4448esac
4449eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4450  (eval "$ac_compile") 2>conftest.er1
4451  ac_status=$?
4452  grep -v '^ *+' conftest.er1 >conftest.err
4453  rm -f conftest.er1
4454  cat conftest.err >&5
4455  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4456  (exit $ac_status); } &&
4457	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4458  { (case "(($ac_try" in
4459  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4460  *) ac_try_echo=$ac_try;;
4461esac
4462eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4463  (eval "$ac_try") 2>&5
4464  ac_status=$?
4465  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4466  (exit $ac_status); }; } &&
4467	 { ac_try='test -s conftest.$ac_objext'
4468  { (case "(($ac_try" in
4469  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4470  *) ac_try_echo=$ac_try;;
4471esac
4472eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4473  (eval "$ac_try") 2>&5
4474  ac_status=$?
4475  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4476  (exit $ac_status); }; }; then
4477  ac_cv_c_bigendian=yes
4478else
4479  echo "$as_me: failed program was:" >&5
4480sed 's/^/| /' conftest.$ac_ext >&5
4481
4482	ac_cv_c_bigendian=no
4483fi
4484
4485rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4486else
4487  echo "$as_me: failed program was:" >&5
4488sed 's/^/| /' conftest.$ac_ext >&5
4489
4490	# It does not; compile a test program.
4491if test "$cross_compiling" = yes; then
4492  # try to guess the endianness by grepping values into an object file
4493  ac_cv_c_bigendian=unknown
4494  cat >conftest.$ac_ext <<_ACEOF
4495/* confdefs.h.  */
4496_ACEOF
4497cat confdefs.h >>conftest.$ac_ext
4498cat >>conftest.$ac_ext <<_ACEOF
4499/* end confdefs.h.  */
4500short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4501short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4502void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4503short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4504short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4505void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4506int
4507main ()
4508{
4509 _ascii (); _ebcdic ();
4510  ;
4511  return 0;
4512}
4513_ACEOF
4514rm -f conftest.$ac_objext
4515if { (ac_try="$ac_compile"
4516case "(($ac_try" in
4517  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4518  *) ac_try_echo=$ac_try;;
4519esac
4520eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4521  (eval "$ac_compile") 2>conftest.er1
4522  ac_status=$?
4523  grep -v '^ *+' conftest.er1 >conftest.err
4524  rm -f conftest.er1
4525  cat conftest.err >&5
4526  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4527  (exit $ac_status); } &&
4528	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4529  { (case "(($ac_try" in
4530  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4531  *) ac_try_echo=$ac_try;;
4532esac
4533eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4534  (eval "$ac_try") 2>&5
4535  ac_status=$?
4536  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4537  (exit $ac_status); }; } &&
4538	 { ac_try='test -s conftest.$ac_objext'
4539  { (case "(($ac_try" in
4540  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4541  *) ac_try_echo=$ac_try;;
4542esac
4543eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4544  (eval "$ac_try") 2>&5
4545  ac_status=$?
4546  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4547  (exit $ac_status); }; }; then
4548  if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4549  ac_cv_c_bigendian=yes
4550fi
4551if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4552  if test "$ac_cv_c_bigendian" = unknown; then
4553    ac_cv_c_bigendian=no
4554  else
4555    # finding both strings is unlikely to happen, but who knows?
4556    ac_cv_c_bigendian=unknown
4557  fi
4558fi
4559else
4560  echo "$as_me: failed program was:" >&5
4561sed 's/^/| /' conftest.$ac_ext >&5
4562
4563
4564fi
4565
4566rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4567else
4568  cat >conftest.$ac_ext <<_ACEOF
4569/* confdefs.h.  */
4570_ACEOF
4571cat confdefs.h >>conftest.$ac_ext
4572cat >>conftest.$ac_ext <<_ACEOF
4573/* end confdefs.h.  */
4574$ac_includes_default
4575int
4576main ()
4577{
4578
4579  /* Are we little or big endian?  From Harbison&Steele.  */
4580  union
4581  {
4582    long int l;
4583    char c[sizeof (long int)];
4584  } u;
4585  u.l = 1;
4586  return u.c[sizeof (long int) - 1] == 1;
4587
4588  ;
4589  return 0;
4590}
4591_ACEOF
4592rm -f conftest$ac_exeext
4593if { (ac_try="$ac_link"
4594case "(($ac_try" in
4595  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4596  *) ac_try_echo=$ac_try;;
4597esac
4598eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4599  (eval "$ac_link") 2>&5
4600  ac_status=$?
4601  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4602  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4603  { (case "(($ac_try" in
4604  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4605  *) ac_try_echo=$ac_try;;
4606esac
4607eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4608  (eval "$ac_try") 2>&5
4609  ac_status=$?
4610  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4611  (exit $ac_status); }; }; then
4612  ac_cv_c_bigendian=no
4613else
4614  echo "$as_me: program exited with status $ac_status" >&5
4615echo "$as_me: failed program was:" >&5
4616sed 's/^/| /' conftest.$ac_ext >&5
4617
4618( exit $ac_status )
4619ac_cv_c_bigendian=yes
4620fi
4621rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4622fi
4623
4624
4625fi
4626
4627rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4628fi
4629{ echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4630echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4631case $ac_cv_c_bigendian in
4632  yes)
4633    ENDIAN=big
4634 ;;
4635  no)
4636    ENDIAN=little
4637 ;;
4638  *)
4639    { { echo "$as_me:$LINENO: error: unknown endianness
4640presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4641echo "$as_me: error: unknown endianness
4642presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4643   { (exit 1); exit 1; }; } ;;
4644esac
4645
4646
4647if test "$cross_compiling" = yes; then
4648  LLVM_CROSS_COMPILING=1
4649
4650
4651{ echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4652echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4653if test "${ac_cv_build_exeext+set}" = set; then
4654  echo $ECHO_N "(cached) $ECHO_C" >&6
4655else
4656  if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4657  ac_cv_build_exeext=.exe
4658else
4659  ac_build_prefix=${build_alias}-
4660
4661  # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4662set dummy ${ac_build_prefix}gcc; ac_word=$2
4663{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4664echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4665if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4666  echo $ECHO_N "(cached) $ECHO_C" >&6
4667else
4668  if test -n "$BUILD_CC"; then
4669  ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4670else
4671as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4672for as_dir in $PATH
4673do
4674  IFS=$as_save_IFS
4675  test -z "$as_dir" && as_dir=.
4676  for ac_exec_ext in '' $ac_executable_extensions; do
4677  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4678    ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4679    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4680    break 2
4681  fi
4682done
4683done
4684IFS=$as_save_IFS
4685
4686fi
4687fi
4688BUILD_CC=$ac_cv_prog_BUILD_CC
4689if test -n "$BUILD_CC"; then
4690  { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4691echo "${ECHO_T}$BUILD_CC" >&6; }
4692else
4693  { echo "$as_me:$LINENO: result: no" >&5
4694echo "${ECHO_T}no" >&6; }
4695fi
4696
4697
4698  if test -z "$BUILD_CC"; then
4699     # Extract the first word of "gcc", so it can be a program name with args.
4700set dummy gcc; ac_word=$2
4701{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4702echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4703if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4704  echo $ECHO_N "(cached) $ECHO_C" >&6
4705else
4706  if test -n "$BUILD_CC"; then
4707  ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4708else
4709as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4710for as_dir in $PATH
4711do
4712  IFS=$as_save_IFS
4713  test -z "$as_dir" && as_dir=.
4714  for ac_exec_ext in '' $ac_executable_extensions; do
4715  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4716    ac_cv_prog_BUILD_CC="gcc"
4717    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4718    break 2
4719  fi
4720done
4721done
4722IFS=$as_save_IFS
4723
4724fi
4725fi
4726BUILD_CC=$ac_cv_prog_BUILD_CC
4727if test -n "$BUILD_CC"; then
4728  { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4729echo "${ECHO_T}$BUILD_CC" >&6; }
4730else
4731  { echo "$as_me:$LINENO: result: no" >&5
4732echo "${ECHO_T}no" >&6; }
4733fi
4734
4735
4736     if test -z "$BUILD_CC"; then
4737       # Extract the first word of "cc", so it can be a program name with args.
4738set dummy cc; ac_word=$2
4739{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4740echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4741if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4742  echo $ECHO_N "(cached) $ECHO_C" >&6
4743else
4744  if test -n "$BUILD_CC"; then
4745  ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4746else
4747  ac_prog_rejected=no
4748as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4749for as_dir in $PATH
4750do
4751  IFS=$as_save_IFS
4752  test -z "$as_dir" && as_dir=.
4753  for ac_exec_ext in '' $ac_executable_extensions; do
4754  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4755    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4756       ac_prog_rejected=yes
4757       continue
4758     fi
4759    ac_cv_prog_BUILD_CC="cc"
4760    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4761    break 2
4762  fi
4763done
4764done
4765IFS=$as_save_IFS
4766
4767if test $ac_prog_rejected = yes; then
4768  # We found a bogon in the path, so make sure we never use it.
4769  set dummy $ac_cv_prog_BUILD_CC
4770  shift
4771  if test $# != 0; then
4772    # We chose a different compiler from the bogus one.
4773    # However, it has the same basename, so the bogon will be chosen
4774    # first if we set BUILD_CC to just the basename; use the full file name.
4775    shift
4776    ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4777  fi
4778fi
4779fi
4780fi
4781BUILD_CC=$ac_cv_prog_BUILD_CC
4782if test -n "$BUILD_CC"; then
4783  { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4784echo "${ECHO_T}$BUILD_CC" >&6; }
4785else
4786  { echo "$as_me:$LINENO: result: no" >&5
4787echo "${ECHO_T}no" >&6; }
4788fi
4789
4790
4791     fi
4792  fi
4793  test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4794echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4795   { (exit 1); exit 1; }; }
4796  ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4797  rm -f conftest*
4798  echo 'int main () { return 0; }' > conftest.$ac_ext
4799  ac_cv_build_exeext=
4800  if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4801  (eval $ac_build_link) 2>&5
4802  ac_status=$?
4803  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4804  (exit $ac_status); }; then
4805    for file in conftest.*; do
4806      case $file in
4807      *.c | *.o | *.obj | *.dSYM) ;;
4808      *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4809      esac
4810    done
4811  else
4812    { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4813echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4814   { (exit 1); exit 1; }; }
4815  fi
4816  rm -f conftest*
4817  test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4818fi
4819fi
4820
4821BUILD_EXEEXT=""
4822test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4823{ echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4824echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4825ac_build_exeext=$BUILD_EXEEXT
4826
4827  ac_build_prefix=${build_alias}-
4828  # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4829set dummy ${ac_build_prefix}g++; ac_word=$2
4830{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4831echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4832if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4833  echo $ECHO_N "(cached) $ECHO_C" >&6
4834else
4835  if test -n "$BUILD_CXX"; then
4836  ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4837else
4838as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4839for as_dir in $PATH
4840do
4841  IFS=$as_save_IFS
4842  test -z "$as_dir" && as_dir=.
4843  for ac_exec_ext in '' $ac_executable_extensions; do
4844  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4845    ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
4846    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4847    break 2
4848  fi
4849done
4850done
4851IFS=$as_save_IFS
4852
4853fi
4854fi
4855BUILD_CXX=$ac_cv_prog_BUILD_CXX
4856if test -n "$BUILD_CXX"; then
4857  { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4858echo "${ECHO_T}$BUILD_CXX" >&6; }
4859else
4860  { echo "$as_me:$LINENO: result: no" >&5
4861echo "${ECHO_T}no" >&6; }
4862fi
4863
4864
4865  if test -z "$BUILD_CXX"; then
4866     # Extract the first word of "g++", so it can be a program name with args.
4867set dummy g++; ac_word=$2
4868{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4869echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4870if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4871  echo $ECHO_N "(cached) $ECHO_C" >&6
4872else
4873  if test -n "$BUILD_CXX"; then
4874  ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4875else
4876as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4877for as_dir in $PATH
4878do
4879  IFS=$as_save_IFS
4880  test -z "$as_dir" && as_dir=.
4881  for ac_exec_ext in '' $ac_executable_extensions; do
4882  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4883    ac_cv_prog_BUILD_CXX="g++"
4884    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4885    break 2
4886  fi
4887done
4888done
4889IFS=$as_save_IFS
4890
4891fi
4892fi
4893BUILD_CXX=$ac_cv_prog_BUILD_CXX
4894if test -n "$BUILD_CXX"; then
4895  { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4896echo "${ECHO_T}$BUILD_CXX" >&6; }
4897else
4898  { echo "$as_me:$LINENO: result: no" >&5
4899echo "${ECHO_T}no" >&6; }
4900fi
4901
4902
4903     if test -z "$BUILD_CXX"; then
4904       # Extract the first word of "c++", so it can be a program name with args.
4905set dummy c++; ac_word=$2
4906{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4907echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4908if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4909  echo $ECHO_N "(cached) $ECHO_C" >&6
4910else
4911  if test -n "$BUILD_CXX"; then
4912  ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4913else
4914  ac_prog_rejected=no
4915as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4916for as_dir in $PATH
4917do
4918  IFS=$as_save_IFS
4919  test -z "$as_dir" && as_dir=.
4920  for ac_exec_ext in '' $ac_executable_extensions; do
4921  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4922    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4923       ac_prog_rejected=yes
4924       continue
4925     fi
4926    ac_cv_prog_BUILD_CXX="c++"
4927    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4928    break 2
4929  fi
4930done
4931done
4932IFS=$as_save_IFS
4933
4934if test $ac_prog_rejected = yes; then
4935  # We found a bogon in the path, so make sure we never use it.
4936  set dummy $ac_cv_prog_BUILD_CXX
4937  shift
4938  if test $# != 0; then
4939    # We chose a different compiler from the bogus one.
4940    # However, it has the same basename, so the bogon will be chosen
4941    # first if we set BUILD_CXX to just the basename; use the full file name.
4942    shift
4943    ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4944  fi
4945fi
4946fi
4947fi
4948BUILD_CXX=$ac_cv_prog_BUILD_CXX
4949if test -n "$BUILD_CXX"; then
4950  { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4951echo "${ECHO_T}$BUILD_CXX" >&6; }
4952else
4953  { echo "$as_me:$LINENO: result: no" >&5
4954echo "${ECHO_T}no" >&6; }
4955fi
4956
4957
4958     fi
4959  fi
4960else
4961  LLVM_CROSS_COMPILING=0
4962
4963fi
4964
4965if test -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
4966  cvsbuild="yes"
4967  optimize="no"
4968  CVSBUILD=CVSBUILD=1
4969
4970else
4971  cvsbuild="no"
4972  optimize="yes"
4973fi
4974
4975
4976# Check whether --enable-libcpp was given.
4977if test "${enable_libcpp+set}" = set; then
4978  enableval=$enable_libcpp;
4979else
4980  enableval=default
4981fi
4982
4983case "$enableval" in
4984  yes) ENABLE_LIBCPP=1
4985 ;;
4986  no)  ENABLE_LIBCPP=0
4987 ;;
4988  default) ENABLE_LIBCPP=0
4989;;
4990  *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&5
4991echo "$as_me: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&2;}
4992   { (exit 1); exit 1; }; } ;;
4993esac
4994
4995# Check whether --enable-optimized was given.
4996if test "${enable_optimized+set}" = set; then
4997  enableval=$enable_optimized;
4998else
4999  enableval=$optimize
5000fi
5001
5002if test ${enableval} = "no" ; then
5003  ENABLE_OPTIMIZED=
5004
5005else
5006  ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
5007
5008fi
5009
5010# Check whether --enable-profiling was given.
5011if test "${enable_profiling+set}" = set; then
5012  enableval=$enable_profiling;
5013else
5014  enableval="no"
5015fi
5016
5017if test ${enableval} = "no" ; then
5018  ENABLE_PROFILING=
5019
5020else
5021  ENABLE_PROFILING=ENABLE_PROFILING=1
5022
5023fi
5024
5025# Check whether --enable-assertions was given.
5026if test "${enable_assertions+set}" = set; then
5027  enableval=$enable_assertions;
5028else
5029  enableval="yes"
5030fi
5031
5032if test ${enableval} = "yes" ; then
5033  DISABLE_ASSERTIONS=
5034
5035else
5036  DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
5037
5038fi
5039
5040# Check whether --enable-expensive-checks was given.
5041if test "${enable_expensive_checks+set}" = set; then
5042  enableval=$enable_expensive_checks;
5043else
5044  enableval="no"
5045fi
5046
5047if test ${enableval} = "yes" ; then
5048  ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
5049
5050  EXPENSIVE_CHECKS=yes
5051
5052else
5053  ENABLE_EXPENSIVE_CHECKS=
5054
5055  EXPENSIVE_CHECKS=no
5056
5057fi
5058
5059# Check whether --enable-debug-runtime was given.
5060if test "${enable_debug_runtime+set}" = set; then
5061  enableval=$enable_debug_runtime;
5062else
5063  enableval=no
5064fi
5065
5066if test ${enableval} = "no" ; then
5067  DEBUG_RUNTIME=
5068
5069else
5070  DEBUG_RUNTIME=DEBUG_RUNTIME=1
5071
5072fi
5073
5074# Check whether --enable-debug-symbols was given.
5075if test "${enable_debug_symbols+set}" = set; then
5076  enableval=$enable_debug_symbols;
5077else
5078  enableval=no
5079fi
5080
5081if test ${enableval} = "no" ; then
5082  DEBUG_SYMBOLS=
5083
5084else
5085  DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
5086
5087fi
5088
5089# Check whether --enable-jit was given.
5090if test "${enable_jit+set}" = set; then
5091  enableval=$enable_jit;
5092else
5093  enableval=default
5094fi
5095
5096if test ${enableval} = "no"
5097then
5098  JIT=
5099
5100else
5101  case "$llvm_cv_target_arch" in
5102    x86)         TARGET_HAS_JIT=1
5103 ;;
5104    Sparc)       TARGET_HAS_JIT=0
5105 ;;
5106    PowerPC)     TARGET_HAS_JIT=1
5107 ;;
5108    x86_64)      TARGET_HAS_JIT=1
5109 ;;
5110    ARM)         TARGET_HAS_JIT=1
5111 ;;
5112    Mips)        TARGET_HAS_JIT=1
5113 ;;
5114    XCore)       TARGET_HAS_JIT=0
5115 ;;
5116    MSP430)      TARGET_HAS_JIT=0
5117 ;;
5118    Hexagon)     TARGET_HAS_JIT=0
5119 ;;
5120    MBlaze)      TARGET_HAS_JIT=0
5121 ;;
5122    PTX)         TARGET_HAS_JIT=0
5123 ;;
5124    *)           TARGET_HAS_JIT=0
5125 ;;
5126  esac
5127fi
5128
5129# Check whether --enable-docs was given.
5130if test "${enable_docs+set}" = set; then
5131  enableval=$enable_docs;
5132else
5133  enableval=default
5134fi
5135
5136case "$enableval" in
5137  yes) ENABLE_DOCS=1
5138 ;;
5139  no)  ENABLE_DOCS=0
5140 ;;
5141  default) ENABLE_DOCS=1
5142 ;;
5143  *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&5
5144echo "$as_me: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&2;}
5145   { (exit 1); exit 1; }; } ;;
5146esac
5147
5148# Check whether --enable-doxygen was given.
5149if test "${enable_doxygen+set}" = set; then
5150  enableval=$enable_doxygen;
5151else
5152  enableval=default
5153fi
5154
5155case "$enableval" in
5156  yes) ENABLE_DOXYGEN=1
5157 ;;
5158  no)  ENABLE_DOXYGEN=0
5159 ;;
5160  default) ENABLE_DOXYGEN=0
5161 ;;
5162  *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
5163echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
5164   { (exit 1); exit 1; }; } ;;
5165esac
5166
5167# Check whether --enable-threads was given.
5168if test "${enable_threads+set}" = set; then
5169  enableval=$enable_threads;
5170else
5171  enableval=default
5172fi
5173
5174case "$enableval" in
5175  yes) LLVM_ENABLE_THREADS=1
5176 ;;
5177  no)  LLVM_ENABLE_THREADS=0
5178 ;;
5179  default) LLVM_ENABLE_THREADS=1
5180 ;;
5181  *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
5182echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
5183   { (exit 1); exit 1; }; } ;;
5184esac
5185
5186cat >>confdefs.h <<_ACEOF
5187#define LLVM_ENABLE_THREADS $LLVM_ENABLE_THREADS
5188_ACEOF
5189
5190
5191# Check whether --enable-pthreads was given.
5192if test "${enable_pthreads+set}" = set; then
5193  enableval=$enable_pthreads;
5194else
5195  enableval=default
5196fi
5197
5198case "$enableval" in
5199  yes) ENABLE_PTHREADS=1
5200 ;;
5201  no)  ENABLE_PTHREADS=0
5202 ;;
5203  default) ENABLE_PTHREADS=1
5204 ;;
5205  *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&5
5206echo "$as_me: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&2;}
5207   { (exit 1); exit 1; }; } ;;
5208esac
5209
5210# Check whether --enable-pic was given.
5211if test "${enable_pic+set}" = set; then
5212  enableval=$enable_pic;
5213else
5214  enableval=default
5215fi
5216
5217case "$enableval" in
5218  yes) ENABLE_PIC=1
5219 ;;
5220  no)  ENABLE_PIC=0
5221 ;;
5222  default) ENABLE_PIC=1
5223 ;;
5224  *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
5225echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
5226   { (exit 1); exit 1; }; } ;;
5227esac
5228
5229cat >>confdefs.h <<_ACEOF
5230#define ENABLE_PIC $ENABLE_PIC
5231_ACEOF
5232
5233
5234# Check whether --enable-shared was given.
5235if test "${enable_shared+set}" = set; then
5236  enableval=$enable_shared;
5237else
5238  enableval=default
5239fi
5240
5241case "$enableval" in
5242  yes) ENABLE_SHARED=1
5243 ;;
5244  no)  ENABLE_SHARED=0
5245 ;;
5246  default) ENABLE_SHARED=0
5247 ;;
5248  *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5
5249echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;}
5250   { (exit 1); exit 1; }; } ;;
5251esac
5252
5253# Check whether --enable-embed-stdcxx was given.
5254if test "${enable_embed_stdcxx+set}" = set; then
5255  enableval=$enable_embed_stdcxx;
5256else
5257  enableval=default
5258fi
5259
5260case "$enableval" in
5261  yes) ENABLE_EMBED_STDCXX=1
5262 ;;
5263  no)  ENABLE_EMBED_STDCXX=0
5264 ;;
5265  default) ENABLE_EMBED_STDCXX=0
5266 ;;
5267  *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&5
5268echo "$as_me: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&2;}
5269   { (exit 1); exit 1; }; } ;;
5270esac
5271
5272# Check whether --enable-timestamps was given.
5273if test "${enable_timestamps+set}" = set; then
5274  enableval=$enable_timestamps;
5275else
5276  enableval=default
5277fi
5278
5279case "$enableval" in
5280  yes) ENABLE_TIMESTAMPS=1
5281 ;;
5282  no)  ENABLE_TIMESTAMPS=0
5283 ;;
5284  default) ENABLE_TIMESTAMPS=1
5285 ;;
5286  *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&5
5287echo "$as_me: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&2;}
5288   { (exit 1); exit 1; }; } ;;
5289esac
5290
5291cat >>confdefs.h <<_ACEOF
5292#define ENABLE_TIMESTAMPS $ENABLE_TIMESTAMPS
5293_ACEOF
5294
5295
5296TARGETS_TO_BUILD=""
5297# Check whether --enable-targets was given.
5298if test "${enable_targets+set}" = set; then
5299  enableval=$enable_targets;
5300else
5301  enableval=all
5302fi
5303
5304if test "$enableval" = host-only ; then
5305  enableval=host
5306fi
5307case "$enableval" in
5308  all) TARGETS_TO_BUILD="X86 Sparc PowerPC ARM Mips CellSPU XCore MSP430 CBackend CppBackend MBlaze PTX Hexagon" ;;
5309  *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
5310      case "$a_target" in
5311        x86)      TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5312        x86_64)   TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5313        sparc)    TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5314        powerpc)  TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5315        arm)      TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5316        mips)     TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5317        mipsel)   TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5318        spu)      TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
5319        xcore)    TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5320        msp430)   TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5321        cbe)      TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD" ;;
5322        cpp)      TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
5323        hexagon)  TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
5324        mblaze)   TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
5325        ptx)      TARGETS_TO_BUILD="PTX $TARGETS_TO_BUILD" ;;
5326        host) case "$llvm_cv_target_arch" in
5327            x86)         TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5328            x86_64)      TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5329            Sparc)       TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5330            PowerPC)     TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5331            ARM)         TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5332            Mips)        TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5333            MBlaze)      TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
5334            CellSPU|SPU) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
5335            XCore)       TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5336            MSP430)      TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5337            Hexagon)     TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
5338            PTX)         TARGETS_TO_BUILD="PTX $TARGETS_TO_BUILD" ;;
5339            *)       { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
5340echo "$as_me: error: Can not set target to build" >&2;}
5341   { (exit 1); exit 1; }; } ;;
5342          esac ;;
5343        *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
5344echo "$as_me: error: Unrecognized target $a_target" >&2;}
5345   { (exit 1); exit 1; }; } ;;
5346      esac
5347  done
5348  ;;
5349esac
5350TARGETS_TO_BUILD=$TARGETS_TO_BUILD
5351
5352
5353for a_target in $TARGETS_TO_BUILD; do
5354  if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
5355
5356cat >>confdefs.h <<_ACEOF
5357#define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCH
5358_ACEOF
5359
5360    LLVM_NATIVE_TARGET="LLVMInitialize${LLVM_NATIVE_ARCH}Target"
5361    LLVM_NATIVE_TARGETINFO="LLVMInitialize${LLVM_NATIVE_ARCH}TargetInfo"
5362    LLVM_NATIVE_TARGETMC="LLVMInitialize${LLVM_NATIVE_ARCH}TargetMC"
5363    LLVM_NATIVE_ASMPRINTER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmPrinter"
5364    if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5365      LLVM_NATIVE_ASMPARSER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmParser"
5366    fi
5367
5368cat >>confdefs.h <<_ACEOF
5369#define LLVM_NATIVE_TARGET $LLVM_NATIVE_TARGET
5370_ACEOF
5371
5372
5373cat >>confdefs.h <<_ACEOF
5374#define LLVM_NATIVE_TARGETINFO $LLVM_NATIVE_TARGETINFO
5375_ACEOF
5376
5377
5378cat >>confdefs.h <<_ACEOF
5379#define LLVM_NATIVE_TARGETMC $LLVM_NATIVE_TARGETMC
5380_ACEOF
5381
5382
5383cat >>confdefs.h <<_ACEOF
5384#define LLVM_NATIVE_ASMPRINTER $LLVM_NATIVE_ASMPRINTER
5385_ACEOF
5386
5387    if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5388
5389cat >>confdefs.h <<_ACEOF
5390#define LLVM_NATIVE_ASMPARSER $LLVM_NATIVE_ASMPARSER
5391_ACEOF
5392
5393    fi
5394  fi
5395done
5396
5397LLVM_ENUM_TARGETS=""
5398LLVM_ENUM_ASM_PRINTERS=""
5399LLVM_ENUM_ASM_PARSERS=""
5400LLVM_ENUM_DISASSEMBLERS=""
5401for target_to_build in $TARGETS_TO_BUILD; do
5402  LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
5403  if test -f ${srcdir}/lib/Target/${target_to_build}/*AsmPrinter.cpp ; then
5404    LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5405  fi
5406  if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5407    LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5408  fi
5409  if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
5410    LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
5411  fi
5412done
5413
5414
5415
5416
5417
5418# Check whether --enable-cbe-printf-a was given.
5419if test "${enable_cbe_printf_a+set}" = set; then
5420  enableval=$enable_cbe_printf_a;
5421else
5422  enableval=default
5423fi
5424
5425case "$enableval" in
5426  yes) ENABLE_CBE_PRINTF_A=1
5427 ;;
5428  no)  ENABLE_CBE_PRINTF_A=0
5429 ;;
5430  default)  ENABLE_CBE_PRINTF_A=1
5431 ;;
5432  *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5
5433echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;}
5434   { (exit 1); exit 1; }; } ;;
5435esac
5436
5437cat >>confdefs.h <<_ACEOF
5438#define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A
5439_ACEOF
5440
5441
5442
5443# Check whether --with-optimize-option was given.
5444if test "${with_optimize_option+set}" = set; then
5445  withval=$with_optimize_option;
5446else
5447  withval=default
5448fi
5449
5450{ echo "$as_me:$LINENO: checking optimization flags" >&5
5451echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
5452case "$withval" in
5453  default)
5454    case "$llvm_cv_os_type" in
5455    FreeBSD) optimize_option=-O2 ;;
5456    MingW) optimize_option=-O2 ;;
5457    *)     optimize_option=-O3 ;;
5458    esac ;;
5459  *) optimize_option="$withval" ;;
5460esac
5461OPTIMIZE_OPTION=$optimize_option
5462
5463{ echo "$as_me:$LINENO: result: $optimize_option" >&5
5464echo "${ECHO_T}$optimize_option" >&6; }
5465
5466
5467# Check whether --with-extra-options was given.
5468if test "${with_extra_options+set}" = set; then
5469  withval=$with_extra_options;
5470else
5471  withval=default
5472fi
5473
5474case "$withval" in
5475  default) EXTRA_OPTIONS= ;;
5476  *) EXTRA_OPTIONS=$withval ;;
5477esac
5478EXTRA_OPTIONS=$EXTRA_OPTIONS
5479
5480
5481
5482# Check whether --with-extra-ld-options was given.
5483if test "${with_extra_ld_options+set}" = set; then
5484  withval=$with_extra_ld_options;
5485else
5486  withval=default
5487fi
5488
5489case "$withval" in
5490  default) EXTRA_LD_OPTIONS= ;;
5491  *) EXTRA_LD_OPTIONS=$withval ;;
5492esac
5493EXTRA_LD_OPTIONS=$EXTRA_LD_OPTIONS
5494
5495
5496# Check whether --enable-bindings was given.
5497if test "${enable_bindings+set}" = set; then
5498  enableval=$enable_bindings;
5499else
5500  enableval=default
5501fi
5502
5503BINDINGS_TO_BUILD=""
5504case "$enableval" in
5505  yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
5506  all ) BINDINGS_TO_BUILD="ocaml" ;;
5507  none | no) BINDINGS_TO_BUILD="" ;;
5508  *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5509      case "$a_binding" in
5510        ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5511        *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5512echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5513   { (exit 1); exit 1; }; } ;;
5514      esac
5515  done
5516  ;;
5517esac
5518
5519
5520# Check whether --with-ocaml-libdir was given.
5521if test "${with_ocaml_libdir+set}" = set; then
5522  withval=$with_ocaml_libdir;
5523else
5524  withval=auto
5525fi
5526
5527case "$withval" in
5528  auto) with_ocaml_libdir="$withval" ;;
5529  /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5530  *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5531echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5532   { (exit 1); exit 1; }; } ;;
5533esac
5534
5535
5536# Check whether --with-clang-srcdir was given.
5537if test "${with_clang_srcdir+set}" = set; then
5538  withval=$with_clang_srcdir;
5539else
5540  withval="-"
5541fi
5542
5543case "$withval" in
5544  -) clang_src_root="" ;;
5545  /* | [A-Za-z]:[\\/]*) clang_src_root="$withval" ;;
5546  *) clang_src_root="$ac_pwd/$withval" ;;
5547esac
5548CLANG_SRC_ROOT=$clang_src_root
5549
5550
5551
5552# Check whether --with-clang-resource-dir was given.
5553if test "${with_clang_resource_dir+set}" = set; then
5554  withval=$with_clang_resource_dir;
5555else
5556  withval=""
5557fi
5558
5559
5560cat >>confdefs.h <<_ACEOF
5561#define CLANG_RESOURCE_DIR "$withval"
5562_ACEOF
5563
5564
5565
5566# Check whether --with-c-include-dirs was given.
5567if test "${with_c_include_dirs+set}" = set; then
5568  withval=$with_c_include_dirs;
5569else
5570  withval=""
5571fi
5572
5573
5574cat >>confdefs.h <<_ACEOF
5575#define C_INCLUDE_DIRS "$withval"
5576_ACEOF
5577
5578
5579# Clang normally uses the system c++ headers and libraries. With this option,
5580# clang will use the ones provided by a gcc installation instead. This option should
5581# be passed the same value that was used with --prefix when configuring gcc.
5582
5583# Check whether --with-gcc-toolchain was given.
5584if test "${with_gcc_toolchain+set}" = set; then
5585  withval=$with_gcc_toolchain;
5586else
5587  withval=""
5588fi
5589
5590
5591cat >>confdefs.h <<_ACEOF
5592#define GCC_INSTALL_PREFIX "$withval"
5593_ACEOF
5594
5595
5596
5597# Check whether --with-binutils-include was given.
5598if test "${with_binutils_include+set}" = set; then
5599  withval=$with_binutils_include;
5600else
5601  withval=default
5602fi
5603
5604case "$withval" in
5605  default) WITH_BINUTILS_INCDIR=default ;;
5606  /* | [A-Za-z]:[\\/]*)      WITH_BINUTILS_INCDIR=$withval ;;
5607  *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5608echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5609   { (exit 1); exit 1; }; } ;;
5610esac
5611if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5612  BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5613
5614  if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5615     echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
5616     { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5617echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5618   { (exit 1); exit 1; }; };
5619  fi
5620fi
5621
5622
5623# Check whether --with-bug-report-url was given.
5624if test "${with_bug_report_url+set}" = set; then
5625  withval=$with_bug_report_url;
5626else
5627  withval="http://llvm.org/bugs/"
5628fi
5629
5630
5631cat >>confdefs.h <<_ACEOF
5632#define BUG_REPORT_URL "$withval"
5633_ACEOF
5634
5635
5636# Check whether --enable-libffi was given.
5637if test "${enable_libffi+set}" = set; then
5638  enableval=$enable_libffi; case "$enableval" in
5639    yes) llvm_cv_enable_libffi="yes" ;;
5640    no)  llvm_cv_enable_libffi="no"  ;;
5641    *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
5642echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5643   { (exit 1); exit 1; }; } ;;
5644  esac
5645else
5646  llvm_cv_enable_libffi=no
5647fi
5648
5649
5650
5651# Check whether --with-internal-prefix was given.
5652if test "${with_internal_prefix+set}" = set; then
5653  withval=$with_internal_prefix;
5654else
5655  withval=""
5656fi
5657
5658INTERNAL_PREFIX=$withval
5659
5660
5661
5662{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5663echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
5664if test "${lt_cv_path_NM+set}" = set; then
5665  echo $ECHO_N "(cached) $ECHO_C" >&6
5666else
5667  if test -n "$NM"; then
5668  # Let the user override the test.
5669  lt_cv_path_NM="$NM"
5670else
5671  lt_nm_to_check="${ac_tool_prefix}nm"
5672  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5673    lt_nm_to_check="$lt_nm_to_check nm"
5674  fi
5675  for lt_tmp_nm in $lt_nm_to_check; do
5676    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5677    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5678      IFS="$lt_save_ifs"
5679      test -z "$ac_dir" && ac_dir=.
5680      tmp_nm="$ac_dir/$lt_tmp_nm"
5681      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5682	# Check to see if the nm accepts a BSD-compat flag.
5683	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
5684	#   nm: unknown option "B" ignored
5685	# Tru64's nm complains that /dev/null is an invalid object file
5686	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5687	*/dev/null* | *'Invalid file or object type'*)
5688	  lt_cv_path_NM="$tmp_nm -B"
5689	  break
5690	  ;;
5691	*)
5692	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5693	  */dev/null*)
5694	    lt_cv_path_NM="$tmp_nm -p"
5695	    break
5696	    ;;
5697	  *)
5698	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5699	    continue # so that we can try to find one that supports BSD flags
5700	    ;;
5701	  esac
5702	  ;;
5703	esac
5704      fi
5705    done
5706    IFS="$lt_save_ifs"
5707  done
5708  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5709fi
5710fi
5711{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5712echo "${ECHO_T}$lt_cv_path_NM" >&6; }
5713NM="$lt_cv_path_NM"
5714
5715
5716
5717{ echo "$as_me:$LINENO: checking for GNU make" >&5
5718echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
5719if test "${llvm_cv_gnu_make_command+set}" = set; then
5720  echo $ECHO_N "(cached) $ECHO_C" >&6
5721else
5722  llvm_cv_gnu_make_command=''
5723 for a in "$MAKE" make gmake gnumake ; do
5724  if test -z "$a" ; then continue ; fi ;
5725  if  ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
5726  then
5727   llvm_cv_gnu_make_command=$a ;
5728   break;
5729  fi
5730 done
5731fi
5732{ echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
5733echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
5734 if test "x$llvm_cv_gnu_make_command" != "x"  ; then
5735   ifGNUmake='' ;
5736 else
5737   ifGNUmake='#' ;
5738   { echo "$as_me:$LINENO: result: \"Not found\"" >&5
5739echo "${ECHO_T}\"Not found\"" >&6; };
5740 fi
5741
5742
5743{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
5744echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
5745LN_S=$as_ln_s
5746if test "$LN_S" = "ln -s"; then
5747  { echo "$as_me:$LINENO: result: yes" >&5
5748echo "${ECHO_T}yes" >&6; }
5749else
5750  { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5751echo "${ECHO_T}no, using $LN_S" >&6; }
5752fi
5753
5754# Extract the first word of "cmp", so it can be a program name with args.
5755set dummy cmp; ac_word=$2
5756{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5757echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5758if test "${ac_cv_path_CMP+set}" = set; then
5759  echo $ECHO_N "(cached) $ECHO_C" >&6
5760else
5761  case $CMP in
5762  [\\/]* | ?:[\\/]*)
5763  ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
5764  ;;
5765  *)
5766  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5767for as_dir in $PATH
5768do
5769  IFS=$as_save_IFS
5770  test -z "$as_dir" && as_dir=.
5771  for ac_exec_ext in '' $ac_executable_extensions; do
5772  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5773    ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
5774    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5775    break 2
5776  fi
5777done
5778done
5779IFS=$as_save_IFS
5780
5781  test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
5782  ;;
5783esac
5784fi
5785CMP=$ac_cv_path_CMP
5786if test -n "$CMP"; then
5787  { echo "$as_me:$LINENO: result: $CMP" >&5
5788echo "${ECHO_T}$CMP" >&6; }
5789else
5790  { echo "$as_me:$LINENO: result: no" >&5
5791echo "${ECHO_T}no" >&6; }
5792fi
5793
5794
5795# Extract the first word of "cp", so it can be a program name with args.
5796set dummy cp; ac_word=$2
5797{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5798echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5799if test "${ac_cv_path_CP+set}" = set; then
5800  echo $ECHO_N "(cached) $ECHO_C" >&6
5801else
5802  case $CP in
5803  [\\/]* | ?:[\\/]*)
5804  ac_cv_path_CP="$CP" # Let the user override the test with a path.
5805  ;;
5806  *)
5807  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5808for as_dir in $PATH
5809do
5810  IFS=$as_save_IFS
5811  test -z "$as_dir" && as_dir=.
5812  for ac_exec_ext in '' $ac_executable_extensions; do
5813  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5814    ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
5815    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5816    break 2
5817  fi
5818done
5819done
5820IFS=$as_save_IFS
5821
5822  test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
5823  ;;
5824esac
5825fi
5826CP=$ac_cv_path_CP
5827if test -n "$CP"; then
5828  { echo "$as_me:$LINENO: result: $CP" >&5
5829echo "${ECHO_T}$CP" >&6; }
5830else
5831  { echo "$as_me:$LINENO: result: no" >&5
5832echo "${ECHO_T}no" >&6; }
5833fi
5834
5835
5836# Extract the first word of "date", so it can be a program name with args.
5837set dummy date; ac_word=$2
5838{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5839echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5840if test "${ac_cv_path_DATE+set}" = set; then
5841  echo $ECHO_N "(cached) $ECHO_C" >&6
5842else
5843  case $DATE in
5844  [\\/]* | ?:[\\/]*)
5845  ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
5846  ;;
5847  *)
5848  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5849for as_dir in $PATH
5850do
5851  IFS=$as_save_IFS
5852  test -z "$as_dir" && as_dir=.
5853  for ac_exec_ext in '' $ac_executable_extensions; do
5854  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5855    ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
5856    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5857    break 2
5858  fi
5859done
5860done
5861IFS=$as_save_IFS
5862
5863  test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
5864  ;;
5865esac
5866fi
5867DATE=$ac_cv_path_DATE
5868if test -n "$DATE"; then
5869  { echo "$as_me:$LINENO: result: $DATE" >&5
5870echo "${ECHO_T}$DATE" >&6; }
5871else
5872  { echo "$as_me:$LINENO: result: no" >&5
5873echo "${ECHO_T}no" >&6; }
5874fi
5875
5876
5877# Extract the first word of "find", so it can be a program name with args.
5878set dummy find; ac_word=$2
5879{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5880echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5881if test "${ac_cv_path_FIND+set}" = set; then
5882  echo $ECHO_N "(cached) $ECHO_C" >&6
5883else
5884  case $FIND in
5885  [\\/]* | ?:[\\/]*)
5886  ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
5887  ;;
5888  *)
5889  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5890for as_dir in $PATH
5891do
5892  IFS=$as_save_IFS
5893  test -z "$as_dir" && as_dir=.
5894  for ac_exec_ext in '' $ac_executable_extensions; do
5895  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5896    ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
5897    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5898    break 2
5899  fi
5900done
5901done
5902IFS=$as_save_IFS
5903
5904  test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
5905  ;;
5906esac
5907fi
5908FIND=$ac_cv_path_FIND
5909if test -n "$FIND"; then
5910  { echo "$as_me:$LINENO: result: $FIND" >&5
5911echo "${ECHO_T}$FIND" >&6; }
5912else
5913  { echo "$as_me:$LINENO: result: no" >&5
5914echo "${ECHO_T}no" >&6; }
5915fi
5916
5917
5918# Extract the first word of "grep", so it can be a program name with args.
5919set dummy grep; ac_word=$2
5920{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5921echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5922if test "${ac_cv_path_GREP+set}" = set; then
5923  echo $ECHO_N "(cached) $ECHO_C" >&6
5924else
5925  case $GREP in
5926  [\\/]* | ?:[\\/]*)
5927  ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
5928  ;;
5929  *)
5930  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5931for as_dir in $PATH
5932do
5933  IFS=$as_save_IFS
5934  test -z "$as_dir" && as_dir=.
5935  for ac_exec_ext in '' $ac_executable_extensions; do
5936  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5937    ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
5938    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5939    break 2
5940  fi
5941done
5942done
5943IFS=$as_save_IFS
5944
5945  test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
5946  ;;
5947esac
5948fi
5949GREP=$ac_cv_path_GREP
5950if test -n "$GREP"; then
5951  { echo "$as_me:$LINENO: result: $GREP" >&5
5952echo "${ECHO_T}$GREP" >&6; }
5953else
5954  { echo "$as_me:$LINENO: result: no" >&5
5955echo "${ECHO_T}no" >&6; }
5956fi
5957
5958
5959# Extract the first word of "mkdir", so it can be a program name with args.
5960set dummy mkdir; ac_word=$2
5961{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5962echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5963if test "${ac_cv_path_MKDIR+set}" = set; then
5964  echo $ECHO_N "(cached) $ECHO_C" >&6
5965else
5966  case $MKDIR in
5967  [\\/]* | ?:[\\/]*)
5968  ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
5969  ;;
5970  *)
5971  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5972for as_dir in $PATH
5973do
5974  IFS=$as_save_IFS
5975  test -z "$as_dir" && as_dir=.
5976  for ac_exec_ext in '' $ac_executable_extensions; do
5977  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5978    ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
5979    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5980    break 2
5981  fi
5982done
5983done
5984IFS=$as_save_IFS
5985
5986  test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
5987  ;;
5988esac
5989fi
5990MKDIR=$ac_cv_path_MKDIR
5991if test -n "$MKDIR"; then
5992  { echo "$as_me:$LINENO: result: $MKDIR" >&5
5993echo "${ECHO_T}$MKDIR" >&6; }
5994else
5995  { echo "$as_me:$LINENO: result: no" >&5
5996echo "${ECHO_T}no" >&6; }
5997fi
5998
5999
6000# Extract the first word of "mv", so it can be a program name with args.
6001set dummy mv; ac_word=$2
6002{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6003echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6004if test "${ac_cv_path_MV+set}" = set; then
6005  echo $ECHO_N "(cached) $ECHO_C" >&6
6006else
6007  case $MV in
6008  [\\/]* | ?:[\\/]*)
6009  ac_cv_path_MV="$MV" # Let the user override the test with a path.
6010  ;;
6011  *)
6012  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6013for as_dir in $PATH
6014do
6015  IFS=$as_save_IFS
6016  test -z "$as_dir" && as_dir=.
6017  for ac_exec_ext in '' $ac_executable_extensions; do
6018  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6019    ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
6020    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6021    break 2
6022  fi
6023done
6024done
6025IFS=$as_save_IFS
6026
6027  test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6028  ;;
6029esac
6030fi
6031MV=$ac_cv_path_MV
6032if test -n "$MV"; then
6033  { echo "$as_me:$LINENO: result: $MV" >&5
6034echo "${ECHO_T}$MV" >&6; }
6035else
6036  { echo "$as_me:$LINENO: result: no" >&5
6037echo "${ECHO_T}no" >&6; }
6038fi
6039
6040
6041if test -n "$ac_tool_prefix"; then
6042  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6043set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6044{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6045echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6046if test "${ac_cv_prog_RANLIB+set}" = set; then
6047  echo $ECHO_N "(cached) $ECHO_C" >&6
6048else
6049  if test -n "$RANLIB"; then
6050  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6051else
6052as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6053for as_dir in $PATH
6054do
6055  IFS=$as_save_IFS
6056  test -z "$as_dir" && as_dir=.
6057  for ac_exec_ext in '' $ac_executable_extensions; do
6058  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6059    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6060    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6061    break 2
6062  fi
6063done
6064done
6065IFS=$as_save_IFS
6066
6067fi
6068fi
6069RANLIB=$ac_cv_prog_RANLIB
6070if test -n "$RANLIB"; then
6071  { echo "$as_me:$LINENO: result: $RANLIB" >&5
6072echo "${ECHO_T}$RANLIB" >&6; }
6073else
6074  { echo "$as_me:$LINENO: result: no" >&5
6075echo "${ECHO_T}no" >&6; }
6076fi
6077
6078
6079fi
6080if test -z "$ac_cv_prog_RANLIB"; then
6081  ac_ct_RANLIB=$RANLIB
6082  # Extract the first word of "ranlib", so it can be a program name with args.
6083set dummy ranlib; ac_word=$2
6084{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6085echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6086if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6087  echo $ECHO_N "(cached) $ECHO_C" >&6
6088else
6089  if test -n "$ac_ct_RANLIB"; then
6090  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6091else
6092as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6093for as_dir in $PATH
6094do
6095  IFS=$as_save_IFS
6096  test -z "$as_dir" && as_dir=.
6097  for ac_exec_ext in '' $ac_executable_extensions; do
6098  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6099    ac_cv_prog_ac_ct_RANLIB="ranlib"
6100    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6101    break 2
6102  fi
6103done
6104done
6105IFS=$as_save_IFS
6106
6107fi
6108fi
6109ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6110if test -n "$ac_ct_RANLIB"; then
6111  { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6112echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6113else
6114  { echo "$as_me:$LINENO: result: no" >&5
6115echo "${ECHO_T}no" >&6; }
6116fi
6117
6118  if test "x$ac_ct_RANLIB" = x; then
6119    RANLIB=":"
6120  else
6121    case $cross_compiling:$ac_tool_warned in
6122yes:)
6123{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6124whose name does not start with the host triplet.  If you think this
6125configuration is useful to you, please write to autoconf@gnu.org." >&5
6126echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6127whose name does not start with the host triplet.  If you think this
6128configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6129ac_tool_warned=yes ;;
6130esac
6131    RANLIB=$ac_ct_RANLIB
6132  fi
6133else
6134  RANLIB="$ac_cv_prog_RANLIB"
6135fi
6136
6137if test -n "$ac_tool_prefix"; then
6138  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6139set dummy ${ac_tool_prefix}ar; ac_word=$2
6140{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6141echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6142if test "${ac_cv_prog_AR+set}" = set; then
6143  echo $ECHO_N "(cached) $ECHO_C" >&6
6144else
6145  if test -n "$AR"; then
6146  ac_cv_prog_AR="$AR" # Let the user override the test.
6147else
6148as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6149for as_dir in $PATH
6150do
6151  IFS=$as_save_IFS
6152  test -z "$as_dir" && as_dir=.
6153  for ac_exec_ext in '' $ac_executable_extensions; do
6154  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6155    ac_cv_prog_AR="${ac_tool_prefix}ar"
6156    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6157    break 2
6158  fi
6159done
6160done
6161IFS=$as_save_IFS
6162
6163fi
6164fi
6165AR=$ac_cv_prog_AR
6166if test -n "$AR"; then
6167  { echo "$as_me:$LINENO: result: $AR" >&5
6168echo "${ECHO_T}$AR" >&6; }
6169else
6170  { echo "$as_me:$LINENO: result: no" >&5
6171echo "${ECHO_T}no" >&6; }
6172fi
6173
6174
6175fi
6176if test -z "$ac_cv_prog_AR"; then
6177  ac_ct_AR=$AR
6178  # Extract the first word of "ar", so it can be a program name with args.
6179set dummy ar; ac_word=$2
6180{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6181echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6182if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6183  echo $ECHO_N "(cached) $ECHO_C" >&6
6184else
6185  if test -n "$ac_ct_AR"; then
6186  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6187else
6188as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6189for as_dir in $PATH
6190do
6191  IFS=$as_save_IFS
6192  test -z "$as_dir" && as_dir=.
6193  for ac_exec_ext in '' $ac_executable_extensions; do
6194  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6195    ac_cv_prog_ac_ct_AR="ar"
6196    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6197    break 2
6198  fi
6199done
6200done
6201IFS=$as_save_IFS
6202
6203fi
6204fi
6205ac_ct_AR=$ac_cv_prog_ac_ct_AR
6206if test -n "$ac_ct_AR"; then
6207  { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6208echo "${ECHO_T}$ac_ct_AR" >&6; }
6209else
6210  { echo "$as_me:$LINENO: result: no" >&5
6211echo "${ECHO_T}no" >&6; }
6212fi
6213
6214  if test "x$ac_ct_AR" = x; then
6215    AR="false"
6216  else
6217    case $cross_compiling:$ac_tool_warned in
6218yes:)
6219{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6220whose name does not start with the host triplet.  If you think this
6221configuration is useful to you, please write to autoconf@gnu.org." >&5
6222echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6223whose name does not start with the host triplet.  If you think this
6224configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6225ac_tool_warned=yes ;;
6226esac
6227    AR=$ac_ct_AR
6228  fi
6229else
6230  AR="$ac_cv_prog_AR"
6231fi
6232
6233# Extract the first word of "rm", so it can be a program name with args.
6234set dummy rm; ac_word=$2
6235{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6236echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6237if test "${ac_cv_path_RM+set}" = set; then
6238  echo $ECHO_N "(cached) $ECHO_C" >&6
6239else
6240  case $RM in
6241  [\\/]* | ?:[\\/]*)
6242  ac_cv_path_RM="$RM" # Let the user override the test with a path.
6243  ;;
6244  *)
6245  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6246for as_dir in $PATH
6247do
6248  IFS=$as_save_IFS
6249  test -z "$as_dir" && as_dir=.
6250  for ac_exec_ext in '' $ac_executable_extensions; do
6251  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6252    ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
6253    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6254    break 2
6255  fi
6256done
6257done
6258IFS=$as_save_IFS
6259
6260  test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
6261  ;;
6262esac
6263fi
6264RM=$ac_cv_path_RM
6265if test -n "$RM"; then
6266  { echo "$as_me:$LINENO: result: $RM" >&5
6267echo "${ECHO_T}$RM" >&6; }
6268else
6269  { echo "$as_me:$LINENO: result: no" >&5
6270echo "${ECHO_T}no" >&6; }
6271fi
6272
6273
6274# Extract the first word of "sed", so it can be a program name with args.
6275set dummy sed; ac_word=$2
6276{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6277echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6278if test "${ac_cv_path_SED+set}" = set; then
6279  echo $ECHO_N "(cached) $ECHO_C" >&6
6280else
6281  case $SED in
6282  [\\/]* | ?:[\\/]*)
6283  ac_cv_path_SED="$SED" # Let the user override the test with a path.
6284  ;;
6285  *)
6286  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6287for as_dir in $PATH
6288do
6289  IFS=$as_save_IFS
6290  test -z "$as_dir" && as_dir=.
6291  for ac_exec_ext in '' $ac_executable_extensions; do
6292  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6293    ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
6294    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6295    break 2
6296  fi
6297done
6298done
6299IFS=$as_save_IFS
6300
6301  test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
6302  ;;
6303esac
6304fi
6305SED=$ac_cv_path_SED
6306if test -n "$SED"; then
6307  { echo "$as_me:$LINENO: result: $SED" >&5
6308echo "${ECHO_T}$SED" >&6; }
6309else
6310  { echo "$as_me:$LINENO: result: no" >&5
6311echo "${ECHO_T}no" >&6; }
6312fi
6313
6314
6315# Extract the first word of "tar", so it can be a program name with args.
6316set dummy tar; ac_word=$2
6317{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6318echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6319if test "${ac_cv_path_TAR+set}" = set; then
6320  echo $ECHO_N "(cached) $ECHO_C" >&6
6321else
6322  case $TAR in
6323  [\\/]* | ?:[\\/]*)
6324  ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
6325  ;;
6326  *)
6327  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6328for as_dir in $PATH
6329do
6330  IFS=$as_save_IFS
6331  test -z "$as_dir" && as_dir=.
6332  for ac_exec_ext in '' $ac_executable_extensions; do
6333  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6334    ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
6335    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6336    break 2
6337  fi
6338done
6339done
6340IFS=$as_save_IFS
6341
6342  test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
6343  ;;
6344esac
6345fi
6346TAR=$ac_cv_path_TAR
6347if test -n "$TAR"; then
6348  { echo "$as_me:$LINENO: result: $TAR" >&5
6349echo "${ECHO_T}$TAR" >&6; }
6350else
6351  { echo "$as_me:$LINENO: result: no" >&5
6352echo "${ECHO_T}no" >&6; }
6353fi
6354
6355
6356# Extract the first word of "pwd", so it can be a program name with args.
6357set dummy pwd; ac_word=$2
6358{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6359echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6360if test "${ac_cv_path_BINPWD+set}" = set; then
6361  echo $ECHO_N "(cached) $ECHO_C" >&6
6362else
6363  case $BINPWD in
6364  [\\/]* | ?:[\\/]*)
6365  ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
6366  ;;
6367  *)
6368  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6369for as_dir in $PATH
6370do
6371  IFS=$as_save_IFS
6372  test -z "$as_dir" && as_dir=.
6373  for ac_exec_ext in '' $ac_executable_extensions; do
6374  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6375    ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
6376    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6377    break 2
6378  fi
6379done
6380done
6381IFS=$as_save_IFS
6382
6383  test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
6384  ;;
6385esac
6386fi
6387BINPWD=$ac_cv_path_BINPWD
6388if test -n "$BINPWD"; then
6389  { echo "$as_me:$LINENO: result: $BINPWD" >&5
6390echo "${ECHO_T}$BINPWD" >&6; }
6391else
6392  { echo "$as_me:$LINENO: result: no" >&5
6393echo "${ECHO_T}no" >&6; }
6394fi
6395
6396
6397
6398# Extract the first word of "Graphviz", so it can be a program name with args.
6399set dummy Graphviz; ac_word=$2
6400{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6401echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6402if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
6403  echo $ECHO_N "(cached) $ECHO_C" >&6
6404else
6405  case $GRAPHVIZ in
6406  [\\/]* | ?:[\\/]*)
6407  ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
6408  ;;
6409  *)
6410  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6411for as_dir in $PATH
6412do
6413  IFS=$as_save_IFS
6414  test -z "$as_dir" && as_dir=.
6415  for ac_exec_ext in '' $ac_executable_extensions; do
6416  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6417    ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
6418    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6419    break 2
6420  fi
6421done
6422done
6423IFS=$as_save_IFS
6424
6425  test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
6426  ;;
6427esac
6428fi
6429GRAPHVIZ=$ac_cv_path_GRAPHVIZ
6430if test -n "$GRAPHVIZ"; then
6431  { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
6432echo "${ECHO_T}$GRAPHVIZ" >&6; }
6433else
6434  { echo "$as_me:$LINENO: result: no" >&5
6435echo "${ECHO_T}no" >&6; }
6436fi
6437
6438
6439if test "$GRAPHVIZ" != "echo Graphviz" ; then
6440
6441cat >>confdefs.h <<\_ACEOF
6442#define HAVE_GRAPHVIZ 1
6443_ACEOF
6444
6445    if test "$llvm_cv_os_type" = "MingW" ; then
6446    GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6447  fi
6448
6449cat >>confdefs.h <<_ACEOF
6450#define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
6451_ACEOF
6452
6453fi
6454# Extract the first word of "dot", so it can be a program name with args.
6455set dummy dot; ac_word=$2
6456{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6457echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6458if test "${ac_cv_path_DOT+set}" = set; then
6459  echo $ECHO_N "(cached) $ECHO_C" >&6
6460else
6461  case $DOT in
6462  [\\/]* | ?:[\\/]*)
6463  ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
6464  ;;
6465  *)
6466  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6467for as_dir in $PATH
6468do
6469  IFS=$as_save_IFS
6470  test -z "$as_dir" && as_dir=.
6471  for ac_exec_ext in '' $ac_executable_extensions; do
6472  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6473    ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
6474    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6475    break 2
6476  fi
6477done
6478done
6479IFS=$as_save_IFS
6480
6481  test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
6482  ;;
6483esac
6484fi
6485DOT=$ac_cv_path_DOT
6486if test -n "$DOT"; then
6487  { echo "$as_me:$LINENO: result: $DOT" >&5
6488echo "${ECHO_T}$DOT" >&6; }
6489else
6490  { echo "$as_me:$LINENO: result: no" >&5
6491echo "${ECHO_T}no" >&6; }
6492fi
6493
6494
6495if test "$DOT" != "echo dot" ; then
6496
6497cat >>confdefs.h <<\_ACEOF
6498#define HAVE_DOT 1
6499_ACEOF
6500
6501    if test "$llvm_cv_os_type" = "MingW" ; then
6502    DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6503  fi
6504
6505cat >>confdefs.h <<_ACEOF
6506#define LLVM_PATH_DOT "$DOT${EXEEXT}"
6507_ACEOF
6508
6509fi
6510# Extract the first word of "fdp", so it can be a program name with args.
6511set dummy fdp; ac_word=$2
6512{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6513echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6514if test "${ac_cv_path_FDP+set}" = set; then
6515  echo $ECHO_N "(cached) $ECHO_C" >&6
6516else
6517  case $FDP in
6518  [\\/]* | ?:[\\/]*)
6519  ac_cv_path_FDP="$FDP" # Let the user override the test with a path.
6520  ;;
6521  *)
6522  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6523for as_dir in $PATH
6524do
6525  IFS=$as_save_IFS
6526  test -z "$as_dir" && as_dir=.
6527  for ac_exec_ext in '' $ac_executable_extensions; do
6528  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6529    ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext"
6530    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6531    break 2
6532  fi
6533done
6534done
6535IFS=$as_save_IFS
6536
6537  test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp"
6538  ;;
6539esac
6540fi
6541FDP=$ac_cv_path_FDP
6542if test -n "$FDP"; then
6543  { echo "$as_me:$LINENO: result: $FDP" >&5
6544echo "${ECHO_T}$FDP" >&6; }
6545else
6546  { echo "$as_me:$LINENO: result: no" >&5
6547echo "${ECHO_T}no" >&6; }
6548fi
6549
6550
6551if test "$FDP" != "echo fdp" ; then
6552
6553cat >>confdefs.h <<\_ACEOF
6554#define HAVE_FDP 1
6555_ACEOF
6556
6557    if test "$llvm_cv_os_type" = "MingW" ; then
6558    FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6559  fi
6560
6561cat >>confdefs.h <<_ACEOF
6562#define LLVM_PATH_FDP "$FDP${EXEEXT}"
6563_ACEOF
6564
6565fi
6566# Extract the first word of "neato", so it can be a program name with args.
6567set dummy neato; ac_word=$2
6568{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6569echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6570if test "${ac_cv_path_NEATO+set}" = set; then
6571  echo $ECHO_N "(cached) $ECHO_C" >&6
6572else
6573  case $NEATO in
6574  [\\/]* | ?:[\\/]*)
6575  ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path.
6576  ;;
6577  *)
6578  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6579for as_dir in $PATH
6580do
6581  IFS=$as_save_IFS
6582  test -z "$as_dir" && as_dir=.
6583  for ac_exec_ext in '' $ac_executable_extensions; do
6584  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6585    ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext"
6586    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6587    break 2
6588  fi
6589done
6590done
6591IFS=$as_save_IFS
6592
6593  test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato"
6594  ;;
6595esac
6596fi
6597NEATO=$ac_cv_path_NEATO
6598if test -n "$NEATO"; then
6599  { echo "$as_me:$LINENO: result: $NEATO" >&5
6600echo "${ECHO_T}$NEATO" >&6; }
6601else
6602  { echo "$as_me:$LINENO: result: no" >&5
6603echo "${ECHO_T}no" >&6; }
6604fi
6605
6606
6607if test "$NEATO" != "echo neato" ; then
6608
6609cat >>confdefs.h <<\_ACEOF
6610#define HAVE_NEATO 1
6611_ACEOF
6612
6613    if test "$llvm_cv_os_type" = "MingW" ; then
6614    NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6615  fi
6616
6617cat >>confdefs.h <<_ACEOF
6618#define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
6619_ACEOF
6620
6621fi
6622# Extract the first word of "twopi", so it can be a program name with args.
6623set dummy twopi; ac_word=$2
6624{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6625echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6626if test "${ac_cv_path_TWOPI+set}" = set; then
6627  echo $ECHO_N "(cached) $ECHO_C" >&6
6628else
6629  case $TWOPI in
6630  [\\/]* | ?:[\\/]*)
6631  ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path.
6632  ;;
6633  *)
6634  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6635for as_dir in $PATH
6636do
6637  IFS=$as_save_IFS
6638  test -z "$as_dir" && as_dir=.
6639  for ac_exec_ext in '' $ac_executable_extensions; do
6640  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6641    ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext"
6642    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6643    break 2
6644  fi
6645done
6646done
6647IFS=$as_save_IFS
6648
6649  test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi"
6650  ;;
6651esac
6652fi
6653TWOPI=$ac_cv_path_TWOPI
6654if test -n "$TWOPI"; then
6655  { echo "$as_me:$LINENO: result: $TWOPI" >&5
6656echo "${ECHO_T}$TWOPI" >&6; }
6657else
6658  { echo "$as_me:$LINENO: result: no" >&5
6659echo "${ECHO_T}no" >&6; }
6660fi
6661
6662
6663if test "$TWOPI" != "echo twopi" ; then
6664
6665cat >>confdefs.h <<\_ACEOF
6666#define HAVE_TWOPI 1
6667_ACEOF
6668
6669    if test "$llvm_cv_os_type" = "MingW" ; then
6670    TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6671  fi
6672
6673cat >>confdefs.h <<_ACEOF
6674#define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
6675_ACEOF
6676
6677fi
6678# Extract the first word of "circo", so it can be a program name with args.
6679set dummy circo; ac_word=$2
6680{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6681echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6682if test "${ac_cv_path_CIRCO+set}" = set; then
6683  echo $ECHO_N "(cached) $ECHO_C" >&6
6684else
6685  case $CIRCO in
6686  [\\/]* | ?:[\\/]*)
6687  ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path.
6688  ;;
6689  *)
6690  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6691for as_dir in $PATH
6692do
6693  IFS=$as_save_IFS
6694  test -z "$as_dir" && as_dir=.
6695  for ac_exec_ext in '' $ac_executable_extensions; do
6696  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6697    ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext"
6698    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6699    break 2
6700  fi
6701done
6702done
6703IFS=$as_save_IFS
6704
6705  test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo"
6706  ;;
6707esac
6708fi
6709CIRCO=$ac_cv_path_CIRCO
6710if test -n "$CIRCO"; then
6711  { echo "$as_me:$LINENO: result: $CIRCO" >&5
6712echo "${ECHO_T}$CIRCO" >&6; }
6713else
6714  { echo "$as_me:$LINENO: result: no" >&5
6715echo "${ECHO_T}no" >&6; }
6716fi
6717
6718
6719if test "$CIRCO" != "echo circo" ; then
6720
6721cat >>confdefs.h <<\_ACEOF
6722#define HAVE_CIRCO 1
6723_ACEOF
6724
6725    if test "$llvm_cv_os_type" = "MingW" ; then
6726    CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6727  fi
6728
6729cat >>confdefs.h <<_ACEOF
6730#define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
6731_ACEOF
6732
6733fi
6734for ac_prog in gv gsview32
6735do
6736  # Extract the first word of "$ac_prog", so it can be a program name with args.
6737set dummy $ac_prog; ac_word=$2
6738{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6739echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6740if test "${ac_cv_path_GV+set}" = set; then
6741  echo $ECHO_N "(cached) $ECHO_C" >&6
6742else
6743  case $GV in
6744  [\\/]* | ?:[\\/]*)
6745  ac_cv_path_GV="$GV" # Let the user override the test with a path.
6746  ;;
6747  *)
6748  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6749for as_dir in $PATH
6750do
6751  IFS=$as_save_IFS
6752  test -z "$as_dir" && as_dir=.
6753  for ac_exec_ext in '' $ac_executable_extensions; do
6754  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6755    ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
6756    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6757    break 2
6758  fi
6759done
6760done
6761IFS=$as_save_IFS
6762
6763  ;;
6764esac
6765fi
6766GV=$ac_cv_path_GV
6767if test -n "$GV"; then
6768  { echo "$as_me:$LINENO: result: $GV" >&5
6769echo "${ECHO_T}$GV" >&6; }
6770else
6771  { echo "$as_me:$LINENO: result: no" >&5
6772echo "${ECHO_T}no" >&6; }
6773fi
6774
6775
6776  test -n "$GV" && break
6777done
6778test -n "$GV" || GV="echo gv"
6779
6780if test "$GV" != "echo gv" ; then
6781
6782cat >>confdefs.h <<\_ACEOF
6783#define HAVE_GV 1
6784_ACEOF
6785
6786    if test "$llvm_cv_os_type" = "MingW" ; then
6787    GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6788  fi
6789
6790cat >>confdefs.h <<_ACEOF
6791#define LLVM_PATH_GV "$GV${EXEEXT}"
6792_ACEOF
6793
6794fi
6795# Extract the first word of "dotty", so it can be a program name with args.
6796set dummy dotty; ac_word=$2
6797{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6798echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6799if test "${ac_cv_path_DOTTY+set}" = set; then
6800  echo $ECHO_N "(cached) $ECHO_C" >&6
6801else
6802  case $DOTTY in
6803  [\\/]* | ?:[\\/]*)
6804  ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
6805  ;;
6806  *)
6807  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6808for as_dir in $PATH
6809do
6810  IFS=$as_save_IFS
6811  test -z "$as_dir" && as_dir=.
6812  for ac_exec_ext in '' $ac_executable_extensions; do
6813  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6814    ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
6815    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6816    break 2
6817  fi
6818done
6819done
6820IFS=$as_save_IFS
6821
6822  test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
6823  ;;
6824esac
6825fi
6826DOTTY=$ac_cv_path_DOTTY
6827if test -n "$DOTTY"; then
6828  { echo "$as_me:$LINENO: result: $DOTTY" >&5
6829echo "${ECHO_T}$DOTTY" >&6; }
6830else
6831  { echo "$as_me:$LINENO: result: no" >&5
6832echo "${ECHO_T}no" >&6; }
6833fi
6834
6835
6836if test "$DOTTY" != "echo dotty" ; then
6837
6838cat >>confdefs.h <<\_ACEOF
6839#define HAVE_DOTTY 1
6840_ACEOF
6841
6842    if test "$llvm_cv_os_type" = "MingW" ; then
6843    DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6844  fi
6845
6846cat >>confdefs.h <<_ACEOF
6847#define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
6848_ACEOF
6849
6850fi
6851# Extract the first word of "xdot.py", so it can be a program name with args.
6852set dummy xdot.py; ac_word=$2
6853{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6854echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6855if test "${ac_cv_path_XDOT_PY+set}" = set; then
6856  echo $ECHO_N "(cached) $ECHO_C" >&6
6857else
6858  case $XDOT_PY in
6859  [\\/]* | ?:[\\/]*)
6860  ac_cv_path_XDOT_PY="$XDOT_PY" # Let the user override the test with a path.
6861  ;;
6862  *)
6863  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6864for as_dir in $PATH
6865do
6866  IFS=$as_save_IFS
6867  test -z "$as_dir" && as_dir=.
6868  for ac_exec_ext in '' $ac_executable_extensions; do
6869  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6870    ac_cv_path_XDOT_PY="$as_dir/$ac_word$ac_exec_ext"
6871    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6872    break 2
6873  fi
6874done
6875done
6876IFS=$as_save_IFS
6877
6878  test -z "$ac_cv_path_XDOT_PY" && ac_cv_path_XDOT_PY="echo xdot.py"
6879  ;;
6880esac
6881fi
6882XDOT_PY=$ac_cv_path_XDOT_PY
6883if test -n "$XDOT_PY"; then
6884  { echo "$as_me:$LINENO: result: $XDOT_PY" >&5
6885echo "${ECHO_T}$XDOT_PY" >&6; }
6886else
6887  { echo "$as_me:$LINENO: result: no" >&5
6888echo "${ECHO_T}no" >&6; }
6889fi
6890
6891
6892if test "$XDOT_PY" != "echo xdot.py" ; then
6893
6894cat >>confdefs.h <<\_ACEOF
6895#define HAVE_XDOT_PY 1
6896_ACEOF
6897
6898    if test "$llvm_cv_os_type" = "MingW" ; then
6899    XDOT_PY=`echo $XDOT_PY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6900  fi
6901
6902cat >>confdefs.h <<_ACEOF
6903#define LLVM_PATH_XDOT_PY "$XDOT_PY${EXEEXT}"
6904_ACEOF
6905
6906fi
6907
6908
6909# Extract the first word of "perl", so it can be a program name with args.
6910set dummy perl; ac_word=$2
6911{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6912echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6913if test "${ac_cv_path_PERL+set}" = set; then
6914  echo $ECHO_N "(cached) $ECHO_C" >&6
6915else
6916  case $PERL in
6917  [\\/]* | ?:[\\/]*)
6918  ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
6919  ;;
6920  *)
6921  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6922for as_dir in $PATH
6923do
6924  IFS=$as_save_IFS
6925  test -z "$as_dir" && as_dir=.
6926  for ac_exec_ext in '' $ac_executable_extensions; do
6927  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6928    ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
6929    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6930    break 2
6931  fi
6932done
6933done
6934IFS=$as_save_IFS
6935
6936  test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none"
6937  ;;
6938esac
6939fi
6940PERL=$ac_cv_path_PERL
6941if test -n "$PERL"; then
6942  { echo "$as_me:$LINENO: result: $PERL" >&5
6943echo "${ECHO_T}$PERL" >&6; }
6944else
6945  { echo "$as_me:$LINENO: result: no" >&5
6946echo "${ECHO_T}no" >&6; }
6947fi
6948
6949
6950if test "$PERL" != "none"; then
6951  { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5
6952echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6; }
6953  if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then
6954    { echo "$as_me:$LINENO: result: yes" >&5
6955echo "${ECHO_T}yes" >&6; }
6956  else
6957    PERL=none
6958    { echo "$as_me:$LINENO: result: not found" >&5
6959echo "${ECHO_T}not found" >&6; }
6960  fi
6961fi
6962
6963
6964if test x"$PERL" = xnone; then
6965   HAVE_PERL=0
6966
6967   { { echo "$as_me:$LINENO: error: perl is required but was not found, please install it" >&5
6968echo "$as_me: error: perl is required but was not found, please install it" >&2;}
6969   { (exit 1); exit 1; }; }
6970else
6971   HAVE_PERL=1
6972
6973fi
6974
6975# Find a good install program.  We prefer a C program (faster),
6976# so one script is as good as another.  But avoid the broken or
6977# incompatible versions:
6978# SysV /etc/install, /usr/sbin/install
6979# SunOS /usr/etc/install
6980# IRIX /sbin/install
6981# AIX /bin/install
6982# AmigaOS /C/install, which installs bootblocks on floppy discs
6983# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6984# AFS /usr/afsws/bin/install, which mishandles nonexistent args
6985# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6986# OS/2's system install, which has a completely different semantic
6987# ./install, which can be erroneously created by make from ./install.sh.
6988{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
6989echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
6990if test -z "$INSTALL"; then
6991if test "${ac_cv_path_install+set}" = set; then
6992  echo $ECHO_N "(cached) $ECHO_C" >&6
6993else
6994  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6995for as_dir in $PATH
6996do
6997  IFS=$as_save_IFS
6998  test -z "$as_dir" && as_dir=.
6999  # Account for people who put trailing slashes in PATH elements.
7000case $as_dir/ in
7001  ./ | .// | /cC/* | \
7002  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7003  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
7004  /usr/ucb/* ) ;;
7005  *)
7006    # OSF1 and SCO ODT 3.0 have their own names for install.
7007    # Don't use installbsd from OSF since it installs stuff as root
7008    # by default.
7009    for ac_prog in ginstall scoinst install; do
7010      for ac_exec_ext in '' $ac_executable_extensions; do
7011	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
7012	  if test $ac_prog = install &&
7013	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7014	    # AIX install.  It has an incompatible calling convention.
7015	    :
7016	  elif test $ac_prog = install &&
7017	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7018	    # program-specific install script used by HP pwplus--don't use.
7019	    :
7020	  else
7021	    ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7022	    break 3
7023	  fi
7024	fi
7025      done
7026    done
7027    ;;
7028esac
7029done
7030IFS=$as_save_IFS
7031
7032
7033fi
7034  if test "${ac_cv_path_install+set}" = set; then
7035    INSTALL=$ac_cv_path_install
7036  else
7037    # As a last resort, use the slow shell script.  Don't cache a
7038    # value for INSTALL within a source directory, because that will
7039    # break other packages using the cache if that directory is
7040    # removed, or if the value is a relative name.
7041    INSTALL=$ac_install_sh
7042  fi
7043fi
7044{ echo "$as_me:$LINENO: result: $INSTALL" >&5
7045echo "${ECHO_T}$INSTALL" >&6; }
7046
7047# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7048# It thinks the first close brace ends the variable substitution.
7049test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7050
7051test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7052
7053test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7054
7055case "$INSTALL" in
7056 [\\/$]* | ?:[\\/]* ) ;;
7057 *)  INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
7058esac
7059
7060# Extract the first word of "bzip2", so it can be a program name with args.
7061set dummy bzip2; ac_word=$2
7062{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7063echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7064if test "${ac_cv_path_BZIP2+set}" = set; then
7065  echo $ECHO_N "(cached) $ECHO_C" >&6
7066else
7067  case $BZIP2 in
7068  [\\/]* | ?:[\\/]*)
7069  ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7070  ;;
7071  *)
7072  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7073for as_dir in $PATH
7074do
7075  IFS=$as_save_IFS
7076  test -z "$as_dir" && as_dir=.
7077  for ac_exec_ext in '' $ac_executable_extensions; do
7078  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7079    ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
7080    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7081    break 2
7082  fi
7083done
7084done
7085IFS=$as_save_IFS
7086
7087  ;;
7088esac
7089fi
7090BZIP2=$ac_cv_path_BZIP2
7091if test -n "$BZIP2"; then
7092  { echo "$as_me:$LINENO: result: $BZIP2" >&5
7093echo "${ECHO_T}$BZIP2" >&6; }
7094else
7095  { echo "$as_me:$LINENO: result: no" >&5
7096echo "${ECHO_T}no" >&6; }
7097fi
7098
7099
7100# Extract the first word of "cat", so it can be a program name with args.
7101set dummy cat; ac_word=$2
7102{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7103echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7104if test "${ac_cv_path_CAT+set}" = set; then
7105  echo $ECHO_N "(cached) $ECHO_C" >&6
7106else
7107  case $CAT in
7108  [\\/]* | ?:[\\/]*)
7109  ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
7110  ;;
7111  *)
7112  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7113for as_dir in $PATH
7114do
7115  IFS=$as_save_IFS
7116  test -z "$as_dir" && as_dir=.
7117  for ac_exec_ext in '' $ac_executable_extensions; do
7118  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7119    ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
7120    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7121    break 2
7122  fi
7123done
7124done
7125IFS=$as_save_IFS
7126
7127  ;;
7128esac
7129fi
7130CAT=$ac_cv_path_CAT
7131if test -n "$CAT"; then
7132  { echo "$as_me:$LINENO: result: $CAT" >&5
7133echo "${ECHO_T}$CAT" >&6; }
7134else
7135  { echo "$as_me:$LINENO: result: no" >&5
7136echo "${ECHO_T}no" >&6; }
7137fi
7138
7139
7140# Extract the first word of "doxygen", so it can be a program name with args.
7141set dummy doxygen; ac_word=$2
7142{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7143echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7144if test "${ac_cv_path_DOXYGEN+set}" = set; then
7145  echo $ECHO_N "(cached) $ECHO_C" >&6
7146else
7147  case $DOXYGEN in
7148  [\\/]* | ?:[\\/]*)
7149  ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7150  ;;
7151  *)
7152  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7153for as_dir in $PATH
7154do
7155  IFS=$as_save_IFS
7156  test -z "$as_dir" && as_dir=.
7157  for ac_exec_ext in '' $ac_executable_extensions; do
7158  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7159    ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
7160    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7161    break 2
7162  fi
7163done
7164done
7165IFS=$as_save_IFS
7166
7167  ;;
7168esac
7169fi
7170DOXYGEN=$ac_cv_path_DOXYGEN
7171if test -n "$DOXYGEN"; then
7172  { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7173echo "${ECHO_T}$DOXYGEN" >&6; }
7174else
7175  { echo "$as_me:$LINENO: result: no" >&5
7176echo "${ECHO_T}no" >&6; }
7177fi
7178
7179
7180# Extract the first word of "groff", so it can be a program name with args.
7181set dummy groff; ac_word=$2
7182{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7183echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7184if test "${ac_cv_path_GROFF+set}" = set; then
7185  echo $ECHO_N "(cached) $ECHO_C" >&6
7186else
7187  case $GROFF in
7188  [\\/]* | ?:[\\/]*)
7189  ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7190  ;;
7191  *)
7192  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7193for as_dir in $PATH
7194do
7195  IFS=$as_save_IFS
7196  test -z "$as_dir" && as_dir=.
7197  for ac_exec_ext in '' $ac_executable_extensions; do
7198  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7199    ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7200    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7201    break 2
7202  fi
7203done
7204done
7205IFS=$as_save_IFS
7206
7207  ;;
7208esac
7209fi
7210GROFF=$ac_cv_path_GROFF
7211if test -n "$GROFF"; then
7212  { echo "$as_me:$LINENO: result: $GROFF" >&5
7213echo "${ECHO_T}$GROFF" >&6; }
7214else
7215  { echo "$as_me:$LINENO: result: no" >&5
7216echo "${ECHO_T}no" >&6; }
7217fi
7218
7219
7220# Extract the first word of "gzip", so it can be a program name with args.
7221set dummy gzip; ac_word=$2
7222{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7223echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7224if test "${ac_cv_path_GZIPBIN+set}" = set; then
7225  echo $ECHO_N "(cached) $ECHO_C" >&6
7226else
7227  case $GZIPBIN in
7228  [\\/]* | ?:[\\/]*)
7229  ac_cv_path_GZIPBIN="$GZIPBIN" # Let the user override the test with a path.
7230  ;;
7231  *)
7232  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7233for as_dir in $PATH
7234do
7235  IFS=$as_save_IFS
7236  test -z "$as_dir" && as_dir=.
7237  for ac_exec_ext in '' $ac_executable_extensions; do
7238  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7239    ac_cv_path_GZIPBIN="$as_dir/$ac_word$ac_exec_ext"
7240    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7241    break 2
7242  fi
7243done
7244done
7245IFS=$as_save_IFS
7246
7247  ;;
7248esac
7249fi
7250GZIPBIN=$ac_cv_path_GZIPBIN
7251if test -n "$GZIPBIN"; then
7252  { echo "$as_me:$LINENO: result: $GZIPBIN" >&5
7253echo "${ECHO_T}$GZIPBIN" >&6; }
7254else
7255  { echo "$as_me:$LINENO: result: no" >&5
7256echo "${ECHO_T}no" >&6; }
7257fi
7258
7259
7260# Extract the first word of "pod2html", so it can be a program name with args.
7261set dummy pod2html; ac_word=$2
7262{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7263echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7264if test "${ac_cv_path_POD2HTML+set}" = set; then
7265  echo $ECHO_N "(cached) $ECHO_C" >&6
7266else
7267  case $POD2HTML in
7268  [\\/]* | ?:[\\/]*)
7269  ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
7270  ;;
7271  *)
7272  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7273for as_dir in $PATH
7274do
7275  IFS=$as_save_IFS
7276  test -z "$as_dir" && as_dir=.
7277  for ac_exec_ext in '' $ac_executable_extensions; do
7278  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7279    ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
7280    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7281    break 2
7282  fi
7283done
7284done
7285IFS=$as_save_IFS
7286
7287  ;;
7288esac
7289fi
7290POD2HTML=$ac_cv_path_POD2HTML
7291if test -n "$POD2HTML"; then
7292  { echo "$as_me:$LINENO: result: $POD2HTML" >&5
7293echo "${ECHO_T}$POD2HTML" >&6; }
7294else
7295  { echo "$as_me:$LINENO: result: no" >&5
7296echo "${ECHO_T}no" >&6; }
7297fi
7298
7299
7300# Extract the first word of "pod2man", so it can be a program name with args.
7301set dummy pod2man; ac_word=$2
7302{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7303echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7304if test "${ac_cv_path_POD2MAN+set}" = set; then
7305  echo $ECHO_N "(cached) $ECHO_C" >&6
7306else
7307  case $POD2MAN in
7308  [\\/]* | ?:[\\/]*)
7309  ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
7310  ;;
7311  *)
7312  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7313for as_dir in $PATH
7314do
7315  IFS=$as_save_IFS
7316  test -z "$as_dir" && as_dir=.
7317  for ac_exec_ext in '' $ac_executable_extensions; do
7318  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7319    ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
7320    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7321    break 2
7322  fi
7323done
7324done
7325IFS=$as_save_IFS
7326
7327  ;;
7328esac
7329fi
7330POD2MAN=$ac_cv_path_POD2MAN
7331if test -n "$POD2MAN"; then
7332  { echo "$as_me:$LINENO: result: $POD2MAN" >&5
7333echo "${ECHO_T}$POD2MAN" >&6; }
7334else
7335  { echo "$as_me:$LINENO: result: no" >&5
7336echo "${ECHO_T}no" >&6; }
7337fi
7338
7339
7340# Extract the first word of "pdfroff", so it can be a program name with args.
7341set dummy pdfroff; ac_word=$2
7342{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7343echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7344if test "${ac_cv_path_PDFROFF+set}" = set; then
7345  echo $ECHO_N "(cached) $ECHO_C" >&6
7346else
7347  case $PDFROFF in
7348  [\\/]* | ?:[\\/]*)
7349  ac_cv_path_PDFROFF="$PDFROFF" # Let the user override the test with a path.
7350  ;;
7351  *)
7352  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7353for as_dir in $PATH
7354do
7355  IFS=$as_save_IFS
7356  test -z "$as_dir" && as_dir=.
7357  for ac_exec_ext in '' $ac_executable_extensions; do
7358  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7359    ac_cv_path_PDFROFF="$as_dir/$ac_word$ac_exec_ext"
7360    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7361    break 2
7362  fi
7363done
7364done
7365IFS=$as_save_IFS
7366
7367  ;;
7368esac
7369fi
7370PDFROFF=$ac_cv_path_PDFROFF
7371if test -n "$PDFROFF"; then
7372  { echo "$as_me:$LINENO: result: $PDFROFF" >&5
7373echo "${ECHO_T}$PDFROFF" >&6; }
7374else
7375  { echo "$as_me:$LINENO: result: no" >&5
7376echo "${ECHO_T}no" >&6; }
7377fi
7378
7379
7380# Extract the first word of "runtest", so it can be a program name with args.
7381set dummy runtest; ac_word=$2
7382{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7383echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7384if test "${ac_cv_path_RUNTEST+set}" = set; then
7385  echo $ECHO_N "(cached) $ECHO_C" >&6
7386else
7387  case $RUNTEST in
7388  [\\/]* | ?:[\\/]*)
7389  ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
7390  ;;
7391  *)
7392  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7393for as_dir in $PATH
7394do
7395  IFS=$as_save_IFS
7396  test -z "$as_dir" && as_dir=.
7397  for ac_exec_ext in '' $ac_executable_extensions; do
7398  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7399    ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
7400    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7401    break 2
7402  fi
7403done
7404done
7405IFS=$as_save_IFS
7406
7407  ;;
7408esac
7409fi
7410RUNTEST=$ac_cv_path_RUNTEST
7411if test -n "$RUNTEST"; then
7412  { echo "$as_me:$LINENO: result: $RUNTEST" >&5
7413echo "${ECHO_T}$RUNTEST" >&6; }
7414else
7415  { echo "$as_me:$LINENO: result: no" >&5
7416echo "${ECHO_T}no" >&6; }
7417fi
7418
7419
7420
7421no_itcl=true
7422{ echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
7423echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
7424
7425# Check whether --with-tclinclude was given.
7426if test "${with_tclinclude+set}" = set; then
7427  withval=$with_tclinclude; with_tclinclude=${withval}
7428else
7429  with_tclinclude=''
7430fi
7431
7432if test "${ac_cv_path_tclsh+set}" = set; then
7433  echo $ECHO_N "(cached) $ECHO_C" >&6
7434else
7435
7436if test x"${with_tclinclude}" != x ; then
7437  if test -f ${with_tclinclude}/tclsh ; then
7438    ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
7439  elif test -f ${with_tclinclude}/src/tclsh ; then
7440    ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
7441  else
7442    { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
7443echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
7444   { (exit 1); exit 1; }; }
7445  fi
7446fi
7447fi
7448
7449
7450if test x"${ac_cv_path_tclsh}" = x ; then
7451  { echo "$as_me:$LINENO: result: none" >&5
7452echo "${ECHO_T}none" >&6; }
7453  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
7454do
7455  # Extract the first word of "$ac_prog", so it can be a program name with args.
7456set dummy $ac_prog; ac_word=$2
7457{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7458echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7459if test "${ac_cv_path_TCLSH+set}" = set; then
7460  echo $ECHO_N "(cached) $ECHO_C" >&6
7461else
7462  case $TCLSH in
7463  [\\/]* | ?:[\\/]*)
7464  ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
7465  ;;
7466  *)
7467  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7468for as_dir in $PATH
7469do
7470  IFS=$as_save_IFS
7471  test -z "$as_dir" && as_dir=.
7472  for ac_exec_ext in '' $ac_executable_extensions; do
7473  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7474    ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
7475    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7476    break 2
7477  fi
7478done
7479done
7480IFS=$as_save_IFS
7481
7482  ;;
7483esac
7484fi
7485TCLSH=$ac_cv_path_TCLSH
7486if test -n "$TCLSH"; then
7487  { echo "$as_me:$LINENO: result: $TCLSH" >&5
7488echo "${ECHO_T}$TCLSH" >&6; }
7489else
7490  { echo "$as_me:$LINENO: result: no" >&5
7491echo "${ECHO_T}no" >&6; }
7492fi
7493
7494
7495  test -n "$TCLSH" && break
7496done
7497
7498  if test x"${TCLSH}" = x ; then
7499    ac_cv_path_tclsh='';
7500  else
7501    ac_cv_path_tclsh="${TCLSH}";
7502  fi
7503else
7504  { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
7505echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
7506  TCLSH="${ac_cv_path_tclsh}"
7507
7508fi
7509
7510# Extract the first word of "zip", so it can be a program name with args.
7511set dummy zip; ac_word=$2
7512{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7513echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7514if test "${ac_cv_path_ZIP+set}" = set; then
7515  echo $ECHO_N "(cached) $ECHO_C" >&6
7516else
7517  case $ZIP in
7518  [\\/]* | ?:[\\/]*)
7519  ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
7520  ;;
7521  *)
7522  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7523for as_dir in $PATH
7524do
7525  IFS=$as_save_IFS
7526  test -z "$as_dir" && as_dir=.
7527  for ac_exec_ext in '' $ac_executable_extensions; do
7528  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7529    ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
7530    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7531    break 2
7532  fi
7533done
7534done
7535IFS=$as_save_IFS
7536
7537  ;;
7538esac
7539fi
7540ZIP=$ac_cv_path_ZIP
7541if test -n "$ZIP"; then
7542  { echo "$as_me:$LINENO: result: $ZIP" >&5
7543echo "${ECHO_T}$ZIP" >&6; }
7544else
7545  { echo "$as_me:$LINENO: result: no" >&5
7546echo "${ECHO_T}no" >&6; }
7547fi
7548
7549
7550for ac_prog in ocamlc
7551do
7552  # Extract the first word of "$ac_prog", so it can be a program name with args.
7553set dummy $ac_prog; ac_word=$2
7554{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7555echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7556if test "${ac_cv_path_OCAMLC+set}" = set; then
7557  echo $ECHO_N "(cached) $ECHO_C" >&6
7558else
7559  case $OCAMLC in
7560  [\\/]* | ?:[\\/]*)
7561  ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
7562  ;;
7563  *)
7564  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7565for as_dir in $PATH
7566do
7567  IFS=$as_save_IFS
7568  test -z "$as_dir" && as_dir=.
7569  for ac_exec_ext in '' $ac_executable_extensions; do
7570  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7571    ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
7572    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7573    break 2
7574  fi
7575done
7576done
7577IFS=$as_save_IFS
7578
7579  ;;
7580esac
7581fi
7582OCAMLC=$ac_cv_path_OCAMLC
7583if test -n "$OCAMLC"; then
7584  { echo "$as_me:$LINENO: result: $OCAMLC" >&5
7585echo "${ECHO_T}$OCAMLC" >&6; }
7586else
7587  { echo "$as_me:$LINENO: result: no" >&5
7588echo "${ECHO_T}no" >&6; }
7589fi
7590
7591
7592  test -n "$OCAMLC" && break
7593done
7594
7595for ac_prog in ocamlopt
7596do
7597  # Extract the first word of "$ac_prog", so it can be a program name with args.
7598set dummy $ac_prog; ac_word=$2
7599{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7600echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7601if test "${ac_cv_path_OCAMLOPT+set}" = set; then
7602  echo $ECHO_N "(cached) $ECHO_C" >&6
7603else
7604  case $OCAMLOPT in
7605  [\\/]* | ?:[\\/]*)
7606  ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
7607  ;;
7608  *)
7609  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7610for as_dir in $PATH
7611do
7612  IFS=$as_save_IFS
7613  test -z "$as_dir" && as_dir=.
7614  for ac_exec_ext in '' $ac_executable_extensions; do
7615  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7616    ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
7617    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7618    break 2
7619  fi
7620done
7621done
7622IFS=$as_save_IFS
7623
7624  ;;
7625esac
7626fi
7627OCAMLOPT=$ac_cv_path_OCAMLOPT
7628if test -n "$OCAMLOPT"; then
7629  { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
7630echo "${ECHO_T}$OCAMLOPT" >&6; }
7631else
7632  { echo "$as_me:$LINENO: result: no" >&5
7633echo "${ECHO_T}no" >&6; }
7634fi
7635
7636
7637  test -n "$OCAMLOPT" && break
7638done
7639
7640for ac_prog in ocamldep
7641do
7642  # Extract the first word of "$ac_prog", so it can be a program name with args.
7643set dummy $ac_prog; ac_word=$2
7644{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7645echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7646if test "${ac_cv_path_OCAMLDEP+set}" = set; then
7647  echo $ECHO_N "(cached) $ECHO_C" >&6
7648else
7649  case $OCAMLDEP in
7650  [\\/]* | ?:[\\/]*)
7651  ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
7652  ;;
7653  *)
7654  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7655for as_dir in $PATH
7656do
7657  IFS=$as_save_IFS
7658  test -z "$as_dir" && as_dir=.
7659  for ac_exec_ext in '' $ac_executable_extensions; do
7660  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7661    ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
7662    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7663    break 2
7664  fi
7665done
7666done
7667IFS=$as_save_IFS
7668
7669  ;;
7670esac
7671fi
7672OCAMLDEP=$ac_cv_path_OCAMLDEP
7673if test -n "$OCAMLDEP"; then
7674  { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
7675echo "${ECHO_T}$OCAMLDEP" >&6; }
7676else
7677  { echo "$as_me:$LINENO: result: no" >&5
7678echo "${ECHO_T}no" >&6; }
7679fi
7680
7681
7682  test -n "$OCAMLDEP" && break
7683done
7684
7685for ac_prog in ocamldoc
7686do
7687  # Extract the first word of "$ac_prog", so it can be a program name with args.
7688set dummy $ac_prog; ac_word=$2
7689{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7690echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7691if test "${ac_cv_path_OCAMLDOC+set}" = set; then
7692  echo $ECHO_N "(cached) $ECHO_C" >&6
7693else
7694  case $OCAMLDOC in
7695  [\\/]* | ?:[\\/]*)
7696  ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
7697  ;;
7698  *)
7699  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7700for as_dir in $PATH
7701do
7702  IFS=$as_save_IFS
7703  test -z "$as_dir" && as_dir=.
7704  for ac_exec_ext in '' $ac_executable_extensions; do
7705  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7706    ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
7707    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7708    break 2
7709  fi
7710done
7711done
7712IFS=$as_save_IFS
7713
7714  ;;
7715esac
7716fi
7717OCAMLDOC=$ac_cv_path_OCAMLDOC
7718if test -n "$OCAMLDOC"; then
7719  { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
7720echo "${ECHO_T}$OCAMLDOC" >&6; }
7721else
7722  { echo "$as_me:$LINENO: result: no" >&5
7723echo "${ECHO_T}no" >&6; }
7724fi
7725
7726
7727  test -n "$OCAMLDOC" && break
7728done
7729
7730for ac_prog in gas as
7731do
7732  # Extract the first word of "$ac_prog", so it can be a program name with args.
7733set dummy $ac_prog; ac_word=$2
7734{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7735echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7736if test "${ac_cv_path_GAS+set}" = set; then
7737  echo $ECHO_N "(cached) $ECHO_C" >&6
7738else
7739  case $GAS in
7740  [\\/]* | ?:[\\/]*)
7741  ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
7742  ;;
7743  *)
7744  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7745for as_dir in $PATH
7746do
7747  IFS=$as_save_IFS
7748  test -z "$as_dir" && as_dir=.
7749  for ac_exec_ext in '' $ac_executable_extensions; do
7750  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7751    ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
7752    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7753    break 2
7754  fi
7755done
7756done
7757IFS=$as_save_IFS
7758
7759  ;;
7760esac
7761fi
7762GAS=$ac_cv_path_GAS
7763if test -n "$GAS"; then
7764  { echo "$as_me:$LINENO: result: $GAS" >&5
7765echo "${ECHO_T}$GAS" >&6; }
7766else
7767  { echo "$as_me:$LINENO: result: no" >&5
7768echo "${ECHO_T}no" >&6; }
7769fi
7770
7771
7772  test -n "$GAS" && break
7773done
7774
7775
7776{ echo "$as_me:$LINENO: checking for linker version" >&5
7777echo $ECHO_N "checking for linker version... $ECHO_C" >&6; }
7778if test "${llvm_cv_link_version+set}" = set; then
7779  echo $ECHO_N "(cached) $ECHO_C" >&6
7780else
7781
7782   version_string="$(ld -v 2>&1 | head -1)"
7783
7784   # Check for ld64.
7785   if (echo "$version_string" | grep -q "ld64"); then
7786     llvm_cv_link_version=$(echo "$version_string" | sed -e "s#.*ld64-\([^ ]*\)#\1#")
7787   else
7788     llvm_cv_link_version=$(echo "$version_string" | sed -e "s#[^0-9]*\([0-9.]*\).*#\1#")
7789   fi
7790
7791fi
7792{ echo "$as_me:$LINENO: result: $llvm_cv_link_version" >&5
7793echo "${ECHO_T}$llvm_cv_link_version" >&6; }
7794
7795cat >>confdefs.h <<_ACEOF
7796#define HOST_LINK_VERSION "$llvm_cv_link_version"
7797_ACEOF
7798
7799
7800
7801{ echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
7802echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
7803if test "${llvm_cv_link_use_r+set}" = set; then
7804  echo $ECHO_N "(cached) $ECHO_C" >&6
7805else
7806   ac_ext=c
7807ac_cpp='$CPP $CPPFLAGS'
7808ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7809ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7810ac_compiler_gnu=$ac_cv_c_compiler_gnu
7811
7812  oldcflags="$CFLAGS"
7813  CFLAGS="$CFLAGS -Wl,-R."
7814  cat >conftest.$ac_ext <<_ACEOF
7815/* confdefs.h.  */
7816_ACEOF
7817cat confdefs.h >>conftest.$ac_ext
7818cat >>conftest.$ac_ext <<_ACEOF
7819/* end confdefs.h.  */
7820
7821int
7822main ()
7823{
7824
7825  ;
7826  return 0;
7827}
7828_ACEOF
7829rm -f conftest.$ac_objext conftest$ac_exeext
7830if { (ac_try="$ac_link"
7831case "(($ac_try" in
7832  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7833  *) ac_try_echo=$ac_try;;
7834esac
7835eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7836  (eval "$ac_link") 2>conftest.er1
7837  ac_status=$?
7838  grep -v '^ *+' conftest.er1 >conftest.err
7839  rm -f conftest.er1
7840  cat conftest.err >&5
7841  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7842  (exit $ac_status); } &&
7843	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7844  { (case "(($ac_try" in
7845  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7846  *) ac_try_echo=$ac_try;;
7847esac
7848eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7849  (eval "$ac_try") 2>&5
7850  ac_status=$?
7851  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7852  (exit $ac_status); }; } &&
7853	 { ac_try='test -s conftest$ac_exeext'
7854  { (case "(($ac_try" in
7855  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7856  *) ac_try_echo=$ac_try;;
7857esac
7858eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7859  (eval "$ac_try") 2>&5
7860  ac_status=$?
7861  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7862  (exit $ac_status); }; }; then
7863  llvm_cv_link_use_r=yes
7864else
7865  echo "$as_me: failed program was:" >&5
7866sed 's/^/| /' conftest.$ac_ext >&5
7867
7868	llvm_cv_link_use_r=no
7869fi
7870
7871rm -f core conftest.err conftest.$ac_objext \
7872      conftest$ac_exeext conftest.$ac_ext
7873  CFLAGS="$oldcflags"
7874  ac_ext=c
7875ac_cpp='$CPP $CPPFLAGS'
7876ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7877ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7878ac_compiler_gnu=$ac_cv_c_compiler_gnu
7879
7880
7881fi
7882{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
7883echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
7884if test "$llvm_cv_link_use_r" = yes ; then
7885
7886cat >>confdefs.h <<\_ACEOF
7887#define HAVE_LINK_R 1
7888_ACEOF
7889
7890  fi
7891
7892
7893{ echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5
7894echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; }
7895if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
7896  echo $ECHO_N "(cached) $ECHO_C" >&6
7897else
7898   ac_ext=c
7899ac_cpp='$CPP $CPPFLAGS'
7900ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7901ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7902ac_compiler_gnu=$ac_cv_c_compiler_gnu
7903
7904  oldcflags="$CFLAGS"
7905  CFLAGS="$CFLAGS -Wl,-export-dynamic"
7906  cat >conftest.$ac_ext <<_ACEOF
7907/* confdefs.h.  */
7908_ACEOF
7909cat confdefs.h >>conftest.$ac_ext
7910cat >>conftest.$ac_ext <<_ACEOF
7911/* end confdefs.h.  */
7912
7913int
7914main ()
7915{
7916
7917  ;
7918  return 0;
7919}
7920_ACEOF
7921rm -f conftest.$ac_objext conftest$ac_exeext
7922if { (ac_try="$ac_link"
7923case "(($ac_try" in
7924  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7925  *) ac_try_echo=$ac_try;;
7926esac
7927eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7928  (eval "$ac_link") 2>conftest.er1
7929  ac_status=$?
7930  grep -v '^ *+' conftest.er1 >conftest.err
7931  rm -f conftest.er1
7932  cat conftest.err >&5
7933  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7934  (exit $ac_status); } &&
7935	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7936  { (case "(($ac_try" in
7937  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7938  *) ac_try_echo=$ac_try;;
7939esac
7940eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7941  (eval "$ac_try") 2>&5
7942  ac_status=$?
7943  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7944  (exit $ac_status); }; } &&
7945	 { ac_try='test -s conftest$ac_exeext'
7946  { (case "(($ac_try" in
7947  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7948  *) ac_try_echo=$ac_try;;
7949esac
7950eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7951  (eval "$ac_try") 2>&5
7952  ac_status=$?
7953  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7954  (exit $ac_status); }; }; then
7955  llvm_cv_link_use_export_dynamic=yes
7956else
7957  echo "$as_me: failed program was:" >&5
7958sed 's/^/| /' conftest.$ac_ext >&5
7959
7960	llvm_cv_link_use_export_dynamic=no
7961fi
7962
7963rm -f core conftest.err conftest.$ac_objext \
7964      conftest$ac_exeext conftest.$ac_ext
7965  CFLAGS="$oldcflags"
7966  ac_ext=c
7967ac_cpp='$CPP $CPPFLAGS'
7968ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7969ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7970ac_compiler_gnu=$ac_cv_c_compiler_gnu
7971
7972
7973fi
7974{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
7975echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
7976if test "$llvm_cv_link_use_export_dynamic" = yes ; then
7977
7978cat >>confdefs.h <<\_ACEOF
7979#define HAVE_LINK_EXPORT_DYNAMIC 1
7980_ACEOF
7981
7982  fi
7983
7984
7985{ echo "$as_me:$LINENO: checking for compiler -Wl,--version-script option" >&5
7986echo $ECHO_N "checking for compiler -Wl,--version-script option... $ECHO_C" >&6; }
7987if test "${llvm_cv_link_use_version_script+set}" = set; then
7988  echo $ECHO_N "(cached) $ECHO_C" >&6
7989else
7990   ac_ext=c
7991ac_cpp='$CPP $CPPFLAGS'
7992ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7993ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7994ac_compiler_gnu=$ac_cv_c_compiler_gnu
7995
7996  oldcflags="$CFLAGS"
7997
7998  # The following code is from the autoconf manual,
7999  # "11.13: Limitations of Usual Tools".
8000  # Create a temporary directory $tmp in $TMPDIR (default /tmp).
8001  # Use mktemp if possible; otherwise fall back on mkdir,
8002  # with $RANDOM to make collisions less likely.
8003  : ${TMPDIR=/tmp}
8004  {
8005    tmp=`
8006      (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null
8007    ` &&
8008    test -n "$tmp" && test -d "$tmp"
8009  } || {
8010    tmp=$TMPDIR/foo$$-$RANDOM
8011    (umask 077 && mkdir "$tmp")
8012  } || exit $?
8013
8014  echo "{" > "$tmp/export.map"
8015  echo "  global: main;" >> "$tmp/export.map"
8016  echo "  local: *;" >> "$tmp/export.map"
8017  echo "};" >> "$tmp/export.map"
8018
8019  CFLAGS="$CFLAGS -Wl,--version-script=$tmp/export.map"
8020  cat >conftest.$ac_ext <<_ACEOF
8021/* confdefs.h.  */
8022_ACEOF
8023cat confdefs.h >>conftest.$ac_ext
8024cat >>conftest.$ac_ext <<_ACEOF
8025/* end confdefs.h.  */
8026
8027int
8028main ()
8029{
8030
8031  ;
8032  return 0;
8033}
8034_ACEOF
8035rm -f conftest.$ac_objext conftest$ac_exeext
8036if { (ac_try="$ac_link"
8037case "(($ac_try" in
8038  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8039  *) ac_try_echo=$ac_try;;
8040esac
8041eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8042  (eval "$ac_link") 2>conftest.er1
8043  ac_status=$?
8044  grep -v '^ *+' conftest.er1 >conftest.err
8045  rm -f conftest.er1
8046  cat conftest.err >&5
8047  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8048  (exit $ac_status); } &&
8049	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8050  { (case "(($ac_try" in
8051  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8052  *) ac_try_echo=$ac_try;;
8053esac
8054eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8055  (eval "$ac_try") 2>&5
8056  ac_status=$?
8057  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8058  (exit $ac_status); }; } &&
8059	 { ac_try='test -s conftest$ac_exeext'
8060  { (case "(($ac_try" in
8061  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8062  *) ac_try_echo=$ac_try;;
8063esac
8064eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8065  (eval "$ac_try") 2>&5
8066  ac_status=$?
8067  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8068  (exit $ac_status); }; }; then
8069  llvm_cv_link_use_version_script=yes
8070else
8071  echo "$as_me: failed program was:" >&5
8072sed 's/^/| /' conftest.$ac_ext >&5
8073
8074	llvm_cv_link_use_version_script=no
8075fi
8076
8077rm -f core conftest.err conftest.$ac_objext \
8078      conftest$ac_exeext conftest.$ac_ext
8079  rm "$tmp/export.map"
8080  rmdir "$tmp"
8081  CFLAGS="$oldcflags"
8082  ac_ext=c
8083ac_cpp='$CPP $CPPFLAGS'
8084ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8085ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8086ac_compiler_gnu=$ac_cv_c_compiler_gnu
8087
8088
8089fi
8090{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_version_script" >&5
8091echo "${ECHO_T}$llvm_cv_link_use_version_script" >&6; }
8092if test "$llvm_cv_link_use_version_script" = yes ; then
8093  HAVE_LINK_VERSION_SCRIPT=1
8094
8095  fi
8096
8097
8098
8099
8100{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8101echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8102if test "${ac_cv_c_const+set}" = set; then
8103  echo $ECHO_N "(cached) $ECHO_C" >&6
8104else
8105  cat >conftest.$ac_ext <<_ACEOF
8106/* confdefs.h.  */
8107_ACEOF
8108cat confdefs.h >>conftest.$ac_ext
8109cat >>conftest.$ac_ext <<_ACEOF
8110/* end confdefs.h.  */
8111
8112int
8113main ()
8114{
8115/* FIXME: Include the comments suggested by Paul. */
8116#ifndef __cplusplus
8117  /* Ultrix mips cc rejects this.  */
8118  typedef int charset[2];
8119  const charset x;
8120  /* SunOS 4.1.1 cc rejects this.  */
8121  char const *const *ccp;
8122  char **p;
8123  /* NEC SVR4.0.2 mips cc rejects this.  */
8124  struct point {int x, y;};
8125  static struct point const zero = {0,0};
8126  /* AIX XL C 1.02.0.0 rejects this.
8127     It does not let you subtract one const X* pointer from another in
8128     an arm of an if-expression whose if-part is not a constant
8129     expression */
8130  const char *g = "string";
8131  ccp = &g + (g ? g-g : 0);
8132  /* HPUX 7.0 cc rejects these. */
8133  ++ccp;
8134  p = (char**) ccp;
8135  ccp = (char const *const *) p;
8136  { /* SCO 3.2v4 cc rejects this.  */
8137    char *t;
8138    char const *s = 0 ? (char *) 0 : (char const *) 0;
8139
8140    *t++ = 0;
8141    if (s) return 0;
8142  }
8143  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
8144    int x[] = {25, 17};
8145    const int *foo = &x[0];
8146    ++foo;
8147  }
8148  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8149    typedef const int *iptr;
8150    iptr p = 0;
8151    ++p;
8152  }
8153  { /* AIX XL C 1.02.0.0 rejects this saying
8154       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8155    struct s { int j; const int *ap[3]; };
8156    struct s *b; b->j = 5;
8157  }
8158  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8159    const int foo = 10;
8160    if (!foo) return 0;
8161  }
8162  return !x[0] && !zero.x;
8163#endif
8164
8165  ;
8166  return 0;
8167}
8168_ACEOF
8169rm -f conftest.$ac_objext
8170if { (ac_try="$ac_compile"
8171case "(($ac_try" in
8172  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8173  *) ac_try_echo=$ac_try;;
8174esac
8175eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8176  (eval "$ac_compile") 2>conftest.er1
8177  ac_status=$?
8178  grep -v '^ *+' conftest.er1 >conftest.err
8179  rm -f conftest.er1
8180  cat conftest.err >&5
8181  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8182  (exit $ac_status); } &&
8183	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8184  { (case "(($ac_try" in
8185  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8186  *) ac_try_echo=$ac_try;;
8187esac
8188eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8189  (eval "$ac_try") 2>&5
8190  ac_status=$?
8191  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8192  (exit $ac_status); }; } &&
8193	 { ac_try='test -s conftest.$ac_objext'
8194  { (case "(($ac_try" in
8195  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8196  *) ac_try_echo=$ac_try;;
8197esac
8198eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8199  (eval "$ac_try") 2>&5
8200  ac_status=$?
8201  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8202  (exit $ac_status); }; }; then
8203  ac_cv_c_const=yes
8204else
8205  echo "$as_me: failed program was:" >&5
8206sed 's/^/| /' conftest.$ac_ext >&5
8207
8208	ac_cv_c_const=no
8209fi
8210
8211rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8212fi
8213{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8214echo "${ECHO_T}$ac_cv_c_const" >&6; }
8215if test $ac_cv_c_const = no; then
8216
8217cat >>confdefs.h <<\_ACEOF
8218#define const
8219_ACEOF
8220
8221fi
8222
8223
8224
8225
8226
8227
8228ac_header_dirent=no
8229for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8230  as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8231{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8232echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8233if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8234  echo $ECHO_N "(cached) $ECHO_C" >&6
8235else
8236  cat >conftest.$ac_ext <<_ACEOF
8237/* confdefs.h.  */
8238_ACEOF
8239cat confdefs.h >>conftest.$ac_ext
8240cat >>conftest.$ac_ext <<_ACEOF
8241/* end confdefs.h.  */
8242#include <sys/types.h>
8243#include <$ac_hdr>
8244
8245int
8246main ()
8247{
8248if ((DIR *) 0)
8249return 0;
8250  ;
8251  return 0;
8252}
8253_ACEOF
8254rm -f conftest.$ac_objext
8255if { (ac_try="$ac_compile"
8256case "(($ac_try" in
8257  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8258  *) ac_try_echo=$ac_try;;
8259esac
8260eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8261  (eval "$ac_compile") 2>conftest.er1
8262  ac_status=$?
8263  grep -v '^ *+' conftest.er1 >conftest.err
8264  rm -f conftest.er1
8265  cat conftest.err >&5
8266  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8267  (exit $ac_status); } &&
8268	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8269  { (case "(($ac_try" in
8270  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8271  *) ac_try_echo=$ac_try;;
8272esac
8273eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8274  (eval "$ac_try") 2>&5
8275  ac_status=$?
8276  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8277  (exit $ac_status); }; } &&
8278	 { ac_try='test -s conftest.$ac_objext'
8279  { (case "(($ac_try" in
8280  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8281  *) ac_try_echo=$ac_try;;
8282esac
8283eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8284  (eval "$ac_try") 2>&5
8285  ac_status=$?
8286  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8287  (exit $ac_status); }; }; then
8288  eval "$as_ac_Header=yes"
8289else
8290  echo "$as_me: failed program was:" >&5
8291sed 's/^/| /' conftest.$ac_ext >&5
8292
8293	eval "$as_ac_Header=no"
8294fi
8295
8296rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8297fi
8298ac_res=`eval echo '${'$as_ac_Header'}'`
8299	       { echo "$as_me:$LINENO: result: $ac_res" >&5
8300echo "${ECHO_T}$ac_res" >&6; }
8301if test `eval echo '${'$as_ac_Header'}'` = yes; then
8302  cat >>confdefs.h <<_ACEOF
8303#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8304_ACEOF
8305
8306ac_header_dirent=$ac_hdr; break
8307fi
8308
8309done
8310# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8311if test $ac_header_dirent = dirent.h; then
8312  { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8313echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8314if test "${ac_cv_search_opendir+set}" = set; then
8315  echo $ECHO_N "(cached) $ECHO_C" >&6
8316else
8317  ac_func_search_save_LIBS=$LIBS
8318cat >conftest.$ac_ext <<_ACEOF
8319/* confdefs.h.  */
8320_ACEOF
8321cat confdefs.h >>conftest.$ac_ext
8322cat >>conftest.$ac_ext <<_ACEOF
8323/* end confdefs.h.  */
8324
8325/* Override any GCC internal prototype to avoid an error.
8326   Use char because int might match the return type of a GCC
8327   builtin and then its argument prototype would still apply.  */
8328#ifdef __cplusplus
8329extern "C"
8330#endif
8331char opendir ();
8332int
8333main ()
8334{
8335return opendir ();
8336  ;
8337  return 0;
8338}
8339_ACEOF
8340for ac_lib in '' dir; do
8341  if test -z "$ac_lib"; then
8342    ac_res="none required"
8343  else
8344    ac_res=-l$ac_lib
8345    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8346  fi
8347  rm -f conftest.$ac_objext conftest$ac_exeext
8348if { (ac_try="$ac_link"
8349case "(($ac_try" in
8350  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8351  *) ac_try_echo=$ac_try;;
8352esac
8353eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8354  (eval "$ac_link") 2>conftest.er1
8355  ac_status=$?
8356  grep -v '^ *+' conftest.er1 >conftest.err
8357  rm -f conftest.er1
8358  cat conftest.err >&5
8359  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8360  (exit $ac_status); } &&
8361	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8362  { (case "(($ac_try" in
8363  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8364  *) ac_try_echo=$ac_try;;
8365esac
8366eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8367  (eval "$ac_try") 2>&5
8368  ac_status=$?
8369  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8370  (exit $ac_status); }; } &&
8371	 { ac_try='test -s conftest$ac_exeext'
8372  { (case "(($ac_try" in
8373  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8374  *) ac_try_echo=$ac_try;;
8375esac
8376eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8377  (eval "$ac_try") 2>&5
8378  ac_status=$?
8379  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8380  (exit $ac_status); }; }; then
8381  ac_cv_search_opendir=$ac_res
8382else
8383  echo "$as_me: failed program was:" >&5
8384sed 's/^/| /' conftest.$ac_ext >&5
8385
8386
8387fi
8388
8389rm -f core conftest.err conftest.$ac_objext \
8390      conftest$ac_exeext
8391  if test "${ac_cv_search_opendir+set}" = set; then
8392  break
8393fi
8394done
8395if test "${ac_cv_search_opendir+set}" = set; then
8396  :
8397else
8398  ac_cv_search_opendir=no
8399fi
8400rm conftest.$ac_ext
8401LIBS=$ac_func_search_save_LIBS
8402fi
8403{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8404echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8405ac_res=$ac_cv_search_opendir
8406if test "$ac_res" != no; then
8407  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8408
8409fi
8410
8411else
8412  { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8413echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8414if test "${ac_cv_search_opendir+set}" = set; then
8415  echo $ECHO_N "(cached) $ECHO_C" >&6
8416else
8417  ac_func_search_save_LIBS=$LIBS
8418cat >conftest.$ac_ext <<_ACEOF
8419/* confdefs.h.  */
8420_ACEOF
8421cat confdefs.h >>conftest.$ac_ext
8422cat >>conftest.$ac_ext <<_ACEOF
8423/* end confdefs.h.  */
8424
8425/* Override any GCC internal prototype to avoid an error.
8426   Use char because int might match the return type of a GCC
8427   builtin and then its argument prototype would still apply.  */
8428#ifdef __cplusplus
8429extern "C"
8430#endif
8431char opendir ();
8432int
8433main ()
8434{
8435return opendir ();
8436  ;
8437  return 0;
8438}
8439_ACEOF
8440for ac_lib in '' x; do
8441  if test -z "$ac_lib"; then
8442    ac_res="none required"
8443  else
8444    ac_res=-l$ac_lib
8445    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8446  fi
8447  rm -f conftest.$ac_objext conftest$ac_exeext
8448if { (ac_try="$ac_link"
8449case "(($ac_try" in
8450  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8451  *) ac_try_echo=$ac_try;;
8452esac
8453eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8454  (eval "$ac_link") 2>conftest.er1
8455  ac_status=$?
8456  grep -v '^ *+' conftest.er1 >conftest.err
8457  rm -f conftest.er1
8458  cat conftest.err >&5
8459  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8460  (exit $ac_status); } &&
8461	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8462  { (case "(($ac_try" in
8463  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8464  *) ac_try_echo=$ac_try;;
8465esac
8466eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8467  (eval "$ac_try") 2>&5
8468  ac_status=$?
8469  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8470  (exit $ac_status); }; } &&
8471	 { ac_try='test -s conftest$ac_exeext'
8472  { (case "(($ac_try" in
8473  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8474  *) ac_try_echo=$ac_try;;
8475esac
8476eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8477  (eval "$ac_try") 2>&5
8478  ac_status=$?
8479  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8480  (exit $ac_status); }; }; then
8481  ac_cv_search_opendir=$ac_res
8482else
8483  echo "$as_me: failed program was:" >&5
8484sed 's/^/| /' conftest.$ac_ext >&5
8485
8486
8487fi
8488
8489rm -f core conftest.err conftest.$ac_objext \
8490      conftest$ac_exeext
8491  if test "${ac_cv_search_opendir+set}" = set; then
8492  break
8493fi
8494done
8495if test "${ac_cv_search_opendir+set}" = set; then
8496  :
8497else
8498  ac_cv_search_opendir=no
8499fi
8500rm conftest.$ac_ext
8501LIBS=$ac_func_search_save_LIBS
8502fi
8503{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8504echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8505ac_res=$ac_cv_search_opendir
8506if test "$ac_res" != no; then
8507  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8508
8509fi
8510
8511fi
8512
8513
8514for ac_header in dlfcn.h
8515do
8516as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8517if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8518  { echo "$as_me:$LINENO: checking for $ac_header" >&5
8519echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8520if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8521  echo $ECHO_N "(cached) $ECHO_C" >&6
8522fi
8523ac_res=`eval echo '${'$as_ac_Header'}'`
8524	       { echo "$as_me:$LINENO: result: $ac_res" >&5
8525echo "${ECHO_T}$ac_res" >&6; }
8526else
8527  # Is the header compilable?
8528{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
8529echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8530cat >conftest.$ac_ext <<_ACEOF
8531/* confdefs.h.  */
8532_ACEOF
8533cat confdefs.h >>conftest.$ac_ext
8534cat >>conftest.$ac_ext <<_ACEOF
8535/* end confdefs.h.  */
8536$ac_includes_default
8537#include <$ac_header>
8538_ACEOF
8539rm -f conftest.$ac_objext
8540if { (ac_try="$ac_compile"
8541case "(($ac_try" in
8542  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8543  *) ac_try_echo=$ac_try;;
8544esac
8545eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8546  (eval "$ac_compile") 2>conftest.er1
8547  ac_status=$?
8548  grep -v '^ *+' conftest.er1 >conftest.err
8549  rm -f conftest.er1
8550  cat conftest.err >&5
8551  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8552  (exit $ac_status); } &&
8553	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8554  { (case "(($ac_try" in
8555  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8556  *) ac_try_echo=$ac_try;;
8557esac
8558eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8559  (eval "$ac_try") 2>&5
8560  ac_status=$?
8561  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8562  (exit $ac_status); }; } &&
8563	 { ac_try='test -s conftest.$ac_objext'
8564  { (case "(($ac_try" in
8565  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8566  *) ac_try_echo=$ac_try;;
8567esac
8568eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8569  (eval "$ac_try") 2>&5
8570  ac_status=$?
8571  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8572  (exit $ac_status); }; }; then
8573  ac_header_compiler=yes
8574else
8575  echo "$as_me: failed program was:" >&5
8576sed 's/^/| /' conftest.$ac_ext >&5
8577
8578	ac_header_compiler=no
8579fi
8580
8581rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8582{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8583echo "${ECHO_T}$ac_header_compiler" >&6; }
8584
8585# Is the header present?
8586{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
8587echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8588cat >conftest.$ac_ext <<_ACEOF
8589/* confdefs.h.  */
8590_ACEOF
8591cat confdefs.h >>conftest.$ac_ext
8592cat >>conftest.$ac_ext <<_ACEOF
8593/* end confdefs.h.  */
8594#include <$ac_header>
8595_ACEOF
8596if { (ac_try="$ac_cpp conftest.$ac_ext"
8597case "(($ac_try" in
8598  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8599  *) ac_try_echo=$ac_try;;
8600esac
8601eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8602  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8603  ac_status=$?
8604  grep -v '^ *+' conftest.er1 >conftest.err
8605  rm -f conftest.er1
8606  cat conftest.err >&5
8607  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8608  (exit $ac_status); } >/dev/null; then
8609  if test -s conftest.err; then
8610    ac_cpp_err=$ac_c_preproc_warn_flag
8611    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8612  else
8613    ac_cpp_err=
8614  fi
8615else
8616  ac_cpp_err=yes
8617fi
8618if test -z "$ac_cpp_err"; then
8619  ac_header_preproc=yes
8620else
8621  echo "$as_me: failed program was:" >&5
8622sed 's/^/| /' conftest.$ac_ext >&5
8623
8624  ac_header_preproc=no
8625fi
8626
8627rm -f conftest.err conftest.$ac_ext
8628{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8629echo "${ECHO_T}$ac_header_preproc" >&6; }
8630
8631# So?  What about this header?
8632case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8633  yes:no: )
8634    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8635echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8636    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8637echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8638    ac_header_preproc=yes
8639    ;;
8640  no:yes:* )
8641    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8642echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8643    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8644echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8645    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8646echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8647    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8648echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8649    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8650echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8651    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8652echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8653    ( cat <<\_ASBOX
8654## ------------------------------------ ##
8655## Report this to http://llvm.org/bugs/ ##
8656## ------------------------------------ ##
8657_ASBOX
8658     ) | sed "s/^/$as_me: WARNING:     /" >&2
8659    ;;
8660esac
8661{ echo "$as_me:$LINENO: checking for $ac_header" >&5
8662echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8663if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8664  echo $ECHO_N "(cached) $ECHO_C" >&6
8665else
8666  eval "$as_ac_Header=\$ac_header_preproc"
8667fi
8668ac_res=`eval echo '${'$as_ac_Header'}'`
8669	       { echo "$as_me:$LINENO: result: $ac_res" >&5
8670echo "${ECHO_T}$ac_res" >&6; }
8671
8672fi
8673if test `eval echo '${'$as_ac_Header'}'` = yes; then
8674  cat >>confdefs.h <<_ACEOF
8675#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8676_ACEOF
8677
8678fi
8679
8680done
8681
8682# Check whether --enable-ltdl-install was given.
8683if test "${enable_ltdl_install+set}" = set; then
8684  enableval=$enable_ltdl_install;
8685fi
8686
8687
8688
8689
8690if test x"${enable_ltdl_install-no}" != xno; then
8691  INSTALL_LTDL_TRUE=
8692  INSTALL_LTDL_FALSE='#'
8693else
8694  INSTALL_LTDL_TRUE='#'
8695  INSTALL_LTDL_FALSE=
8696fi
8697
8698
8699
8700if test x"${enable_ltdl_convenience-no}" != xno; then
8701  CONVENIENCE_LTDL_TRUE=
8702  CONVENIENCE_LTDL_FALSE='#'
8703else
8704  CONVENIENCE_LTDL_TRUE='#'
8705  CONVENIENCE_LTDL_FALSE=
8706fi
8707
8708
8709{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8710echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8711library_names_spec=
8712libname_spec='lib$name'
8713soname_spec=
8714shrext_cmds=".so"
8715postinstall_cmds=
8716postuninstall_cmds=
8717finish_cmds=
8718finish_eval=
8719shlibpath_var=
8720shlibpath_overrides_runpath=unknown
8721version_type=none
8722dynamic_linker="$host_os ld.so"
8723sys_lib_dlsearch_path_spec="/lib /usr/lib"
8724if test "$GCC" = yes; then
8725  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8726  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8727    # if the path contains ";" then we assume it to be the separator
8728    # otherwise default to the standard path separator (i.e. ":") - it is
8729    # assumed that no part of a normal pathname contains ";" but that should
8730    # okay in the real world where ";" in dirpaths is itself problematic.
8731    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8732  else
8733    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8734  fi
8735else
8736  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8737fi
8738need_lib_prefix=unknown
8739hardcode_into_libs=no
8740
8741# when you set need_version to no, make sure it does not cause -set_version
8742# flags to be left without arguments
8743need_version=unknown
8744
8745case $host_os in
8746aix3*)
8747  version_type=linux
8748  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8749  shlibpath_var=LIBPATH
8750
8751  # AIX 3 has no versioning support, so we append a major version to the name.
8752  soname_spec='${libname}${release}${shared_ext}$major'
8753  ;;
8754
8755aix4* | aix5*)
8756  version_type=linux
8757  need_lib_prefix=no
8758  need_version=no
8759  hardcode_into_libs=yes
8760  if test "$host_cpu" = ia64; then
8761    # AIX 5 supports IA64
8762    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8763    shlibpath_var=LD_LIBRARY_PATH
8764  else
8765    # With GCC up to 2.95.x, collect2 would create an import file
8766    # for dependence libraries.  The import file would start with
8767    # the line `#! .'.  This would cause the generated library to
8768    # depend on `.', always an invalid library.  This was fixed in
8769    # development snapshots of GCC prior to 3.0.
8770    case $host_os in
8771      aix4 | aix4.[01] | aix4.[01].*)
8772      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8773	   echo ' yes '
8774	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8775	:
8776      else
8777	can_build_shared=no
8778      fi
8779      ;;
8780    esac
8781    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8782    # soname into executable. Probably we can add versioning support to
8783    # collect2, so additional links can be useful in future.
8784    if test "$aix_use_runtimelinking" = yes; then
8785      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8786      # instead of lib<name>.a to let people know that these are not
8787      # typical AIX shared libraries.
8788      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8789    else
8790      # We preserve .a as extension for shared libraries through AIX4.2
8791      # and later when we are not doing run time linking.
8792      library_names_spec='${libname}${release}.a $libname.a'
8793      soname_spec='${libname}${release}${shared_ext}$major'
8794    fi
8795    shlibpath_var=LIBPATH
8796  fi
8797  ;;
8798
8799amigaos*)
8800  library_names_spec='$libname.ixlibrary $libname.a'
8801  # Create ${libname}_ixlibrary.a entries in /sys/libs.
8802  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'
8803  ;;
8804
8805beos*)
8806  library_names_spec='${libname}${shared_ext}'
8807  dynamic_linker="$host_os ld.so"
8808  shlibpath_var=LIBRARY_PATH
8809  ;;
8810
8811bsdi[45]*)
8812  version_type=linux
8813  need_version=no
8814  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8815  soname_spec='${libname}${release}${shared_ext}$major'
8816  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8817  shlibpath_var=LD_LIBRARY_PATH
8818  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8819  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8820  # the default ld.so.conf also contains /usr/contrib/lib and
8821  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8822  # libtool to hard-code these into programs
8823  ;;
8824
8825cygwin* | mingw* | pw32*)
8826  version_type=windows
8827  shrext_cmds=".dll"
8828  need_version=no
8829  need_lib_prefix=no
8830
8831  case $GCC,$host_os in
8832  yes,cygwin* | yes,mingw* | yes,pw32*)
8833    library_names_spec='$libname.dll.a'
8834    # DLL is installed to $(libdir)/../bin by postinstall_cmds
8835    postinstall_cmds='base_file=`basename \${file}`~
8836      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8837      dldir=$destdir/`dirname \$dlpath`~
8838      test -d \$dldir || mkdir -p \$dldir~
8839      $install_prog $dir/$dlname \$dldir/$dlname~
8840      chmod a+x \$dldir/$dlname'
8841    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8842      dlpath=$dir/\$dldll~
8843       $rm \$dlpath'
8844    shlibpath_overrides_runpath=yes
8845
8846    case $host_os in
8847    cygwin*)
8848      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8849      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8850      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8851      ;;
8852    mingw*)
8853      # MinGW DLLs use traditional 'lib' prefix
8854      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8855      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8856      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8857        # It is most probably a Windows format PATH printed by
8858        # mingw gcc, but we are running on Cygwin. Gcc prints its search
8859        # path with ; separators, and with drive letters. We can handle the
8860        # drive letters (cygwin fileutils understands them), so leave them,
8861        # especially as we might pass files found there to a mingw objdump,
8862        # which wouldn't understand a cygwinified path. Ahh.
8863        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8864      else
8865        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8866      fi
8867      ;;
8868    pw32*)
8869      # pw32 DLLs use 'pw' prefix rather than 'lib'
8870      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8871      ;;
8872    esac
8873    ;;
8874
8875  *)
8876    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8877    ;;
8878  esac
8879  dynamic_linker='Win32 ld.exe'
8880  # FIXME: first we should search . and the directory the executable is in
8881  shlibpath_var=PATH
8882  ;;
8883
8884darwin* | rhapsody*)
8885  dynamic_linker="$host_os dyld"
8886  version_type=darwin
8887  need_lib_prefix=no
8888  need_version=no
8889  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8890  soname_spec='${libname}${release}${major}$shared_ext'
8891  shlibpath_overrides_runpath=yes
8892  shlibpath_var=DYLD_LIBRARY_PATH
8893  shrext_cmds='.dylib'
8894  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8895  if test "$GCC" = yes; then
8896    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"`
8897  else
8898    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8899  fi
8900  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8901  ;;
8902
8903dgux*)
8904  version_type=linux
8905  need_lib_prefix=no
8906  need_version=no
8907  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8908  soname_spec='${libname}${release}${shared_ext}$major'
8909  shlibpath_var=LD_LIBRARY_PATH
8910  ;;
8911
8912freebsd1.*)
8913  dynamic_linker=no
8914  ;;
8915
8916kfreebsd*-gnu)
8917  version_type=linux
8918  need_lib_prefix=no
8919  need_version=no
8920  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8921  soname_spec='${libname}${release}${shared_ext}$major'
8922  shlibpath_var=LD_LIBRARY_PATH
8923  shlibpath_overrides_runpath=no
8924  hardcode_into_libs=yes
8925  dynamic_linker='GNU ld.so'
8926  ;;
8927
8928freebsd* | dragonfly*)
8929  # DragonFly does not have aout.  When/if they implement a new
8930  # versioning mechanism, adjust this.
8931  if test -x /usr/bin/objformat; then
8932    objformat=`/usr/bin/objformat`
8933  else
8934    case $host_os in
8935    freebsd[123].*) objformat=aout ;;
8936    *) objformat=elf ;;
8937    esac
8938  fi
8939  version_type=freebsd-$objformat
8940  case $version_type in
8941    freebsd-elf*)
8942      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8943      need_version=no
8944      need_lib_prefix=no
8945      ;;
8946    freebsd-*)
8947      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8948      need_version=yes
8949      ;;
8950  esac
8951  shlibpath_var=LD_LIBRARY_PATH
8952  case $host_os in
8953  freebsd2.*)
8954    shlibpath_overrides_runpath=yes
8955    ;;
8956  freebsd3.[01]* | freebsdelf3.[01]*)
8957    shlibpath_overrides_runpath=yes
8958    hardcode_into_libs=yes
8959    ;;
8960  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8961  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8962    shlibpath_overrides_runpath=no
8963    hardcode_into_libs=yes
8964    ;;
8965  freebsd*) # from 4.6 on
8966    shlibpath_overrides_runpath=yes
8967    hardcode_into_libs=yes
8968    ;;
8969  esac
8970  ;;
8971
8972gnu*)
8973  version_type=linux
8974  need_lib_prefix=no
8975  need_version=no
8976  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8977  soname_spec='${libname}${release}${shared_ext}$major'
8978  shlibpath_var=LD_LIBRARY_PATH
8979  hardcode_into_libs=yes
8980  ;;
8981
8982hpux9* | hpux10* | hpux11*)
8983  # Give a soname corresponding to the major version so that dld.sl refuses to
8984  # link against other versions.
8985  version_type=sunos
8986  need_lib_prefix=no
8987  need_version=no
8988  case $host_cpu in
8989  ia64*)
8990    shrext_cmds='.so'
8991    hardcode_into_libs=yes
8992    dynamic_linker="$host_os dld.so"
8993    shlibpath_var=LD_LIBRARY_PATH
8994    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8995    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8996    soname_spec='${libname}${release}${shared_ext}$major'
8997    if test "X$HPUX_IA64_MODE" = X32; then
8998      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8999    else
9000      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9001    fi
9002    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9003    ;;
9004   hppa*64*)
9005     shrext_cmds='.sl'
9006     hardcode_into_libs=yes
9007     dynamic_linker="$host_os dld.sl"
9008     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9009     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9010     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9011     soname_spec='${libname}${release}${shared_ext}$major'
9012     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9013     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9014     ;;
9015   *)
9016    shrext_cmds='.sl'
9017    dynamic_linker="$host_os dld.sl"
9018    shlibpath_var=SHLIB_PATH
9019    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9020    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9021    soname_spec='${libname}${release}${shared_ext}$major'
9022    ;;
9023  esac
9024  # HP-UX runs *really* slowly unless shared libraries are mode 555.
9025  postinstall_cmds='chmod 555 $lib'
9026  ;;
9027
9028interix3*)
9029  version_type=linux
9030  need_lib_prefix=no
9031  need_version=no
9032  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9033  soname_spec='${libname}${release}${shared_ext}$major'
9034  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9035  shlibpath_var=LD_LIBRARY_PATH
9036  shlibpath_overrides_runpath=no
9037  hardcode_into_libs=yes
9038  ;;
9039
9040irix5* | irix6* | nonstopux*)
9041  case $host_os in
9042    nonstopux*) version_type=nonstopux ;;
9043    *)
9044	if test "$lt_cv_prog_gnu_ld" = yes; then
9045		version_type=linux
9046	else
9047		version_type=irix
9048	fi ;;
9049  esac
9050  need_lib_prefix=no
9051  need_version=no
9052  soname_spec='${libname}${release}${shared_ext}$major'
9053  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9054  case $host_os in
9055  irix5* | nonstopux*)
9056    libsuff= shlibsuff=
9057    ;;
9058  *)
9059    case $LD in # libtool.m4 will add one of these switches to LD
9060    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9061      libsuff= shlibsuff= libmagic=32-bit;;
9062    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9063      libsuff=32 shlibsuff=N32 libmagic=N32;;
9064    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9065      libsuff=64 shlibsuff=64 libmagic=64-bit;;
9066    *) libsuff= shlibsuff= libmagic=never-match;;
9067    esac
9068    ;;
9069  esac
9070  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9071  shlibpath_overrides_runpath=no
9072  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9073  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9074  hardcode_into_libs=yes
9075  ;;
9076
9077# No shared lib support for Linux oldld, aout, or coff.
9078linux*oldld* | linux*aout* | linux*coff*)
9079  dynamic_linker=no
9080  ;;
9081
9082# This must be Linux ELF.
9083linux*)
9084  version_type=linux
9085  need_lib_prefix=no
9086  need_version=no
9087  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9088  soname_spec='${libname}${release}${shared_ext}$major'
9089  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9090  shlibpath_var=LD_LIBRARY_PATH
9091  shlibpath_overrides_runpath=no
9092  # This implies no fast_install, which is unacceptable.
9093  # Some rework will be needed to allow for fast_install
9094  # before this can be enabled.
9095  hardcode_into_libs=yes
9096
9097  # Append ld.so.conf contents to the search path
9098  if test -f /etc/ld.so.conf; then
9099    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' ' '`
9100    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9101  fi
9102
9103  # We used to test for /lib/ld.so.1 and disable shared libraries on
9104  # powerpc, because MkLinux only supported shared libraries with the
9105  # GNU dynamic linker.  Since this was broken with cross compilers,
9106  # most powerpc-linux boxes support dynamic linking these days and
9107  # people can always --disable-shared, the test was removed, and we
9108  # assume the GNU/Linux dynamic linker is in use.
9109  dynamic_linker='GNU/Linux ld.so'
9110  ;;
9111
9112knetbsd*-gnu)
9113  version_type=linux
9114  need_lib_prefix=no
9115  need_version=no
9116  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9117  soname_spec='${libname}${release}${shared_ext}$major'
9118  shlibpath_var=LD_LIBRARY_PATH
9119  shlibpath_overrides_runpath=no
9120  hardcode_into_libs=yes
9121  dynamic_linker='GNU ld.so'
9122  ;;
9123
9124netbsd*)
9125  version_type=sunos
9126  need_lib_prefix=no
9127  need_version=no
9128  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9129    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9130    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9131    dynamic_linker='NetBSD (a.out) ld.so'
9132  else
9133    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9134    soname_spec='${libname}${release}${shared_ext}$major'
9135    dynamic_linker='NetBSD ld.elf_so'
9136  fi
9137  shlibpath_var=LD_LIBRARY_PATH
9138  shlibpath_overrides_runpath=yes
9139  hardcode_into_libs=yes
9140  ;;
9141
9142newsos6)
9143  version_type=linux
9144  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9145  shlibpath_var=LD_LIBRARY_PATH
9146  shlibpath_overrides_runpath=yes
9147  ;;
9148
9149nto-qnx*)
9150  version_type=linux
9151  need_lib_prefix=no
9152  need_version=no
9153  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9154  soname_spec='${libname}${release}${shared_ext}$major'
9155  shlibpath_var=LD_LIBRARY_PATH
9156  shlibpath_overrides_runpath=yes
9157  ;;
9158
9159openbsd*)
9160  version_type=sunos
9161  sys_lib_dlsearch_path_spec="/usr/lib"
9162  need_lib_prefix=no
9163  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9164  case $host_os in
9165    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9166    *)                         need_version=no  ;;
9167  esac
9168  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9169  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9170  shlibpath_var=LD_LIBRARY_PATH
9171  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9172    case $host_os in
9173      openbsd2.[89] | openbsd2.[89].*)
9174	shlibpath_overrides_runpath=no
9175	;;
9176      *)
9177	shlibpath_overrides_runpath=yes
9178	;;
9179      esac
9180  else
9181    shlibpath_overrides_runpath=yes
9182  fi
9183  ;;
9184
9185os2*)
9186  libname_spec='$name'
9187  shrext_cmds=".dll"
9188  need_lib_prefix=no
9189  library_names_spec='$libname${shared_ext} $libname.a'
9190  dynamic_linker='OS/2 ld.exe'
9191  shlibpath_var=LIBPATH
9192  ;;
9193
9194osf3* | osf4* | osf5*)
9195  version_type=osf
9196  need_lib_prefix=no
9197  need_version=no
9198  soname_spec='${libname}${release}${shared_ext}$major'
9199  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9200  shlibpath_var=LD_LIBRARY_PATH
9201  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9202  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9203  ;;
9204
9205solaris*)
9206  version_type=linux
9207  need_lib_prefix=no
9208  need_version=no
9209  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9210  soname_spec='${libname}${release}${shared_ext}$major'
9211  shlibpath_var=LD_LIBRARY_PATH
9212  shlibpath_overrides_runpath=yes
9213  hardcode_into_libs=yes
9214  # ldd complains unless libraries are executable
9215  postinstall_cmds='chmod +x $lib'
9216  ;;
9217
9218sunos4*)
9219  version_type=sunos
9220  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9221  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9222  shlibpath_var=LD_LIBRARY_PATH
9223  shlibpath_overrides_runpath=yes
9224  if test "$with_gnu_ld" = yes; then
9225    need_lib_prefix=no
9226  fi
9227  need_version=yes
9228  ;;
9229
9230sysv4 | sysv4.3*)
9231  version_type=linux
9232  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9233  soname_spec='${libname}${release}${shared_ext}$major'
9234  shlibpath_var=LD_LIBRARY_PATH
9235  case $host_vendor in
9236    sni)
9237      shlibpath_overrides_runpath=no
9238      need_lib_prefix=no
9239      export_dynamic_flag_spec='${wl}-Blargedynsym'
9240      runpath_var=LD_RUN_PATH
9241      ;;
9242    siemens)
9243      need_lib_prefix=no
9244      ;;
9245    motorola)
9246      need_lib_prefix=no
9247      need_version=no
9248      shlibpath_overrides_runpath=no
9249      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9250      ;;
9251  esac
9252  ;;
9253
9254sysv4*MP*)
9255  if test -d /usr/nec ;then
9256    version_type=linux
9257    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9258    soname_spec='$libname${shared_ext}.$major'
9259    shlibpath_var=LD_LIBRARY_PATH
9260  fi
9261  ;;
9262
9263sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9264  version_type=freebsd-elf
9265  need_lib_prefix=no
9266  need_version=no
9267  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9268  soname_spec='${libname}${release}${shared_ext}$major'
9269  shlibpath_var=LD_LIBRARY_PATH
9270  hardcode_into_libs=yes
9271  if test "$with_gnu_ld" = yes; then
9272    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9273    shlibpath_overrides_runpath=no
9274  else
9275    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9276    shlibpath_overrides_runpath=yes
9277    case $host_os in
9278      sco3.2v5*)
9279        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9280	;;
9281    esac
9282  fi
9283  sys_lib_dlsearch_path_spec='/usr/lib'
9284  ;;
9285
9286uts4*)
9287  version_type=linux
9288  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9289  soname_spec='${libname}${release}${shared_ext}$major'
9290  shlibpath_var=LD_LIBRARY_PATH
9291  ;;
9292
9293*)
9294  dynamic_linker=no
9295  ;;
9296esac
9297{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9298echo "${ECHO_T}$dynamic_linker" >&6; }
9299test "$dynamic_linker" = no && can_build_shared=no
9300
9301variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9302if test "$GCC" = yes; then
9303  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9304fi
9305
9306
9307{ echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9308echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
9309if test "${libltdl_cv_shlibext+set}" = set; then
9310  echo $ECHO_N "(cached) $ECHO_C" >&6
9311else
9312
9313module=yes
9314eval libltdl_cv_shlibext=$shrext_cmds
9315
9316fi
9317{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9318echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
9319if test -n "$libltdl_cv_shlibext"; then
9320
9321cat >>confdefs.h <<_ACEOF
9322#define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9323_ACEOF
9324
9325fi
9326
9327
9328{ echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
9329echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
9330if test "${libltdl_cv_shlibpath_var+set}" = set; then
9331  echo $ECHO_N "(cached) $ECHO_C" >&6
9332else
9333  libltdl_cv_shlibpath_var="$shlibpath_var"
9334fi
9335{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
9336echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
9337if test -n "$libltdl_cv_shlibpath_var"; then
9338
9339cat >>confdefs.h <<_ACEOF
9340#define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
9341_ACEOF
9342
9343fi
9344
9345
9346{ echo "$as_me:$LINENO: checking for the default library search path" >&5
9347echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
9348if test "${libltdl_cv_sys_search_path+set}" = set; then
9349  echo $ECHO_N "(cached) $ECHO_C" >&6
9350else
9351  libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9352fi
9353{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9354echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
9355if test -n "$libltdl_cv_sys_search_path"; then
9356  sys_search_path=
9357  for dir in $libltdl_cv_sys_search_path; do
9358    if test -z "$sys_search_path"; then
9359      sys_search_path="$dir"
9360    else
9361      sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9362    fi
9363  done
9364
9365cat >>confdefs.h <<_ACEOF
9366#define LTDL_SYSSEARCHPATH "$sys_search_path"
9367_ACEOF
9368
9369fi
9370
9371{ echo "$as_me:$LINENO: checking for objdir" >&5
9372echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9373if test "${libltdl_cv_objdir+set}" = set; then
9374  echo $ECHO_N "(cached) $ECHO_C" >&6
9375else
9376  libltdl_cv_objdir="$objdir"
9377  if test -n "$objdir"; then
9378    :
9379  else
9380    rm -f .libs 2>/dev/null
9381    mkdir .libs 2>/dev/null
9382    if test -d .libs; then
9383      libltdl_cv_objdir=.libs
9384    else
9385      # MS-DOS does not allow filenames that begin with a dot.
9386      libltdl_cv_objdir=_libs
9387    fi
9388  rmdir .libs 2>/dev/null
9389  fi
9390
9391fi
9392{ echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9393echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
9394
9395cat >>confdefs.h <<_ACEOF
9396#define LTDL_OBJDIR "$libltdl_cv_objdir/"
9397_ACEOF
9398
9399
9400
9401
9402
9403
9404# Check for command to grab the raw symbol name followed by C symbol from nm.
9405{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9406echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
9407if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9408  echo $ECHO_N "(cached) $ECHO_C" >&6
9409else
9410
9411# These are sane defaults that work on at least a few old systems.
9412# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
9413
9414# Character class describing NM global symbol codes.
9415symcode='[BCDEGRST]'
9416
9417# Regexp to match symbols that can be accessed directly from C.
9418sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9419
9420# Transform an extracted symbol line into a proper C declaration
9421lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9422
9423# Transform an extracted symbol line into symbol name and symbol address
9424lt_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'"
9425
9426# Define system-specific variables.
9427case $host_os in
9428aix*)
9429  symcode='[BCDT]'
9430  ;;
9431cygwin* | mingw* | pw32*)
9432  symcode='[ABCDGISTW]'
9433  ;;
9434hpux*) # Its linker distinguishes data from code symbols
9435  if test "$host_cpu" = ia64; then
9436    symcode='[ABCDEGRST]'
9437  fi
9438  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9439  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'"
9440  ;;
9441linux*)
9442  if test "$host_cpu" = ia64; then
9443    symcode='[ABCDGIRSTW]'
9444    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9445    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'"
9446  fi
9447  ;;
9448irix* | nonstopux*)
9449  symcode='[BCDEGRST]'
9450  ;;
9451osf*)
9452  symcode='[BCDEGQRST]'
9453  ;;
9454solaris*)
9455  symcode='[BDRT]'
9456  ;;
9457sco3.2v5*)
9458  symcode='[DT]'
9459  ;;
9460sysv4.2uw2*)
9461  symcode='[DT]'
9462  ;;
9463sysv5* | sco5v6* | unixware* | OpenUNIX*)
9464  symcode='[ABDT]'
9465  ;;
9466sysv4)
9467  symcode='[DFNSTU]'
9468  ;;
9469esac
9470
9471# Handle CRLF in mingw tool chain
9472opt_cr=
9473case $build_os in
9474mingw*)
9475  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9476  ;;
9477esac
9478
9479# If we're using GNU nm, then use its standard symbol codes.
9480case `$NM -V 2>&1` in
9481*GNU* | *'with BFD'*)
9482  symcode='[ABCDGIRSTW]' ;;
9483esac
9484
9485# Try without a prefix undercore, then with it.
9486for ac_symprfx in "" "_"; do
9487
9488  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9489  symxfrm="\\1 $ac_symprfx\\2 \\2"
9490
9491  # Write the raw and C identifiers.
9492  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ 	]\($symcode$symcode*\)[ 	][ 	]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9493
9494  # Check to see that the pipe works correctly.
9495  pipe_works=no
9496
9497  rm -f conftest*
9498  cat > conftest.$ac_ext <<EOF
9499#ifdef __cplusplus
9500extern "C" {
9501#endif
9502char nm_test_var;
9503void nm_test_func(){}
9504#ifdef __cplusplus
9505}
9506#endif
9507int main(){nm_test_var='a';nm_test_func();return(0);}
9508EOF
9509
9510  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9511  (eval $ac_compile) 2>&5
9512  ac_status=$?
9513  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9514  (exit $ac_status); }; then
9515    # Now try to grab the symbols.
9516    nlist=conftest.nm
9517    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
9518  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9519  ac_status=$?
9520  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9521  (exit $ac_status); } && test -s "$nlist"; then
9522      # Try sorting and uniquifying the output.
9523      if sort "$nlist" | uniq > "$nlist"T; then
9524	mv -f "$nlist"T "$nlist"
9525      else
9526	rm -f "$nlist"T
9527      fi
9528
9529      # Make sure that we snagged all the symbols we need.
9530      if grep ' nm_test_var$' "$nlist" >/dev/null; then
9531	if grep ' nm_test_func$' "$nlist" >/dev/null; then
9532	  cat <<EOF > conftest.$ac_ext
9533#ifdef __cplusplus
9534extern "C" {
9535#endif
9536
9537EOF
9538	  # Now generate the symbol file.
9539	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9540
9541	  cat <<EOF >> conftest.$ac_ext
9542#if defined (__STDC__) && __STDC__
9543# define lt_ptr_t void *
9544#else
9545# define lt_ptr_t char *
9546# define const
9547#endif
9548
9549/* The mapping between symbol names and symbols. */
9550const struct {
9551  const char *name;
9552  lt_ptr_t address;
9553}
9554lt_preloaded_symbols[] =
9555{
9556EOF
9557	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9558	  cat <<\EOF >> conftest.$ac_ext
9559  {0, (lt_ptr_t) 0}
9560};
9561
9562#ifdef __cplusplus
9563}
9564#endif
9565EOF
9566	  # Now try linking the two files.
9567	  mv conftest.$ac_objext conftstm.$ac_objext
9568	  lt_save_LIBS="$LIBS"
9569	  lt_save_CFLAGS="$CFLAGS"
9570	  LIBS="conftstm.$ac_objext"
9571	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9572	  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9573  (eval $ac_link) 2>&5
9574  ac_status=$?
9575  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9576  (exit $ac_status); } && test -s conftest${ac_exeext}; then
9577	    pipe_works=yes
9578	  fi
9579	  LIBS="$lt_save_LIBS"
9580	  CFLAGS="$lt_save_CFLAGS"
9581	else
9582	  echo "cannot find nm_test_func in $nlist" >&5
9583	fi
9584      else
9585	echo "cannot find nm_test_var in $nlist" >&5
9586      fi
9587    else
9588      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9589    fi
9590  else
9591    echo "$progname: failed program was:" >&5
9592    cat conftest.$ac_ext >&5
9593  fi
9594  rm -f conftest* conftst*
9595
9596  # Do not use the global_symbol_pipe unless it works.
9597  if test "$pipe_works" = yes; then
9598    break
9599  else
9600    lt_cv_sys_global_symbol_pipe=
9601  fi
9602done
9603
9604fi
9605
9606if test -z "$lt_cv_sys_global_symbol_pipe"; then
9607  lt_cv_sys_global_symbol_to_cdecl=
9608fi
9609if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9610  { echo "$as_me:$LINENO: result: failed" >&5
9611echo "${ECHO_T}failed" >&6; }
9612else
9613  { echo "$as_me:$LINENO: result: ok" >&5
9614echo "${ECHO_T}ok" >&6; }
9615fi
9616
9617
9618{ echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
9619echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
9620if test "${libltdl_cv_preloaded_symbols+set}" = set; then
9621  echo $ECHO_N "(cached) $ECHO_C" >&6
9622else
9623  if test -n "$lt_cv_sys_global_symbol_pipe"; then
9624    libltdl_cv_preloaded_symbols=yes
9625  else
9626    libltdl_cv_preloaded_symbols=no
9627  fi
9628
9629fi
9630{ echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
9631echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
9632if test x"$libltdl_cv_preloaded_symbols" = xyes; then
9633
9634cat >>confdefs.h <<\_ACEOF
9635#define HAVE_PRELOADED_SYMBOLS 1
9636_ACEOF
9637
9638fi
9639
9640LIBADD_DL=
9641
9642ac_ext=c
9643ac_cpp='$CPP $CPPFLAGS'
9644ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9645ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9646ac_compiler_gnu=$ac_cv_c_compiler_gnu
9647
9648
9649{ echo "$as_me:$LINENO: checking for shl_load" >&5
9650echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9651if test "${ac_cv_func_shl_load+set}" = set; then
9652  echo $ECHO_N "(cached) $ECHO_C" >&6
9653else
9654  cat >conftest.$ac_ext <<_ACEOF
9655/* confdefs.h.  */
9656_ACEOF
9657cat confdefs.h >>conftest.$ac_ext
9658cat >>conftest.$ac_ext <<_ACEOF
9659/* end confdefs.h.  */
9660/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9661   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9662#define shl_load innocuous_shl_load
9663
9664/* System header to define __stub macros and hopefully few prototypes,
9665    which can conflict with char shl_load (); below.
9666    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9667    <limits.h> exists even on freestanding compilers.  */
9668
9669#ifdef __STDC__
9670# include <limits.h>
9671#else
9672# include <assert.h>
9673#endif
9674
9675#undef shl_load
9676
9677/* Override any GCC internal prototype to avoid an error.
9678   Use char because int might match the return type of a GCC
9679   builtin and then its argument prototype would still apply.  */
9680#ifdef __cplusplus
9681extern "C"
9682#endif
9683char shl_load ();
9684/* The GNU C library defines this for functions which it implements
9685    to always fail with ENOSYS.  Some functions are actually named
9686    something starting with __ and the normal name is an alias.  */
9687#if defined __stub_shl_load || defined __stub___shl_load
9688choke me
9689#endif
9690
9691int
9692main ()
9693{
9694return shl_load ();
9695  ;
9696  return 0;
9697}
9698_ACEOF
9699rm -f conftest.$ac_objext conftest$ac_exeext
9700if { (ac_try="$ac_link"
9701case "(($ac_try" in
9702  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9703  *) ac_try_echo=$ac_try;;
9704esac
9705eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9706  (eval "$ac_link") 2>conftest.er1
9707  ac_status=$?
9708  grep -v '^ *+' conftest.er1 >conftest.err
9709  rm -f conftest.er1
9710  cat conftest.err >&5
9711  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9712  (exit $ac_status); } &&
9713	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9714  { (case "(($ac_try" in
9715  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9716  *) ac_try_echo=$ac_try;;
9717esac
9718eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9719  (eval "$ac_try") 2>&5
9720  ac_status=$?
9721  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9722  (exit $ac_status); }; } &&
9723	 { ac_try='test -s conftest$ac_exeext'
9724  { (case "(($ac_try" in
9725  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9726  *) ac_try_echo=$ac_try;;
9727esac
9728eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9729  (eval "$ac_try") 2>&5
9730  ac_status=$?
9731  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9732  (exit $ac_status); }; }; then
9733  ac_cv_func_shl_load=yes
9734else
9735  echo "$as_me: failed program was:" >&5
9736sed 's/^/| /' conftest.$ac_ext >&5
9737
9738	ac_cv_func_shl_load=no
9739fi
9740
9741rm -f core conftest.err conftest.$ac_objext \
9742      conftest$ac_exeext conftest.$ac_ext
9743fi
9744{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9745echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9746if test $ac_cv_func_shl_load = yes; then
9747
9748cat >>confdefs.h <<\_ACEOF
9749#define HAVE_SHL_LOAD 1
9750_ACEOF
9751
9752else
9753  { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9754echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9755if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9756  echo $ECHO_N "(cached) $ECHO_C" >&6
9757else
9758  ac_check_lib_save_LIBS=$LIBS
9759LIBS="-ldld  $LIBS"
9760cat >conftest.$ac_ext <<_ACEOF
9761/* confdefs.h.  */
9762_ACEOF
9763cat confdefs.h >>conftest.$ac_ext
9764cat >>conftest.$ac_ext <<_ACEOF
9765/* end confdefs.h.  */
9766
9767/* Override any GCC internal prototype to avoid an error.
9768   Use char because int might match the return type of a GCC
9769   builtin and then its argument prototype would still apply.  */
9770#ifdef __cplusplus
9771extern "C"
9772#endif
9773char shl_load ();
9774int
9775main ()
9776{
9777return shl_load ();
9778  ;
9779  return 0;
9780}
9781_ACEOF
9782rm -f conftest.$ac_objext conftest$ac_exeext
9783if { (ac_try="$ac_link"
9784case "(($ac_try" in
9785  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9786  *) ac_try_echo=$ac_try;;
9787esac
9788eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9789  (eval "$ac_link") 2>conftest.er1
9790  ac_status=$?
9791  grep -v '^ *+' conftest.er1 >conftest.err
9792  rm -f conftest.er1
9793  cat conftest.err >&5
9794  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9795  (exit $ac_status); } &&
9796	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9797  { (case "(($ac_try" in
9798  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9799  *) ac_try_echo=$ac_try;;
9800esac
9801eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9802  (eval "$ac_try") 2>&5
9803  ac_status=$?
9804  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9805  (exit $ac_status); }; } &&
9806	 { ac_try='test -s conftest$ac_exeext'
9807  { (case "(($ac_try" in
9808  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9809  *) ac_try_echo=$ac_try;;
9810esac
9811eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9812  (eval "$ac_try") 2>&5
9813  ac_status=$?
9814  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9815  (exit $ac_status); }; }; then
9816  ac_cv_lib_dld_shl_load=yes
9817else
9818  echo "$as_me: failed program was:" >&5
9819sed 's/^/| /' conftest.$ac_ext >&5
9820
9821	ac_cv_lib_dld_shl_load=no
9822fi
9823
9824rm -f core conftest.err conftest.$ac_objext \
9825      conftest$ac_exeext conftest.$ac_ext
9826LIBS=$ac_check_lib_save_LIBS
9827fi
9828{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9829echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9830if test $ac_cv_lib_dld_shl_load = yes; then
9831
9832cat >>confdefs.h <<\_ACEOF
9833#define HAVE_SHL_LOAD 1
9834_ACEOF
9835
9836	LIBADD_DL="$LIBADD_DL -ldld"
9837else
9838  { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9839echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9840if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9841  echo $ECHO_N "(cached) $ECHO_C" >&6
9842else
9843  ac_check_lib_save_LIBS=$LIBS
9844LIBS="-ldl  $LIBS"
9845cat >conftest.$ac_ext <<_ACEOF
9846/* confdefs.h.  */
9847_ACEOF
9848cat confdefs.h >>conftest.$ac_ext
9849cat >>conftest.$ac_ext <<_ACEOF
9850/* end confdefs.h.  */
9851
9852/* Override any GCC internal prototype to avoid an error.
9853   Use char because int might match the return type of a GCC
9854   builtin and then its argument prototype would still apply.  */
9855#ifdef __cplusplus
9856extern "C"
9857#endif
9858char dlopen ();
9859int
9860main ()
9861{
9862return dlopen ();
9863  ;
9864  return 0;
9865}
9866_ACEOF
9867rm -f conftest.$ac_objext conftest$ac_exeext
9868if { (ac_try="$ac_link"
9869case "(($ac_try" in
9870  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9871  *) ac_try_echo=$ac_try;;
9872esac
9873eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9874  (eval "$ac_link") 2>conftest.er1
9875  ac_status=$?
9876  grep -v '^ *+' conftest.er1 >conftest.err
9877  rm -f conftest.er1
9878  cat conftest.err >&5
9879  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9880  (exit $ac_status); } &&
9881	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9882  { (case "(($ac_try" in
9883  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9884  *) ac_try_echo=$ac_try;;
9885esac
9886eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9887  (eval "$ac_try") 2>&5
9888  ac_status=$?
9889  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9890  (exit $ac_status); }; } &&
9891	 { ac_try='test -s conftest$ac_exeext'
9892  { (case "(($ac_try" in
9893  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9894  *) ac_try_echo=$ac_try;;
9895esac
9896eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9897  (eval "$ac_try") 2>&5
9898  ac_status=$?
9899  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9900  (exit $ac_status); }; }; then
9901  ac_cv_lib_dl_dlopen=yes
9902else
9903  echo "$as_me: failed program was:" >&5
9904sed 's/^/| /' conftest.$ac_ext >&5
9905
9906	ac_cv_lib_dl_dlopen=no
9907fi
9908
9909rm -f core conftest.err conftest.$ac_objext \
9910      conftest$ac_exeext conftest.$ac_ext
9911LIBS=$ac_check_lib_save_LIBS
9912fi
9913{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9914echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9915if test $ac_cv_lib_dl_dlopen = yes; then
9916
9917cat >>confdefs.h <<\_ACEOF
9918#define HAVE_LIBDL 1
9919_ACEOF
9920
9921	        LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
9922else
9923  cat >conftest.$ac_ext <<_ACEOF
9924/* confdefs.h.  */
9925_ACEOF
9926cat confdefs.h >>conftest.$ac_ext
9927cat >>conftest.$ac_ext <<_ACEOF
9928/* end confdefs.h.  */
9929#if HAVE_DLFCN_H
9930#  include <dlfcn.h>
9931#endif
9932
9933int
9934main ()
9935{
9936dlopen(0, 0);
9937  ;
9938  return 0;
9939}
9940_ACEOF
9941rm -f conftest.$ac_objext conftest$ac_exeext
9942if { (ac_try="$ac_link"
9943case "(($ac_try" in
9944  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9945  *) ac_try_echo=$ac_try;;
9946esac
9947eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9948  (eval "$ac_link") 2>conftest.er1
9949  ac_status=$?
9950  grep -v '^ *+' conftest.er1 >conftest.err
9951  rm -f conftest.er1
9952  cat conftest.err >&5
9953  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9954  (exit $ac_status); } &&
9955	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9956  { (case "(($ac_try" in
9957  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9958  *) ac_try_echo=$ac_try;;
9959esac
9960eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9961  (eval "$ac_try") 2>&5
9962  ac_status=$?
9963  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9964  (exit $ac_status); }; } &&
9965	 { ac_try='test -s conftest$ac_exeext'
9966  { (case "(($ac_try" in
9967  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9968  *) ac_try_echo=$ac_try;;
9969esac
9970eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9971  (eval "$ac_try") 2>&5
9972  ac_status=$?
9973  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9974  (exit $ac_status); }; }; then
9975
9976cat >>confdefs.h <<\_ACEOF
9977#define HAVE_LIBDL 1
9978_ACEOF
9979 libltdl_cv_func_dlopen="yes"
9980else
9981  echo "$as_me: failed program was:" >&5
9982sed 's/^/| /' conftest.$ac_ext >&5
9983
9984	{ echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9985echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
9986if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9987  echo $ECHO_N "(cached) $ECHO_C" >&6
9988else
9989  ac_check_lib_save_LIBS=$LIBS
9990LIBS="-lsvld  $LIBS"
9991cat >conftest.$ac_ext <<_ACEOF
9992/* confdefs.h.  */
9993_ACEOF
9994cat confdefs.h >>conftest.$ac_ext
9995cat >>conftest.$ac_ext <<_ACEOF
9996/* end confdefs.h.  */
9997
9998/* Override any GCC internal prototype to avoid an error.
9999   Use char because int might match the return type of a GCC
10000   builtin and then its argument prototype would still apply.  */
10001#ifdef __cplusplus
10002extern "C"
10003#endif
10004char dlopen ();
10005int
10006main ()
10007{
10008return dlopen ();
10009  ;
10010  return 0;
10011}
10012_ACEOF
10013rm -f conftest.$ac_objext conftest$ac_exeext
10014if { (ac_try="$ac_link"
10015case "(($ac_try" in
10016  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10017  *) ac_try_echo=$ac_try;;
10018esac
10019eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10020  (eval "$ac_link") 2>conftest.er1
10021  ac_status=$?
10022  grep -v '^ *+' conftest.er1 >conftest.err
10023  rm -f conftest.er1
10024  cat conftest.err >&5
10025  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10026  (exit $ac_status); } &&
10027	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10028  { (case "(($ac_try" in
10029  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10030  *) ac_try_echo=$ac_try;;
10031esac
10032eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10033  (eval "$ac_try") 2>&5
10034  ac_status=$?
10035  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10036  (exit $ac_status); }; } &&
10037	 { ac_try='test -s conftest$ac_exeext'
10038  { (case "(($ac_try" in
10039  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10040  *) ac_try_echo=$ac_try;;
10041esac
10042eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10043  (eval "$ac_try") 2>&5
10044  ac_status=$?
10045  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10046  (exit $ac_status); }; }; then
10047  ac_cv_lib_svld_dlopen=yes
10048else
10049  echo "$as_me: failed program was:" >&5
10050sed 's/^/| /' conftest.$ac_ext >&5
10051
10052	ac_cv_lib_svld_dlopen=no
10053fi
10054
10055rm -f core conftest.err conftest.$ac_objext \
10056      conftest$ac_exeext conftest.$ac_ext
10057LIBS=$ac_check_lib_save_LIBS
10058fi
10059{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10060echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10061if test $ac_cv_lib_svld_dlopen = yes; then
10062
10063cat >>confdefs.h <<\_ACEOF
10064#define HAVE_LIBDL 1
10065_ACEOF
10066
10067	            LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
10068else
10069  { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10070echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10071if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10072  echo $ECHO_N "(cached) $ECHO_C" >&6
10073else
10074  ac_check_lib_save_LIBS=$LIBS
10075LIBS="-ldld  $LIBS"
10076cat >conftest.$ac_ext <<_ACEOF
10077/* confdefs.h.  */
10078_ACEOF
10079cat confdefs.h >>conftest.$ac_ext
10080cat >>conftest.$ac_ext <<_ACEOF
10081/* end confdefs.h.  */
10082
10083/* Override any GCC internal prototype to avoid an error.
10084   Use char because int might match the return type of a GCC
10085   builtin and then its argument prototype would still apply.  */
10086#ifdef __cplusplus
10087extern "C"
10088#endif
10089char dld_link ();
10090int
10091main ()
10092{
10093return dld_link ();
10094  ;
10095  return 0;
10096}
10097_ACEOF
10098rm -f conftest.$ac_objext conftest$ac_exeext
10099if { (ac_try="$ac_link"
10100case "(($ac_try" in
10101  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10102  *) ac_try_echo=$ac_try;;
10103esac
10104eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10105  (eval "$ac_link") 2>conftest.er1
10106  ac_status=$?
10107  grep -v '^ *+' conftest.er1 >conftest.err
10108  rm -f conftest.er1
10109  cat conftest.err >&5
10110  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10111  (exit $ac_status); } &&
10112	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10113  { (case "(($ac_try" in
10114  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10115  *) ac_try_echo=$ac_try;;
10116esac
10117eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10118  (eval "$ac_try") 2>&5
10119  ac_status=$?
10120  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10121  (exit $ac_status); }; } &&
10122	 { ac_try='test -s conftest$ac_exeext'
10123  { (case "(($ac_try" in
10124  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10125  *) ac_try_echo=$ac_try;;
10126esac
10127eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10128  (eval "$ac_try") 2>&5
10129  ac_status=$?
10130  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10131  (exit $ac_status); }; }; then
10132  ac_cv_lib_dld_dld_link=yes
10133else
10134  echo "$as_me: failed program was:" >&5
10135sed 's/^/| /' conftest.$ac_ext >&5
10136
10137	ac_cv_lib_dld_dld_link=no
10138fi
10139
10140rm -f core conftest.err conftest.$ac_objext \
10141      conftest$ac_exeext conftest.$ac_ext
10142LIBS=$ac_check_lib_save_LIBS
10143fi
10144{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10145echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10146if test $ac_cv_lib_dld_dld_link = yes; then
10147
10148cat >>confdefs.h <<\_ACEOF
10149#define HAVE_DLD 1
10150_ACEOF
10151
10152	 	LIBADD_DL="$LIBADD_DL -ldld"
10153else
10154  { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
10155echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
10156if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
10157  echo $ECHO_N "(cached) $ECHO_C" >&6
10158else
10159  cat >conftest.$ac_ext <<_ACEOF
10160/* confdefs.h.  */
10161_ACEOF
10162cat confdefs.h >>conftest.$ac_ext
10163cat >>conftest.$ac_ext <<_ACEOF
10164/* end confdefs.h.  */
10165/* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10166   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10167#define _dyld_func_lookup innocuous__dyld_func_lookup
10168
10169/* System header to define __stub macros and hopefully few prototypes,
10170    which can conflict with char _dyld_func_lookup (); below.
10171    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10172    <limits.h> exists even on freestanding compilers.  */
10173
10174#ifdef __STDC__
10175# include <limits.h>
10176#else
10177# include <assert.h>
10178#endif
10179
10180#undef _dyld_func_lookup
10181
10182/* Override any GCC internal prototype to avoid an error.
10183   Use char because int might match the return type of a GCC
10184   builtin and then its argument prototype would still apply.  */
10185#ifdef __cplusplus
10186extern "C"
10187#endif
10188char _dyld_func_lookup ();
10189/* The GNU C library defines this for functions which it implements
10190    to always fail with ENOSYS.  Some functions are actually named
10191    something starting with __ and the normal name is an alias.  */
10192#if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
10193choke me
10194#endif
10195
10196int
10197main ()
10198{
10199return _dyld_func_lookup ();
10200  ;
10201  return 0;
10202}
10203_ACEOF
10204rm -f conftest.$ac_objext conftest$ac_exeext
10205if { (ac_try="$ac_link"
10206case "(($ac_try" in
10207  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10208  *) ac_try_echo=$ac_try;;
10209esac
10210eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10211  (eval "$ac_link") 2>conftest.er1
10212  ac_status=$?
10213  grep -v '^ *+' conftest.er1 >conftest.err
10214  rm -f conftest.er1
10215  cat conftest.err >&5
10216  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10217  (exit $ac_status); } &&
10218	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10219  { (case "(($ac_try" in
10220  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10221  *) ac_try_echo=$ac_try;;
10222esac
10223eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10224  (eval "$ac_try") 2>&5
10225  ac_status=$?
10226  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10227  (exit $ac_status); }; } &&
10228	 { ac_try='test -s conftest$ac_exeext'
10229  { (case "(($ac_try" in
10230  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10231  *) ac_try_echo=$ac_try;;
10232esac
10233eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10234  (eval "$ac_try") 2>&5
10235  ac_status=$?
10236  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10237  (exit $ac_status); }; }; then
10238  ac_cv_func__dyld_func_lookup=yes
10239else
10240  echo "$as_me: failed program was:" >&5
10241sed 's/^/| /' conftest.$ac_ext >&5
10242
10243	ac_cv_func__dyld_func_lookup=no
10244fi
10245
10246rm -f core conftest.err conftest.$ac_objext \
10247      conftest$ac_exeext conftest.$ac_ext
10248fi
10249{ echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10250echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
10251if test $ac_cv_func__dyld_func_lookup = yes; then
10252
10253cat >>confdefs.h <<\_ACEOF
10254#define HAVE_DYLD 1
10255_ACEOF
10256
10257fi
10258
10259
10260fi
10261
10262
10263fi
10264
10265
10266fi
10267
10268rm -f core conftest.err conftest.$ac_objext \
10269      conftest$ac_exeext conftest.$ac_ext
10270
10271fi
10272
10273
10274fi
10275
10276
10277fi
10278
10279
10280if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10281then
10282  lt_save_LIBS="$LIBS"
10283  LIBS="$LIBS $LIBADD_DL"
10284
10285for ac_func in dlerror
10286do
10287as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10288{ echo "$as_me:$LINENO: checking for $ac_func" >&5
10289echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10290if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10291  echo $ECHO_N "(cached) $ECHO_C" >&6
10292else
10293  cat >conftest.$ac_ext <<_ACEOF
10294/* confdefs.h.  */
10295_ACEOF
10296cat confdefs.h >>conftest.$ac_ext
10297cat >>conftest.$ac_ext <<_ACEOF
10298/* end confdefs.h.  */
10299/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10300   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10301#define $ac_func innocuous_$ac_func
10302
10303/* System header to define __stub macros and hopefully few prototypes,
10304    which can conflict with char $ac_func (); below.
10305    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10306    <limits.h> exists even on freestanding compilers.  */
10307
10308#ifdef __STDC__
10309# include <limits.h>
10310#else
10311# include <assert.h>
10312#endif
10313
10314#undef $ac_func
10315
10316/* Override any GCC internal prototype to avoid an error.
10317   Use char because int might match the return type of a GCC
10318   builtin and then its argument prototype would still apply.  */
10319#ifdef __cplusplus
10320extern "C"
10321#endif
10322char $ac_func ();
10323/* The GNU C library defines this for functions which it implements
10324    to always fail with ENOSYS.  Some functions are actually named
10325    something starting with __ and the normal name is an alias.  */
10326#if defined __stub_$ac_func || defined __stub___$ac_func
10327choke me
10328#endif
10329
10330int
10331main ()
10332{
10333return $ac_func ();
10334  ;
10335  return 0;
10336}
10337_ACEOF
10338rm -f conftest.$ac_objext conftest$ac_exeext
10339if { (ac_try="$ac_link"
10340case "(($ac_try" in
10341  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10342  *) ac_try_echo=$ac_try;;
10343esac
10344eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10345  (eval "$ac_link") 2>conftest.er1
10346  ac_status=$?
10347  grep -v '^ *+' conftest.er1 >conftest.err
10348  rm -f conftest.er1
10349  cat conftest.err >&5
10350  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10351  (exit $ac_status); } &&
10352	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10353  { (case "(($ac_try" in
10354  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10355  *) ac_try_echo=$ac_try;;
10356esac
10357eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10358  (eval "$ac_try") 2>&5
10359  ac_status=$?
10360  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10361  (exit $ac_status); }; } &&
10362	 { ac_try='test -s conftest$ac_exeext'
10363  { (case "(($ac_try" in
10364  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10365  *) ac_try_echo=$ac_try;;
10366esac
10367eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10368  (eval "$ac_try") 2>&5
10369  ac_status=$?
10370  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10371  (exit $ac_status); }; }; then
10372  eval "$as_ac_var=yes"
10373else
10374  echo "$as_me: failed program was:" >&5
10375sed 's/^/| /' conftest.$ac_ext >&5
10376
10377	eval "$as_ac_var=no"
10378fi
10379
10380rm -f core conftest.err conftest.$ac_objext \
10381      conftest$ac_exeext conftest.$ac_ext
10382fi
10383ac_res=`eval echo '${'$as_ac_var'}'`
10384	       { echo "$as_me:$LINENO: result: $ac_res" >&5
10385echo "${ECHO_T}$ac_res" >&6; }
10386if test `eval echo '${'$as_ac_var'}'` = yes; then
10387  cat >>confdefs.h <<_ACEOF
10388#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10389_ACEOF
10390
10391fi
10392done
10393
10394  LIBS="$lt_save_LIBS"
10395fi
10396ac_ext=c
10397ac_cpp='$CPP $CPPFLAGS'
10398ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10399ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10400ac_compiler_gnu=$ac_cv_c_compiler_gnu
10401
10402
10403
10404{ echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10405echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
10406if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10407  echo $ECHO_N "(cached) $ECHO_C" >&6
10408else
10409  ac_cv_sys_symbol_underscore=no
10410  cat > conftest.$ac_ext <<EOF
10411void nm_test_func(){}
10412int main(){nm_test_func;return 0;}
10413EOF
10414  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10415  (eval $ac_compile) 2>&5
10416  ac_status=$?
10417  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10418  (exit $ac_status); }; then
10419    # Now try to grab the symbols.
10420    ac_nlist=conftest.nm
10421    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
10422  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10423  ac_status=$?
10424  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10425  (exit $ac_status); } && test -s "$ac_nlist"; then
10426      # See whether the symbols have a leading underscore.
10427      if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10428        ac_cv_sys_symbol_underscore=yes
10429      else
10430        if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
10431	  :
10432        else
10433	  echo "configure: cannot find nm_test_func in $ac_nlist" >&5
10434        fi
10435      fi
10436    else
10437      echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
10438    fi
10439  else
10440    echo "configure: failed program was:" >&5
10441    cat conftest.c >&5
10442  fi
10443  rm -rf conftest*
10444
10445fi
10446{ echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
10447echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
10448
10449
10450if test x"$ac_cv_sys_symbol_underscore" = xyes; then
10451  if test x"$libltdl_cv_func_dlopen" = xyes ||
10452     test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
10453	{ echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
10454echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
10455if test "${libltdl_cv_need_uscore+set}" = set; then
10456  echo $ECHO_N "(cached) $ECHO_C" >&6
10457else
10458  libltdl_cv_need_uscore=unknown
10459          save_LIBS="$LIBS"
10460          LIBS="$LIBS $LIBADD_DL"
10461	  if test "$cross_compiling" = yes; then :
10462  libltdl_cv_need_uscore=cross
10463else
10464  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10465  lt_status=$lt_dlunknown
10466  cat > conftest.$ac_ext <<EOF
10467#line 10467 "configure"
10468#include "confdefs.h"
10469
10470#if HAVE_DLFCN_H
10471#include <dlfcn.h>
10472#endif
10473
10474#include <stdio.h>
10475
10476#ifdef RTLD_GLOBAL
10477#  define LT_DLGLOBAL		RTLD_GLOBAL
10478#else
10479#  ifdef DL_GLOBAL
10480#    define LT_DLGLOBAL		DL_GLOBAL
10481#  else
10482#    define LT_DLGLOBAL		0
10483#  endif
10484#endif
10485
10486/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10487   find out it does not work in some platform. */
10488#ifndef LT_DLLAZY_OR_NOW
10489#  ifdef RTLD_LAZY
10490#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
10491#  else
10492#    ifdef DL_LAZY
10493#      define LT_DLLAZY_OR_NOW		DL_LAZY
10494#    else
10495#      ifdef RTLD_NOW
10496#        define LT_DLLAZY_OR_NOW	RTLD_NOW
10497#      else
10498#        ifdef DL_NOW
10499#          define LT_DLLAZY_OR_NOW	DL_NOW
10500#        else
10501#          define LT_DLLAZY_OR_NOW	0
10502#        endif
10503#      endif
10504#    endif
10505#  endif
10506#endif
10507
10508#ifdef __cplusplus
10509extern "C" void exit (int);
10510#endif
10511
10512void fnord() { int i=42;}
10513int main ()
10514{
10515  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10516  int status = $lt_dlunknown;
10517
10518  if (self)
10519    {
10520      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10521      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10522      /* dlclose (self); */
10523    }
10524  else
10525    puts (dlerror ());
10526
10527    exit (status);
10528}
10529EOF
10530  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10531  (eval $ac_link) 2>&5
10532  ac_status=$?
10533  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10534  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10535    (./conftest; exit; ) >&5 2>/dev/null
10536    lt_status=$?
10537    case x$lt_status in
10538      x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
10539      x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
10540      x$lt_dlunknown|x*)  ;;
10541    esac
10542  else :
10543    # compilation failed
10544
10545  fi
10546fi
10547rm -fr conftest*
10548
10549	  LIBS="$save_LIBS"
10550
10551fi
10552{ echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
10553echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
10554  fi
10555fi
10556
10557if test x"$libltdl_cv_need_uscore" = xyes; then
10558
10559cat >>confdefs.h <<\_ACEOF
10560#define NEED_USCORE 1
10561_ACEOF
10562
10563fi
10564
10565
10566{ echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
10567echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
10568if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
10569  echo $ECHO_N "(cached) $ECHO_C" >&6
10570else
10571  # PORTME does your system automatically load deplibs for dlopen?
10572  # or its logical equivalent (e.g. shl_load for HP-UX < 11)
10573  # For now, we just catch OSes we know something about -- in the
10574  # future, we'll try test this programmatically.
10575  libltdl_cv_sys_dlopen_deplibs=unknown
10576  case "$host_os" in
10577  aix3*|aix4.1.*|aix4.2.*)
10578    # Unknown whether this is true for these versions of AIX, but
10579    # we want this `case' here to explicitly catch those versions.
10580    libltdl_cv_sys_dlopen_deplibs=unknown
10581    ;;
10582  aix[45]*)
10583    libltdl_cv_sys_dlopen_deplibs=yes
10584    ;;
10585  darwin*)
10586    # Assuming the user has installed a libdl from somewhere, this is true
10587    # If you are looking for one http://www.opendarwin.org/projects/dlcompat
10588    libltdl_cv_sys_dlopen_deplibs=yes
10589    ;;
10590  gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
10591    # GNU and its variants, using gnu ld.so (Glibc)
10592    libltdl_cv_sys_dlopen_deplibs=yes
10593    ;;
10594  hpux10*|hpux11*)
10595    libltdl_cv_sys_dlopen_deplibs=yes
10596    ;;
10597  interix*)
10598    libltdl_cv_sys_dlopen_deplibs=yes
10599    ;;
10600  irix[12345]*|irix6.[01]*)
10601    # Catch all versions of IRIX before 6.2, and indicate that we don't
10602    # know how it worked for any of those versions.
10603    libltdl_cv_sys_dlopen_deplibs=unknown
10604    ;;
10605  irix*)
10606    # The case above catches anything before 6.2, and it's known that
10607    # at 6.2 and later dlopen does load deplibs.
10608    libltdl_cv_sys_dlopen_deplibs=yes
10609    ;;
10610  netbsd*)
10611    libltdl_cv_sys_dlopen_deplibs=yes
10612    ;;
10613  openbsd*)
10614    libltdl_cv_sys_dlopen_deplibs=yes
10615    ;;
10616  osf[1234]*)
10617    # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
10618    # it did *not* use an RPATH in a shared library to find objects the
10619    # library depends on, so we explicitly say `no'.
10620    libltdl_cv_sys_dlopen_deplibs=no
10621    ;;
10622  osf5.0|osf5.0a|osf5.1)
10623    # dlopen *does* load deplibs and with the right loader patch applied
10624    # it even uses RPATH in a shared library to search for shared objects
10625    # that the library depends on, but there's no easy way to know if that
10626    # patch is installed.  Since this is the case, all we can really
10627    # say is unknown -- it depends on the patch being installed.  If
10628    # it is, this changes to `yes'.  Without it, it would be `no'.
10629    libltdl_cv_sys_dlopen_deplibs=unknown
10630    ;;
10631  osf*)
10632    # the two cases above should catch all versions of osf <= 5.1.  Read
10633    # the comments above for what we know about them.
10634    # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
10635    # is used to find them so we can finally say `yes'.
10636    libltdl_cv_sys_dlopen_deplibs=yes
10637    ;;
10638  solaris*)
10639    libltdl_cv_sys_dlopen_deplibs=yes
10640    ;;
10641  sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10642    libltdl_cv_sys_dlopen_deplibs=yes
10643    ;;
10644  esac
10645
10646fi
10647{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
10648echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
10649if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
10650
10651cat >>confdefs.h <<\_ACEOF
10652#define LTDL_DLOPEN_DEPLIBS 1
10653_ACEOF
10654
10655fi
10656
10657
10658for ac_header in argz.h
10659do
10660as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10661if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10662  { echo "$as_me:$LINENO: checking for $ac_header" >&5
10663echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10664if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10665  echo $ECHO_N "(cached) $ECHO_C" >&6
10666fi
10667ac_res=`eval echo '${'$as_ac_Header'}'`
10668	       { echo "$as_me:$LINENO: result: $ac_res" >&5
10669echo "${ECHO_T}$ac_res" >&6; }
10670else
10671  # Is the header compilable?
10672{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
10673echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10674cat >conftest.$ac_ext <<_ACEOF
10675/* confdefs.h.  */
10676_ACEOF
10677cat confdefs.h >>conftest.$ac_ext
10678cat >>conftest.$ac_ext <<_ACEOF
10679/* end confdefs.h.  */
10680$ac_includes_default
10681#include <$ac_header>
10682_ACEOF
10683rm -f conftest.$ac_objext
10684if { (ac_try="$ac_compile"
10685case "(($ac_try" in
10686  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10687  *) ac_try_echo=$ac_try;;
10688esac
10689eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10690  (eval "$ac_compile") 2>conftest.er1
10691  ac_status=$?
10692  grep -v '^ *+' conftest.er1 >conftest.err
10693  rm -f conftest.er1
10694  cat conftest.err >&5
10695  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10696  (exit $ac_status); } &&
10697	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10698  { (case "(($ac_try" in
10699  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10700  *) ac_try_echo=$ac_try;;
10701esac
10702eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10703  (eval "$ac_try") 2>&5
10704  ac_status=$?
10705  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10706  (exit $ac_status); }; } &&
10707	 { ac_try='test -s conftest.$ac_objext'
10708  { (case "(($ac_try" in
10709  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10710  *) ac_try_echo=$ac_try;;
10711esac
10712eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10713  (eval "$ac_try") 2>&5
10714  ac_status=$?
10715  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10716  (exit $ac_status); }; }; then
10717  ac_header_compiler=yes
10718else
10719  echo "$as_me: failed program was:" >&5
10720sed 's/^/| /' conftest.$ac_ext >&5
10721
10722	ac_header_compiler=no
10723fi
10724
10725rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10726{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10727echo "${ECHO_T}$ac_header_compiler" >&6; }
10728
10729# Is the header present?
10730{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
10731echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10732cat >conftest.$ac_ext <<_ACEOF
10733/* confdefs.h.  */
10734_ACEOF
10735cat confdefs.h >>conftest.$ac_ext
10736cat >>conftest.$ac_ext <<_ACEOF
10737/* end confdefs.h.  */
10738#include <$ac_header>
10739_ACEOF
10740if { (ac_try="$ac_cpp conftest.$ac_ext"
10741case "(($ac_try" in
10742  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10743  *) ac_try_echo=$ac_try;;
10744esac
10745eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10746  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10747  ac_status=$?
10748  grep -v '^ *+' conftest.er1 >conftest.err
10749  rm -f conftest.er1
10750  cat conftest.err >&5
10751  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10752  (exit $ac_status); } >/dev/null; then
10753  if test -s conftest.err; then
10754    ac_cpp_err=$ac_c_preproc_warn_flag
10755    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10756  else
10757    ac_cpp_err=
10758  fi
10759else
10760  ac_cpp_err=yes
10761fi
10762if test -z "$ac_cpp_err"; then
10763  ac_header_preproc=yes
10764else
10765  echo "$as_me: failed program was:" >&5
10766sed 's/^/| /' conftest.$ac_ext >&5
10767
10768  ac_header_preproc=no
10769fi
10770
10771rm -f conftest.err conftest.$ac_ext
10772{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10773echo "${ECHO_T}$ac_header_preproc" >&6; }
10774
10775# So?  What about this header?
10776case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10777  yes:no: )
10778    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10779echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10780    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10781echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10782    ac_header_preproc=yes
10783    ;;
10784  no:yes:* )
10785    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10786echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10787    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10788echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10789    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10790echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10791    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10792echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10793    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10794echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10795    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10796echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10797    ( cat <<\_ASBOX
10798## ------------------------------------ ##
10799## Report this to http://llvm.org/bugs/ ##
10800## ------------------------------------ ##
10801_ASBOX
10802     ) | sed "s/^/$as_me: WARNING:     /" >&2
10803    ;;
10804esac
10805{ echo "$as_me:$LINENO: checking for $ac_header" >&5
10806echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10807if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10808  echo $ECHO_N "(cached) $ECHO_C" >&6
10809else
10810  eval "$as_ac_Header=\$ac_header_preproc"
10811fi
10812ac_res=`eval echo '${'$as_ac_Header'}'`
10813	       { echo "$as_me:$LINENO: result: $ac_res" >&5
10814echo "${ECHO_T}$ac_res" >&6; }
10815
10816fi
10817if test `eval echo '${'$as_ac_Header'}'` = yes; then
10818  cat >>confdefs.h <<_ACEOF
10819#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10820_ACEOF
10821
10822fi
10823
10824done
10825
10826
10827{ echo "$as_me:$LINENO: checking for error_t" >&5
10828echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
10829if test "${ac_cv_type_error_t+set}" = set; then
10830  echo $ECHO_N "(cached) $ECHO_C" >&6
10831else
10832  cat >conftest.$ac_ext <<_ACEOF
10833/* confdefs.h.  */
10834_ACEOF
10835cat confdefs.h >>conftest.$ac_ext
10836cat >>conftest.$ac_ext <<_ACEOF
10837/* end confdefs.h.  */
10838#if HAVE_ARGZ_H
10839#  include <argz.h>
10840#endif
10841
10842typedef error_t ac__type_new_;
10843int
10844main ()
10845{
10846if ((ac__type_new_ *) 0)
10847  return 0;
10848if (sizeof (ac__type_new_))
10849  return 0;
10850  ;
10851  return 0;
10852}
10853_ACEOF
10854rm -f conftest.$ac_objext
10855if { (ac_try="$ac_compile"
10856case "(($ac_try" in
10857  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10858  *) ac_try_echo=$ac_try;;
10859esac
10860eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10861  (eval "$ac_compile") 2>conftest.er1
10862  ac_status=$?
10863  grep -v '^ *+' conftest.er1 >conftest.err
10864  rm -f conftest.er1
10865  cat conftest.err >&5
10866  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10867  (exit $ac_status); } &&
10868	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10869  { (case "(($ac_try" in
10870  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10871  *) ac_try_echo=$ac_try;;
10872esac
10873eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10874  (eval "$ac_try") 2>&5
10875  ac_status=$?
10876  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10877  (exit $ac_status); }; } &&
10878	 { ac_try='test -s conftest.$ac_objext'
10879  { (case "(($ac_try" in
10880  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10881  *) ac_try_echo=$ac_try;;
10882esac
10883eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10884  (eval "$ac_try") 2>&5
10885  ac_status=$?
10886  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10887  (exit $ac_status); }; }; then
10888  ac_cv_type_error_t=yes
10889else
10890  echo "$as_me: failed program was:" >&5
10891sed 's/^/| /' conftest.$ac_ext >&5
10892
10893	ac_cv_type_error_t=no
10894fi
10895
10896rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10897fi
10898{ echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
10899echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
10900if test $ac_cv_type_error_t = yes; then
10901
10902cat >>confdefs.h <<_ACEOF
10903#define HAVE_ERROR_T 1
10904_ACEOF
10905
10906
10907else
10908
10909cat >>confdefs.h <<\_ACEOF
10910#define error_t int
10911_ACEOF
10912
10913fi
10914
10915
10916
10917
10918
10919
10920
10921for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
10922do
10923as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10924{ echo "$as_me:$LINENO: checking for $ac_func" >&5
10925echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10926if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10927  echo $ECHO_N "(cached) $ECHO_C" >&6
10928else
10929  cat >conftest.$ac_ext <<_ACEOF
10930/* confdefs.h.  */
10931_ACEOF
10932cat confdefs.h >>conftest.$ac_ext
10933cat >>conftest.$ac_ext <<_ACEOF
10934/* end confdefs.h.  */
10935/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10936   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10937#define $ac_func innocuous_$ac_func
10938
10939/* System header to define __stub macros and hopefully few prototypes,
10940    which can conflict with char $ac_func (); below.
10941    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10942    <limits.h> exists even on freestanding compilers.  */
10943
10944#ifdef __STDC__
10945# include <limits.h>
10946#else
10947# include <assert.h>
10948#endif
10949
10950#undef $ac_func
10951
10952/* Override any GCC internal prototype to avoid an error.
10953   Use char because int might match the return type of a GCC
10954   builtin and then its argument prototype would still apply.  */
10955#ifdef __cplusplus
10956extern "C"
10957#endif
10958char $ac_func ();
10959/* The GNU C library defines this for functions which it implements
10960    to always fail with ENOSYS.  Some functions are actually named
10961    something starting with __ and the normal name is an alias.  */
10962#if defined __stub_$ac_func || defined __stub___$ac_func
10963choke me
10964#endif
10965
10966int
10967main ()
10968{
10969return $ac_func ();
10970  ;
10971  return 0;
10972}
10973_ACEOF
10974rm -f conftest.$ac_objext conftest$ac_exeext
10975if { (ac_try="$ac_link"
10976case "(($ac_try" in
10977  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10978  *) ac_try_echo=$ac_try;;
10979esac
10980eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10981  (eval "$ac_link") 2>conftest.er1
10982  ac_status=$?
10983  grep -v '^ *+' conftest.er1 >conftest.err
10984  rm -f conftest.er1
10985  cat conftest.err >&5
10986  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10987  (exit $ac_status); } &&
10988	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10989  { (case "(($ac_try" in
10990  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10991  *) ac_try_echo=$ac_try;;
10992esac
10993eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10994  (eval "$ac_try") 2>&5
10995  ac_status=$?
10996  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10997  (exit $ac_status); }; } &&
10998	 { ac_try='test -s conftest$ac_exeext'
10999  { (case "(($ac_try" in
11000  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11001  *) ac_try_echo=$ac_try;;
11002esac
11003eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11004  (eval "$ac_try") 2>&5
11005  ac_status=$?
11006  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11007  (exit $ac_status); }; }; then
11008  eval "$as_ac_var=yes"
11009else
11010  echo "$as_me: failed program was:" >&5
11011sed 's/^/| /' conftest.$ac_ext >&5
11012
11013	eval "$as_ac_var=no"
11014fi
11015
11016rm -f core conftest.err conftest.$ac_objext \
11017      conftest$ac_exeext conftest.$ac_ext
11018fi
11019ac_res=`eval echo '${'$as_ac_var'}'`
11020	       { echo "$as_me:$LINENO: result: $ac_res" >&5
11021echo "${ECHO_T}$ac_res" >&6; }
11022if test `eval echo '${'$as_ac_var'}'` = yes; then
11023  cat >>confdefs.h <<_ACEOF
11024#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11025_ACEOF
11026
11027fi
11028done
11029
11030
11031
11032
11033
11034
11035
11036
11037
11038
11039
11040
11041
11042
11043
11044
11045
11046
11047
11048
11049
11050
11051
11052
11053
11054
11055
11056
11057for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
11058		  stdio.h unistd.h
11059do
11060as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11061if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11062  { echo "$as_me:$LINENO: checking for $ac_header" >&5
11063echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11064if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11065  echo $ECHO_N "(cached) $ECHO_C" >&6
11066fi
11067ac_res=`eval echo '${'$as_ac_Header'}'`
11068	       { echo "$as_me:$LINENO: result: $ac_res" >&5
11069echo "${ECHO_T}$ac_res" >&6; }
11070else
11071  # Is the header compilable?
11072{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11073echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11074cat >conftest.$ac_ext <<_ACEOF
11075/* confdefs.h.  */
11076_ACEOF
11077cat confdefs.h >>conftest.$ac_ext
11078cat >>conftest.$ac_ext <<_ACEOF
11079/* end confdefs.h.  */
11080$ac_includes_default
11081#include <$ac_header>
11082_ACEOF
11083rm -f conftest.$ac_objext
11084if { (ac_try="$ac_compile"
11085case "(($ac_try" in
11086  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11087  *) ac_try_echo=$ac_try;;
11088esac
11089eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11090  (eval "$ac_compile") 2>conftest.er1
11091  ac_status=$?
11092  grep -v '^ *+' conftest.er1 >conftest.err
11093  rm -f conftest.er1
11094  cat conftest.err >&5
11095  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11096  (exit $ac_status); } &&
11097	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11098  { (case "(($ac_try" in
11099  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11100  *) ac_try_echo=$ac_try;;
11101esac
11102eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11103  (eval "$ac_try") 2>&5
11104  ac_status=$?
11105  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11106  (exit $ac_status); }; } &&
11107	 { ac_try='test -s conftest.$ac_objext'
11108  { (case "(($ac_try" in
11109  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11110  *) ac_try_echo=$ac_try;;
11111esac
11112eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11113  (eval "$ac_try") 2>&5
11114  ac_status=$?
11115  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11116  (exit $ac_status); }; }; then
11117  ac_header_compiler=yes
11118else
11119  echo "$as_me: failed program was:" >&5
11120sed 's/^/| /' conftest.$ac_ext >&5
11121
11122	ac_header_compiler=no
11123fi
11124
11125rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11126{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11127echo "${ECHO_T}$ac_header_compiler" >&6; }
11128
11129# Is the header present?
11130{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11131echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11132cat >conftest.$ac_ext <<_ACEOF
11133/* confdefs.h.  */
11134_ACEOF
11135cat confdefs.h >>conftest.$ac_ext
11136cat >>conftest.$ac_ext <<_ACEOF
11137/* end confdefs.h.  */
11138#include <$ac_header>
11139_ACEOF
11140if { (ac_try="$ac_cpp conftest.$ac_ext"
11141case "(($ac_try" in
11142  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11143  *) ac_try_echo=$ac_try;;
11144esac
11145eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11146  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11147  ac_status=$?
11148  grep -v '^ *+' conftest.er1 >conftest.err
11149  rm -f conftest.er1
11150  cat conftest.err >&5
11151  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11152  (exit $ac_status); } >/dev/null; then
11153  if test -s conftest.err; then
11154    ac_cpp_err=$ac_c_preproc_warn_flag
11155    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11156  else
11157    ac_cpp_err=
11158  fi
11159else
11160  ac_cpp_err=yes
11161fi
11162if test -z "$ac_cpp_err"; then
11163  ac_header_preproc=yes
11164else
11165  echo "$as_me: failed program was:" >&5
11166sed 's/^/| /' conftest.$ac_ext >&5
11167
11168  ac_header_preproc=no
11169fi
11170
11171rm -f conftest.err conftest.$ac_ext
11172{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11173echo "${ECHO_T}$ac_header_preproc" >&6; }
11174
11175# So?  What about this header?
11176case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11177  yes:no: )
11178    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11179echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11180    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11181echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11182    ac_header_preproc=yes
11183    ;;
11184  no:yes:* )
11185    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11186echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11187    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11188echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11189    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11190echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11191    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11192echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11193    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11194echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11195    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11196echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11197    ( cat <<\_ASBOX
11198## ------------------------------------ ##
11199## Report this to http://llvm.org/bugs/ ##
11200## ------------------------------------ ##
11201_ASBOX
11202     ) | sed "s/^/$as_me: WARNING:     /" >&2
11203    ;;
11204esac
11205{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11206echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11207if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11208  echo $ECHO_N "(cached) $ECHO_C" >&6
11209else
11210  eval "$as_ac_Header=\$ac_header_preproc"
11211fi
11212ac_res=`eval echo '${'$as_ac_Header'}'`
11213	       { echo "$as_me:$LINENO: result: $ac_res" >&5
11214echo "${ECHO_T}$ac_res" >&6; }
11215
11216fi
11217if test `eval echo '${'$as_ac_Header'}'` = yes; then
11218  cat >>confdefs.h <<_ACEOF
11219#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11220_ACEOF
11221
11222fi
11223
11224done
11225
11226
11227
11228
11229
11230for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
11231do
11232as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11233if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11234  { echo "$as_me:$LINENO: checking for $ac_header" >&5
11235echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11236if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11237  echo $ECHO_N "(cached) $ECHO_C" >&6
11238fi
11239ac_res=`eval echo '${'$as_ac_Header'}'`
11240	       { echo "$as_me:$LINENO: result: $ac_res" >&5
11241echo "${ECHO_T}$ac_res" >&6; }
11242else
11243  # Is the header compilable?
11244{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11245echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11246cat >conftest.$ac_ext <<_ACEOF
11247/* confdefs.h.  */
11248_ACEOF
11249cat confdefs.h >>conftest.$ac_ext
11250cat >>conftest.$ac_ext <<_ACEOF
11251/* end confdefs.h.  */
11252$ac_includes_default
11253#include <$ac_header>
11254_ACEOF
11255rm -f conftest.$ac_objext
11256if { (ac_try="$ac_compile"
11257case "(($ac_try" in
11258  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11259  *) ac_try_echo=$ac_try;;
11260esac
11261eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11262  (eval "$ac_compile") 2>conftest.er1
11263  ac_status=$?
11264  grep -v '^ *+' conftest.er1 >conftest.err
11265  rm -f conftest.er1
11266  cat conftest.err >&5
11267  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11268  (exit $ac_status); } &&
11269	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11270  { (case "(($ac_try" in
11271  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11272  *) ac_try_echo=$ac_try;;
11273esac
11274eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11275  (eval "$ac_try") 2>&5
11276  ac_status=$?
11277  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11278  (exit $ac_status); }; } &&
11279	 { ac_try='test -s conftest.$ac_objext'
11280  { (case "(($ac_try" in
11281  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11282  *) ac_try_echo=$ac_try;;
11283esac
11284eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11285  (eval "$ac_try") 2>&5
11286  ac_status=$?
11287  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11288  (exit $ac_status); }; }; then
11289  ac_header_compiler=yes
11290else
11291  echo "$as_me: failed program was:" >&5
11292sed 's/^/| /' conftest.$ac_ext >&5
11293
11294	ac_header_compiler=no
11295fi
11296
11297rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11298{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11299echo "${ECHO_T}$ac_header_compiler" >&6; }
11300
11301# Is the header present?
11302{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11303echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11304cat >conftest.$ac_ext <<_ACEOF
11305/* confdefs.h.  */
11306_ACEOF
11307cat confdefs.h >>conftest.$ac_ext
11308cat >>conftest.$ac_ext <<_ACEOF
11309/* end confdefs.h.  */
11310#include <$ac_header>
11311_ACEOF
11312if { (ac_try="$ac_cpp conftest.$ac_ext"
11313case "(($ac_try" in
11314  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11315  *) ac_try_echo=$ac_try;;
11316esac
11317eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11318  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11319  ac_status=$?
11320  grep -v '^ *+' conftest.er1 >conftest.err
11321  rm -f conftest.er1
11322  cat conftest.err >&5
11323  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11324  (exit $ac_status); } >/dev/null; then
11325  if test -s conftest.err; then
11326    ac_cpp_err=$ac_c_preproc_warn_flag
11327    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11328  else
11329    ac_cpp_err=
11330  fi
11331else
11332  ac_cpp_err=yes
11333fi
11334if test -z "$ac_cpp_err"; then
11335  ac_header_preproc=yes
11336else
11337  echo "$as_me: failed program was:" >&5
11338sed 's/^/| /' conftest.$ac_ext >&5
11339
11340  ac_header_preproc=no
11341fi
11342
11343rm -f conftest.err conftest.$ac_ext
11344{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11345echo "${ECHO_T}$ac_header_preproc" >&6; }
11346
11347# So?  What about this header?
11348case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11349  yes:no: )
11350    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11351echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11352    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11353echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11354    ac_header_preproc=yes
11355    ;;
11356  no:yes:* )
11357    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11358echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11359    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11360echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11361    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11362echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11363    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11364echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11365    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11366echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11367    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11368echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11369    ( cat <<\_ASBOX
11370## ------------------------------------ ##
11371## Report this to http://llvm.org/bugs/ ##
11372## ------------------------------------ ##
11373_ASBOX
11374     ) | sed "s/^/$as_me: WARNING:     /" >&2
11375    ;;
11376esac
11377{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11378echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11379if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11380  echo $ECHO_N "(cached) $ECHO_C" >&6
11381else
11382  eval "$as_ac_Header=\$ac_header_preproc"
11383fi
11384ac_res=`eval echo '${'$as_ac_Header'}'`
11385	       { echo "$as_me:$LINENO: result: $ac_res" >&5
11386echo "${ECHO_T}$ac_res" >&6; }
11387
11388fi
11389if test `eval echo '${'$as_ac_Header'}'` = yes; then
11390  cat >>confdefs.h <<_ACEOF
11391#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11392_ACEOF
11393
11394fi
11395
11396done
11397
11398
11399
11400for ac_header in string.h strings.h
11401do
11402as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11403if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11404  { echo "$as_me:$LINENO: checking for $ac_header" >&5
11405echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11406if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11407  echo $ECHO_N "(cached) $ECHO_C" >&6
11408fi
11409ac_res=`eval echo '${'$as_ac_Header'}'`
11410	       { echo "$as_me:$LINENO: result: $ac_res" >&5
11411echo "${ECHO_T}$ac_res" >&6; }
11412else
11413  # Is the header compilable?
11414{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11415echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11416cat >conftest.$ac_ext <<_ACEOF
11417/* confdefs.h.  */
11418_ACEOF
11419cat confdefs.h >>conftest.$ac_ext
11420cat >>conftest.$ac_ext <<_ACEOF
11421/* end confdefs.h.  */
11422$ac_includes_default
11423#include <$ac_header>
11424_ACEOF
11425rm -f conftest.$ac_objext
11426if { (ac_try="$ac_compile"
11427case "(($ac_try" in
11428  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11429  *) ac_try_echo=$ac_try;;
11430esac
11431eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11432  (eval "$ac_compile") 2>conftest.er1
11433  ac_status=$?
11434  grep -v '^ *+' conftest.er1 >conftest.err
11435  rm -f conftest.er1
11436  cat conftest.err >&5
11437  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11438  (exit $ac_status); } &&
11439	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11440  { (case "(($ac_try" in
11441  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11442  *) ac_try_echo=$ac_try;;
11443esac
11444eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11445  (eval "$ac_try") 2>&5
11446  ac_status=$?
11447  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11448  (exit $ac_status); }; } &&
11449	 { ac_try='test -s conftest.$ac_objext'
11450  { (case "(($ac_try" in
11451  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11452  *) ac_try_echo=$ac_try;;
11453esac
11454eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11455  (eval "$ac_try") 2>&5
11456  ac_status=$?
11457  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11458  (exit $ac_status); }; }; then
11459  ac_header_compiler=yes
11460else
11461  echo "$as_me: failed program was:" >&5
11462sed 's/^/| /' conftest.$ac_ext >&5
11463
11464	ac_header_compiler=no
11465fi
11466
11467rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11468{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11469echo "${ECHO_T}$ac_header_compiler" >&6; }
11470
11471# Is the header present?
11472{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11473echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11474cat >conftest.$ac_ext <<_ACEOF
11475/* confdefs.h.  */
11476_ACEOF
11477cat confdefs.h >>conftest.$ac_ext
11478cat >>conftest.$ac_ext <<_ACEOF
11479/* end confdefs.h.  */
11480#include <$ac_header>
11481_ACEOF
11482if { (ac_try="$ac_cpp conftest.$ac_ext"
11483case "(($ac_try" in
11484  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11485  *) ac_try_echo=$ac_try;;
11486esac
11487eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11488  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11489  ac_status=$?
11490  grep -v '^ *+' conftest.er1 >conftest.err
11491  rm -f conftest.er1
11492  cat conftest.err >&5
11493  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11494  (exit $ac_status); } >/dev/null; then
11495  if test -s conftest.err; then
11496    ac_cpp_err=$ac_c_preproc_warn_flag
11497    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11498  else
11499    ac_cpp_err=
11500  fi
11501else
11502  ac_cpp_err=yes
11503fi
11504if test -z "$ac_cpp_err"; then
11505  ac_header_preproc=yes
11506else
11507  echo "$as_me: failed program was:" >&5
11508sed 's/^/| /' conftest.$ac_ext >&5
11509
11510  ac_header_preproc=no
11511fi
11512
11513rm -f conftest.err conftest.$ac_ext
11514{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11515echo "${ECHO_T}$ac_header_preproc" >&6; }
11516
11517# So?  What about this header?
11518case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11519  yes:no: )
11520    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11521echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11522    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11523echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11524    ac_header_preproc=yes
11525    ;;
11526  no:yes:* )
11527    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11528echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11529    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11530echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11531    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11532echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11533    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11534echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11535    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11536echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11537    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11538echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11539    ( cat <<\_ASBOX
11540## ------------------------------------ ##
11541## Report this to http://llvm.org/bugs/ ##
11542## ------------------------------------ ##
11543_ASBOX
11544     ) | sed "s/^/$as_me: WARNING:     /" >&2
11545    ;;
11546esac
11547{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11548echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11549if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11550  echo $ECHO_N "(cached) $ECHO_C" >&6
11551else
11552  eval "$as_ac_Header=\$ac_header_preproc"
11553fi
11554ac_res=`eval echo '${'$as_ac_Header'}'`
11555	       { echo "$as_me:$LINENO: result: $ac_res" >&5
11556echo "${ECHO_T}$ac_res" >&6; }
11557
11558fi
11559if test `eval echo '${'$as_ac_Header'}'` = yes; then
11560  cat >>confdefs.h <<_ACEOF
11561#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11562_ACEOF
11563 break
11564fi
11565
11566done
11567
11568
11569
11570
11571for ac_func in strchr index
11572do
11573as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11574{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11575echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11576if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11577  echo $ECHO_N "(cached) $ECHO_C" >&6
11578else
11579  cat >conftest.$ac_ext <<_ACEOF
11580/* confdefs.h.  */
11581_ACEOF
11582cat confdefs.h >>conftest.$ac_ext
11583cat >>conftest.$ac_ext <<_ACEOF
11584/* end confdefs.h.  */
11585/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11586   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11587#define $ac_func innocuous_$ac_func
11588
11589/* System header to define __stub macros and hopefully few prototypes,
11590    which can conflict with char $ac_func (); below.
11591    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11592    <limits.h> exists even on freestanding compilers.  */
11593
11594#ifdef __STDC__
11595# include <limits.h>
11596#else
11597# include <assert.h>
11598#endif
11599
11600#undef $ac_func
11601
11602/* Override any GCC internal prototype to avoid an error.
11603   Use char because int might match the return type of a GCC
11604   builtin and then its argument prototype would still apply.  */
11605#ifdef __cplusplus
11606extern "C"
11607#endif
11608char $ac_func ();
11609/* The GNU C library defines this for functions which it implements
11610    to always fail with ENOSYS.  Some functions are actually named
11611    something starting with __ and the normal name is an alias.  */
11612#if defined __stub_$ac_func || defined __stub___$ac_func
11613choke me
11614#endif
11615
11616int
11617main ()
11618{
11619return $ac_func ();
11620  ;
11621  return 0;
11622}
11623_ACEOF
11624rm -f conftest.$ac_objext conftest$ac_exeext
11625if { (ac_try="$ac_link"
11626case "(($ac_try" in
11627  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11628  *) ac_try_echo=$ac_try;;
11629esac
11630eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11631  (eval "$ac_link") 2>conftest.er1
11632  ac_status=$?
11633  grep -v '^ *+' conftest.er1 >conftest.err
11634  rm -f conftest.er1
11635  cat conftest.err >&5
11636  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11637  (exit $ac_status); } &&
11638	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11639  { (case "(($ac_try" in
11640  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11641  *) ac_try_echo=$ac_try;;
11642esac
11643eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11644  (eval "$ac_try") 2>&5
11645  ac_status=$?
11646  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11647  (exit $ac_status); }; } &&
11648	 { ac_try='test -s conftest$ac_exeext'
11649  { (case "(($ac_try" in
11650  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11651  *) ac_try_echo=$ac_try;;
11652esac
11653eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11654  (eval "$ac_try") 2>&5
11655  ac_status=$?
11656  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11657  (exit $ac_status); }; }; then
11658  eval "$as_ac_var=yes"
11659else
11660  echo "$as_me: failed program was:" >&5
11661sed 's/^/| /' conftest.$ac_ext >&5
11662
11663	eval "$as_ac_var=no"
11664fi
11665
11666rm -f core conftest.err conftest.$ac_objext \
11667      conftest$ac_exeext conftest.$ac_ext
11668fi
11669ac_res=`eval echo '${'$as_ac_var'}'`
11670	       { echo "$as_me:$LINENO: result: $ac_res" >&5
11671echo "${ECHO_T}$ac_res" >&6; }
11672if test `eval echo '${'$as_ac_var'}'` = yes; then
11673  cat >>confdefs.h <<_ACEOF
11674#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11675_ACEOF
11676 break
11677fi
11678done
11679
11680
11681
11682for ac_func in strrchr rindex
11683do
11684as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11685{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11686echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11687if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11688  echo $ECHO_N "(cached) $ECHO_C" >&6
11689else
11690  cat >conftest.$ac_ext <<_ACEOF
11691/* confdefs.h.  */
11692_ACEOF
11693cat confdefs.h >>conftest.$ac_ext
11694cat >>conftest.$ac_ext <<_ACEOF
11695/* end confdefs.h.  */
11696/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11697   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11698#define $ac_func innocuous_$ac_func
11699
11700/* System header to define __stub macros and hopefully few prototypes,
11701    which can conflict with char $ac_func (); below.
11702    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11703    <limits.h> exists even on freestanding compilers.  */
11704
11705#ifdef __STDC__
11706# include <limits.h>
11707#else
11708# include <assert.h>
11709#endif
11710
11711#undef $ac_func
11712
11713/* Override any GCC internal prototype to avoid an error.
11714   Use char because int might match the return type of a GCC
11715   builtin and then its argument prototype would still apply.  */
11716#ifdef __cplusplus
11717extern "C"
11718#endif
11719char $ac_func ();
11720/* The GNU C library defines this for functions which it implements
11721    to always fail with ENOSYS.  Some functions are actually named
11722    something starting with __ and the normal name is an alias.  */
11723#if defined __stub_$ac_func || defined __stub___$ac_func
11724choke me
11725#endif
11726
11727int
11728main ()
11729{
11730return $ac_func ();
11731  ;
11732  return 0;
11733}
11734_ACEOF
11735rm -f conftest.$ac_objext conftest$ac_exeext
11736if { (ac_try="$ac_link"
11737case "(($ac_try" in
11738  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11739  *) ac_try_echo=$ac_try;;
11740esac
11741eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11742  (eval "$ac_link") 2>conftest.er1
11743  ac_status=$?
11744  grep -v '^ *+' conftest.er1 >conftest.err
11745  rm -f conftest.er1
11746  cat conftest.err >&5
11747  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11748  (exit $ac_status); } &&
11749	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11750  { (case "(($ac_try" in
11751  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11752  *) ac_try_echo=$ac_try;;
11753esac
11754eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11755  (eval "$ac_try") 2>&5
11756  ac_status=$?
11757  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11758  (exit $ac_status); }; } &&
11759	 { ac_try='test -s conftest$ac_exeext'
11760  { (case "(($ac_try" in
11761  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11762  *) ac_try_echo=$ac_try;;
11763esac
11764eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11765  (eval "$ac_try") 2>&5
11766  ac_status=$?
11767  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11768  (exit $ac_status); }; }; then
11769  eval "$as_ac_var=yes"
11770else
11771  echo "$as_me: failed program was:" >&5
11772sed 's/^/| /' conftest.$ac_ext >&5
11773
11774	eval "$as_ac_var=no"
11775fi
11776
11777rm -f core conftest.err conftest.$ac_objext \
11778      conftest$ac_exeext conftest.$ac_ext
11779fi
11780ac_res=`eval echo '${'$as_ac_var'}'`
11781	       { echo "$as_me:$LINENO: result: $ac_res" >&5
11782echo "${ECHO_T}$ac_res" >&6; }
11783if test `eval echo '${'$as_ac_var'}'` = yes; then
11784  cat >>confdefs.h <<_ACEOF
11785#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11786_ACEOF
11787 break
11788fi
11789done
11790
11791
11792
11793for ac_func in memcpy bcopy
11794do
11795as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11796{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11797echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11798if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11799  echo $ECHO_N "(cached) $ECHO_C" >&6
11800else
11801  cat >conftest.$ac_ext <<_ACEOF
11802/* confdefs.h.  */
11803_ACEOF
11804cat confdefs.h >>conftest.$ac_ext
11805cat >>conftest.$ac_ext <<_ACEOF
11806/* end confdefs.h.  */
11807/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11808   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11809#define $ac_func innocuous_$ac_func
11810
11811/* System header to define __stub macros and hopefully few prototypes,
11812    which can conflict with char $ac_func (); below.
11813    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11814    <limits.h> exists even on freestanding compilers.  */
11815
11816#ifdef __STDC__
11817# include <limits.h>
11818#else
11819# include <assert.h>
11820#endif
11821
11822#undef $ac_func
11823
11824/* Override any GCC internal prototype to avoid an error.
11825   Use char because int might match the return type of a GCC
11826   builtin and then its argument prototype would still apply.  */
11827#ifdef __cplusplus
11828extern "C"
11829#endif
11830char $ac_func ();
11831/* The GNU C library defines this for functions which it implements
11832    to always fail with ENOSYS.  Some functions are actually named
11833    something starting with __ and the normal name is an alias.  */
11834#if defined __stub_$ac_func || defined __stub___$ac_func
11835choke me
11836#endif
11837
11838int
11839main ()
11840{
11841return $ac_func ();
11842  ;
11843  return 0;
11844}
11845_ACEOF
11846rm -f conftest.$ac_objext conftest$ac_exeext
11847if { (ac_try="$ac_link"
11848case "(($ac_try" in
11849  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11850  *) ac_try_echo=$ac_try;;
11851esac
11852eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11853  (eval "$ac_link") 2>conftest.er1
11854  ac_status=$?
11855  grep -v '^ *+' conftest.er1 >conftest.err
11856  rm -f conftest.er1
11857  cat conftest.err >&5
11858  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11859  (exit $ac_status); } &&
11860	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11861  { (case "(($ac_try" in
11862  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11863  *) ac_try_echo=$ac_try;;
11864esac
11865eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11866  (eval "$ac_try") 2>&5
11867  ac_status=$?
11868  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11869  (exit $ac_status); }; } &&
11870	 { ac_try='test -s conftest$ac_exeext'
11871  { (case "(($ac_try" in
11872  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11873  *) ac_try_echo=$ac_try;;
11874esac
11875eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11876  (eval "$ac_try") 2>&5
11877  ac_status=$?
11878  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11879  (exit $ac_status); }; }; then
11880  eval "$as_ac_var=yes"
11881else
11882  echo "$as_me: failed program was:" >&5
11883sed 's/^/| /' conftest.$ac_ext >&5
11884
11885	eval "$as_ac_var=no"
11886fi
11887
11888rm -f core conftest.err conftest.$ac_objext \
11889      conftest$ac_exeext conftest.$ac_ext
11890fi
11891ac_res=`eval echo '${'$as_ac_var'}'`
11892	       { echo "$as_me:$LINENO: result: $ac_res" >&5
11893echo "${ECHO_T}$ac_res" >&6; }
11894if test `eval echo '${'$as_ac_var'}'` = yes; then
11895  cat >>confdefs.h <<_ACEOF
11896#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11897_ACEOF
11898 break
11899fi
11900done
11901
11902
11903
11904for ac_func in memmove strcmp
11905do
11906as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11907{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11908echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11909if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11910  echo $ECHO_N "(cached) $ECHO_C" >&6
11911else
11912  cat >conftest.$ac_ext <<_ACEOF
11913/* confdefs.h.  */
11914_ACEOF
11915cat confdefs.h >>conftest.$ac_ext
11916cat >>conftest.$ac_ext <<_ACEOF
11917/* end confdefs.h.  */
11918/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11919   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11920#define $ac_func innocuous_$ac_func
11921
11922/* System header to define __stub macros and hopefully few prototypes,
11923    which can conflict with char $ac_func (); below.
11924    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11925    <limits.h> exists even on freestanding compilers.  */
11926
11927#ifdef __STDC__
11928# include <limits.h>
11929#else
11930# include <assert.h>
11931#endif
11932
11933#undef $ac_func
11934
11935/* Override any GCC internal prototype to avoid an error.
11936   Use char because int might match the return type of a GCC
11937   builtin and then its argument prototype would still apply.  */
11938#ifdef __cplusplus
11939extern "C"
11940#endif
11941char $ac_func ();
11942/* The GNU C library defines this for functions which it implements
11943    to always fail with ENOSYS.  Some functions are actually named
11944    something starting with __ and the normal name is an alias.  */
11945#if defined __stub_$ac_func || defined __stub___$ac_func
11946choke me
11947#endif
11948
11949int
11950main ()
11951{
11952return $ac_func ();
11953  ;
11954  return 0;
11955}
11956_ACEOF
11957rm -f conftest.$ac_objext conftest$ac_exeext
11958if { (ac_try="$ac_link"
11959case "(($ac_try" in
11960  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11961  *) ac_try_echo=$ac_try;;
11962esac
11963eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11964  (eval "$ac_link") 2>conftest.er1
11965  ac_status=$?
11966  grep -v '^ *+' conftest.er1 >conftest.err
11967  rm -f conftest.er1
11968  cat conftest.err >&5
11969  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11970  (exit $ac_status); } &&
11971	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11972  { (case "(($ac_try" in
11973  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11974  *) ac_try_echo=$ac_try;;
11975esac
11976eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11977  (eval "$ac_try") 2>&5
11978  ac_status=$?
11979  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11980  (exit $ac_status); }; } &&
11981	 { ac_try='test -s conftest$ac_exeext'
11982  { (case "(($ac_try" in
11983  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11984  *) ac_try_echo=$ac_try;;
11985esac
11986eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11987  (eval "$ac_try") 2>&5
11988  ac_status=$?
11989  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11990  (exit $ac_status); }; }; then
11991  eval "$as_ac_var=yes"
11992else
11993  echo "$as_me: failed program was:" >&5
11994sed 's/^/| /' conftest.$ac_ext >&5
11995
11996	eval "$as_ac_var=no"
11997fi
11998
11999rm -f core conftest.err conftest.$ac_objext \
12000      conftest$ac_exeext conftest.$ac_ext
12001fi
12002ac_res=`eval echo '${'$as_ac_var'}'`
12003	       { echo "$as_me:$LINENO: result: $ac_res" >&5
12004echo "${ECHO_T}$ac_res" >&6; }
12005if test `eval echo '${'$as_ac_var'}'` = yes; then
12006  cat >>confdefs.h <<_ACEOF
12007#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12008_ACEOF
12009
12010fi
12011done
12012
12013
12014
12015
12016for ac_func in closedir opendir readdir
12017do
12018as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12019{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12020echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12021if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12022  echo $ECHO_N "(cached) $ECHO_C" >&6
12023else
12024  cat >conftest.$ac_ext <<_ACEOF
12025/* confdefs.h.  */
12026_ACEOF
12027cat confdefs.h >>conftest.$ac_ext
12028cat >>conftest.$ac_ext <<_ACEOF
12029/* end confdefs.h.  */
12030/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12031   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12032#define $ac_func innocuous_$ac_func
12033
12034/* System header to define __stub macros and hopefully few prototypes,
12035    which can conflict with char $ac_func (); below.
12036    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12037    <limits.h> exists even on freestanding compilers.  */
12038
12039#ifdef __STDC__
12040# include <limits.h>
12041#else
12042# include <assert.h>
12043#endif
12044
12045#undef $ac_func
12046
12047/* Override any GCC internal prototype to avoid an error.
12048   Use char because int might match the return type of a GCC
12049   builtin and then its argument prototype would still apply.  */
12050#ifdef __cplusplus
12051extern "C"
12052#endif
12053char $ac_func ();
12054/* The GNU C library defines this for functions which it implements
12055    to always fail with ENOSYS.  Some functions are actually named
12056    something starting with __ and the normal name is an alias.  */
12057#if defined __stub_$ac_func || defined __stub___$ac_func
12058choke me
12059#endif
12060
12061int
12062main ()
12063{
12064return $ac_func ();
12065  ;
12066  return 0;
12067}
12068_ACEOF
12069rm -f conftest.$ac_objext conftest$ac_exeext
12070if { (ac_try="$ac_link"
12071case "(($ac_try" in
12072  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12073  *) ac_try_echo=$ac_try;;
12074esac
12075eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12076  (eval "$ac_link") 2>conftest.er1
12077  ac_status=$?
12078  grep -v '^ *+' conftest.er1 >conftest.err
12079  rm -f conftest.er1
12080  cat conftest.err >&5
12081  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12082  (exit $ac_status); } &&
12083	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12084  { (case "(($ac_try" in
12085  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12086  *) ac_try_echo=$ac_try;;
12087esac
12088eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12089  (eval "$ac_try") 2>&5
12090  ac_status=$?
12091  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12092  (exit $ac_status); }; } &&
12093	 { ac_try='test -s conftest$ac_exeext'
12094  { (case "(($ac_try" in
12095  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12096  *) ac_try_echo=$ac_try;;
12097esac
12098eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12099  (eval "$ac_try") 2>&5
12100  ac_status=$?
12101  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12102  (exit $ac_status); }; }; then
12103  eval "$as_ac_var=yes"
12104else
12105  echo "$as_me: failed program was:" >&5
12106sed 's/^/| /' conftest.$ac_ext >&5
12107
12108	eval "$as_ac_var=no"
12109fi
12110
12111rm -f core conftest.err conftest.$ac_objext \
12112      conftest$ac_exeext conftest.$ac_ext
12113fi
12114ac_res=`eval echo '${'$as_ac_var'}'`
12115	       { echo "$as_me:$LINENO: result: $ac_res" >&5
12116echo "${ECHO_T}$ac_res" >&6; }
12117if test `eval echo '${'$as_ac_var'}'` = yes; then
12118  cat >>confdefs.h <<_ACEOF
12119#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12120_ACEOF
12121
12122fi
12123done
12124
12125
12126
12127{ echo "$as_me:$LINENO: checking tool compatibility" >&5
12128echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
12129
12130ICC=no
12131IXX=no
12132case $CC in
12133  icc*|icpc*)
12134    ICC=yes
12135    IXX=yes
12136    ;;
12137   *)
12138    ;;
12139esac
12140
12141if test "$GCC" != "yes" && test "$ICC" != "yes"
12142then
12143  { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
12144echo "$as_me: error: gcc|icc required but not found" >&2;}
12145   { (exit 1); exit 1; }; }
12146fi
12147
12148if test "$GXX" != "yes" && test "$IXX" != "yes"
12149then
12150  { { echo "$as_me:$LINENO: error: g++|clang++|icc required but not found" >&5
12151echo "$as_me: error: g++|clang++|icc required but not found" >&2;}
12152   { (exit 1); exit 1; }; }
12153fi
12154
12155if test "$GCC" = "yes"
12156then
12157  cat >conftest.$ac_ext <<_ACEOF
12158#if !defined(__GNUC__) || __GNUC__ < 3
12159#error Unsupported GCC version
12160#endif
12161
12162_ACEOF
12163rm -f conftest.$ac_objext
12164if { (ac_try="$ac_compile"
12165case "(($ac_try" in
12166  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12167  *) ac_try_echo=$ac_try;;
12168esac
12169eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12170  (eval "$ac_compile") 2>conftest.er1
12171  ac_status=$?
12172  grep -v '^ *+' conftest.er1 >conftest.err
12173  rm -f conftest.er1
12174  cat conftest.err >&5
12175  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12176  (exit $ac_status); } &&
12177	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12178  { (case "(($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_try") 2>&5
12184  ac_status=$?
12185  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12186  (exit $ac_status); }; } &&
12187	 { ac_try='test -s conftest.$ac_objext'
12188  { (case "(($ac_try" in
12189  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12190  *) ac_try_echo=$ac_try;;
12191esac
12192eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12193  (eval "$ac_try") 2>&5
12194  ac_status=$?
12195  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12196  (exit $ac_status); }; }; then
12197  :
12198else
12199  echo "$as_me: failed program was:" >&5
12200sed 's/^/| /' conftest.$ac_ext >&5
12201
12202	{ { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
12203echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
12204   { (exit 1); exit 1; }; }
12205fi
12206
12207rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12208fi
12209
12210if test -z "$llvm_cv_gnu_make_command"
12211then
12212  { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
12213echo "$as_me: error: GNU Make required but not found" >&2;}
12214   { (exit 1); exit 1; }; }
12215fi
12216
12217{ echo "$as_me:$LINENO: result: ok" >&5
12218echo "${ECHO_T}ok" >&6; }
12219
12220{ echo "$as_me:$LINENO: checking optional compiler flags" >&5
12221echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
12222NO_VARIADIC_MACROS=`$CXX -Wno-variadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
12223
12224NO_MISSING_FIELD_INITIALIZERS=`$CXX -Wno-missing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
12225
12226COVERED_SWITCH_DEFAULT=`$CXX -Wcovered-switch-default -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wcovered-switch-default`
12227
12228{ echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT" >&5
12229echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT" >&6; }
12230
12231
12232
12233{ echo "$as_me:$LINENO: checking for sin in -lm" >&5
12234echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
12235if test "${ac_cv_lib_m_sin+set}" = set; then
12236  echo $ECHO_N "(cached) $ECHO_C" >&6
12237else
12238  ac_check_lib_save_LIBS=$LIBS
12239LIBS="-lm  $LIBS"
12240cat >conftest.$ac_ext <<_ACEOF
12241/* confdefs.h.  */
12242_ACEOF
12243cat confdefs.h >>conftest.$ac_ext
12244cat >>conftest.$ac_ext <<_ACEOF
12245/* end confdefs.h.  */
12246
12247/* Override any GCC internal prototype to avoid an error.
12248   Use char because int might match the return type of a GCC
12249   builtin and then its argument prototype would still apply.  */
12250#ifdef __cplusplus
12251extern "C"
12252#endif
12253char sin ();
12254int
12255main ()
12256{
12257return sin ();
12258  ;
12259  return 0;
12260}
12261_ACEOF
12262rm -f conftest.$ac_objext conftest$ac_exeext
12263if { (ac_try="$ac_link"
12264case "(($ac_try" in
12265  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12266  *) ac_try_echo=$ac_try;;
12267esac
12268eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12269  (eval "$ac_link") 2>conftest.er1
12270  ac_status=$?
12271  grep -v '^ *+' conftest.er1 >conftest.err
12272  rm -f conftest.er1
12273  cat conftest.err >&5
12274  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12275  (exit $ac_status); } &&
12276	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12277  { (case "(($ac_try" in
12278  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12279  *) ac_try_echo=$ac_try;;
12280esac
12281eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12282  (eval "$ac_try") 2>&5
12283  ac_status=$?
12284  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12285  (exit $ac_status); }; } &&
12286	 { ac_try='test -s conftest$ac_exeext'
12287  { (case "(($ac_try" in
12288  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12289  *) ac_try_echo=$ac_try;;
12290esac
12291eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12292  (eval "$ac_try") 2>&5
12293  ac_status=$?
12294  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12295  (exit $ac_status); }; }; then
12296  ac_cv_lib_m_sin=yes
12297else
12298  echo "$as_me: failed program was:" >&5
12299sed 's/^/| /' conftest.$ac_ext >&5
12300
12301	ac_cv_lib_m_sin=no
12302fi
12303
12304rm -f core conftest.err conftest.$ac_objext \
12305      conftest$ac_exeext conftest.$ac_ext
12306LIBS=$ac_check_lib_save_LIBS
12307fi
12308{ echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
12309echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
12310if test $ac_cv_lib_m_sin = yes; then
12311  cat >>confdefs.h <<_ACEOF
12312#define HAVE_LIBM 1
12313_ACEOF
12314
12315  LIBS="-lm $LIBS"
12316
12317fi
12318
12319if test "$llvm_cv_os_type" = "MingW" ; then
12320
12321{ echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
12322echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
12323if test "${ac_cv_lib_imagehlp_main+set}" = set; then
12324  echo $ECHO_N "(cached) $ECHO_C" >&6
12325else
12326  ac_check_lib_save_LIBS=$LIBS
12327LIBS="-limagehlp  $LIBS"
12328cat >conftest.$ac_ext <<_ACEOF
12329/* confdefs.h.  */
12330_ACEOF
12331cat confdefs.h >>conftest.$ac_ext
12332cat >>conftest.$ac_ext <<_ACEOF
12333/* end confdefs.h.  */
12334
12335
12336int
12337main ()
12338{
12339return main ();
12340  ;
12341  return 0;
12342}
12343_ACEOF
12344rm -f conftest.$ac_objext conftest$ac_exeext
12345if { (ac_try="$ac_link"
12346case "(($ac_try" in
12347  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12348  *) ac_try_echo=$ac_try;;
12349esac
12350eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12351  (eval "$ac_link") 2>conftest.er1
12352  ac_status=$?
12353  grep -v '^ *+' conftest.er1 >conftest.err
12354  rm -f conftest.er1
12355  cat conftest.err >&5
12356  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12357  (exit $ac_status); } &&
12358	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12359  { (case "(($ac_try" in
12360  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12361  *) ac_try_echo=$ac_try;;
12362esac
12363eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12364  (eval "$ac_try") 2>&5
12365  ac_status=$?
12366  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12367  (exit $ac_status); }; } &&
12368	 { ac_try='test -s conftest$ac_exeext'
12369  { (case "(($ac_try" in
12370  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12371  *) ac_try_echo=$ac_try;;
12372esac
12373eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12374  (eval "$ac_try") 2>&5
12375  ac_status=$?
12376  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12377  (exit $ac_status); }; }; then
12378  ac_cv_lib_imagehlp_main=yes
12379else
12380  echo "$as_me: failed program was:" >&5
12381sed 's/^/| /' conftest.$ac_ext >&5
12382
12383	ac_cv_lib_imagehlp_main=no
12384fi
12385
12386rm -f core conftest.err conftest.$ac_objext \
12387      conftest$ac_exeext conftest.$ac_ext
12388LIBS=$ac_check_lib_save_LIBS
12389fi
12390{ echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
12391echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
12392if test $ac_cv_lib_imagehlp_main = yes; then
12393  cat >>confdefs.h <<_ACEOF
12394#define HAVE_LIBIMAGEHLP 1
12395_ACEOF
12396
12397  LIBS="-limagehlp $LIBS"
12398
12399fi
12400
12401
12402{ echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
12403echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
12404if test "${ac_cv_lib_psapi_main+set}" = set; then
12405  echo $ECHO_N "(cached) $ECHO_C" >&6
12406else
12407  ac_check_lib_save_LIBS=$LIBS
12408LIBS="-lpsapi  $LIBS"
12409cat >conftest.$ac_ext <<_ACEOF
12410/* confdefs.h.  */
12411_ACEOF
12412cat confdefs.h >>conftest.$ac_ext
12413cat >>conftest.$ac_ext <<_ACEOF
12414/* end confdefs.h.  */
12415
12416
12417int
12418main ()
12419{
12420return main ();
12421  ;
12422  return 0;
12423}
12424_ACEOF
12425rm -f conftest.$ac_objext conftest$ac_exeext
12426if { (ac_try="$ac_link"
12427case "(($ac_try" in
12428  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12429  *) ac_try_echo=$ac_try;;
12430esac
12431eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12432  (eval "$ac_link") 2>conftest.er1
12433  ac_status=$?
12434  grep -v '^ *+' conftest.er1 >conftest.err
12435  rm -f conftest.er1
12436  cat conftest.err >&5
12437  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12438  (exit $ac_status); } &&
12439	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12440  { (case "(($ac_try" in
12441  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12442  *) ac_try_echo=$ac_try;;
12443esac
12444eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12445  (eval "$ac_try") 2>&5
12446  ac_status=$?
12447  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12448  (exit $ac_status); }; } &&
12449	 { ac_try='test -s conftest$ac_exeext'
12450  { (case "(($ac_try" in
12451  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12452  *) ac_try_echo=$ac_try;;
12453esac
12454eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12455  (eval "$ac_try") 2>&5
12456  ac_status=$?
12457  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12458  (exit $ac_status); }; }; then
12459  ac_cv_lib_psapi_main=yes
12460else
12461  echo "$as_me: failed program was:" >&5
12462sed 's/^/| /' conftest.$ac_ext >&5
12463
12464	ac_cv_lib_psapi_main=no
12465fi
12466
12467rm -f core conftest.err conftest.$ac_objext \
12468      conftest$ac_exeext conftest.$ac_ext
12469LIBS=$ac_check_lib_save_LIBS
12470fi
12471{ echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
12472echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
12473if test $ac_cv_lib_psapi_main = yes; then
12474  cat >>confdefs.h <<_ACEOF
12475#define HAVE_LIBPSAPI 1
12476_ACEOF
12477
12478  LIBS="-lpsapi $LIBS"
12479
12480fi
12481
12482fi
12483
12484{ echo "$as_me:$LINENO: checking for library containing dlopen" >&5
12485echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
12486if test "${ac_cv_search_dlopen+set}" = set; then
12487  echo $ECHO_N "(cached) $ECHO_C" >&6
12488else
12489  ac_func_search_save_LIBS=$LIBS
12490cat >conftest.$ac_ext <<_ACEOF
12491/* confdefs.h.  */
12492_ACEOF
12493cat confdefs.h >>conftest.$ac_ext
12494cat >>conftest.$ac_ext <<_ACEOF
12495/* end confdefs.h.  */
12496
12497/* Override any GCC internal prototype to avoid an error.
12498   Use char because int might match the return type of a GCC
12499   builtin and then its argument prototype would still apply.  */
12500#ifdef __cplusplus
12501extern "C"
12502#endif
12503char dlopen ();
12504int
12505main ()
12506{
12507return dlopen ();
12508  ;
12509  return 0;
12510}
12511_ACEOF
12512for ac_lib in '' dl; do
12513  if test -z "$ac_lib"; then
12514    ac_res="none required"
12515  else
12516    ac_res=-l$ac_lib
12517    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12518  fi
12519  rm -f conftest.$ac_objext conftest$ac_exeext
12520if { (ac_try="$ac_link"
12521case "(($ac_try" in
12522  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12523  *) ac_try_echo=$ac_try;;
12524esac
12525eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12526  (eval "$ac_link") 2>conftest.er1
12527  ac_status=$?
12528  grep -v '^ *+' conftest.er1 >conftest.err
12529  rm -f conftest.er1
12530  cat conftest.err >&5
12531  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12532  (exit $ac_status); } &&
12533	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12534  { (case "(($ac_try" in
12535  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12536  *) ac_try_echo=$ac_try;;
12537esac
12538eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12539  (eval "$ac_try") 2>&5
12540  ac_status=$?
12541  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12542  (exit $ac_status); }; } &&
12543	 { ac_try='test -s conftest$ac_exeext'
12544  { (case "(($ac_try" in
12545  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12546  *) ac_try_echo=$ac_try;;
12547esac
12548eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12549  (eval "$ac_try") 2>&5
12550  ac_status=$?
12551  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12552  (exit $ac_status); }; }; then
12553  ac_cv_search_dlopen=$ac_res
12554else
12555  echo "$as_me: failed program was:" >&5
12556sed 's/^/| /' conftest.$ac_ext >&5
12557
12558
12559fi
12560
12561rm -f core conftest.err conftest.$ac_objext \
12562      conftest$ac_exeext
12563  if test "${ac_cv_search_dlopen+set}" = set; then
12564  break
12565fi
12566done
12567if test "${ac_cv_search_dlopen+set}" = set; then
12568  :
12569else
12570  ac_cv_search_dlopen=no
12571fi
12572rm conftest.$ac_ext
12573LIBS=$ac_func_search_save_LIBS
12574fi
12575{ echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
12576echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
12577ac_res=$ac_cv_search_dlopen
12578if test "$ac_res" != no; then
12579  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12580
12581cat >>confdefs.h <<\_ACEOF
12582#define HAVE_DLOPEN 1
12583_ACEOF
12584
12585else
12586  { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
12587echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
12588fi
12589
12590
12591if test "$llvm_cv_enable_libffi" = "yes" ; then
12592  { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
12593echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
12594if test "${ac_cv_search_ffi_call+set}" = set; then
12595  echo $ECHO_N "(cached) $ECHO_C" >&6
12596else
12597  ac_func_search_save_LIBS=$LIBS
12598cat >conftest.$ac_ext <<_ACEOF
12599/* confdefs.h.  */
12600_ACEOF
12601cat confdefs.h >>conftest.$ac_ext
12602cat >>conftest.$ac_ext <<_ACEOF
12603/* end confdefs.h.  */
12604
12605/* Override any GCC internal prototype to avoid an error.
12606   Use char because int might match the return type of a GCC
12607   builtin and then its argument prototype would still apply.  */
12608#ifdef __cplusplus
12609extern "C"
12610#endif
12611char ffi_call ();
12612int
12613main ()
12614{
12615return ffi_call ();
12616  ;
12617  return 0;
12618}
12619_ACEOF
12620for ac_lib in '' ffi; do
12621  if test -z "$ac_lib"; then
12622    ac_res="none required"
12623  else
12624    ac_res=-l$ac_lib
12625    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12626  fi
12627  rm -f conftest.$ac_objext conftest$ac_exeext
12628if { (ac_try="$ac_link"
12629case "(($ac_try" in
12630  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12631  *) ac_try_echo=$ac_try;;
12632esac
12633eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12634  (eval "$ac_link") 2>conftest.er1
12635  ac_status=$?
12636  grep -v '^ *+' conftest.er1 >conftest.err
12637  rm -f conftest.er1
12638  cat conftest.err >&5
12639  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12640  (exit $ac_status); } &&
12641	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12642  { (case "(($ac_try" in
12643  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12644  *) ac_try_echo=$ac_try;;
12645esac
12646eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12647  (eval "$ac_try") 2>&5
12648  ac_status=$?
12649  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12650  (exit $ac_status); }; } &&
12651	 { ac_try='test -s conftest$ac_exeext'
12652  { (case "(($ac_try" in
12653  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12654  *) ac_try_echo=$ac_try;;
12655esac
12656eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12657  (eval "$ac_try") 2>&5
12658  ac_status=$?
12659  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12660  (exit $ac_status); }; }; then
12661  ac_cv_search_ffi_call=$ac_res
12662else
12663  echo "$as_me: failed program was:" >&5
12664sed 's/^/| /' conftest.$ac_ext >&5
12665
12666
12667fi
12668
12669rm -f core conftest.err conftest.$ac_objext \
12670      conftest$ac_exeext
12671  if test "${ac_cv_search_ffi_call+set}" = set; then
12672  break
12673fi
12674done
12675if test "${ac_cv_search_ffi_call+set}" = set; then
12676  :
12677else
12678  ac_cv_search_ffi_call=no
12679fi
12680rm conftest.$ac_ext
12681LIBS=$ac_func_search_save_LIBS
12682fi
12683{ echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
12684echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
12685ac_res=$ac_cv_search_ffi_call
12686if test "$ac_res" != no; then
12687  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12688
12689cat >>confdefs.h <<\_ACEOF
12690#define HAVE_FFI_CALL 1
12691_ACEOF
12692
12693else
12694  { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5
12695echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;}
12696   { (exit 1); exit 1; }; }
12697fi
12698
12699fi
12700
12701{ echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
12702echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
12703if test "${ac_cv_search_mallinfo+set}" = set; then
12704  echo $ECHO_N "(cached) $ECHO_C" >&6
12705else
12706  ac_func_search_save_LIBS=$LIBS
12707cat >conftest.$ac_ext <<_ACEOF
12708/* confdefs.h.  */
12709_ACEOF
12710cat confdefs.h >>conftest.$ac_ext
12711cat >>conftest.$ac_ext <<_ACEOF
12712/* end confdefs.h.  */
12713
12714/* Override any GCC internal prototype to avoid an error.
12715   Use char because int might match the return type of a GCC
12716   builtin and then its argument prototype would still apply.  */
12717#ifdef __cplusplus
12718extern "C"
12719#endif
12720char mallinfo ();
12721int
12722main ()
12723{
12724return mallinfo ();
12725  ;
12726  return 0;
12727}
12728_ACEOF
12729for ac_lib in '' malloc; do
12730  if test -z "$ac_lib"; then
12731    ac_res="none required"
12732  else
12733    ac_res=-l$ac_lib
12734    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12735  fi
12736  rm -f conftest.$ac_objext conftest$ac_exeext
12737if { (ac_try="$ac_link"
12738case "(($ac_try" in
12739  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12740  *) ac_try_echo=$ac_try;;
12741esac
12742eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12743  (eval "$ac_link") 2>conftest.er1
12744  ac_status=$?
12745  grep -v '^ *+' conftest.er1 >conftest.err
12746  rm -f conftest.er1
12747  cat conftest.err >&5
12748  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12749  (exit $ac_status); } &&
12750	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12751  { (case "(($ac_try" in
12752  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12753  *) ac_try_echo=$ac_try;;
12754esac
12755eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12756  (eval "$ac_try") 2>&5
12757  ac_status=$?
12758  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12759  (exit $ac_status); }; } &&
12760	 { ac_try='test -s conftest$ac_exeext'
12761  { (case "(($ac_try" in
12762  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12763  *) ac_try_echo=$ac_try;;
12764esac
12765eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12766  (eval "$ac_try") 2>&5
12767  ac_status=$?
12768  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12769  (exit $ac_status); }; }; then
12770  ac_cv_search_mallinfo=$ac_res
12771else
12772  echo "$as_me: failed program was:" >&5
12773sed 's/^/| /' conftest.$ac_ext >&5
12774
12775
12776fi
12777
12778rm -f core conftest.err conftest.$ac_objext \
12779      conftest$ac_exeext
12780  if test "${ac_cv_search_mallinfo+set}" = set; then
12781  break
12782fi
12783done
12784if test "${ac_cv_search_mallinfo+set}" = set; then
12785  :
12786else
12787  ac_cv_search_mallinfo=no
12788fi
12789rm conftest.$ac_ext
12790LIBS=$ac_func_search_save_LIBS
12791fi
12792{ echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
12793echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
12794ac_res=$ac_cv_search_mallinfo
12795if test "$ac_res" != no; then
12796  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12797
12798cat >>confdefs.h <<\_ACEOF
12799#define HAVE_MALLINFO 1
12800_ACEOF
12801
12802fi
12803
12804
12805if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
12806
12807{ echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
12808echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
12809if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
12810  echo $ECHO_N "(cached) $ECHO_C" >&6
12811else
12812  ac_check_lib_save_LIBS=$LIBS
12813LIBS="-lpthread  $LIBS"
12814cat >conftest.$ac_ext <<_ACEOF
12815/* confdefs.h.  */
12816_ACEOF
12817cat confdefs.h >>conftest.$ac_ext
12818cat >>conftest.$ac_ext <<_ACEOF
12819/* end confdefs.h.  */
12820
12821/* Override any GCC internal prototype to avoid an error.
12822   Use char because int might match the return type of a GCC
12823   builtin and then its argument prototype would still apply.  */
12824#ifdef __cplusplus
12825extern "C"
12826#endif
12827char pthread_mutex_init ();
12828int
12829main ()
12830{
12831return pthread_mutex_init ();
12832  ;
12833  return 0;
12834}
12835_ACEOF
12836rm -f conftest.$ac_objext conftest$ac_exeext
12837if { (ac_try="$ac_link"
12838case "(($ac_try" in
12839  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12840  *) ac_try_echo=$ac_try;;
12841esac
12842eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12843  (eval "$ac_link") 2>conftest.er1
12844  ac_status=$?
12845  grep -v '^ *+' conftest.er1 >conftest.err
12846  rm -f conftest.er1
12847  cat conftest.err >&5
12848  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12849  (exit $ac_status); } &&
12850	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12851  { (case "(($ac_try" in
12852  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12853  *) ac_try_echo=$ac_try;;
12854esac
12855eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12856  (eval "$ac_try") 2>&5
12857  ac_status=$?
12858  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12859  (exit $ac_status); }; } &&
12860	 { ac_try='test -s conftest$ac_exeext'
12861  { (case "(($ac_try" in
12862  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12863  *) ac_try_echo=$ac_try;;
12864esac
12865eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12866  (eval "$ac_try") 2>&5
12867  ac_status=$?
12868  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12869  (exit $ac_status); }; }; then
12870  ac_cv_lib_pthread_pthread_mutex_init=yes
12871else
12872  echo "$as_me: failed program was:" >&5
12873sed 's/^/| /' conftest.$ac_ext >&5
12874
12875	ac_cv_lib_pthread_pthread_mutex_init=no
12876fi
12877
12878rm -f core conftest.err conftest.$ac_objext \
12879      conftest$ac_exeext conftest.$ac_ext
12880LIBS=$ac_check_lib_save_LIBS
12881fi
12882{ echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
12883echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
12884if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
12885  cat >>confdefs.h <<_ACEOF
12886#define HAVE_LIBPTHREAD 1
12887_ACEOF
12888
12889  LIBS="-lpthread $LIBS"
12890
12891fi
12892
12893  { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
12894echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
12895if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12896  echo $ECHO_N "(cached) $ECHO_C" >&6
12897else
12898  ac_func_search_save_LIBS=$LIBS
12899cat >conftest.$ac_ext <<_ACEOF
12900/* confdefs.h.  */
12901_ACEOF
12902cat confdefs.h >>conftest.$ac_ext
12903cat >>conftest.$ac_ext <<_ACEOF
12904/* end confdefs.h.  */
12905
12906/* Override any GCC internal prototype to avoid an error.
12907   Use char because int might match the return type of a GCC
12908   builtin and then its argument prototype would still apply.  */
12909#ifdef __cplusplus
12910extern "C"
12911#endif
12912char pthread_mutex_lock ();
12913int
12914main ()
12915{
12916return pthread_mutex_lock ();
12917  ;
12918  return 0;
12919}
12920_ACEOF
12921for ac_lib in '' pthread; do
12922  if test -z "$ac_lib"; then
12923    ac_res="none required"
12924  else
12925    ac_res=-l$ac_lib
12926    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12927  fi
12928  rm -f conftest.$ac_objext conftest$ac_exeext
12929if { (ac_try="$ac_link"
12930case "(($ac_try" in
12931  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12932  *) ac_try_echo=$ac_try;;
12933esac
12934eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12935  (eval "$ac_link") 2>conftest.er1
12936  ac_status=$?
12937  grep -v '^ *+' conftest.er1 >conftest.err
12938  rm -f conftest.er1
12939  cat conftest.err >&5
12940  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12941  (exit $ac_status); } &&
12942	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12943  { (case "(($ac_try" in
12944  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12945  *) ac_try_echo=$ac_try;;
12946esac
12947eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12948  (eval "$ac_try") 2>&5
12949  ac_status=$?
12950  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12951  (exit $ac_status); }; } &&
12952	 { ac_try='test -s conftest$ac_exeext'
12953  { (case "(($ac_try" in
12954  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12955  *) ac_try_echo=$ac_try;;
12956esac
12957eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12958  (eval "$ac_try") 2>&5
12959  ac_status=$?
12960  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12961  (exit $ac_status); }; }; then
12962  ac_cv_search_pthread_mutex_lock=$ac_res
12963else
12964  echo "$as_me: failed program was:" >&5
12965sed 's/^/| /' conftest.$ac_ext >&5
12966
12967
12968fi
12969
12970rm -f core conftest.err conftest.$ac_objext \
12971      conftest$ac_exeext
12972  if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12973  break
12974fi
12975done
12976if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12977  :
12978else
12979  ac_cv_search_pthread_mutex_lock=no
12980fi
12981rm conftest.$ac_ext
12982LIBS=$ac_func_search_save_LIBS
12983fi
12984{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
12985echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
12986ac_res=$ac_cv_search_pthread_mutex_lock
12987if test "$ac_res" != no; then
12988  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12989
12990cat >>confdefs.h <<\_ACEOF
12991#define HAVE_PTHREAD_MUTEX_LOCK 1
12992_ACEOF
12993
12994fi
12995
12996  { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
12997echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
12998if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
12999  echo $ECHO_N "(cached) $ECHO_C" >&6
13000else
13001  ac_func_search_save_LIBS=$LIBS
13002cat >conftest.$ac_ext <<_ACEOF
13003/* confdefs.h.  */
13004_ACEOF
13005cat confdefs.h >>conftest.$ac_ext
13006cat >>conftest.$ac_ext <<_ACEOF
13007/* end confdefs.h.  */
13008
13009/* Override any GCC internal prototype to avoid an error.
13010   Use char because int might match the return type of a GCC
13011   builtin and then its argument prototype would still apply.  */
13012#ifdef __cplusplus
13013extern "C"
13014#endif
13015char pthread_rwlock_init ();
13016int
13017main ()
13018{
13019return pthread_rwlock_init ();
13020  ;
13021  return 0;
13022}
13023_ACEOF
13024for ac_lib in '' pthread; do
13025  if test -z "$ac_lib"; then
13026    ac_res="none required"
13027  else
13028    ac_res=-l$ac_lib
13029    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13030  fi
13031  rm -f conftest.$ac_objext conftest$ac_exeext
13032if { (ac_try="$ac_link"
13033case "(($ac_try" in
13034  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13035  *) ac_try_echo=$ac_try;;
13036esac
13037eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13038  (eval "$ac_link") 2>conftest.er1
13039  ac_status=$?
13040  grep -v '^ *+' conftest.er1 >conftest.err
13041  rm -f conftest.er1
13042  cat conftest.err >&5
13043  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13044  (exit $ac_status); } &&
13045	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13046  { (case "(($ac_try" in
13047  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13048  *) ac_try_echo=$ac_try;;
13049esac
13050eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13051  (eval "$ac_try") 2>&5
13052  ac_status=$?
13053  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13054  (exit $ac_status); }; } &&
13055	 { ac_try='test -s conftest$ac_exeext'
13056  { (case "(($ac_try" in
13057  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13058  *) ac_try_echo=$ac_try;;
13059esac
13060eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13061  (eval "$ac_try") 2>&5
13062  ac_status=$?
13063  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13064  (exit $ac_status); }; }; then
13065  ac_cv_search_pthread_rwlock_init=$ac_res
13066else
13067  echo "$as_me: failed program was:" >&5
13068sed 's/^/| /' conftest.$ac_ext >&5
13069
13070
13071fi
13072
13073rm -f core conftest.err conftest.$ac_objext \
13074      conftest$ac_exeext
13075  if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13076  break
13077fi
13078done
13079if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13080  :
13081else
13082  ac_cv_search_pthread_rwlock_init=no
13083fi
13084rm conftest.$ac_ext
13085LIBS=$ac_func_search_save_LIBS
13086fi
13087{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
13088echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
13089ac_res=$ac_cv_search_pthread_rwlock_init
13090if test "$ac_res" != no; then
13091  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13092
13093cat >>confdefs.h <<\_ACEOF
13094#define HAVE_PTHREAD_RWLOCK_INIT 1
13095_ACEOF
13096
13097fi
13098
13099  { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
13100echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
13101if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13102  echo $ECHO_N "(cached) $ECHO_C" >&6
13103else
13104  ac_func_search_save_LIBS=$LIBS
13105cat >conftest.$ac_ext <<_ACEOF
13106/* confdefs.h.  */
13107_ACEOF
13108cat confdefs.h >>conftest.$ac_ext
13109cat >>conftest.$ac_ext <<_ACEOF
13110/* end confdefs.h.  */
13111
13112/* Override any GCC internal prototype to avoid an error.
13113   Use char because int might match the return type of a GCC
13114   builtin and then its argument prototype would still apply.  */
13115#ifdef __cplusplus
13116extern "C"
13117#endif
13118char pthread_getspecific ();
13119int
13120main ()
13121{
13122return pthread_getspecific ();
13123  ;
13124  return 0;
13125}
13126_ACEOF
13127for ac_lib in '' pthread; do
13128  if test -z "$ac_lib"; then
13129    ac_res="none required"
13130  else
13131    ac_res=-l$ac_lib
13132    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13133  fi
13134  rm -f conftest.$ac_objext conftest$ac_exeext
13135if { (ac_try="$ac_link"
13136case "(($ac_try" in
13137  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13138  *) ac_try_echo=$ac_try;;
13139esac
13140eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13141  (eval "$ac_link") 2>conftest.er1
13142  ac_status=$?
13143  grep -v '^ *+' conftest.er1 >conftest.err
13144  rm -f conftest.er1
13145  cat conftest.err >&5
13146  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13147  (exit $ac_status); } &&
13148	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13149  { (case "(($ac_try" in
13150  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13151  *) ac_try_echo=$ac_try;;
13152esac
13153eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13154  (eval "$ac_try") 2>&5
13155  ac_status=$?
13156  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13157  (exit $ac_status); }; } &&
13158	 { ac_try='test -s conftest$ac_exeext'
13159  { (case "(($ac_try" in
13160  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13161  *) ac_try_echo=$ac_try;;
13162esac
13163eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13164  (eval "$ac_try") 2>&5
13165  ac_status=$?
13166  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13167  (exit $ac_status); }; }; then
13168  ac_cv_search_pthread_getspecific=$ac_res
13169else
13170  echo "$as_me: failed program was:" >&5
13171sed 's/^/| /' conftest.$ac_ext >&5
13172
13173
13174fi
13175
13176rm -f core conftest.err conftest.$ac_objext \
13177      conftest$ac_exeext
13178  if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13179  break
13180fi
13181done
13182if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13183  :
13184else
13185  ac_cv_search_pthread_getspecific=no
13186fi
13187rm conftest.$ac_ext
13188LIBS=$ac_func_search_save_LIBS
13189fi
13190{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
13191echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
13192ac_res=$ac_cv_search_pthread_getspecific
13193if test "$ac_res" != no; then
13194  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13195
13196cat >>confdefs.h <<\_ACEOF
13197#define HAVE_PTHREAD_GETSPECIFIC 1
13198_ACEOF
13199
13200fi
13201
13202fi
13203
13204
13205# Check whether --with-udis86 was given.
13206if test "${with_udis86+set}" = set; then
13207  withval=$with_udis86;
13208      USE_UDIS86=1
13209
13210      case "$withval" in
13211        /usr/lib|yes) ;;
13212        *) LDFLAGS="$LDFLAGS -L${withval}" ;;
13213      esac
13214
13215{ echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
13216echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
13217if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
13218  echo $ECHO_N "(cached) $ECHO_C" >&6
13219else
13220  ac_check_lib_save_LIBS=$LIBS
13221LIBS="-ludis86  $LIBS"
13222cat >conftest.$ac_ext <<_ACEOF
13223/* confdefs.h.  */
13224_ACEOF
13225cat confdefs.h >>conftest.$ac_ext
13226cat >>conftest.$ac_ext <<_ACEOF
13227/* end confdefs.h.  */
13228
13229/* Override any GCC internal prototype to avoid an error.
13230   Use char because int might match the return type of a GCC
13231   builtin and then its argument prototype would still apply.  */
13232#ifdef __cplusplus
13233extern "C"
13234#endif
13235char ud_init ();
13236int
13237main ()
13238{
13239return ud_init ();
13240  ;
13241  return 0;
13242}
13243_ACEOF
13244rm -f conftest.$ac_objext conftest$ac_exeext
13245if { (ac_try="$ac_link"
13246case "(($ac_try" in
13247  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13248  *) ac_try_echo=$ac_try;;
13249esac
13250eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13251  (eval "$ac_link") 2>conftest.er1
13252  ac_status=$?
13253  grep -v '^ *+' conftest.er1 >conftest.err
13254  rm -f conftest.er1
13255  cat conftest.err >&5
13256  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13257  (exit $ac_status); } &&
13258	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13259  { (case "(($ac_try" in
13260  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13261  *) ac_try_echo=$ac_try;;
13262esac
13263eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13264  (eval "$ac_try") 2>&5
13265  ac_status=$?
13266  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13267  (exit $ac_status); }; } &&
13268	 { ac_try='test -s conftest$ac_exeext'
13269  { (case "(($ac_try" in
13270  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13271  *) ac_try_echo=$ac_try;;
13272esac
13273eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13274  (eval "$ac_try") 2>&5
13275  ac_status=$?
13276  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13277  (exit $ac_status); }; }; then
13278  ac_cv_lib_udis86_ud_init=yes
13279else
13280  echo "$as_me: failed program was:" >&5
13281sed 's/^/| /' conftest.$ac_ext >&5
13282
13283	ac_cv_lib_udis86_ud_init=no
13284fi
13285
13286rm -f core conftest.err conftest.$ac_objext \
13287      conftest$ac_exeext conftest.$ac_ext
13288LIBS=$ac_check_lib_save_LIBS
13289fi
13290{ echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
13291echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
13292if test $ac_cv_lib_udis86_ud_init = yes; then
13293  cat >>confdefs.h <<_ACEOF
13294#define HAVE_LIBUDIS86 1
13295_ACEOF
13296
13297  LIBS="-ludis86 $LIBS"
13298
13299else
13300
13301        echo "Error! You need to have libudis86 around."
13302        exit -1
13303
13304fi
13305
13306
13307else
13308  USE_UDIS86=0
13309
13310fi
13311
13312
13313cat >>confdefs.h <<_ACEOF
13314#define USE_UDIS86 $USE_UDIS86
13315_ACEOF
13316
13317
13318
13319# Check whether --with-oprofile was given.
13320if test "${with_oprofile+set}" = set; then
13321  withval=$with_oprofile;
13322      USE_OPROFILE=1
13323
13324      case "$withval" in
13325        /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
13326        no) llvm_cv_oppath=
13327            USE_OPROFILE=0
13328 ;;
13329        *) llvm_cv_oppath="${withval}/lib/oprofile"
13330           CPPFLAGS="-I${withval}/include";;
13331      esac
13332      if test -n "$llvm_cv_oppath" ; then
13333        LIBS="$LIBS -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
13334                                        { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
13335echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
13336if test "${ac_cv_search_bfd_init+set}" = set; then
13337  echo $ECHO_N "(cached) $ECHO_C" >&6
13338else
13339  ac_func_search_save_LIBS=$LIBS
13340cat >conftest.$ac_ext <<_ACEOF
13341/* confdefs.h.  */
13342_ACEOF
13343cat confdefs.h >>conftest.$ac_ext
13344cat >>conftest.$ac_ext <<_ACEOF
13345/* end confdefs.h.  */
13346
13347/* Override any GCC internal prototype to avoid an error.
13348   Use char because int might match the return type of a GCC
13349   builtin and then its argument prototype would still apply.  */
13350#ifdef __cplusplus
13351extern "C"
13352#endif
13353char bfd_init ();
13354int
13355main ()
13356{
13357return bfd_init ();
13358  ;
13359  return 0;
13360}
13361_ACEOF
13362for ac_lib in '' bfd; do
13363  if test -z "$ac_lib"; then
13364    ac_res="none required"
13365  else
13366    ac_res=-l$ac_lib
13367    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13368  fi
13369  rm -f conftest.$ac_objext conftest$ac_exeext
13370if { (ac_try="$ac_link"
13371case "(($ac_try" in
13372  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13373  *) ac_try_echo=$ac_try;;
13374esac
13375eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13376  (eval "$ac_link") 2>conftest.er1
13377  ac_status=$?
13378  grep -v '^ *+' conftest.er1 >conftest.err
13379  rm -f conftest.er1
13380  cat conftest.err >&5
13381  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13382  (exit $ac_status); } &&
13383	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13384  { (case "(($ac_try" in
13385  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13386  *) ac_try_echo=$ac_try;;
13387esac
13388eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13389  (eval "$ac_try") 2>&5
13390  ac_status=$?
13391  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13392  (exit $ac_status); }; } &&
13393	 { ac_try='test -s conftest$ac_exeext'
13394  { (case "(($ac_try" in
13395  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13396  *) ac_try_echo=$ac_try;;
13397esac
13398eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13399  (eval "$ac_try") 2>&5
13400  ac_status=$?
13401  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13402  (exit $ac_status); }; }; then
13403  ac_cv_search_bfd_init=$ac_res
13404else
13405  echo "$as_me: failed program was:" >&5
13406sed 's/^/| /' conftest.$ac_ext >&5
13407
13408
13409fi
13410
13411rm -f core conftest.err conftest.$ac_objext \
13412      conftest$ac_exeext
13413  if test "${ac_cv_search_bfd_init+set}" = set; then
13414  break
13415fi
13416done
13417if test "${ac_cv_search_bfd_init+set}" = set; then
13418  :
13419else
13420  ac_cv_search_bfd_init=no
13421fi
13422rm conftest.$ac_ext
13423LIBS=$ac_func_search_save_LIBS
13424fi
13425{ echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
13426echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
13427ac_res=$ac_cv_search_bfd_init
13428if test "$ac_res" != no; then
13429  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13430
13431fi
13432
13433        { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
13434echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
13435if test "${ac_cv_search_op_open_agent+set}" = set; then
13436  echo $ECHO_N "(cached) $ECHO_C" >&6
13437else
13438  ac_func_search_save_LIBS=$LIBS
13439cat >conftest.$ac_ext <<_ACEOF
13440/* confdefs.h.  */
13441_ACEOF
13442cat confdefs.h >>conftest.$ac_ext
13443cat >>conftest.$ac_ext <<_ACEOF
13444/* end confdefs.h.  */
13445
13446/* Override any GCC internal prototype to avoid an error.
13447   Use char because int might match the return type of a GCC
13448   builtin and then its argument prototype would still apply.  */
13449#ifdef __cplusplus
13450extern "C"
13451#endif
13452char op_open_agent ();
13453int
13454main ()
13455{
13456return op_open_agent ();
13457  ;
13458  return 0;
13459}
13460_ACEOF
13461for ac_lib in '' opagent; do
13462  if test -z "$ac_lib"; then
13463    ac_res="none required"
13464  else
13465    ac_res=-l$ac_lib
13466    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13467  fi
13468  rm -f conftest.$ac_objext conftest$ac_exeext
13469if { (ac_try="$ac_link"
13470case "(($ac_try" in
13471  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13472  *) ac_try_echo=$ac_try;;
13473esac
13474eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13475  (eval "$ac_link") 2>conftest.er1
13476  ac_status=$?
13477  grep -v '^ *+' conftest.er1 >conftest.err
13478  rm -f conftest.er1
13479  cat conftest.err >&5
13480  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13481  (exit $ac_status); } &&
13482	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13483  { (case "(($ac_try" in
13484  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13485  *) ac_try_echo=$ac_try;;
13486esac
13487eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13488  (eval "$ac_try") 2>&5
13489  ac_status=$?
13490  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13491  (exit $ac_status); }; } &&
13492	 { ac_try='test -s conftest$ac_exeext'
13493  { (case "(($ac_try" in
13494  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13495  *) ac_try_echo=$ac_try;;
13496esac
13497eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13498  (eval "$ac_try") 2>&5
13499  ac_status=$?
13500  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13501  (exit $ac_status); }; }; then
13502  ac_cv_search_op_open_agent=$ac_res
13503else
13504  echo "$as_me: failed program was:" >&5
13505sed 's/^/| /' conftest.$ac_ext >&5
13506
13507
13508fi
13509
13510rm -f core conftest.err conftest.$ac_objext \
13511      conftest$ac_exeext
13512  if test "${ac_cv_search_op_open_agent+set}" = set; then
13513  break
13514fi
13515done
13516if test "${ac_cv_search_op_open_agent+set}" = set; then
13517  :
13518else
13519  ac_cv_search_op_open_agent=no
13520fi
13521rm conftest.$ac_ext
13522LIBS=$ac_func_search_save_LIBS
13523fi
13524{ echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
13525echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
13526ac_res=$ac_cv_search_op_open_agent
13527if test "$ac_res" != no; then
13528  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13529
13530else
13531
13532          echo "Error! You need to have libopagent around."
13533          exit -1
13534
13535fi
13536
13537        if test "${ac_cv_header_opagent_h+set}" = set; then
13538  { echo "$as_me:$LINENO: checking for opagent.h" >&5
13539echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13540if test "${ac_cv_header_opagent_h+set}" = set; then
13541  echo $ECHO_N "(cached) $ECHO_C" >&6
13542fi
13543{ echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13544echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13545else
13546  # Is the header compilable?
13547{ echo "$as_me:$LINENO: checking opagent.h usability" >&5
13548echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
13549cat >conftest.$ac_ext <<_ACEOF
13550/* confdefs.h.  */
13551_ACEOF
13552cat confdefs.h >>conftest.$ac_ext
13553cat >>conftest.$ac_ext <<_ACEOF
13554/* end confdefs.h.  */
13555$ac_includes_default
13556#include <opagent.h>
13557_ACEOF
13558rm -f conftest.$ac_objext
13559if { (ac_try="$ac_compile"
13560case "(($ac_try" in
13561  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13562  *) ac_try_echo=$ac_try;;
13563esac
13564eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13565  (eval "$ac_compile") 2>conftest.er1
13566  ac_status=$?
13567  grep -v '^ *+' conftest.er1 >conftest.err
13568  rm -f conftest.er1
13569  cat conftest.err >&5
13570  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13571  (exit $ac_status); } &&
13572	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13573  { (case "(($ac_try" in
13574  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13575  *) ac_try_echo=$ac_try;;
13576esac
13577eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13578  (eval "$ac_try") 2>&5
13579  ac_status=$?
13580  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13581  (exit $ac_status); }; } &&
13582	 { ac_try='test -s conftest.$ac_objext'
13583  { (case "(($ac_try" in
13584  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13585  *) ac_try_echo=$ac_try;;
13586esac
13587eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13588  (eval "$ac_try") 2>&5
13589  ac_status=$?
13590  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13591  (exit $ac_status); }; }; then
13592  ac_header_compiler=yes
13593else
13594  echo "$as_me: failed program was:" >&5
13595sed 's/^/| /' conftest.$ac_ext >&5
13596
13597	ac_header_compiler=no
13598fi
13599
13600rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13601{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13602echo "${ECHO_T}$ac_header_compiler" >&6; }
13603
13604# Is the header present?
13605{ echo "$as_me:$LINENO: checking opagent.h presence" >&5
13606echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
13607cat >conftest.$ac_ext <<_ACEOF
13608/* confdefs.h.  */
13609_ACEOF
13610cat confdefs.h >>conftest.$ac_ext
13611cat >>conftest.$ac_ext <<_ACEOF
13612/* end confdefs.h.  */
13613#include <opagent.h>
13614_ACEOF
13615if { (ac_try="$ac_cpp conftest.$ac_ext"
13616case "(($ac_try" in
13617  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13618  *) ac_try_echo=$ac_try;;
13619esac
13620eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13621  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13622  ac_status=$?
13623  grep -v '^ *+' conftest.er1 >conftest.err
13624  rm -f conftest.er1
13625  cat conftest.err >&5
13626  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13627  (exit $ac_status); } >/dev/null; then
13628  if test -s conftest.err; then
13629    ac_cpp_err=$ac_c_preproc_warn_flag
13630    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13631  else
13632    ac_cpp_err=
13633  fi
13634else
13635  ac_cpp_err=yes
13636fi
13637if test -z "$ac_cpp_err"; then
13638  ac_header_preproc=yes
13639else
13640  echo "$as_me: failed program was:" >&5
13641sed 's/^/| /' conftest.$ac_ext >&5
13642
13643  ac_header_preproc=no
13644fi
13645
13646rm -f conftest.err conftest.$ac_ext
13647{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13648echo "${ECHO_T}$ac_header_preproc" >&6; }
13649
13650# So?  What about this header?
13651case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13652  yes:no: )
13653    { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
13654echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13655    { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
13656echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
13657    ac_header_preproc=yes
13658    ;;
13659  no:yes:* )
13660    { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
13661echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
13662    { echo "$as_me:$LINENO: WARNING: opagent.h:     check for missing prerequisite headers?" >&5
13663echo "$as_me: WARNING: opagent.h:     check for missing prerequisite headers?" >&2;}
13664    { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
13665echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
13666    { echo "$as_me:$LINENO: WARNING: opagent.h:     section \"Present But Cannot Be Compiled\"" >&5
13667echo "$as_me: WARNING: opagent.h:     section \"Present But Cannot Be Compiled\"" >&2;}
13668    { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
13669echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
13670    { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
13671echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
13672    ( cat <<\_ASBOX
13673## ------------------------------------ ##
13674## Report this to http://llvm.org/bugs/ ##
13675## ------------------------------------ ##
13676_ASBOX
13677     ) | sed "s/^/$as_me: WARNING:     /" >&2
13678    ;;
13679esac
13680{ echo "$as_me:$LINENO: checking for opagent.h" >&5
13681echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13682if test "${ac_cv_header_opagent_h+set}" = set; then
13683  echo $ECHO_N "(cached) $ECHO_C" >&6
13684else
13685  ac_cv_header_opagent_h=$ac_header_preproc
13686fi
13687{ echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13688echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13689
13690fi
13691if test $ac_cv_header_opagent_h = yes; then
13692  :
13693else
13694
13695          echo "Error! You need to have opagent.h around."
13696          exit -1
13697
13698fi
13699
13700
13701      fi
13702
13703else
13704
13705      USE_OPROFILE=0
13706
13707
13708fi
13709
13710
13711cat >>confdefs.h <<_ACEOF
13712#define USE_OPROFILE $USE_OPROFILE
13713_ACEOF
13714
13715
13716
13717
13718
13719
13720
13721
13722ac_header_dirent=no
13723for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
13724  as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
13725{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
13726echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
13727if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13728  echo $ECHO_N "(cached) $ECHO_C" >&6
13729else
13730  cat >conftest.$ac_ext <<_ACEOF
13731/* confdefs.h.  */
13732_ACEOF
13733cat confdefs.h >>conftest.$ac_ext
13734cat >>conftest.$ac_ext <<_ACEOF
13735/* end confdefs.h.  */
13736#include <sys/types.h>
13737#include <$ac_hdr>
13738
13739int
13740main ()
13741{
13742if ((DIR *) 0)
13743return 0;
13744  ;
13745  return 0;
13746}
13747_ACEOF
13748rm -f conftest.$ac_objext
13749if { (ac_try="$ac_compile"
13750case "(($ac_try" in
13751  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13752  *) ac_try_echo=$ac_try;;
13753esac
13754eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13755  (eval "$ac_compile") 2>conftest.er1
13756  ac_status=$?
13757  grep -v '^ *+' conftest.er1 >conftest.err
13758  rm -f conftest.er1
13759  cat conftest.err >&5
13760  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13761  (exit $ac_status); } &&
13762	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13763  { (case "(($ac_try" in
13764  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13765  *) ac_try_echo=$ac_try;;
13766esac
13767eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13768  (eval "$ac_try") 2>&5
13769  ac_status=$?
13770  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13771  (exit $ac_status); }; } &&
13772	 { ac_try='test -s conftest.$ac_objext'
13773  { (case "(($ac_try" in
13774  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13775  *) ac_try_echo=$ac_try;;
13776esac
13777eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13778  (eval "$ac_try") 2>&5
13779  ac_status=$?
13780  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13781  (exit $ac_status); }; }; then
13782  eval "$as_ac_Header=yes"
13783else
13784  echo "$as_me: failed program was:" >&5
13785sed 's/^/| /' conftest.$ac_ext >&5
13786
13787	eval "$as_ac_Header=no"
13788fi
13789
13790rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13791fi
13792ac_res=`eval echo '${'$as_ac_Header'}'`
13793	       { echo "$as_me:$LINENO: result: $ac_res" >&5
13794echo "${ECHO_T}$ac_res" >&6; }
13795if test `eval echo '${'$as_ac_Header'}'` = yes; then
13796  cat >>confdefs.h <<_ACEOF
13797#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
13798_ACEOF
13799
13800ac_header_dirent=$ac_hdr; break
13801fi
13802
13803done
13804# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
13805if test $ac_header_dirent = dirent.h; then
13806  { echo "$as_me:$LINENO: checking for library containing opendir" >&5
13807echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
13808if test "${ac_cv_search_opendir+set}" = set; then
13809  echo $ECHO_N "(cached) $ECHO_C" >&6
13810else
13811  ac_func_search_save_LIBS=$LIBS
13812cat >conftest.$ac_ext <<_ACEOF
13813/* confdefs.h.  */
13814_ACEOF
13815cat confdefs.h >>conftest.$ac_ext
13816cat >>conftest.$ac_ext <<_ACEOF
13817/* end confdefs.h.  */
13818
13819/* Override any GCC internal prototype to avoid an error.
13820   Use char because int might match the return type of a GCC
13821   builtin and then its argument prototype would still apply.  */
13822#ifdef __cplusplus
13823extern "C"
13824#endif
13825char opendir ();
13826int
13827main ()
13828{
13829return opendir ();
13830  ;
13831  return 0;
13832}
13833_ACEOF
13834for ac_lib in '' dir; do
13835  if test -z "$ac_lib"; then
13836    ac_res="none required"
13837  else
13838    ac_res=-l$ac_lib
13839    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13840  fi
13841  rm -f conftest.$ac_objext conftest$ac_exeext
13842if { (ac_try="$ac_link"
13843case "(($ac_try" in
13844  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13845  *) ac_try_echo=$ac_try;;
13846esac
13847eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13848  (eval "$ac_link") 2>conftest.er1
13849  ac_status=$?
13850  grep -v '^ *+' conftest.er1 >conftest.err
13851  rm -f conftest.er1
13852  cat conftest.err >&5
13853  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13854  (exit $ac_status); } &&
13855	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13856  { (case "(($ac_try" in
13857  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13858  *) ac_try_echo=$ac_try;;
13859esac
13860eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13861  (eval "$ac_try") 2>&5
13862  ac_status=$?
13863  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13864  (exit $ac_status); }; } &&
13865	 { ac_try='test -s conftest$ac_exeext'
13866  { (case "(($ac_try" in
13867  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13868  *) ac_try_echo=$ac_try;;
13869esac
13870eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13871  (eval "$ac_try") 2>&5
13872  ac_status=$?
13873  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13874  (exit $ac_status); }; }; then
13875  ac_cv_search_opendir=$ac_res
13876else
13877  echo "$as_me: failed program was:" >&5
13878sed 's/^/| /' conftest.$ac_ext >&5
13879
13880
13881fi
13882
13883rm -f core conftest.err conftest.$ac_objext \
13884      conftest$ac_exeext
13885  if test "${ac_cv_search_opendir+set}" = set; then
13886  break
13887fi
13888done
13889if test "${ac_cv_search_opendir+set}" = set; then
13890  :
13891else
13892  ac_cv_search_opendir=no
13893fi
13894rm conftest.$ac_ext
13895LIBS=$ac_func_search_save_LIBS
13896fi
13897{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
13898echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
13899ac_res=$ac_cv_search_opendir
13900if test "$ac_res" != no; then
13901  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13902
13903fi
13904
13905else
13906  { echo "$as_me:$LINENO: checking for library containing opendir" >&5
13907echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
13908if test "${ac_cv_search_opendir+set}" = set; then
13909  echo $ECHO_N "(cached) $ECHO_C" >&6
13910else
13911  ac_func_search_save_LIBS=$LIBS
13912cat >conftest.$ac_ext <<_ACEOF
13913/* confdefs.h.  */
13914_ACEOF
13915cat confdefs.h >>conftest.$ac_ext
13916cat >>conftest.$ac_ext <<_ACEOF
13917/* end confdefs.h.  */
13918
13919/* Override any GCC internal prototype to avoid an error.
13920   Use char because int might match the return type of a GCC
13921   builtin and then its argument prototype would still apply.  */
13922#ifdef __cplusplus
13923extern "C"
13924#endif
13925char opendir ();
13926int
13927main ()
13928{
13929return opendir ();
13930  ;
13931  return 0;
13932}
13933_ACEOF
13934for ac_lib in '' x; do
13935  if test -z "$ac_lib"; then
13936    ac_res="none required"
13937  else
13938    ac_res=-l$ac_lib
13939    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13940  fi
13941  rm -f conftest.$ac_objext conftest$ac_exeext
13942if { (ac_try="$ac_link"
13943case "(($ac_try" in
13944  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13945  *) ac_try_echo=$ac_try;;
13946esac
13947eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13948  (eval "$ac_link") 2>conftest.er1
13949  ac_status=$?
13950  grep -v '^ *+' conftest.er1 >conftest.err
13951  rm -f conftest.er1
13952  cat conftest.err >&5
13953  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13954  (exit $ac_status); } &&
13955	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13956  { (case "(($ac_try" in
13957  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13958  *) ac_try_echo=$ac_try;;
13959esac
13960eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13961  (eval "$ac_try") 2>&5
13962  ac_status=$?
13963  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13964  (exit $ac_status); }; } &&
13965	 { ac_try='test -s conftest$ac_exeext'
13966  { (case "(($ac_try" in
13967  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13968  *) ac_try_echo=$ac_try;;
13969esac
13970eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13971  (eval "$ac_try") 2>&5
13972  ac_status=$?
13973  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13974  (exit $ac_status); }; }; then
13975  ac_cv_search_opendir=$ac_res
13976else
13977  echo "$as_me: failed program was:" >&5
13978sed 's/^/| /' conftest.$ac_ext >&5
13979
13980
13981fi
13982
13983rm -f core conftest.err conftest.$ac_objext \
13984      conftest$ac_exeext
13985  if test "${ac_cv_search_opendir+set}" = set; then
13986  break
13987fi
13988done
13989if test "${ac_cv_search_opendir+set}" = set; then
13990  :
13991else
13992  ac_cv_search_opendir=no
13993fi
13994rm conftest.$ac_ext
13995LIBS=$ac_func_search_save_LIBS
13996fi
13997{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
13998echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
13999ac_res=$ac_cv_search_opendir
14000if test "$ac_res" != no; then
14001  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14002
14003fi
14004
14005fi
14006
14007{ echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
14008echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
14009if test "${ac_cv_header_mmap_anon+set}" = set; then
14010  echo $ECHO_N "(cached) $ECHO_C" >&6
14011else
14012   ac_ext=c
14013ac_cpp='$CPP $CPPFLAGS'
14014ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14015ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14016ac_compiler_gnu=$ac_cv_c_compiler_gnu
14017
14018  cat >conftest.$ac_ext <<_ACEOF
14019/* confdefs.h.  */
14020_ACEOF
14021cat confdefs.h >>conftest.$ac_ext
14022cat >>conftest.$ac_ext <<_ACEOF
14023/* end confdefs.h.  */
14024#include <sys/mman.h>
14025#include <unistd.h>
14026#include <fcntl.h>
14027int
14028main ()
14029{
14030mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
14031  ;
14032  return 0;
14033}
14034_ACEOF
14035rm -f conftest.$ac_objext
14036if { (ac_try="$ac_compile"
14037case "(($ac_try" in
14038  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14039  *) ac_try_echo=$ac_try;;
14040esac
14041eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14042  (eval "$ac_compile") 2>conftest.er1
14043  ac_status=$?
14044  grep -v '^ *+' conftest.er1 >conftest.err
14045  rm -f conftest.er1
14046  cat conftest.err >&5
14047  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14048  (exit $ac_status); } &&
14049	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14050  { (case "(($ac_try" in
14051  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14052  *) ac_try_echo=$ac_try;;
14053esac
14054eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14055  (eval "$ac_try") 2>&5
14056  ac_status=$?
14057  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14058  (exit $ac_status); }; } &&
14059	 { ac_try='test -s conftest.$ac_objext'
14060  { (case "(($ac_try" in
14061  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14062  *) ac_try_echo=$ac_try;;
14063esac
14064eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14065  (eval "$ac_try") 2>&5
14066  ac_status=$?
14067  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14068  (exit $ac_status); }; }; then
14069  ac_cv_header_mmap_anon=yes
14070else
14071  echo "$as_me: failed program was:" >&5
14072sed 's/^/| /' conftest.$ac_ext >&5
14073
14074	ac_cv_header_mmap_anon=no
14075fi
14076
14077rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14078  ac_ext=c
14079ac_cpp='$CPP $CPPFLAGS'
14080ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14081ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14082ac_compiler_gnu=$ac_cv_c_compiler_gnu
14083
14084
14085fi
14086{ echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
14087echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
14088if test "$ac_cv_header_mmap_anon" = yes; then
14089
14090cat >>confdefs.h <<\_ACEOF
14091#define HAVE_MMAP_ANONYMOUS 1
14092_ACEOF
14093
14094fi
14095
14096{ echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
14097echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
14098if test "${ac_cv_header_stat_broken+set}" = set; then
14099  echo $ECHO_N "(cached) $ECHO_C" >&6
14100else
14101  cat >conftest.$ac_ext <<_ACEOF
14102/* confdefs.h.  */
14103_ACEOF
14104cat confdefs.h >>conftest.$ac_ext
14105cat >>conftest.$ac_ext <<_ACEOF
14106/* end confdefs.h.  */
14107#include <sys/types.h>
14108#include <sys/stat.h>
14109
14110#if defined S_ISBLK && defined S_IFDIR
14111# if S_ISBLK (S_IFDIR)
14112You lose.
14113# endif
14114#endif
14115
14116#if defined S_ISBLK && defined S_IFCHR
14117# if S_ISBLK (S_IFCHR)
14118You lose.
14119# endif
14120#endif
14121
14122#if defined S_ISLNK && defined S_IFREG
14123# if S_ISLNK (S_IFREG)
14124You lose.
14125# endif
14126#endif
14127
14128#if defined S_ISSOCK && defined S_IFREG
14129# if S_ISSOCK (S_IFREG)
14130You lose.
14131# endif
14132#endif
14133
14134_ACEOF
14135if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14136  $EGREP "You lose" >/dev/null 2>&1; then
14137  ac_cv_header_stat_broken=yes
14138else
14139  ac_cv_header_stat_broken=no
14140fi
14141rm -f conftest*
14142
14143fi
14144{ echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
14145echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
14146if test $ac_cv_header_stat_broken = yes; then
14147
14148cat >>confdefs.h <<\_ACEOF
14149#define STAT_MACROS_BROKEN 1
14150_ACEOF
14151
14152fi
14153
14154{ echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
14155echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
14156if test "${ac_cv_header_sys_wait_h+set}" = set; then
14157  echo $ECHO_N "(cached) $ECHO_C" >&6
14158else
14159  cat >conftest.$ac_ext <<_ACEOF
14160/* confdefs.h.  */
14161_ACEOF
14162cat confdefs.h >>conftest.$ac_ext
14163cat >>conftest.$ac_ext <<_ACEOF
14164/* end confdefs.h.  */
14165#include <sys/types.h>
14166#include <sys/wait.h>
14167#ifndef WEXITSTATUS
14168# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
14169#endif
14170#ifndef WIFEXITED
14171# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
14172#endif
14173
14174int
14175main ()
14176{
14177  int s;
14178  wait (&s);
14179  s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
14180  ;
14181  return 0;
14182}
14183_ACEOF
14184rm -f conftest.$ac_objext
14185if { (ac_try="$ac_compile"
14186case "(($ac_try" in
14187  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14188  *) ac_try_echo=$ac_try;;
14189esac
14190eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14191  (eval "$ac_compile") 2>conftest.er1
14192  ac_status=$?
14193  grep -v '^ *+' conftest.er1 >conftest.err
14194  rm -f conftest.er1
14195  cat conftest.err >&5
14196  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14197  (exit $ac_status); } &&
14198	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14199  { (case "(($ac_try" in
14200  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14201  *) ac_try_echo=$ac_try;;
14202esac
14203eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14204  (eval "$ac_try") 2>&5
14205  ac_status=$?
14206  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14207  (exit $ac_status); }; } &&
14208	 { ac_try='test -s conftest.$ac_objext'
14209  { (case "(($ac_try" in
14210  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14211  *) ac_try_echo=$ac_try;;
14212esac
14213eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14214  (eval "$ac_try") 2>&5
14215  ac_status=$?
14216  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14217  (exit $ac_status); }; }; then
14218  ac_cv_header_sys_wait_h=yes
14219else
14220  echo "$as_me: failed program was:" >&5
14221sed 's/^/| /' conftest.$ac_ext >&5
14222
14223	ac_cv_header_sys_wait_h=no
14224fi
14225
14226rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14227fi
14228{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
14229echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
14230if test $ac_cv_header_sys_wait_h = yes; then
14231
14232cat >>confdefs.h <<\_ACEOF
14233#define HAVE_SYS_WAIT_H 1
14234_ACEOF
14235
14236fi
14237
14238{ echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
14239echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
14240if test "${ac_cv_header_time+set}" = set; then
14241  echo $ECHO_N "(cached) $ECHO_C" >&6
14242else
14243  cat >conftest.$ac_ext <<_ACEOF
14244/* confdefs.h.  */
14245_ACEOF
14246cat confdefs.h >>conftest.$ac_ext
14247cat >>conftest.$ac_ext <<_ACEOF
14248/* end confdefs.h.  */
14249#include <sys/types.h>
14250#include <sys/time.h>
14251#include <time.h>
14252
14253int
14254main ()
14255{
14256if ((struct tm *) 0)
14257return 0;
14258  ;
14259  return 0;
14260}
14261_ACEOF
14262rm -f conftest.$ac_objext
14263if { (ac_try="$ac_compile"
14264case "(($ac_try" in
14265  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14266  *) ac_try_echo=$ac_try;;
14267esac
14268eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14269  (eval "$ac_compile") 2>conftest.er1
14270  ac_status=$?
14271  grep -v '^ *+' conftest.er1 >conftest.err
14272  rm -f conftest.er1
14273  cat conftest.err >&5
14274  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14275  (exit $ac_status); } &&
14276	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14277  { (case "(($ac_try" in
14278  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14279  *) ac_try_echo=$ac_try;;
14280esac
14281eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14282  (eval "$ac_try") 2>&5
14283  ac_status=$?
14284  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14285  (exit $ac_status); }; } &&
14286	 { ac_try='test -s conftest.$ac_objext'
14287  { (case "(($ac_try" in
14288  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14289  *) ac_try_echo=$ac_try;;
14290esac
14291eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14292  (eval "$ac_try") 2>&5
14293  ac_status=$?
14294  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14295  (exit $ac_status); }; }; then
14296  ac_cv_header_time=yes
14297else
14298  echo "$as_me: failed program was:" >&5
14299sed 's/^/| /' conftest.$ac_ext >&5
14300
14301	ac_cv_header_time=no
14302fi
14303
14304rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14305fi
14306{ echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
14307echo "${ECHO_T}$ac_cv_header_time" >&6; }
14308if test $ac_cv_header_time = yes; then
14309
14310cat >>confdefs.h <<\_ACEOF
14311#define TIME_WITH_SYS_TIME 1
14312_ACEOF
14313
14314fi
14315
14316
14317
14318
14319
14320
14321
14322
14323for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
14324do
14325as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14326if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14327  { echo "$as_me:$LINENO: checking for $ac_header" >&5
14328echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14329if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14330  echo $ECHO_N "(cached) $ECHO_C" >&6
14331fi
14332ac_res=`eval echo '${'$as_ac_Header'}'`
14333	       { echo "$as_me:$LINENO: result: $ac_res" >&5
14334echo "${ECHO_T}$ac_res" >&6; }
14335else
14336  # Is the header compilable?
14337{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
14338echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14339cat >conftest.$ac_ext <<_ACEOF
14340/* confdefs.h.  */
14341_ACEOF
14342cat confdefs.h >>conftest.$ac_ext
14343cat >>conftest.$ac_ext <<_ACEOF
14344/* end confdefs.h.  */
14345$ac_includes_default
14346#include <$ac_header>
14347_ACEOF
14348rm -f conftest.$ac_objext
14349if { (ac_try="$ac_compile"
14350case "(($ac_try" in
14351  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14352  *) ac_try_echo=$ac_try;;
14353esac
14354eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14355  (eval "$ac_compile") 2>conftest.er1
14356  ac_status=$?
14357  grep -v '^ *+' conftest.er1 >conftest.err
14358  rm -f conftest.er1
14359  cat conftest.err >&5
14360  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14361  (exit $ac_status); } &&
14362	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14363  { (case "(($ac_try" in
14364  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14365  *) ac_try_echo=$ac_try;;
14366esac
14367eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14368  (eval "$ac_try") 2>&5
14369  ac_status=$?
14370  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14371  (exit $ac_status); }; } &&
14372	 { ac_try='test -s conftest.$ac_objext'
14373  { (case "(($ac_try" in
14374  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14375  *) ac_try_echo=$ac_try;;
14376esac
14377eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14378  (eval "$ac_try") 2>&5
14379  ac_status=$?
14380  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14381  (exit $ac_status); }; }; then
14382  ac_header_compiler=yes
14383else
14384  echo "$as_me: failed program was:" >&5
14385sed 's/^/| /' conftest.$ac_ext >&5
14386
14387	ac_header_compiler=no
14388fi
14389
14390rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14391{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14392echo "${ECHO_T}$ac_header_compiler" >&6; }
14393
14394# Is the header present?
14395{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
14396echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14397cat >conftest.$ac_ext <<_ACEOF
14398/* confdefs.h.  */
14399_ACEOF
14400cat confdefs.h >>conftest.$ac_ext
14401cat >>conftest.$ac_ext <<_ACEOF
14402/* end confdefs.h.  */
14403#include <$ac_header>
14404_ACEOF
14405if { (ac_try="$ac_cpp conftest.$ac_ext"
14406case "(($ac_try" in
14407  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14408  *) ac_try_echo=$ac_try;;
14409esac
14410eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14411  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14412  ac_status=$?
14413  grep -v '^ *+' conftest.er1 >conftest.err
14414  rm -f conftest.er1
14415  cat conftest.err >&5
14416  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14417  (exit $ac_status); } >/dev/null; then
14418  if test -s conftest.err; then
14419    ac_cpp_err=$ac_c_preproc_warn_flag
14420    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14421  else
14422    ac_cpp_err=
14423  fi
14424else
14425  ac_cpp_err=yes
14426fi
14427if test -z "$ac_cpp_err"; then
14428  ac_header_preproc=yes
14429else
14430  echo "$as_me: failed program was:" >&5
14431sed 's/^/| /' conftest.$ac_ext >&5
14432
14433  ac_header_preproc=no
14434fi
14435
14436rm -f conftest.err conftest.$ac_ext
14437{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14438echo "${ECHO_T}$ac_header_preproc" >&6; }
14439
14440# So?  What about this header?
14441case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14442  yes:no: )
14443    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14444echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14445    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14446echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14447    ac_header_preproc=yes
14448    ;;
14449  no:yes:* )
14450    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14451echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14452    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14453echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14454    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14455echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14456    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14457echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14458    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14459echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14460    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14461echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14462    ( cat <<\_ASBOX
14463## ------------------------------------ ##
14464## Report this to http://llvm.org/bugs/ ##
14465## ------------------------------------ ##
14466_ASBOX
14467     ) | sed "s/^/$as_me: WARNING:     /" >&2
14468    ;;
14469esac
14470{ echo "$as_me:$LINENO: checking for $ac_header" >&5
14471echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14472if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14473  echo $ECHO_N "(cached) $ECHO_C" >&6
14474else
14475  eval "$as_ac_Header=\$ac_header_preproc"
14476fi
14477ac_res=`eval echo '${'$as_ac_Header'}'`
14478	       { echo "$as_me:$LINENO: result: $ac_res" >&5
14479echo "${ECHO_T}$ac_res" >&6; }
14480
14481fi
14482if test `eval echo '${'$as_ac_Header'}'` = yes; then
14483  cat >>confdefs.h <<_ACEOF
14484#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14485_ACEOF
14486
14487fi
14488
14489done
14490
14491
14492
14493
14494
14495
14496
14497for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
14498do
14499as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14500if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14501  { echo "$as_me:$LINENO: checking for $ac_header" >&5
14502echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14503if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14504  echo $ECHO_N "(cached) $ECHO_C" >&6
14505fi
14506ac_res=`eval echo '${'$as_ac_Header'}'`
14507	       { echo "$as_me:$LINENO: result: $ac_res" >&5
14508echo "${ECHO_T}$ac_res" >&6; }
14509else
14510  # Is the header compilable?
14511{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
14512echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14513cat >conftest.$ac_ext <<_ACEOF
14514/* confdefs.h.  */
14515_ACEOF
14516cat confdefs.h >>conftest.$ac_ext
14517cat >>conftest.$ac_ext <<_ACEOF
14518/* end confdefs.h.  */
14519$ac_includes_default
14520#include <$ac_header>
14521_ACEOF
14522rm -f conftest.$ac_objext
14523if { (ac_try="$ac_compile"
14524case "(($ac_try" in
14525  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14526  *) ac_try_echo=$ac_try;;
14527esac
14528eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14529  (eval "$ac_compile") 2>conftest.er1
14530  ac_status=$?
14531  grep -v '^ *+' conftest.er1 >conftest.err
14532  rm -f conftest.er1
14533  cat conftest.err >&5
14534  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14535  (exit $ac_status); } &&
14536	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14537  { (case "(($ac_try" in
14538  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14539  *) ac_try_echo=$ac_try;;
14540esac
14541eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14542  (eval "$ac_try") 2>&5
14543  ac_status=$?
14544  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14545  (exit $ac_status); }; } &&
14546	 { ac_try='test -s conftest.$ac_objext'
14547  { (case "(($ac_try" in
14548  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14549  *) ac_try_echo=$ac_try;;
14550esac
14551eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14552  (eval "$ac_try") 2>&5
14553  ac_status=$?
14554  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14555  (exit $ac_status); }; }; then
14556  ac_header_compiler=yes
14557else
14558  echo "$as_me: failed program was:" >&5
14559sed 's/^/| /' conftest.$ac_ext >&5
14560
14561	ac_header_compiler=no
14562fi
14563
14564rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14565{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14566echo "${ECHO_T}$ac_header_compiler" >&6; }
14567
14568# Is the header present?
14569{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
14570echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14571cat >conftest.$ac_ext <<_ACEOF
14572/* confdefs.h.  */
14573_ACEOF
14574cat confdefs.h >>conftest.$ac_ext
14575cat >>conftest.$ac_ext <<_ACEOF
14576/* end confdefs.h.  */
14577#include <$ac_header>
14578_ACEOF
14579if { (ac_try="$ac_cpp conftest.$ac_ext"
14580case "(($ac_try" in
14581  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14582  *) ac_try_echo=$ac_try;;
14583esac
14584eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14585  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14586  ac_status=$?
14587  grep -v '^ *+' conftest.er1 >conftest.err
14588  rm -f conftest.er1
14589  cat conftest.err >&5
14590  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14591  (exit $ac_status); } >/dev/null; then
14592  if test -s conftest.err; then
14593    ac_cpp_err=$ac_c_preproc_warn_flag
14594    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14595  else
14596    ac_cpp_err=
14597  fi
14598else
14599  ac_cpp_err=yes
14600fi
14601if test -z "$ac_cpp_err"; then
14602  ac_header_preproc=yes
14603else
14604  echo "$as_me: failed program was:" >&5
14605sed 's/^/| /' conftest.$ac_ext >&5
14606
14607  ac_header_preproc=no
14608fi
14609
14610rm -f conftest.err conftest.$ac_ext
14611{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14612echo "${ECHO_T}$ac_header_preproc" >&6; }
14613
14614# So?  What about this header?
14615case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14616  yes:no: )
14617    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14618echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14619    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14620echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14621    ac_header_preproc=yes
14622    ;;
14623  no:yes:* )
14624    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14625echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14626    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14627echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14628    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14629echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14630    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14631echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14632    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14633echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14634    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14635echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14636    ( cat <<\_ASBOX
14637## ------------------------------------ ##
14638## Report this to http://llvm.org/bugs/ ##
14639## ------------------------------------ ##
14640_ASBOX
14641     ) | sed "s/^/$as_me: WARNING:     /" >&2
14642    ;;
14643esac
14644{ echo "$as_me:$LINENO: checking for $ac_header" >&5
14645echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14646if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14647  echo $ECHO_N "(cached) $ECHO_C" >&6
14648else
14649  eval "$as_ac_Header=\$ac_header_preproc"
14650fi
14651ac_res=`eval echo '${'$as_ac_Header'}'`
14652	       { echo "$as_me:$LINENO: result: $ac_res" >&5
14653echo "${ECHO_T}$ac_res" >&6; }
14654
14655fi
14656if test `eval echo '${'$as_ac_Header'}'` = yes; then
14657  cat >>confdefs.h <<_ACEOF
14658#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14659_ACEOF
14660
14661fi
14662
14663done
14664
14665
14666
14667for ac_header in utime.h windows.h
14668do
14669as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14670if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14671  { echo "$as_me:$LINENO: checking for $ac_header" >&5
14672echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14673if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14674  echo $ECHO_N "(cached) $ECHO_C" >&6
14675fi
14676ac_res=`eval echo '${'$as_ac_Header'}'`
14677	       { echo "$as_me:$LINENO: result: $ac_res" >&5
14678echo "${ECHO_T}$ac_res" >&6; }
14679else
14680  # Is the header compilable?
14681{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
14682echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14683cat >conftest.$ac_ext <<_ACEOF
14684/* confdefs.h.  */
14685_ACEOF
14686cat confdefs.h >>conftest.$ac_ext
14687cat >>conftest.$ac_ext <<_ACEOF
14688/* end confdefs.h.  */
14689$ac_includes_default
14690#include <$ac_header>
14691_ACEOF
14692rm -f conftest.$ac_objext
14693if { (ac_try="$ac_compile"
14694case "(($ac_try" in
14695  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14696  *) ac_try_echo=$ac_try;;
14697esac
14698eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14699  (eval "$ac_compile") 2>conftest.er1
14700  ac_status=$?
14701  grep -v '^ *+' conftest.er1 >conftest.err
14702  rm -f conftest.er1
14703  cat conftest.err >&5
14704  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14705  (exit $ac_status); } &&
14706	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14707  { (case "(($ac_try" in
14708  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14709  *) ac_try_echo=$ac_try;;
14710esac
14711eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14712  (eval "$ac_try") 2>&5
14713  ac_status=$?
14714  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14715  (exit $ac_status); }; } &&
14716	 { ac_try='test -s conftest.$ac_objext'
14717  { (case "(($ac_try" in
14718  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14719  *) ac_try_echo=$ac_try;;
14720esac
14721eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14722  (eval "$ac_try") 2>&5
14723  ac_status=$?
14724  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14725  (exit $ac_status); }; }; then
14726  ac_header_compiler=yes
14727else
14728  echo "$as_me: failed program was:" >&5
14729sed 's/^/| /' conftest.$ac_ext >&5
14730
14731	ac_header_compiler=no
14732fi
14733
14734rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14735{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14736echo "${ECHO_T}$ac_header_compiler" >&6; }
14737
14738# Is the header present?
14739{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
14740echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14741cat >conftest.$ac_ext <<_ACEOF
14742/* confdefs.h.  */
14743_ACEOF
14744cat confdefs.h >>conftest.$ac_ext
14745cat >>conftest.$ac_ext <<_ACEOF
14746/* end confdefs.h.  */
14747#include <$ac_header>
14748_ACEOF
14749if { (ac_try="$ac_cpp conftest.$ac_ext"
14750case "(($ac_try" in
14751  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14752  *) ac_try_echo=$ac_try;;
14753esac
14754eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14755  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14756  ac_status=$?
14757  grep -v '^ *+' conftest.er1 >conftest.err
14758  rm -f conftest.er1
14759  cat conftest.err >&5
14760  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14761  (exit $ac_status); } >/dev/null; then
14762  if test -s conftest.err; then
14763    ac_cpp_err=$ac_c_preproc_warn_flag
14764    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14765  else
14766    ac_cpp_err=
14767  fi
14768else
14769  ac_cpp_err=yes
14770fi
14771if test -z "$ac_cpp_err"; then
14772  ac_header_preproc=yes
14773else
14774  echo "$as_me: failed program was:" >&5
14775sed 's/^/| /' conftest.$ac_ext >&5
14776
14777  ac_header_preproc=no
14778fi
14779
14780rm -f conftest.err conftest.$ac_ext
14781{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14782echo "${ECHO_T}$ac_header_preproc" >&6; }
14783
14784# So?  What about this header?
14785case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14786  yes:no: )
14787    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14788echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14789    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14790echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14791    ac_header_preproc=yes
14792    ;;
14793  no:yes:* )
14794    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14795echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14796    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14797echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14798    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14799echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14800    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14801echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14802    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14803echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14804    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14805echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14806    ( cat <<\_ASBOX
14807## ------------------------------------ ##
14808## Report this to http://llvm.org/bugs/ ##
14809## ------------------------------------ ##
14810_ASBOX
14811     ) | sed "s/^/$as_me: WARNING:     /" >&2
14812    ;;
14813esac
14814{ echo "$as_me:$LINENO: checking for $ac_header" >&5
14815echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14816if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14817  echo $ECHO_N "(cached) $ECHO_C" >&6
14818else
14819  eval "$as_ac_Header=\$ac_header_preproc"
14820fi
14821ac_res=`eval echo '${'$as_ac_Header'}'`
14822	       { echo "$as_me:$LINENO: result: $ac_res" >&5
14823echo "${ECHO_T}$ac_res" >&6; }
14824
14825fi
14826if test `eval echo '${'$as_ac_Header'}'` = yes; then
14827  cat >>confdefs.h <<_ACEOF
14828#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14829_ACEOF
14830
14831fi
14832
14833done
14834
14835
14836
14837
14838
14839
14840for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h sys/uio.h
14841do
14842as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14843if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14844  { echo "$as_me:$LINENO: checking for $ac_header" >&5
14845echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14846if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14847  echo $ECHO_N "(cached) $ECHO_C" >&6
14848fi
14849ac_res=`eval echo '${'$as_ac_Header'}'`
14850	       { echo "$as_me:$LINENO: result: $ac_res" >&5
14851echo "${ECHO_T}$ac_res" >&6; }
14852else
14853  # Is the header compilable?
14854{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
14855echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14856cat >conftest.$ac_ext <<_ACEOF
14857/* confdefs.h.  */
14858_ACEOF
14859cat confdefs.h >>conftest.$ac_ext
14860cat >>conftest.$ac_ext <<_ACEOF
14861/* end confdefs.h.  */
14862$ac_includes_default
14863#include <$ac_header>
14864_ACEOF
14865rm -f conftest.$ac_objext
14866if { (ac_try="$ac_compile"
14867case "(($ac_try" in
14868  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14869  *) ac_try_echo=$ac_try;;
14870esac
14871eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14872  (eval "$ac_compile") 2>conftest.er1
14873  ac_status=$?
14874  grep -v '^ *+' conftest.er1 >conftest.err
14875  rm -f conftest.er1
14876  cat conftest.err >&5
14877  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14878  (exit $ac_status); } &&
14879	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14880  { (case "(($ac_try" in
14881  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14882  *) ac_try_echo=$ac_try;;
14883esac
14884eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14885  (eval "$ac_try") 2>&5
14886  ac_status=$?
14887  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14888  (exit $ac_status); }; } &&
14889	 { ac_try='test -s conftest.$ac_objext'
14890  { (case "(($ac_try" in
14891  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14892  *) ac_try_echo=$ac_try;;
14893esac
14894eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14895  (eval "$ac_try") 2>&5
14896  ac_status=$?
14897  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14898  (exit $ac_status); }; }; then
14899  ac_header_compiler=yes
14900else
14901  echo "$as_me: failed program was:" >&5
14902sed 's/^/| /' conftest.$ac_ext >&5
14903
14904	ac_header_compiler=no
14905fi
14906
14907rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14908{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14909echo "${ECHO_T}$ac_header_compiler" >&6; }
14910
14911# Is the header present?
14912{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
14913echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14914cat >conftest.$ac_ext <<_ACEOF
14915/* confdefs.h.  */
14916_ACEOF
14917cat confdefs.h >>conftest.$ac_ext
14918cat >>conftest.$ac_ext <<_ACEOF
14919/* end confdefs.h.  */
14920#include <$ac_header>
14921_ACEOF
14922if { (ac_try="$ac_cpp conftest.$ac_ext"
14923case "(($ac_try" in
14924  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14925  *) ac_try_echo=$ac_try;;
14926esac
14927eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14928  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14929  ac_status=$?
14930  grep -v '^ *+' conftest.er1 >conftest.err
14931  rm -f conftest.er1
14932  cat conftest.err >&5
14933  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14934  (exit $ac_status); } >/dev/null; then
14935  if test -s conftest.err; then
14936    ac_cpp_err=$ac_c_preproc_warn_flag
14937    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14938  else
14939    ac_cpp_err=
14940  fi
14941else
14942  ac_cpp_err=yes
14943fi
14944if test -z "$ac_cpp_err"; then
14945  ac_header_preproc=yes
14946else
14947  echo "$as_me: failed program was:" >&5
14948sed 's/^/| /' conftest.$ac_ext >&5
14949
14950  ac_header_preproc=no
14951fi
14952
14953rm -f conftest.err conftest.$ac_ext
14954{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14955echo "${ECHO_T}$ac_header_preproc" >&6; }
14956
14957# So?  What about this header?
14958case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14959  yes:no: )
14960    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14961echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14962    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14963echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14964    ac_header_preproc=yes
14965    ;;
14966  no:yes:* )
14967    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14968echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14969    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14970echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14971    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14972echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14973    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14974echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14975    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14976echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14977    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14978echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14979    ( cat <<\_ASBOX
14980## ------------------------------------ ##
14981## Report this to http://llvm.org/bugs/ ##
14982## ------------------------------------ ##
14983_ASBOX
14984     ) | sed "s/^/$as_me: WARNING:     /" >&2
14985    ;;
14986esac
14987{ echo "$as_me:$LINENO: checking for $ac_header" >&5
14988echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14989if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14990  echo $ECHO_N "(cached) $ECHO_C" >&6
14991else
14992  eval "$as_ac_Header=\$ac_header_preproc"
14993fi
14994ac_res=`eval echo '${'$as_ac_Header'}'`
14995	       { echo "$as_me:$LINENO: result: $ac_res" >&5
14996echo "${ECHO_T}$ac_res" >&6; }
14997
14998fi
14999if test `eval echo '${'$as_ac_Header'}'` = yes; then
15000  cat >>confdefs.h <<_ACEOF
15001#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15002_ACEOF
15003
15004fi
15005
15006done
15007
15008
15009
15010
15011
15012for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h
15013do
15014as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15015if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15016  { echo "$as_me:$LINENO: checking for $ac_header" >&5
15017echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15018if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15019  echo $ECHO_N "(cached) $ECHO_C" >&6
15020fi
15021ac_res=`eval echo '${'$as_ac_Header'}'`
15022	       { echo "$as_me:$LINENO: result: $ac_res" >&5
15023echo "${ECHO_T}$ac_res" >&6; }
15024else
15025  # Is the header compilable?
15026{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15027echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15028cat >conftest.$ac_ext <<_ACEOF
15029/* confdefs.h.  */
15030_ACEOF
15031cat confdefs.h >>conftest.$ac_ext
15032cat >>conftest.$ac_ext <<_ACEOF
15033/* end confdefs.h.  */
15034$ac_includes_default
15035#include <$ac_header>
15036_ACEOF
15037rm -f conftest.$ac_objext
15038if { (ac_try="$ac_compile"
15039case "(($ac_try" in
15040  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15041  *) ac_try_echo=$ac_try;;
15042esac
15043eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15044  (eval "$ac_compile") 2>conftest.er1
15045  ac_status=$?
15046  grep -v '^ *+' conftest.er1 >conftest.err
15047  rm -f conftest.er1
15048  cat conftest.err >&5
15049  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15050  (exit $ac_status); } &&
15051	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15052  { (case "(($ac_try" in
15053  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15054  *) ac_try_echo=$ac_try;;
15055esac
15056eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15057  (eval "$ac_try") 2>&5
15058  ac_status=$?
15059  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15060  (exit $ac_status); }; } &&
15061	 { ac_try='test -s conftest.$ac_objext'
15062  { (case "(($ac_try" in
15063  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15064  *) ac_try_echo=$ac_try;;
15065esac
15066eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15067  (eval "$ac_try") 2>&5
15068  ac_status=$?
15069  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15070  (exit $ac_status); }; }; then
15071  ac_header_compiler=yes
15072else
15073  echo "$as_me: failed program was:" >&5
15074sed 's/^/| /' conftest.$ac_ext >&5
15075
15076	ac_header_compiler=no
15077fi
15078
15079rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15080{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15081echo "${ECHO_T}$ac_header_compiler" >&6; }
15082
15083# Is the header present?
15084{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15085echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15086cat >conftest.$ac_ext <<_ACEOF
15087/* confdefs.h.  */
15088_ACEOF
15089cat confdefs.h >>conftest.$ac_ext
15090cat >>conftest.$ac_ext <<_ACEOF
15091/* end confdefs.h.  */
15092#include <$ac_header>
15093_ACEOF
15094if { (ac_try="$ac_cpp conftest.$ac_ext"
15095case "(($ac_try" in
15096  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15097  *) ac_try_echo=$ac_try;;
15098esac
15099eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15100  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15101  ac_status=$?
15102  grep -v '^ *+' conftest.er1 >conftest.err
15103  rm -f conftest.er1
15104  cat conftest.err >&5
15105  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15106  (exit $ac_status); } >/dev/null; then
15107  if test -s conftest.err; then
15108    ac_cpp_err=$ac_c_preproc_warn_flag
15109    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15110  else
15111    ac_cpp_err=
15112  fi
15113else
15114  ac_cpp_err=yes
15115fi
15116if test -z "$ac_cpp_err"; then
15117  ac_header_preproc=yes
15118else
15119  echo "$as_me: failed program was:" >&5
15120sed 's/^/| /' conftest.$ac_ext >&5
15121
15122  ac_header_preproc=no
15123fi
15124
15125rm -f conftest.err conftest.$ac_ext
15126{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15127echo "${ECHO_T}$ac_header_preproc" >&6; }
15128
15129# So?  What about this header?
15130case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15131  yes:no: )
15132    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15133echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15134    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15135echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15136    ac_header_preproc=yes
15137    ;;
15138  no:yes:* )
15139    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15140echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15141    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15142echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15143    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15144echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15145    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15146echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15147    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15148echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15149    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15150echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15151    ( cat <<\_ASBOX
15152## ------------------------------------ ##
15153## Report this to http://llvm.org/bugs/ ##
15154## ------------------------------------ ##
15155_ASBOX
15156     ) | sed "s/^/$as_me: WARNING:     /" >&2
15157    ;;
15158esac
15159{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15160echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15161if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15162  echo $ECHO_N "(cached) $ECHO_C" >&6
15163else
15164  eval "$as_ac_Header=\$ac_header_preproc"
15165fi
15166ac_res=`eval echo '${'$as_ac_Header'}'`
15167	       { echo "$as_me:$LINENO: result: $ac_res" >&5
15168echo "${ECHO_T}$ac_res" >&6; }
15169
15170fi
15171if test `eval echo '${'$as_ac_Header'}'` = yes; then
15172  cat >>confdefs.h <<_ACEOF
15173#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15174_ACEOF
15175
15176fi
15177
15178done
15179
15180
15181for ac_header in valgrind/valgrind.h
15182do
15183as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15184if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15185  { echo "$as_me:$LINENO: checking for $ac_header" >&5
15186echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15187if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15188  echo $ECHO_N "(cached) $ECHO_C" >&6
15189fi
15190ac_res=`eval echo '${'$as_ac_Header'}'`
15191	       { echo "$as_me:$LINENO: result: $ac_res" >&5
15192echo "${ECHO_T}$ac_res" >&6; }
15193else
15194  # Is the header compilable?
15195{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15196echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15197cat >conftest.$ac_ext <<_ACEOF
15198/* confdefs.h.  */
15199_ACEOF
15200cat confdefs.h >>conftest.$ac_ext
15201cat >>conftest.$ac_ext <<_ACEOF
15202/* end confdefs.h.  */
15203$ac_includes_default
15204#include <$ac_header>
15205_ACEOF
15206rm -f conftest.$ac_objext
15207if { (ac_try="$ac_compile"
15208case "(($ac_try" in
15209  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15210  *) ac_try_echo=$ac_try;;
15211esac
15212eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15213  (eval "$ac_compile") 2>conftest.er1
15214  ac_status=$?
15215  grep -v '^ *+' conftest.er1 >conftest.err
15216  rm -f conftest.er1
15217  cat conftest.err >&5
15218  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15219  (exit $ac_status); } &&
15220	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15221  { (case "(($ac_try" in
15222  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15223  *) ac_try_echo=$ac_try;;
15224esac
15225eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15226  (eval "$ac_try") 2>&5
15227  ac_status=$?
15228  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15229  (exit $ac_status); }; } &&
15230	 { ac_try='test -s conftest.$ac_objext'
15231  { (case "(($ac_try" in
15232  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15233  *) ac_try_echo=$ac_try;;
15234esac
15235eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15236  (eval "$ac_try") 2>&5
15237  ac_status=$?
15238  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15239  (exit $ac_status); }; }; then
15240  ac_header_compiler=yes
15241else
15242  echo "$as_me: failed program was:" >&5
15243sed 's/^/| /' conftest.$ac_ext >&5
15244
15245	ac_header_compiler=no
15246fi
15247
15248rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15249{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15250echo "${ECHO_T}$ac_header_compiler" >&6; }
15251
15252# Is the header present?
15253{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15254echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15255cat >conftest.$ac_ext <<_ACEOF
15256/* confdefs.h.  */
15257_ACEOF
15258cat confdefs.h >>conftest.$ac_ext
15259cat >>conftest.$ac_ext <<_ACEOF
15260/* end confdefs.h.  */
15261#include <$ac_header>
15262_ACEOF
15263if { (ac_try="$ac_cpp conftest.$ac_ext"
15264case "(($ac_try" in
15265  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15266  *) ac_try_echo=$ac_try;;
15267esac
15268eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15269  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15270  ac_status=$?
15271  grep -v '^ *+' conftest.er1 >conftest.err
15272  rm -f conftest.er1
15273  cat conftest.err >&5
15274  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15275  (exit $ac_status); } >/dev/null; then
15276  if test -s conftest.err; then
15277    ac_cpp_err=$ac_c_preproc_warn_flag
15278    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15279  else
15280    ac_cpp_err=
15281  fi
15282else
15283  ac_cpp_err=yes
15284fi
15285if test -z "$ac_cpp_err"; then
15286  ac_header_preproc=yes
15287else
15288  echo "$as_me: failed program was:" >&5
15289sed 's/^/| /' conftest.$ac_ext >&5
15290
15291  ac_header_preproc=no
15292fi
15293
15294rm -f conftest.err conftest.$ac_ext
15295{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15296echo "${ECHO_T}$ac_header_preproc" >&6; }
15297
15298# So?  What about this header?
15299case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15300  yes:no: )
15301    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15302echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15303    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15304echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15305    ac_header_preproc=yes
15306    ;;
15307  no:yes:* )
15308    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15309echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15310    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15311echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15312    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15313echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15314    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15315echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15316    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15317echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15318    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15319echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15320    ( cat <<\_ASBOX
15321## ------------------------------------ ##
15322## Report this to http://llvm.org/bugs/ ##
15323## ------------------------------------ ##
15324_ASBOX
15325     ) | sed "s/^/$as_me: WARNING:     /" >&2
15326    ;;
15327esac
15328{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15329echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15330if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15331  echo $ECHO_N "(cached) $ECHO_C" >&6
15332else
15333  eval "$as_ac_Header=\$ac_header_preproc"
15334fi
15335ac_res=`eval echo '${'$as_ac_Header'}'`
15336	       { echo "$as_me:$LINENO: result: $ac_res" >&5
15337echo "${ECHO_T}$ac_res" >&6; }
15338
15339fi
15340if test `eval echo '${'$as_ac_Header'}'` = yes; then
15341  cat >>confdefs.h <<_ACEOF
15342#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15343_ACEOF
15344
15345fi
15346
15347done
15348
15349
15350for ac_header in fenv.h
15351do
15352as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15353if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15354  { echo "$as_me:$LINENO: checking for $ac_header" >&5
15355echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15356if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15357  echo $ECHO_N "(cached) $ECHO_C" >&6
15358fi
15359ac_res=`eval echo '${'$as_ac_Header'}'`
15360	       { echo "$as_me:$LINENO: result: $ac_res" >&5
15361echo "${ECHO_T}$ac_res" >&6; }
15362else
15363  # Is the header compilable?
15364{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15365echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15366cat >conftest.$ac_ext <<_ACEOF
15367/* confdefs.h.  */
15368_ACEOF
15369cat confdefs.h >>conftest.$ac_ext
15370cat >>conftest.$ac_ext <<_ACEOF
15371/* end confdefs.h.  */
15372$ac_includes_default
15373#include <$ac_header>
15374_ACEOF
15375rm -f conftest.$ac_objext
15376if { (ac_try="$ac_compile"
15377case "(($ac_try" in
15378  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15379  *) ac_try_echo=$ac_try;;
15380esac
15381eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15382  (eval "$ac_compile") 2>conftest.er1
15383  ac_status=$?
15384  grep -v '^ *+' conftest.er1 >conftest.err
15385  rm -f conftest.er1
15386  cat conftest.err >&5
15387  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15388  (exit $ac_status); } &&
15389	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15390  { (case "(($ac_try" in
15391  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15392  *) ac_try_echo=$ac_try;;
15393esac
15394eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15395  (eval "$ac_try") 2>&5
15396  ac_status=$?
15397  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15398  (exit $ac_status); }; } &&
15399	 { ac_try='test -s conftest.$ac_objext'
15400  { (case "(($ac_try" in
15401  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15402  *) ac_try_echo=$ac_try;;
15403esac
15404eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15405  (eval "$ac_try") 2>&5
15406  ac_status=$?
15407  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15408  (exit $ac_status); }; }; then
15409  ac_header_compiler=yes
15410else
15411  echo "$as_me: failed program was:" >&5
15412sed 's/^/| /' conftest.$ac_ext >&5
15413
15414	ac_header_compiler=no
15415fi
15416
15417rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15418{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15419echo "${ECHO_T}$ac_header_compiler" >&6; }
15420
15421# Is the header present?
15422{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15423echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15424cat >conftest.$ac_ext <<_ACEOF
15425/* confdefs.h.  */
15426_ACEOF
15427cat confdefs.h >>conftest.$ac_ext
15428cat >>conftest.$ac_ext <<_ACEOF
15429/* end confdefs.h.  */
15430#include <$ac_header>
15431_ACEOF
15432if { (ac_try="$ac_cpp conftest.$ac_ext"
15433case "(($ac_try" in
15434  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15435  *) ac_try_echo=$ac_try;;
15436esac
15437eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15438  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15439  ac_status=$?
15440  grep -v '^ *+' conftest.er1 >conftest.err
15441  rm -f conftest.er1
15442  cat conftest.err >&5
15443  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15444  (exit $ac_status); } >/dev/null; then
15445  if test -s conftest.err; then
15446    ac_cpp_err=$ac_c_preproc_warn_flag
15447    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15448  else
15449    ac_cpp_err=
15450  fi
15451else
15452  ac_cpp_err=yes
15453fi
15454if test -z "$ac_cpp_err"; then
15455  ac_header_preproc=yes
15456else
15457  echo "$as_me: failed program was:" >&5
15458sed 's/^/| /' conftest.$ac_ext >&5
15459
15460  ac_header_preproc=no
15461fi
15462
15463rm -f conftest.err conftest.$ac_ext
15464{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15465echo "${ECHO_T}$ac_header_preproc" >&6; }
15466
15467# So?  What about this header?
15468case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15469  yes:no: )
15470    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15471echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15472    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15473echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15474    ac_header_preproc=yes
15475    ;;
15476  no:yes:* )
15477    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15478echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15479    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15480echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15481    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15482echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15483    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15484echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15485    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15486echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15487    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15488echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15489    ( cat <<\_ASBOX
15490## ------------------------------------ ##
15491## Report this to http://llvm.org/bugs/ ##
15492## ------------------------------------ ##
15493_ASBOX
15494     ) | sed "s/^/$as_me: WARNING:     /" >&2
15495    ;;
15496esac
15497{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15498echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15499if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15500  echo $ECHO_N "(cached) $ECHO_C" >&6
15501else
15502  eval "$as_ac_Header=\$ac_header_preproc"
15503fi
15504ac_res=`eval echo '${'$as_ac_Header'}'`
15505	       { echo "$as_me:$LINENO: result: $ac_res" >&5
15506echo "${ECHO_T}$ac_res" >&6; }
15507
15508fi
15509if test `eval echo '${'$as_ac_Header'}'` = yes; then
15510  cat >>confdefs.h <<_ACEOF
15511#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15512_ACEOF
15513
15514fi
15515
15516done
15517
15518if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
15519
15520for ac_header in pthread.h
15521do
15522as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15523if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15524  { echo "$as_me:$LINENO: checking for $ac_header" >&5
15525echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15526if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15527  echo $ECHO_N "(cached) $ECHO_C" >&6
15528fi
15529ac_res=`eval echo '${'$as_ac_Header'}'`
15530	       { echo "$as_me:$LINENO: result: $ac_res" >&5
15531echo "${ECHO_T}$ac_res" >&6; }
15532else
15533  # Is the header compilable?
15534{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15535echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15536cat >conftest.$ac_ext <<_ACEOF
15537/* confdefs.h.  */
15538_ACEOF
15539cat confdefs.h >>conftest.$ac_ext
15540cat >>conftest.$ac_ext <<_ACEOF
15541/* end confdefs.h.  */
15542$ac_includes_default
15543#include <$ac_header>
15544_ACEOF
15545rm -f conftest.$ac_objext
15546if { (ac_try="$ac_compile"
15547case "(($ac_try" in
15548  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15549  *) ac_try_echo=$ac_try;;
15550esac
15551eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15552  (eval "$ac_compile") 2>conftest.er1
15553  ac_status=$?
15554  grep -v '^ *+' conftest.er1 >conftest.err
15555  rm -f conftest.er1
15556  cat conftest.err >&5
15557  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15558  (exit $ac_status); } &&
15559	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15560  { (case "(($ac_try" in
15561  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15562  *) ac_try_echo=$ac_try;;
15563esac
15564eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15565  (eval "$ac_try") 2>&5
15566  ac_status=$?
15567  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15568  (exit $ac_status); }; } &&
15569	 { ac_try='test -s conftest.$ac_objext'
15570  { (case "(($ac_try" in
15571  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15572  *) ac_try_echo=$ac_try;;
15573esac
15574eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15575  (eval "$ac_try") 2>&5
15576  ac_status=$?
15577  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15578  (exit $ac_status); }; }; then
15579  ac_header_compiler=yes
15580else
15581  echo "$as_me: failed program was:" >&5
15582sed 's/^/| /' conftest.$ac_ext >&5
15583
15584	ac_header_compiler=no
15585fi
15586
15587rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15588{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15589echo "${ECHO_T}$ac_header_compiler" >&6; }
15590
15591# Is the header present?
15592{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15593echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15594cat >conftest.$ac_ext <<_ACEOF
15595/* confdefs.h.  */
15596_ACEOF
15597cat confdefs.h >>conftest.$ac_ext
15598cat >>conftest.$ac_ext <<_ACEOF
15599/* end confdefs.h.  */
15600#include <$ac_header>
15601_ACEOF
15602if { (ac_try="$ac_cpp conftest.$ac_ext"
15603case "(($ac_try" in
15604  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15605  *) ac_try_echo=$ac_try;;
15606esac
15607eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15608  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15609  ac_status=$?
15610  grep -v '^ *+' conftest.er1 >conftest.err
15611  rm -f conftest.er1
15612  cat conftest.err >&5
15613  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15614  (exit $ac_status); } >/dev/null; then
15615  if test -s conftest.err; then
15616    ac_cpp_err=$ac_c_preproc_warn_flag
15617    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15618  else
15619    ac_cpp_err=
15620  fi
15621else
15622  ac_cpp_err=yes
15623fi
15624if test -z "$ac_cpp_err"; then
15625  ac_header_preproc=yes
15626else
15627  echo "$as_me: failed program was:" >&5
15628sed 's/^/| /' conftest.$ac_ext >&5
15629
15630  ac_header_preproc=no
15631fi
15632
15633rm -f conftest.err conftest.$ac_ext
15634{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15635echo "${ECHO_T}$ac_header_preproc" >&6; }
15636
15637# So?  What about this header?
15638case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15639  yes:no: )
15640    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15641echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15642    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15643echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15644    ac_header_preproc=yes
15645    ;;
15646  no:yes:* )
15647    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15648echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15649    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15650echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15651    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15652echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15653    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15654echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15655    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15656echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15657    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15658echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15659    ( cat <<\_ASBOX
15660## ------------------------------------ ##
15661## Report this to http://llvm.org/bugs/ ##
15662## ------------------------------------ ##
15663_ASBOX
15664     ) | sed "s/^/$as_me: WARNING:     /" >&2
15665    ;;
15666esac
15667{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15668echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15669if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15670  echo $ECHO_N "(cached) $ECHO_C" >&6
15671else
15672  eval "$as_ac_Header=\$ac_header_preproc"
15673fi
15674ac_res=`eval echo '${'$as_ac_Header'}'`
15675	       { echo "$as_me:$LINENO: result: $ac_res" >&5
15676echo "${ECHO_T}$ac_res" >&6; }
15677
15678fi
15679if test `eval echo '${'$as_ac_Header'}'` = yes; then
15680  cat >>confdefs.h <<_ACEOF
15681#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15682_ACEOF
15683 HAVE_PTHREAD=1
15684
15685else
15686  HAVE_PTHREAD=0
15687
15688fi
15689
15690done
15691
15692else
15693  HAVE_PTHREAD=0
15694
15695fi
15696
15697if test "$llvm_cv_enable_libffi" = "yes" ; then
15698
15699
15700for ac_header in ffi.h ffi/ffi.h
15701do
15702as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15703if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15704  { echo "$as_me:$LINENO: checking for $ac_header" >&5
15705echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15706if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15707  echo $ECHO_N "(cached) $ECHO_C" >&6
15708fi
15709ac_res=`eval echo '${'$as_ac_Header'}'`
15710	       { echo "$as_me:$LINENO: result: $ac_res" >&5
15711echo "${ECHO_T}$ac_res" >&6; }
15712else
15713  # Is the header compilable?
15714{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15715echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15716cat >conftest.$ac_ext <<_ACEOF
15717/* confdefs.h.  */
15718_ACEOF
15719cat confdefs.h >>conftest.$ac_ext
15720cat >>conftest.$ac_ext <<_ACEOF
15721/* end confdefs.h.  */
15722$ac_includes_default
15723#include <$ac_header>
15724_ACEOF
15725rm -f conftest.$ac_objext
15726if { (ac_try="$ac_compile"
15727case "(($ac_try" in
15728  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15729  *) ac_try_echo=$ac_try;;
15730esac
15731eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15732  (eval "$ac_compile") 2>conftest.er1
15733  ac_status=$?
15734  grep -v '^ *+' conftest.er1 >conftest.err
15735  rm -f conftest.er1
15736  cat conftest.err >&5
15737  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15738  (exit $ac_status); } &&
15739	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15740  { (case "(($ac_try" in
15741  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15742  *) ac_try_echo=$ac_try;;
15743esac
15744eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15745  (eval "$ac_try") 2>&5
15746  ac_status=$?
15747  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15748  (exit $ac_status); }; } &&
15749	 { ac_try='test -s conftest.$ac_objext'
15750  { (case "(($ac_try" in
15751  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15752  *) ac_try_echo=$ac_try;;
15753esac
15754eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15755  (eval "$ac_try") 2>&5
15756  ac_status=$?
15757  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15758  (exit $ac_status); }; }; then
15759  ac_header_compiler=yes
15760else
15761  echo "$as_me: failed program was:" >&5
15762sed 's/^/| /' conftest.$ac_ext >&5
15763
15764	ac_header_compiler=no
15765fi
15766
15767rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15768{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15769echo "${ECHO_T}$ac_header_compiler" >&6; }
15770
15771# Is the header present?
15772{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15773echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15774cat >conftest.$ac_ext <<_ACEOF
15775/* confdefs.h.  */
15776_ACEOF
15777cat confdefs.h >>conftest.$ac_ext
15778cat >>conftest.$ac_ext <<_ACEOF
15779/* end confdefs.h.  */
15780#include <$ac_header>
15781_ACEOF
15782if { (ac_try="$ac_cpp conftest.$ac_ext"
15783case "(($ac_try" in
15784  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15785  *) ac_try_echo=$ac_try;;
15786esac
15787eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15788  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15789  ac_status=$?
15790  grep -v '^ *+' conftest.er1 >conftest.err
15791  rm -f conftest.er1
15792  cat conftest.err >&5
15793  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15794  (exit $ac_status); } >/dev/null; then
15795  if test -s conftest.err; then
15796    ac_cpp_err=$ac_c_preproc_warn_flag
15797    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15798  else
15799    ac_cpp_err=
15800  fi
15801else
15802  ac_cpp_err=yes
15803fi
15804if test -z "$ac_cpp_err"; then
15805  ac_header_preproc=yes
15806else
15807  echo "$as_me: failed program was:" >&5
15808sed 's/^/| /' conftest.$ac_ext >&5
15809
15810  ac_header_preproc=no
15811fi
15812
15813rm -f conftest.err conftest.$ac_ext
15814{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15815echo "${ECHO_T}$ac_header_preproc" >&6; }
15816
15817# So?  What about this header?
15818case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15819  yes:no: )
15820    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15821echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15822    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15823echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15824    ac_header_preproc=yes
15825    ;;
15826  no:yes:* )
15827    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15828echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15829    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15830echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15831    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15832echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15833    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15834echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15835    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15836echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15837    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15838echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15839    ( cat <<\_ASBOX
15840## ------------------------------------ ##
15841## Report this to http://llvm.org/bugs/ ##
15842## ------------------------------------ ##
15843_ASBOX
15844     ) | sed "s/^/$as_me: WARNING:     /" >&2
15845    ;;
15846esac
15847{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15848echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15849if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15850  echo $ECHO_N "(cached) $ECHO_C" >&6
15851else
15852  eval "$as_ac_Header=\$ac_header_preproc"
15853fi
15854ac_res=`eval echo '${'$as_ac_Header'}'`
15855	       { echo "$as_me:$LINENO: result: $ac_res" >&5
15856echo "${ECHO_T}$ac_res" >&6; }
15857
15858fi
15859if test `eval echo '${'$as_ac_Header'}'` = yes; then
15860  cat >>confdefs.h <<_ACEOF
15861#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15862_ACEOF
15863
15864fi
15865
15866done
15867
15868fi
15869
15870
15871for ac_header in CrashReporterClient.h
15872do
15873as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15874if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15875  { echo "$as_me:$LINENO: checking for $ac_header" >&5
15876echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15877if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15878  echo $ECHO_N "(cached) $ECHO_C" >&6
15879fi
15880ac_res=`eval echo '${'$as_ac_Header'}'`
15881	       { echo "$as_me:$LINENO: result: $ac_res" >&5
15882echo "${ECHO_T}$ac_res" >&6; }
15883else
15884  # Is the header compilable?
15885{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15886echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15887cat >conftest.$ac_ext <<_ACEOF
15888/* confdefs.h.  */
15889_ACEOF
15890cat confdefs.h >>conftest.$ac_ext
15891cat >>conftest.$ac_ext <<_ACEOF
15892/* end confdefs.h.  */
15893$ac_includes_default
15894#include <$ac_header>
15895_ACEOF
15896rm -f conftest.$ac_objext
15897if { (ac_try="$ac_compile"
15898case "(($ac_try" in
15899  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15900  *) ac_try_echo=$ac_try;;
15901esac
15902eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15903  (eval "$ac_compile") 2>conftest.er1
15904  ac_status=$?
15905  grep -v '^ *+' conftest.er1 >conftest.err
15906  rm -f conftest.er1
15907  cat conftest.err >&5
15908  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15909  (exit $ac_status); } &&
15910	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15911  { (case "(($ac_try" in
15912  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15913  *) ac_try_echo=$ac_try;;
15914esac
15915eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15916  (eval "$ac_try") 2>&5
15917  ac_status=$?
15918  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15919  (exit $ac_status); }; } &&
15920	 { ac_try='test -s conftest.$ac_objext'
15921  { (case "(($ac_try" in
15922  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15923  *) ac_try_echo=$ac_try;;
15924esac
15925eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15926  (eval "$ac_try") 2>&5
15927  ac_status=$?
15928  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15929  (exit $ac_status); }; }; then
15930  ac_header_compiler=yes
15931else
15932  echo "$as_me: failed program was:" >&5
15933sed 's/^/| /' conftest.$ac_ext >&5
15934
15935	ac_header_compiler=no
15936fi
15937
15938rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15939{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15940echo "${ECHO_T}$ac_header_compiler" >&6; }
15941
15942# Is the header present?
15943{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15944echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15945cat >conftest.$ac_ext <<_ACEOF
15946/* confdefs.h.  */
15947_ACEOF
15948cat confdefs.h >>conftest.$ac_ext
15949cat >>conftest.$ac_ext <<_ACEOF
15950/* end confdefs.h.  */
15951#include <$ac_header>
15952_ACEOF
15953if { (ac_try="$ac_cpp conftest.$ac_ext"
15954case "(($ac_try" in
15955  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15956  *) ac_try_echo=$ac_try;;
15957esac
15958eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15959  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15960  ac_status=$?
15961  grep -v '^ *+' conftest.er1 >conftest.err
15962  rm -f conftest.er1
15963  cat conftest.err >&5
15964  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15965  (exit $ac_status); } >/dev/null; then
15966  if test -s conftest.err; then
15967    ac_cpp_err=$ac_c_preproc_warn_flag
15968    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15969  else
15970    ac_cpp_err=
15971  fi
15972else
15973  ac_cpp_err=yes
15974fi
15975if test -z "$ac_cpp_err"; then
15976  ac_header_preproc=yes
15977else
15978  echo "$as_me: failed program was:" >&5
15979sed 's/^/| /' conftest.$ac_ext >&5
15980
15981  ac_header_preproc=no
15982fi
15983
15984rm -f conftest.err conftest.$ac_ext
15985{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15986echo "${ECHO_T}$ac_header_preproc" >&6; }
15987
15988# So?  What about this header?
15989case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15990  yes:no: )
15991    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15992echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15993    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15994echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15995    ac_header_preproc=yes
15996    ;;
15997  no:yes:* )
15998    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15999echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16000    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16001echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16002    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16003echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16004    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16005echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16006    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16007echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16008    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16009echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16010    ( cat <<\_ASBOX
16011## ------------------------------------ ##
16012## Report this to http://llvm.org/bugs/ ##
16013## ------------------------------------ ##
16014_ASBOX
16015     ) | sed "s/^/$as_me: WARNING:     /" >&2
16016    ;;
16017esac
16018{ echo "$as_me:$LINENO: checking for $ac_header" >&5
16019echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16020if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16021  echo $ECHO_N "(cached) $ECHO_C" >&6
16022else
16023  eval "$as_ac_Header=\$ac_header_preproc"
16024fi
16025ac_res=`eval echo '${'$as_ac_Header'}'`
16026	       { echo "$as_me:$LINENO: result: $ac_res" >&5
16027echo "${ECHO_T}$ac_res" >&6; }
16028
16029fi
16030if test `eval echo '${'$as_ac_Header'}'` = yes; then
16031  cat >>confdefs.h <<_ACEOF
16032#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16033_ACEOF
16034
16035fi
16036
16037done
16038
16039
16040{ echo "$as_me:$LINENO: checking __crashreporter_info__" >&5
16041echo $ECHO_N "checking __crashreporter_info__... $ECHO_C" >&6; }
16042cat >conftest.$ac_ext <<_ACEOF
16043/* confdefs.h.  */
16044_ACEOF
16045cat confdefs.h >>conftest.$ac_ext
16046cat >>conftest.$ac_ext <<_ACEOF
16047/* end confdefs.h.  */
16048extern const char *__crashreporter_info__;
16049      int main() {
16050        __crashreporter_info__ = "test";
16051        return 0;
16052      }
16053
16054_ACEOF
16055rm -f conftest.$ac_objext conftest$ac_exeext
16056if { (ac_try="$ac_link"
16057case "(($ac_try" in
16058  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16059  *) ac_try_echo=$ac_try;;
16060esac
16061eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16062  (eval "$ac_link") 2>conftest.er1
16063  ac_status=$?
16064  grep -v '^ *+' conftest.er1 >conftest.err
16065  rm -f conftest.er1
16066  cat conftest.err >&5
16067  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16068  (exit $ac_status); } &&
16069	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16070  { (case "(($ac_try" in
16071  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16072  *) ac_try_echo=$ac_try;;
16073esac
16074eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16075  (eval "$ac_try") 2>&5
16076  ac_status=$?
16077  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16078  (exit $ac_status); }; } &&
16079	 { ac_try='test -s conftest$ac_exeext'
16080  { (case "(($ac_try" in
16081  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16082  *) ac_try_echo=$ac_try;;
16083esac
16084eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16085  (eval "$ac_try") 2>&5
16086  ac_status=$?
16087  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16088  (exit $ac_status); }; }; then
16089  { echo "$as_me:$LINENO: result: yes" >&5
16090echo "${ECHO_T}yes" >&6; }
16091
16092cat >>confdefs.h <<\_ACEOF
16093#define HAVE_CRASHREPORTER_INFO 1
16094_ACEOF
16095
16096else
16097  echo "$as_me: failed program was:" >&5
16098sed 's/^/| /' conftest.$ac_ext >&5
16099
16100	{ echo "$as_me:$LINENO: result: no" >&5
16101echo "${ECHO_T}no" >&6; }
16102
16103cat >>confdefs.h <<\_ACEOF
16104#define HAVE_CRASHREPORTER_INFO 0
16105_ACEOF
16106
16107fi
16108
16109rm -f core conftest.err conftest.$ac_objext \
16110      conftest$ac_exeext conftest.$ac_ext
16111
16112
16113
16114
16115  { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
16116echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
16117if test "${ac_cv_huge_val_sanity+set}" = set; then
16118  echo $ECHO_N "(cached) $ECHO_C" >&6
16119else
16120
16121    ac_ext=cpp
16122ac_cpp='$CXXCPP $CPPFLAGS'
16123ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16124ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16125ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16126
16127    ac_save_CXXFLAGS=$CXXFLAGS
16128    CXXFLAGS=-pedantic
16129    if test "$cross_compiling" = yes; then
16130  ac_cv_huge_val_sanity=yes
16131else
16132  cat >conftest.$ac_ext <<_ACEOF
16133/* confdefs.h.  */
16134_ACEOF
16135cat confdefs.h >>conftest.$ac_ext
16136cat >>conftest.$ac_ext <<_ACEOF
16137/* end confdefs.h.  */
16138#include <math.h>
16139int
16140main ()
16141{
16142double x = HUGE_VAL; return x != x;
16143  ;
16144  return 0;
16145}
16146_ACEOF
16147rm -f conftest$ac_exeext
16148if { (ac_try="$ac_link"
16149case "(($ac_try" in
16150  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16151  *) ac_try_echo=$ac_try;;
16152esac
16153eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16154  (eval "$ac_link") 2>&5
16155  ac_status=$?
16156  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16157  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16158  { (case "(($ac_try" in
16159  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16160  *) ac_try_echo=$ac_try;;
16161esac
16162eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16163  (eval "$ac_try") 2>&5
16164  ac_status=$?
16165  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16166  (exit $ac_status); }; }; then
16167  ac_cv_huge_val_sanity=yes
16168else
16169  echo "$as_me: program exited with status $ac_status" >&5
16170echo "$as_me: failed program was:" >&5
16171sed 's/^/| /' conftest.$ac_ext >&5
16172
16173( exit $ac_status )
16174ac_cv_huge_val_sanity=no
16175fi
16176rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16177fi
16178
16179
16180    CXXFLAGS=$ac_save_CXXFLAGS
16181    ac_ext=c
16182ac_cpp='$CPP $CPPFLAGS'
16183ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16184ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16185ac_compiler_gnu=$ac_cv_c_compiler_gnu
16186
16187
16188fi
16189{ echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
16190echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
16191  HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
16192
16193
16194{ echo "$as_me:$LINENO: checking for pid_t" >&5
16195echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
16196if test "${ac_cv_type_pid_t+set}" = set; then
16197  echo $ECHO_N "(cached) $ECHO_C" >&6
16198else
16199  cat >conftest.$ac_ext <<_ACEOF
16200/* confdefs.h.  */
16201_ACEOF
16202cat confdefs.h >>conftest.$ac_ext
16203cat >>conftest.$ac_ext <<_ACEOF
16204/* end confdefs.h.  */
16205$ac_includes_default
16206typedef pid_t ac__type_new_;
16207int
16208main ()
16209{
16210if ((ac__type_new_ *) 0)
16211  return 0;
16212if (sizeof (ac__type_new_))
16213  return 0;
16214  ;
16215  return 0;
16216}
16217_ACEOF
16218rm -f conftest.$ac_objext
16219if { (ac_try="$ac_compile"
16220case "(($ac_try" in
16221  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16222  *) ac_try_echo=$ac_try;;
16223esac
16224eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16225  (eval "$ac_compile") 2>conftest.er1
16226  ac_status=$?
16227  grep -v '^ *+' conftest.er1 >conftest.err
16228  rm -f conftest.er1
16229  cat conftest.err >&5
16230  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16231  (exit $ac_status); } &&
16232	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16233  { (case "(($ac_try" in
16234  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16235  *) ac_try_echo=$ac_try;;
16236esac
16237eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16238  (eval "$ac_try") 2>&5
16239  ac_status=$?
16240  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16241  (exit $ac_status); }; } &&
16242	 { ac_try='test -s conftest.$ac_objext'
16243  { (case "(($ac_try" in
16244  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16245  *) ac_try_echo=$ac_try;;
16246esac
16247eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16248  (eval "$ac_try") 2>&5
16249  ac_status=$?
16250  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16251  (exit $ac_status); }; }; then
16252  ac_cv_type_pid_t=yes
16253else
16254  echo "$as_me: failed program was:" >&5
16255sed 's/^/| /' conftest.$ac_ext >&5
16256
16257	ac_cv_type_pid_t=no
16258fi
16259
16260rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16261fi
16262{ echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
16263echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
16264if test $ac_cv_type_pid_t = yes; then
16265  :
16266else
16267
16268cat >>confdefs.h <<_ACEOF
16269#define pid_t int
16270_ACEOF
16271
16272fi
16273
16274{ echo "$as_me:$LINENO: checking for size_t" >&5
16275echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
16276if test "${ac_cv_type_size_t+set}" = set; then
16277  echo $ECHO_N "(cached) $ECHO_C" >&6
16278else
16279  cat >conftest.$ac_ext <<_ACEOF
16280/* confdefs.h.  */
16281_ACEOF
16282cat confdefs.h >>conftest.$ac_ext
16283cat >>conftest.$ac_ext <<_ACEOF
16284/* end confdefs.h.  */
16285$ac_includes_default
16286typedef size_t ac__type_new_;
16287int
16288main ()
16289{
16290if ((ac__type_new_ *) 0)
16291  return 0;
16292if (sizeof (ac__type_new_))
16293  return 0;
16294  ;
16295  return 0;
16296}
16297_ACEOF
16298rm -f conftest.$ac_objext
16299if { (ac_try="$ac_compile"
16300case "(($ac_try" in
16301  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16302  *) ac_try_echo=$ac_try;;
16303esac
16304eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16305  (eval "$ac_compile") 2>conftest.er1
16306  ac_status=$?
16307  grep -v '^ *+' conftest.er1 >conftest.err
16308  rm -f conftest.er1
16309  cat conftest.err >&5
16310  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16311  (exit $ac_status); } &&
16312	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16313  { (case "(($ac_try" in
16314  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16315  *) ac_try_echo=$ac_try;;
16316esac
16317eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16318  (eval "$ac_try") 2>&5
16319  ac_status=$?
16320  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16321  (exit $ac_status); }; } &&
16322	 { ac_try='test -s conftest.$ac_objext'
16323  { (case "(($ac_try" in
16324  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16325  *) ac_try_echo=$ac_try;;
16326esac
16327eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16328  (eval "$ac_try") 2>&5
16329  ac_status=$?
16330  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16331  (exit $ac_status); }; }; then
16332  ac_cv_type_size_t=yes
16333else
16334  echo "$as_me: failed program was:" >&5
16335sed 's/^/| /' conftest.$ac_ext >&5
16336
16337	ac_cv_type_size_t=no
16338fi
16339
16340rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16341fi
16342{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
16343echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
16344if test $ac_cv_type_size_t = yes; then
16345  :
16346else
16347
16348cat >>confdefs.h <<_ACEOF
16349#define size_t unsigned int
16350_ACEOF
16351
16352fi
16353
16354
16355cat >>confdefs.h <<_ACEOF
16356#define RETSIGTYPE void
16357_ACEOF
16358
16359{ echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
16360echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
16361if test "${ac_cv_struct_tm+set}" = set; then
16362  echo $ECHO_N "(cached) $ECHO_C" >&6
16363else
16364  cat >conftest.$ac_ext <<_ACEOF
16365/* confdefs.h.  */
16366_ACEOF
16367cat confdefs.h >>conftest.$ac_ext
16368cat >>conftest.$ac_ext <<_ACEOF
16369/* end confdefs.h.  */
16370#include <sys/types.h>
16371#include <time.h>
16372
16373int
16374main ()
16375{
16376struct tm *tp; tp->tm_sec;
16377  ;
16378  return 0;
16379}
16380_ACEOF
16381rm -f conftest.$ac_objext
16382if { (ac_try="$ac_compile"
16383case "(($ac_try" in
16384  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16385  *) ac_try_echo=$ac_try;;
16386esac
16387eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16388  (eval "$ac_compile") 2>conftest.er1
16389  ac_status=$?
16390  grep -v '^ *+' conftest.er1 >conftest.err
16391  rm -f conftest.er1
16392  cat conftest.err >&5
16393  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16394  (exit $ac_status); } &&
16395	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16396  { (case "(($ac_try" in
16397  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16398  *) ac_try_echo=$ac_try;;
16399esac
16400eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16401  (eval "$ac_try") 2>&5
16402  ac_status=$?
16403  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16404  (exit $ac_status); }; } &&
16405	 { ac_try='test -s conftest.$ac_objext'
16406  { (case "(($ac_try" in
16407  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16408  *) ac_try_echo=$ac_try;;
16409esac
16410eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16411  (eval "$ac_try") 2>&5
16412  ac_status=$?
16413  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16414  (exit $ac_status); }; }; then
16415  ac_cv_struct_tm=time.h
16416else
16417  echo "$as_me: failed program was:" >&5
16418sed 's/^/| /' conftest.$ac_ext >&5
16419
16420	ac_cv_struct_tm=sys/time.h
16421fi
16422
16423rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16424fi
16425{ echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
16426echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
16427if test $ac_cv_struct_tm = sys/time.h; then
16428
16429cat >>confdefs.h <<\_ACEOF
16430#define TM_IN_SYS_TIME 1
16431_ACEOF
16432
16433fi
16434
16435{ echo "$as_me:$LINENO: checking for int64_t" >&5
16436echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
16437if test "${ac_cv_type_int64_t+set}" = set; then
16438  echo $ECHO_N "(cached) $ECHO_C" >&6
16439else
16440  cat >conftest.$ac_ext <<_ACEOF
16441/* confdefs.h.  */
16442_ACEOF
16443cat confdefs.h >>conftest.$ac_ext
16444cat >>conftest.$ac_ext <<_ACEOF
16445/* end confdefs.h.  */
16446$ac_includes_default
16447typedef int64_t ac__type_new_;
16448int
16449main ()
16450{
16451if ((ac__type_new_ *) 0)
16452  return 0;
16453if (sizeof (ac__type_new_))
16454  return 0;
16455  ;
16456  return 0;
16457}
16458_ACEOF
16459rm -f conftest.$ac_objext
16460if { (ac_try="$ac_compile"
16461case "(($ac_try" in
16462  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16463  *) ac_try_echo=$ac_try;;
16464esac
16465eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16466  (eval "$ac_compile") 2>conftest.er1
16467  ac_status=$?
16468  grep -v '^ *+' conftest.er1 >conftest.err
16469  rm -f conftest.er1
16470  cat conftest.err >&5
16471  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16472  (exit $ac_status); } &&
16473	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16474  { (case "(($ac_try" in
16475  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16476  *) ac_try_echo=$ac_try;;
16477esac
16478eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16479  (eval "$ac_try") 2>&5
16480  ac_status=$?
16481  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16482  (exit $ac_status); }; } &&
16483	 { ac_try='test -s conftest.$ac_objext'
16484  { (case "(($ac_try" in
16485  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16486  *) ac_try_echo=$ac_try;;
16487esac
16488eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16489  (eval "$ac_try") 2>&5
16490  ac_status=$?
16491  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16492  (exit $ac_status); }; }; then
16493  ac_cv_type_int64_t=yes
16494else
16495  echo "$as_me: failed program was:" >&5
16496sed 's/^/| /' conftest.$ac_ext >&5
16497
16498	ac_cv_type_int64_t=no
16499fi
16500
16501rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16502fi
16503{ echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
16504echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
16505if test $ac_cv_type_int64_t = yes; then
16506
16507cat >>confdefs.h <<_ACEOF
16508#define HAVE_INT64_T 1
16509_ACEOF
16510
16511
16512else
16513  { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
16514echo "$as_me: error: Type int64_t required but not found" >&2;}
16515   { (exit 1); exit 1; }; }
16516fi
16517
16518{ echo "$as_me:$LINENO: checking for uint64_t" >&5
16519echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
16520if test "${ac_cv_type_uint64_t+set}" = set; then
16521  echo $ECHO_N "(cached) $ECHO_C" >&6
16522else
16523  cat >conftest.$ac_ext <<_ACEOF
16524/* confdefs.h.  */
16525_ACEOF
16526cat confdefs.h >>conftest.$ac_ext
16527cat >>conftest.$ac_ext <<_ACEOF
16528/* end confdefs.h.  */
16529$ac_includes_default
16530typedef uint64_t ac__type_new_;
16531int
16532main ()
16533{
16534if ((ac__type_new_ *) 0)
16535  return 0;
16536if (sizeof (ac__type_new_))
16537  return 0;
16538  ;
16539  return 0;
16540}
16541_ACEOF
16542rm -f conftest.$ac_objext
16543if { (ac_try="$ac_compile"
16544case "(($ac_try" in
16545  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16546  *) ac_try_echo=$ac_try;;
16547esac
16548eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16549  (eval "$ac_compile") 2>conftest.er1
16550  ac_status=$?
16551  grep -v '^ *+' conftest.er1 >conftest.err
16552  rm -f conftest.er1
16553  cat conftest.err >&5
16554  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16555  (exit $ac_status); } &&
16556	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16557  { (case "(($ac_try" in
16558  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16559  *) ac_try_echo=$ac_try;;
16560esac
16561eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16562  (eval "$ac_try") 2>&5
16563  ac_status=$?
16564  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16565  (exit $ac_status); }; } &&
16566	 { ac_try='test -s conftest.$ac_objext'
16567  { (case "(($ac_try" in
16568  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16569  *) ac_try_echo=$ac_try;;
16570esac
16571eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16572  (eval "$ac_try") 2>&5
16573  ac_status=$?
16574  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16575  (exit $ac_status); }; }; then
16576  ac_cv_type_uint64_t=yes
16577else
16578  echo "$as_me: failed program was:" >&5
16579sed 's/^/| /' conftest.$ac_ext >&5
16580
16581	ac_cv_type_uint64_t=no
16582fi
16583
16584rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16585fi
16586{ echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
16587echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
16588if test $ac_cv_type_uint64_t = yes; then
16589
16590cat >>confdefs.h <<_ACEOF
16591#define HAVE_UINT64_T 1
16592_ACEOF
16593
16594
16595else
16596  { echo "$as_me:$LINENO: checking for u_int64_t" >&5
16597echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
16598if test "${ac_cv_type_u_int64_t+set}" = set; then
16599  echo $ECHO_N "(cached) $ECHO_C" >&6
16600else
16601  cat >conftest.$ac_ext <<_ACEOF
16602/* confdefs.h.  */
16603_ACEOF
16604cat confdefs.h >>conftest.$ac_ext
16605cat >>conftest.$ac_ext <<_ACEOF
16606/* end confdefs.h.  */
16607$ac_includes_default
16608typedef u_int64_t ac__type_new_;
16609int
16610main ()
16611{
16612if ((ac__type_new_ *) 0)
16613  return 0;
16614if (sizeof (ac__type_new_))
16615  return 0;
16616  ;
16617  return 0;
16618}
16619_ACEOF
16620rm -f conftest.$ac_objext
16621if { (ac_try="$ac_compile"
16622case "(($ac_try" in
16623  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16624  *) ac_try_echo=$ac_try;;
16625esac
16626eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16627  (eval "$ac_compile") 2>conftest.er1
16628  ac_status=$?
16629  grep -v '^ *+' conftest.er1 >conftest.err
16630  rm -f conftest.er1
16631  cat conftest.err >&5
16632  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16633  (exit $ac_status); } &&
16634	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16635  { (case "(($ac_try" in
16636  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16637  *) ac_try_echo=$ac_try;;
16638esac
16639eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16640  (eval "$ac_try") 2>&5
16641  ac_status=$?
16642  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16643  (exit $ac_status); }; } &&
16644	 { ac_try='test -s conftest.$ac_objext'
16645  { (case "(($ac_try" in
16646  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16647  *) ac_try_echo=$ac_try;;
16648esac
16649eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16650  (eval "$ac_try") 2>&5
16651  ac_status=$?
16652  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16653  (exit $ac_status); }; }; then
16654  ac_cv_type_u_int64_t=yes
16655else
16656  echo "$as_me: failed program was:" >&5
16657sed 's/^/| /' conftest.$ac_ext >&5
16658
16659	ac_cv_type_u_int64_t=no
16660fi
16661
16662rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16663fi
16664{ echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
16665echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
16666if test $ac_cv_type_u_int64_t = yes; then
16667
16668cat >>confdefs.h <<_ACEOF
16669#define HAVE_U_INT64_T 1
16670_ACEOF
16671
16672
16673else
16674  { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
16675echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
16676   { (exit 1); exit 1; }; }
16677fi
16678
16679fi
16680
16681
16682
16683
16684
16685
16686
16687
16688
16689
16690for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
16691do
16692as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16693{ echo "$as_me:$LINENO: checking for $ac_func" >&5
16694echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16695if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16696  echo $ECHO_N "(cached) $ECHO_C" >&6
16697else
16698  cat >conftest.$ac_ext <<_ACEOF
16699/* confdefs.h.  */
16700_ACEOF
16701cat confdefs.h >>conftest.$ac_ext
16702cat >>conftest.$ac_ext <<_ACEOF
16703/* end confdefs.h.  */
16704/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16705   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16706#define $ac_func innocuous_$ac_func
16707
16708/* System header to define __stub macros and hopefully few prototypes,
16709    which can conflict with char $ac_func (); below.
16710    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16711    <limits.h> exists even on freestanding compilers.  */
16712
16713#ifdef __STDC__
16714# include <limits.h>
16715#else
16716# include <assert.h>
16717#endif
16718
16719#undef $ac_func
16720
16721/* Override any GCC internal prototype to avoid an error.
16722   Use char because int might match the return type of a GCC
16723   builtin and then its argument prototype would still apply.  */
16724#ifdef __cplusplus
16725extern "C"
16726#endif
16727char $ac_func ();
16728/* The GNU C library defines this for functions which it implements
16729    to always fail with ENOSYS.  Some functions are actually named
16730    something starting with __ and the normal name is an alias.  */
16731#if defined __stub_$ac_func || defined __stub___$ac_func
16732choke me
16733#endif
16734
16735int
16736main ()
16737{
16738return $ac_func ();
16739  ;
16740  return 0;
16741}
16742_ACEOF
16743rm -f conftest.$ac_objext conftest$ac_exeext
16744if { (ac_try="$ac_link"
16745case "(($ac_try" in
16746  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16747  *) ac_try_echo=$ac_try;;
16748esac
16749eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16750  (eval "$ac_link") 2>conftest.er1
16751  ac_status=$?
16752  grep -v '^ *+' conftest.er1 >conftest.err
16753  rm -f conftest.er1
16754  cat conftest.err >&5
16755  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16756  (exit $ac_status); } &&
16757	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16758  { (case "(($ac_try" in
16759  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16760  *) ac_try_echo=$ac_try;;
16761esac
16762eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16763  (eval "$ac_try") 2>&5
16764  ac_status=$?
16765  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16766  (exit $ac_status); }; } &&
16767	 { ac_try='test -s conftest$ac_exeext'
16768  { (case "(($ac_try" in
16769  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16770  *) ac_try_echo=$ac_try;;
16771esac
16772eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16773  (eval "$ac_try") 2>&5
16774  ac_status=$?
16775  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16776  (exit $ac_status); }; }; then
16777  eval "$as_ac_var=yes"
16778else
16779  echo "$as_me: failed program was:" >&5
16780sed 's/^/| /' conftest.$ac_ext >&5
16781
16782	eval "$as_ac_var=no"
16783fi
16784
16785rm -f core conftest.err conftest.$ac_objext \
16786      conftest$ac_exeext conftest.$ac_ext
16787fi
16788ac_res=`eval echo '${'$as_ac_var'}'`
16789	       { echo "$as_me:$LINENO: result: $ac_res" >&5
16790echo "${ECHO_T}$ac_res" >&6; }
16791if test `eval echo '${'$as_ac_var'}'` = yes; then
16792  cat >>confdefs.h <<_ACEOF
16793#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16794_ACEOF
16795
16796fi
16797done
16798
16799
16800
16801
16802
16803for ac_func in powf fmodf strtof round
16804do
16805as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16806{ echo "$as_me:$LINENO: checking for $ac_func" >&5
16807echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16808if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16809  echo $ECHO_N "(cached) $ECHO_C" >&6
16810else
16811  cat >conftest.$ac_ext <<_ACEOF
16812/* confdefs.h.  */
16813_ACEOF
16814cat confdefs.h >>conftest.$ac_ext
16815cat >>conftest.$ac_ext <<_ACEOF
16816/* end confdefs.h.  */
16817/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16818   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16819#define $ac_func innocuous_$ac_func
16820
16821/* System header to define __stub macros and hopefully few prototypes,
16822    which can conflict with char $ac_func (); below.
16823    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16824    <limits.h> exists even on freestanding compilers.  */
16825
16826#ifdef __STDC__
16827# include <limits.h>
16828#else
16829# include <assert.h>
16830#endif
16831
16832#undef $ac_func
16833
16834/* Override any GCC internal prototype to avoid an error.
16835   Use char because int might match the return type of a GCC
16836   builtin and then its argument prototype would still apply.  */
16837#ifdef __cplusplus
16838extern "C"
16839#endif
16840char $ac_func ();
16841/* The GNU C library defines this for functions which it implements
16842    to always fail with ENOSYS.  Some functions are actually named
16843    something starting with __ and the normal name is an alias.  */
16844#if defined __stub_$ac_func || defined __stub___$ac_func
16845choke me
16846#endif
16847
16848int
16849main ()
16850{
16851return $ac_func ();
16852  ;
16853  return 0;
16854}
16855_ACEOF
16856rm -f conftest.$ac_objext conftest$ac_exeext
16857if { (ac_try="$ac_link"
16858case "(($ac_try" in
16859  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16860  *) ac_try_echo=$ac_try;;
16861esac
16862eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16863  (eval "$ac_link") 2>conftest.er1
16864  ac_status=$?
16865  grep -v '^ *+' conftest.er1 >conftest.err
16866  rm -f conftest.er1
16867  cat conftest.err >&5
16868  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16869  (exit $ac_status); } &&
16870	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16871  { (case "(($ac_try" in
16872  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16873  *) ac_try_echo=$ac_try;;
16874esac
16875eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16876  (eval "$ac_try") 2>&5
16877  ac_status=$?
16878  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16879  (exit $ac_status); }; } &&
16880	 { ac_try='test -s conftest$ac_exeext'
16881  { (case "(($ac_try" in
16882  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16883  *) ac_try_echo=$ac_try;;
16884esac
16885eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16886  (eval "$ac_try") 2>&5
16887  ac_status=$?
16888  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16889  (exit $ac_status); }; }; then
16890  eval "$as_ac_var=yes"
16891else
16892  echo "$as_me: failed program was:" >&5
16893sed 's/^/| /' conftest.$ac_ext >&5
16894
16895	eval "$as_ac_var=no"
16896fi
16897
16898rm -f core conftest.err conftest.$ac_objext \
16899      conftest$ac_exeext conftest.$ac_ext
16900fi
16901ac_res=`eval echo '${'$as_ac_var'}'`
16902	       { echo "$as_me:$LINENO: result: $ac_res" >&5
16903echo "${ECHO_T}$ac_res" >&6; }
16904if test `eval echo '${'$as_ac_var'}'` = yes; then
16905  cat >>confdefs.h <<_ACEOF
16906#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16907_ACEOF
16908
16909fi
16910done
16911
16912
16913
16914
16915
16916
16917for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
16918do
16919as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16920{ echo "$as_me:$LINENO: checking for $ac_func" >&5
16921echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16922if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16923  echo $ECHO_N "(cached) $ECHO_C" >&6
16924else
16925  cat >conftest.$ac_ext <<_ACEOF
16926/* confdefs.h.  */
16927_ACEOF
16928cat confdefs.h >>conftest.$ac_ext
16929cat >>conftest.$ac_ext <<_ACEOF
16930/* end confdefs.h.  */
16931/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16932   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16933#define $ac_func innocuous_$ac_func
16934
16935/* System header to define __stub macros and hopefully few prototypes,
16936    which can conflict with char $ac_func (); below.
16937    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16938    <limits.h> exists even on freestanding compilers.  */
16939
16940#ifdef __STDC__
16941# include <limits.h>
16942#else
16943# include <assert.h>
16944#endif
16945
16946#undef $ac_func
16947
16948/* Override any GCC internal prototype to avoid an error.
16949   Use char because int might match the return type of a GCC
16950   builtin and then its argument prototype would still apply.  */
16951#ifdef __cplusplus
16952extern "C"
16953#endif
16954char $ac_func ();
16955/* The GNU C library defines this for functions which it implements
16956    to always fail with ENOSYS.  Some functions are actually named
16957    something starting with __ and the normal name is an alias.  */
16958#if defined __stub_$ac_func || defined __stub___$ac_func
16959choke me
16960#endif
16961
16962int
16963main ()
16964{
16965return $ac_func ();
16966  ;
16967  return 0;
16968}
16969_ACEOF
16970rm -f conftest.$ac_objext conftest$ac_exeext
16971if { (ac_try="$ac_link"
16972case "(($ac_try" in
16973  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16974  *) ac_try_echo=$ac_try;;
16975esac
16976eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16977  (eval "$ac_link") 2>conftest.er1
16978  ac_status=$?
16979  grep -v '^ *+' conftest.er1 >conftest.err
16980  rm -f conftest.er1
16981  cat conftest.err >&5
16982  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16983  (exit $ac_status); } &&
16984	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16985  { (case "(($ac_try" in
16986  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16987  *) ac_try_echo=$ac_try;;
16988esac
16989eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16990  (eval "$ac_try") 2>&5
16991  ac_status=$?
16992  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16993  (exit $ac_status); }; } &&
16994	 { ac_try='test -s conftest$ac_exeext'
16995  { (case "(($ac_try" in
16996  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16997  *) ac_try_echo=$ac_try;;
16998esac
16999eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17000  (eval "$ac_try") 2>&5
17001  ac_status=$?
17002  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17003  (exit $ac_status); }; }; then
17004  eval "$as_ac_var=yes"
17005else
17006  echo "$as_me: failed program was:" >&5
17007sed 's/^/| /' conftest.$ac_ext >&5
17008
17009	eval "$as_ac_var=no"
17010fi
17011
17012rm -f core conftest.err conftest.$ac_objext \
17013      conftest$ac_exeext conftest.$ac_ext
17014fi
17015ac_res=`eval echo '${'$as_ac_var'}'`
17016	       { echo "$as_me:$LINENO: result: $ac_res" >&5
17017echo "${ECHO_T}$ac_res" >&6; }
17018if test `eval echo '${'$as_ac_var'}'` = yes; then
17019  cat >>confdefs.h <<_ACEOF
17020#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17021_ACEOF
17022
17023fi
17024done
17025
17026
17027
17028
17029for ac_func in isatty mkdtemp mkstemp
17030do
17031as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17032{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17033echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17034if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17035  echo $ECHO_N "(cached) $ECHO_C" >&6
17036else
17037  cat >conftest.$ac_ext <<_ACEOF
17038/* confdefs.h.  */
17039_ACEOF
17040cat confdefs.h >>conftest.$ac_ext
17041cat >>conftest.$ac_ext <<_ACEOF
17042/* end confdefs.h.  */
17043/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17044   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17045#define $ac_func innocuous_$ac_func
17046
17047/* System header to define __stub macros and hopefully few prototypes,
17048    which can conflict with char $ac_func (); below.
17049    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17050    <limits.h> exists even on freestanding compilers.  */
17051
17052#ifdef __STDC__
17053# include <limits.h>
17054#else
17055# include <assert.h>
17056#endif
17057
17058#undef $ac_func
17059
17060/* Override any GCC internal prototype to avoid an error.
17061   Use char because int might match the return type of a GCC
17062   builtin and then its argument prototype would still apply.  */
17063#ifdef __cplusplus
17064extern "C"
17065#endif
17066char $ac_func ();
17067/* The GNU C library defines this for functions which it implements
17068    to always fail with ENOSYS.  Some functions are actually named
17069    something starting with __ and the normal name is an alias.  */
17070#if defined __stub_$ac_func || defined __stub___$ac_func
17071choke me
17072#endif
17073
17074int
17075main ()
17076{
17077return $ac_func ();
17078  ;
17079  return 0;
17080}
17081_ACEOF
17082rm -f conftest.$ac_objext conftest$ac_exeext
17083if { (ac_try="$ac_link"
17084case "(($ac_try" in
17085  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17086  *) ac_try_echo=$ac_try;;
17087esac
17088eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17089  (eval "$ac_link") 2>conftest.er1
17090  ac_status=$?
17091  grep -v '^ *+' conftest.er1 >conftest.err
17092  rm -f conftest.er1
17093  cat conftest.err >&5
17094  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17095  (exit $ac_status); } &&
17096	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17097  { (case "(($ac_try" in
17098  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17099  *) ac_try_echo=$ac_try;;
17100esac
17101eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17102  (eval "$ac_try") 2>&5
17103  ac_status=$?
17104  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17105  (exit $ac_status); }; } &&
17106	 { ac_try='test -s conftest$ac_exeext'
17107  { (case "(($ac_try" in
17108  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17109  *) ac_try_echo=$ac_try;;
17110esac
17111eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17112  (eval "$ac_try") 2>&5
17113  ac_status=$?
17114  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17115  (exit $ac_status); }; }; then
17116  eval "$as_ac_var=yes"
17117else
17118  echo "$as_me: failed program was:" >&5
17119sed 's/^/| /' conftest.$ac_ext >&5
17120
17121	eval "$as_ac_var=no"
17122fi
17123
17124rm -f core conftest.err conftest.$ac_objext \
17125      conftest$ac_exeext conftest.$ac_ext
17126fi
17127ac_res=`eval echo '${'$as_ac_var'}'`
17128	       { echo "$as_me:$LINENO: result: $ac_res" >&5
17129echo "${ECHO_T}$ac_res" >&6; }
17130if test `eval echo '${'$as_ac_var'}'` = yes; then
17131  cat >>confdefs.h <<_ACEOF
17132#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17133_ACEOF
17134
17135fi
17136done
17137
17138
17139
17140
17141
17142
17143
17144
17145for ac_func in mktemp posix_spawn pread realpath sbrk setrlimit strdup
17146do
17147as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17148{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17149echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17150if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17151  echo $ECHO_N "(cached) $ECHO_C" >&6
17152else
17153  cat >conftest.$ac_ext <<_ACEOF
17154/* confdefs.h.  */
17155_ACEOF
17156cat confdefs.h >>conftest.$ac_ext
17157cat >>conftest.$ac_ext <<_ACEOF
17158/* end confdefs.h.  */
17159/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17160   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17161#define $ac_func innocuous_$ac_func
17162
17163/* System header to define __stub macros and hopefully few prototypes,
17164    which can conflict with char $ac_func (); below.
17165    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17166    <limits.h> exists even on freestanding compilers.  */
17167
17168#ifdef __STDC__
17169# include <limits.h>
17170#else
17171# include <assert.h>
17172#endif
17173
17174#undef $ac_func
17175
17176/* Override any GCC internal prototype to avoid an error.
17177   Use char because int might match the return type of a GCC
17178   builtin and then its argument prototype would still apply.  */
17179#ifdef __cplusplus
17180extern "C"
17181#endif
17182char $ac_func ();
17183/* The GNU C library defines this for functions which it implements
17184    to always fail with ENOSYS.  Some functions are actually named
17185    something starting with __ and the normal name is an alias.  */
17186#if defined __stub_$ac_func || defined __stub___$ac_func
17187choke me
17188#endif
17189
17190int
17191main ()
17192{
17193return $ac_func ();
17194  ;
17195  return 0;
17196}
17197_ACEOF
17198rm -f conftest.$ac_objext conftest$ac_exeext
17199if { (ac_try="$ac_link"
17200case "(($ac_try" in
17201  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17202  *) ac_try_echo=$ac_try;;
17203esac
17204eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17205  (eval "$ac_link") 2>conftest.er1
17206  ac_status=$?
17207  grep -v '^ *+' conftest.er1 >conftest.err
17208  rm -f conftest.er1
17209  cat conftest.err >&5
17210  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17211  (exit $ac_status); } &&
17212	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17213  { (case "(($ac_try" in
17214  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17215  *) ac_try_echo=$ac_try;;
17216esac
17217eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17218  (eval "$ac_try") 2>&5
17219  ac_status=$?
17220  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17221  (exit $ac_status); }; } &&
17222	 { ac_try='test -s conftest$ac_exeext'
17223  { (case "(($ac_try" in
17224  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17225  *) ac_try_echo=$ac_try;;
17226esac
17227eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17228  (eval "$ac_try") 2>&5
17229  ac_status=$?
17230  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17231  (exit $ac_status); }; }; then
17232  eval "$as_ac_var=yes"
17233else
17234  echo "$as_me: failed program was:" >&5
17235sed 's/^/| /' conftest.$ac_ext >&5
17236
17237	eval "$as_ac_var=no"
17238fi
17239
17240rm -f core conftest.err conftest.$ac_objext \
17241      conftest$ac_exeext conftest.$ac_ext
17242fi
17243ac_res=`eval echo '${'$as_ac_var'}'`
17244	       { echo "$as_me:$LINENO: result: $ac_res" >&5
17245echo "${ECHO_T}$ac_res" >&6; }
17246if test `eval echo '${'$as_ac_var'}'` = yes; then
17247  cat >>confdefs.h <<_ACEOF
17248#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17249_ACEOF
17250
17251fi
17252done
17253
17254
17255
17256
17257for ac_func in strerror strerror_r setenv
17258do
17259as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17260{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17261echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17262if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17263  echo $ECHO_N "(cached) $ECHO_C" >&6
17264else
17265  cat >conftest.$ac_ext <<_ACEOF
17266/* confdefs.h.  */
17267_ACEOF
17268cat confdefs.h >>conftest.$ac_ext
17269cat >>conftest.$ac_ext <<_ACEOF
17270/* end confdefs.h.  */
17271/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17272   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17273#define $ac_func innocuous_$ac_func
17274
17275/* System header to define __stub macros and hopefully few prototypes,
17276    which can conflict with char $ac_func (); below.
17277    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17278    <limits.h> exists even on freestanding compilers.  */
17279
17280#ifdef __STDC__
17281# include <limits.h>
17282#else
17283# include <assert.h>
17284#endif
17285
17286#undef $ac_func
17287
17288/* Override any GCC internal prototype to avoid an error.
17289   Use char because int might match the return type of a GCC
17290   builtin and then its argument prototype would still apply.  */
17291#ifdef __cplusplus
17292extern "C"
17293#endif
17294char $ac_func ();
17295/* The GNU C library defines this for functions which it implements
17296    to always fail with ENOSYS.  Some functions are actually named
17297    something starting with __ and the normal name is an alias.  */
17298#if defined __stub_$ac_func || defined __stub___$ac_func
17299choke me
17300#endif
17301
17302int
17303main ()
17304{
17305return $ac_func ();
17306  ;
17307  return 0;
17308}
17309_ACEOF
17310rm -f conftest.$ac_objext conftest$ac_exeext
17311if { (ac_try="$ac_link"
17312case "(($ac_try" in
17313  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17314  *) ac_try_echo=$ac_try;;
17315esac
17316eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17317  (eval "$ac_link") 2>conftest.er1
17318  ac_status=$?
17319  grep -v '^ *+' conftest.er1 >conftest.err
17320  rm -f conftest.er1
17321  cat conftest.err >&5
17322  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17323  (exit $ac_status); } &&
17324	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17325  { (case "(($ac_try" in
17326  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17327  *) ac_try_echo=$ac_try;;
17328esac
17329eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17330  (eval "$ac_try") 2>&5
17331  ac_status=$?
17332  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17333  (exit $ac_status); }; } &&
17334	 { ac_try='test -s conftest$ac_exeext'
17335  { (case "(($ac_try" in
17336  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17337  *) ac_try_echo=$ac_try;;
17338esac
17339eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17340  (eval "$ac_try") 2>&5
17341  ac_status=$?
17342  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17343  (exit $ac_status); }; }; then
17344  eval "$as_ac_var=yes"
17345else
17346  echo "$as_me: failed program was:" >&5
17347sed 's/^/| /' conftest.$ac_ext >&5
17348
17349	eval "$as_ac_var=no"
17350fi
17351
17352rm -f core conftest.err conftest.$ac_objext \
17353      conftest$ac_exeext conftest.$ac_ext
17354fi
17355ac_res=`eval echo '${'$as_ac_var'}'`
17356	       { echo "$as_me:$LINENO: result: $ac_res" >&5
17357echo "${ECHO_T}$ac_res" >&6; }
17358if test `eval echo '${'$as_ac_var'}'` = yes; then
17359  cat >>confdefs.h <<_ACEOF
17360#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17361_ACEOF
17362
17363fi
17364done
17365
17366
17367
17368
17369
17370for ac_func in strtoll strtoq sysconf malloc_zone_statistics
17371do
17372as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17373{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17374echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17375if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17376  echo $ECHO_N "(cached) $ECHO_C" >&6
17377else
17378  cat >conftest.$ac_ext <<_ACEOF
17379/* confdefs.h.  */
17380_ACEOF
17381cat confdefs.h >>conftest.$ac_ext
17382cat >>conftest.$ac_ext <<_ACEOF
17383/* end confdefs.h.  */
17384/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17385   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17386#define $ac_func innocuous_$ac_func
17387
17388/* System header to define __stub macros and hopefully few prototypes,
17389    which can conflict with char $ac_func (); below.
17390    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17391    <limits.h> exists even on freestanding compilers.  */
17392
17393#ifdef __STDC__
17394# include <limits.h>
17395#else
17396# include <assert.h>
17397#endif
17398
17399#undef $ac_func
17400
17401/* Override any GCC internal prototype to avoid an error.
17402   Use char because int might match the return type of a GCC
17403   builtin and then its argument prototype would still apply.  */
17404#ifdef __cplusplus
17405extern "C"
17406#endif
17407char $ac_func ();
17408/* The GNU C library defines this for functions which it implements
17409    to always fail with ENOSYS.  Some functions are actually named
17410    something starting with __ and the normal name is an alias.  */
17411#if defined __stub_$ac_func || defined __stub___$ac_func
17412choke me
17413#endif
17414
17415int
17416main ()
17417{
17418return $ac_func ();
17419  ;
17420  return 0;
17421}
17422_ACEOF
17423rm -f conftest.$ac_objext conftest$ac_exeext
17424if { (ac_try="$ac_link"
17425case "(($ac_try" in
17426  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17427  *) ac_try_echo=$ac_try;;
17428esac
17429eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17430  (eval "$ac_link") 2>conftest.er1
17431  ac_status=$?
17432  grep -v '^ *+' conftest.er1 >conftest.err
17433  rm -f conftest.er1
17434  cat conftest.err >&5
17435  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17436  (exit $ac_status); } &&
17437	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17438  { (case "(($ac_try" in
17439  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17440  *) ac_try_echo=$ac_try;;
17441esac
17442eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17443  (eval "$ac_try") 2>&5
17444  ac_status=$?
17445  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17446  (exit $ac_status); }; } &&
17447	 { ac_try='test -s conftest$ac_exeext'
17448  { (case "(($ac_try" in
17449  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17450  *) ac_try_echo=$ac_try;;
17451esac
17452eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17453  (eval "$ac_try") 2>&5
17454  ac_status=$?
17455  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17456  (exit $ac_status); }; }; then
17457  eval "$as_ac_var=yes"
17458else
17459  echo "$as_me: failed program was:" >&5
17460sed 's/^/| /' conftest.$ac_ext >&5
17461
17462	eval "$as_ac_var=no"
17463fi
17464
17465rm -f core conftest.err conftest.$ac_objext \
17466      conftest$ac_exeext conftest.$ac_ext
17467fi
17468ac_res=`eval echo '${'$as_ac_var'}'`
17469	       { echo "$as_me:$LINENO: result: $ac_res" >&5
17470echo "${ECHO_T}$ac_res" >&6; }
17471if test `eval echo '${'$as_ac_var'}'` = yes; then
17472  cat >>confdefs.h <<_ACEOF
17473#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17474_ACEOF
17475
17476fi
17477done
17478
17479
17480
17481
17482
17483
17484for ac_func in setjmp longjmp sigsetjmp siglongjmp writev
17485do
17486as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17487{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17488echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17489if { as_var=$as_ac_var; eval "test \"\${$as_var+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/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17499   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17500#define $ac_func innocuous_$ac_func
17501
17502/* System header to define __stub macros and hopefully few prototypes,
17503    which can conflict with char $ac_func (); below.
17504    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17505    <limits.h> exists even on freestanding compilers.  */
17506
17507#ifdef __STDC__
17508# include <limits.h>
17509#else
17510# include <assert.h>
17511#endif
17512
17513#undef $ac_func
17514
17515/* Override any GCC internal prototype to avoid an error.
17516   Use char because int might match the return type of a GCC
17517   builtin and then its argument prototype would still apply.  */
17518#ifdef __cplusplus
17519extern "C"
17520#endif
17521char $ac_func ();
17522/* The GNU C library defines this for functions which it implements
17523    to always fail with ENOSYS.  Some functions are actually named
17524    something starting with __ and the normal name is an alias.  */
17525#if defined __stub_$ac_func || defined __stub___$ac_func
17526choke me
17527#endif
17528
17529int
17530main ()
17531{
17532return $ac_func ();
17533  ;
17534  return 0;
17535}
17536_ACEOF
17537rm -f conftest.$ac_objext conftest$ac_exeext
17538if { (ac_try="$ac_link"
17539case "(($ac_try" in
17540  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17541  *) ac_try_echo=$ac_try;;
17542esac
17543eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17544  (eval "$ac_link") 2>conftest.er1
17545  ac_status=$?
17546  grep -v '^ *+' conftest.er1 >conftest.err
17547  rm -f conftest.er1
17548  cat conftest.err >&5
17549  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17550  (exit $ac_status); } &&
17551	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17552  { (case "(($ac_try" in
17553  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17554  *) ac_try_echo=$ac_try;;
17555esac
17556eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17557  (eval "$ac_try") 2>&5
17558  ac_status=$?
17559  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17560  (exit $ac_status); }; } &&
17561	 { ac_try='test -s conftest$ac_exeext'
17562  { (case "(($ac_try" in
17563  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17564  *) ac_try_echo=$ac_try;;
17565esac
17566eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17567  (eval "$ac_try") 2>&5
17568  ac_status=$?
17569  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17570  (exit $ac_status); }; }; then
17571  eval "$as_ac_var=yes"
17572else
17573  echo "$as_me: failed program was:" >&5
17574sed 's/^/| /' conftest.$ac_ext >&5
17575
17576	eval "$as_ac_var=no"
17577fi
17578
17579rm -f core conftest.err conftest.$ac_objext \
17580      conftest$ac_exeext conftest.$ac_ext
17581fi
17582ac_res=`eval echo '${'$as_ac_var'}'`
17583	       { echo "$as_me:$LINENO: result: $ac_res" >&5
17584echo "${ECHO_T}$ac_res" >&6; }
17585if test `eval echo '${'$as_ac_var'}'` = yes; then
17586  cat >>confdefs.h <<_ACEOF
17587#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17588_ACEOF
17589
17590fi
17591done
17592
17593{ echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
17594echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
17595if test "${llvm_cv_c_printf_a+set}" = set; then
17596  echo $ECHO_N "(cached) $ECHO_C" >&6
17597else
17598  ac_ext=c
17599ac_cpp='$CPP $CPPFLAGS'
17600ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17601ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17602ac_compiler_gnu=$ac_cv_c_compiler_gnu
17603
17604 if test "$cross_compiling" = yes; then
17605  llvmac_cv_c_printf_a=no
17606else
17607  cat >conftest.$ac_ext <<_ACEOF
17608
17609  /* confdefs.h.  */
17610_ACEOF
17611cat confdefs.h >>conftest.$ac_ext
17612cat >>conftest.$ac_ext <<_ACEOF
17613/* end confdefs.h.  */
17614
17615#include <stdio.h>
17616#include <stdlib.h>
17617
17618int
17619main ()
17620{
17621
17622volatile double A, B;
17623char Buffer[100];
17624A = 1;
17625A /= 10.0;
17626sprintf(Buffer, "%a", A);
17627B = atof(Buffer);
17628if (A != B)
17629  return (1);
17630if (A != 0x1.999999999999ap-4)
17631  return (1);
17632return (0);
17633  ;
17634  return 0;
17635}
17636_ACEOF
17637rm -f conftest$ac_exeext
17638if { (ac_try="$ac_link"
17639case "(($ac_try" in
17640  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17641  *) ac_try_echo=$ac_try;;
17642esac
17643eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17644  (eval "$ac_link") 2>&5
17645  ac_status=$?
17646  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17647  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17648  { (case "(($ac_try" in
17649  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17650  *) ac_try_echo=$ac_try;;
17651esac
17652eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17653  (eval "$ac_try") 2>&5
17654  ac_status=$?
17655  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17656  (exit $ac_status); }; }; then
17657  llvm_cv_c_printf_a=yes
17658else
17659  echo "$as_me: program exited with status $ac_status" >&5
17660echo "$as_me: failed program was:" >&5
17661sed 's/^/| /' conftest.$ac_ext >&5
17662
17663( exit $ac_status )
17664llvmac_cv_c_printf_a=no
17665fi
17666rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17667fi
17668
17669
17670 ac_ext=c
17671ac_cpp='$CPP $CPPFLAGS'
17672ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17673ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17674ac_compiler_gnu=$ac_cv_c_compiler_gnu
17675
17676fi
17677{ echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
17678echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
17679 if test "$llvm_cv_c_printf_a" = "yes"; then
17680
17681cat >>confdefs.h <<\_ACEOF
17682#define HAVE_PRINTF_A 1
17683_ACEOF
17684
17685 fi
17686
17687
17688{ echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
17689echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
17690if test "${ac_cv_func_rand48+set}" = set; then
17691  echo $ECHO_N "(cached) $ECHO_C" >&6
17692else
17693  ac_ext=cpp
17694ac_cpp='$CXXCPP $CPPFLAGS'
17695ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17696ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17697ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17698
17699   cat >conftest.$ac_ext <<_ACEOF
17700/* confdefs.h.  */
17701_ACEOF
17702cat confdefs.h >>conftest.$ac_ext
17703cat >>conftest.$ac_ext <<_ACEOF
17704/* end confdefs.h.  */
17705#include <stdlib.h>
17706int
17707main ()
17708{
17709srand48(0);lrand48();drand48();
17710  ;
17711  return 0;
17712}
17713_ACEOF
17714rm -f conftest.$ac_objext
17715if { (ac_try="$ac_compile"
17716case "(($ac_try" in
17717  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17718  *) ac_try_echo=$ac_try;;
17719esac
17720eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17721  (eval "$ac_compile") 2>conftest.er1
17722  ac_status=$?
17723  grep -v '^ *+' conftest.er1 >conftest.err
17724  rm -f conftest.er1
17725  cat conftest.err >&5
17726  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17727  (exit $ac_status); } &&
17728	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
17729  { (case "(($ac_try" in
17730  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17731  *) ac_try_echo=$ac_try;;
17732esac
17733eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17734  (eval "$ac_try") 2>&5
17735  ac_status=$?
17736  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17737  (exit $ac_status); }; } &&
17738	 { ac_try='test -s conftest.$ac_objext'
17739  { (case "(($ac_try" in
17740  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17741  *) ac_try_echo=$ac_try;;
17742esac
17743eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17744  (eval "$ac_try") 2>&5
17745  ac_status=$?
17746  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17747  (exit $ac_status); }; }; then
17748  ac_cv_func_rand48=yes
17749else
17750  echo "$as_me: failed program was:" >&5
17751sed 's/^/| /' conftest.$ac_ext >&5
17752
17753	ac_cv_func_rand48=no
17754fi
17755
17756rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17757  ac_ext=c
17758ac_cpp='$CPP $CPPFLAGS'
17759ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17760ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17761ac_compiler_gnu=$ac_cv_c_compiler_gnu
17762
17763fi
17764{ echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
17765echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
17766
17767if test "$ac_cv_func_rand48" = "yes" ; then
17768
17769cat >>confdefs.h <<\_ACEOF
17770#define HAVE_RAND48 1
17771_ACEOF
17772
17773fi
17774
17775
17776{ echo "$as_me:$LINENO: checking whether strerror_s is declared" >&5
17777echo $ECHO_N "checking whether strerror_s is declared... $ECHO_C" >&6; }
17778if test "${ac_cv_have_decl_strerror_s+set}" = set; then
17779  echo $ECHO_N "(cached) $ECHO_C" >&6
17780else
17781  cat >conftest.$ac_ext <<_ACEOF
17782/* confdefs.h.  */
17783_ACEOF
17784cat confdefs.h >>conftest.$ac_ext
17785cat >>conftest.$ac_ext <<_ACEOF
17786/* end confdefs.h.  */
17787$ac_includes_default
17788int
17789main ()
17790{
17791#ifndef strerror_s
17792  char *p = (char *) strerror_s;
17793  return !p;
17794#endif
17795
17796  ;
17797  return 0;
17798}
17799_ACEOF
17800rm -f conftest.$ac_objext
17801if { (ac_try="$ac_compile"
17802case "(($ac_try" in
17803  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17804  *) ac_try_echo=$ac_try;;
17805esac
17806eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17807  (eval "$ac_compile") 2>conftest.er1
17808  ac_status=$?
17809  grep -v '^ *+' conftest.er1 >conftest.err
17810  rm -f conftest.er1
17811  cat conftest.err >&5
17812  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17813  (exit $ac_status); } &&
17814	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17815  { (case "(($ac_try" in
17816  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17817  *) ac_try_echo=$ac_try;;
17818esac
17819eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17820  (eval "$ac_try") 2>&5
17821  ac_status=$?
17822  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17823  (exit $ac_status); }; } &&
17824	 { ac_try='test -s conftest.$ac_objext'
17825  { (case "(($ac_try" in
17826  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17827  *) ac_try_echo=$ac_try;;
17828esac
17829eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17830  (eval "$ac_try") 2>&5
17831  ac_status=$?
17832  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17833  (exit $ac_status); }; }; then
17834  ac_cv_have_decl_strerror_s=yes
17835else
17836  echo "$as_me: failed program was:" >&5
17837sed 's/^/| /' conftest.$ac_ext >&5
17838
17839	ac_cv_have_decl_strerror_s=no
17840fi
17841
17842rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17843fi
17844{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_s" >&5
17845echo "${ECHO_T}$ac_cv_have_decl_strerror_s" >&6; }
17846if test $ac_cv_have_decl_strerror_s = yes; then
17847
17848cat >>confdefs.h <<_ACEOF
17849#define HAVE_DECL_STRERROR_S 1
17850_ACEOF
17851
17852
17853else
17854  cat >>confdefs.h <<_ACEOF
17855#define HAVE_DECL_STRERROR_S 0
17856_ACEOF
17857
17858
17859fi
17860
17861
17862
17863if test "$llvm_cv_os_type" = "MingW" ; then
17864  { echo "$as_me:$LINENO: checking for _alloca in -lgcc" >&5
17865echo $ECHO_N "checking for _alloca in -lgcc... $ECHO_C" >&6; }
17866if test "${ac_cv_lib_gcc__alloca+set}" = set; then
17867  echo $ECHO_N "(cached) $ECHO_C" >&6
17868else
17869  ac_check_lib_save_LIBS=$LIBS
17870LIBS="-lgcc  $LIBS"
17871cat >conftest.$ac_ext <<_ACEOF
17872/* confdefs.h.  */
17873_ACEOF
17874cat confdefs.h >>conftest.$ac_ext
17875cat >>conftest.$ac_ext <<_ACEOF
17876/* end confdefs.h.  */
17877
17878/* Override any GCC internal prototype to avoid an error.
17879   Use char because int might match the return type of a GCC
17880   builtin and then its argument prototype would still apply.  */
17881#ifdef __cplusplus
17882extern "C"
17883#endif
17884char _alloca ();
17885int
17886main ()
17887{
17888return _alloca ();
17889  ;
17890  return 0;
17891}
17892_ACEOF
17893rm -f conftest.$ac_objext conftest$ac_exeext
17894if { (ac_try="$ac_link"
17895case "(($ac_try" in
17896  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17897  *) ac_try_echo=$ac_try;;
17898esac
17899eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17900  (eval "$ac_link") 2>conftest.er1
17901  ac_status=$?
17902  grep -v '^ *+' conftest.er1 >conftest.err
17903  rm -f conftest.er1
17904  cat conftest.err >&5
17905  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17906  (exit $ac_status); } &&
17907	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17908  { (case "(($ac_try" in
17909  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17910  *) ac_try_echo=$ac_try;;
17911esac
17912eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17913  (eval "$ac_try") 2>&5
17914  ac_status=$?
17915  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17916  (exit $ac_status); }; } &&
17917	 { ac_try='test -s conftest$ac_exeext'
17918  { (case "(($ac_try" in
17919  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17920  *) ac_try_echo=$ac_try;;
17921esac
17922eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17923  (eval "$ac_try") 2>&5
17924  ac_status=$?
17925  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17926  (exit $ac_status); }; }; then
17927  ac_cv_lib_gcc__alloca=yes
17928else
17929  echo "$as_me: failed program was:" >&5
17930sed 's/^/| /' conftest.$ac_ext >&5
17931
17932	ac_cv_lib_gcc__alloca=no
17933fi
17934
17935rm -f core conftest.err conftest.$ac_objext \
17936      conftest$ac_exeext conftest.$ac_ext
17937LIBS=$ac_check_lib_save_LIBS
17938fi
17939{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc__alloca" >&5
17940echo "${ECHO_T}$ac_cv_lib_gcc__alloca" >&6; }
17941if test $ac_cv_lib_gcc__alloca = yes; then
17942
17943cat >>confdefs.h <<\_ACEOF
17944#define HAVE__ALLOCA 1
17945_ACEOF
17946
17947fi
17948
17949  { echo "$as_me:$LINENO: checking for __alloca in -lgcc" >&5
17950echo $ECHO_N "checking for __alloca in -lgcc... $ECHO_C" >&6; }
17951if test "${ac_cv_lib_gcc___alloca+set}" = set; then
17952  echo $ECHO_N "(cached) $ECHO_C" >&6
17953else
17954  ac_check_lib_save_LIBS=$LIBS
17955LIBS="-lgcc  $LIBS"
17956cat >conftest.$ac_ext <<_ACEOF
17957/* confdefs.h.  */
17958_ACEOF
17959cat confdefs.h >>conftest.$ac_ext
17960cat >>conftest.$ac_ext <<_ACEOF
17961/* end confdefs.h.  */
17962
17963/* Override any GCC internal prototype to avoid an error.
17964   Use char because int might match the return type of a GCC
17965   builtin and then its argument prototype would still apply.  */
17966#ifdef __cplusplus
17967extern "C"
17968#endif
17969char __alloca ();
17970int
17971main ()
17972{
17973return __alloca ();
17974  ;
17975  return 0;
17976}
17977_ACEOF
17978rm -f conftest.$ac_objext conftest$ac_exeext
17979if { (ac_try="$ac_link"
17980case "(($ac_try" in
17981  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17982  *) ac_try_echo=$ac_try;;
17983esac
17984eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17985  (eval "$ac_link") 2>conftest.er1
17986  ac_status=$?
17987  grep -v '^ *+' conftest.er1 >conftest.err
17988  rm -f conftest.er1
17989  cat conftest.err >&5
17990  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17991  (exit $ac_status); } &&
17992	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17993  { (case "(($ac_try" in
17994  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17995  *) ac_try_echo=$ac_try;;
17996esac
17997eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17998  (eval "$ac_try") 2>&5
17999  ac_status=$?
18000  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18001  (exit $ac_status); }; } &&
18002	 { ac_try='test -s conftest$ac_exeext'
18003  { (case "(($ac_try" in
18004  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18005  *) ac_try_echo=$ac_try;;
18006esac
18007eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18008  (eval "$ac_try") 2>&5
18009  ac_status=$?
18010  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18011  (exit $ac_status); }; }; then
18012  ac_cv_lib_gcc___alloca=yes
18013else
18014  echo "$as_me: failed program was:" >&5
18015sed 's/^/| /' conftest.$ac_ext >&5
18016
18017	ac_cv_lib_gcc___alloca=no
18018fi
18019
18020rm -f core conftest.err conftest.$ac_objext \
18021      conftest$ac_exeext conftest.$ac_ext
18022LIBS=$ac_check_lib_save_LIBS
18023fi
18024{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___alloca" >&5
18025echo "${ECHO_T}$ac_cv_lib_gcc___alloca" >&6; }
18026if test $ac_cv_lib_gcc___alloca = yes; then
18027
18028cat >>confdefs.h <<\_ACEOF
18029#define HAVE___ALLOCA 1
18030_ACEOF
18031
18032fi
18033
18034  { echo "$as_me:$LINENO: checking for __chkstk in -lgcc" >&5
18035echo $ECHO_N "checking for __chkstk in -lgcc... $ECHO_C" >&6; }
18036if test "${ac_cv_lib_gcc___chkstk+set}" = set; then
18037  echo $ECHO_N "(cached) $ECHO_C" >&6
18038else
18039  ac_check_lib_save_LIBS=$LIBS
18040LIBS="-lgcc  $LIBS"
18041cat >conftest.$ac_ext <<_ACEOF
18042/* confdefs.h.  */
18043_ACEOF
18044cat confdefs.h >>conftest.$ac_ext
18045cat >>conftest.$ac_ext <<_ACEOF
18046/* end confdefs.h.  */
18047
18048/* Override any GCC internal prototype to avoid an error.
18049   Use char because int might match the return type of a GCC
18050   builtin and then its argument prototype would still apply.  */
18051#ifdef __cplusplus
18052extern "C"
18053#endif
18054char __chkstk ();
18055int
18056main ()
18057{
18058return __chkstk ();
18059  ;
18060  return 0;
18061}
18062_ACEOF
18063rm -f conftest.$ac_objext conftest$ac_exeext
18064if { (ac_try="$ac_link"
18065case "(($ac_try" in
18066  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18067  *) ac_try_echo=$ac_try;;
18068esac
18069eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18070  (eval "$ac_link") 2>conftest.er1
18071  ac_status=$?
18072  grep -v '^ *+' conftest.er1 >conftest.err
18073  rm -f conftest.er1
18074  cat conftest.err >&5
18075  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18076  (exit $ac_status); } &&
18077	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18078  { (case "(($ac_try" in
18079  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18080  *) ac_try_echo=$ac_try;;
18081esac
18082eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18083  (eval "$ac_try") 2>&5
18084  ac_status=$?
18085  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18086  (exit $ac_status); }; } &&
18087	 { ac_try='test -s conftest$ac_exeext'
18088  { (case "(($ac_try" in
18089  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18090  *) ac_try_echo=$ac_try;;
18091esac
18092eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18093  (eval "$ac_try") 2>&5
18094  ac_status=$?
18095  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18096  (exit $ac_status); }; }; then
18097  ac_cv_lib_gcc___chkstk=yes
18098else
18099  echo "$as_me: failed program was:" >&5
18100sed 's/^/| /' conftest.$ac_ext >&5
18101
18102	ac_cv_lib_gcc___chkstk=no
18103fi
18104
18105rm -f core conftest.err conftest.$ac_objext \
18106      conftest$ac_exeext conftest.$ac_ext
18107LIBS=$ac_check_lib_save_LIBS
18108fi
18109{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___chkstk" >&5
18110echo "${ECHO_T}$ac_cv_lib_gcc___chkstk" >&6; }
18111if test $ac_cv_lib_gcc___chkstk = yes; then
18112
18113cat >>confdefs.h <<\_ACEOF
18114#define HAVE___CHKSTK 1
18115_ACEOF
18116
18117fi
18118
18119  { echo "$as_me:$LINENO: checking for ___chkstk in -lgcc" >&5
18120echo $ECHO_N "checking for ___chkstk in -lgcc... $ECHO_C" >&6; }
18121if test "${ac_cv_lib_gcc____chkstk+set}" = set; then
18122  echo $ECHO_N "(cached) $ECHO_C" >&6
18123else
18124  ac_check_lib_save_LIBS=$LIBS
18125LIBS="-lgcc  $LIBS"
18126cat >conftest.$ac_ext <<_ACEOF
18127/* confdefs.h.  */
18128_ACEOF
18129cat confdefs.h >>conftest.$ac_ext
18130cat >>conftest.$ac_ext <<_ACEOF
18131/* end confdefs.h.  */
18132
18133/* Override any GCC internal prototype to avoid an error.
18134   Use char because int might match the return type of a GCC
18135   builtin and then its argument prototype would still apply.  */
18136#ifdef __cplusplus
18137extern "C"
18138#endif
18139char ___chkstk ();
18140int
18141main ()
18142{
18143return ___chkstk ();
18144  ;
18145  return 0;
18146}
18147_ACEOF
18148rm -f conftest.$ac_objext conftest$ac_exeext
18149if { (ac_try="$ac_link"
18150case "(($ac_try" in
18151  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18152  *) ac_try_echo=$ac_try;;
18153esac
18154eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18155  (eval "$ac_link") 2>conftest.er1
18156  ac_status=$?
18157  grep -v '^ *+' conftest.er1 >conftest.err
18158  rm -f conftest.er1
18159  cat conftest.err >&5
18160  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18161  (exit $ac_status); } &&
18162	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18163  { (case "(($ac_try" in
18164  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18165  *) ac_try_echo=$ac_try;;
18166esac
18167eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18168  (eval "$ac_try") 2>&5
18169  ac_status=$?
18170  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18171  (exit $ac_status); }; } &&
18172	 { ac_try='test -s conftest$ac_exeext'
18173  { (case "(($ac_try" in
18174  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18175  *) ac_try_echo=$ac_try;;
18176esac
18177eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18178  (eval "$ac_try") 2>&5
18179  ac_status=$?
18180  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18181  (exit $ac_status); }; }; then
18182  ac_cv_lib_gcc____chkstk=yes
18183else
18184  echo "$as_me: failed program was:" >&5
18185sed 's/^/| /' conftest.$ac_ext >&5
18186
18187	ac_cv_lib_gcc____chkstk=no
18188fi
18189
18190rm -f core conftest.err conftest.$ac_objext \
18191      conftest$ac_exeext conftest.$ac_ext
18192LIBS=$ac_check_lib_save_LIBS
18193fi
18194{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc____chkstk" >&5
18195echo "${ECHO_T}$ac_cv_lib_gcc____chkstk" >&6; }
18196if test $ac_cv_lib_gcc____chkstk = yes; then
18197
18198cat >>confdefs.h <<\_ACEOF
18199#define HAVE____CHKSTK 1
18200_ACEOF
18201
18202fi
18203
18204
18205  { echo "$as_me:$LINENO: checking for __ashldi3 in -lgcc" >&5
18206echo $ECHO_N "checking for __ashldi3 in -lgcc... $ECHO_C" >&6; }
18207if test "${ac_cv_lib_gcc___ashldi3+set}" = set; then
18208  echo $ECHO_N "(cached) $ECHO_C" >&6
18209else
18210  ac_check_lib_save_LIBS=$LIBS
18211LIBS="-lgcc  $LIBS"
18212cat >conftest.$ac_ext <<_ACEOF
18213/* confdefs.h.  */
18214_ACEOF
18215cat confdefs.h >>conftest.$ac_ext
18216cat >>conftest.$ac_ext <<_ACEOF
18217/* end confdefs.h.  */
18218
18219/* Override any GCC internal prototype to avoid an error.
18220   Use char because int might match the return type of a GCC
18221   builtin and then its argument prototype would still apply.  */
18222#ifdef __cplusplus
18223extern "C"
18224#endif
18225char __ashldi3 ();
18226int
18227main ()
18228{
18229return __ashldi3 ();
18230  ;
18231  return 0;
18232}
18233_ACEOF
18234rm -f conftest.$ac_objext conftest$ac_exeext
18235if { (ac_try="$ac_link"
18236case "(($ac_try" in
18237  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18238  *) ac_try_echo=$ac_try;;
18239esac
18240eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18241  (eval "$ac_link") 2>conftest.er1
18242  ac_status=$?
18243  grep -v '^ *+' conftest.er1 >conftest.err
18244  rm -f conftest.er1
18245  cat conftest.err >&5
18246  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18247  (exit $ac_status); } &&
18248	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18249  { (case "(($ac_try" in
18250  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18251  *) ac_try_echo=$ac_try;;
18252esac
18253eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18254  (eval "$ac_try") 2>&5
18255  ac_status=$?
18256  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18257  (exit $ac_status); }; } &&
18258	 { ac_try='test -s conftest$ac_exeext'
18259  { (case "(($ac_try" in
18260  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18261  *) ac_try_echo=$ac_try;;
18262esac
18263eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18264  (eval "$ac_try") 2>&5
18265  ac_status=$?
18266  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18267  (exit $ac_status); }; }; then
18268  ac_cv_lib_gcc___ashldi3=yes
18269else
18270  echo "$as_me: failed program was:" >&5
18271sed 's/^/| /' conftest.$ac_ext >&5
18272
18273	ac_cv_lib_gcc___ashldi3=no
18274fi
18275
18276rm -f core conftest.err conftest.$ac_objext \
18277      conftest$ac_exeext conftest.$ac_ext
18278LIBS=$ac_check_lib_save_LIBS
18279fi
18280{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashldi3" >&5
18281echo "${ECHO_T}$ac_cv_lib_gcc___ashldi3" >&6; }
18282if test $ac_cv_lib_gcc___ashldi3 = yes; then
18283
18284cat >>confdefs.h <<\_ACEOF
18285#define HAVE___ASHLDI3 1
18286_ACEOF
18287
18288fi
18289
18290  { echo "$as_me:$LINENO: checking for __ashrdi3 in -lgcc" >&5
18291echo $ECHO_N "checking for __ashrdi3 in -lgcc... $ECHO_C" >&6; }
18292if test "${ac_cv_lib_gcc___ashrdi3+set}" = set; then
18293  echo $ECHO_N "(cached) $ECHO_C" >&6
18294else
18295  ac_check_lib_save_LIBS=$LIBS
18296LIBS="-lgcc  $LIBS"
18297cat >conftest.$ac_ext <<_ACEOF
18298/* confdefs.h.  */
18299_ACEOF
18300cat confdefs.h >>conftest.$ac_ext
18301cat >>conftest.$ac_ext <<_ACEOF
18302/* end confdefs.h.  */
18303
18304/* Override any GCC internal prototype to avoid an error.
18305   Use char because int might match the return type of a GCC
18306   builtin and then its argument prototype would still apply.  */
18307#ifdef __cplusplus
18308extern "C"
18309#endif
18310char __ashrdi3 ();
18311int
18312main ()
18313{
18314return __ashrdi3 ();
18315  ;
18316  return 0;
18317}
18318_ACEOF
18319rm -f conftest.$ac_objext conftest$ac_exeext
18320if { (ac_try="$ac_link"
18321case "(($ac_try" in
18322  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18323  *) ac_try_echo=$ac_try;;
18324esac
18325eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18326  (eval "$ac_link") 2>conftest.er1
18327  ac_status=$?
18328  grep -v '^ *+' conftest.er1 >conftest.err
18329  rm -f conftest.er1
18330  cat conftest.err >&5
18331  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18332  (exit $ac_status); } &&
18333	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18334  { (case "(($ac_try" in
18335  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18336  *) ac_try_echo=$ac_try;;
18337esac
18338eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18339  (eval "$ac_try") 2>&5
18340  ac_status=$?
18341  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18342  (exit $ac_status); }; } &&
18343	 { ac_try='test -s conftest$ac_exeext'
18344  { (case "(($ac_try" in
18345  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18346  *) ac_try_echo=$ac_try;;
18347esac
18348eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18349  (eval "$ac_try") 2>&5
18350  ac_status=$?
18351  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18352  (exit $ac_status); }; }; then
18353  ac_cv_lib_gcc___ashrdi3=yes
18354else
18355  echo "$as_me: failed program was:" >&5
18356sed 's/^/| /' conftest.$ac_ext >&5
18357
18358	ac_cv_lib_gcc___ashrdi3=no
18359fi
18360
18361rm -f core conftest.err conftest.$ac_objext \
18362      conftest$ac_exeext conftest.$ac_ext
18363LIBS=$ac_check_lib_save_LIBS
18364fi
18365{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashrdi3" >&5
18366echo "${ECHO_T}$ac_cv_lib_gcc___ashrdi3" >&6; }
18367if test $ac_cv_lib_gcc___ashrdi3 = yes; then
18368
18369cat >>confdefs.h <<\_ACEOF
18370#define HAVE___ASHRDI3 1
18371_ACEOF
18372
18373fi
18374
18375  { echo "$as_me:$LINENO: checking for __divdi3 in -lgcc" >&5
18376echo $ECHO_N "checking for __divdi3 in -lgcc... $ECHO_C" >&6; }
18377if test "${ac_cv_lib_gcc___divdi3+set}" = set; then
18378  echo $ECHO_N "(cached) $ECHO_C" >&6
18379else
18380  ac_check_lib_save_LIBS=$LIBS
18381LIBS="-lgcc  $LIBS"
18382cat >conftest.$ac_ext <<_ACEOF
18383/* confdefs.h.  */
18384_ACEOF
18385cat confdefs.h >>conftest.$ac_ext
18386cat >>conftest.$ac_ext <<_ACEOF
18387/* end confdefs.h.  */
18388
18389/* Override any GCC internal prototype to avoid an error.
18390   Use char because int might match the return type of a GCC
18391   builtin and then its argument prototype would still apply.  */
18392#ifdef __cplusplus
18393extern "C"
18394#endif
18395char __divdi3 ();
18396int
18397main ()
18398{
18399return __divdi3 ();
18400  ;
18401  return 0;
18402}
18403_ACEOF
18404rm -f conftest.$ac_objext conftest$ac_exeext
18405if { (ac_try="$ac_link"
18406case "(($ac_try" in
18407  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18408  *) ac_try_echo=$ac_try;;
18409esac
18410eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18411  (eval "$ac_link") 2>conftest.er1
18412  ac_status=$?
18413  grep -v '^ *+' conftest.er1 >conftest.err
18414  rm -f conftest.er1
18415  cat conftest.err >&5
18416  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18417  (exit $ac_status); } &&
18418	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18419  { (case "(($ac_try" in
18420  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18421  *) ac_try_echo=$ac_try;;
18422esac
18423eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18424  (eval "$ac_try") 2>&5
18425  ac_status=$?
18426  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18427  (exit $ac_status); }; } &&
18428	 { ac_try='test -s conftest$ac_exeext'
18429  { (case "(($ac_try" in
18430  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18431  *) ac_try_echo=$ac_try;;
18432esac
18433eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18434  (eval "$ac_try") 2>&5
18435  ac_status=$?
18436  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18437  (exit $ac_status); }; }; then
18438  ac_cv_lib_gcc___divdi3=yes
18439else
18440  echo "$as_me: failed program was:" >&5
18441sed 's/^/| /' conftest.$ac_ext >&5
18442
18443	ac_cv_lib_gcc___divdi3=no
18444fi
18445
18446rm -f core conftest.err conftest.$ac_objext \
18447      conftest$ac_exeext conftest.$ac_ext
18448LIBS=$ac_check_lib_save_LIBS
18449fi
18450{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___divdi3" >&5
18451echo "${ECHO_T}$ac_cv_lib_gcc___divdi3" >&6; }
18452if test $ac_cv_lib_gcc___divdi3 = yes; then
18453
18454cat >>confdefs.h <<\_ACEOF
18455#define HAVE___DIVDI3 1
18456_ACEOF
18457
18458fi
18459
18460  { echo "$as_me:$LINENO: checking for __fixdfdi in -lgcc" >&5
18461echo $ECHO_N "checking for __fixdfdi in -lgcc... $ECHO_C" >&6; }
18462if test "${ac_cv_lib_gcc___fixdfdi+set}" = set; then
18463  echo $ECHO_N "(cached) $ECHO_C" >&6
18464else
18465  ac_check_lib_save_LIBS=$LIBS
18466LIBS="-lgcc  $LIBS"
18467cat >conftest.$ac_ext <<_ACEOF
18468/* confdefs.h.  */
18469_ACEOF
18470cat confdefs.h >>conftest.$ac_ext
18471cat >>conftest.$ac_ext <<_ACEOF
18472/* end confdefs.h.  */
18473
18474/* Override any GCC internal prototype to avoid an error.
18475   Use char because int might match the return type of a GCC
18476   builtin and then its argument prototype would still apply.  */
18477#ifdef __cplusplus
18478extern "C"
18479#endif
18480char __fixdfdi ();
18481int
18482main ()
18483{
18484return __fixdfdi ();
18485  ;
18486  return 0;
18487}
18488_ACEOF
18489rm -f conftest.$ac_objext conftest$ac_exeext
18490if { (ac_try="$ac_link"
18491case "(($ac_try" in
18492  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18493  *) ac_try_echo=$ac_try;;
18494esac
18495eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18496  (eval "$ac_link") 2>conftest.er1
18497  ac_status=$?
18498  grep -v '^ *+' conftest.er1 >conftest.err
18499  rm -f conftest.er1
18500  cat conftest.err >&5
18501  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18502  (exit $ac_status); } &&
18503	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18504  { (case "(($ac_try" in
18505  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18506  *) ac_try_echo=$ac_try;;
18507esac
18508eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18509  (eval "$ac_try") 2>&5
18510  ac_status=$?
18511  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18512  (exit $ac_status); }; } &&
18513	 { ac_try='test -s conftest$ac_exeext'
18514  { (case "(($ac_try" in
18515  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18516  *) ac_try_echo=$ac_try;;
18517esac
18518eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18519  (eval "$ac_try") 2>&5
18520  ac_status=$?
18521  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18522  (exit $ac_status); }; }; then
18523  ac_cv_lib_gcc___fixdfdi=yes
18524else
18525  echo "$as_me: failed program was:" >&5
18526sed 's/^/| /' conftest.$ac_ext >&5
18527
18528	ac_cv_lib_gcc___fixdfdi=no
18529fi
18530
18531rm -f core conftest.err conftest.$ac_objext \
18532      conftest$ac_exeext conftest.$ac_ext
18533LIBS=$ac_check_lib_save_LIBS
18534fi
18535{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixdfdi" >&5
18536echo "${ECHO_T}$ac_cv_lib_gcc___fixdfdi" >&6; }
18537if test $ac_cv_lib_gcc___fixdfdi = yes; then
18538
18539cat >>confdefs.h <<\_ACEOF
18540#define HAVE___FIXDFDI 1
18541_ACEOF
18542
18543fi
18544
18545  { echo "$as_me:$LINENO: checking for __fixsfdi in -lgcc" >&5
18546echo $ECHO_N "checking for __fixsfdi in -lgcc... $ECHO_C" >&6; }
18547if test "${ac_cv_lib_gcc___fixsfdi+set}" = set; then
18548  echo $ECHO_N "(cached) $ECHO_C" >&6
18549else
18550  ac_check_lib_save_LIBS=$LIBS
18551LIBS="-lgcc  $LIBS"
18552cat >conftest.$ac_ext <<_ACEOF
18553/* confdefs.h.  */
18554_ACEOF
18555cat confdefs.h >>conftest.$ac_ext
18556cat >>conftest.$ac_ext <<_ACEOF
18557/* end confdefs.h.  */
18558
18559/* Override any GCC internal prototype to avoid an error.
18560   Use char because int might match the return type of a GCC
18561   builtin and then its argument prototype would still apply.  */
18562#ifdef __cplusplus
18563extern "C"
18564#endif
18565char __fixsfdi ();
18566int
18567main ()
18568{
18569return __fixsfdi ();
18570  ;
18571  return 0;
18572}
18573_ACEOF
18574rm -f conftest.$ac_objext conftest$ac_exeext
18575if { (ac_try="$ac_link"
18576case "(($ac_try" in
18577  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18578  *) ac_try_echo=$ac_try;;
18579esac
18580eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18581  (eval "$ac_link") 2>conftest.er1
18582  ac_status=$?
18583  grep -v '^ *+' conftest.er1 >conftest.err
18584  rm -f conftest.er1
18585  cat conftest.err >&5
18586  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18587  (exit $ac_status); } &&
18588	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18589  { (case "(($ac_try" in
18590  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18591  *) ac_try_echo=$ac_try;;
18592esac
18593eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18594  (eval "$ac_try") 2>&5
18595  ac_status=$?
18596  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18597  (exit $ac_status); }; } &&
18598	 { ac_try='test -s conftest$ac_exeext'
18599  { (case "(($ac_try" in
18600  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18601  *) ac_try_echo=$ac_try;;
18602esac
18603eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18604  (eval "$ac_try") 2>&5
18605  ac_status=$?
18606  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18607  (exit $ac_status); }; }; then
18608  ac_cv_lib_gcc___fixsfdi=yes
18609else
18610  echo "$as_me: failed program was:" >&5
18611sed 's/^/| /' conftest.$ac_ext >&5
18612
18613	ac_cv_lib_gcc___fixsfdi=no
18614fi
18615
18616rm -f core conftest.err conftest.$ac_objext \
18617      conftest$ac_exeext conftest.$ac_ext
18618LIBS=$ac_check_lib_save_LIBS
18619fi
18620{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixsfdi" >&5
18621echo "${ECHO_T}$ac_cv_lib_gcc___fixsfdi" >&6; }
18622if test $ac_cv_lib_gcc___fixsfdi = yes; then
18623
18624cat >>confdefs.h <<\_ACEOF
18625#define HAVE___FIXSFDI 1
18626_ACEOF
18627
18628fi
18629
18630  { echo "$as_me:$LINENO: checking for __floatdidf in -lgcc" >&5
18631echo $ECHO_N "checking for __floatdidf in -lgcc... $ECHO_C" >&6; }
18632if test "${ac_cv_lib_gcc___floatdidf+set}" = set; then
18633  echo $ECHO_N "(cached) $ECHO_C" >&6
18634else
18635  ac_check_lib_save_LIBS=$LIBS
18636LIBS="-lgcc  $LIBS"
18637cat >conftest.$ac_ext <<_ACEOF
18638/* confdefs.h.  */
18639_ACEOF
18640cat confdefs.h >>conftest.$ac_ext
18641cat >>conftest.$ac_ext <<_ACEOF
18642/* end confdefs.h.  */
18643
18644/* Override any GCC internal prototype to avoid an error.
18645   Use char because int might match the return type of a GCC
18646   builtin and then its argument prototype would still apply.  */
18647#ifdef __cplusplus
18648extern "C"
18649#endif
18650char __floatdidf ();
18651int
18652main ()
18653{
18654return __floatdidf ();
18655  ;
18656  return 0;
18657}
18658_ACEOF
18659rm -f conftest.$ac_objext conftest$ac_exeext
18660if { (ac_try="$ac_link"
18661case "(($ac_try" in
18662  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18663  *) ac_try_echo=$ac_try;;
18664esac
18665eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18666  (eval "$ac_link") 2>conftest.er1
18667  ac_status=$?
18668  grep -v '^ *+' conftest.er1 >conftest.err
18669  rm -f conftest.er1
18670  cat conftest.err >&5
18671  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18672  (exit $ac_status); } &&
18673	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18674  { (case "(($ac_try" in
18675  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18676  *) ac_try_echo=$ac_try;;
18677esac
18678eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18679  (eval "$ac_try") 2>&5
18680  ac_status=$?
18681  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18682  (exit $ac_status); }; } &&
18683	 { ac_try='test -s conftest$ac_exeext'
18684  { (case "(($ac_try" in
18685  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18686  *) ac_try_echo=$ac_try;;
18687esac
18688eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18689  (eval "$ac_try") 2>&5
18690  ac_status=$?
18691  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18692  (exit $ac_status); }; }; then
18693  ac_cv_lib_gcc___floatdidf=yes
18694else
18695  echo "$as_me: failed program was:" >&5
18696sed 's/^/| /' conftest.$ac_ext >&5
18697
18698	ac_cv_lib_gcc___floatdidf=no
18699fi
18700
18701rm -f core conftest.err conftest.$ac_objext \
18702      conftest$ac_exeext conftest.$ac_ext
18703LIBS=$ac_check_lib_save_LIBS
18704fi
18705{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___floatdidf" >&5
18706echo "${ECHO_T}$ac_cv_lib_gcc___floatdidf" >&6; }
18707if test $ac_cv_lib_gcc___floatdidf = yes; then
18708
18709cat >>confdefs.h <<\_ACEOF
18710#define HAVE___FLOATDIDF 1
18711_ACEOF
18712
18713fi
18714
18715  { echo "$as_me:$LINENO: checking for __lshrdi3 in -lgcc" >&5
18716echo $ECHO_N "checking for __lshrdi3 in -lgcc... $ECHO_C" >&6; }
18717if test "${ac_cv_lib_gcc___lshrdi3+set}" = set; then
18718  echo $ECHO_N "(cached) $ECHO_C" >&6
18719else
18720  ac_check_lib_save_LIBS=$LIBS
18721LIBS="-lgcc  $LIBS"
18722cat >conftest.$ac_ext <<_ACEOF
18723/* confdefs.h.  */
18724_ACEOF
18725cat confdefs.h >>conftest.$ac_ext
18726cat >>conftest.$ac_ext <<_ACEOF
18727/* end confdefs.h.  */
18728
18729/* Override any GCC internal prototype to avoid an error.
18730   Use char because int might match the return type of a GCC
18731   builtin and then its argument prototype would still apply.  */
18732#ifdef __cplusplus
18733extern "C"
18734#endif
18735char __lshrdi3 ();
18736int
18737main ()
18738{
18739return __lshrdi3 ();
18740  ;
18741  return 0;
18742}
18743_ACEOF
18744rm -f conftest.$ac_objext conftest$ac_exeext
18745if { (ac_try="$ac_link"
18746case "(($ac_try" in
18747  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18748  *) ac_try_echo=$ac_try;;
18749esac
18750eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18751  (eval "$ac_link") 2>conftest.er1
18752  ac_status=$?
18753  grep -v '^ *+' conftest.er1 >conftest.err
18754  rm -f conftest.er1
18755  cat conftest.err >&5
18756  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18757  (exit $ac_status); } &&
18758	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18759  { (case "(($ac_try" in
18760  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18761  *) ac_try_echo=$ac_try;;
18762esac
18763eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18764  (eval "$ac_try") 2>&5
18765  ac_status=$?
18766  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18767  (exit $ac_status); }; } &&
18768	 { ac_try='test -s conftest$ac_exeext'
18769  { (case "(($ac_try" in
18770  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18771  *) ac_try_echo=$ac_try;;
18772esac
18773eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18774  (eval "$ac_try") 2>&5
18775  ac_status=$?
18776  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18777  (exit $ac_status); }; }; then
18778  ac_cv_lib_gcc___lshrdi3=yes
18779else
18780  echo "$as_me: failed program was:" >&5
18781sed 's/^/| /' conftest.$ac_ext >&5
18782
18783	ac_cv_lib_gcc___lshrdi3=no
18784fi
18785
18786rm -f core conftest.err conftest.$ac_objext \
18787      conftest$ac_exeext conftest.$ac_ext
18788LIBS=$ac_check_lib_save_LIBS
18789fi
18790{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___lshrdi3" >&5
18791echo "${ECHO_T}$ac_cv_lib_gcc___lshrdi3" >&6; }
18792if test $ac_cv_lib_gcc___lshrdi3 = yes; then
18793
18794cat >>confdefs.h <<\_ACEOF
18795#define HAVE___LSHRDI3 1
18796_ACEOF
18797
18798fi
18799
18800  { echo "$as_me:$LINENO: checking for __moddi3 in -lgcc" >&5
18801echo $ECHO_N "checking for __moddi3 in -lgcc... $ECHO_C" >&6; }
18802if test "${ac_cv_lib_gcc___moddi3+set}" = set; then
18803  echo $ECHO_N "(cached) $ECHO_C" >&6
18804else
18805  ac_check_lib_save_LIBS=$LIBS
18806LIBS="-lgcc  $LIBS"
18807cat >conftest.$ac_ext <<_ACEOF
18808/* confdefs.h.  */
18809_ACEOF
18810cat confdefs.h >>conftest.$ac_ext
18811cat >>conftest.$ac_ext <<_ACEOF
18812/* end confdefs.h.  */
18813
18814/* Override any GCC internal prototype to avoid an error.
18815   Use char because int might match the return type of a GCC
18816   builtin and then its argument prototype would still apply.  */
18817#ifdef __cplusplus
18818extern "C"
18819#endif
18820char __moddi3 ();
18821int
18822main ()
18823{
18824return __moddi3 ();
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  ac_cv_lib_gcc___moddi3=yes
18864else
18865  echo "$as_me: failed program was:" >&5
18866sed 's/^/| /' conftest.$ac_ext >&5
18867
18868	ac_cv_lib_gcc___moddi3=no
18869fi
18870
18871rm -f core conftest.err conftest.$ac_objext \
18872      conftest$ac_exeext conftest.$ac_ext
18873LIBS=$ac_check_lib_save_LIBS
18874fi
18875{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___moddi3" >&5
18876echo "${ECHO_T}$ac_cv_lib_gcc___moddi3" >&6; }
18877if test $ac_cv_lib_gcc___moddi3 = yes; then
18878
18879cat >>confdefs.h <<\_ACEOF
18880#define HAVE___MODDI3 1
18881_ACEOF
18882
18883fi
18884
18885  { echo "$as_me:$LINENO: checking for __udivdi3 in -lgcc" >&5
18886echo $ECHO_N "checking for __udivdi3 in -lgcc... $ECHO_C" >&6; }
18887if test "${ac_cv_lib_gcc___udivdi3+set}" = set; then
18888  echo $ECHO_N "(cached) $ECHO_C" >&6
18889else
18890  ac_check_lib_save_LIBS=$LIBS
18891LIBS="-lgcc  $LIBS"
18892cat >conftest.$ac_ext <<_ACEOF
18893/* confdefs.h.  */
18894_ACEOF
18895cat confdefs.h >>conftest.$ac_ext
18896cat >>conftest.$ac_ext <<_ACEOF
18897/* end confdefs.h.  */
18898
18899/* Override any GCC internal prototype to avoid an error.
18900   Use char because int might match the return type of a GCC
18901   builtin and then its argument prototype would still apply.  */
18902#ifdef __cplusplus
18903extern "C"
18904#endif
18905char __udivdi3 ();
18906int
18907main ()
18908{
18909return __udivdi3 ();
18910  ;
18911  return 0;
18912}
18913_ACEOF
18914rm -f conftest.$ac_objext conftest$ac_exeext
18915if { (ac_try="$ac_link"
18916case "(($ac_try" in
18917  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18918  *) ac_try_echo=$ac_try;;
18919esac
18920eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18921  (eval "$ac_link") 2>conftest.er1
18922  ac_status=$?
18923  grep -v '^ *+' conftest.er1 >conftest.err
18924  rm -f conftest.er1
18925  cat conftest.err >&5
18926  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18927  (exit $ac_status); } &&
18928	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18929  { (case "(($ac_try" in
18930  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18931  *) ac_try_echo=$ac_try;;
18932esac
18933eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18934  (eval "$ac_try") 2>&5
18935  ac_status=$?
18936  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18937  (exit $ac_status); }; } &&
18938	 { ac_try='test -s conftest$ac_exeext'
18939  { (case "(($ac_try" in
18940  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18941  *) ac_try_echo=$ac_try;;
18942esac
18943eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18944  (eval "$ac_try") 2>&5
18945  ac_status=$?
18946  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18947  (exit $ac_status); }; }; then
18948  ac_cv_lib_gcc___udivdi3=yes
18949else
18950  echo "$as_me: failed program was:" >&5
18951sed 's/^/| /' conftest.$ac_ext >&5
18952
18953	ac_cv_lib_gcc___udivdi3=no
18954fi
18955
18956rm -f core conftest.err conftest.$ac_objext \
18957      conftest$ac_exeext conftest.$ac_ext
18958LIBS=$ac_check_lib_save_LIBS
18959fi
18960{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___udivdi3" >&5
18961echo "${ECHO_T}$ac_cv_lib_gcc___udivdi3" >&6; }
18962if test $ac_cv_lib_gcc___udivdi3 = yes; then
18963
18964cat >>confdefs.h <<\_ACEOF
18965#define HAVE___UDIVDI3 1
18966_ACEOF
18967
18968fi
18969
18970  { echo "$as_me:$LINENO: checking for __umoddi3 in -lgcc" >&5
18971echo $ECHO_N "checking for __umoddi3 in -lgcc... $ECHO_C" >&6; }
18972if test "${ac_cv_lib_gcc___umoddi3+set}" = set; then
18973  echo $ECHO_N "(cached) $ECHO_C" >&6
18974else
18975  ac_check_lib_save_LIBS=$LIBS
18976LIBS="-lgcc  $LIBS"
18977cat >conftest.$ac_ext <<_ACEOF
18978/* confdefs.h.  */
18979_ACEOF
18980cat confdefs.h >>conftest.$ac_ext
18981cat >>conftest.$ac_ext <<_ACEOF
18982/* end confdefs.h.  */
18983
18984/* Override any GCC internal prototype to avoid an error.
18985   Use char because int might match the return type of a GCC
18986   builtin and then its argument prototype would still apply.  */
18987#ifdef __cplusplus
18988extern "C"
18989#endif
18990char __umoddi3 ();
18991int
18992main ()
18993{
18994return __umoddi3 ();
18995  ;
18996  return 0;
18997}
18998_ACEOF
18999rm -f conftest.$ac_objext conftest$ac_exeext
19000if { (ac_try="$ac_link"
19001case "(($ac_try" in
19002  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19003  *) ac_try_echo=$ac_try;;
19004esac
19005eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19006  (eval "$ac_link") 2>conftest.er1
19007  ac_status=$?
19008  grep -v '^ *+' conftest.er1 >conftest.err
19009  rm -f conftest.er1
19010  cat conftest.err >&5
19011  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19012  (exit $ac_status); } &&
19013	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19014  { (case "(($ac_try" in
19015  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19016  *) ac_try_echo=$ac_try;;
19017esac
19018eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19019  (eval "$ac_try") 2>&5
19020  ac_status=$?
19021  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19022  (exit $ac_status); }; } &&
19023	 { ac_try='test -s conftest$ac_exeext'
19024  { (case "(($ac_try" in
19025  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19026  *) ac_try_echo=$ac_try;;
19027esac
19028eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19029  (eval "$ac_try") 2>&5
19030  ac_status=$?
19031  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19032  (exit $ac_status); }; }; then
19033  ac_cv_lib_gcc___umoddi3=yes
19034else
19035  echo "$as_me: failed program was:" >&5
19036sed 's/^/| /' conftest.$ac_ext >&5
19037
19038	ac_cv_lib_gcc___umoddi3=no
19039fi
19040
19041rm -f core conftest.err conftest.$ac_objext \
19042      conftest$ac_exeext conftest.$ac_ext
19043LIBS=$ac_check_lib_save_LIBS
19044fi
19045{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___umoddi3" >&5
19046echo "${ECHO_T}$ac_cv_lib_gcc___umoddi3" >&6; }
19047if test $ac_cv_lib_gcc___umoddi3 = yes; then
19048
19049cat >>confdefs.h <<\_ACEOF
19050#define HAVE___UMODDI3 1
19051_ACEOF
19052
19053fi
19054
19055
19056  { echo "$as_me:$LINENO: checking for __main in -lgcc" >&5
19057echo $ECHO_N "checking for __main in -lgcc... $ECHO_C" >&6; }
19058if test "${ac_cv_lib_gcc___main+set}" = set; then
19059  echo $ECHO_N "(cached) $ECHO_C" >&6
19060else
19061  ac_check_lib_save_LIBS=$LIBS
19062LIBS="-lgcc  $LIBS"
19063cat >conftest.$ac_ext <<_ACEOF
19064/* confdefs.h.  */
19065_ACEOF
19066cat confdefs.h >>conftest.$ac_ext
19067cat >>conftest.$ac_ext <<_ACEOF
19068/* end confdefs.h.  */
19069
19070/* Override any GCC internal prototype to avoid an error.
19071   Use char because int might match the return type of a GCC
19072   builtin and then its argument prototype would still apply.  */
19073#ifdef __cplusplus
19074extern "C"
19075#endif
19076char __main ();
19077int
19078main ()
19079{
19080return __main ();
19081  ;
19082  return 0;
19083}
19084_ACEOF
19085rm -f conftest.$ac_objext conftest$ac_exeext
19086if { (ac_try="$ac_link"
19087case "(($ac_try" in
19088  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19089  *) ac_try_echo=$ac_try;;
19090esac
19091eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19092  (eval "$ac_link") 2>conftest.er1
19093  ac_status=$?
19094  grep -v '^ *+' conftest.er1 >conftest.err
19095  rm -f conftest.er1
19096  cat conftest.err >&5
19097  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19098  (exit $ac_status); } &&
19099	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19100  { (case "(($ac_try" in
19101  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19102  *) ac_try_echo=$ac_try;;
19103esac
19104eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19105  (eval "$ac_try") 2>&5
19106  ac_status=$?
19107  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19108  (exit $ac_status); }; } &&
19109	 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
19119  ac_cv_lib_gcc___main=yes
19120else
19121  echo "$as_me: failed program was:" >&5
19122sed 's/^/| /' conftest.$ac_ext >&5
19123
19124	ac_cv_lib_gcc___main=no
19125fi
19126
19127rm -f core conftest.err conftest.$ac_objext \
19128      conftest$ac_exeext conftest.$ac_ext
19129LIBS=$ac_check_lib_save_LIBS
19130fi
19131{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___main" >&5
19132echo "${ECHO_T}$ac_cv_lib_gcc___main" >&6; }
19133if test $ac_cv_lib_gcc___main = yes; then
19134
19135cat >>confdefs.h <<\_ACEOF
19136#define HAVE___MAIN 1
19137_ACEOF
19138
19139fi
19140
19141  { echo "$as_me:$LINENO: checking for __cmpdi2 in -lgcc" >&5
19142echo $ECHO_N "checking for __cmpdi2 in -lgcc... $ECHO_C" >&6; }
19143if test "${ac_cv_lib_gcc___cmpdi2+set}" = set; then
19144  echo $ECHO_N "(cached) $ECHO_C" >&6
19145else
19146  ac_check_lib_save_LIBS=$LIBS
19147LIBS="-lgcc  $LIBS"
19148cat >conftest.$ac_ext <<_ACEOF
19149/* confdefs.h.  */
19150_ACEOF
19151cat confdefs.h >>conftest.$ac_ext
19152cat >>conftest.$ac_ext <<_ACEOF
19153/* end confdefs.h.  */
19154
19155/* Override any GCC internal prototype to avoid an error.
19156   Use char because int might match the return type of a GCC
19157   builtin and then its argument prototype would still apply.  */
19158#ifdef __cplusplus
19159extern "C"
19160#endif
19161char __cmpdi2 ();
19162int
19163main ()
19164{
19165return __cmpdi2 ();
19166  ;
19167  return 0;
19168}
19169_ACEOF
19170rm -f conftest.$ac_objext conftest$ac_exeext
19171if { (ac_try="$ac_link"
19172case "(($ac_try" in
19173  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19174  *) ac_try_echo=$ac_try;;
19175esac
19176eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19177  (eval "$ac_link") 2>conftest.er1
19178  ac_status=$?
19179  grep -v '^ *+' conftest.er1 >conftest.err
19180  rm -f conftest.er1
19181  cat conftest.err >&5
19182  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19183  (exit $ac_status); } &&
19184	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19185  { (case "(($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_try") 2>&5
19191  ac_status=$?
19192  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19193  (exit $ac_status); }; } &&
19194	 { ac_try='test -s conftest$ac_exeext'
19195  { (case "(($ac_try" in
19196  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19197  *) ac_try_echo=$ac_try;;
19198esac
19199eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19200  (eval "$ac_try") 2>&5
19201  ac_status=$?
19202  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19203  (exit $ac_status); }; }; then
19204  ac_cv_lib_gcc___cmpdi2=yes
19205else
19206  echo "$as_me: failed program was:" >&5
19207sed 's/^/| /' conftest.$ac_ext >&5
19208
19209	ac_cv_lib_gcc___cmpdi2=no
19210fi
19211
19212rm -f core conftest.err conftest.$ac_objext \
19213      conftest$ac_exeext conftest.$ac_ext
19214LIBS=$ac_check_lib_save_LIBS
19215fi
19216{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___cmpdi2" >&5
19217echo "${ECHO_T}$ac_cv_lib_gcc___cmpdi2" >&6; }
19218if test $ac_cv_lib_gcc___cmpdi2 = yes; then
19219
19220cat >>confdefs.h <<\_ACEOF
19221#define HAVE___CMPDI2 1
19222_ACEOF
19223
19224fi
19225
19226fi
19227
19228if test "$llvm_cv_os_type" = "MingW" ; then
19229  { echo "$as_me:$LINENO: checking whether EnumerateLoadedModules() accepts new decl" >&5
19230echo $ECHO_N "checking whether EnumerateLoadedModules() accepts new decl... $ECHO_C" >&6; }
19231  cat >conftest.$ac_ext <<_ACEOF
19232#include <windows.h>
19233#include <imagehlp.h>
19234extern void foo(PENUMLOADED_MODULES_CALLBACK);
19235extern void foo(BOOL(CALLBACK*)(PCSTR,ULONG_PTR,ULONG,PVOID));
19236_ACEOF
19237rm -f conftest.$ac_objext
19238if { (ac_try="$ac_compile"
19239case "(($ac_try" in
19240  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19241  *) ac_try_echo=$ac_try;;
19242esac
19243eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19244  (eval "$ac_compile") 2>conftest.er1
19245  ac_status=$?
19246  grep -v '^ *+' conftest.er1 >conftest.err
19247  rm -f conftest.er1
19248  cat conftest.err >&5
19249  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19250  (exit $ac_status); } &&
19251	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19252  { (case "(($ac_try" in
19253  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19254  *) ac_try_echo=$ac_try;;
19255esac
19256eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19257  (eval "$ac_try") 2>&5
19258  ac_status=$?
19259  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19260  (exit $ac_status); }; } &&
19261	 { ac_try='test -s conftest.$ac_objext'
19262  { (case "(($ac_try" in
19263  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19264  *) ac_try_echo=$ac_try;;
19265esac
19266eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19267  (eval "$ac_try") 2>&5
19268  ac_status=$?
19269  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19270  (exit $ac_status); }; }; then
19271
19272  { echo "$as_me:$LINENO: result: yes" >&5
19273echo "${ECHO_T}yes" >&6; }
19274  llvm_cv_win32_elmcb_pcstr="PCSTR"
19275
19276else
19277  echo "$as_me: failed program was:" >&5
19278sed 's/^/| /' conftest.$ac_ext >&5
19279
19280
19281  { echo "$as_me:$LINENO: result: no" >&5
19282echo "${ECHO_T}no" >&6; }
19283  llvm_cv_win32_elmcb_pcstr="PSTR"
19284
19285fi
19286
19287rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19288
19289cat >>confdefs.h <<_ACEOF
19290#define WIN32_ELMCB_PCSTR $llvm_cv_win32_elmcb_pcstr
19291_ACEOF
19292
19293fi
19294
19295
19296{ echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
19297echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
19298if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
19299  echo $ECHO_N "(cached) $ECHO_C" >&6
19300else
19301  ac_ext=cpp
19302ac_cpp='$CXXCPP $CPPFLAGS'
19303ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19304ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19305ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19306
19307   cat >conftest.$ac_ext <<_ACEOF
19308/* confdefs.h.  */
19309_ACEOF
19310cat confdefs.h >>conftest.$ac_ext
19311cat >>conftest.$ac_ext <<_ACEOF
19312/* end confdefs.h.  */
19313#include <math.h>
19314int
19315main ()
19316{
19317float f; isnan(f);
19318  ;
19319  return 0;
19320}
19321_ACEOF
19322rm -f conftest.$ac_objext
19323if { (ac_try="$ac_compile"
19324case "(($ac_try" in
19325  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19326  *) ac_try_echo=$ac_try;;
19327esac
19328eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19329  (eval "$ac_compile") 2>conftest.er1
19330  ac_status=$?
19331  grep -v '^ *+' conftest.er1 >conftest.err
19332  rm -f conftest.er1
19333  cat conftest.err >&5
19334  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19335  (exit $ac_status); } &&
19336	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19337  { (case "(($ac_try" in
19338  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19339  *) ac_try_echo=$ac_try;;
19340esac
19341eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19342  (eval "$ac_try") 2>&5
19343  ac_status=$?
19344  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19345  (exit $ac_status); }; } &&
19346	 { ac_try='test -s conftest.$ac_objext'
19347  { (case "(($ac_try" in
19348  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19349  *) ac_try_echo=$ac_try;;
19350esac
19351eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19352  (eval "$ac_try") 2>&5
19353  ac_status=$?
19354  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19355  (exit $ac_status); }; }; then
19356  ac_cv_func_isnan_in_math_h=yes
19357else
19358  echo "$as_me: failed program was:" >&5
19359sed 's/^/| /' conftest.$ac_ext >&5
19360
19361	ac_cv_func_isnan_in_math_h=no
19362fi
19363
19364rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19365  ac_ext=c
19366ac_cpp='$CPP $CPPFLAGS'
19367ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19368ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19369ac_compiler_gnu=$ac_cv_c_compiler_gnu
19370
19371fi
19372{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
19373echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
19374
19375
19376if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
19377
19378cat >>confdefs.h <<\_ACEOF
19379#define HAVE_ISNAN_IN_MATH_H 1
19380_ACEOF
19381
19382fi
19383
19384{ echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
19385echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
19386if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
19387  echo $ECHO_N "(cached) $ECHO_C" >&6
19388else
19389  ac_ext=cpp
19390ac_cpp='$CXXCPP $CPPFLAGS'
19391ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19392ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19393ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19394
19395   cat >conftest.$ac_ext <<_ACEOF
19396/* confdefs.h.  */
19397_ACEOF
19398cat confdefs.h >>conftest.$ac_ext
19399cat >>conftest.$ac_ext <<_ACEOF
19400/* end confdefs.h.  */
19401#include <cmath>
19402int
19403main ()
19404{
19405float f; isnan(f);
19406  ;
19407  return 0;
19408}
19409_ACEOF
19410rm -f conftest.$ac_objext
19411if { (ac_try="$ac_compile"
19412case "(($ac_try" in
19413  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19414  *) ac_try_echo=$ac_try;;
19415esac
19416eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19417  (eval "$ac_compile") 2>conftest.er1
19418  ac_status=$?
19419  grep -v '^ *+' conftest.er1 >conftest.err
19420  rm -f conftest.er1
19421  cat conftest.err >&5
19422  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19423  (exit $ac_status); } &&
19424	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19425  { (case "(($ac_try" in
19426  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19427  *) ac_try_echo=$ac_try;;
19428esac
19429eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19430  (eval "$ac_try") 2>&5
19431  ac_status=$?
19432  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19433  (exit $ac_status); }; } &&
19434	 { ac_try='test -s conftest.$ac_objext'
19435  { (case "(($ac_try" in
19436  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19437  *) ac_try_echo=$ac_try;;
19438esac
19439eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19440  (eval "$ac_try") 2>&5
19441  ac_status=$?
19442  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19443  (exit $ac_status); }; }; then
19444  ac_cv_func_isnan_in_cmath=yes
19445else
19446  echo "$as_me: failed program was:" >&5
19447sed 's/^/| /' conftest.$ac_ext >&5
19448
19449	ac_cv_func_isnan_in_cmath=no
19450fi
19451
19452rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19453  ac_ext=c
19454ac_cpp='$CPP $CPPFLAGS'
19455ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19456ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19457ac_compiler_gnu=$ac_cv_c_compiler_gnu
19458
19459fi
19460{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
19461echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
19462
19463if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
19464
19465cat >>confdefs.h <<\_ACEOF
19466#define HAVE_ISNAN_IN_CMATH 1
19467_ACEOF
19468
19469fi
19470
19471{ echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
19472echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
19473if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
19474  echo $ECHO_N "(cached) $ECHO_C" >&6
19475else
19476  ac_ext=cpp
19477ac_cpp='$CXXCPP $CPPFLAGS'
19478ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19479ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19480ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19481
19482   cat >conftest.$ac_ext <<_ACEOF
19483/* confdefs.h.  */
19484_ACEOF
19485cat confdefs.h >>conftest.$ac_ext
19486cat >>conftest.$ac_ext <<_ACEOF
19487/* end confdefs.h.  */
19488#include <cmath>
19489int
19490main ()
19491{
19492float f; std::isnan(f);
19493  ;
19494  return 0;
19495}
19496_ACEOF
19497rm -f conftest.$ac_objext
19498if { (ac_try="$ac_compile"
19499case "(($ac_try" in
19500  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19501  *) ac_try_echo=$ac_try;;
19502esac
19503eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19504  (eval "$ac_compile") 2>conftest.er1
19505  ac_status=$?
19506  grep -v '^ *+' conftest.er1 >conftest.err
19507  rm -f conftest.er1
19508  cat conftest.err >&5
19509  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19510  (exit $ac_status); } &&
19511	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19512  { (case "(($ac_try" in
19513  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19514  *) ac_try_echo=$ac_try;;
19515esac
19516eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19517  (eval "$ac_try") 2>&5
19518  ac_status=$?
19519  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19520  (exit $ac_status); }; } &&
19521	 { ac_try='test -s conftest.$ac_objext'
19522  { (case "(($ac_try" in
19523  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19524  *) ac_try_echo=$ac_try;;
19525esac
19526eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19527  (eval "$ac_try") 2>&5
19528  ac_status=$?
19529  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19530  (exit $ac_status); }; }; then
19531  ac_cv_func_std_isnan_in_cmath=yes
19532else
19533  echo "$as_me: failed program was:" >&5
19534sed 's/^/| /' conftest.$ac_ext >&5
19535
19536	ac_cv_func_std_isnan_in_cmath=no
19537fi
19538
19539rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19540  ac_ext=c
19541ac_cpp='$CPP $CPPFLAGS'
19542ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19543ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19544ac_compiler_gnu=$ac_cv_c_compiler_gnu
19545
19546fi
19547{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
19548echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
19549
19550if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
19551
19552cat >>confdefs.h <<\_ACEOF
19553#define HAVE_STD_ISNAN_IN_CMATH 1
19554_ACEOF
19555
19556fi
19557
19558
19559{ echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
19560echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
19561if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
19562  echo $ECHO_N "(cached) $ECHO_C" >&6
19563else
19564  ac_ext=cpp
19565ac_cpp='$CXXCPP $CPPFLAGS'
19566ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19567ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19568ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19569
19570   cat >conftest.$ac_ext <<_ACEOF
19571/* confdefs.h.  */
19572_ACEOF
19573cat confdefs.h >>conftest.$ac_ext
19574cat >>conftest.$ac_ext <<_ACEOF
19575/* end confdefs.h.  */
19576#include <math.h>
19577int
19578main ()
19579{
19580float f; isinf(f);
19581  ;
19582  return 0;
19583}
19584_ACEOF
19585rm -f conftest.$ac_objext
19586if { (ac_try="$ac_compile"
19587case "(($ac_try" in
19588  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19589  *) ac_try_echo=$ac_try;;
19590esac
19591eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19592  (eval "$ac_compile") 2>conftest.er1
19593  ac_status=$?
19594  grep -v '^ *+' conftest.er1 >conftest.err
19595  rm -f conftest.er1
19596  cat conftest.err >&5
19597  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19598  (exit $ac_status); } &&
19599	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19600  { (case "(($ac_try" in
19601  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19602  *) ac_try_echo=$ac_try;;
19603esac
19604eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19605  (eval "$ac_try") 2>&5
19606  ac_status=$?
19607  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19608  (exit $ac_status); }; } &&
19609	 { ac_try='test -s conftest.$ac_objext'
19610  { (case "(($ac_try" in
19611  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19612  *) ac_try_echo=$ac_try;;
19613esac
19614eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19615  (eval "$ac_try") 2>&5
19616  ac_status=$?
19617  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19618  (exit $ac_status); }; }; then
19619  ac_cv_func_isinf_in_math_h=yes
19620else
19621  echo "$as_me: failed program was:" >&5
19622sed 's/^/| /' conftest.$ac_ext >&5
19623
19624	ac_cv_func_isinf_in_math_h=no
19625fi
19626
19627rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19628  ac_ext=c
19629ac_cpp='$CPP $CPPFLAGS'
19630ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19631ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19632ac_compiler_gnu=$ac_cv_c_compiler_gnu
19633
19634fi
19635{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
19636echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
19637
19638if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
19639
19640cat >>confdefs.h <<\_ACEOF
19641#define HAVE_ISINF_IN_MATH_H 1
19642_ACEOF
19643
19644fi
19645
19646{ echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
19647echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
19648if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
19649  echo $ECHO_N "(cached) $ECHO_C" >&6
19650else
19651  ac_ext=cpp
19652ac_cpp='$CXXCPP $CPPFLAGS'
19653ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19654ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19655ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19656
19657   cat >conftest.$ac_ext <<_ACEOF
19658/* confdefs.h.  */
19659_ACEOF
19660cat confdefs.h >>conftest.$ac_ext
19661cat >>conftest.$ac_ext <<_ACEOF
19662/* end confdefs.h.  */
19663#include <cmath>
19664int
19665main ()
19666{
19667float f; isinf(f);
19668  ;
19669  return 0;
19670}
19671_ACEOF
19672rm -f conftest.$ac_objext
19673if { (ac_try="$ac_compile"
19674case "(($ac_try" in
19675  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19676  *) ac_try_echo=$ac_try;;
19677esac
19678eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19679  (eval "$ac_compile") 2>conftest.er1
19680  ac_status=$?
19681  grep -v '^ *+' conftest.er1 >conftest.err
19682  rm -f conftest.er1
19683  cat conftest.err >&5
19684  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19685  (exit $ac_status); } &&
19686	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19687  { (case "(($ac_try" in
19688  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19689  *) ac_try_echo=$ac_try;;
19690esac
19691eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19692  (eval "$ac_try") 2>&5
19693  ac_status=$?
19694  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19695  (exit $ac_status); }; } &&
19696	 { ac_try='test -s conftest.$ac_objext'
19697  { (case "(($ac_try" in
19698  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19699  *) ac_try_echo=$ac_try;;
19700esac
19701eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19702  (eval "$ac_try") 2>&5
19703  ac_status=$?
19704  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19705  (exit $ac_status); }; }; then
19706  ac_cv_func_isinf_in_cmath=yes
19707else
19708  echo "$as_me: failed program was:" >&5
19709sed 's/^/| /' conftest.$ac_ext >&5
19710
19711	ac_cv_func_isinf_in_cmath=no
19712fi
19713
19714rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19715  ac_ext=c
19716ac_cpp='$CPP $CPPFLAGS'
19717ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19718ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19719ac_compiler_gnu=$ac_cv_c_compiler_gnu
19720
19721fi
19722{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
19723echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
19724
19725if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
19726
19727cat >>confdefs.h <<\_ACEOF
19728#define HAVE_ISINF_IN_CMATH 1
19729_ACEOF
19730
19731fi
19732
19733{ echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
19734echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
19735if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
19736  echo $ECHO_N "(cached) $ECHO_C" >&6
19737else
19738  ac_ext=cpp
19739ac_cpp='$CXXCPP $CPPFLAGS'
19740ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19741ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19742ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19743
19744   cat >conftest.$ac_ext <<_ACEOF
19745/* confdefs.h.  */
19746_ACEOF
19747cat confdefs.h >>conftest.$ac_ext
19748cat >>conftest.$ac_ext <<_ACEOF
19749/* end confdefs.h.  */
19750#include <cmath>
19751int
19752main ()
19753{
19754float f; std::isinf(f)}
19755  ;
19756  return 0;
19757}
19758_ACEOF
19759rm -f conftest.$ac_objext
19760if { (ac_try="$ac_compile"
19761case "(($ac_try" in
19762  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19763  *) ac_try_echo=$ac_try;;
19764esac
19765eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19766  (eval "$ac_compile") 2>conftest.er1
19767  ac_status=$?
19768  grep -v '^ *+' conftest.er1 >conftest.err
19769  rm -f conftest.er1
19770  cat conftest.err >&5
19771  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19772  (exit $ac_status); } &&
19773	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19774  { (case "(($ac_try" in
19775  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19776  *) ac_try_echo=$ac_try;;
19777esac
19778eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19779  (eval "$ac_try") 2>&5
19780  ac_status=$?
19781  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19782  (exit $ac_status); }; } &&
19783	 { ac_try='test -s conftest.$ac_objext'
19784  { (case "(($ac_try" in
19785  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19786  *) ac_try_echo=$ac_try;;
19787esac
19788eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19789  (eval "$ac_try") 2>&5
19790  ac_status=$?
19791  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19792  (exit $ac_status); }; }; then
19793  ac_cv_func_std_isinf_in_cmath=yes
19794else
19795  echo "$as_me: failed program was:" >&5
19796sed 's/^/| /' conftest.$ac_ext >&5
19797
19798	ac_cv_func_std_isinf_in_cmath=no
19799fi
19800
19801rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19802  ac_ext=c
19803ac_cpp='$CPP $CPPFLAGS'
19804ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19805ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19806ac_compiler_gnu=$ac_cv_c_compiler_gnu
19807
19808fi
19809{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
19810echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
19811
19812if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
19813
19814cat >>confdefs.h <<\_ACEOF
19815#define HAVE_STD_ISINF_IN_CMATH 1
19816_ACEOF
19817
19818fi
19819
19820{ echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
19821echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
19822if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
19823  echo $ECHO_N "(cached) $ECHO_C" >&6
19824else
19825  ac_ext=cpp
19826ac_cpp='$CXXCPP $CPPFLAGS'
19827ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19828ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19829ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19830
19831   cat >conftest.$ac_ext <<_ACEOF
19832/* confdefs.h.  */
19833_ACEOF
19834cat confdefs.h >>conftest.$ac_ext
19835cat >>conftest.$ac_ext <<_ACEOF
19836/* end confdefs.h.  */
19837#include <ieeefp.h>
19838int
19839main ()
19840{
19841float f; finite(f);
19842  ;
19843  return 0;
19844}
19845_ACEOF
19846rm -f conftest.$ac_objext
19847if { (ac_try="$ac_compile"
19848case "(($ac_try" in
19849  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19850  *) ac_try_echo=$ac_try;;
19851esac
19852eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19853  (eval "$ac_compile") 2>conftest.er1
19854  ac_status=$?
19855  grep -v '^ *+' conftest.er1 >conftest.err
19856  rm -f conftest.er1
19857  cat conftest.err >&5
19858  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19859  (exit $ac_status); } &&
19860	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19861  { (case "(($ac_try" in
19862  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19863  *) ac_try_echo=$ac_try;;
19864esac
19865eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19866  (eval "$ac_try") 2>&5
19867  ac_status=$?
19868  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19869  (exit $ac_status); }; } &&
19870	 { ac_try='test -s conftest.$ac_objext'
19871  { (case "(($ac_try" in
19872  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19873  *) ac_try_echo=$ac_try;;
19874esac
19875eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19876  (eval "$ac_try") 2>&5
19877  ac_status=$?
19878  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19879  (exit $ac_status); }; }; then
19880  ac_cv_func_finite_in_ieeefp_h=yes
19881else
19882  echo "$as_me: failed program was:" >&5
19883sed 's/^/| /' conftest.$ac_ext >&5
19884
19885	ac_cv_func_finite_in_ieeefp_h=no
19886fi
19887
19888rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19889  ac_ext=c
19890ac_cpp='$CPP $CPPFLAGS'
19891ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19892ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19893ac_compiler_gnu=$ac_cv_c_compiler_gnu
19894
19895fi
19896{ echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
19897echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
19898
19899if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
19900
19901cat >>confdefs.h <<\_ACEOF
19902#define HAVE_FINITE_IN_IEEEFP_H 1
19903_ACEOF
19904
19905fi
19906
19907
19908
19909if test "$llvm_cv_platform_type" = "Unix" ; then
19910
19911
19912for ac_header in stdlib.h unistd.h
19913do
19914as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19915if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19916  { echo "$as_me:$LINENO: checking for $ac_header" >&5
19917echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19918if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19919  echo $ECHO_N "(cached) $ECHO_C" >&6
19920fi
19921ac_res=`eval echo '${'$as_ac_Header'}'`
19922	       { echo "$as_me:$LINENO: result: $ac_res" >&5
19923echo "${ECHO_T}$ac_res" >&6; }
19924else
19925  # Is the header compilable?
19926{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
19927echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19928cat >conftest.$ac_ext <<_ACEOF
19929/* confdefs.h.  */
19930_ACEOF
19931cat confdefs.h >>conftest.$ac_ext
19932cat >>conftest.$ac_ext <<_ACEOF
19933/* end confdefs.h.  */
19934$ac_includes_default
19935#include <$ac_header>
19936_ACEOF
19937rm -f conftest.$ac_objext
19938if { (ac_try="$ac_compile"
19939case "(($ac_try" in
19940  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19941  *) ac_try_echo=$ac_try;;
19942esac
19943eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19944  (eval "$ac_compile") 2>conftest.er1
19945  ac_status=$?
19946  grep -v '^ *+' conftest.er1 >conftest.err
19947  rm -f conftest.er1
19948  cat conftest.err >&5
19949  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19950  (exit $ac_status); } &&
19951	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19952  { (case "(($ac_try" in
19953  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19954  *) ac_try_echo=$ac_try;;
19955esac
19956eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19957  (eval "$ac_try") 2>&5
19958  ac_status=$?
19959  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19960  (exit $ac_status); }; } &&
19961	 { ac_try='test -s conftest.$ac_objext'
19962  { (case "(($ac_try" in
19963  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19964  *) ac_try_echo=$ac_try;;
19965esac
19966eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19967  (eval "$ac_try") 2>&5
19968  ac_status=$?
19969  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19970  (exit $ac_status); }; }; then
19971  ac_header_compiler=yes
19972else
19973  echo "$as_me: failed program was:" >&5
19974sed 's/^/| /' conftest.$ac_ext >&5
19975
19976	ac_header_compiler=no
19977fi
19978
19979rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19980{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19981echo "${ECHO_T}$ac_header_compiler" >&6; }
19982
19983# Is the header present?
19984{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
19985echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
19986cat >conftest.$ac_ext <<_ACEOF
19987/* confdefs.h.  */
19988_ACEOF
19989cat confdefs.h >>conftest.$ac_ext
19990cat >>conftest.$ac_ext <<_ACEOF
19991/* end confdefs.h.  */
19992#include <$ac_header>
19993_ACEOF
19994if { (ac_try="$ac_cpp conftest.$ac_ext"
19995case "(($ac_try" in
19996  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19997  *) ac_try_echo=$ac_try;;
19998esac
19999eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20000  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20001  ac_status=$?
20002  grep -v '^ *+' conftest.er1 >conftest.err
20003  rm -f conftest.er1
20004  cat conftest.err >&5
20005  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20006  (exit $ac_status); } >/dev/null; then
20007  if test -s conftest.err; then
20008    ac_cpp_err=$ac_c_preproc_warn_flag
20009    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20010  else
20011    ac_cpp_err=
20012  fi
20013else
20014  ac_cpp_err=yes
20015fi
20016if test -z "$ac_cpp_err"; then
20017  ac_header_preproc=yes
20018else
20019  echo "$as_me: failed program was:" >&5
20020sed 's/^/| /' conftest.$ac_ext >&5
20021
20022  ac_header_preproc=no
20023fi
20024
20025rm -f conftest.err conftest.$ac_ext
20026{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20027echo "${ECHO_T}$ac_header_preproc" >&6; }
20028
20029# So?  What about this header?
20030case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20031  yes:no: )
20032    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20033echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20034    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20035echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20036    ac_header_preproc=yes
20037    ;;
20038  no:yes:* )
20039    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20040echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20041    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20042echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20043    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20044echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20045    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20046echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20047    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20048echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20049    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20050echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20051    ( cat <<\_ASBOX
20052## ------------------------------------ ##
20053## Report this to http://llvm.org/bugs/ ##
20054## ------------------------------------ ##
20055_ASBOX
20056     ) | sed "s/^/$as_me: WARNING:     /" >&2
20057    ;;
20058esac
20059{ echo "$as_me:$LINENO: checking for $ac_header" >&5
20060echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20061if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20062  echo $ECHO_N "(cached) $ECHO_C" >&6
20063else
20064  eval "$as_ac_Header=\$ac_header_preproc"
20065fi
20066ac_res=`eval echo '${'$as_ac_Header'}'`
20067	       { echo "$as_me:$LINENO: result: $ac_res" >&5
20068echo "${ECHO_T}$ac_res" >&6; }
20069
20070fi
20071if test `eval echo '${'$as_ac_Header'}'` = yes; then
20072  cat >>confdefs.h <<_ACEOF
20073#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20074_ACEOF
20075
20076fi
20077
20078done
20079
20080
20081for ac_func in getpagesize
20082do
20083as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20084{ echo "$as_me:$LINENO: checking for $ac_func" >&5
20085echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20086if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20087  echo $ECHO_N "(cached) $ECHO_C" >&6
20088else
20089  cat >conftest.$ac_ext <<_ACEOF
20090/* confdefs.h.  */
20091_ACEOF
20092cat confdefs.h >>conftest.$ac_ext
20093cat >>conftest.$ac_ext <<_ACEOF
20094/* end confdefs.h.  */
20095/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20096   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20097#define $ac_func innocuous_$ac_func
20098
20099/* System header to define __stub macros and hopefully few prototypes,
20100    which can conflict with char $ac_func (); below.
20101    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20102    <limits.h> exists even on freestanding compilers.  */
20103
20104#ifdef __STDC__
20105# include <limits.h>
20106#else
20107# include <assert.h>
20108#endif
20109
20110#undef $ac_func
20111
20112/* Override any GCC internal prototype to avoid an error.
20113   Use char because int might match the return type of a GCC
20114   builtin and then its argument prototype would still apply.  */
20115#ifdef __cplusplus
20116extern "C"
20117#endif
20118char $ac_func ();
20119/* The GNU C library defines this for functions which it implements
20120    to always fail with ENOSYS.  Some functions are actually named
20121    something starting with __ and the normal name is an alias.  */
20122#if defined __stub_$ac_func || defined __stub___$ac_func
20123choke me
20124#endif
20125
20126int
20127main ()
20128{
20129return $ac_func ();
20130  ;
20131  return 0;
20132}
20133_ACEOF
20134rm -f conftest.$ac_objext conftest$ac_exeext
20135if { (ac_try="$ac_link"
20136case "(($ac_try" in
20137  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20138  *) ac_try_echo=$ac_try;;
20139esac
20140eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20141  (eval "$ac_link") 2>conftest.er1
20142  ac_status=$?
20143  grep -v '^ *+' conftest.er1 >conftest.err
20144  rm -f conftest.er1
20145  cat conftest.err >&5
20146  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20147  (exit $ac_status); } &&
20148	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20149  { (case "(($ac_try" in
20150  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20151  *) ac_try_echo=$ac_try;;
20152esac
20153eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20154  (eval "$ac_try") 2>&5
20155  ac_status=$?
20156  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20157  (exit $ac_status); }; } &&
20158	 { ac_try='test -s conftest$ac_exeext'
20159  { (case "(($ac_try" in
20160  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20161  *) ac_try_echo=$ac_try;;
20162esac
20163eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20164  (eval "$ac_try") 2>&5
20165  ac_status=$?
20166  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20167  (exit $ac_status); }; }; then
20168  eval "$as_ac_var=yes"
20169else
20170  echo "$as_me: failed program was:" >&5
20171sed 's/^/| /' conftest.$ac_ext >&5
20172
20173	eval "$as_ac_var=no"
20174fi
20175
20176rm -f core conftest.err conftest.$ac_objext \
20177      conftest$ac_exeext conftest.$ac_ext
20178fi
20179ac_res=`eval echo '${'$as_ac_var'}'`
20180	       { echo "$as_me:$LINENO: result: $ac_res" >&5
20181echo "${ECHO_T}$ac_res" >&6; }
20182if test `eval echo '${'$as_ac_var'}'` = yes; then
20183  cat >>confdefs.h <<_ACEOF
20184#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20185_ACEOF
20186
20187fi
20188done
20189
20190{ echo "$as_me:$LINENO: checking for working mmap" >&5
20191echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
20192if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
20193  echo $ECHO_N "(cached) $ECHO_C" >&6
20194else
20195  if test "$cross_compiling" = yes; then
20196  ac_cv_func_mmap_fixed_mapped=no
20197else
20198  cat >conftest.$ac_ext <<_ACEOF
20199/* confdefs.h.  */
20200_ACEOF
20201cat confdefs.h >>conftest.$ac_ext
20202cat >>conftest.$ac_ext <<_ACEOF
20203/* end confdefs.h.  */
20204$ac_includes_default
20205/* malloc might have been renamed as rpl_malloc. */
20206#undef malloc
20207
20208/* Thanks to Mike Haertel and Jim Avera for this test.
20209   Here is a matrix of mmap possibilities:
20210	mmap private not fixed
20211	mmap private fixed at somewhere currently unmapped
20212	mmap private fixed at somewhere already mapped
20213	mmap shared not fixed
20214	mmap shared fixed at somewhere currently unmapped
20215	mmap shared fixed at somewhere already mapped
20216   For private mappings, we should verify that changes cannot be read()
20217   back from the file, nor mmap's back from the file at a different
20218   address.  (There have been systems where private was not correctly
20219   implemented like the infamous i386 svr4.0, and systems where the
20220   VM page cache was not coherent with the file system buffer cache
20221   like early versions of FreeBSD and possibly contemporary NetBSD.)
20222   For shared mappings, we should conversely verify that changes get
20223   propagated back to all the places they're supposed to be.
20224
20225   Grep wants private fixed already mapped.
20226   The main things grep needs to know about mmap are:
20227   * does it exist and is it safe to write into the mmap'd area
20228   * how to use it (BSD variants)  */
20229
20230#include <fcntl.h>
20231#include <sys/mman.h>
20232
20233#if !STDC_HEADERS && !HAVE_STDLIB_H
20234char *malloc ();
20235#endif
20236
20237/* This mess was copied from the GNU getpagesize.h.  */
20238#if !HAVE_GETPAGESIZE
20239/* Assume that all systems that can run configure have sys/param.h.  */
20240# if !HAVE_SYS_PARAM_H
20241#  define HAVE_SYS_PARAM_H 1
20242# endif
20243
20244# ifdef _SC_PAGESIZE
20245#  define getpagesize() sysconf(_SC_PAGESIZE)
20246# else /* no _SC_PAGESIZE */
20247#  if HAVE_SYS_PARAM_H
20248#   include <sys/param.h>
20249#   ifdef EXEC_PAGESIZE
20250#    define getpagesize() EXEC_PAGESIZE
20251#   else /* no EXEC_PAGESIZE */
20252#    ifdef NBPG
20253#     define getpagesize() NBPG * CLSIZE
20254#     ifndef CLSIZE
20255#      define CLSIZE 1
20256#     endif /* no CLSIZE */
20257#    else /* no NBPG */
20258#     ifdef NBPC
20259#      define getpagesize() NBPC
20260#     else /* no NBPC */
20261#      ifdef PAGESIZE
20262#       define getpagesize() PAGESIZE
20263#      endif /* PAGESIZE */
20264#     endif /* no NBPC */
20265#    endif /* no NBPG */
20266#   endif /* no EXEC_PAGESIZE */
20267#  else /* no HAVE_SYS_PARAM_H */
20268#   define getpagesize() 8192	/* punt totally */
20269#  endif /* no HAVE_SYS_PARAM_H */
20270# endif /* no _SC_PAGESIZE */
20271
20272#endif /* no HAVE_GETPAGESIZE */
20273
20274int
20275main ()
20276{
20277  char *data, *data2, *data3;
20278  int i, pagesize;
20279  int fd;
20280
20281  pagesize = getpagesize ();
20282
20283  /* First, make a file with some known garbage in it. */
20284  data = (char *) malloc (pagesize);
20285  if (!data)
20286    return 1;
20287  for (i = 0; i < pagesize; ++i)
20288    *(data + i) = rand ();
20289  umask (0);
20290  fd = creat ("conftest.mmap", 0600);
20291  if (fd < 0)
20292    return 1;
20293  if (write (fd, data, pagesize) != pagesize)
20294    return 1;
20295  close (fd);
20296
20297  /* Next, try to mmap the file at a fixed address which already has
20298     something else allocated at it.  If we can, also make sure that
20299     we see the same garbage.  */
20300  fd = open ("conftest.mmap", O_RDWR);
20301  if (fd < 0)
20302    return 1;
20303  data2 = (char *) malloc (2 * pagesize);
20304  if (!data2)
20305    return 1;
20306  data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
20307  if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
20308		     MAP_PRIVATE | MAP_FIXED, fd, 0L))
20309    return 1;
20310  for (i = 0; i < pagesize; ++i)
20311    if (*(data + i) != *(data2 + i))
20312      return 1;
20313
20314  /* Finally, make sure that changes to the mapped area do not
20315     percolate back to the file as seen by read().  (This is a bug on
20316     some variants of i386 svr4.0.)  */
20317  for (i = 0; i < pagesize; ++i)
20318    *(data2 + i) = *(data2 + i) + 1;
20319  data3 = (char *) malloc (pagesize);
20320  if (!data3)
20321    return 1;
20322  if (read (fd, data3, pagesize) != pagesize)
20323    return 1;
20324  for (i = 0; i < pagesize; ++i)
20325    if (*(data + i) != *(data3 + i))
20326      return 1;
20327  close (fd);
20328  return 0;
20329}
20330_ACEOF
20331rm -f conftest$ac_exeext
20332if { (ac_try="$ac_link"
20333case "(($ac_try" in
20334  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20335  *) ac_try_echo=$ac_try;;
20336esac
20337eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20338  (eval "$ac_link") 2>&5
20339  ac_status=$?
20340  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20341  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20342  { (case "(($ac_try" in
20343  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20344  *) ac_try_echo=$ac_try;;
20345esac
20346eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20347  (eval "$ac_try") 2>&5
20348  ac_status=$?
20349  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20350  (exit $ac_status); }; }; then
20351  ac_cv_func_mmap_fixed_mapped=yes
20352else
20353  echo "$as_me: program exited with status $ac_status" >&5
20354echo "$as_me: failed program was:" >&5
20355sed 's/^/| /' conftest.$ac_ext >&5
20356
20357( exit $ac_status )
20358ac_cv_func_mmap_fixed_mapped=no
20359fi
20360rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20361fi
20362
20363
20364fi
20365{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
20366echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
20367if test $ac_cv_func_mmap_fixed_mapped = yes; then
20368
20369cat >>confdefs.h <<\_ACEOF
20370#define HAVE_MMAP 1
20371_ACEOF
20372
20373fi
20374rm -f conftest.mmap
20375
20376  { echo "$as_me:$LINENO: checking for mmap of files" >&5
20377echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
20378if test "${ac_cv_func_mmap_file+set}" = set; then
20379  echo $ECHO_N "(cached) $ECHO_C" >&6
20380else
20381   ac_ext=c
20382ac_cpp='$CPP $CPPFLAGS'
20383ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20384ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20385ac_compiler_gnu=$ac_cv_c_compiler_gnu
20386
20387  if test "$cross_compiling" = yes; then
20388  ac_cv_func_mmap_file=no
20389else
20390  cat >conftest.$ac_ext <<_ACEOF
20391
20392    /* confdefs.h.  */
20393_ACEOF
20394cat confdefs.h >>conftest.$ac_ext
20395cat >>conftest.$ac_ext <<_ACEOF
20396/* end confdefs.h.  */
20397
20398#include <sys/types.h>
20399#include <sys/mman.h>
20400#include <fcntl.h>
20401
20402int
20403main ()
20404{
20405
20406  int fd;
20407  fd = creat ("foo",0777);
20408  fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
20409  unlink ("foo");
20410  return (fd != (int) MAP_FAILED);
20411  ;
20412  return 0;
20413}
20414_ACEOF
20415rm -f conftest$ac_exeext
20416if { (ac_try="$ac_link"
20417case "(($ac_try" in
20418  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20419  *) ac_try_echo=$ac_try;;
20420esac
20421eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20422  (eval "$ac_link") 2>&5
20423  ac_status=$?
20424  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20425  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20426  { (case "(($ac_try" in
20427  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20428  *) ac_try_echo=$ac_try;;
20429esac
20430eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20431  (eval "$ac_try") 2>&5
20432  ac_status=$?
20433  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20434  (exit $ac_status); }; }; then
20435  ac_cv_func_mmap_file=yes
20436else
20437  echo "$as_me: program exited with status $ac_status" >&5
20438echo "$as_me: failed program was:" >&5
20439sed 's/^/| /' conftest.$ac_ext >&5
20440
20441( exit $ac_status )
20442ac_cv_func_mmap_file=no
20443fi
20444rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20445fi
20446
20447
20448  ac_ext=c
20449ac_cpp='$CPP $CPPFLAGS'
20450ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20451ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20452ac_compiler_gnu=$ac_cv_c_compiler_gnu
20453
20454
20455fi
20456{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
20457echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
20458if test "$ac_cv_func_mmap_file" = yes; then
20459
20460cat >>confdefs.h <<\_ACEOF
20461#define HAVE_MMAP_FILE
20462_ACEOF
20463
20464   MMAP_FILE=yes
20465
20466fi
20467
20468  { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
20469echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
20470if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
20471  echo $ECHO_N "(cached) $ECHO_C" >&6
20472else
20473  if test "$llvm_cv_os_type" = "Interix" ; then
20474   ac_cv_need_dev_zero_for_mmap=yes
20475 else
20476   ac_cv_need_dev_zero_for_mmap=no
20477 fi
20478
20479fi
20480{ echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
20481echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
20482if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
20483
20484cat >>confdefs.h <<\_ACEOF
20485#define NEED_DEV_ZERO_FOR_MMAP 1
20486_ACEOF
20487
20488fi
20489
20490  if test "$ac_cv_func_mmap_fixed_mapped" = "no"
20491  then
20492    { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
20493echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
20494  fi
20495  if test "$ac_cv_func_mmap_file" = "no"
20496  then
20497    { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
20498echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
20499  fi
20500fi
20501
20502{ echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
20503echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
20504ac_ext=cpp
20505ac_cpp='$CXXCPP $CPPFLAGS'
20506ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20507ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20508ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20509
20510cat >conftest.$ac_ext <<_ACEOF
20511/* confdefs.h.  */
20512_ACEOF
20513cat confdefs.h >>conftest.$ac_ext
20514cat >>conftest.$ac_ext <<_ACEOF
20515/* end confdefs.h.  */
20516int main() {
20517        volatile unsigned long val = 1;
20518        __sync_synchronize();
20519        __sync_val_compare_and_swap(&val, 1, 0);
20520        __sync_add_and_fetch(&val, 1);
20521        __sync_sub_and_fetch(&val, 1);
20522        return 0;
20523      }
20524
20525_ACEOF
20526rm -f conftest.$ac_objext conftest$ac_exeext
20527if { (ac_try="$ac_link"
20528case "(($ac_try" in
20529  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20530  *) ac_try_echo=$ac_try;;
20531esac
20532eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20533  (eval "$ac_link") 2>conftest.er1
20534  ac_status=$?
20535  grep -v '^ *+' conftest.er1 >conftest.err
20536  rm -f conftest.er1
20537  cat conftest.err >&5
20538  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20539  (exit $ac_status); } &&
20540	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20541  { (case "(($ac_try" in
20542  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20543  *) ac_try_echo=$ac_try;;
20544esac
20545eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20546  (eval "$ac_try") 2>&5
20547  ac_status=$?
20548  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20549  (exit $ac_status); }; } &&
20550	 { ac_try='test -s conftest$ac_exeext'
20551  { (case "(($ac_try" in
20552  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20553  *) ac_try_echo=$ac_try;;
20554esac
20555eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20556  (eval "$ac_try") 2>&5
20557  ac_status=$?
20558  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20559  (exit $ac_status); }; }; then
20560  ac_ext=c
20561ac_cpp='$CPP $CPPFLAGS'
20562ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20563ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20564ac_compiler_gnu=$ac_cv_c_compiler_gnu
20565
20566  { echo "$as_me:$LINENO: result: yes" >&5
20567echo "${ECHO_T}yes" >&6; }
20568
20569cat >>confdefs.h <<\_ACEOF
20570#define LLVM_HAS_ATOMICS 1
20571_ACEOF
20572
20573else
20574  echo "$as_me: failed program was:" >&5
20575sed 's/^/| /' conftest.$ac_ext >&5
20576
20577	{ echo "$as_me:$LINENO: result: no" >&5
20578echo "${ECHO_T}no" >&6; }
20579
20580cat >>confdefs.h <<\_ACEOF
20581#define LLVM_HAS_ATOMICS 0
20582_ACEOF
20583
20584  { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
20585echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
20586fi
20587
20588rm -f core conftest.err conftest.$ac_objext \
20589      conftest$ac_exeext conftest.$ac_ext
20590
20591
20592if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
20593  { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
20594echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
20595if test "${llvm_cv_linux_mixed+set}" = set; then
20596  echo $ECHO_N "(cached) $ECHO_C" >&6
20597else
20598   ac_ext=c
20599ac_cpp='$CPP $CPPFLAGS'
20600ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20601ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20602ac_compiler_gnu=$ac_cv_c_compiler_gnu
20603
20604  cat >conftest.$ac_ext <<_ACEOF
20605/* confdefs.h.  */
20606_ACEOF
20607cat confdefs.h >>conftest.$ac_ext
20608cat >>conftest.$ac_ext <<_ACEOF
20609/* end confdefs.h.  */
20610#ifndef __x86_64__
20611       error: Not x86-64 even if uname says so!
20612      #endif
20613
20614int
20615main ()
20616{
20617
20618  ;
20619  return 0;
20620}
20621_ACEOF
20622rm -f conftest.$ac_objext
20623if { (ac_try="$ac_compile"
20624case "(($ac_try" in
20625  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20626  *) ac_try_echo=$ac_try;;
20627esac
20628eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20629  (eval "$ac_compile") 2>conftest.er1
20630  ac_status=$?
20631  grep -v '^ *+' conftest.er1 >conftest.err
20632  rm -f conftest.er1
20633  cat conftest.err >&5
20634  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20635  (exit $ac_status); } &&
20636	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20637  { (case "(($ac_try" in
20638  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20639  *) ac_try_echo=$ac_try;;
20640esac
20641eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20642  (eval "$ac_try") 2>&5
20643  ac_status=$?
20644  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20645  (exit $ac_status); }; } &&
20646	 { ac_try='test -s conftest.$ac_objext'
20647  { (case "(($ac_try" in
20648  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20649  *) ac_try_echo=$ac_try;;
20650esac
20651eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20652  (eval "$ac_try") 2>&5
20653  ac_status=$?
20654  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20655  (exit $ac_status); }; }; then
20656  llvm_cv_linux_mixed=no
20657else
20658  echo "$as_me: failed program was:" >&5
20659sed 's/^/| /' conftest.$ac_ext >&5
20660
20661	llvm_cv_linux_mixed=yes
20662fi
20663
20664rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20665  ac_ext=c
20666ac_cpp='$CPP $CPPFLAGS'
20667ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20668ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20669ac_compiler_gnu=$ac_cv_c_compiler_gnu
20670
20671
20672fi
20673{ echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
20674echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
20675
20676  if test "$llvm_cv_linux_mixed" = "yes"; then
20677    llvm_cv_target_arch="x86"
20678    ARCH="x86"
20679  fi
20680fi
20681
20682
20683for ac_func in __dso_handle
20684do
20685as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20686{ echo "$as_me:$LINENO: checking for $ac_func" >&5
20687echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20688if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20689  echo $ECHO_N "(cached) $ECHO_C" >&6
20690else
20691  cat >conftest.$ac_ext <<_ACEOF
20692/* confdefs.h.  */
20693_ACEOF
20694cat confdefs.h >>conftest.$ac_ext
20695cat >>conftest.$ac_ext <<_ACEOF
20696/* end confdefs.h.  */
20697/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20698   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20699#define $ac_func innocuous_$ac_func
20700
20701/* System header to define __stub macros and hopefully few prototypes,
20702    which can conflict with char $ac_func (); below.
20703    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20704    <limits.h> exists even on freestanding compilers.  */
20705
20706#ifdef __STDC__
20707# include <limits.h>
20708#else
20709# include <assert.h>
20710#endif
20711
20712#undef $ac_func
20713
20714/* Override any GCC internal prototype to avoid an error.
20715   Use char because int might match the return type of a GCC
20716   builtin and then its argument prototype would still apply.  */
20717#ifdef __cplusplus
20718extern "C"
20719#endif
20720char $ac_func ();
20721/* The GNU C library defines this for functions which it implements
20722    to always fail with ENOSYS.  Some functions are actually named
20723    something starting with __ and the normal name is an alias.  */
20724#if defined __stub_$ac_func || defined __stub___$ac_func
20725choke me
20726#endif
20727
20728int
20729main ()
20730{
20731return $ac_func ();
20732  ;
20733  return 0;
20734}
20735_ACEOF
20736rm -f conftest.$ac_objext conftest$ac_exeext
20737if { (ac_try="$ac_link"
20738case "(($ac_try" in
20739  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20740  *) ac_try_echo=$ac_try;;
20741esac
20742eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20743  (eval "$ac_link") 2>conftest.er1
20744  ac_status=$?
20745  grep -v '^ *+' conftest.er1 >conftest.err
20746  rm -f conftest.er1
20747  cat conftest.err >&5
20748  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20749  (exit $ac_status); } &&
20750	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20751  { (case "(($ac_try" in
20752  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20753  *) ac_try_echo=$ac_try;;
20754esac
20755eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20756  (eval "$ac_try") 2>&5
20757  ac_status=$?
20758  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20759  (exit $ac_status); }; } &&
20760	 { ac_try='test -s conftest$ac_exeext'
20761  { (case "(($ac_try" in
20762  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20763  *) ac_try_echo=$ac_try;;
20764esac
20765eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20766  (eval "$ac_try") 2>&5
20767  ac_status=$?
20768  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20769  (exit $ac_status); }; }; then
20770  eval "$as_ac_var=yes"
20771else
20772  echo "$as_me: failed program was:" >&5
20773sed 's/^/| /' conftest.$ac_ext >&5
20774
20775	eval "$as_ac_var=no"
20776fi
20777
20778rm -f core conftest.err conftest.$ac_objext \
20779      conftest$ac_exeext conftest.$ac_ext
20780fi
20781ac_res=`eval echo '${'$as_ac_var'}'`
20782	       { echo "$as_me:$LINENO: result: $ac_res" >&5
20783echo "${ECHO_T}$ac_res" >&6; }
20784if test `eval echo '${'$as_ac_var'}'` = yes; then
20785  cat >>confdefs.h <<_ACEOF
20786#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20787_ACEOF
20788
20789fi
20790done
20791
20792
20793SHLIBEXT=$libltdl_cv_shlibext
20794
20795
20796SHLIBPATH_VAR=$libltdl_cv_shlibpath_var
20797
20798
20799if test "${prefix}" = "NONE" ; then
20800  prefix="/usr/local"
20801fi
20802eval LLVM_PREFIX="${prefix}";
20803eval LLVM_BINDIR="${prefix}/bin";
20804eval LLVM_LIBDIR="${prefix}/lib";
20805eval LLVM_DATADIR="${prefix}/share/llvm";
20806eval LLVM_DOCSDIR="${prefix}/share/doc/llvm";
20807eval LLVM_ETCDIR="${prefix}/etc/llvm";
20808eval LLVM_INCLUDEDIR="${prefix}/include";
20809eval LLVM_INFODIR="${prefix}/info";
20810eval LLVM_MANDIR="${prefix}/man";
20811LLVM_CONFIGTIME=`date`
20812
20813
20814
20815
20816
20817
20818
20819
20820
20821
20822
20823
20824cat >>confdefs.h <<_ACEOF
20825#define LLVM_PREFIX "$LLVM_PREFIX"
20826_ACEOF
20827
20828
20829cat >>confdefs.h <<_ACEOF
20830#define LLVM_BINDIR "$LLVM_BINDIR"
20831_ACEOF
20832
20833
20834cat >>confdefs.h <<_ACEOF
20835#define LLVM_LIBDIR "$LLVM_LIBDIR"
20836_ACEOF
20837
20838
20839cat >>confdefs.h <<_ACEOF
20840#define LLVM_DATADIR "$LLVM_DATADIR"
20841_ACEOF
20842
20843
20844cat >>confdefs.h <<_ACEOF
20845#define LLVM_DOCSDIR "$LLVM_DOCSDIR"
20846_ACEOF
20847
20848
20849cat >>confdefs.h <<_ACEOF
20850#define LLVM_ETCDIR "$LLVM_ETCDIR"
20851_ACEOF
20852
20853
20854cat >>confdefs.h <<_ACEOF
20855#define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
20856_ACEOF
20857
20858
20859cat >>confdefs.h <<_ACEOF
20860#define LLVM_INFODIR "$LLVM_INFODIR"
20861_ACEOF
20862
20863
20864cat >>confdefs.h <<_ACEOF
20865#define LLVM_MANDIR "$LLVM_MANDIR"
20866_ACEOF
20867
20868
20869cat >>confdefs.h <<_ACEOF
20870#define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
20871_ACEOF
20872
20873
20874cat >>confdefs.h <<_ACEOF
20875#define LLVM_DEFAULT_TARGET_TRIPLE "$target"
20876_ACEOF
20877
20878
20879if test "$BINDINGS_TO_BUILD" = auto ; then
20880  BINDINGS_TO_BUILD=""
20881  if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
20882    BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
20883  fi
20884fi
20885BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
20886
20887
20888ALL_BINDINGS=ocaml
20889
20890
20891binding_prereqs_failed=0
20892for a_binding in $BINDINGS_TO_BUILD ; do
20893  case "$a_binding" in
20894  ocaml)
20895    if test "x$OCAMLC" = x ; then
20896      { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
20897echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
20898      binding_prereqs_failed=1
20899    fi
20900    if test "x$OCAMLDEP" = x ; then
20901      { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
20902echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
20903      binding_prereqs_failed=1
20904    fi
20905    if test "x$OCAMLOPT" = x ; then
20906      { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
20907echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
20908          fi
20909    if test "x$with_ocaml_libdir" != xauto ; then
20910      OCAML_LIBDIR=$with_ocaml_libdir
20911
20912    else
20913      ocaml_stdlib="`"$OCAMLC" -where`"
20914      if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
20915      then
20916        # ocaml stdlib is beneath our prefix; use stdlib
20917        OCAML_LIBDIR=$ocaml_stdlib
20918
20919      else
20920        # ocaml stdlib is outside our prefix; use libdir/ocaml
20921        OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
20922
20923      fi
20924    fi
20925    ;;
20926  esac
20927done
20928if test "$binding_prereqs_failed" = 1 ; then
20929  { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
20930echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
20931   { (exit 1); exit 1; }; }
20932fi
20933
20934{ echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
20935echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
20936if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
20937  echo $ECHO_N "(cached) $ECHO_C" >&6
20938else
20939   ac_ext=cpp
20940ac_cpp='$CXXCPP $CPPFLAGS'
20941ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20942ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20943ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20944
20945  oldcxxflags="$CXXFLAGS"
20946  CXXFLAGS="$CXXFLAGS -O0 -fvisibility-inlines-hidden -Werror"
20947  cat >conftest.$ac_ext <<_ACEOF
20948/* confdefs.h.  */
20949_ACEOF
20950cat confdefs.h >>conftest.$ac_ext
20951cat >>conftest.$ac_ext <<_ACEOF
20952/* end confdefs.h.  */
20953template <typename T> struct X { void __attribute__((noinline)) f() {} };
20954int
20955main ()
20956{
20957X<int>().f();
20958  ;
20959  return 0;
20960}
20961_ACEOF
20962rm -f conftest.$ac_objext
20963if { (ac_try="$ac_compile"
20964case "(($ac_try" in
20965  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20966  *) ac_try_echo=$ac_try;;
20967esac
20968eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20969  (eval "$ac_compile") 2>conftest.er1
20970  ac_status=$?
20971  grep -v '^ *+' conftest.er1 >conftest.err
20972  rm -f conftest.er1
20973  cat conftest.err >&5
20974  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20975  (exit $ac_status); } &&
20976	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20977  { (case "(($ac_try" in
20978  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20979  *) ac_try_echo=$ac_try;;
20980esac
20981eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20982  (eval "$ac_try") 2>&5
20983  ac_status=$?
20984  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20985  (exit $ac_status); }; } &&
20986	 { ac_try='test -s conftest.$ac_objext'
20987  { (case "(($ac_try" in
20988  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20989  *) ac_try_echo=$ac_try;;
20990esac
20991eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20992  (eval "$ac_try") 2>&5
20993  ac_status=$?
20994  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20995  (exit $ac_status); }; }; then
20996  llvm_cv_cxx_visibility_inlines_hidden=yes
20997else
20998  echo "$as_me: failed program was:" >&5
20999sed 's/^/| /' conftest.$ac_ext >&5
21000
21001	llvm_cv_cxx_visibility_inlines_hidden=no
21002fi
21003
21004rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21005  CXXFLAGS="$oldcxxflags"
21006  ac_ext=c
21007ac_cpp='$CPP $CPPFLAGS'
21008ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21009ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21010ac_compiler_gnu=$ac_cv_c_compiler_gnu
21011
21012
21013fi
21014{ echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
21015echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
21016if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
21017  ENABLE_VISIBILITY_INLINES_HIDDEN=1
21018
21019else
21020  ENABLE_VISIBILITY_INLINES_HIDDEN=0
21021
21022fi
21023
21024
21025if test "$llvm_cv_link_use_r" = "yes" ; then
21026  RPATH="-Wl,-R"
21027else
21028  RPATH="-Wl,-rpath"
21029fi
21030
21031
21032if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
21033  RDYNAMIC="-Wl,-export-dynamic"
21034else
21035  RDYNAMIC=""
21036fi
21037
21038
21039
21040ac_config_headers="$ac_config_headers include/llvm/Config/config.h include/llvm/Config/llvm-config.h"
21041
21042
21043
21044
21045
21046
21047ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
21048
21049ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
21050
21051ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def"
21052
21053ac_config_files="$ac_config_files include/llvm/Config/Disassemblers.def"
21054
21055ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
21056
21057
21058ac_config_files="$ac_config_files Makefile.config"
21059
21060
21061ac_config_files="$ac_config_files llvm.spec"
21062
21063
21064ac_config_files="$ac_config_files docs/doxygen.cfg"
21065
21066
21067if test "${clang_src_root}" = ""; then
21068  clang_src_root="$srcdir/tools/clang"
21069fi
21070if test -f ${clang_src_root}/README.txt; then
21071    configh="include/clang/Config/config.h"
21072  doxy="docs/doxygen.cfg"
21073  ac_config_headers="$ac_config_headers tools/clang/${configh}:${clang_src_root}/${configh}.in"
21074
21075  ac_config_files="$ac_config_files tools/clang/${doxy}:${clang_src_root}/${doxy}.in"
21076
21077fi
21078
21079ac_config_files="$ac_config_files bindings/ocaml/llvm/META.llvm"
21080
21081
21082ac_config_commands="$ac_config_commands setup"
21083
21084ac_config_commands="$ac_config_commands Makefile"
21085
21086
21087ac_config_commands="$ac_config_commands Makefile.common"
21088
21089
21090ac_config_commands="$ac_config_commands examples/Makefile"
21091
21092
21093ac_config_commands="$ac_config_commands lib/Makefile"
21094
21095
21096ac_config_commands="$ac_config_commands runtime/Makefile"
21097
21098
21099ac_config_commands="$ac_config_commands test/Makefile"
21100
21101
21102ac_config_commands="$ac_config_commands test/Makefile.tests"
21103
21104
21105ac_config_commands="$ac_config_commands unittests/Makefile"
21106
21107
21108ac_config_commands="$ac_config_commands tools/Makefile"
21109
21110
21111ac_config_commands="$ac_config_commands utils/Makefile"
21112
21113
21114ac_config_commands="$ac_config_commands projects/Makefile"
21115
21116
21117ac_config_commands="$ac_config_commands bindings/Makefile"
21118
21119
21120ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
21121
21122
21123
21124cat >confcache <<\_ACEOF
21125# This file is a shell script that caches the results of configure
21126# tests run on this system so they can be shared between configure
21127# scripts and configure runs, see configure's option --config-cache.
21128# It is not useful on other systems.  If it contains results you don't
21129# want to keep, you may remove or edit it.
21130#
21131# config.status only pays attention to the cache file if you give it
21132# the --recheck option to rerun configure.
21133#
21134# `ac_cv_env_foo' variables (set or unset) will be overridden when
21135# loading this file, other *unset* `ac_cv_foo' will be assigned the
21136# following values.
21137
21138_ACEOF
21139
21140# The following way of writing the cache mishandles newlines in values,
21141# but we know of no workaround that is simple, portable, and efficient.
21142# So, we kill variables containing newlines.
21143# Ultrix sh set writes to stderr and can't be redirected directly,
21144# and sets the high bit in the cache file unless we assign to the vars.
21145(
21146  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
21147    eval ac_val=\$$ac_var
21148    case $ac_val in #(
21149    *${as_nl}*)
21150      case $ac_var in #(
21151      *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
21152echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
21153      esac
21154      case $ac_var in #(
21155      _ | IFS | as_nl) ;; #(
21156      *) $as_unset $ac_var ;;
21157      esac ;;
21158    esac
21159  done
21160
21161  (set) 2>&1 |
21162    case $as_nl`(ac_space=' '; set) 2>&1` in #(
21163    *${as_nl}ac_space=\ *)
21164      # `set' does not quote correctly, so add quotes (double-quote
21165      # substitution turns \\\\ into \\, and sed turns \\ into \).
21166      sed -n \
21167	"s/'/'\\\\''/g;
21168	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21169      ;; #(
21170    *)
21171      # `set' quotes correctly as required by POSIX, so do not add quotes.
21172      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
21173      ;;
21174    esac |
21175    sort
21176) |
21177  sed '
21178     /^ac_cv_env_/b end
21179     t clear
21180     :clear
21181     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21182     t end
21183     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21184     :end' >>confcache
21185if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
21186  if test -w "$cache_file"; then
21187    test "x$cache_file" != "x/dev/null" &&
21188      { echo "$as_me:$LINENO: updating cache $cache_file" >&5
21189echo "$as_me: updating cache $cache_file" >&6;}
21190    cat confcache >$cache_file
21191  else
21192    { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
21193echo "$as_me: not updating unwritable cache $cache_file" >&6;}
21194  fi
21195fi
21196rm -f confcache
21197
21198test "x$prefix" = xNONE && prefix=$ac_default_prefix
21199# Let make expand exec_prefix.
21200test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21201
21202DEFS=-DHAVE_CONFIG_H
21203
21204ac_libobjs=
21205ac_ltlibobjs=
21206for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21207  # 1. Remove the extension, and $U if already installed.
21208  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
21209  ac_i=`echo "$ac_i" | sed "$ac_script"`
21210  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
21211  #    will be set to the directory where LIBOBJS objects are built.
21212  ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
21213  ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
21214done
21215LIBOBJS=$ac_libobjs
21216
21217LTLIBOBJS=$ac_ltlibobjs
21218
21219
21220if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
21221  { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
21222Usually this means the macro was only invoked conditionally." >&5
21223echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
21224Usually this means the macro was only invoked conditionally." >&2;}
21225   { (exit 1); exit 1; }; }
21226fi
21227if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
21228  { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
21229Usually this means the macro was only invoked conditionally." >&5
21230echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
21231Usually this means the macro was only invoked conditionally." >&2;}
21232   { (exit 1); exit 1; }; }
21233fi
21234
21235: ${CONFIG_STATUS=./config.status}
21236ac_clean_files_save=$ac_clean_files
21237ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21238{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21239echo "$as_me: creating $CONFIG_STATUS" >&6;}
21240cat >$CONFIG_STATUS <<_ACEOF
21241#! $SHELL
21242# Generated by $as_me.
21243# Run this file to recreate the current configuration.
21244# Compiler output produced by configure, useful for debugging
21245# configure, is in config.log if it exists.
21246
21247debug=false
21248ac_cs_recheck=false
21249ac_cs_silent=false
21250SHELL=\${CONFIG_SHELL-$SHELL}
21251_ACEOF
21252
21253cat >>$CONFIG_STATUS <<\_ACEOF
21254## --------------------- ##
21255## M4sh Initialization.  ##
21256## --------------------- ##
21257
21258# Be Bourne compatible
21259if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21260  emulate sh
21261  NULLCMD=:
21262  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21263  # is contrary to our usage.  Disable this feature.
21264  alias -g '${1+"$@"}'='"$@"'
21265  setopt NO_GLOB_SUBST
21266else
21267  case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
21268fi
21269BIN_SH=xpg4; export BIN_SH # for Tru64
21270DUALCASE=1; export DUALCASE # for MKS sh
21271
21272
21273# PATH needs CR
21274# Avoid depending upon Character Ranges.
21275as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21276as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21277as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21278as_cr_digits='0123456789'
21279as_cr_alnum=$as_cr_Letters$as_cr_digits
21280
21281# The user is always right.
21282if test "${PATH_SEPARATOR+set}" != set; then
21283  echo "#! /bin/sh" >conf$$.sh
21284  echo  "exit 0"   >>conf$$.sh
21285  chmod +x conf$$.sh
21286  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21287    PATH_SEPARATOR=';'
21288  else
21289    PATH_SEPARATOR=:
21290  fi
21291  rm -f conf$$.sh
21292fi
21293
21294# Support unset when possible.
21295if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21296  as_unset=unset
21297else
21298  as_unset=false
21299fi
21300
21301
21302# IFS
21303# We need space, tab and new line, in precisely that order.  Quoting is
21304# there to prevent editors from complaining about space-tab.
21305# (If _AS_PATH_WALK were called with IFS unset, it would disable word
21306# splitting by setting IFS to empty value.)
21307as_nl='
21308'
21309IFS=" ""	$as_nl"
21310
21311# Find who we are.  Look in the path if we contain no directory separator.
21312case $0 in
21313  *[\\/]* ) as_myself=$0 ;;
21314  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21315for as_dir in $PATH
21316do
21317  IFS=$as_save_IFS
21318  test -z "$as_dir" && as_dir=.
21319  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21320done
21321IFS=$as_save_IFS
21322
21323     ;;
21324esac
21325# We did not find ourselves, most probably we were run as `sh COMMAND'
21326# in which case we are not to be found in the path.
21327if test "x$as_myself" = x; then
21328  as_myself=$0
21329fi
21330if test ! -f "$as_myself"; then
21331  echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21332  { (exit 1); exit 1; }
21333fi
21334
21335# Work around bugs in pre-3.0 UWIN ksh.
21336for as_var in ENV MAIL MAILPATH
21337do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21338done
21339PS1='$ '
21340PS2='> '
21341PS4='+ '
21342
21343# NLS nuisances.
21344for as_var in \
21345  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21346  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21347  LC_TELEPHONE LC_TIME
21348do
21349  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21350    eval $as_var=C; export $as_var
21351  else
21352    ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21353  fi
21354done
21355
21356# Required to use basename.
21357if expr a : '\(a\)' >/dev/null 2>&1 &&
21358   test "X`expr 00001 : '.*\(...\)'`" = X001; then
21359  as_expr=expr
21360else
21361  as_expr=false
21362fi
21363
21364if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21365  as_basename=basename
21366else
21367  as_basename=false
21368fi
21369
21370
21371# Name of the executable.
21372as_me=`$as_basename -- "$0" ||
21373$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21374	 X"$0" : 'X\(//\)$' \| \
21375	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
21376echo X/"$0" |
21377    sed '/^.*\/\([^/][^/]*\)\/*$/{
21378	    s//\1/
21379	    q
21380	  }
21381	  /^X\/\(\/\/\)$/{
21382	    s//\1/
21383	    q
21384	  }
21385	  /^X\/\(\/\).*/{
21386	    s//\1/
21387	    q
21388	  }
21389	  s/.*/./; q'`
21390
21391# CDPATH.
21392$as_unset CDPATH
21393
21394
21395
21396  as_lineno_1=$LINENO
21397  as_lineno_2=$LINENO
21398  test "x$as_lineno_1" != "x$as_lineno_2" &&
21399  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
21400
21401  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21402  # uniformly replaced by the line number.  The first 'sed' inserts a
21403  # line-number line after each line using $LINENO; the second 'sed'
21404  # does the real work.  The second script uses 'N' to pair each
21405  # line-number line with the line containing $LINENO, and appends
21406  # trailing '-' during substitution so that $LINENO is not a special
21407  # case at line end.
21408  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21409  # scripts with optimization help from Paolo Bonzini.  Blame Lee
21410  # E. McMahon (1931-1989) for sed's syntax.  :-)
21411  sed -n '
21412    p
21413    /[$]LINENO/=
21414  ' <$as_myself |
21415    sed '
21416      s/[$]LINENO.*/&-/
21417      t lineno
21418      b
21419      :lineno
21420      N
21421      :loop
21422      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
21423      t loop
21424      s/-\n.*//
21425    ' >$as_me.lineno &&
21426  chmod +x "$as_me.lineno" ||
21427    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
21428   { (exit 1); exit 1; }; }
21429
21430  # Don't try to exec as it changes $[0], causing all sort of problems
21431  # (the dirname of $[0] is not the place where we might find the
21432  # original and so on.  Autoconf is especially sensitive to this).
21433  . "./$as_me.lineno"
21434  # Exit status is that of the last command.
21435  exit
21436}
21437
21438
21439if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21440  as_dirname=dirname
21441else
21442  as_dirname=false
21443fi
21444
21445ECHO_C= ECHO_N= ECHO_T=
21446case `echo -n x` in
21447-n*)
21448  case `echo 'x\c'` in
21449  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
21450  *)   ECHO_C='\c';;
21451  esac;;
21452*)
21453  ECHO_N='-n';;
21454esac
21455
21456if expr a : '\(a\)' >/dev/null 2>&1 &&
21457   test "X`expr 00001 : '.*\(...\)'`" = X001; then
21458  as_expr=expr
21459else
21460  as_expr=false
21461fi
21462
21463rm -f conf$$ conf$$.exe conf$$.file
21464if test -d conf$$.dir; then
21465  rm -f conf$$.dir/conf$$.file
21466else
21467  rm -f conf$$.dir
21468  mkdir conf$$.dir
21469fi
21470echo >conf$$.file
21471if ln -s conf$$.file conf$$ 2>/dev/null; then
21472  as_ln_s='ln -s'
21473  # ... but there are two gotchas:
21474  # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21475  # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
21476  # In both cases, we have to default to `cp -p'.
21477  ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
21478    as_ln_s='cp -p'
21479elif ln conf$$.file conf$$ 2>/dev/null; then
21480  as_ln_s=ln
21481else
21482  as_ln_s='cp -p'
21483fi
21484rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21485rmdir conf$$.dir 2>/dev/null
21486
21487if mkdir -p . 2>/dev/null; then
21488  as_mkdir_p=:
21489else
21490  test -d ./-p && rmdir ./-p
21491  as_mkdir_p=false
21492fi
21493
21494# Find out whether ``test -x'' works.  Don't use a zero-byte file, as
21495# systems may use methods other than mode bits to determine executability.
21496cat >conf$$.file <<_ASEOF
21497#! /bin/sh
21498exit 0
21499_ASEOF
21500chmod +x conf$$.file
21501if test -x conf$$.file >/dev/null 2>&1; then
21502  as_executable_p="test -x"
21503else
21504  as_executable_p=:
21505fi
21506rm -f conf$$.file
21507
21508# Sed expression to map a string onto a valid CPP name.
21509as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21510
21511# Sed expression to map a string onto a valid variable name.
21512as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21513
21514
21515exec 6>&1
21516
21517# Save the log message, to keep $[0] and so on meaningful, and to
21518# report actual input values of CONFIG_FILES etc. instead of their
21519# values after options handling.
21520ac_log="
21521This file was extended by LLVM $as_me 3.1svn, which was
21522generated by GNU Autoconf 2.60.  Invocation command line was
21523
21524  CONFIG_FILES    = $CONFIG_FILES
21525  CONFIG_HEADERS  = $CONFIG_HEADERS
21526  CONFIG_LINKS    = $CONFIG_LINKS
21527  CONFIG_COMMANDS = $CONFIG_COMMANDS
21528  $ $0 $@
21529
21530on `(hostname || uname -n) 2>/dev/null | sed 1q`
21531"
21532
21533_ACEOF
21534
21535cat >>$CONFIG_STATUS <<_ACEOF
21536# Files that config.status was made for.
21537config_files="$ac_config_files"
21538config_headers="$ac_config_headers"
21539config_commands="$ac_config_commands"
21540
21541_ACEOF
21542
21543cat >>$CONFIG_STATUS <<\_ACEOF
21544ac_cs_usage="\
21545\`$as_me' instantiates files from templates according to the
21546current configuration.
21547
21548Usage: $0 [OPTIONS] [FILE]...
21549
21550  -h, --help       print this help, then exit
21551  -V, --version    print version number, then exit
21552  -q, --quiet      do not print progress messages
21553  -d, --debug      don't remove temporary files
21554      --recheck    update $as_me by reconfiguring in the same conditions
21555  --file=FILE[:TEMPLATE]
21556		   instantiate the configuration file FILE
21557  --header=FILE[:TEMPLATE]
21558		   instantiate the configuration header FILE
21559
21560Configuration files:
21561$config_files
21562
21563Configuration headers:
21564$config_headers
21565
21566Configuration commands:
21567$config_commands
21568
21569Report bugs to <bug-autoconf@gnu.org>."
21570
21571_ACEOF
21572cat >>$CONFIG_STATUS <<_ACEOF
21573ac_cs_version="\\
21574LLVM config.status 3.1svn
21575configured by $0, generated by GNU Autoconf 2.60,
21576  with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
21577
21578Copyright (C) 2006 Free Software Foundation, Inc.
21579This config.status script is free software; the Free Software Foundation
21580gives unlimited permission to copy, distribute and modify it."
21581
21582ac_pwd='$ac_pwd'
21583srcdir='$srcdir'
21584INSTALL='$INSTALL'
21585_ACEOF
21586
21587cat >>$CONFIG_STATUS <<\_ACEOF
21588# If no file are specified by the user, then we need to provide default
21589# value.  By we need to know if files were specified by the user.
21590ac_need_defaults=:
21591while test $# != 0
21592do
21593  case $1 in
21594  --*=*)
21595    ac_option=`expr "X$1" : 'X\([^=]*\)='`
21596    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
21597    ac_shift=:
21598    ;;
21599  *)
21600    ac_option=$1
21601    ac_optarg=$2
21602    ac_shift=shift
21603    ;;
21604  esac
21605
21606  case $ac_option in
21607  # Handling of the options.
21608  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21609    ac_cs_recheck=: ;;
21610  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
21611    echo "$ac_cs_version"; exit ;;
21612  --debug | --debu | --deb | --de | --d | -d )
21613    debug=: ;;
21614  --file | --fil | --fi | --f )
21615    $ac_shift
21616    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
21617    ac_need_defaults=false;;
21618  --header | --heade | --head | --hea )
21619    $ac_shift
21620    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
21621    ac_need_defaults=false;;
21622  --he | --h)
21623    # Conflict between --help and --header
21624    { echo "$as_me: error: ambiguous option: $1
21625Try \`$0 --help' for more information." >&2
21626   { (exit 1); exit 1; }; };;
21627  --help | --hel | -h )
21628    echo "$ac_cs_usage"; exit ;;
21629  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21630  | -silent | --silent | --silen | --sile | --sil | --si | --s)
21631    ac_cs_silent=: ;;
21632
21633  # This is an error.
21634  -*) { echo "$as_me: error: unrecognized option: $1
21635Try \`$0 --help' for more information." >&2
21636   { (exit 1); exit 1; }; } ;;
21637
21638  *) ac_config_targets="$ac_config_targets $1"
21639     ac_need_defaults=false ;;
21640
21641  esac
21642  shift
21643done
21644
21645ac_configure_extra_args=
21646
21647if $ac_cs_silent; then
21648  exec 6>/dev/null
21649  ac_configure_extra_args="$ac_configure_extra_args --silent"
21650fi
21651
21652_ACEOF
21653cat >>$CONFIG_STATUS <<_ACEOF
21654if \$ac_cs_recheck; then
21655  echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21656  CONFIG_SHELL=$SHELL
21657  export CONFIG_SHELL
21658  exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21659fi
21660
21661_ACEOF
21662cat >>$CONFIG_STATUS <<\_ACEOF
21663exec 5>>config.log
21664{
21665  echo
21666  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21667## Running $as_me. ##
21668_ASBOX
21669  echo "$ac_log"
21670} >&5
21671
21672_ACEOF
21673cat >>$CONFIG_STATUS <<_ACEOF
21674#
21675# INIT-COMMANDS
21676#
21677llvm_src="${srcdir}"
21678
21679_ACEOF
21680
21681cat >>$CONFIG_STATUS <<\_ACEOF
21682
21683# Handling of arguments.
21684for ac_config_target in $ac_config_targets
21685do
21686  case $ac_config_target in
21687    "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
21688    "include/llvm/Config/llvm-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/llvm-config.h" ;;
21689    "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
21690    "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
21691    "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
21692    "include/llvm/Config/Disassemblers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Disassemblers.def" ;;
21693    "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
21694    "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
21695    "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
21696    "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
21697    "tools/clang/${configh}") CONFIG_HEADERS="$CONFIG_HEADERS tools/clang/${configh}:${clang_src_root}/${configh}.in" ;;
21698    "tools/clang/${doxy}") CONFIG_FILES="$CONFIG_FILES tools/clang/${doxy}:${clang_src_root}/${doxy}.in" ;;
21699    "bindings/ocaml/llvm/META.llvm") CONFIG_FILES="$CONFIG_FILES bindings/ocaml/llvm/META.llvm" ;;
21700    "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
21701    "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
21702    "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
21703    "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
21704    "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
21705    "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
21706    "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
21707    "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
21708    "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
21709    "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
21710    "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
21711    "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
21712    "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
21713    "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
21714
21715  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21716echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21717   { (exit 1); exit 1; }; };;
21718  esac
21719done
21720
21721
21722# If the user did not use the arguments to specify the items to instantiate,
21723# then the envvar interface is used.  Set only those that are not.
21724# We use the long form for the default assignment because of an extremely
21725# bizarre bug on SunOS 4.1.3.
21726if $ac_need_defaults; then
21727  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21728  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
21729  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21730fi
21731
21732# Have a temporary directory for convenience.  Make it in the build tree
21733# simply because there is no reason against having it here, and in addition,
21734# creating and moving files from /tmp can sometimes cause problems.
21735# Hook for its removal unless debugging.
21736# Note that there is a small window in which the directory will not be cleaned:
21737# after its creation but before its name has been assigned to `$tmp'.
21738$debug ||
21739{
21740  tmp=
21741  trap 'exit_status=$?
21742  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
21743' 0
21744  trap '{ (exit 1); exit 1; }' 1 2 13 15
21745}
21746# Create a (secure) tmp directory for tmp files.
21747
21748{
21749  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
21750  test -n "$tmp" && test -d "$tmp"
21751}  ||
21752{
21753  tmp=./conf$$-$RANDOM
21754  (umask 077 && mkdir "$tmp")
21755} ||
21756{
21757   echo "$me: cannot create a temporary directory in ." >&2
21758   { (exit 1); exit 1; }
21759}
21760
21761#
21762# Set up the sed scripts for CONFIG_FILES section.
21763#
21764
21765# No need to generate the scripts if there are no CONFIG_FILES.
21766# This happens for instance when ./config.status config.h
21767if test -n "$CONFIG_FILES"; then
21768
21769_ACEOF
21770
21771
21772
21773ac_delim='%!_!# '
21774for ac_last_try in false false false false false :; do
21775  cat >conf$$subs.sed <<_ACEOF
21776SHELL!$SHELL$ac_delim
21777PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
21778PACKAGE_NAME!$PACKAGE_NAME$ac_delim
21779PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
21780PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
21781PACKAGE_STRING!$PACKAGE_STRING$ac_delim
21782PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
21783exec_prefix!$exec_prefix$ac_delim
21784prefix!$prefix$ac_delim
21785program_transform_name!$program_transform_name$ac_delim
21786bindir!$bindir$ac_delim
21787sbindir!$sbindir$ac_delim
21788libexecdir!$libexecdir$ac_delim
21789datarootdir!$datarootdir$ac_delim
21790datadir!$datadir$ac_delim
21791sysconfdir!$sysconfdir$ac_delim
21792sharedstatedir!$sharedstatedir$ac_delim
21793localstatedir!$localstatedir$ac_delim
21794includedir!$includedir$ac_delim
21795oldincludedir!$oldincludedir$ac_delim
21796docdir!$docdir$ac_delim
21797infodir!$infodir$ac_delim
21798htmldir!$htmldir$ac_delim
21799dvidir!$dvidir$ac_delim
21800pdfdir!$pdfdir$ac_delim
21801psdir!$psdir$ac_delim
21802libdir!$libdir$ac_delim
21803localedir!$localedir$ac_delim
21804mandir!$mandir$ac_delim
21805DEFS!$DEFS$ac_delim
21806ECHO_C!$ECHO_C$ac_delim
21807ECHO_N!$ECHO_N$ac_delim
21808ECHO_T!$ECHO_T$ac_delim
21809LIBS!$LIBS$ac_delim
21810build_alias!$build_alias$ac_delim
21811host_alias!$host_alias$ac_delim
21812target_alias!$target_alias$ac_delim
21813LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
21814CC!$CC$ac_delim
21815CFLAGS!$CFLAGS$ac_delim
21816LDFLAGS!$LDFLAGS$ac_delim
21817CPPFLAGS!$CPPFLAGS$ac_delim
21818ac_ct_CC!$ac_ct_CC$ac_delim
21819EXEEXT!$EXEEXT$ac_delim
21820OBJEXT!$OBJEXT$ac_delim
21821CXX!$CXX$ac_delim
21822CXXFLAGS!$CXXFLAGS$ac_delim
21823ac_ct_CXX!$ac_ct_CXX$ac_delim
21824CPP!$CPP$ac_delim
21825subdirs!$subdirs$ac_delim
21826ENABLE_POLLY!$ENABLE_POLLY$ac_delim
21827LLVM_HAS_POLLY!$LLVM_HAS_POLLY$ac_delim
21828build!$build$ac_delim
21829build_cpu!$build_cpu$ac_delim
21830build_vendor!$build_vendor$ac_delim
21831build_os!$build_os$ac_delim
21832host!$host$ac_delim
21833host_cpu!$host_cpu$ac_delim
21834host_vendor!$host_vendor$ac_delim
21835host_os!$host_os$ac_delim
21836target!$target$ac_delim
21837target_cpu!$target_cpu$ac_delim
21838target_vendor!$target_vendor$ac_delim
21839target_os!$target_os$ac_delim
21840OS!$OS$ac_delim
21841HOST_OS!$HOST_OS$ac_delim
21842TARGET_OS!$TARGET_OS$ac_delim
21843LINKALL!$LINKALL$ac_delim
21844NOLINKALL!$NOLINKALL$ac_delim
21845LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
21846LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
21847ARCH!$ARCH$ac_delim
21848ENDIAN!$ENDIAN$ac_delim
21849GREP!$GREP$ac_delim
21850EGREP!$EGREP$ac_delim
21851LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
21852BUILD_CC!$BUILD_CC$ac_delim
21853BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
21854BUILD_CXX!$BUILD_CXX$ac_delim
21855CVSBUILD!$CVSBUILD$ac_delim
21856ENABLE_LIBCPP!$ENABLE_LIBCPP$ac_delim
21857ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
21858ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
21859DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
21860ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
21861EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
21862DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
21863DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
21864JIT!$JIT$ac_delim
21865TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
21866ENABLE_DOCS!$ENABLE_DOCS$ac_delim
21867ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
21868LLVM_ENABLE_THREADS!$LLVM_ENABLE_THREADS$ac_delim
21869ENABLE_PTHREADS!$ENABLE_PTHREADS$ac_delim
21870ENABLE_PIC!$ENABLE_PIC$ac_delim
21871ENABLE_SHARED!$ENABLE_SHARED$ac_delim
21872ENABLE_EMBED_STDCXX!$ENABLE_EMBED_STDCXX$ac_delim
21873_ACEOF
21874
21875  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
21876    break
21877  elif $ac_last_try; then
21878    { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21879echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21880   { (exit 1); exit 1; }; }
21881  else
21882    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21883  fi
21884done
21885
21886ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21887if test -n "$ac_eof"; then
21888  ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21889  ac_eof=`expr $ac_eof + 1`
21890fi
21891
21892cat >>$CONFIG_STATUS <<_ACEOF
21893cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
21894/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21895_ACEOF
21896sed '
21897s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21898s/^/s,@/; s/!/@,|#_!!_#|/
21899:n
21900t n
21901s/'"$ac_delim"'$/,g/; t
21902s/$/\\/; p
21903N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21904' >>$CONFIG_STATUS <conf$$subs.sed
21905rm -f conf$$subs.sed
21906cat >>$CONFIG_STATUS <<_ACEOF
21907CEOF$ac_eof
21908_ACEOF
21909
21910
21911ac_delim='%!_!# '
21912for ac_last_try in false false false false false :; do
21913  cat >conf$$subs.sed <<_ACEOF
21914ENABLE_TIMESTAMPS!$ENABLE_TIMESTAMPS$ac_delim
21915TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
21916LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
21917LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
21918LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
21919LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
21920ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim
21921OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
21922EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
21923EXTRA_LD_OPTIONS!$EXTRA_LD_OPTIONS$ac_delim
21924CLANG_SRC_ROOT!$CLANG_SRC_ROOT$ac_delim
21925BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
21926INTERNAL_PREFIX!$INTERNAL_PREFIX$ac_delim
21927NM!$NM$ac_delim
21928ifGNUmake!$ifGNUmake$ac_delim
21929LN_S!$LN_S$ac_delim
21930CMP!$CMP$ac_delim
21931CP!$CP$ac_delim
21932DATE!$DATE$ac_delim
21933FIND!$FIND$ac_delim
21934MKDIR!$MKDIR$ac_delim
21935MV!$MV$ac_delim
21936RANLIB!$RANLIB$ac_delim
21937AR!$AR$ac_delim
21938RM!$RM$ac_delim
21939SED!$SED$ac_delim
21940TAR!$TAR$ac_delim
21941BINPWD!$BINPWD$ac_delim
21942GRAPHVIZ!$GRAPHVIZ$ac_delim
21943DOT!$DOT$ac_delim
21944FDP!$FDP$ac_delim
21945NEATO!$NEATO$ac_delim
21946TWOPI!$TWOPI$ac_delim
21947CIRCO!$CIRCO$ac_delim
21948GV!$GV$ac_delim
21949DOTTY!$DOTTY$ac_delim
21950XDOT_PY!$XDOT_PY$ac_delim
21951PERL!$PERL$ac_delim
21952HAVE_PERL!$HAVE_PERL$ac_delim
21953INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
21954INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
21955INSTALL_DATA!$INSTALL_DATA$ac_delim
21956BZIP2!$BZIP2$ac_delim
21957CAT!$CAT$ac_delim
21958DOXYGEN!$DOXYGEN$ac_delim
21959GROFF!$GROFF$ac_delim
21960GZIPBIN!$GZIPBIN$ac_delim
21961POD2HTML!$POD2HTML$ac_delim
21962POD2MAN!$POD2MAN$ac_delim
21963PDFROFF!$PDFROFF$ac_delim
21964RUNTEST!$RUNTEST$ac_delim
21965TCLSH!$TCLSH$ac_delim
21966ZIP!$ZIP$ac_delim
21967OCAMLC!$OCAMLC$ac_delim
21968OCAMLOPT!$OCAMLOPT$ac_delim
21969OCAMLDEP!$OCAMLDEP$ac_delim
21970OCAMLDOC!$OCAMLDOC$ac_delim
21971GAS!$GAS$ac_delim
21972HAVE_LINK_VERSION_SCRIPT!$HAVE_LINK_VERSION_SCRIPT$ac_delim
21973INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
21974INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
21975CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
21976CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
21977LIBADD_DL!$LIBADD_DL$ac_delim
21978NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
21979NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
21980COVERED_SWITCH_DEFAULT!$COVERED_SWITCH_DEFAULT$ac_delim
21981USE_UDIS86!$USE_UDIS86$ac_delim
21982USE_OPROFILE!$USE_OPROFILE$ac_delim
21983HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
21984HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
21985MMAP_FILE!$MMAP_FILE$ac_delim
21986SHLIBEXT!$SHLIBEXT$ac_delim
21987SHLIBPATH_VAR!$SHLIBPATH_VAR$ac_delim
21988LLVM_PREFIX!$LLVM_PREFIX$ac_delim
21989LLVM_BINDIR!$LLVM_BINDIR$ac_delim
21990LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
21991LLVM_DATADIR!$LLVM_DATADIR$ac_delim
21992LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
21993LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
21994LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
21995LLVM_INFODIR!$LLVM_INFODIR$ac_delim
21996LLVM_MANDIR!$LLVM_MANDIR$ac_delim
21997LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
21998BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
21999ALL_BINDINGS!$ALL_BINDINGS$ac_delim
22000OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
22001ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
22002RPATH!$RPATH$ac_delim
22003RDYNAMIC!$RDYNAMIC$ac_delim
22004LIBOBJS!$LIBOBJS$ac_delim
22005LTLIBOBJS!$LTLIBOBJS$ac_delim
22006_ACEOF
22007
22008  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 92; then
22009    break
22010  elif $ac_last_try; then
22011    { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22012echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22013   { (exit 1); exit 1; }; }
22014  else
22015    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22016  fi
22017done
22018
22019ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
22020if test -n "$ac_eof"; then
22021  ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
22022  ac_eof=`expr $ac_eof + 1`
22023fi
22024
22025cat >>$CONFIG_STATUS <<_ACEOF
22026cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
22027/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
22028_ACEOF
22029sed '
22030s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
22031s/^/s,@/; s/!/@,|#_!!_#|/
22032:n
22033t n
22034s/'"$ac_delim"'$/,g/; t
22035s/$/\\/; p
22036N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
22037' >>$CONFIG_STATUS <conf$$subs.sed
22038rm -f conf$$subs.sed
22039cat >>$CONFIG_STATUS <<_ACEOF
22040:end
22041s/|#_!!_#|//g
22042CEOF$ac_eof
22043_ACEOF
22044
22045
22046# VPATH may cause trouble with some makes, so we remove $(srcdir),
22047# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22048# trailing colons and then remove the whole line if VPATH becomes empty
22049# (actually we leave an empty line to preserve line numbers).
22050if test "x$srcdir" = x.; then
22051  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
22052s/:*\$(srcdir):*/:/
22053s/:*\${srcdir}:*/:/
22054s/:*@srcdir@:*/:/
22055s/^\([^=]*=[	 ]*\):*/\1/
22056s/:*$//
22057s/^[^=]*=[	 ]*$//
22058}'
22059fi
22060
22061cat >>$CONFIG_STATUS <<\_ACEOF
22062fi # test -n "$CONFIG_FILES"
22063
22064
22065for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
22066do
22067  case $ac_tag in
22068  :[FHLC]) ac_mode=$ac_tag; continue;;
22069  esac
22070  case $ac_mode$ac_tag in
22071  :[FHL]*:*);;
22072  :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
22073echo "$as_me: error: Invalid tag $ac_tag." >&2;}
22074   { (exit 1); exit 1; }; };;
22075  :[FH]-) ac_tag=-:-;;
22076  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
22077  esac
22078  ac_save_IFS=$IFS
22079  IFS=:
22080  set x $ac_tag
22081  IFS=$ac_save_IFS
22082  shift
22083  ac_file=$1
22084  shift
22085
22086  case $ac_mode in
22087  :L) ac_source=$1;;
22088  :[FH])
22089    ac_file_inputs=
22090    for ac_f
22091    do
22092      case $ac_f in
22093      -) ac_f="$tmp/stdin";;
22094      *) # Look for the file first in the build tree, then in the source tree
22095	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
22096	 # because $ac_f cannot contain `:'.
22097	 test -f "$ac_f" ||
22098	   case $ac_f in
22099	   [\\/$]*) false;;
22100	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
22101	   esac ||
22102	   { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
22103echo "$as_me: error: cannot find input file: $ac_f" >&2;}
22104   { (exit 1); exit 1; }; };;
22105      esac
22106      ac_file_inputs="$ac_file_inputs $ac_f"
22107    done
22108
22109    # Let's still pretend it is `configure' which instantiates (i.e., don't
22110    # use $as_me), people would be surprised to read:
22111    #    /* config.h.  Generated by config.status.  */
22112    configure_input="Generated from "`IFS=:
22113	  echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
22114    if test x"$ac_file" != x-; then
22115      configure_input="$ac_file.  $configure_input"
22116      { echo "$as_me:$LINENO: creating $ac_file" >&5
22117echo "$as_me: creating $ac_file" >&6;}
22118    fi
22119
22120    case $ac_tag in
22121    *:-:* | *:-) cat >"$tmp/stdin";;
22122    esac
22123    ;;
22124  esac
22125
22126  ac_dir=`$as_dirname -- "$ac_file" ||
22127$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22128	 X"$ac_file" : 'X\(//\)[^/]' \| \
22129	 X"$ac_file" : 'X\(//\)$' \| \
22130	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
22131echo X"$ac_file" |
22132    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22133	    s//\1/
22134	    q
22135	  }
22136	  /^X\(\/\/\)[^/].*/{
22137	    s//\1/
22138	    q
22139	  }
22140	  /^X\(\/\/\)$/{
22141	    s//\1/
22142	    q
22143	  }
22144	  /^X\(\/\).*/{
22145	    s//\1/
22146	    q
22147	  }
22148	  s/.*/./; q'`
22149  { as_dir="$ac_dir"
22150  case $as_dir in #(
22151  -*) as_dir=./$as_dir;;
22152  esac
22153  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22154    as_dirs=
22155    while :; do
22156      case $as_dir in #(
22157      *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22158      *) as_qdir=$as_dir;;
22159      esac
22160      as_dirs="'$as_qdir' $as_dirs"
22161      as_dir=`$as_dirname -- "$as_dir" ||
22162$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22163	 X"$as_dir" : 'X\(//\)[^/]' \| \
22164	 X"$as_dir" : 'X\(//\)$' \| \
22165	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22166echo X"$as_dir" |
22167    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22168	    s//\1/
22169	    q
22170	  }
22171	  /^X\(\/\/\)[^/].*/{
22172	    s//\1/
22173	    q
22174	  }
22175	  /^X\(\/\/\)$/{
22176	    s//\1/
22177	    q
22178	  }
22179	  /^X\(\/\).*/{
22180	    s//\1/
22181	    q
22182	  }
22183	  s/.*/./; q'`
22184      test -d "$as_dir" && break
22185    done
22186    test -z "$as_dirs" || eval "mkdir $as_dirs"
22187  } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22188echo "$as_me: error: cannot create directory $as_dir" >&2;}
22189   { (exit 1); exit 1; }; }; }
22190  ac_builddir=.
22191
22192case "$ac_dir" in
22193.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22194*)
22195  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22196  # A ".." for each directory in $ac_dir_suffix.
22197  ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
22198  case $ac_top_builddir_sub in
22199  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22200  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22201  esac ;;
22202esac
22203ac_abs_top_builddir=$ac_pwd
22204ac_abs_builddir=$ac_pwd$ac_dir_suffix
22205# for backward compatibility:
22206ac_top_builddir=$ac_top_build_prefix
22207
22208case $srcdir in
22209  .)  # We are building in place.
22210    ac_srcdir=.
22211    ac_top_srcdir=$ac_top_builddir_sub
22212    ac_abs_top_srcdir=$ac_pwd ;;
22213  [\\/]* | ?:[\\/]* )  # Absolute name.
22214    ac_srcdir=$srcdir$ac_dir_suffix;
22215    ac_top_srcdir=$srcdir
22216    ac_abs_top_srcdir=$srcdir ;;
22217  *) # Relative name.
22218    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22219    ac_top_srcdir=$ac_top_build_prefix$srcdir
22220    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22221esac
22222ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22223
22224
22225  case $ac_mode in
22226  :F)
22227  #
22228  # CONFIG_FILE
22229  #
22230
22231  case $INSTALL in
22232  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22233  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
22234  esac
22235_ACEOF
22236
22237cat >>$CONFIG_STATUS <<\_ACEOF
22238# If the template does not know about datarootdir, expand it.
22239# FIXME: This hack should be removed a few years after 2.60.
22240ac_datarootdir_hack=; ac_datarootdir_seen=
22241
22242case `sed -n '/datarootdir/ {
22243  p
22244  q
22245}
22246/@datadir@/p
22247/@docdir@/p
22248/@infodir@/p
22249/@localedir@/p
22250/@mandir@/p
22251' $ac_file_inputs` in
22252*datarootdir*) ac_datarootdir_seen=yes;;
22253*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
22254  { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22255echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
22256_ACEOF
22257cat >>$CONFIG_STATUS <<_ACEOF
22258  ac_datarootdir_hack='
22259  s&@datadir@&$datadir&g
22260  s&@docdir@&$docdir&g
22261  s&@infodir@&$infodir&g
22262  s&@localedir@&$localedir&g
22263  s&@mandir@&$mandir&g
22264    s&\\\${datarootdir}&$datarootdir&g' ;;
22265esac
22266_ACEOF
22267
22268# Neutralize VPATH when `$srcdir' = `.'.
22269# Shell code in configure.ac might set extrasub.
22270# FIXME: do we really want to maintain this feature?
22271cat >>$CONFIG_STATUS <<_ACEOF
22272  sed "$ac_vpsub
22273$extrasub
22274_ACEOF
22275cat >>$CONFIG_STATUS <<\_ACEOF
22276:t
22277/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22278s&@configure_input@&$configure_input&;t t
22279s&@top_builddir@&$ac_top_builddir_sub&;t t
22280s&@srcdir@&$ac_srcdir&;t t
22281s&@abs_srcdir@&$ac_abs_srcdir&;t t
22282s&@top_srcdir@&$ac_top_srcdir&;t t
22283s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22284s&@builddir@&$ac_builddir&;t t
22285s&@abs_builddir@&$ac_abs_builddir&;t t
22286s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22287s&@INSTALL@&$ac_INSTALL&;t t
22288$ac_datarootdir_hack
22289" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
22290
22291test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22292  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
22293  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
22294  { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22295which seems to be undefined.  Please make sure it is defined." >&5
22296echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22297which seems to be undefined.  Please make sure it is defined." >&2;}
22298
22299  rm -f "$tmp/stdin"
22300  case $ac_file in
22301  -) cat "$tmp/out"; rm -f "$tmp/out";;
22302  *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
22303  esac
22304 ;;
22305  :H)
22306  #
22307  # CONFIG_HEADER
22308  #
22309_ACEOF
22310
22311# Transform confdefs.h into a sed script `conftest.defines', that
22312# substitutes the proper values into config.h.in to produce config.h.
22313rm -f conftest.defines conftest.tail
22314# First, append a space to every undef/define line, to ease matching.
22315echo 's/$/ /' >conftest.defines
22316# Then, protect against being on the right side of a sed subst, or in
22317# an unquoted here document, in config.status.  If some macros were
22318# called several times there might be several #defines for the same
22319# symbol, which is useless.  But do not sort them, since the last
22320# AC_DEFINE must be honored.
22321ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
22322# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
22323# NAME is the cpp macro being defined, VALUE is the value it is being given.
22324# PARAMS is the parameter list in the macro definition--in most cases, it's
22325# just an empty string.
22326ac_dA='s,^\\([	 #]*\\)[^	 ]*\\([	 ]*'
22327ac_dB='\\)[	 (].*,\\1define\\2'
22328ac_dC=' '
22329ac_dD=' ,'
22330
22331uniq confdefs.h |
22332  sed -n '
22333	t rset
22334	:rset
22335	s/^[	 ]*#[	 ]*define[	 ][	 ]*//
22336	t ok
22337	d
22338	:ok
22339	s/[\\&,]/\\&/g
22340	s/^\('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
22341	s/^\('"$ac_word_re"'\)[	 ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
22342  ' >>conftest.defines
22343
22344# Remove the space that was appended to ease matching.
22345# Then replace #undef with comments.  This is necessary, for
22346# example, in the case of _POSIX_SOURCE, which is predefined and required
22347# on some systems where configure will not decide to define it.
22348# (The regexp can be short, since the line contains either #define or #undef.)
22349echo 's/ $//
22350s,^[	 #]*u.*,/* & */,' >>conftest.defines
22351
22352# Break up conftest.defines:
22353ac_max_sed_lines=50
22354
22355# First sed command is:	 sed -f defines.sed $ac_file_inputs >"$tmp/out1"
22356# Second one is:	 sed -f defines.sed "$tmp/out1" >"$tmp/out2"
22357# Third one will be:	 sed -f defines.sed "$tmp/out2" >"$tmp/out1"
22358# et cetera.
22359ac_in='$ac_file_inputs'
22360ac_out='"$tmp/out1"'
22361ac_nxt='"$tmp/out2"'
22362
22363while :
22364do
22365  # Write a here document:
22366    cat >>$CONFIG_STATUS <<_ACEOF
22367    # First, check the format of the line:
22368    cat >"\$tmp/defines.sed" <<\\CEOF
22369/^[	 ]*#[	 ]*undef[	 ][	 ]*$ac_word_re[	 ]*\$/b def
22370/^[	 ]*#[	 ]*define[	 ][	 ]*$ac_word_re[(	 ]/b def
22371b
22372:def
22373_ACEOF
22374  sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
22375  echo 'CEOF
22376    sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
22377  ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
22378  sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
22379  grep . conftest.tail >/dev/null || break
22380  rm -f conftest.defines
22381  mv conftest.tail conftest.defines
22382done
22383rm -f conftest.defines conftest.tail
22384
22385echo "ac_result=$ac_in" >>$CONFIG_STATUS
22386cat >>$CONFIG_STATUS <<\_ACEOF
22387  if test x"$ac_file" != x-; then
22388    echo "/* $configure_input  */" >"$tmp/config.h"
22389    cat "$ac_result" >>"$tmp/config.h"
22390    if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
22391      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
22392echo "$as_me: $ac_file is unchanged" >&6;}
22393    else
22394      rm -f $ac_file
22395      mv "$tmp/config.h" $ac_file
22396    fi
22397  else
22398    echo "/* $configure_input  */"
22399    cat "$ac_result"
22400  fi
22401  rm -f "$tmp/out12"
22402 ;;
22403
22404  :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
22405echo "$as_me: executing $ac_file commands" >&6;}
22406 ;;
22407  esac
22408
22409
22410  case $ac_file$ac_mode in
22411    "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
22412   ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
22413    "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
22414   ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common ;;
22415    "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
22416   ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples/Makefile examples/Makefile ;;
22417    "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
22418   ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
22419    "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
22420   ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
22421    "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
22422   ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile test/Makefile ;;
22423    "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
22424   ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
22425    "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
22426   ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
22427    "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
22428   ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
22429    "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
22430   ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils/Makefile utils/Makefile ;;
22431    "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
22432   ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects/Makefile projects/Makefile ;;
22433    "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
22434   ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
22435    "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
22436   ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
22437
22438  esac
22439done # for ac_tag
22440
22441
22442{ (exit 0); exit 0; }
22443_ACEOF
22444chmod +x $CONFIG_STATUS
22445ac_clean_files=$ac_clean_files_save
22446
22447
22448# configure is writing to config.log, and then calls config.status.
22449# config.status does its own redirection, appending to config.log.
22450# Unfortunately, on DOS this fails, as config.log is still kept open
22451# by configure, so config.status won't be able to write to it; its
22452# output is simply discarded.  So we exec the FD to /dev/null,
22453# effectively closing config.log, so it can be properly (re)opened and
22454# appended to by config.status.  When coming back to configure, we
22455# need to make the FD available again.
22456if test "$no_create" != yes; then
22457  ac_cs_success=:
22458  ac_config_status_args=
22459  test "$silent" = yes &&
22460    ac_config_status_args="$ac_config_status_args --quiet"
22461  exec 5>/dev/null
22462  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22463  exec 5>>config.log
22464  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22465  # would make configure fail if this is the last instruction.
22466  $ac_cs_success || { (exit 1); exit 1; }
22467fi
22468
22469#
22470# CONFIG_SUBDIRS section.
22471#
22472if test "$no_recursion" != yes; then
22473
22474  # Remove --cache-file and --srcdir arguments so they do not pile up.
22475  ac_sub_configure_args=
22476  ac_prev=
22477  eval "set x $ac_configure_args"
22478  shift
22479  for ac_arg
22480  do
22481    if test -n "$ac_prev"; then
22482      ac_prev=
22483      continue
22484    fi
22485    case $ac_arg in
22486    -cache-file | --cache-file | --cache-fil | --cache-fi \
22487    | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
22488      ac_prev=cache_file ;;
22489    -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
22490    | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
22491    | --c=*)
22492      ;;
22493    --config-cache | -C)
22494      ;;
22495    -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
22496      ac_prev=srcdir ;;
22497    -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
22498      ;;
22499    -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
22500      ac_prev=prefix ;;
22501    -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
22502      ;;
22503    *)
22504      case $ac_arg in
22505      *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
22506      esac
22507      ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
22508    esac
22509  done
22510
22511  # Always prepend --prefix to ensure using the same prefix
22512  # in subdir configurations.
22513  ac_arg="--prefix=$prefix"
22514  case $ac_arg in
22515  *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
22516  esac
22517  ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
22518
22519  ac_popdir=`pwd`
22520  for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
22521
22522    # Do not complain, so a configure script can configure whichever
22523    # parts of a large source tree are present.
22524    test -d "$srcdir/$ac_dir" || continue
22525
22526    ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
22527    echo "$as_me:$LINENO: $ac_msg" >&5
22528    echo "$ac_msg" >&6
22529    { as_dir="$ac_dir"
22530  case $as_dir in #(
22531  -*) as_dir=./$as_dir;;
22532  esac
22533  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22534    as_dirs=
22535    while :; do
22536      case $as_dir in #(
22537      *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22538      *) as_qdir=$as_dir;;
22539      esac
22540      as_dirs="'$as_qdir' $as_dirs"
22541      as_dir=`$as_dirname -- "$as_dir" ||
22542$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22543	 X"$as_dir" : 'X\(//\)[^/]' \| \
22544	 X"$as_dir" : 'X\(//\)$' \| \
22545	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22546echo X"$as_dir" |
22547    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22548	    s//\1/
22549	    q
22550	  }
22551	  /^X\(\/\/\)[^/].*/{
22552	    s//\1/
22553	    q
22554	  }
22555	  /^X\(\/\/\)$/{
22556	    s//\1/
22557	    q
22558	  }
22559	  /^X\(\/\).*/{
22560	    s//\1/
22561	    q
22562	  }
22563	  s/.*/./; q'`
22564      test -d "$as_dir" && break
22565    done
22566    test -z "$as_dirs" || eval "mkdir $as_dirs"
22567  } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22568echo "$as_me: error: cannot create directory $as_dir" >&2;}
22569   { (exit 1); exit 1; }; }; }
22570    ac_builddir=.
22571
22572case "$ac_dir" in
22573.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22574*)
22575  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22576  # A ".." for each directory in $ac_dir_suffix.
22577  ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
22578  case $ac_top_builddir_sub in
22579  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22580  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22581  esac ;;
22582esac
22583ac_abs_top_builddir=$ac_pwd
22584ac_abs_builddir=$ac_pwd$ac_dir_suffix
22585# for backward compatibility:
22586ac_top_builddir=$ac_top_build_prefix
22587
22588case $srcdir in
22589  .)  # We are building in place.
22590    ac_srcdir=.
22591    ac_top_srcdir=$ac_top_builddir_sub
22592    ac_abs_top_srcdir=$ac_pwd ;;
22593  [\\/]* | ?:[\\/]* )  # Absolute name.
22594    ac_srcdir=$srcdir$ac_dir_suffix;
22595    ac_top_srcdir=$srcdir
22596    ac_abs_top_srcdir=$srcdir ;;
22597  *) # Relative name.
22598    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22599    ac_top_srcdir=$ac_top_build_prefix$srcdir
22600    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22601esac
22602ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22603
22604
22605    cd "$ac_dir"
22606
22607    # Check for guested configure; otherwise get Cygnus style configure.
22608    if test -f "$ac_srcdir/configure.gnu"; then
22609      ac_sub_configure=$ac_srcdir/configure.gnu
22610    elif test -f "$ac_srcdir/configure"; then
22611      ac_sub_configure=$ac_srcdir/configure
22612    elif test -f "$ac_srcdir/configure.in"; then
22613      # This should be Cygnus configure.
22614      ac_sub_configure=$ac_aux_dir/configure
22615    else
22616      { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
22617echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
22618      ac_sub_configure=
22619    fi
22620
22621    # The recursion is here.
22622    if test -n "$ac_sub_configure"; then
22623      # Make the cache file name correct relative to the subdirectory.
22624      case $cache_file in
22625      [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
22626      *) # Relative name.
22627	ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
22628      esac
22629
22630      { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
22631echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
22632      # The eval makes quoting arguments work.
22633      eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
22634	   --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
22635	{ { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
22636echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
22637   { (exit 1); exit 1; }; }
22638    fi
22639
22640    cd "$ac_popdir"
22641  done
22642fi
22643
22644