1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.60 for LLVM 3.2svn.
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.2svn'
565PACKAGE_STRING='LLVM 3.2svn'
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
677HOST_ARCH
678ENDIAN
679GREP
680EGREP
681LLVM_CROSS_COMPILING
682BUILD_CC
683BUILD_EXEEXT
684BUILD_CXX
685CVSBUILD
686ENABLE_LIBCPP
687ENABLE_CXX11
688ENABLE_OPTIMIZED
689ENABLE_PROFILING
690DISABLE_ASSERTIONS
691ENABLE_WERROR
692ENABLE_EXPENSIVE_CHECKS
693EXPENSIVE_CHECKS
694DEBUG_RUNTIME
695DEBUG_SYMBOLS
696KEEP_SYMBOLS
697JIT
698TARGET_HAS_JIT
699ENABLE_DOCS
700ENABLE_DOXYGEN
701LLVM_ENABLE_THREADS
702ENABLE_PTHREADS
703ENABLE_PIC
704ENABLE_SHARED
705ENABLE_EMBED_STDCXX
706ENABLE_TIMESTAMPS
707TARGETS_TO_BUILD
708LLVM_ENUM_TARGETS
709LLVM_ENUM_ASM_PRINTERS
710LLVM_ENUM_ASM_PARSERS
711LLVM_ENUM_DISASSEMBLERS
712OPTIMIZE_OPTION
713EXTRA_OPTIONS
714EXTRA_LD_OPTIONS
715CLANG_SRC_ROOT
716BINUTILS_INCDIR
717INTERNAL_PREFIX
718NM
719ifGNUmake
720LN_S
721CMP
722CP
723DATE
724FIND
725MKDIR
726MV
727RANLIB
728AR
729RM
730SED
731TAR
732BINPWD
733GRAPHVIZ
734DOT
735FDP
736NEATO
737TWOPI
738CIRCO
739GV
740DOTTY
741XDOT_PY
742INSTALL_PROGRAM
743INSTALL_SCRIPT
744INSTALL_DATA
745BZIP2
746CAT
747DOXYGEN
748GROFF
749GZIPBIN
750PDFROFF
751ZIP
752OCAMLC
753OCAMLOPT
754OCAMLDEP
755OCAMLDOC
756GAS
757HAVE_LINK_VERSION_SCRIPT
758INSTALL_LTDL_TRUE
759INSTALL_LTDL_FALSE
760CONVENIENCE_LTDL_TRUE
761CONVENIENCE_LTDL_FALSE
762LIBADD_DL
763NO_VARIADIC_MACROS
764NO_MISSING_FIELD_INITIALIZERS
765COVERED_SWITCH_DEFAULT
766USE_UDIS86
767USE_OPROFILE
768USE_INTEL_JITEVENTS
769XML2CONFIG
770LIBXML2_LIBS
771LIBXML2_INC
772HAVE_PTHREAD
773HUGE_VAL_SANITY
774MMAP_FILE
775SHLIBEXT
776SHLIBPATH_VAR
777LLVM_PREFIX
778LLVM_BINDIR
779LLVM_LIBDIR
780LLVM_DATADIR
781LLVM_DOCSDIR
782LLVM_ETCDIR
783LLVM_INCLUDEDIR
784LLVM_INFODIR
785LLVM_MANDIR
786LLVM_CONFIGTIME
787BINDINGS_TO_BUILD
788ALL_BINDINGS
789OCAML_LIBDIR
790ENABLE_VISIBILITY_INLINES_HIDDEN
791RPATH
792RDYNAMIC
793program_prefix
794LIBOBJS
795LTLIBOBJS'
796ac_subst_files=''
797      ac_precious_vars='build_alias
798host_alias
799target_alias
800CC
801CFLAGS
802LDFLAGS
803CPPFLAGS
804CXX
805CXXFLAGS
806CCC
807CPP'
808ac_subdirs_all='projects/llvm-gcc
809projects/test-suite
810projects/llvm-test
811projects/poolalloc
812projects/llvm-poolalloc
813projects/sample
814projects/privbracket
815projects/llvm-stacker
816projects/llvm-reopt
817projects/llvm-java
818projects/llvm-tv
819projects/safecode
820projects/llvm-kernel
821tools/polly'
822
823# Initialize some variables set by options.
824ac_init_help=
825ac_init_version=false
826# The variables have the same names as the options, with
827# dashes changed to underlines.
828cache_file=/dev/null
829exec_prefix=NONE
830no_create=
831no_recursion=
832prefix=NONE
833program_prefix=NONE
834program_suffix=NONE
835program_transform_name=s,x,x,
836silent=
837site=
838srcdir=
839verbose=
840x_includes=NONE
841x_libraries=NONE
842
843# Installation directory options.
844# These are left unexpanded so users can "make install exec_prefix=/foo"
845# and all the variables that are supposed to be based on exec_prefix
846# by default will actually change.
847# Use braces instead of parens because sh, perl, etc. also accept them.
848# (The list follows the same order as the GNU Coding Standards.)
849bindir='${exec_prefix}/bin'
850sbindir='${exec_prefix}/sbin'
851libexecdir='${exec_prefix}/libexec'
852datarootdir='${prefix}/share'
853datadir='${datarootdir}'
854sysconfdir='${prefix}/etc'
855sharedstatedir='${prefix}/com'
856localstatedir='${prefix}/var'
857includedir='${prefix}/include'
858oldincludedir='/usr/include'
859docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
860infodir='${datarootdir}/info'
861htmldir='${docdir}'
862dvidir='${docdir}'
863pdfdir='${docdir}'
864psdir='${docdir}'
865libdir='${exec_prefix}/lib'
866localedir='${datarootdir}/locale'
867mandir='${datarootdir}/man'
868
869ac_prev=
870ac_dashdash=
871for ac_option
872do
873  # If the previous option needs an argument, assign it.
874  if test -n "$ac_prev"; then
875    eval $ac_prev=\$ac_option
876    ac_prev=
877    continue
878  fi
879
880  case $ac_option in
881  *=*)	ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
882  *)	ac_optarg=yes ;;
883  esac
884
885  # Accept the important Cygnus configure options, so we can diagnose typos.
886
887  case $ac_dashdash$ac_option in
888  --)
889    ac_dashdash=yes ;;
890
891  -bindir | --bindir | --bindi | --bind | --bin | --bi)
892    ac_prev=bindir ;;
893  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
894    bindir=$ac_optarg ;;
895
896  -build | --build | --buil | --bui | --bu)
897    ac_prev=build_alias ;;
898  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
899    build_alias=$ac_optarg ;;
900
901  -cache-file | --cache-file | --cache-fil | --cache-fi \
902  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
903    ac_prev=cache_file ;;
904  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
905  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
906    cache_file=$ac_optarg ;;
907
908  --config-cache | -C)
909    cache_file=config.cache ;;
910
911  -datadir | --datadir | --datadi | --datad)
912    ac_prev=datadir ;;
913  -datadir=* | --datadir=* | --datadi=* | --datad=*)
914    datadir=$ac_optarg ;;
915
916  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
917  | --dataroo | --dataro | --datar)
918    ac_prev=datarootdir ;;
919  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
920  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
921    datarootdir=$ac_optarg ;;
922
923  -disable-* | --disable-*)
924    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
925    # Reject names that are not valid shell variable names.
926    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
927      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
928   { (exit 1); exit 1; }; }
929    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
930    eval enable_$ac_feature=no ;;
931
932  -docdir | --docdir | --docdi | --doc | --do)
933    ac_prev=docdir ;;
934  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
935    docdir=$ac_optarg ;;
936
937  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
938    ac_prev=dvidir ;;
939  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
940    dvidir=$ac_optarg ;;
941
942  -enable-* | --enable-*)
943    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
944    # Reject names that are not valid shell variable names.
945    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
946      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
947   { (exit 1); exit 1; }; }
948    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
949    eval enable_$ac_feature=\$ac_optarg ;;
950
951  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
952  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
953  | --exec | --exe | --ex)
954    ac_prev=exec_prefix ;;
955  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
956  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
957  | --exec=* | --exe=* | --ex=*)
958    exec_prefix=$ac_optarg ;;
959
960  -gas | --gas | --ga | --g)
961    # Obsolete; use --with-gas.
962    with_gas=yes ;;
963
964  -help | --help | --hel | --he | -h)
965    ac_init_help=long ;;
966  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
967    ac_init_help=recursive ;;
968  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
969    ac_init_help=short ;;
970
971  -host | --host | --hos | --ho)
972    ac_prev=host_alias ;;
973  -host=* | --host=* | --hos=* | --ho=*)
974    host_alias=$ac_optarg ;;
975
976  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
977    ac_prev=htmldir ;;
978  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
979  | --ht=*)
980    htmldir=$ac_optarg ;;
981
982  -includedir | --includedir | --includedi | --included | --include \
983  | --includ | --inclu | --incl | --inc)
984    ac_prev=includedir ;;
985  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
986  | --includ=* | --inclu=* | --incl=* | --inc=*)
987    includedir=$ac_optarg ;;
988
989  -infodir | --infodir | --infodi | --infod | --info | --inf)
990    ac_prev=infodir ;;
991  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
992    infodir=$ac_optarg ;;
993
994  -libdir | --libdir | --libdi | --libd)
995    ac_prev=libdir ;;
996  -libdir=* | --libdir=* | --libdi=* | --libd=*)
997    libdir=$ac_optarg ;;
998
999  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1000  | --libexe | --libex | --libe)
1001    ac_prev=libexecdir ;;
1002  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1003  | --libexe=* | --libex=* | --libe=*)
1004    libexecdir=$ac_optarg ;;
1005
1006  -localedir | --localedir | --localedi | --localed | --locale)
1007    ac_prev=localedir ;;
1008  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1009    localedir=$ac_optarg ;;
1010
1011  -localstatedir | --localstatedir | --localstatedi | --localstated \
1012  | --localstate | --localstat | --localsta | --localst | --locals)
1013    ac_prev=localstatedir ;;
1014  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1015  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1016    localstatedir=$ac_optarg ;;
1017
1018  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1019    ac_prev=mandir ;;
1020  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1021    mandir=$ac_optarg ;;
1022
1023  -nfp | --nfp | --nf)
1024    # Obsolete; use --without-fp.
1025    with_fp=no ;;
1026
1027  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1028  | --no-cr | --no-c | -n)
1029    no_create=yes ;;
1030
1031  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1032  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1033    no_recursion=yes ;;
1034
1035  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1036  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1037  | --oldin | --oldi | --old | --ol | --o)
1038    ac_prev=oldincludedir ;;
1039  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1040  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1041  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1042    oldincludedir=$ac_optarg ;;
1043
1044  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1045    ac_prev=prefix ;;
1046  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1047    prefix=$ac_optarg ;;
1048
1049  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1050  | --program-pre | --program-pr | --program-p)
1051    ac_prev=program_prefix ;;
1052  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1053  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1054    program_prefix=$ac_optarg ;;
1055
1056  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1057  | --program-suf | --program-su | --program-s)
1058    ac_prev=program_suffix ;;
1059  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1060  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1061    program_suffix=$ac_optarg ;;
1062
1063  -program-transform-name | --program-transform-name \
1064  | --program-transform-nam | --program-transform-na \
1065  | --program-transform-n | --program-transform- \
1066  | --program-transform | --program-transfor \
1067  | --program-transfo | --program-transf \
1068  | --program-trans | --program-tran \
1069  | --progr-tra | --program-tr | --program-t)
1070    ac_prev=program_transform_name ;;
1071  -program-transform-name=* | --program-transform-name=* \
1072  | --program-transform-nam=* | --program-transform-na=* \
1073  | --program-transform-n=* | --program-transform-=* \
1074  | --program-transform=* | --program-transfor=* \
1075  | --program-transfo=* | --program-transf=* \
1076  | --program-trans=* | --program-tran=* \
1077  | --progr-tra=* | --program-tr=* | --program-t=*)
1078    program_transform_name=$ac_optarg ;;
1079
1080  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1081    ac_prev=pdfdir ;;
1082  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1083    pdfdir=$ac_optarg ;;
1084
1085  -psdir | --psdir | --psdi | --psd | --ps)
1086    ac_prev=psdir ;;
1087  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1088    psdir=$ac_optarg ;;
1089
1090  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1091  | -silent | --silent | --silen | --sile | --sil)
1092    silent=yes ;;
1093
1094  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1095    ac_prev=sbindir ;;
1096  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1097  | --sbi=* | --sb=*)
1098    sbindir=$ac_optarg ;;
1099
1100  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1101  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1102  | --sharedst | --shareds | --shared | --share | --shar \
1103  | --sha | --sh)
1104    ac_prev=sharedstatedir ;;
1105  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1106  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1107  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1108  | --sha=* | --sh=*)
1109    sharedstatedir=$ac_optarg ;;
1110
1111  -site | --site | --sit)
1112    ac_prev=site ;;
1113  -site=* | --site=* | --sit=*)
1114    site=$ac_optarg ;;
1115
1116  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1117    ac_prev=srcdir ;;
1118  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1119    srcdir=$ac_optarg ;;
1120
1121  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1122  | --syscon | --sysco | --sysc | --sys | --sy)
1123    ac_prev=sysconfdir ;;
1124  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1125  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1126    sysconfdir=$ac_optarg ;;
1127
1128  -target | --target | --targe | --targ | --tar | --ta | --t)
1129    ac_prev=target_alias ;;
1130  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1131    target_alias=$ac_optarg ;;
1132
1133  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1134    verbose=yes ;;
1135
1136  -version | --version | --versio | --versi | --vers | -V)
1137    ac_init_version=: ;;
1138
1139  -with-* | --with-*)
1140    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1141    # Reject names that are not valid shell variable names.
1142    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1143      { echo "$as_me: error: invalid package name: $ac_package" >&2
1144   { (exit 1); exit 1; }; }
1145    ac_package=`echo $ac_package| sed 's/-/_/g'`
1146    eval with_$ac_package=\$ac_optarg ;;
1147
1148  -without-* | --without-*)
1149    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1150    # Reject names that are not valid shell variable names.
1151    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1152      { echo "$as_me: error: invalid package name: $ac_package" >&2
1153   { (exit 1); exit 1; }; }
1154    ac_package=`echo $ac_package | sed 's/-/_/g'`
1155    eval with_$ac_package=no ;;
1156
1157  --x)
1158    # Obsolete; use --with-x.
1159    with_x=yes ;;
1160
1161  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1162  | --x-incl | --x-inc | --x-in | --x-i)
1163    ac_prev=x_includes ;;
1164  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1165  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1166    x_includes=$ac_optarg ;;
1167
1168  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1169  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1170    ac_prev=x_libraries ;;
1171  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1172  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1173    x_libraries=$ac_optarg ;;
1174
1175  -*) { echo "$as_me: error: unrecognized option: $ac_option
1176Try \`$0 --help' for more information." >&2
1177   { (exit 1); exit 1; }; }
1178    ;;
1179
1180  *=*)
1181    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1182    # Reject names that are not valid shell variable names.
1183    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1184      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1185   { (exit 1); exit 1; }; }
1186    eval $ac_envvar=\$ac_optarg
1187    export $ac_envvar ;;
1188
1189  *)
1190    # FIXME: should be removed in autoconf 3.0.
1191    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1192    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1193      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1194    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1195    ;;
1196
1197  esac
1198done
1199
1200if test -n "$ac_prev"; then
1201  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1202  { echo "$as_me: error: missing argument to $ac_option" >&2
1203   { (exit 1); exit 1; }; }
1204fi
1205
1206# Be sure to have absolute directory names.
1207for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1208		datadir sysconfdir sharedstatedir localstatedir includedir \
1209		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1210		libdir localedir mandir
1211do
1212  eval ac_val=\$$ac_var
1213  case $ac_val in
1214    [\\/$]* | ?:[\\/]* )  continue;;
1215    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1216  esac
1217  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1218   { (exit 1); exit 1; }; }
1219done
1220
1221# There might be people who depend on the old broken behavior: `$host'
1222# used to hold the argument of --host etc.
1223# FIXME: To remove some day.
1224build=$build_alias
1225host=$host_alias
1226target=$target_alias
1227
1228# FIXME: To remove some day.
1229if test "x$host_alias" != x; then
1230  if test "x$build_alias" = x; then
1231    cross_compiling=maybe
1232    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1233    If a cross compiler is detected then cross compile mode will be used." >&2
1234  elif test "x$build_alias" != "x$host_alias"; then
1235    cross_compiling=yes
1236  fi
1237fi
1238
1239ac_tool_prefix=
1240test -n "$host_alias" && ac_tool_prefix=$host_alias-
1241
1242test "$silent" = yes && exec 6>/dev/null
1243
1244
1245ac_pwd=`pwd` && test -n "$ac_pwd" &&
1246ac_ls_di=`ls -di .` &&
1247ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1248  { echo "$as_me: error: Working directory cannot be determined" >&2
1249   { (exit 1); exit 1; }; }
1250test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1251  { echo "$as_me: error: pwd does not report name of working directory" >&2
1252   { (exit 1); exit 1; }; }
1253
1254
1255# Find the source files, if location was not specified.
1256if test -z "$srcdir"; then
1257  ac_srcdir_defaulted=yes
1258  # Try the directory containing this script, then the parent directory.
1259  ac_confdir=`$as_dirname -- "$0" ||
1260$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1261	 X"$0" : 'X\(//\)[^/]' \| \
1262	 X"$0" : 'X\(//\)$' \| \
1263	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1264echo X"$0" |
1265    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1266	    s//\1/
1267	    q
1268	  }
1269	  /^X\(\/\/\)[^/].*/{
1270	    s//\1/
1271	    q
1272	  }
1273	  /^X\(\/\/\)$/{
1274	    s//\1/
1275	    q
1276	  }
1277	  /^X\(\/\).*/{
1278	    s//\1/
1279	    q
1280	  }
1281	  s/.*/./; q'`
1282  srcdir=$ac_confdir
1283  if test ! -r "$srcdir/$ac_unique_file"; then
1284    srcdir=..
1285  fi
1286else
1287  ac_srcdir_defaulted=no
1288fi
1289if test ! -r "$srcdir/$ac_unique_file"; then
1290  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1291  { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1292   { (exit 1); exit 1; }; }
1293fi
1294ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1295ac_abs_confdir=`(
1296	cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1297   { (exit 1); exit 1; }; }
1298	pwd)`
1299# When building in place, set srcdir=.
1300if test "$ac_abs_confdir" = "$ac_pwd"; then
1301  srcdir=.
1302fi
1303# Remove unnecessary trailing slashes from srcdir.
1304# Double slashes in file names in object file debugging info
1305# mess up M-x gdb in Emacs.
1306case $srcdir in
1307*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1308esac
1309for ac_var in $ac_precious_vars; do
1310  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1311  eval ac_env_${ac_var}_value=\$${ac_var}
1312  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1313  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1314done
1315
1316#
1317# Report the --help message.
1318#
1319if test "$ac_init_help" = "long"; then
1320  # Omit some internal or obsolete options to make the list less imposing.
1321  # This message is too long to be a string in the A/UX 3.1 sh.
1322  cat <<_ACEOF
1323\`configure' configures LLVM 3.2svn to adapt to many kinds of systems.
1324
1325Usage: $0 [OPTION]... [VAR=VALUE]...
1326
1327To assign environment variables (e.g., CC, CFLAGS...), specify them as
1328VAR=VALUE.  See below for descriptions of some of the useful variables.
1329
1330Defaults for the options are specified in brackets.
1331
1332Configuration:
1333  -h, --help              display this help and exit
1334      --help=short        display options specific to this package
1335      --help=recursive    display the short help of all the included packages
1336  -V, --version           display version information and exit
1337  -q, --quiet, --silent   do not print \`checking...' messages
1338      --cache-file=FILE   cache test results in FILE [disabled]
1339  -C, --config-cache      alias for \`--cache-file=config.cache'
1340  -n, --no-create         do not create output files
1341      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1342
1343Installation directories:
1344  --prefix=PREFIX         install architecture-independent files in PREFIX
1345			  [$ac_default_prefix]
1346  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1347			  [PREFIX]
1348
1349By default, \`make install' will install all the files in
1350\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1351an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1352for instance \`--prefix=\$HOME'.
1353
1354For better control, use the options below.
1355
1356Fine tuning of the installation directories:
1357  --bindir=DIR           user executables [EPREFIX/bin]
1358  --sbindir=DIR          system admin executables [EPREFIX/sbin]
1359  --libexecdir=DIR       program executables [EPREFIX/libexec]
1360  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1361  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1362  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1363  --libdir=DIR           object code libraries [EPREFIX/lib]
1364  --includedir=DIR       C header files [PREFIX/include]
1365  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1366  --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1367  --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1368  --infodir=DIR          info documentation [DATAROOTDIR/info]
1369  --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1370  --mandir=DIR           man documentation [DATAROOTDIR/man]
1371  --docdir=DIR           documentation root [DATAROOTDIR/doc/llvm]
1372  --htmldir=DIR          html documentation [DOCDIR]
1373  --dvidir=DIR           dvi documentation [DOCDIR]
1374  --pdfdir=DIR           pdf documentation [DOCDIR]
1375  --psdir=DIR            ps documentation [DOCDIR]
1376_ACEOF
1377
1378  cat <<\_ACEOF
1379
1380System types:
1381  --build=BUILD     configure for building on BUILD [guessed]
1382  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1383  --target=TARGET   configure for building compilers for TARGET [HOST]
1384_ACEOF
1385fi
1386
1387if test -n "$ac_init_help"; then
1388  case $ac_init_help in
1389     short | recursive ) echo "Configuration of LLVM 3.2svn:";;
1390   esac
1391  cat <<\_ACEOF
1392
1393Optional Features:
1394  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1395  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1396  --enable-polly          Use polly if available (default is YES)
1397  --enable-libcpp         Use libc++ if available (default is NO)
1398  --enable-cxx11          Use c++11 if available (default is NO)
1399  --enable-optimized      Compile with optimizations enabled (default is NO)
1400  --enable-profiling      Compile with profiling enabled (default is NO)
1401  --enable-assertions     Compile with assertion checks enabled (default is
1402                          YES)
1403  --enable-werror         Compile with -Werror enabled (default is NO)
1404  --enable-expensive-checks
1405                          Compile with expensive debug checks enabled (default
1406                          is NO)
1407  --enable-debug-runtime  Build runtime libs with debug symbols (default is
1408                          NO)
1409  --enable-debug-symbols  Build compiler with debug symbols (default is NO if
1410                          optimization is on and YES if it's off)
1411  --enable-keep-symbols   Do not strip installed executables)
1412  --enable-jit            Enable Just In Time Compiling (default is YES)
1413  --enable-docs           Build documents (default is YES)
1414  --enable-doxygen        Build doxygen documentation (default is NO)
1415  --enable-threads        Use threads if available (default is YES)
1416  --enable-pthreads       Use pthreads if available (default is YES)
1417  --enable-pic            Build LLVM with Position Independent Code (default
1418                          is YES)
1419  --enable-shared         Build a shared library and link tools against it
1420                          (default is NO)
1421  --enable-embed-stdcxx   Build a shared library with embedded libstdc++ for
1422                          Win32 DLL (default is NO)
1423  --enable-timestamps     Enable embedding timestamp information in build
1424                          (default is YES)
1425  --enable-backtraces     Enable embedding backtraces on crash (default is
1426                          YES)
1427  --enable-targets        Build specific host targets: all or
1428                          target1,target2,... Valid targets are: host, x86,
1429                          x86_64, sparc, powerpc, arm, mips, spu, hexagon,
1430                          xcore, msp430, nvptx, and cpp (default=all)
1431  --enable-experimental-targets
1432                          Build experimental host targets: disable or
1433                          target1,target2,... (default=disable)
1434  --enable-bindings       Build specific language bindings:
1435                          all,auto,none,{binding-name} (default=auto)
1436  --enable-libffi         Check for the presence of libffi (default is NO)
1437  --enable-ltdl-install   install libltdl
1438
1439Optional Packages:
1440  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1441  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1442  --with-optimize-option  Select the compiler options to use for optimized
1443                          builds
1444  --with-extra-options    Specify additional options to compile LLVM with
1445  --with-extra-ld-options Specify additional options to link LLVM with
1446  --with-ocaml-libdir     Specify install location for ocaml bindings (default
1447                          is stdlib)
1448  --with-clang-srcdir     Directory to the out-of-tree Clang source
1449  --with-clang-resource-dir
1450                          Relative directory from the Clang binary for
1451                          resource files
1452  --with-c-include-dirs   Colon separated list of directories clang will
1453                          search for headers
1454  --with-gcc-toolchain    Directory where gcc is installed.
1455  --with-default-sysroot  Add --sysroot=<path> to all compiler invocations.
1456  --with-binutils-include Specify path to binutils/include/ containing
1457                          plugin-api.h file for gold plugin.
1458  --with-bug-report-url   Specify the URL where bug reports should be
1459                          submitted (default=http://llvm.org/bugs/)
1460  --with-internal-prefix  Installation directory for internal files
1461  --with-udis86=<path>    Use udis86 external x86 disassembler library
1462  --with-oprofile=<prefix>
1463                          Tell OProfile >= 0.9.4 how to symbolize JIT output
1464  --with-intel-jitevents  Notify Intel JIT profiling API of generated code
1465
1466
1467Some influential environment variables:
1468  CC          C compiler command
1469  CFLAGS      C compiler flags
1470  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1471              nonstandard directory <lib dir>
1472  CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1473              you have headers in a nonstandard directory <include dir>
1474  CXX         C++ compiler command
1475  CXXFLAGS    C++ compiler flags
1476  CPP         C preprocessor
1477
1478Use these variables to override the choices made by `configure' or to help
1479it to find libraries and programs with nonstandard names/locations.
1480
1481Report bugs to <http://llvm.org/bugs/>.
1482_ACEOF
1483ac_status=$?
1484fi
1485
1486if test "$ac_init_help" = "recursive"; then
1487  # If there are subdirs, report their specific --help.
1488  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1489    test -d "$ac_dir" || continue
1490    ac_builddir=.
1491
1492case "$ac_dir" in
1493.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1494*)
1495  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1496  # A ".." for each directory in $ac_dir_suffix.
1497  ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1498  case $ac_top_builddir_sub in
1499  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1500  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1501  esac ;;
1502esac
1503ac_abs_top_builddir=$ac_pwd
1504ac_abs_builddir=$ac_pwd$ac_dir_suffix
1505# for backward compatibility:
1506ac_top_builddir=$ac_top_build_prefix
1507
1508case $srcdir in
1509  .)  # We are building in place.
1510    ac_srcdir=.
1511    ac_top_srcdir=$ac_top_builddir_sub
1512    ac_abs_top_srcdir=$ac_pwd ;;
1513  [\\/]* | ?:[\\/]* )  # Absolute name.
1514    ac_srcdir=$srcdir$ac_dir_suffix;
1515    ac_top_srcdir=$srcdir
1516    ac_abs_top_srcdir=$srcdir ;;
1517  *) # Relative name.
1518    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1519    ac_top_srcdir=$ac_top_build_prefix$srcdir
1520    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1521esac
1522ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1523
1524    cd "$ac_dir" || { ac_status=$?; continue; }
1525    # Check for guested configure.
1526    if test -f "$ac_srcdir/configure.gnu"; then
1527      echo &&
1528      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1529    elif test -f "$ac_srcdir/configure"; then
1530      echo &&
1531      $SHELL "$ac_srcdir/configure" --help=recursive
1532    else
1533      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1534    fi || ac_status=$?
1535    cd "$ac_pwd" || { ac_status=$?; break; }
1536  done
1537fi
1538
1539test -n "$ac_init_help" && exit $ac_status
1540if $ac_init_version; then
1541  cat <<\_ACEOF
1542LLVM configure 3.2svn
1543generated by GNU Autoconf 2.60
1544
1545Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
15462002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1547This configure script is free software; the Free Software Foundation
1548gives unlimited permission to copy, distribute and modify it.
1549
1550Copyright (c) 2003-2012 University of Illinois at Urbana-Champaign.
1551_ACEOF
1552  exit
1553fi
1554cat >config.log <<_ACEOF
1555This file contains any messages produced by compilers while
1556running configure, to aid debugging if configure makes a mistake.
1557
1558It was created by LLVM $as_me 3.2svn, which was
1559generated by GNU Autoconf 2.60.  Invocation command line was
1560
1561  $ $0 $@
1562
1563_ACEOF
1564exec 5>>config.log
1565{
1566cat <<_ASUNAME
1567## --------- ##
1568## Platform. ##
1569## --------- ##
1570
1571hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1572uname -m = `(uname -m) 2>/dev/null || echo unknown`
1573uname -r = `(uname -r) 2>/dev/null || echo unknown`
1574uname -s = `(uname -s) 2>/dev/null || echo unknown`
1575uname -v = `(uname -v) 2>/dev/null || echo unknown`
1576
1577/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1578/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1579
1580/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1581/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1582/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1583/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1584/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1585/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1586/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1587
1588_ASUNAME
1589
1590as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1591for as_dir in $PATH
1592do
1593  IFS=$as_save_IFS
1594  test -z "$as_dir" && as_dir=.
1595  echo "PATH: $as_dir"
1596done
1597IFS=$as_save_IFS
1598
1599} >&5
1600
1601cat >&5 <<_ACEOF
1602
1603
1604## ----------- ##
1605## Core tests. ##
1606## ----------- ##
1607
1608_ACEOF
1609
1610
1611# Keep a trace of the command line.
1612# Strip out --no-create and --no-recursion so they do not pile up.
1613# Strip out --silent because we don't want to record it for future runs.
1614# Also quote any args containing shell meta-characters.
1615# Make two passes to allow for proper duplicate-argument suppression.
1616ac_configure_args=
1617ac_configure_args0=
1618ac_configure_args1=
1619ac_must_keep_next=false
1620for ac_pass in 1 2
1621do
1622  for ac_arg
1623  do
1624    case $ac_arg in
1625    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1626    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1627    | -silent | --silent | --silen | --sile | --sil)
1628      continue ;;
1629    *\'*)
1630      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1631    esac
1632    case $ac_pass in
1633    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1634    2)
1635      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1636      if test $ac_must_keep_next = true; then
1637	ac_must_keep_next=false # Got value, back to normal.
1638      else
1639	case $ac_arg in
1640	  *=* | --config-cache | -C | -disable-* | --disable-* \
1641	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1642	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1643	  | -with-* | --with-* | -without-* | --without-* | --x)
1644	    case "$ac_configure_args0 " in
1645	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1646	    esac
1647	    ;;
1648	  -* ) ac_must_keep_next=true ;;
1649	esac
1650      fi
1651      ac_configure_args="$ac_configure_args '$ac_arg'"
1652      ;;
1653    esac
1654  done
1655done
1656$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1657$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1658
1659# When interrupted or exit'd, cleanup temporary files, and complete
1660# config.log.  We remove comments because anyway the quotes in there
1661# would cause problems or look ugly.
1662# WARNING: Use '\'' to represent an apostrophe within the trap.
1663# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1664trap 'exit_status=$?
1665  # Save into config.log some information that might help in debugging.
1666  {
1667    echo
1668
1669    cat <<\_ASBOX
1670## ---------------- ##
1671## Cache variables. ##
1672## ---------------- ##
1673_ASBOX
1674    echo
1675    # The following way of writing the cache mishandles newlines in values,
1676(
1677  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1678    eval ac_val=\$$ac_var
1679    case $ac_val in #(
1680    *${as_nl}*)
1681      case $ac_var in #(
1682      *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1683echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1684      esac
1685      case $ac_var in #(
1686      _ | IFS | as_nl) ;; #(
1687      *) $as_unset $ac_var ;;
1688      esac ;;
1689    esac
1690  done
1691  (set) 2>&1 |
1692    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1693    *${as_nl}ac_space=\ *)
1694      sed -n \
1695	"s/'\''/'\''\\\\'\'''\''/g;
1696	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1697      ;; #(
1698    *)
1699      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1700      ;;
1701    esac |
1702    sort
1703)
1704    echo
1705
1706    cat <<\_ASBOX
1707## ----------------- ##
1708## Output variables. ##
1709## ----------------- ##
1710_ASBOX
1711    echo
1712    for ac_var in $ac_subst_vars
1713    do
1714      eval ac_val=\$$ac_var
1715      case $ac_val in
1716      *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1717      esac
1718      echo "$ac_var='\''$ac_val'\''"
1719    done | sort
1720    echo
1721
1722    if test -n "$ac_subst_files"; then
1723      cat <<\_ASBOX
1724## ------------------- ##
1725## File substitutions. ##
1726## ------------------- ##
1727_ASBOX
1728      echo
1729      for ac_var in $ac_subst_files
1730      do
1731	eval ac_val=\$$ac_var
1732	case $ac_val in
1733	*\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1734	esac
1735	echo "$ac_var='\''$ac_val'\''"
1736      done | sort
1737      echo
1738    fi
1739
1740    if test -s confdefs.h; then
1741      cat <<\_ASBOX
1742## ----------- ##
1743## confdefs.h. ##
1744## ----------- ##
1745_ASBOX
1746      echo
1747      cat confdefs.h
1748      echo
1749    fi
1750    test "$ac_signal" != 0 &&
1751      echo "$as_me: caught signal $ac_signal"
1752    echo "$as_me: exit $exit_status"
1753  } >&5
1754  rm -f core *.core core.conftest.* &&
1755    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1756    exit $exit_status
1757' 0
1758for ac_signal in 1 2 13 15; do
1759  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1760done
1761ac_signal=0
1762
1763# confdefs.h avoids OS command line length limits that DEFS can exceed.
1764rm -f -r conftest* confdefs.h
1765
1766# Predefined preprocessor variables.
1767
1768cat >>confdefs.h <<_ACEOF
1769#define PACKAGE_NAME "$PACKAGE_NAME"
1770_ACEOF
1771
1772
1773cat >>confdefs.h <<_ACEOF
1774#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1775_ACEOF
1776
1777
1778cat >>confdefs.h <<_ACEOF
1779#define PACKAGE_VERSION "$PACKAGE_VERSION"
1780_ACEOF
1781
1782
1783cat >>confdefs.h <<_ACEOF
1784#define PACKAGE_STRING "$PACKAGE_STRING"
1785_ACEOF
1786
1787
1788cat >>confdefs.h <<_ACEOF
1789#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1790_ACEOF
1791
1792
1793# Let the site file select an alternate cache file if it wants to.
1794# Prefer explicitly selected file to automatically selected ones.
1795if test -n "$CONFIG_SITE"; then
1796  set x "$CONFIG_SITE"
1797elif test "x$prefix" != xNONE; then
1798  set x "$prefix/share/config.site" "$prefix/etc/config.site"
1799else
1800  set x "$ac_default_prefix/share/config.site" \
1801	"$ac_default_prefix/etc/config.site"
1802fi
1803shift
1804for ac_site_file
1805do
1806  if test -r "$ac_site_file"; then
1807    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1808echo "$as_me: loading site script $ac_site_file" >&6;}
1809    sed 's/^/| /' "$ac_site_file" >&5
1810    . "$ac_site_file"
1811  fi
1812done
1813
1814if test -r "$cache_file"; then
1815  # Some versions of bash will fail to source /dev/null (special
1816  # files actually), so we avoid doing that.
1817  if test -f "$cache_file"; then
1818    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1819echo "$as_me: loading cache $cache_file" >&6;}
1820    case $cache_file in
1821      [\\/]* | ?:[\\/]* ) . "$cache_file";;
1822      *)                      . "./$cache_file";;
1823    esac
1824  fi
1825else
1826  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1827echo "$as_me: creating cache $cache_file" >&6;}
1828  >$cache_file
1829fi
1830
1831# Check that the precious variables saved in the cache have kept the same
1832# value.
1833ac_cache_corrupted=false
1834for ac_var in $ac_precious_vars; do
1835  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1836  eval ac_new_set=\$ac_env_${ac_var}_set
1837  eval ac_old_val=\$ac_cv_env_${ac_var}_value
1838  eval ac_new_val=\$ac_env_${ac_var}_value
1839  case $ac_old_set,$ac_new_set in
1840    set,)
1841      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1842echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1843      ac_cache_corrupted=: ;;
1844    ,set)
1845      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1846echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1847      ac_cache_corrupted=: ;;
1848    ,);;
1849    *)
1850      if test "x$ac_old_val" != "x$ac_new_val"; then
1851	{ echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1852echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1853	{ echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1854echo "$as_me:   former value:  $ac_old_val" >&2;}
1855	{ echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1856echo "$as_me:   current value: $ac_new_val" >&2;}
1857	ac_cache_corrupted=:
1858      fi;;
1859  esac
1860  # Pass precious variables to config.status.
1861  if test "$ac_new_set" = set; then
1862    case $ac_new_val in
1863    *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1864    *) ac_arg=$ac_var=$ac_new_val ;;
1865    esac
1866    case " $ac_configure_args " in
1867      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1868      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1869    esac
1870  fi
1871done
1872if $ac_cache_corrupted; then
1873  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1874echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1875  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1876echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1877   { (exit 1); exit 1; }; }
1878fi
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904ac_ext=c
1905ac_cpp='$CPP $CPPFLAGS'
1906ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1907ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1908ac_compiler_gnu=$ac_cv_c_compiler_gnu
1909
1910
1911
1912cat >>confdefs.h <<\_ACEOF
1913#define LLVM_VERSION_MAJOR 3
1914_ACEOF
1915
1916
1917cat >>confdefs.h <<\_ACEOF
1918#define LLVM_VERSION_MINOR 2
1919_ACEOF
1920
1921
1922LLVM_COPYRIGHT="Copyright (c) 2003-2012 University of Illinois at Urbana-Champaign."
1923
1924
1925
1926
1927
1928
1929
1930ac_aux_dir=
1931for ac_dir in autoconf "$srcdir"/autoconf; do
1932  if test -f "$ac_dir/install-sh"; then
1933    ac_aux_dir=$ac_dir
1934    ac_install_sh="$ac_aux_dir/install-sh -c"
1935    break
1936  elif test -f "$ac_dir/install.sh"; then
1937    ac_aux_dir=$ac_dir
1938    ac_install_sh="$ac_aux_dir/install.sh -c"
1939    break
1940  elif test -f "$ac_dir/shtool"; then
1941    ac_aux_dir=$ac_dir
1942    ac_install_sh="$ac_aux_dir/shtool install -c"
1943    break
1944  fi
1945done
1946if test -z "$ac_aux_dir"; then
1947  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
1948echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
1949   { (exit 1); exit 1; }; }
1950fi
1951
1952# These three variables are undocumented and unsupported,
1953# and are intended to be withdrawn in a future Autoconf release.
1954# They can cause serious problems if a builder's source tree is in a directory
1955# whose full name contains unusual characters.
1956ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
1957ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
1958ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
1959
1960
1961
1962if test ${srcdir} != "." ; then
1963  if test -f ${srcdir}/include/llvm/Config/config.h ; then
1964    { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
1965echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1966   { (exit 1); exit 1; }; }
1967  fi
1968fi
1969
1970ac_ext=c
1971ac_cpp='$CPP $CPPFLAGS'
1972ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1973ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1974ac_compiler_gnu=$ac_cv_c_compiler_gnu
1975if test -n "$ac_tool_prefix"; then
1976  for ac_prog in clang llvm-gcc gcc
1977  do
1978    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1979set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1980{ echo "$as_me:$LINENO: checking for $ac_word" >&5
1981echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1982if test "${ac_cv_prog_CC+set}" = set; then
1983  echo $ECHO_N "(cached) $ECHO_C" >&6
1984else
1985  if test -n "$CC"; then
1986  ac_cv_prog_CC="$CC" # Let the user override the test.
1987else
1988as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1989for as_dir in $PATH
1990do
1991  IFS=$as_save_IFS
1992  test -z "$as_dir" && as_dir=.
1993  for ac_exec_ext in '' $ac_executable_extensions; do
1994  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
1995    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1996    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1997    break 2
1998  fi
1999done
2000done
2001IFS=$as_save_IFS
2002
2003fi
2004fi
2005CC=$ac_cv_prog_CC
2006if test -n "$CC"; then
2007  { echo "$as_me:$LINENO: result: $CC" >&5
2008echo "${ECHO_T}$CC" >&6; }
2009else
2010  { echo "$as_me:$LINENO: result: no" >&5
2011echo "${ECHO_T}no" >&6; }
2012fi
2013
2014
2015    test -n "$CC" && break
2016  done
2017fi
2018if test -z "$CC"; then
2019  ac_ct_CC=$CC
2020  for ac_prog in clang llvm-gcc gcc
2021do
2022  # Extract the first word of "$ac_prog", so it can be a program name with args.
2023set dummy $ac_prog; ac_word=$2
2024{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2025echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2026if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2027  echo $ECHO_N "(cached) $ECHO_C" >&6
2028else
2029  if test -n "$ac_ct_CC"; then
2030  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2031else
2032as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2033for as_dir in $PATH
2034do
2035  IFS=$as_save_IFS
2036  test -z "$as_dir" && as_dir=.
2037  for ac_exec_ext in '' $ac_executable_extensions; do
2038  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2039    ac_cv_prog_ac_ct_CC="$ac_prog"
2040    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2041    break 2
2042  fi
2043done
2044done
2045IFS=$as_save_IFS
2046
2047fi
2048fi
2049ac_ct_CC=$ac_cv_prog_ac_ct_CC
2050if test -n "$ac_ct_CC"; then
2051  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2052echo "${ECHO_T}$ac_ct_CC" >&6; }
2053else
2054  { echo "$as_me:$LINENO: result: no" >&5
2055echo "${ECHO_T}no" >&6; }
2056fi
2057
2058
2059  test -n "$ac_ct_CC" && break
2060done
2061
2062  if test "x$ac_ct_CC" = x; then
2063    CC=""
2064  else
2065    case $cross_compiling:$ac_tool_warned in
2066yes:)
2067{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2068whose name does not start with the host triplet.  If you think this
2069configuration is useful to you, please write to autoconf@gnu.org." >&5
2070echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2071whose name does not start with the host triplet.  If you think this
2072configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2073ac_tool_warned=yes ;;
2074esac
2075    CC=$ac_ct_CC
2076  fi
2077fi
2078
2079
2080test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2081See \`config.log' for more details." >&5
2082echo "$as_me: error: no acceptable C compiler found in \$PATH
2083See \`config.log' for more details." >&2;}
2084   { (exit 1); exit 1; }; }
2085
2086# Provide some information about the compiler.
2087echo "$as_me:$LINENO: checking for C compiler version" >&5
2088ac_compiler=`set X $ac_compile; echo $2`
2089{ (ac_try="$ac_compiler --version >&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 --version >&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{ (ac_try="$ac_compiler -V >&5"
2110case "(($ac_try" in
2111  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2112  *) ac_try_echo=$ac_try;;
2113esac
2114eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2115  (eval "$ac_compiler -V >&5") 2>&5
2116  ac_status=$?
2117  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2118  (exit $ac_status); }
2119
2120cat >conftest.$ac_ext <<_ACEOF
2121/* confdefs.h.  */
2122_ACEOF
2123cat confdefs.h >>conftest.$ac_ext
2124cat >>conftest.$ac_ext <<_ACEOF
2125/* end confdefs.h.  */
2126
2127int
2128main ()
2129{
2130
2131  ;
2132  return 0;
2133}
2134_ACEOF
2135ac_clean_files_save=$ac_clean_files
2136ac_clean_files="$ac_clean_files a.out a.exe b.out"
2137# Try to create an executable without -o first, disregard a.out.
2138# It will help us diagnose broken compilers, and finding out an intuition
2139# of exeext.
2140{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2141echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2142ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2143#
2144# List of possible output files, starting from the most likely.
2145# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2146# only as a last resort.  b.out is created by i960 compilers.
2147ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2148#
2149# The IRIX 6 linker writes into existing files which may not be
2150# executable, retaining their permissions.  Remove them first so a
2151# subsequent execution test works.
2152ac_rmfiles=
2153for ac_file in $ac_files
2154do
2155  case $ac_file in
2156    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2157    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2158  esac
2159done
2160rm -f $ac_rmfiles
2161
2162if { (ac_try="$ac_link_default"
2163case "(($ac_try" in
2164  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2165  *) ac_try_echo=$ac_try;;
2166esac
2167eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2168  (eval "$ac_link_default") 2>&5
2169  ac_status=$?
2170  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2171  (exit $ac_status); }; then
2172  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2173# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2174# in a Makefile.  We should not override ac_cv_exeext if it was cached,
2175# so that the user can short-circuit this test for compilers unknown to
2176# Autoconf.
2177for ac_file in $ac_files
2178do
2179  test -f "$ac_file" || continue
2180  case $ac_file in
2181    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2182	;;
2183    [ab].out )
2184	# We found the default executable, but exeext='' is most
2185	# certainly right.
2186	break;;
2187    *.* )
2188        if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2189	then :; else
2190	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2191	fi
2192	# We set ac_cv_exeext here because the later test for it is not
2193	# safe: cross compilers may not add the suffix if given an `-o'
2194	# argument, so we may need to know it at that point already.
2195	# Even if this section looks crufty: it has the advantage of
2196	# actually working.
2197	break;;
2198    * )
2199	break;;
2200  esac
2201done
2202test "$ac_cv_exeext" = no && ac_cv_exeext=
2203
2204else
2205  echo "$as_me: failed program was:" >&5
2206sed 's/^/| /' conftest.$ac_ext >&5
2207
2208{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2209See \`config.log' for more details." >&5
2210echo "$as_me: error: C compiler cannot create executables
2211See \`config.log' for more details." >&2;}
2212   { (exit 77); exit 77; }; }
2213fi
2214
2215ac_exeext=$ac_cv_exeext
2216{ echo "$as_me:$LINENO: result: $ac_file" >&5
2217echo "${ECHO_T}$ac_file" >&6; }
2218
2219# Check that the compiler produces executables we can run.  If not, either
2220# the compiler is broken, or we cross compile.
2221{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2222echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2223# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2224# If not cross compiling, check that we can run a simple program.
2225if test "$cross_compiling" != yes; then
2226  if { ac_try='./$ac_file'
2227  { (case "(($ac_try" in
2228  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2229  *) ac_try_echo=$ac_try;;
2230esac
2231eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2232  (eval "$ac_try") 2>&5
2233  ac_status=$?
2234  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2235  (exit $ac_status); }; }; then
2236    cross_compiling=no
2237  else
2238    if test "$cross_compiling" = maybe; then
2239	cross_compiling=yes
2240    else
2241	{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2242If you meant to cross compile, use \`--host'.
2243See \`config.log' for more details." >&5
2244echo "$as_me: error: cannot run C compiled programs.
2245If you meant to cross compile, use \`--host'.
2246See \`config.log' for more details." >&2;}
2247   { (exit 1); exit 1; }; }
2248    fi
2249  fi
2250fi
2251{ echo "$as_me:$LINENO: result: yes" >&5
2252echo "${ECHO_T}yes" >&6; }
2253
2254rm -f a.out a.exe conftest$ac_cv_exeext b.out
2255ac_clean_files=$ac_clean_files_save
2256# Check that the compiler produces executables we can run.  If not, either
2257# the compiler is broken, or we cross compile.
2258{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2259echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2260{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
2261echo "${ECHO_T}$cross_compiling" >&6; }
2262
2263{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
2264echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2265if { (ac_try="$ac_link"
2266case "(($ac_try" in
2267  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2268  *) ac_try_echo=$ac_try;;
2269esac
2270eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2271  (eval "$ac_link") 2>&5
2272  ac_status=$?
2273  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2274  (exit $ac_status); }; then
2275  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2276# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2277# work properly (i.e., refer to `conftest.exe'), while it won't with
2278# `rm'.
2279for ac_file in conftest.exe conftest conftest.*; do
2280  test -f "$ac_file" || continue
2281  case $ac_file in
2282    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2283    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2284	  break;;
2285    * ) break;;
2286  esac
2287done
2288else
2289  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2290See \`config.log' for more details." >&5
2291echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2292See \`config.log' for more details." >&2;}
2293   { (exit 1); exit 1; }; }
2294fi
2295
2296rm -f conftest$ac_cv_exeext
2297{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2298echo "${ECHO_T}$ac_cv_exeext" >&6; }
2299
2300rm -f conftest.$ac_ext
2301EXEEXT=$ac_cv_exeext
2302ac_exeext=$EXEEXT
2303{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
2304echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2305if test "${ac_cv_objext+set}" = set; then
2306  echo $ECHO_N "(cached) $ECHO_C" >&6
2307else
2308  cat >conftest.$ac_ext <<_ACEOF
2309/* confdefs.h.  */
2310_ACEOF
2311cat confdefs.h >>conftest.$ac_ext
2312cat >>conftest.$ac_ext <<_ACEOF
2313/* end confdefs.h.  */
2314
2315int
2316main ()
2317{
2318
2319  ;
2320  return 0;
2321}
2322_ACEOF
2323rm -f conftest.o conftest.obj
2324if { (ac_try="$ac_compile"
2325case "(($ac_try" in
2326  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2327  *) ac_try_echo=$ac_try;;
2328esac
2329eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2330  (eval "$ac_compile") 2>&5
2331  ac_status=$?
2332  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2333  (exit $ac_status); }; then
2334  for ac_file in conftest.o conftest.obj conftest.*; do
2335  test -f "$ac_file" || continue;
2336  case $ac_file in
2337    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2338    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2339       break;;
2340  esac
2341done
2342else
2343  echo "$as_me: failed program was:" >&5
2344sed 's/^/| /' conftest.$ac_ext >&5
2345
2346{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2347See \`config.log' for more details." >&5
2348echo "$as_me: error: cannot compute suffix of object files: cannot compile
2349See \`config.log' for more details." >&2;}
2350   { (exit 1); exit 1; }; }
2351fi
2352
2353rm -f conftest.$ac_cv_objext conftest.$ac_ext
2354fi
2355{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2356echo "${ECHO_T}$ac_cv_objext" >&6; }
2357OBJEXT=$ac_cv_objext
2358ac_objext=$OBJEXT
2359{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2360echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2361if test "${ac_cv_c_compiler_gnu+set}" = set; then
2362  echo $ECHO_N "(cached) $ECHO_C" >&6
2363else
2364  cat >conftest.$ac_ext <<_ACEOF
2365/* confdefs.h.  */
2366_ACEOF
2367cat confdefs.h >>conftest.$ac_ext
2368cat >>conftest.$ac_ext <<_ACEOF
2369/* end confdefs.h.  */
2370
2371int
2372main ()
2373{
2374#ifndef __GNUC__
2375       choke me
2376#endif
2377
2378  ;
2379  return 0;
2380}
2381_ACEOF
2382rm -f conftest.$ac_objext
2383if { (ac_try="$ac_compile"
2384case "(($ac_try" in
2385  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2386  *) ac_try_echo=$ac_try;;
2387esac
2388eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2389  (eval "$ac_compile") 2>conftest.er1
2390  ac_status=$?
2391  grep -v '^ *+' conftest.er1 >conftest.err
2392  rm -f conftest.er1
2393  cat conftest.err >&5
2394  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2395  (exit $ac_status); } &&
2396	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
2406	 { ac_try='test -s conftest.$ac_objext'
2407  { (case "(($ac_try" in
2408  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2409  *) ac_try_echo=$ac_try;;
2410esac
2411eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2412  (eval "$ac_try") 2>&5
2413  ac_status=$?
2414  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2415  (exit $ac_status); }; }; then
2416  ac_compiler_gnu=yes
2417else
2418  echo "$as_me: failed program was:" >&5
2419sed 's/^/| /' conftest.$ac_ext >&5
2420
2421	ac_compiler_gnu=no
2422fi
2423
2424rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2425ac_cv_c_compiler_gnu=$ac_compiler_gnu
2426
2427fi
2428{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2429echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2430GCC=`test $ac_compiler_gnu = yes && echo yes`
2431ac_test_CFLAGS=${CFLAGS+set}
2432ac_save_CFLAGS=$CFLAGS
2433{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2434echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2435if test "${ac_cv_prog_cc_g+set}" = set; then
2436  echo $ECHO_N "(cached) $ECHO_C" >&6
2437else
2438  ac_save_c_werror_flag=$ac_c_werror_flag
2439   ac_c_werror_flag=yes
2440   ac_cv_prog_cc_g=no
2441   CFLAGS="-g"
2442   cat >conftest.$ac_ext <<_ACEOF
2443/* confdefs.h.  */
2444_ACEOF
2445cat confdefs.h >>conftest.$ac_ext
2446cat >>conftest.$ac_ext <<_ACEOF
2447/* end confdefs.h.  */
2448
2449int
2450main ()
2451{
2452
2453  ;
2454  return 0;
2455}
2456_ACEOF
2457rm -f conftest.$ac_objext
2458if { (ac_try="$ac_compile"
2459case "(($ac_try" in
2460  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2461  *) ac_try_echo=$ac_try;;
2462esac
2463eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2464  (eval "$ac_compile") 2>conftest.er1
2465  ac_status=$?
2466  grep -v '^ *+' conftest.er1 >conftest.err
2467  rm -f conftest.er1
2468  cat conftest.err >&5
2469  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2470  (exit $ac_status); } &&
2471	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
2481	 { ac_try='test -s conftest.$ac_objext'
2482  { (case "(($ac_try" in
2483  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2484  *) ac_try_echo=$ac_try;;
2485esac
2486eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2487  (eval "$ac_try") 2>&5
2488  ac_status=$?
2489  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2490  (exit $ac_status); }; }; then
2491  ac_cv_prog_cc_g=yes
2492else
2493  echo "$as_me: failed program was:" >&5
2494sed 's/^/| /' conftest.$ac_ext >&5
2495
2496	CFLAGS=""
2497      cat >conftest.$ac_ext <<_ACEOF
2498/* confdefs.h.  */
2499_ACEOF
2500cat confdefs.h >>conftest.$ac_ext
2501cat >>conftest.$ac_ext <<_ACEOF
2502/* end confdefs.h.  */
2503
2504int
2505main ()
2506{
2507
2508  ;
2509  return 0;
2510}
2511_ACEOF
2512rm -f conftest.$ac_objext
2513if { (ac_try="$ac_compile"
2514case "(($ac_try" in
2515  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2516  *) ac_try_echo=$ac_try;;
2517esac
2518eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2519  (eval "$ac_compile") 2>conftest.er1
2520  ac_status=$?
2521  grep -v '^ *+' conftest.er1 >conftest.err
2522  rm -f conftest.er1
2523  cat conftest.err >&5
2524  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2525  (exit $ac_status); } &&
2526	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
2536	 { ac_try='test -s conftest.$ac_objext'
2537  { (case "(($ac_try" in
2538  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2539  *) ac_try_echo=$ac_try;;
2540esac
2541eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2542  (eval "$ac_try") 2>&5
2543  ac_status=$?
2544  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2545  (exit $ac_status); }; }; then
2546  :
2547else
2548  echo "$as_me: failed program was:" >&5
2549sed 's/^/| /' conftest.$ac_ext >&5
2550
2551	ac_c_werror_flag=$ac_save_c_werror_flag
2552	 CFLAGS="-g"
2553	 cat >conftest.$ac_ext <<_ACEOF
2554/* confdefs.h.  */
2555_ACEOF
2556cat confdefs.h >>conftest.$ac_ext
2557cat >>conftest.$ac_ext <<_ACEOF
2558/* end confdefs.h.  */
2559
2560int
2561main ()
2562{
2563
2564  ;
2565  return 0;
2566}
2567_ACEOF
2568rm -f conftest.$ac_objext
2569if { (ac_try="$ac_compile"
2570case "(($ac_try" in
2571  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2572  *) ac_try_echo=$ac_try;;
2573esac
2574eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2575  (eval "$ac_compile") 2>conftest.er1
2576  ac_status=$?
2577  grep -v '^ *+' conftest.er1 >conftest.err
2578  rm -f conftest.er1
2579  cat conftest.err >&5
2580  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2581  (exit $ac_status); } &&
2582	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
2592	 { ac_try='test -s conftest.$ac_objext'
2593  { (case "(($ac_try" in
2594  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2595  *) ac_try_echo=$ac_try;;
2596esac
2597eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2598  (eval "$ac_try") 2>&5
2599  ac_status=$?
2600  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2601  (exit $ac_status); }; }; then
2602  ac_cv_prog_cc_g=yes
2603else
2604  echo "$as_me: failed program was:" >&5
2605sed 's/^/| /' conftest.$ac_ext >&5
2606
2607
2608fi
2609
2610rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2611fi
2612
2613rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2614fi
2615
2616rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2617   ac_c_werror_flag=$ac_save_c_werror_flag
2618fi
2619{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2620echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2621if test "$ac_test_CFLAGS" = set; then
2622  CFLAGS=$ac_save_CFLAGS
2623elif test $ac_cv_prog_cc_g = yes; then
2624  if test "$GCC" = yes; then
2625    CFLAGS="-g -O2"
2626  else
2627    CFLAGS="-g"
2628  fi
2629else
2630  if test "$GCC" = yes; then
2631    CFLAGS="-O2"
2632  else
2633    CFLAGS=
2634  fi
2635fi
2636{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2637echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2638if test "${ac_cv_prog_cc_c89+set}" = set; then
2639  echo $ECHO_N "(cached) $ECHO_C" >&6
2640else
2641  ac_cv_prog_cc_c89=no
2642ac_save_CC=$CC
2643cat >conftest.$ac_ext <<_ACEOF
2644/* confdefs.h.  */
2645_ACEOF
2646cat confdefs.h >>conftest.$ac_ext
2647cat >>conftest.$ac_ext <<_ACEOF
2648/* end confdefs.h.  */
2649#include <stdarg.h>
2650#include <stdio.h>
2651#include <sys/types.h>
2652#include <sys/stat.h>
2653/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2654struct buf { int x; };
2655FILE * (*rcsopen) (struct buf *, struct stat *, int);
2656static char *e (p, i)
2657     char **p;
2658     int i;
2659{
2660  return p[i];
2661}
2662static char *f (char * (*g) (char **, int), char **p, ...)
2663{
2664  char *s;
2665  va_list v;
2666  va_start (v,p);
2667  s = g (p, va_arg (v,int));
2668  va_end (v);
2669  return s;
2670}
2671
2672/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2673   function prototypes and stuff, but not '\xHH' hex character constants.
2674   These don't provoke an error unfortunately, instead are silently treated
2675   as 'x'.  The following induces an error, until -std is added to get
2676   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2677   array size at least.  It's necessary to write '\x00'==0 to get something
2678   that's true only with -std.  */
2679int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2680
2681/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2682   inside strings and character constants.  */
2683#define FOO(x) 'x'
2684int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2685
2686int test (int i, double x);
2687struct s1 {int (*f) (int a);};
2688struct s2 {int (*f) (double a);};
2689int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2690int argc;
2691char **argv;
2692int
2693main ()
2694{
2695return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2696  ;
2697  return 0;
2698}
2699_ACEOF
2700for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2701	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2702do
2703  CC="$ac_save_CC $ac_arg"
2704  rm -f conftest.$ac_objext
2705if { (ac_try="$ac_compile"
2706case "(($ac_try" in
2707  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2708  *) ac_try_echo=$ac_try;;
2709esac
2710eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2711  (eval "$ac_compile") 2>conftest.er1
2712  ac_status=$?
2713  grep -v '^ *+' conftest.er1 >conftest.err
2714  rm -f conftest.er1
2715  cat conftest.err >&5
2716  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2717  (exit $ac_status); } &&
2718	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
2728	 { ac_try='test -s conftest.$ac_objext'
2729  { (case "(($ac_try" in
2730  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2731  *) ac_try_echo=$ac_try;;
2732esac
2733eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2734  (eval "$ac_try") 2>&5
2735  ac_status=$?
2736  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2737  (exit $ac_status); }; }; then
2738  ac_cv_prog_cc_c89=$ac_arg
2739else
2740  echo "$as_me: failed program was:" >&5
2741sed 's/^/| /' conftest.$ac_ext >&5
2742
2743
2744fi
2745
2746rm -f core conftest.err conftest.$ac_objext
2747  test "x$ac_cv_prog_cc_c89" != "xno" && break
2748done
2749rm -f conftest.$ac_ext
2750CC=$ac_save_CC
2751
2752fi
2753# AC_CACHE_VAL
2754case "x$ac_cv_prog_cc_c89" in
2755  x)
2756    { echo "$as_me:$LINENO: result: none needed" >&5
2757echo "${ECHO_T}none needed" >&6; } ;;
2758  xno)
2759    { echo "$as_me:$LINENO: result: unsupported" >&5
2760echo "${ECHO_T}unsupported" >&6; } ;;
2761  *)
2762    CC="$CC $ac_cv_prog_cc_c89"
2763    { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2764echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2765esac
2766
2767
2768ac_ext=c
2769ac_cpp='$CPP $CPPFLAGS'
2770ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2771ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2772ac_compiler_gnu=$ac_cv_c_compiler_gnu
2773
2774ac_ext=cpp
2775ac_cpp='$CXXCPP $CPPFLAGS'
2776ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2777ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2778ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2779if test -z "$CXX"; then
2780  if test -n "$CCC"; then
2781    CXX=$CCC
2782  else
2783    if test -n "$ac_tool_prefix"; then
2784  for ac_prog in clang++ llvm-g++ g++
2785  do
2786    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2787set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2788{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2789echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2790if test "${ac_cv_prog_CXX+set}" = set; then
2791  echo $ECHO_N "(cached) $ECHO_C" >&6
2792else
2793  if test -n "$CXX"; then
2794  ac_cv_prog_CXX="$CXX" # Let the user override the test.
2795else
2796as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2797for as_dir in $PATH
2798do
2799  IFS=$as_save_IFS
2800  test -z "$as_dir" && as_dir=.
2801  for ac_exec_ext in '' $ac_executable_extensions; do
2802  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2803    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2804    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2805    break 2
2806  fi
2807done
2808done
2809IFS=$as_save_IFS
2810
2811fi
2812fi
2813CXX=$ac_cv_prog_CXX
2814if test -n "$CXX"; then
2815  { echo "$as_me:$LINENO: result: $CXX" >&5
2816echo "${ECHO_T}$CXX" >&6; }
2817else
2818  { echo "$as_me:$LINENO: result: no" >&5
2819echo "${ECHO_T}no" >&6; }
2820fi
2821
2822
2823    test -n "$CXX" && break
2824  done
2825fi
2826if test -z "$CXX"; then
2827  ac_ct_CXX=$CXX
2828  for ac_prog in clang++ llvm-g++ g++
2829do
2830  # Extract the first word of "$ac_prog", so it can be a program name with args.
2831set dummy $ac_prog; ac_word=$2
2832{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2833echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2834if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2835  echo $ECHO_N "(cached) $ECHO_C" >&6
2836else
2837  if test -n "$ac_ct_CXX"; then
2838  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2839else
2840as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2841for as_dir in $PATH
2842do
2843  IFS=$as_save_IFS
2844  test -z "$as_dir" && as_dir=.
2845  for ac_exec_ext in '' $ac_executable_extensions; do
2846  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2847    ac_cv_prog_ac_ct_CXX="$ac_prog"
2848    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2849    break 2
2850  fi
2851done
2852done
2853IFS=$as_save_IFS
2854
2855fi
2856fi
2857ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2858if test -n "$ac_ct_CXX"; then
2859  { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2860echo "${ECHO_T}$ac_ct_CXX" >&6; }
2861else
2862  { echo "$as_me:$LINENO: result: no" >&5
2863echo "${ECHO_T}no" >&6; }
2864fi
2865
2866
2867  test -n "$ac_ct_CXX" && break
2868done
2869
2870  if test "x$ac_ct_CXX" = x; then
2871    CXX="g++"
2872  else
2873    case $cross_compiling:$ac_tool_warned in
2874yes:)
2875{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2876whose name does not start with the host triplet.  If you think this
2877configuration is useful to you, please write to autoconf@gnu.org." >&5
2878echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2879whose name does not start with the host triplet.  If you think this
2880configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2881ac_tool_warned=yes ;;
2882esac
2883    CXX=$ac_ct_CXX
2884  fi
2885fi
2886
2887  fi
2888fi
2889# Provide some information about the compiler.
2890echo "$as_me:$LINENO: checking for C++ compiler version" >&5
2891ac_compiler=`set X $ac_compile; echo $2`
2892{ (ac_try="$ac_compiler --version >&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 --version >&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{ (ac_try="$ac_compiler -V >&5"
2913case "(($ac_try" in
2914  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2915  *) ac_try_echo=$ac_try;;
2916esac
2917eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2918  (eval "$ac_compiler -V >&5") 2>&5
2919  ac_status=$?
2920  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2921  (exit $ac_status); }
2922
2923{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2924echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
2925if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2926  echo $ECHO_N "(cached) $ECHO_C" >&6
2927else
2928  cat >conftest.$ac_ext <<_ACEOF
2929/* confdefs.h.  */
2930_ACEOF
2931cat confdefs.h >>conftest.$ac_ext
2932cat >>conftest.$ac_ext <<_ACEOF
2933/* end confdefs.h.  */
2934
2935int
2936main ()
2937{
2938#ifndef __GNUC__
2939       choke me
2940#endif
2941
2942  ;
2943  return 0;
2944}
2945_ACEOF
2946rm -f conftest.$ac_objext
2947if { (ac_try="$ac_compile"
2948case "(($ac_try" in
2949  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2950  *) ac_try_echo=$ac_try;;
2951esac
2952eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2953  (eval "$ac_compile") 2>conftest.er1
2954  ac_status=$?
2955  grep -v '^ *+' conftest.er1 >conftest.err
2956  rm -f conftest.er1
2957  cat conftest.err >&5
2958  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2959  (exit $ac_status); } &&
2960	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
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); }; } &&
2970	 { ac_try='test -s conftest.$ac_objext'
2971  { (case "(($ac_try" in
2972  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2973  *) ac_try_echo=$ac_try;;
2974esac
2975eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2976  (eval "$ac_try") 2>&5
2977  ac_status=$?
2978  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2979  (exit $ac_status); }; }; then
2980  ac_compiler_gnu=yes
2981else
2982  echo "$as_me: failed program was:" >&5
2983sed 's/^/| /' conftest.$ac_ext >&5
2984
2985	ac_compiler_gnu=no
2986fi
2987
2988rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2989ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2990
2991fi
2992{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2993echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
2994GXX=`test $ac_compiler_gnu = yes && echo yes`
2995ac_test_CXXFLAGS=${CXXFLAGS+set}
2996ac_save_CXXFLAGS=$CXXFLAGS
2997{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2998echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
2999if test "${ac_cv_prog_cxx_g+set}" = set; then
3000  echo $ECHO_N "(cached) $ECHO_C" >&6
3001else
3002  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3003   ac_cxx_werror_flag=yes
3004   ac_cv_prog_cxx_g=no
3005   CXXFLAGS="-g"
3006   cat >conftest.$ac_ext <<_ACEOF
3007/* confdefs.h.  */
3008_ACEOF
3009cat confdefs.h >>conftest.$ac_ext
3010cat >>conftest.$ac_ext <<_ACEOF
3011/* end confdefs.h.  */
3012
3013int
3014main ()
3015{
3016
3017  ;
3018  return 0;
3019}
3020_ACEOF
3021rm -f conftest.$ac_objext
3022if { (ac_try="$ac_compile"
3023case "(($ac_try" in
3024  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3025  *) ac_try_echo=$ac_try;;
3026esac
3027eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3028  (eval "$ac_compile") 2>conftest.er1
3029  ac_status=$?
3030  grep -v '^ *+' conftest.er1 >conftest.err
3031  rm -f conftest.er1
3032  cat conftest.err >&5
3033  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3034  (exit $ac_status); } &&
3035	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
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); }; } &&
3045	 { ac_try='test -s conftest.$ac_objext'
3046  { (case "(($ac_try" in
3047  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3048  *) ac_try_echo=$ac_try;;
3049esac
3050eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3051  (eval "$ac_try") 2>&5
3052  ac_status=$?
3053  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3054  (exit $ac_status); }; }; then
3055  ac_cv_prog_cxx_g=yes
3056else
3057  echo "$as_me: failed program was:" >&5
3058sed 's/^/| /' conftest.$ac_ext >&5
3059
3060	CXXFLAGS=""
3061      cat >conftest.$ac_ext <<_ACEOF
3062/* confdefs.h.  */
3063_ACEOF
3064cat confdefs.h >>conftest.$ac_ext
3065cat >>conftest.$ac_ext <<_ACEOF
3066/* end confdefs.h.  */
3067
3068int
3069main ()
3070{
3071
3072  ;
3073  return 0;
3074}
3075_ACEOF
3076rm -f conftest.$ac_objext
3077if { (ac_try="$ac_compile"
3078case "(($ac_try" in
3079  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3080  *) ac_try_echo=$ac_try;;
3081esac
3082eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3083  (eval "$ac_compile") 2>conftest.er1
3084  ac_status=$?
3085  grep -v '^ *+' conftest.er1 >conftest.err
3086  rm -f conftest.er1
3087  cat conftest.err >&5
3088  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3089  (exit $ac_status); } &&
3090	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
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); }; } &&
3100	 { ac_try='test -s conftest.$ac_objext'
3101  { (case "(($ac_try" in
3102  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3103  *) ac_try_echo=$ac_try;;
3104esac
3105eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3106  (eval "$ac_try") 2>&5
3107  ac_status=$?
3108  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3109  (exit $ac_status); }; }; then
3110  :
3111else
3112  echo "$as_me: failed program was:" >&5
3113sed 's/^/| /' conftest.$ac_ext >&5
3114
3115	ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3116	 CXXFLAGS="-g"
3117	 cat >conftest.$ac_ext <<_ACEOF
3118/* confdefs.h.  */
3119_ACEOF
3120cat confdefs.h >>conftest.$ac_ext
3121cat >>conftest.$ac_ext <<_ACEOF
3122/* end confdefs.h.  */
3123
3124int
3125main ()
3126{
3127
3128  ;
3129  return 0;
3130}
3131_ACEOF
3132rm -f conftest.$ac_objext
3133if { (ac_try="$ac_compile"
3134case "(($ac_try" in
3135  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3136  *) ac_try_echo=$ac_try;;
3137esac
3138eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3139  (eval "$ac_compile") 2>conftest.er1
3140  ac_status=$?
3141  grep -v '^ *+' conftest.er1 >conftest.err
3142  rm -f conftest.er1
3143  cat conftest.err >&5
3144  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3145  (exit $ac_status); } &&
3146	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
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); }; } &&
3156	 { ac_try='test -s conftest.$ac_objext'
3157  { (case "(($ac_try" in
3158  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3159  *) ac_try_echo=$ac_try;;
3160esac
3161eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3162  (eval "$ac_try") 2>&5
3163  ac_status=$?
3164  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3165  (exit $ac_status); }; }; then
3166  ac_cv_prog_cxx_g=yes
3167else
3168  echo "$as_me: failed program was:" >&5
3169sed 's/^/| /' conftest.$ac_ext >&5
3170
3171
3172fi
3173
3174rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3175fi
3176
3177rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3178fi
3179
3180rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3181   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3182fi
3183{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3184echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3185if test "$ac_test_CXXFLAGS" = set; then
3186  CXXFLAGS=$ac_save_CXXFLAGS
3187elif test $ac_cv_prog_cxx_g = yes; then
3188  if test "$GXX" = yes; then
3189    CXXFLAGS="-g -O2"
3190  else
3191    CXXFLAGS="-g"
3192  fi
3193else
3194  if test "$GXX" = yes; then
3195    CXXFLAGS="-O2"
3196  else
3197    CXXFLAGS=
3198  fi
3199fi
3200ac_ext=c
3201ac_cpp='$CPP $CPPFLAGS'
3202ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3203ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3204ac_compiler_gnu=$ac_cv_c_compiler_gnu
3205
3206ac_ext=c
3207ac_cpp='$CPP $CPPFLAGS'
3208ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3209ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3210ac_compiler_gnu=$ac_cv_c_compiler_gnu
3211{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3212echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3213# On Suns, sometimes $CPP names a directory.
3214if test -n "$CPP" && test -d "$CPP"; then
3215  CPP=
3216fi
3217if test -z "$CPP"; then
3218  if test "${ac_cv_prog_CPP+set}" = set; then
3219  echo $ECHO_N "(cached) $ECHO_C" >&6
3220else
3221      # Double quotes because CPP needs to be expanded
3222    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3223    do
3224      ac_preproc_ok=false
3225for ac_c_preproc_warn_flag in '' yes
3226do
3227  # Use a header file that comes with gcc, so configuring glibc
3228  # with a fresh cross-compiler works.
3229  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3230  # <limits.h> exists even on freestanding compilers.
3231  # On the NeXT, cc -E runs the code through the compiler's parser,
3232  # not just through cpp. "Syntax error" is here to catch this case.
3233  cat >conftest.$ac_ext <<_ACEOF
3234/* confdefs.h.  */
3235_ACEOF
3236cat confdefs.h >>conftest.$ac_ext
3237cat >>conftest.$ac_ext <<_ACEOF
3238/* end confdefs.h.  */
3239#ifdef __STDC__
3240# include <limits.h>
3241#else
3242# include <assert.h>
3243#endif
3244		     Syntax error
3245_ACEOF
3246if { (ac_try="$ac_cpp conftest.$ac_ext"
3247case "(($ac_try" in
3248  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3249  *) ac_try_echo=$ac_try;;
3250esac
3251eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3252  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3253  ac_status=$?
3254  grep -v '^ *+' conftest.er1 >conftest.err
3255  rm -f conftest.er1
3256  cat conftest.err >&5
3257  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3258  (exit $ac_status); } >/dev/null; then
3259  if test -s conftest.err; then
3260    ac_cpp_err=$ac_c_preproc_warn_flag
3261    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3262  else
3263    ac_cpp_err=
3264  fi
3265else
3266  ac_cpp_err=yes
3267fi
3268if test -z "$ac_cpp_err"; then
3269  :
3270else
3271  echo "$as_me: failed program was:" >&5
3272sed 's/^/| /' conftest.$ac_ext >&5
3273
3274  # Broken: fails on valid input.
3275continue
3276fi
3277
3278rm -f conftest.err conftest.$ac_ext
3279
3280  # OK, works on sane cases.  Now check whether nonexistent headers
3281  # can be detected and how.
3282  cat >conftest.$ac_ext <<_ACEOF
3283/* confdefs.h.  */
3284_ACEOF
3285cat confdefs.h >>conftest.$ac_ext
3286cat >>conftest.$ac_ext <<_ACEOF
3287/* end confdefs.h.  */
3288#include <ac_nonexistent.h>
3289_ACEOF
3290if { (ac_try="$ac_cpp conftest.$ac_ext"
3291case "(($ac_try" in
3292  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3293  *) ac_try_echo=$ac_try;;
3294esac
3295eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3296  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3297  ac_status=$?
3298  grep -v '^ *+' conftest.er1 >conftest.err
3299  rm -f conftest.er1
3300  cat conftest.err >&5
3301  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3302  (exit $ac_status); } >/dev/null; then
3303  if test -s conftest.err; then
3304    ac_cpp_err=$ac_c_preproc_warn_flag
3305    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3306  else
3307    ac_cpp_err=
3308  fi
3309else
3310  ac_cpp_err=yes
3311fi
3312if test -z "$ac_cpp_err"; then
3313  # Broken: success on invalid input.
3314continue
3315else
3316  echo "$as_me: failed program was:" >&5
3317sed 's/^/| /' conftest.$ac_ext >&5
3318
3319  # Passes both tests.
3320ac_preproc_ok=:
3321break
3322fi
3323
3324rm -f conftest.err conftest.$ac_ext
3325
3326done
3327# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3328rm -f conftest.err conftest.$ac_ext
3329if $ac_preproc_ok; then
3330  break
3331fi
3332
3333    done
3334    ac_cv_prog_CPP=$CPP
3335
3336fi
3337  CPP=$ac_cv_prog_CPP
3338else
3339  ac_cv_prog_CPP=$CPP
3340fi
3341{ echo "$as_me:$LINENO: result: $CPP" >&5
3342echo "${ECHO_T}$CPP" >&6; }
3343ac_preproc_ok=false
3344for ac_c_preproc_warn_flag in '' yes
3345do
3346  # Use a header file that comes with gcc, so configuring glibc
3347  # with a fresh cross-compiler works.
3348  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3349  # <limits.h> exists even on freestanding compilers.
3350  # On the NeXT, cc -E runs the code through the compiler's parser,
3351  # not just through cpp. "Syntax error" is here to catch this case.
3352  cat >conftest.$ac_ext <<_ACEOF
3353/* confdefs.h.  */
3354_ACEOF
3355cat confdefs.h >>conftest.$ac_ext
3356cat >>conftest.$ac_ext <<_ACEOF
3357/* end confdefs.h.  */
3358#ifdef __STDC__
3359# include <limits.h>
3360#else
3361# include <assert.h>
3362#endif
3363		     Syntax error
3364_ACEOF
3365if { (ac_try="$ac_cpp conftest.$ac_ext"
3366case "(($ac_try" in
3367  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3368  *) ac_try_echo=$ac_try;;
3369esac
3370eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3371  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3372  ac_status=$?
3373  grep -v '^ *+' conftest.er1 >conftest.err
3374  rm -f conftest.er1
3375  cat conftest.err >&5
3376  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3377  (exit $ac_status); } >/dev/null; then
3378  if test -s conftest.err; then
3379    ac_cpp_err=$ac_c_preproc_warn_flag
3380    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3381  else
3382    ac_cpp_err=
3383  fi
3384else
3385  ac_cpp_err=yes
3386fi
3387if test -z "$ac_cpp_err"; then
3388  :
3389else
3390  echo "$as_me: failed program was:" >&5
3391sed 's/^/| /' conftest.$ac_ext >&5
3392
3393  # Broken: fails on valid input.
3394continue
3395fi
3396
3397rm -f conftest.err conftest.$ac_ext
3398
3399  # OK, works on sane cases.  Now check whether nonexistent headers
3400  # can be detected and how.
3401  cat >conftest.$ac_ext <<_ACEOF
3402/* confdefs.h.  */
3403_ACEOF
3404cat confdefs.h >>conftest.$ac_ext
3405cat >>conftest.$ac_ext <<_ACEOF
3406/* end confdefs.h.  */
3407#include <ac_nonexistent.h>
3408_ACEOF
3409if { (ac_try="$ac_cpp conftest.$ac_ext"
3410case "(($ac_try" in
3411  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3412  *) ac_try_echo=$ac_try;;
3413esac
3414eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3415  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3416  ac_status=$?
3417  grep -v '^ *+' conftest.er1 >conftest.err
3418  rm -f conftest.er1
3419  cat conftest.err >&5
3420  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3421  (exit $ac_status); } >/dev/null; then
3422  if test -s conftest.err; then
3423    ac_cpp_err=$ac_c_preproc_warn_flag
3424    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3425  else
3426    ac_cpp_err=
3427  fi
3428else
3429  ac_cpp_err=yes
3430fi
3431if test -z "$ac_cpp_err"; then
3432  # Broken: success on invalid input.
3433continue
3434else
3435  echo "$as_me: failed program was:" >&5
3436sed 's/^/| /' conftest.$ac_ext >&5
3437
3438  # Passes both tests.
3439ac_preproc_ok=:
3440break
3441fi
3442
3443rm -f conftest.err conftest.$ac_ext
3444
3445done
3446# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3447rm -f conftest.err conftest.$ac_ext
3448if $ac_preproc_ok; then
3449  :
3450else
3451  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3452See \`config.log' for more details." >&5
3453echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3454See \`config.log' for more details." >&2;}
3455   { (exit 1); exit 1; }; }
3456fi
3457
3458ac_ext=c
3459ac_cpp='$CPP $CPPFLAGS'
3460ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3461ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3462ac_compiler_gnu=$ac_cv_c_compiler_gnu
3463
3464
3465
3466
3467if test -d ${srcdir}/projects/llvm-gcc ; then
3468  subdirs="$subdirs projects/llvm-gcc"
3469
3470fi
3471
3472if test -d ${srcdir}/projects/test-suite ; then
3473  subdirs="$subdirs projects/test-suite"
3474
3475fi
3476
3477if test -d ${srcdir}/projects/llvm-test ; then
3478  subdirs="$subdirs projects/llvm-test"
3479
3480fi
3481
3482if test -d ${srcdir}/projects/poolalloc ; then
3483  subdirs="$subdirs projects/poolalloc"
3484
3485fi
3486
3487if test -d ${srcdir}/projects/llvm-poolalloc ; then
3488  subdirs="$subdirs projects/llvm-poolalloc"
3489
3490fi
3491
3492for i in `ls ${srcdir}/projects`
3493do
3494  if test -d ${srcdir}/projects/${i} ; then
3495    case ${i} in
3496      sample)       subdirs="$subdirs projects/sample"
3497    ;;
3498      privbracket)  subdirs="$subdirs projects/privbracket"
3499 ;;
3500      llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
3501 ;;
3502      llvm-reopt)   subdirs="$subdirs projects/llvm-reopt"
3503;;
3504      llvm-java)    subdirs="$subdirs projects/llvm-java"
3505 ;;
3506      llvm-tv)      subdirs="$subdirs projects/llvm-tv"
3507   ;;
3508      safecode)     subdirs="$subdirs projects/safecode"
3509 ;;
3510      llvm-kernel)  subdirs="$subdirs projects/llvm-kernel"
3511 ;;
3512      compiler-rt)       ;;
3513      llvm-gcc)       ;;
3514      test-suite)     ;;
3515      llvm-test)      ;;
3516      poolalloc)      ;;
3517      llvm-poolalloc) ;;
3518      *)
3519        { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
3520echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
3521        ;;
3522    esac
3523  fi
3524done
3525
3526# Check whether --enable-polly was given.
3527if test "${enable_polly+set}" = set; then
3528  enableval=$enable_polly;
3529else
3530  enableval=default
3531fi
3532
3533case "$enableval" in
3534  yes) ENABLE_POLLY=1
3535 ;;
3536  no)  ENABLE_POLLY=0
3537 ;;
3538  default) ENABLE_POLLY=1
3539 ;;
3540  *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&5
3541echo "$as_me: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&2;}
3542   { (exit 1); exit 1; }; } ;;
3543esac
3544
3545
3546if (test -d ${srcdir}/tools/polly) && (test $ENABLE_POLLY -eq 1) ; then
3547  LLVM_HAS_POLLY=1
3548
3549  subdirs="$subdirs tools/polly"
3550
3551fi
3552
3553
3554# Make sure we can run config.sub.
3555$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3556  { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3557echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3558   { (exit 1); exit 1; }; }
3559
3560{ echo "$as_me:$LINENO: checking build system type" >&5
3561echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
3562if test "${ac_cv_build+set}" = set; then
3563  echo $ECHO_N "(cached) $ECHO_C" >&6
3564else
3565  ac_build_alias=$build_alias
3566test "x$ac_build_alias" = x &&
3567  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3568test "x$ac_build_alias" = x &&
3569  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3570echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3571   { (exit 1); exit 1; }; }
3572ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3573  { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3574echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3575   { (exit 1); exit 1; }; }
3576
3577fi
3578{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3579echo "${ECHO_T}$ac_cv_build" >&6; }
3580case $ac_cv_build in
3581*-*-*) ;;
3582*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3583echo "$as_me: error: invalid value of canonical build" >&2;}
3584   { (exit 1); exit 1; }; };;
3585esac
3586build=$ac_cv_build
3587ac_save_IFS=$IFS; IFS='-'
3588set x $ac_cv_build
3589shift
3590build_cpu=$1
3591build_vendor=$2
3592shift; shift
3593# Remember, the first character of IFS is used to create $*,
3594# except with old shells:
3595build_os=$*
3596IFS=$ac_save_IFS
3597case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3598
3599
3600{ echo "$as_me:$LINENO: checking host system type" >&5
3601echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3602if test "${ac_cv_host+set}" = set; then
3603  echo $ECHO_N "(cached) $ECHO_C" >&6
3604else
3605  if test "x$host_alias" = x; then
3606  ac_cv_host=$ac_cv_build
3607else
3608  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3609    { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3610echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3611   { (exit 1); exit 1; }; }
3612fi
3613
3614fi
3615{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3616echo "${ECHO_T}$ac_cv_host" >&6; }
3617case $ac_cv_host in
3618*-*-*) ;;
3619*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3620echo "$as_me: error: invalid value of canonical host" >&2;}
3621   { (exit 1); exit 1; }; };;
3622esac
3623host=$ac_cv_host
3624ac_save_IFS=$IFS; IFS='-'
3625set x $ac_cv_host
3626shift
3627host_cpu=$1
3628host_vendor=$2
3629shift; shift
3630# Remember, the first character of IFS is used to create $*,
3631# except with old shells:
3632host_os=$*
3633IFS=$ac_save_IFS
3634case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3635
3636
3637{ echo "$as_me:$LINENO: checking target system type" >&5
3638echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
3639if test "${ac_cv_target+set}" = set; then
3640  echo $ECHO_N "(cached) $ECHO_C" >&6
3641else
3642  if test "x$target_alias" = x; then
3643  ac_cv_target=$ac_cv_host
3644else
3645  ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3646    { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
3647echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
3648   { (exit 1); exit 1; }; }
3649fi
3650
3651fi
3652{ echo "$as_me:$LINENO: result: $ac_cv_target" >&5
3653echo "${ECHO_T}$ac_cv_target" >&6; }
3654case $ac_cv_target in
3655*-*-*) ;;
3656*) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
3657echo "$as_me: error: invalid value of canonical target" >&2;}
3658   { (exit 1); exit 1; }; };;
3659esac
3660target=$ac_cv_target
3661ac_save_IFS=$IFS; IFS='-'
3662set x $ac_cv_target
3663shift
3664target_cpu=$1
3665target_vendor=$2
3666shift; shift
3667# Remember, the first character of IFS is used to create $*,
3668# except with old shells:
3669target_os=$*
3670IFS=$ac_save_IFS
3671case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3672
3673
3674# The aliases save the names the user supplied, while $host etc.
3675# will get canonicalized.
3676test -n "$target_alias" &&
3677  test "$program_prefix$program_suffix$program_transform_name" = \
3678    NONENONEs,x,x, &&
3679  program_prefix=${target_alias}-
3680
3681{ echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
3682echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
3683if test "${llvm_cv_os_type+set}" = set; then
3684  echo $ECHO_N "(cached) $ECHO_C" >&6
3685else
3686  case $host in
3687  *-*-aix*)
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="AIX"
3691    llvm_cv_platform_type="Unix" ;;
3692  *-*-irix*)
3693    llvm_cv_link_all_option="-Wl,--whole-archive"
3694    llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3695    llvm_cv_os_type="IRIX"
3696    llvm_cv_platform_type="Unix" ;;
3697  *-*-cygwin*)
3698    llvm_cv_link_all_option="-Wl,--whole-archive"
3699    llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3700    llvm_cv_os_type="Cygwin"
3701    llvm_cv_platform_type="Unix" ;;
3702  *-*-darwin*)
3703    llvm_cv_link_all_option="-Wl,-all_load"
3704    llvm_cv_no_link_all_option="-Wl,-noall_load"
3705    llvm_cv_os_type="Darwin"
3706    llvm_cv_platform_type="Unix" ;;
3707  *-*-minix*)
3708    llvm_cv_link_all_option="-Wl,-all_load"
3709    llvm_cv_no_link_all_option="-Wl,-noall_load"
3710    llvm_cv_os_type="Minix"
3711    llvm_cv_platform_type="Unix" ;;
3712  *-*-freebsd* | *-*-kfreebsd-gnu)
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="FreeBSD"
3716    llvm_cv_platform_type="Unix" ;;
3717  *-*-openbsd*)
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="OpenBSD"
3721    llvm_cv_platform_type="Unix" ;;
3722  *-*-netbsd*)
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="NetBSD"
3726    llvm_cv_platform_type="Unix" ;;
3727  *-*-dragonfly*)
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="DragonFly"
3731    llvm_cv_platform_type="Unix" ;;
3732  *-*-hpux*)
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="HP-UX"
3736    llvm_cv_platform_type="Unix" ;;
3737  *-*-interix*)
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="Interix"
3741    llvm_cv_platform_type="Unix" ;;
3742  *-*-linux*)
3743    llvm_cv_link_all_option="-Wl,--whole-archive"
3744    llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3745    llvm_cv_os_type="Linux"
3746    llvm_cv_platform_type="Unix" ;;
3747  *-*-gnu*)
3748    llvm_cv_link_all_option="-Wl,--whole-archive"
3749    llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3750    llvm_cv_os_type="GNU"
3751    llvm_cv_platform_type="Unix" ;;
3752  *-*-solaris*)
3753    llvm_cv_link_all_option="-Wl,-z,allextract"
3754    llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
3755    llvm_cv_os_type="SunOS"
3756    llvm_cv_platform_type="Unix" ;;
3757  *-*-auroraux*)
3758    llvm_cv_link_all_option="-Wl,-z,allextract"
3759    llvm_cv_link_all_option="-Wl,-z,defaultextract"
3760    llvm_cv_os_type="AuroraUX"
3761    llvm_cv_platform_type="Unix" ;;
3762  *-*-win32*)
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="Win32"
3766    llvm_cv_platform_type="Win32" ;;
3767  *-*-mingw*)
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="MingW"
3771    llvm_cv_platform_type="Win32" ;;
3772  *-*-haiku*)
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="Haiku"
3776    llvm_cv_platform_type="Unix" ;;
3777  *-unknown-eabi*)
3778    llvm_cv_link_all_option="-Wl,--whole-archive"
3779    llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3780    llvm_cv_os_type="Freestanding"
3781    llvm_cv_platform_type="Unix" ;;
3782  *-unknown-elf*)
3783    llvm_cv_link_all_option="-Wl,--whole-archive"
3784    llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3785    llvm_cv_os_type="Freestanding"
3786    llvm_cv_platform_type="Unix" ;;
3787  *)
3788    llvm_cv_link_all_option=""
3789    llvm_cv_no_link_all_option=""
3790    llvm_cv_os_type="Unknown"
3791    llvm_cv_platform_type="Unknown" ;;
3792esac
3793fi
3794{ echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
3795echo "${ECHO_T}$llvm_cv_os_type" >&6; }
3796
3797{ echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
3798echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
3799if test "${llvm_cv_target_os_type+set}" = set; then
3800  echo $ECHO_N "(cached) $ECHO_C" >&6
3801else
3802  case $target in
3803  *-*-aix*)
3804    llvm_cv_target_os_type="AIX" ;;
3805  *-*-irix*)
3806    llvm_cv_target_os_type="IRIX" ;;
3807  *-*-cygwin*)
3808    llvm_cv_target_os_type="Cygwin" ;;
3809  *-*-darwin*)
3810    llvm_cv_target_os_type="Darwin" ;;
3811  *-*-minix*)
3812    llvm_cv_target_os_type="Minix" ;;
3813  *-*-freebsd* | *-*-kfreebsd-gnu)
3814    llvm_cv_target_os_type="FreeBSD" ;;
3815  *-*-openbsd*)
3816    llvm_cv_target_os_type="OpenBSD" ;;
3817  *-*-netbsd*)
3818    llvm_cv_target_os_type="NetBSD" ;;
3819  *-*-dragonfly*)
3820    llvm_cv_target_os_type="DragonFly" ;;
3821  *-*-hpux*)
3822    llvm_cv_target_os_type="HP-UX" ;;
3823  *-*-interix*)
3824    llvm_cv_target_os_type="Interix" ;;
3825  *-*-linux*)
3826    llvm_cv_target_os_type="Linux" ;;
3827  *-*-gnu*)
3828    llvm_cv_target_os_type="GNU" ;;
3829  *-*-solaris*)
3830    llvm_cv_target_os_type="SunOS" ;;
3831  *-*-auroraux*)
3832    llvm_cv_target_os_type="AuroraUX" ;;
3833  *-*-win32*)
3834    llvm_cv_target_os_type="Win32" ;;
3835  *-*-mingw*)
3836    llvm_cv_target_os_type="MingW" ;;
3837  *-*-haiku*)
3838    llvm_cv_target_os_type="Haiku" ;;
3839  *-*-rtems*)
3840    llvm_cv_target_os_type="RTEMS" ;;
3841  *-*-nacl*)
3842    llvm_cv_target_os_type="NativeClient" ;;
3843  *-unknown-eabi*)
3844    llvm_cv_target_os_type="Freestanding" ;;
3845  *)
3846    llvm_cv_target_os_type="Unknown" ;;
3847esac
3848fi
3849{ echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
3850echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
3851
3852if test "$llvm_cv_os_type" = "Unknown" ; then
3853  { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
3854echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
3855   { (exit 1); exit 1; }; }
3856fi
3857
3858OS=$llvm_cv_os_type
3859
3860HOST_OS=$llvm_cv_os_type
3861
3862TARGET_OS=$llvm_cv_target_os_type
3863
3864
3865LINKALL=$llvm_cv_link_all_option
3866
3867NOLINKALL=$llvm_cv_no_link_all_option
3868
3869
3870case $llvm_cv_platform_type in
3871  Unix)
3872
3873cat >>confdefs.h <<\_ACEOF
3874#define LLVM_ON_UNIX 1
3875_ACEOF
3876
3877    LLVM_ON_UNIX=1
3878
3879    LLVM_ON_WIN32=0
3880
3881    ;;
3882  Win32)
3883
3884cat >>confdefs.h <<\_ACEOF
3885#define LLVM_ON_WIN32 1
3886_ACEOF
3887
3888    LLVM_ON_UNIX=0
3889
3890    LLVM_ON_WIN32=1
3891
3892    ;;
3893esac
3894
3895{ echo "$as_me:$LINENO: checking target architecture" >&5
3896echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
3897if test "${llvm_cv_target_arch+set}" = set; then
3898  echo $ECHO_N "(cached) $ECHO_C" >&6
3899else
3900  case $target in
3901  i?86-*)                 llvm_cv_target_arch="x86" ;;
3902  amd64-* | x86_64-*)     llvm_cv_target_arch="x86_64" ;;
3903  sparc*-*)               llvm_cv_target_arch="Sparc" ;;
3904  powerpc*-*)             llvm_cv_target_arch="PowerPC" ;;
3905  arm*-*)                 llvm_cv_target_arch="ARM" ;;
3906  mips-*)                 llvm_cv_target_arch="Mips" ;;
3907  mipsel-*)               llvm_cv_target_arch="Mips" ;;
3908  xcore-*)                llvm_cv_target_arch="XCore" ;;
3909  msp430-*)               llvm_cv_target_arch="MSP430" ;;
3910  hexagon-*)              llvm_cv_target_arch="Hexagon" ;;
3911  mblaze-*)               llvm_cv_target_arch="MBlaze" ;;
3912  nvptx-*)                llvm_cv_target_arch="NVPTX" ;;
3913  *)                      llvm_cv_target_arch="Unknown" ;;
3914esac
3915fi
3916{ echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
3917echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
3918
3919if test "$llvm_cv_target_arch" = "Unknown" ; then
3920  { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
3921echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
3922fi
3923
3924case "$llvm_cv_target_arch" in
3925    x86)     LLVM_NATIVE_ARCH="X86" ;;
3926    x86_64)  LLVM_NATIVE_ARCH="X86" ;;
3927    *)       LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
3928esac
3929
3930ARCH=$llvm_cv_target_arch
3931
3932
3933case $host in
3934  i?86-*)                 host_arch="x86" ;;
3935  amd64-* | x86_64-*)     host_arch="x86_64" ;;
3936  sparc*-*)               host_arch="Sparc" ;;
3937  powerpc*-*)             host_arch="PowerPC" ;;
3938  arm*-*)                 host_arch="ARM" ;;
3939  mips-*)                 host_arch="Mips" ;;
3940  mipsel-*)               host_arch="Mips" ;;
3941  xcore-*)                host_arch="XCore" ;;
3942  msp430-*)               host_arch="MSP430" ;;
3943  hexagon-*)              host_arch="Hexagon" ;;
3944  mblaze-*)               host_arch="MBlaze" ;;
3945  *)                      host_arch="Unknown" ;;
3946esac
3947
3948if test "$host_arch" = "Unknown" ; then
3949  { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown host archicture" >&5
3950echo "$as_me: WARNING: Configuring LLVM for an unknown host archicture" >&2;}
3951fi
3952
3953HOST_ARCH=$host_arch
3954
3955
3956
3957
3958{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3959echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3960if test "${ac_cv_path_GREP+set}" = set; then
3961  echo $ECHO_N "(cached) $ECHO_C" >&6
3962else
3963  # Extract the first word of "grep ggrep" to use in msg output
3964if test -z "$GREP"; then
3965set dummy grep ggrep; ac_prog_name=$2
3966if test "${ac_cv_path_GREP+set}" = set; then
3967  echo $ECHO_N "(cached) $ECHO_C" >&6
3968else
3969  ac_path_GREP_found=false
3970# Loop through the user's path and test for each of PROGNAME-LIST
3971as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3972for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3973do
3974  IFS=$as_save_IFS
3975  test -z "$as_dir" && as_dir=.
3976  for ac_prog in grep ggrep; do
3977  for ac_exec_ext in '' $ac_executable_extensions; do
3978    ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3979    { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3980    # Check for GNU ac_path_GREP and select it if it is found.
3981  # Check for GNU $ac_path_GREP
3982case `"$ac_path_GREP" --version 2>&1` in
3983*GNU*)
3984  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3985*)
3986  ac_count=0
3987  echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3988  while :
3989  do
3990    cat "conftest.in" "conftest.in" >"conftest.tmp"
3991    mv "conftest.tmp" "conftest.in"
3992    cp "conftest.in" "conftest.nl"
3993    echo 'GREP' >> "conftest.nl"
3994    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3995    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3996    ac_count=`expr $ac_count + 1`
3997    if test $ac_count -gt ${ac_path_GREP_max-0}; then
3998      # Best one so far, save it but keep looking for a better one
3999      ac_cv_path_GREP="$ac_path_GREP"
4000      ac_path_GREP_max=$ac_count
4001    fi
4002    # 10*(2^10) chars as input seems more than enough
4003    test $ac_count -gt 10 && break
4004  done
4005  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4006esac
4007
4008
4009    $ac_path_GREP_found && break 3
4010  done
4011done
4012
4013done
4014IFS=$as_save_IFS
4015
4016
4017fi
4018
4019GREP="$ac_cv_path_GREP"
4020if test -z "$GREP"; then
4021  { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4022echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4023   { (exit 1); exit 1; }; }
4024fi
4025
4026else
4027  ac_cv_path_GREP=$GREP
4028fi
4029
4030
4031fi
4032{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4033echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4034 GREP="$ac_cv_path_GREP"
4035
4036
4037{ echo "$as_me:$LINENO: checking for egrep" >&5
4038echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4039if test "${ac_cv_path_EGREP+set}" = set; then
4040  echo $ECHO_N "(cached) $ECHO_C" >&6
4041else
4042  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4043   then ac_cv_path_EGREP="$GREP -E"
4044   else
4045     # Extract the first word of "egrep" to use in msg output
4046if test -z "$EGREP"; then
4047set dummy egrep; ac_prog_name=$2
4048if test "${ac_cv_path_EGREP+set}" = set; then
4049  echo $ECHO_N "(cached) $ECHO_C" >&6
4050else
4051  ac_path_EGREP_found=false
4052# Loop through the user's path and test for each of PROGNAME-LIST
4053as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4054for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4055do
4056  IFS=$as_save_IFS
4057  test -z "$as_dir" && as_dir=.
4058  for ac_prog in egrep; do
4059  for ac_exec_ext in '' $ac_executable_extensions; do
4060    ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4061    { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
4062    # Check for GNU ac_path_EGREP and select it if it is found.
4063  # Check for GNU $ac_path_EGREP
4064case `"$ac_path_EGREP" --version 2>&1` in
4065*GNU*)
4066  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4067*)
4068  ac_count=0
4069  echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4070  while :
4071  do
4072    cat "conftest.in" "conftest.in" >"conftest.tmp"
4073    mv "conftest.tmp" "conftest.in"
4074    cp "conftest.in" "conftest.nl"
4075    echo 'EGREP' >> "conftest.nl"
4076    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4077    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4078    ac_count=`expr $ac_count + 1`
4079    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4080      # Best one so far, save it but keep looking for a better one
4081      ac_cv_path_EGREP="$ac_path_EGREP"
4082      ac_path_EGREP_max=$ac_count
4083    fi
4084    # 10*(2^10) chars as input seems more than enough
4085    test $ac_count -gt 10 && break
4086  done
4087  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4088esac
4089
4090
4091    $ac_path_EGREP_found && break 3
4092  done
4093done
4094
4095done
4096IFS=$as_save_IFS
4097
4098
4099fi
4100
4101EGREP="$ac_cv_path_EGREP"
4102if test -z "$EGREP"; then
4103  { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4104echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4105   { (exit 1); exit 1; }; }
4106fi
4107
4108else
4109  ac_cv_path_EGREP=$EGREP
4110fi
4111
4112
4113   fi
4114fi
4115{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4116echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4117 EGREP="$ac_cv_path_EGREP"
4118
4119
4120{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4121echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4122if test "${ac_cv_header_stdc+set}" = set; then
4123  echo $ECHO_N "(cached) $ECHO_C" >&6
4124else
4125  cat >conftest.$ac_ext <<_ACEOF
4126/* confdefs.h.  */
4127_ACEOF
4128cat confdefs.h >>conftest.$ac_ext
4129cat >>conftest.$ac_ext <<_ACEOF
4130/* end confdefs.h.  */
4131#include <stdlib.h>
4132#include <stdarg.h>
4133#include <string.h>
4134#include <float.h>
4135
4136int
4137main ()
4138{
4139
4140  ;
4141  return 0;
4142}
4143_ACEOF
4144rm -f conftest.$ac_objext
4145if { (ac_try="$ac_compile"
4146case "(($ac_try" in
4147  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4148  *) ac_try_echo=$ac_try;;
4149esac
4150eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4151  (eval "$ac_compile") 2>conftest.er1
4152  ac_status=$?
4153  grep -v '^ *+' conftest.er1 >conftest.err
4154  rm -f conftest.er1
4155  cat conftest.err >&5
4156  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4157  (exit $ac_status); } &&
4158	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4159  { (case "(($ac_try" in
4160  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4161  *) ac_try_echo=$ac_try;;
4162esac
4163eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4164  (eval "$ac_try") 2>&5
4165  ac_status=$?
4166  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4167  (exit $ac_status); }; } &&
4168	 { ac_try='test -s conftest.$ac_objext'
4169  { (case "(($ac_try" in
4170  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4171  *) ac_try_echo=$ac_try;;
4172esac
4173eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4174  (eval "$ac_try") 2>&5
4175  ac_status=$?
4176  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4177  (exit $ac_status); }; }; then
4178  ac_cv_header_stdc=yes
4179else
4180  echo "$as_me: failed program was:" >&5
4181sed 's/^/| /' conftest.$ac_ext >&5
4182
4183	ac_cv_header_stdc=no
4184fi
4185
4186rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4187
4188if test $ac_cv_header_stdc = yes; then
4189  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4190  cat >conftest.$ac_ext <<_ACEOF
4191/* confdefs.h.  */
4192_ACEOF
4193cat confdefs.h >>conftest.$ac_ext
4194cat >>conftest.$ac_ext <<_ACEOF
4195/* end confdefs.h.  */
4196#include <string.h>
4197
4198_ACEOF
4199if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4200  $EGREP "memchr" >/dev/null 2>&1; then
4201  :
4202else
4203  ac_cv_header_stdc=no
4204fi
4205rm -f conftest*
4206
4207fi
4208
4209if test $ac_cv_header_stdc = yes; then
4210  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4211  cat >conftest.$ac_ext <<_ACEOF
4212/* confdefs.h.  */
4213_ACEOF
4214cat confdefs.h >>conftest.$ac_ext
4215cat >>conftest.$ac_ext <<_ACEOF
4216/* end confdefs.h.  */
4217#include <stdlib.h>
4218
4219_ACEOF
4220if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4221  $EGREP "free" >/dev/null 2>&1; then
4222  :
4223else
4224  ac_cv_header_stdc=no
4225fi
4226rm -f conftest*
4227
4228fi
4229
4230if test $ac_cv_header_stdc = yes; then
4231  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4232  if test "$cross_compiling" = yes; then
4233  :
4234else
4235  cat >conftest.$ac_ext <<_ACEOF
4236/* confdefs.h.  */
4237_ACEOF
4238cat confdefs.h >>conftest.$ac_ext
4239cat >>conftest.$ac_ext <<_ACEOF
4240/* end confdefs.h.  */
4241#include <ctype.h>
4242#include <stdlib.h>
4243#if ((' ' & 0x0FF) == 0x020)
4244# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4245# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4246#else
4247# define ISLOWER(c) \
4248		   (('a' <= (c) && (c) <= 'i') \
4249		     || ('j' <= (c) && (c) <= 'r') \
4250		     || ('s' <= (c) && (c) <= 'z'))
4251# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4252#endif
4253
4254#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4255int
4256main ()
4257{
4258  int i;
4259  for (i = 0; i < 256; i++)
4260    if (XOR (islower (i), ISLOWER (i))
4261	|| toupper (i) != TOUPPER (i))
4262      return 2;
4263  return 0;
4264}
4265_ACEOF
4266rm -f conftest$ac_exeext
4267if { (ac_try="$ac_link"
4268case "(($ac_try" in
4269  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4270  *) ac_try_echo=$ac_try;;
4271esac
4272eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4273  (eval "$ac_link") 2>&5
4274  ac_status=$?
4275  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4276  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4277  { (case "(($ac_try" in
4278  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4279  *) ac_try_echo=$ac_try;;
4280esac
4281eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4282  (eval "$ac_try") 2>&5
4283  ac_status=$?
4284  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4285  (exit $ac_status); }; }; then
4286  :
4287else
4288  echo "$as_me: program exited with status $ac_status" >&5
4289echo "$as_me: failed program was:" >&5
4290sed 's/^/| /' conftest.$ac_ext >&5
4291
4292( exit $ac_status )
4293ac_cv_header_stdc=no
4294fi
4295rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4296fi
4297
4298
4299fi
4300fi
4301{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4302echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4303if test $ac_cv_header_stdc = yes; then
4304
4305cat >>confdefs.h <<\_ACEOF
4306#define STDC_HEADERS 1
4307_ACEOF
4308
4309fi
4310
4311# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4312
4313
4314
4315
4316
4317
4318
4319
4320
4321for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4322		  inttypes.h stdint.h unistd.h
4323do
4324as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4325{ echo "$as_me:$LINENO: checking for $ac_header" >&5
4326echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4327if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4328  echo $ECHO_N "(cached) $ECHO_C" >&6
4329else
4330  cat >conftest.$ac_ext <<_ACEOF
4331/* confdefs.h.  */
4332_ACEOF
4333cat confdefs.h >>conftest.$ac_ext
4334cat >>conftest.$ac_ext <<_ACEOF
4335/* end confdefs.h.  */
4336$ac_includes_default
4337
4338#include <$ac_header>
4339_ACEOF
4340rm -f conftest.$ac_objext
4341if { (ac_try="$ac_compile"
4342case "(($ac_try" in
4343  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4344  *) ac_try_echo=$ac_try;;
4345esac
4346eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4347  (eval "$ac_compile") 2>conftest.er1
4348  ac_status=$?
4349  grep -v '^ *+' conftest.er1 >conftest.err
4350  rm -f conftest.er1
4351  cat conftest.err >&5
4352  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4353  (exit $ac_status); } &&
4354	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4355  { (case "(($ac_try" in
4356  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4357  *) ac_try_echo=$ac_try;;
4358esac
4359eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4360  (eval "$ac_try") 2>&5
4361  ac_status=$?
4362  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4363  (exit $ac_status); }; } &&
4364	 { ac_try='test -s conftest.$ac_objext'
4365  { (case "(($ac_try" in
4366  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4367  *) ac_try_echo=$ac_try;;
4368esac
4369eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4370  (eval "$ac_try") 2>&5
4371  ac_status=$?
4372  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4373  (exit $ac_status); }; }; then
4374  eval "$as_ac_Header=yes"
4375else
4376  echo "$as_me: failed program was:" >&5
4377sed 's/^/| /' conftest.$ac_ext >&5
4378
4379	eval "$as_ac_Header=no"
4380fi
4381
4382rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4383fi
4384ac_res=`eval echo '${'$as_ac_Header'}'`
4385	       { echo "$as_me:$LINENO: result: $ac_res" >&5
4386echo "${ECHO_T}$ac_res" >&6; }
4387if test `eval echo '${'$as_ac_Header'}'` = yes; then
4388  cat >>confdefs.h <<_ACEOF
4389#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4390_ACEOF
4391
4392fi
4393
4394done
4395
4396
4397{ echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4398echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4399if test "${ac_cv_c_bigendian+set}" = set; then
4400  echo $ECHO_N "(cached) $ECHO_C" >&6
4401else
4402  # See if sys/param.h defines the BYTE_ORDER macro.
4403cat >conftest.$ac_ext <<_ACEOF
4404/* confdefs.h.  */
4405_ACEOF
4406cat confdefs.h >>conftest.$ac_ext
4407cat >>conftest.$ac_ext <<_ACEOF
4408/* end confdefs.h.  */
4409#include <sys/types.h>
4410#include <sys/param.h>
4411
4412int
4413main ()
4414{
4415#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4416 bogus endian macros
4417#endif
4418
4419  ;
4420  return 0;
4421}
4422_ACEOF
4423rm -f conftest.$ac_objext
4424if { (ac_try="$ac_compile"
4425case "(($ac_try" in
4426  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4427  *) ac_try_echo=$ac_try;;
4428esac
4429eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4430  (eval "$ac_compile") 2>conftest.er1
4431  ac_status=$?
4432  grep -v '^ *+' conftest.er1 >conftest.err
4433  rm -f conftest.er1
4434  cat conftest.err >&5
4435  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4436  (exit $ac_status); } &&
4437	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4438  { (case "(($ac_try" in
4439  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4440  *) ac_try_echo=$ac_try;;
4441esac
4442eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4443  (eval "$ac_try") 2>&5
4444  ac_status=$?
4445  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4446  (exit $ac_status); }; } &&
4447	 { ac_try='test -s conftest.$ac_objext'
4448  { (case "(($ac_try" in
4449  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4450  *) ac_try_echo=$ac_try;;
4451esac
4452eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4453  (eval "$ac_try") 2>&5
4454  ac_status=$?
4455  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4456  (exit $ac_status); }; }; then
4457  # It does; now see whether it defined to BIG_ENDIAN or not.
4458cat >conftest.$ac_ext <<_ACEOF
4459/* confdefs.h.  */
4460_ACEOF
4461cat confdefs.h >>conftest.$ac_ext
4462cat >>conftest.$ac_ext <<_ACEOF
4463/* end confdefs.h.  */
4464#include <sys/types.h>
4465#include <sys/param.h>
4466
4467int
4468main ()
4469{
4470#if BYTE_ORDER != BIG_ENDIAN
4471 not big endian
4472#endif
4473
4474  ;
4475  return 0;
4476}
4477_ACEOF
4478rm -f conftest.$ac_objext
4479if { (ac_try="$ac_compile"
4480case "(($ac_try" in
4481  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4482  *) ac_try_echo=$ac_try;;
4483esac
4484eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4485  (eval "$ac_compile") 2>conftest.er1
4486  ac_status=$?
4487  grep -v '^ *+' conftest.er1 >conftest.err
4488  rm -f conftest.er1
4489  cat conftest.err >&5
4490  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4491  (exit $ac_status); } &&
4492	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4493  { (case "(($ac_try" in
4494  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4495  *) ac_try_echo=$ac_try;;
4496esac
4497eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4498  (eval "$ac_try") 2>&5
4499  ac_status=$?
4500  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4501  (exit $ac_status); }; } &&
4502	 { ac_try='test -s conftest.$ac_objext'
4503  { (case "(($ac_try" in
4504  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4505  *) ac_try_echo=$ac_try;;
4506esac
4507eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4508  (eval "$ac_try") 2>&5
4509  ac_status=$?
4510  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4511  (exit $ac_status); }; }; then
4512  ac_cv_c_bigendian=yes
4513else
4514  echo "$as_me: failed program was:" >&5
4515sed 's/^/| /' conftest.$ac_ext >&5
4516
4517	ac_cv_c_bigendian=no
4518fi
4519
4520rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4521else
4522  echo "$as_me: failed program was:" >&5
4523sed 's/^/| /' conftest.$ac_ext >&5
4524
4525	# It does not; compile a test program.
4526if test "$cross_compiling" = yes; then
4527  # try to guess the endianness by grepping values into an object file
4528  ac_cv_c_bigendian=unknown
4529  cat >conftest.$ac_ext <<_ACEOF
4530/* confdefs.h.  */
4531_ACEOF
4532cat confdefs.h >>conftest.$ac_ext
4533cat >>conftest.$ac_ext <<_ACEOF
4534/* end confdefs.h.  */
4535short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4536short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4537void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4538short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4539short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4540void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4541int
4542main ()
4543{
4544 _ascii (); _ebcdic ();
4545  ;
4546  return 0;
4547}
4548_ACEOF
4549rm -f conftest.$ac_objext
4550if { (ac_try="$ac_compile"
4551case "(($ac_try" in
4552  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4553  *) ac_try_echo=$ac_try;;
4554esac
4555eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4556  (eval "$ac_compile") 2>conftest.er1
4557  ac_status=$?
4558  grep -v '^ *+' conftest.er1 >conftest.err
4559  rm -f conftest.er1
4560  cat conftest.err >&5
4561  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4562  (exit $ac_status); } &&
4563	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4564  { (case "(($ac_try" in
4565  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4566  *) ac_try_echo=$ac_try;;
4567esac
4568eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4569  (eval "$ac_try") 2>&5
4570  ac_status=$?
4571  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4572  (exit $ac_status); }; } &&
4573	 { ac_try='test -s conftest.$ac_objext'
4574  { (case "(($ac_try" in
4575  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4576  *) ac_try_echo=$ac_try;;
4577esac
4578eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4579  (eval "$ac_try") 2>&5
4580  ac_status=$?
4581  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4582  (exit $ac_status); }; }; then
4583  if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4584  ac_cv_c_bigendian=yes
4585fi
4586if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4587  if test "$ac_cv_c_bigendian" = unknown; then
4588    ac_cv_c_bigendian=no
4589  else
4590    # finding both strings is unlikely to happen, but who knows?
4591    ac_cv_c_bigendian=unknown
4592  fi
4593fi
4594else
4595  echo "$as_me: failed program was:" >&5
4596sed 's/^/| /' conftest.$ac_ext >&5
4597
4598
4599fi
4600
4601rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4602else
4603  cat >conftest.$ac_ext <<_ACEOF
4604/* confdefs.h.  */
4605_ACEOF
4606cat confdefs.h >>conftest.$ac_ext
4607cat >>conftest.$ac_ext <<_ACEOF
4608/* end confdefs.h.  */
4609$ac_includes_default
4610int
4611main ()
4612{
4613
4614  /* Are we little or big endian?  From Harbison&Steele.  */
4615  union
4616  {
4617    long int l;
4618    char c[sizeof (long int)];
4619  } u;
4620  u.l = 1;
4621  return u.c[sizeof (long int) - 1] == 1;
4622
4623  ;
4624  return 0;
4625}
4626_ACEOF
4627rm -f conftest$ac_exeext
4628if { (ac_try="$ac_link"
4629case "(($ac_try" in
4630  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4631  *) ac_try_echo=$ac_try;;
4632esac
4633eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4634  (eval "$ac_link") 2>&5
4635  ac_status=$?
4636  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4637  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4638  { (case "(($ac_try" in
4639  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4640  *) ac_try_echo=$ac_try;;
4641esac
4642eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4643  (eval "$ac_try") 2>&5
4644  ac_status=$?
4645  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4646  (exit $ac_status); }; }; then
4647  ac_cv_c_bigendian=no
4648else
4649  echo "$as_me: program exited with status $ac_status" >&5
4650echo "$as_me: failed program was:" >&5
4651sed 's/^/| /' conftest.$ac_ext >&5
4652
4653( exit $ac_status )
4654ac_cv_c_bigendian=yes
4655fi
4656rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4657fi
4658
4659
4660fi
4661
4662rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4663fi
4664{ echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4665echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4666case $ac_cv_c_bigendian in
4667  yes)
4668    ENDIAN=big
4669 ;;
4670  no)
4671    ENDIAN=little
4672 ;;
4673  *)
4674    { { echo "$as_me:$LINENO: error: unknown endianness
4675presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4676echo "$as_me: error: unknown endianness
4677presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4678   { (exit 1); exit 1; }; } ;;
4679esac
4680
4681
4682if test "$cross_compiling" = yes; then
4683  LLVM_CROSS_COMPILING=1
4684
4685
4686{ echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4687echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4688if test "${ac_cv_build_exeext+set}" = set; then
4689  echo $ECHO_N "(cached) $ECHO_C" >&6
4690else
4691  if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4692  ac_cv_build_exeext=.exe
4693else
4694  ac_build_prefix=${build_alias}-
4695
4696  # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4697set dummy ${ac_build_prefix}gcc; ac_word=$2
4698{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4699echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4700if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4701  echo $ECHO_N "(cached) $ECHO_C" >&6
4702else
4703  if test -n "$BUILD_CC"; then
4704  ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4705else
4706as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4707for as_dir in $PATH
4708do
4709  IFS=$as_save_IFS
4710  test -z "$as_dir" && as_dir=.
4711  for ac_exec_ext in '' $ac_executable_extensions; do
4712  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4713    ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4714    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4715    break 2
4716  fi
4717done
4718done
4719IFS=$as_save_IFS
4720
4721fi
4722fi
4723BUILD_CC=$ac_cv_prog_BUILD_CC
4724if test -n "$BUILD_CC"; then
4725  { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4726echo "${ECHO_T}$BUILD_CC" >&6; }
4727else
4728  { echo "$as_me:$LINENO: result: no" >&5
4729echo "${ECHO_T}no" >&6; }
4730fi
4731
4732
4733  if test -z "$BUILD_CC"; then
4734     # Extract the first word of "gcc", so it can be a program name with args.
4735set dummy gcc; ac_word=$2
4736{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4737echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4738if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4739  echo $ECHO_N "(cached) $ECHO_C" >&6
4740else
4741  if test -n "$BUILD_CC"; then
4742  ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4743else
4744as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4745for as_dir in $PATH
4746do
4747  IFS=$as_save_IFS
4748  test -z "$as_dir" && as_dir=.
4749  for ac_exec_ext in '' $ac_executable_extensions; do
4750  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4751    ac_cv_prog_BUILD_CC="gcc"
4752    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4753    break 2
4754  fi
4755done
4756done
4757IFS=$as_save_IFS
4758
4759fi
4760fi
4761BUILD_CC=$ac_cv_prog_BUILD_CC
4762if test -n "$BUILD_CC"; then
4763  { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4764echo "${ECHO_T}$BUILD_CC" >&6; }
4765else
4766  { echo "$as_me:$LINENO: result: no" >&5
4767echo "${ECHO_T}no" >&6; }
4768fi
4769
4770
4771     if test -z "$BUILD_CC"; then
4772       # Extract the first word of "cc", so it can be a program name with args.
4773set dummy cc; ac_word=$2
4774{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4775echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4776if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4777  echo $ECHO_N "(cached) $ECHO_C" >&6
4778else
4779  if test -n "$BUILD_CC"; then
4780  ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4781else
4782  ac_prog_rejected=no
4783as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4784for as_dir in $PATH
4785do
4786  IFS=$as_save_IFS
4787  test -z "$as_dir" && as_dir=.
4788  for ac_exec_ext in '' $ac_executable_extensions; do
4789  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4790    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4791       ac_prog_rejected=yes
4792       continue
4793     fi
4794    ac_cv_prog_BUILD_CC="cc"
4795    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4796    break 2
4797  fi
4798done
4799done
4800IFS=$as_save_IFS
4801
4802if test $ac_prog_rejected = yes; then
4803  # We found a bogon in the path, so make sure we never use it.
4804  set dummy $ac_cv_prog_BUILD_CC
4805  shift
4806  if test $# != 0; then
4807    # We chose a different compiler from the bogus one.
4808    # However, it has the same basename, so the bogon will be chosen
4809    # first if we set BUILD_CC to just the basename; use the full file name.
4810    shift
4811    ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4812  fi
4813fi
4814fi
4815fi
4816BUILD_CC=$ac_cv_prog_BUILD_CC
4817if test -n "$BUILD_CC"; then
4818  { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4819echo "${ECHO_T}$BUILD_CC" >&6; }
4820else
4821  { echo "$as_me:$LINENO: result: no" >&5
4822echo "${ECHO_T}no" >&6; }
4823fi
4824
4825
4826     fi
4827  fi
4828  test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4829echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4830   { (exit 1); exit 1; }; }
4831  ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4832  rm -f conftest*
4833  echo 'int main () { return 0; }' > conftest.$ac_ext
4834  ac_cv_build_exeext=
4835  if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4836  (eval $ac_build_link) 2>&5
4837  ac_status=$?
4838  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4839  (exit $ac_status); }; then
4840    for file in conftest.*; do
4841      case $file in
4842      *.c | *.o | *.obj | *.dSYM) ;;
4843      *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4844      esac
4845    done
4846  else
4847    { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4848echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4849   { (exit 1); exit 1; }; }
4850  fi
4851  rm -f conftest*
4852  test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4853fi
4854fi
4855
4856BUILD_EXEEXT=""
4857test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4858{ echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4859echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4860ac_build_exeext=$BUILD_EXEEXT
4861
4862  ac_build_prefix=${build_alias}-
4863  # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4864set dummy ${ac_build_prefix}g++; ac_word=$2
4865{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4866echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4867if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4868  echo $ECHO_N "(cached) $ECHO_C" >&6
4869else
4870  if test -n "$BUILD_CXX"; then
4871  ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4872else
4873as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4874for as_dir in $PATH
4875do
4876  IFS=$as_save_IFS
4877  test -z "$as_dir" && as_dir=.
4878  for ac_exec_ext in '' $ac_executable_extensions; do
4879  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4880    ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
4881    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4882    break 2
4883  fi
4884done
4885done
4886IFS=$as_save_IFS
4887
4888fi
4889fi
4890BUILD_CXX=$ac_cv_prog_BUILD_CXX
4891if test -n "$BUILD_CXX"; then
4892  { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4893echo "${ECHO_T}$BUILD_CXX" >&6; }
4894else
4895  { echo "$as_me:$LINENO: result: no" >&5
4896echo "${ECHO_T}no" >&6; }
4897fi
4898
4899
4900  if test -z "$BUILD_CXX"; then
4901     # Extract the first word of "g++", so it can be a program name with args.
4902set dummy g++; ac_word=$2
4903{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4904echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4905if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4906  echo $ECHO_N "(cached) $ECHO_C" >&6
4907else
4908  if test -n "$BUILD_CXX"; then
4909  ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4910else
4911as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4912for as_dir in $PATH
4913do
4914  IFS=$as_save_IFS
4915  test -z "$as_dir" && as_dir=.
4916  for ac_exec_ext in '' $ac_executable_extensions; do
4917  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4918    ac_cv_prog_BUILD_CXX="g++"
4919    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4920    break 2
4921  fi
4922done
4923done
4924IFS=$as_save_IFS
4925
4926fi
4927fi
4928BUILD_CXX=$ac_cv_prog_BUILD_CXX
4929if test -n "$BUILD_CXX"; then
4930  { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4931echo "${ECHO_T}$BUILD_CXX" >&6; }
4932else
4933  { echo "$as_me:$LINENO: result: no" >&5
4934echo "${ECHO_T}no" >&6; }
4935fi
4936
4937
4938     if test -z "$BUILD_CXX"; then
4939       # Extract the first word of "c++", so it can be a program name with args.
4940set dummy c++; ac_word=$2
4941{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4942echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4943if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4944  echo $ECHO_N "(cached) $ECHO_C" >&6
4945else
4946  if test -n "$BUILD_CXX"; then
4947  ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4948else
4949  ac_prog_rejected=no
4950as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4951for as_dir in $PATH
4952do
4953  IFS=$as_save_IFS
4954  test -z "$as_dir" && as_dir=.
4955  for ac_exec_ext in '' $ac_executable_extensions; do
4956  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4957    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4958       ac_prog_rejected=yes
4959       continue
4960     fi
4961    ac_cv_prog_BUILD_CXX="c++"
4962    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4963    break 2
4964  fi
4965done
4966done
4967IFS=$as_save_IFS
4968
4969if test $ac_prog_rejected = yes; then
4970  # We found a bogon in the path, so make sure we never use it.
4971  set dummy $ac_cv_prog_BUILD_CXX
4972  shift
4973  if test $# != 0; then
4974    # We chose a different compiler from the bogus one.
4975    # However, it has the same basename, so the bogon will be chosen
4976    # first if we set BUILD_CXX to just the basename; use the full file name.
4977    shift
4978    ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4979  fi
4980fi
4981fi
4982fi
4983BUILD_CXX=$ac_cv_prog_BUILD_CXX
4984if test -n "$BUILD_CXX"; then
4985  { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4986echo "${ECHO_T}$BUILD_CXX" >&6; }
4987else
4988  { echo "$as_me:$LINENO: result: no" >&5
4989echo "${ECHO_T}no" >&6; }
4990fi
4991
4992
4993     fi
4994  fi
4995else
4996  LLVM_CROSS_COMPILING=0
4997
4998fi
4999
5000if test -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
5001  cvsbuild="yes"
5002  optimize="no"
5003  CVSBUILD=CVSBUILD=1
5004
5005else
5006  cvsbuild="no"
5007  optimize="yes"
5008fi
5009
5010
5011# Check whether --enable-libcpp was given.
5012if test "${enable_libcpp+set}" = set; then
5013  enableval=$enable_libcpp;
5014else
5015  enableval=default
5016fi
5017
5018case "$enableval" in
5019  yes) ENABLE_LIBCPP=1
5020 ;;
5021  no)  ENABLE_LIBCPP=0
5022 ;;
5023  default) ENABLE_LIBCPP=0
5024;;
5025  *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&5
5026echo "$as_me: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&2;}
5027   { (exit 1); exit 1; }; } ;;
5028esac
5029
5030# Check whether --enable-cxx11 was given.
5031if test "${enable_cxx11+set}" = set; then
5032  enableval=$enable_cxx11;
5033else
5034  enableval=default
5035fi
5036
5037case "$enableval" in
5038  yes) ENABLE_CXX11=1
5039 ;;
5040  no)  ENABLE_CXX11=0
5041 ;;
5042  default) ENABLE_CXX11=0
5043;;
5044  *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cxx11. Use \"yes\" or \"no\"" >&5
5045echo "$as_me: error: Invalid setting for --enable-cxx11. Use \"yes\" or \"no\"" >&2;}
5046   { (exit 1); exit 1; }; } ;;
5047esac
5048
5049# Check whether --enable-optimized was given.
5050if test "${enable_optimized+set}" = set; then
5051  enableval=$enable_optimized;
5052else
5053  enableval=$optimize
5054fi
5055
5056if test ${enableval} = "no" ; then
5057  ENABLE_OPTIMIZED=
5058
5059else
5060  ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
5061
5062fi
5063
5064# Check whether --enable-profiling was given.
5065if test "${enable_profiling+set}" = set; then
5066  enableval=$enable_profiling;
5067else
5068  enableval="no"
5069fi
5070
5071if test ${enableval} = "no" ; then
5072  ENABLE_PROFILING=
5073
5074else
5075  ENABLE_PROFILING=ENABLE_PROFILING=1
5076
5077fi
5078
5079# Check whether --enable-assertions was given.
5080if test "${enable_assertions+set}" = set; then
5081  enableval=$enable_assertions;
5082else
5083  enableval="yes"
5084fi
5085
5086if test ${enableval} = "yes" ; then
5087  DISABLE_ASSERTIONS=
5088
5089else
5090  DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
5091
5092fi
5093
5094# Check whether --enable-werror was given.
5095if test "${enable_werror+set}" = set; then
5096  enableval=$enable_werror;
5097else
5098  enableval="no"
5099fi
5100
5101case "$enableval" in
5102  yes) ENABLE_WERROR=1
5103 ;;
5104  no)  ENABLE_WERROR=0
5105 ;;
5106  default) ENABLE_WERROR=0
5107;;
5108  *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-werror. Use \"yes\" or \"no\"" >&5
5109echo "$as_me: error: Invalid setting for --enable-werror. Use \"yes\" or \"no\"" >&2;}
5110   { (exit 1); exit 1; }; } ;;
5111esac
5112
5113# Check whether --enable-expensive-checks was given.
5114if test "${enable_expensive_checks+set}" = set; then
5115  enableval=$enable_expensive_checks;
5116else
5117  enableval="no"
5118fi
5119
5120if test ${enableval} = "yes" ; then
5121  ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
5122
5123  EXPENSIVE_CHECKS=yes
5124
5125else
5126  ENABLE_EXPENSIVE_CHECKS=
5127
5128  EXPENSIVE_CHECKS=no
5129
5130fi
5131
5132# Check whether --enable-debug-runtime was given.
5133if test "${enable_debug_runtime+set}" = set; then
5134  enableval=$enable_debug_runtime;
5135else
5136  enableval=no
5137fi
5138
5139if test ${enableval} = "no" ; then
5140  DEBUG_RUNTIME=
5141
5142else
5143  DEBUG_RUNTIME=DEBUG_RUNTIME=1
5144
5145fi
5146
5147# Check whether --enable-debug-symbols was given.
5148if test "${enable_debug_symbols+set}" = set; then
5149  enableval=$enable_debug_symbols;
5150else
5151  enableval=no
5152fi
5153
5154if test ${enableval} = "no" ; then
5155  DEBUG_SYMBOLS=
5156
5157else
5158  DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
5159
5160fi
5161
5162# Check whether --enable-keep-symbols was given.
5163if test "${enable_keep_symbols+set}" = set; then
5164  enableval=$enable_keep_symbols;
5165else
5166  enableval=no
5167fi
5168
5169if test ${enableval} = "no" ; then
5170  KEEP_SYMBOLS=
5171
5172else
5173  KEEP_SYMBOLS=KEEP_SYMBOLS=1
5174
5175fi
5176
5177# Check whether --enable-jit was given.
5178if test "${enable_jit+set}" = set; then
5179  enableval=$enable_jit;
5180else
5181  enableval=default
5182fi
5183
5184if test ${enableval} = "no"
5185then
5186  JIT=
5187
5188else
5189  case "$llvm_cv_target_arch" in
5190    x86)         TARGET_HAS_JIT=1
5191 ;;
5192    Sparc)       TARGET_HAS_JIT=0
5193 ;;
5194    PowerPC)     TARGET_HAS_JIT=1
5195 ;;
5196    x86_64)      TARGET_HAS_JIT=1
5197 ;;
5198    ARM)         TARGET_HAS_JIT=1
5199 ;;
5200    Mips)        TARGET_HAS_JIT=1
5201 ;;
5202    XCore)       TARGET_HAS_JIT=0
5203 ;;
5204    MSP430)      TARGET_HAS_JIT=0
5205 ;;
5206    Hexagon)     TARGET_HAS_JIT=0
5207 ;;
5208    MBlaze)      TARGET_HAS_JIT=0
5209 ;;
5210    NVPTX)       TARGET_HAS_JIT=0
5211 ;;
5212    *)           TARGET_HAS_JIT=0
5213 ;;
5214  esac
5215fi
5216
5217# Check whether --enable-docs was given.
5218if test "${enable_docs+set}" = set; then
5219  enableval=$enable_docs;
5220else
5221  enableval=default
5222fi
5223
5224case "$enableval" in
5225  yes) ENABLE_DOCS=1
5226 ;;
5227  no)  ENABLE_DOCS=0
5228 ;;
5229  default) ENABLE_DOCS=1
5230 ;;
5231  *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&5
5232echo "$as_me: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&2;}
5233   { (exit 1); exit 1; }; } ;;
5234esac
5235
5236# Check whether --enable-doxygen was given.
5237if test "${enable_doxygen+set}" = set; then
5238  enableval=$enable_doxygen;
5239else
5240  enableval=default
5241fi
5242
5243case "$enableval" in
5244  yes) ENABLE_DOXYGEN=1
5245 ;;
5246  no)  ENABLE_DOXYGEN=0
5247 ;;
5248  default) ENABLE_DOXYGEN=0
5249 ;;
5250  *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
5251echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
5252   { (exit 1); exit 1; }; } ;;
5253esac
5254
5255# Check whether --enable-threads was given.
5256if test "${enable_threads+set}" = set; then
5257  enableval=$enable_threads;
5258else
5259  enableval=default
5260fi
5261
5262case "$enableval" in
5263  yes) LLVM_ENABLE_THREADS=1
5264 ;;
5265  no)  LLVM_ENABLE_THREADS=0
5266 ;;
5267  default) LLVM_ENABLE_THREADS=1
5268 ;;
5269  *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
5270echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
5271   { (exit 1); exit 1; }; } ;;
5272esac
5273
5274cat >>confdefs.h <<_ACEOF
5275#define LLVM_ENABLE_THREADS $LLVM_ENABLE_THREADS
5276_ACEOF
5277
5278
5279# Check whether --enable-pthreads was given.
5280if test "${enable_pthreads+set}" = set; then
5281  enableval=$enable_pthreads;
5282else
5283  enableval=default
5284fi
5285
5286case "$enableval" in
5287  yes) ENABLE_PTHREADS=1
5288 ;;
5289  no)  ENABLE_PTHREADS=0
5290 ;;
5291  default) ENABLE_PTHREADS=1
5292 ;;
5293  *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&5
5294echo "$as_me: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&2;}
5295   { (exit 1); exit 1; }; } ;;
5296esac
5297
5298# Check whether --enable-pic was given.
5299if test "${enable_pic+set}" = set; then
5300  enableval=$enable_pic;
5301else
5302  enableval=default
5303fi
5304
5305case "$enableval" in
5306  yes) ENABLE_PIC=1
5307 ;;
5308  no)  ENABLE_PIC=0
5309 ;;
5310  default) ENABLE_PIC=1
5311 ;;
5312  *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
5313echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
5314   { (exit 1); exit 1; }; } ;;
5315esac
5316
5317cat >>confdefs.h <<_ACEOF
5318#define ENABLE_PIC $ENABLE_PIC
5319_ACEOF
5320
5321
5322# Check whether --enable-shared was given.
5323if test "${enable_shared+set}" = set; then
5324  enableval=$enable_shared;
5325else
5326  enableval=default
5327fi
5328
5329case "$enableval" in
5330  yes) ENABLE_SHARED=1
5331 ;;
5332  no)  ENABLE_SHARED=0
5333 ;;
5334  default) ENABLE_SHARED=0
5335 ;;
5336  *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5
5337echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;}
5338   { (exit 1); exit 1; }; } ;;
5339esac
5340
5341# Check whether --enable-embed-stdcxx was given.
5342if test "${enable_embed_stdcxx+set}" = set; then
5343  enableval=$enable_embed_stdcxx;
5344else
5345  enableval=default
5346fi
5347
5348case "$enableval" in
5349  yes) ENABLE_EMBED_STDCXX=1
5350 ;;
5351  no)  ENABLE_EMBED_STDCXX=0
5352 ;;
5353  default) ENABLE_EMBED_STDCXX=0
5354 ;;
5355  *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&5
5356echo "$as_me: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&2;}
5357   { (exit 1); exit 1; }; } ;;
5358esac
5359
5360# Check whether --enable-timestamps was given.
5361if test "${enable_timestamps+set}" = set; then
5362  enableval=$enable_timestamps;
5363else
5364  enableval=default
5365fi
5366
5367case "$enableval" in
5368  yes) ENABLE_TIMESTAMPS=1
5369 ;;
5370  no)  ENABLE_TIMESTAMPS=0
5371 ;;
5372  default) ENABLE_TIMESTAMPS=1
5373 ;;
5374  *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&5
5375echo "$as_me: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&2;}
5376   { (exit 1); exit 1; }; } ;;
5377esac
5378
5379cat >>confdefs.h <<_ACEOF
5380#define ENABLE_TIMESTAMPS $ENABLE_TIMESTAMPS
5381_ACEOF
5382
5383
5384
5385# Check whether --enable-backtraces was given.
5386if test "${enable_backtraces+set}" = set; then
5387  enableval=$enable_backtraces;
5388else
5389  enableval=default
5390fi
5391
5392case "$enableval" in
5393  yes) ENABLE_TIMESTAMPS=1
5394 ;;
5395  no)  ENABLE_TIMESTAMPS=0
5396 ;;
5397  default) ENABLE_TIMESTAMPS=1
5398 ;;
5399  *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-backtraces. Use \"yes\" or \"no\"" >&5
5400echo "$as_me: error: Invalid setting for --enable-backtraces. Use \"yes\" or \"no\"" >&2;}
5401   { (exit 1); exit 1; }; } ;;
5402esac
5403
5404cat >>confdefs.h <<_ACEOF
5405#define ENABLE_BACKTRACES $ENABLE_BACKTRACES
5406_ACEOF
5407
5408
5409TARGETS_TO_BUILD=""
5410# Check whether --enable-targets was given.
5411if test "${enable_targets+set}" = set; then
5412  enableval=$enable_targets;
5413else
5414  enableval=all
5415fi
5416
5417if test "$enableval" = host-only ; then
5418  enableval=host
5419fi
5420case "$enableval" in
5421  all) TARGETS_TO_BUILD="X86 Sparc PowerPC ARM Mips CellSPU XCore MSP430 CppBackend MBlaze NVPTX Hexagon" ;;
5422  *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
5423      case "$a_target" in
5424        x86)      TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5425        x86_64)   TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5426        sparc)    TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5427        powerpc)  TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5428        arm)      TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5429        mips)     TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5430        mipsel)   TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5431        spu)      TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
5432        xcore)    TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5433        msp430)   TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5434        cpp)      TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
5435        hexagon)  TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
5436        mblaze)   TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
5437        nvptx)    TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
5438        host) case "$llvm_cv_target_arch" in
5439            x86)         TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5440            x86_64)      TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5441            Sparc)       TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5442            PowerPC)     TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5443            ARM)         TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5444            Mips)        TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5445            MBlaze)      TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
5446            CellSPU|SPU) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
5447            XCore)       TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5448            MSP430)      TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5449            Hexagon)     TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
5450            NVPTX)       TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
5451            *)       { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
5452echo "$as_me: error: Can not set target to build" >&2;}
5453   { (exit 1); exit 1; }; } ;;
5454          esac ;;
5455        *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
5456echo "$as_me: error: Unrecognized target $a_target" >&2;}
5457   { (exit 1); exit 1; }; } ;;
5458      esac
5459  done
5460  ;;
5461esac
5462
5463# Check whether --enable-experimental-targets was given.
5464if test "${enable_experimental_targets+set}" = set; then
5465  enableval=$enable_experimental_targets;
5466else
5467  enableval=disable
5468fi
5469
5470
5471if test ${enableval} != "disable"
5472then
5473  TARGETS_TO_BUILD="$enableval $TARGETS_TO_BUILD"
5474fi
5475
5476TARGETS_TO_BUILD=$TARGETS_TO_BUILD
5477
5478
5479for a_target in $TARGETS_TO_BUILD; do
5480  if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
5481
5482cat >>confdefs.h <<_ACEOF
5483#define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCH
5484_ACEOF
5485
5486    LLVM_NATIVE_TARGET="LLVMInitialize${LLVM_NATIVE_ARCH}Target"
5487    LLVM_NATIVE_TARGETINFO="LLVMInitialize${LLVM_NATIVE_ARCH}TargetInfo"
5488    LLVM_NATIVE_TARGETMC="LLVMInitialize${LLVM_NATIVE_ARCH}TargetMC"
5489    LLVM_NATIVE_ASMPRINTER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmPrinter"
5490    if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5491      LLVM_NATIVE_ASMPARSER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmParser"
5492    fi
5493    if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5494      LLVM_NATIVE_DISASSEMBLER="LLVMInitialize${LLVM_NATIVE_ARCH}Disassembler"
5495    fi
5496
5497cat >>confdefs.h <<_ACEOF
5498#define LLVM_NATIVE_TARGET $LLVM_NATIVE_TARGET
5499_ACEOF
5500
5501
5502cat >>confdefs.h <<_ACEOF
5503#define LLVM_NATIVE_TARGETINFO $LLVM_NATIVE_TARGETINFO
5504_ACEOF
5505
5506
5507cat >>confdefs.h <<_ACEOF
5508#define LLVM_NATIVE_TARGETMC $LLVM_NATIVE_TARGETMC
5509_ACEOF
5510
5511
5512cat >>confdefs.h <<_ACEOF
5513#define LLVM_NATIVE_ASMPRINTER $LLVM_NATIVE_ASMPRINTER
5514_ACEOF
5515
5516    if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5517
5518cat >>confdefs.h <<_ACEOF
5519#define LLVM_NATIVE_ASMPARSER $LLVM_NATIVE_ASMPARSER
5520_ACEOF
5521
5522    fi
5523    if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5524
5525cat >>confdefs.h <<_ACEOF
5526#define LLVM_NATIVE_DISASSEMBLER $LLVM_NATIVE_DISASSEMBLER
5527_ACEOF
5528
5529    fi
5530  fi
5531done
5532
5533LLVM_ENUM_TARGETS=""
5534LLVM_ENUM_ASM_PRINTERS=""
5535LLVM_ENUM_ASM_PARSERS=""
5536LLVM_ENUM_DISASSEMBLERS=""
5537for target_to_build in $TARGETS_TO_BUILD; do
5538  LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
5539  if test -f ${srcdir}/lib/Target/${target_to_build}/*AsmPrinter.cpp ; then
5540    LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5541  fi
5542  if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5543    LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5544  fi
5545  if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
5546    LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
5547  fi
5548done
5549
5550
5551
5552
5553
5554
5555# Check whether --with-optimize-option was given.
5556if test "${with_optimize_option+set}" = set; then
5557  withval=$with_optimize_option;
5558else
5559  withval=default
5560fi
5561
5562{ echo "$as_me:$LINENO: checking optimization flags" >&5
5563echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
5564case "$withval" in
5565  default)
5566    case "$llvm_cv_os_type" in
5567    FreeBSD) optimize_option=-O2 ;;
5568    MingW) optimize_option=-O2 ;;
5569    *)     optimize_option=-O3 ;;
5570    esac ;;
5571  *) optimize_option="$withval" ;;
5572esac
5573OPTIMIZE_OPTION=$optimize_option
5574
5575{ echo "$as_me:$LINENO: result: $optimize_option" >&5
5576echo "${ECHO_T}$optimize_option" >&6; }
5577
5578
5579# Check whether --with-extra-options was given.
5580if test "${with_extra_options+set}" = set; then
5581  withval=$with_extra_options;
5582else
5583  withval=default
5584fi
5585
5586case "$withval" in
5587  default) EXTRA_OPTIONS= ;;
5588  *) EXTRA_OPTIONS=$withval ;;
5589esac
5590EXTRA_OPTIONS=$EXTRA_OPTIONS
5591
5592
5593
5594# Check whether --with-extra-ld-options was given.
5595if test "${with_extra_ld_options+set}" = set; then
5596  withval=$with_extra_ld_options;
5597else
5598  withval=default
5599fi
5600
5601case "$withval" in
5602  default) EXTRA_LD_OPTIONS= ;;
5603  *) EXTRA_LD_OPTIONS=$withval ;;
5604esac
5605EXTRA_LD_OPTIONS=$EXTRA_LD_OPTIONS
5606
5607
5608# Check whether --enable-bindings was given.
5609if test "${enable_bindings+set}" = set; then
5610  enableval=$enable_bindings;
5611else
5612  enableval=default
5613fi
5614
5615BINDINGS_TO_BUILD=""
5616case "$enableval" in
5617  yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
5618  all ) BINDINGS_TO_BUILD="ocaml" ;;
5619  none | no) BINDINGS_TO_BUILD="" ;;
5620  *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5621      case "$a_binding" in
5622        ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5623        *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5624echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5625   { (exit 1); exit 1; }; } ;;
5626      esac
5627  done
5628  ;;
5629esac
5630
5631
5632# Check whether --with-ocaml-libdir was given.
5633if test "${with_ocaml_libdir+set}" = set; then
5634  withval=$with_ocaml_libdir;
5635else
5636  withval=auto
5637fi
5638
5639case "$withval" in
5640  auto) with_ocaml_libdir="$withval" ;;
5641  /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5642  *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5643echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5644   { (exit 1); exit 1; }; } ;;
5645esac
5646
5647
5648# Check whether --with-clang-srcdir was given.
5649if test "${with_clang_srcdir+set}" = set; then
5650  withval=$with_clang_srcdir;
5651else
5652  withval="-"
5653fi
5654
5655case "$withval" in
5656  -) clang_src_root="" ;;
5657  /* | [A-Za-z]:[\\/]*) clang_src_root="$withval" ;;
5658  *) clang_src_root="$ac_pwd/$withval" ;;
5659esac
5660CLANG_SRC_ROOT=$clang_src_root
5661
5662
5663
5664# Check whether --with-clang-resource-dir was given.
5665if test "${with_clang_resource_dir+set}" = set; then
5666  withval=$with_clang_resource_dir;
5667else
5668  withval=""
5669fi
5670
5671
5672cat >>confdefs.h <<_ACEOF
5673#define CLANG_RESOURCE_DIR "$withval"
5674_ACEOF
5675
5676
5677
5678# Check whether --with-c-include-dirs was given.
5679if test "${with_c_include_dirs+set}" = set; then
5680  withval=$with_c_include_dirs;
5681else
5682  withval=""
5683fi
5684
5685
5686cat >>confdefs.h <<_ACEOF
5687#define C_INCLUDE_DIRS "$withval"
5688_ACEOF
5689
5690
5691# Clang normally uses the system c++ headers and libraries. With this option,
5692# clang will use the ones provided by a gcc installation instead. This option should
5693# be passed the same value that was used with --prefix when configuring gcc.
5694
5695# Check whether --with-gcc-toolchain was given.
5696if test "${with_gcc_toolchain+set}" = set; then
5697  withval=$with_gcc_toolchain;
5698else
5699  withval=""
5700fi
5701
5702
5703cat >>confdefs.h <<_ACEOF
5704#define GCC_INSTALL_PREFIX "$withval"
5705_ACEOF
5706
5707
5708
5709# Check whether --with-default-sysroot was given.
5710if test "${with_default_sysroot+set}" = set; then
5711  withval=$with_default_sysroot;
5712else
5713  withval=""
5714fi
5715
5716
5717cat >>confdefs.h <<_ACEOF
5718#define DEFAULT_SYSROOT "$withval"
5719_ACEOF
5720
5721
5722
5723# Check whether --with-binutils-include was given.
5724if test "${with_binutils_include+set}" = set; then
5725  withval=$with_binutils_include;
5726else
5727  withval=default
5728fi
5729
5730case "$withval" in
5731  default) WITH_BINUTILS_INCDIR=default ;;
5732  /* | [A-Za-z]:[\\/]*)      WITH_BINUTILS_INCDIR=$withval ;;
5733  *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5734echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5735   { (exit 1); exit 1; }; } ;;
5736esac
5737if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5738  BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5739
5740  if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5741     echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
5742     { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5743echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5744   { (exit 1); exit 1; }; };
5745  fi
5746fi
5747
5748
5749# Check whether --with-bug-report-url was given.
5750if test "${with_bug_report_url+set}" = set; then
5751  withval=$with_bug_report_url;
5752else
5753  withval="http://llvm.org/bugs/"
5754fi
5755
5756
5757cat >>confdefs.h <<_ACEOF
5758#define BUG_REPORT_URL "$withval"
5759_ACEOF
5760
5761
5762# Check whether --enable-libffi was given.
5763if test "${enable_libffi+set}" = set; then
5764  enableval=$enable_libffi; case "$enableval" in
5765    yes) llvm_cv_enable_libffi="yes" ;;
5766    no)  llvm_cv_enable_libffi="no"  ;;
5767    *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
5768echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5769   { (exit 1); exit 1; }; } ;;
5770  esac
5771else
5772  llvm_cv_enable_libffi=no
5773fi
5774
5775
5776
5777# Check whether --with-internal-prefix was given.
5778if test "${with_internal_prefix+set}" = set; then
5779  withval=$with_internal_prefix;
5780else
5781  withval=""
5782fi
5783
5784INTERNAL_PREFIX=$withval
5785
5786
5787
5788{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5789echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
5790if test "${lt_cv_path_NM+set}" = set; then
5791  echo $ECHO_N "(cached) $ECHO_C" >&6
5792else
5793  if test -n "$NM"; then
5794  # Let the user override the test.
5795  lt_cv_path_NM="$NM"
5796else
5797  lt_nm_to_check="${ac_tool_prefix}nm"
5798  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5799    lt_nm_to_check="$lt_nm_to_check nm"
5800  fi
5801  for lt_tmp_nm in $lt_nm_to_check; do
5802    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5803    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5804      IFS="$lt_save_ifs"
5805      test -z "$ac_dir" && ac_dir=.
5806      tmp_nm="$ac_dir/$lt_tmp_nm"
5807      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5808	# Check to see if the nm accepts a BSD-compat flag.
5809	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
5810	#   nm: unknown option "B" ignored
5811	# Tru64's nm complains that /dev/null is an invalid object file
5812	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5813	*/dev/null* | *'Invalid file or object type'*)
5814	  lt_cv_path_NM="$tmp_nm -B"
5815	  break
5816	  ;;
5817	*)
5818	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5819	  */dev/null*)
5820	    lt_cv_path_NM="$tmp_nm -p"
5821	    break
5822	    ;;
5823	  *)
5824	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5825	    continue # so that we can try to find one that supports BSD flags
5826	    ;;
5827	  esac
5828	  ;;
5829	esac
5830      fi
5831    done
5832    IFS="$lt_save_ifs"
5833  done
5834  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5835fi
5836fi
5837{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5838echo "${ECHO_T}$lt_cv_path_NM" >&6; }
5839NM="$lt_cv_path_NM"
5840
5841
5842
5843{ echo "$as_me:$LINENO: checking for GNU make" >&5
5844echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
5845if test "${llvm_cv_gnu_make_command+set}" = set; then
5846  echo $ECHO_N "(cached) $ECHO_C" >&6
5847else
5848  llvm_cv_gnu_make_command=''
5849 for a in "$MAKE" make gmake gnumake ; do
5850  if test -z "$a" ; then continue ; fi ;
5851  if  ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
5852  then
5853   llvm_cv_gnu_make_command=$a ;
5854   break;
5855  fi
5856 done
5857fi
5858{ echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
5859echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
5860 if test "x$llvm_cv_gnu_make_command" != "x"  ; then
5861   ifGNUmake='' ;
5862 else
5863   ifGNUmake='#' ;
5864   { echo "$as_me:$LINENO: result: \"Not found\"" >&5
5865echo "${ECHO_T}\"Not found\"" >&6; };
5866 fi
5867
5868
5869{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
5870echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
5871LN_S=$as_ln_s
5872if test "$LN_S" = "ln -s"; then
5873  { echo "$as_me:$LINENO: result: yes" >&5
5874echo "${ECHO_T}yes" >&6; }
5875else
5876  { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5877echo "${ECHO_T}no, using $LN_S" >&6; }
5878fi
5879
5880# Extract the first word of "cmp", so it can be a program name with args.
5881set dummy cmp; ac_word=$2
5882{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5883echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5884if test "${ac_cv_path_CMP+set}" = set; then
5885  echo $ECHO_N "(cached) $ECHO_C" >&6
5886else
5887  case $CMP in
5888  [\\/]* | ?:[\\/]*)
5889  ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
5890  ;;
5891  *)
5892  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5893for as_dir in $PATH
5894do
5895  IFS=$as_save_IFS
5896  test -z "$as_dir" && as_dir=.
5897  for ac_exec_ext in '' $ac_executable_extensions; do
5898  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5899    ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
5900    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5901    break 2
5902  fi
5903done
5904done
5905IFS=$as_save_IFS
5906
5907  test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
5908  ;;
5909esac
5910fi
5911CMP=$ac_cv_path_CMP
5912if test -n "$CMP"; then
5913  { echo "$as_me:$LINENO: result: $CMP" >&5
5914echo "${ECHO_T}$CMP" >&6; }
5915else
5916  { echo "$as_me:$LINENO: result: no" >&5
5917echo "${ECHO_T}no" >&6; }
5918fi
5919
5920
5921# Extract the first word of "cp", so it can be a program name with args.
5922set dummy cp; ac_word=$2
5923{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5924echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5925if test "${ac_cv_path_CP+set}" = set; then
5926  echo $ECHO_N "(cached) $ECHO_C" >&6
5927else
5928  case $CP in
5929  [\\/]* | ?:[\\/]*)
5930  ac_cv_path_CP="$CP" # Let the user override the test with a path.
5931  ;;
5932  *)
5933  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5934for as_dir in $PATH
5935do
5936  IFS=$as_save_IFS
5937  test -z "$as_dir" && as_dir=.
5938  for ac_exec_ext in '' $ac_executable_extensions; do
5939  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5940    ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
5941    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5942    break 2
5943  fi
5944done
5945done
5946IFS=$as_save_IFS
5947
5948  test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
5949  ;;
5950esac
5951fi
5952CP=$ac_cv_path_CP
5953if test -n "$CP"; then
5954  { echo "$as_me:$LINENO: result: $CP" >&5
5955echo "${ECHO_T}$CP" >&6; }
5956else
5957  { echo "$as_me:$LINENO: result: no" >&5
5958echo "${ECHO_T}no" >&6; }
5959fi
5960
5961
5962# Extract the first word of "date", so it can be a program name with args.
5963set dummy date; ac_word=$2
5964{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5965echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5966if test "${ac_cv_path_DATE+set}" = set; then
5967  echo $ECHO_N "(cached) $ECHO_C" >&6
5968else
5969  case $DATE in
5970  [\\/]* | ?:[\\/]*)
5971  ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
5972  ;;
5973  *)
5974  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5975for as_dir in $PATH
5976do
5977  IFS=$as_save_IFS
5978  test -z "$as_dir" && as_dir=.
5979  for ac_exec_ext in '' $ac_executable_extensions; do
5980  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5981    ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
5982    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5983    break 2
5984  fi
5985done
5986done
5987IFS=$as_save_IFS
5988
5989  test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
5990  ;;
5991esac
5992fi
5993DATE=$ac_cv_path_DATE
5994if test -n "$DATE"; then
5995  { echo "$as_me:$LINENO: result: $DATE" >&5
5996echo "${ECHO_T}$DATE" >&6; }
5997else
5998  { echo "$as_me:$LINENO: result: no" >&5
5999echo "${ECHO_T}no" >&6; }
6000fi
6001
6002
6003# Extract the first word of "find", so it can be a program name with args.
6004set dummy find; ac_word=$2
6005{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6006echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6007if test "${ac_cv_path_FIND+set}" = set; then
6008  echo $ECHO_N "(cached) $ECHO_C" >&6
6009else
6010  case $FIND in
6011  [\\/]* | ?:[\\/]*)
6012  ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
6013  ;;
6014  *)
6015  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6016for as_dir in $PATH
6017do
6018  IFS=$as_save_IFS
6019  test -z "$as_dir" && as_dir=.
6020  for ac_exec_ext in '' $ac_executable_extensions; do
6021  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6022    ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
6023    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6024    break 2
6025  fi
6026done
6027done
6028IFS=$as_save_IFS
6029
6030  test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
6031  ;;
6032esac
6033fi
6034FIND=$ac_cv_path_FIND
6035if test -n "$FIND"; then
6036  { echo "$as_me:$LINENO: result: $FIND" >&5
6037echo "${ECHO_T}$FIND" >&6; }
6038else
6039  { echo "$as_me:$LINENO: result: no" >&5
6040echo "${ECHO_T}no" >&6; }
6041fi
6042
6043
6044# Extract the first word of "grep", so it can be a program name with args.
6045set dummy grep; ac_word=$2
6046{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6047echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6048if test "${ac_cv_path_GREP+set}" = set; then
6049  echo $ECHO_N "(cached) $ECHO_C" >&6
6050else
6051  case $GREP in
6052  [\\/]* | ?:[\\/]*)
6053  ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
6054  ;;
6055  *)
6056  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6057for as_dir in $PATH
6058do
6059  IFS=$as_save_IFS
6060  test -z "$as_dir" && as_dir=.
6061  for ac_exec_ext in '' $ac_executable_extensions; do
6062  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6063    ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
6064    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6065    break 2
6066  fi
6067done
6068done
6069IFS=$as_save_IFS
6070
6071  test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
6072  ;;
6073esac
6074fi
6075GREP=$ac_cv_path_GREP
6076if test -n "$GREP"; then
6077  { echo "$as_me:$LINENO: result: $GREP" >&5
6078echo "${ECHO_T}$GREP" >&6; }
6079else
6080  { echo "$as_me:$LINENO: result: no" >&5
6081echo "${ECHO_T}no" >&6; }
6082fi
6083
6084
6085# Extract the first word of "mkdir", so it can be a program name with args.
6086set dummy mkdir; ac_word=$2
6087{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6088echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6089if test "${ac_cv_path_MKDIR+set}" = set; then
6090  echo $ECHO_N "(cached) $ECHO_C" >&6
6091else
6092  case $MKDIR in
6093  [\\/]* | ?:[\\/]*)
6094  ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
6095  ;;
6096  *)
6097  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6098for as_dir in $PATH
6099do
6100  IFS=$as_save_IFS
6101  test -z "$as_dir" && as_dir=.
6102  for ac_exec_ext in '' $ac_executable_extensions; do
6103  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6104    ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
6105    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6106    break 2
6107  fi
6108done
6109done
6110IFS=$as_save_IFS
6111
6112  test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6113  ;;
6114esac
6115fi
6116MKDIR=$ac_cv_path_MKDIR
6117if test -n "$MKDIR"; then
6118  { echo "$as_me:$LINENO: result: $MKDIR" >&5
6119echo "${ECHO_T}$MKDIR" >&6; }
6120else
6121  { echo "$as_me:$LINENO: result: no" >&5
6122echo "${ECHO_T}no" >&6; }
6123fi
6124
6125
6126# Extract the first word of "mv", so it can be a program name with args.
6127set dummy mv; ac_word=$2
6128{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6129echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6130if test "${ac_cv_path_MV+set}" = set; then
6131  echo $ECHO_N "(cached) $ECHO_C" >&6
6132else
6133  case $MV in
6134  [\\/]* | ?:[\\/]*)
6135  ac_cv_path_MV="$MV" # Let the user override the test with a path.
6136  ;;
6137  *)
6138  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6139for as_dir in $PATH
6140do
6141  IFS=$as_save_IFS
6142  test -z "$as_dir" && as_dir=.
6143  for ac_exec_ext in '' $ac_executable_extensions; do
6144  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6145    ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
6146    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6147    break 2
6148  fi
6149done
6150done
6151IFS=$as_save_IFS
6152
6153  test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6154  ;;
6155esac
6156fi
6157MV=$ac_cv_path_MV
6158if test -n "$MV"; then
6159  { echo "$as_me:$LINENO: result: $MV" >&5
6160echo "${ECHO_T}$MV" >&6; }
6161else
6162  { echo "$as_me:$LINENO: result: no" >&5
6163echo "${ECHO_T}no" >&6; }
6164fi
6165
6166
6167if test -n "$ac_tool_prefix"; then
6168  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6169set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6170{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6171echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6172if test "${ac_cv_prog_RANLIB+set}" = set; then
6173  echo $ECHO_N "(cached) $ECHO_C" >&6
6174else
6175  if test -n "$RANLIB"; then
6176  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6177else
6178as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6179for as_dir in $PATH
6180do
6181  IFS=$as_save_IFS
6182  test -z "$as_dir" && as_dir=.
6183  for ac_exec_ext in '' $ac_executable_extensions; do
6184  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6185    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6186    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6187    break 2
6188  fi
6189done
6190done
6191IFS=$as_save_IFS
6192
6193fi
6194fi
6195RANLIB=$ac_cv_prog_RANLIB
6196if test -n "$RANLIB"; then
6197  { echo "$as_me:$LINENO: result: $RANLIB" >&5
6198echo "${ECHO_T}$RANLIB" >&6; }
6199else
6200  { echo "$as_me:$LINENO: result: no" >&5
6201echo "${ECHO_T}no" >&6; }
6202fi
6203
6204
6205fi
6206if test -z "$ac_cv_prog_RANLIB"; then
6207  ac_ct_RANLIB=$RANLIB
6208  # Extract the first word of "ranlib", so it can be a program name with args.
6209set dummy ranlib; ac_word=$2
6210{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6211echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6212if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6213  echo $ECHO_N "(cached) $ECHO_C" >&6
6214else
6215  if test -n "$ac_ct_RANLIB"; then
6216  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6217else
6218as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6219for as_dir in $PATH
6220do
6221  IFS=$as_save_IFS
6222  test -z "$as_dir" && as_dir=.
6223  for ac_exec_ext in '' $ac_executable_extensions; do
6224  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6225    ac_cv_prog_ac_ct_RANLIB="ranlib"
6226    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6227    break 2
6228  fi
6229done
6230done
6231IFS=$as_save_IFS
6232
6233fi
6234fi
6235ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6236if test -n "$ac_ct_RANLIB"; then
6237  { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6238echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6239else
6240  { echo "$as_me:$LINENO: result: no" >&5
6241echo "${ECHO_T}no" >&6; }
6242fi
6243
6244  if test "x$ac_ct_RANLIB" = x; then
6245    RANLIB=":"
6246  else
6247    case $cross_compiling:$ac_tool_warned in
6248yes:)
6249{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6250whose name does not start with the host triplet.  If you think this
6251configuration is useful to you, please write to autoconf@gnu.org." >&5
6252echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6253whose name does not start with the host triplet.  If you think this
6254configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6255ac_tool_warned=yes ;;
6256esac
6257    RANLIB=$ac_ct_RANLIB
6258  fi
6259else
6260  RANLIB="$ac_cv_prog_RANLIB"
6261fi
6262
6263if test -n "$ac_tool_prefix"; then
6264  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6265set dummy ${ac_tool_prefix}ar; ac_word=$2
6266{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6267echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6268if test "${ac_cv_prog_AR+set}" = set; then
6269  echo $ECHO_N "(cached) $ECHO_C" >&6
6270else
6271  if test -n "$AR"; then
6272  ac_cv_prog_AR="$AR" # Let the user override the test.
6273else
6274as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6275for as_dir in $PATH
6276do
6277  IFS=$as_save_IFS
6278  test -z "$as_dir" && as_dir=.
6279  for ac_exec_ext in '' $ac_executable_extensions; do
6280  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6281    ac_cv_prog_AR="${ac_tool_prefix}ar"
6282    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6283    break 2
6284  fi
6285done
6286done
6287IFS=$as_save_IFS
6288
6289fi
6290fi
6291AR=$ac_cv_prog_AR
6292if test -n "$AR"; then
6293  { echo "$as_me:$LINENO: result: $AR" >&5
6294echo "${ECHO_T}$AR" >&6; }
6295else
6296  { echo "$as_me:$LINENO: result: no" >&5
6297echo "${ECHO_T}no" >&6; }
6298fi
6299
6300
6301fi
6302if test -z "$ac_cv_prog_AR"; then
6303  ac_ct_AR=$AR
6304  # Extract the first word of "ar", so it can be a program name with args.
6305set dummy ar; ac_word=$2
6306{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6307echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6308if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6309  echo $ECHO_N "(cached) $ECHO_C" >&6
6310else
6311  if test -n "$ac_ct_AR"; then
6312  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6313else
6314as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6315for as_dir in $PATH
6316do
6317  IFS=$as_save_IFS
6318  test -z "$as_dir" && as_dir=.
6319  for ac_exec_ext in '' $ac_executable_extensions; do
6320  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6321    ac_cv_prog_ac_ct_AR="ar"
6322    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6323    break 2
6324  fi
6325done
6326done
6327IFS=$as_save_IFS
6328
6329fi
6330fi
6331ac_ct_AR=$ac_cv_prog_ac_ct_AR
6332if test -n "$ac_ct_AR"; then
6333  { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6334echo "${ECHO_T}$ac_ct_AR" >&6; }
6335else
6336  { echo "$as_me:$LINENO: result: no" >&5
6337echo "${ECHO_T}no" >&6; }
6338fi
6339
6340  if test "x$ac_ct_AR" = x; then
6341    AR="false"
6342  else
6343    case $cross_compiling:$ac_tool_warned in
6344yes:)
6345{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6346whose name does not start with the host triplet.  If you think this
6347configuration is useful to you, please write to autoconf@gnu.org." >&5
6348echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6349whose name does not start with the host triplet.  If you think this
6350configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6351ac_tool_warned=yes ;;
6352esac
6353    AR=$ac_ct_AR
6354  fi
6355else
6356  AR="$ac_cv_prog_AR"
6357fi
6358
6359# Extract the first word of "rm", so it can be a program name with args.
6360set dummy rm; ac_word=$2
6361{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6362echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6363if test "${ac_cv_path_RM+set}" = set; then
6364  echo $ECHO_N "(cached) $ECHO_C" >&6
6365else
6366  case $RM in
6367  [\\/]* | ?:[\\/]*)
6368  ac_cv_path_RM="$RM" # Let the user override the test with a path.
6369  ;;
6370  *)
6371  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6372for as_dir in $PATH
6373do
6374  IFS=$as_save_IFS
6375  test -z "$as_dir" && as_dir=.
6376  for ac_exec_ext in '' $ac_executable_extensions; do
6377  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6378    ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
6379    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6380    break 2
6381  fi
6382done
6383done
6384IFS=$as_save_IFS
6385
6386  test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
6387  ;;
6388esac
6389fi
6390RM=$ac_cv_path_RM
6391if test -n "$RM"; then
6392  { echo "$as_me:$LINENO: result: $RM" >&5
6393echo "${ECHO_T}$RM" >&6; }
6394else
6395  { echo "$as_me:$LINENO: result: no" >&5
6396echo "${ECHO_T}no" >&6; }
6397fi
6398
6399
6400# Extract the first word of "sed", so it can be a program name with args.
6401set dummy sed; ac_word=$2
6402{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6403echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6404if test "${ac_cv_path_SED+set}" = set; then
6405  echo $ECHO_N "(cached) $ECHO_C" >&6
6406else
6407  case $SED in
6408  [\\/]* | ?:[\\/]*)
6409  ac_cv_path_SED="$SED" # Let the user override the test with a path.
6410  ;;
6411  *)
6412  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6413for as_dir in $PATH
6414do
6415  IFS=$as_save_IFS
6416  test -z "$as_dir" && as_dir=.
6417  for ac_exec_ext in '' $ac_executable_extensions; do
6418  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6419    ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
6420    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6421    break 2
6422  fi
6423done
6424done
6425IFS=$as_save_IFS
6426
6427  test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
6428  ;;
6429esac
6430fi
6431SED=$ac_cv_path_SED
6432if test -n "$SED"; then
6433  { echo "$as_me:$LINENO: result: $SED" >&5
6434echo "${ECHO_T}$SED" >&6; }
6435else
6436  { echo "$as_me:$LINENO: result: no" >&5
6437echo "${ECHO_T}no" >&6; }
6438fi
6439
6440
6441# Extract the first word of "tar", so it can be a program name with args.
6442set dummy tar; ac_word=$2
6443{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6444echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6445if test "${ac_cv_path_TAR+set}" = set; then
6446  echo $ECHO_N "(cached) $ECHO_C" >&6
6447else
6448  case $TAR in
6449  [\\/]* | ?:[\\/]*)
6450  ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
6451  ;;
6452  *)
6453  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6454for as_dir in $PATH
6455do
6456  IFS=$as_save_IFS
6457  test -z "$as_dir" && as_dir=.
6458  for ac_exec_ext in '' $ac_executable_extensions; do
6459  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6460    ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
6461    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6462    break 2
6463  fi
6464done
6465done
6466IFS=$as_save_IFS
6467
6468  test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
6469  ;;
6470esac
6471fi
6472TAR=$ac_cv_path_TAR
6473if test -n "$TAR"; then
6474  { echo "$as_me:$LINENO: result: $TAR" >&5
6475echo "${ECHO_T}$TAR" >&6; }
6476else
6477  { echo "$as_me:$LINENO: result: no" >&5
6478echo "${ECHO_T}no" >&6; }
6479fi
6480
6481
6482# Extract the first word of "pwd", so it can be a program name with args.
6483set dummy pwd; ac_word=$2
6484{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6485echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6486if test "${ac_cv_path_BINPWD+set}" = set; then
6487  echo $ECHO_N "(cached) $ECHO_C" >&6
6488else
6489  case $BINPWD in
6490  [\\/]* | ?:[\\/]*)
6491  ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
6492  ;;
6493  *)
6494  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6495for as_dir in $PATH
6496do
6497  IFS=$as_save_IFS
6498  test -z "$as_dir" && as_dir=.
6499  for ac_exec_ext in '' $ac_executable_extensions; do
6500  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6501    ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
6502    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6503    break 2
6504  fi
6505done
6506done
6507IFS=$as_save_IFS
6508
6509  test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
6510  ;;
6511esac
6512fi
6513BINPWD=$ac_cv_path_BINPWD
6514if test -n "$BINPWD"; then
6515  { echo "$as_me:$LINENO: result: $BINPWD" >&5
6516echo "${ECHO_T}$BINPWD" >&6; }
6517else
6518  { echo "$as_me:$LINENO: result: no" >&5
6519echo "${ECHO_T}no" >&6; }
6520fi
6521
6522
6523
6524# Extract the first word of "Graphviz", so it can be a program name with args.
6525set dummy Graphviz; ac_word=$2
6526{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6527echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6528if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
6529  echo $ECHO_N "(cached) $ECHO_C" >&6
6530else
6531  case $GRAPHVIZ in
6532  [\\/]* | ?:[\\/]*)
6533  ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
6534  ;;
6535  *)
6536  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6537for as_dir in $PATH
6538do
6539  IFS=$as_save_IFS
6540  test -z "$as_dir" && as_dir=.
6541  for ac_exec_ext in '' $ac_executable_extensions; do
6542  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6543    ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
6544    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6545    break 2
6546  fi
6547done
6548done
6549IFS=$as_save_IFS
6550
6551  test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
6552  ;;
6553esac
6554fi
6555GRAPHVIZ=$ac_cv_path_GRAPHVIZ
6556if test -n "$GRAPHVIZ"; then
6557  { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
6558echo "${ECHO_T}$GRAPHVIZ" >&6; }
6559else
6560  { echo "$as_me:$LINENO: result: no" >&5
6561echo "${ECHO_T}no" >&6; }
6562fi
6563
6564
6565if test "$GRAPHVIZ" != "echo Graphviz" ; then
6566
6567cat >>confdefs.h <<\_ACEOF
6568#define HAVE_GRAPHVIZ 1
6569_ACEOF
6570
6571    if test "$llvm_cv_os_type" = "MingW" ; then
6572    GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6573  fi
6574
6575cat >>confdefs.h <<_ACEOF
6576#define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
6577_ACEOF
6578
6579fi
6580# Extract the first word of "dot", so it can be a program name with args.
6581set dummy dot; ac_word=$2
6582{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6583echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6584if test "${ac_cv_path_DOT+set}" = set; then
6585  echo $ECHO_N "(cached) $ECHO_C" >&6
6586else
6587  case $DOT in
6588  [\\/]* | ?:[\\/]*)
6589  ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
6590  ;;
6591  *)
6592  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6593for as_dir in $PATH
6594do
6595  IFS=$as_save_IFS
6596  test -z "$as_dir" && as_dir=.
6597  for ac_exec_ext in '' $ac_executable_extensions; do
6598  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6599    ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
6600    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6601    break 2
6602  fi
6603done
6604done
6605IFS=$as_save_IFS
6606
6607  test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
6608  ;;
6609esac
6610fi
6611DOT=$ac_cv_path_DOT
6612if test -n "$DOT"; then
6613  { echo "$as_me:$LINENO: result: $DOT" >&5
6614echo "${ECHO_T}$DOT" >&6; }
6615else
6616  { echo "$as_me:$LINENO: result: no" >&5
6617echo "${ECHO_T}no" >&6; }
6618fi
6619
6620
6621if test "$DOT" != "echo dot" ; then
6622
6623cat >>confdefs.h <<\_ACEOF
6624#define HAVE_DOT 1
6625_ACEOF
6626
6627    if test "$llvm_cv_os_type" = "MingW" ; then
6628    DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6629  fi
6630
6631cat >>confdefs.h <<_ACEOF
6632#define LLVM_PATH_DOT "$DOT${EXEEXT}"
6633_ACEOF
6634
6635fi
6636# Extract the first word of "fdp", so it can be a program name with args.
6637set dummy fdp; ac_word=$2
6638{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6639echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6640if test "${ac_cv_path_FDP+set}" = set; then
6641  echo $ECHO_N "(cached) $ECHO_C" >&6
6642else
6643  case $FDP in
6644  [\\/]* | ?:[\\/]*)
6645  ac_cv_path_FDP="$FDP" # Let the user override the test with a path.
6646  ;;
6647  *)
6648  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6649for as_dir in $PATH
6650do
6651  IFS=$as_save_IFS
6652  test -z "$as_dir" && as_dir=.
6653  for ac_exec_ext in '' $ac_executable_extensions; do
6654  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6655    ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext"
6656    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6657    break 2
6658  fi
6659done
6660done
6661IFS=$as_save_IFS
6662
6663  test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp"
6664  ;;
6665esac
6666fi
6667FDP=$ac_cv_path_FDP
6668if test -n "$FDP"; then
6669  { echo "$as_me:$LINENO: result: $FDP" >&5
6670echo "${ECHO_T}$FDP" >&6; }
6671else
6672  { echo "$as_me:$LINENO: result: no" >&5
6673echo "${ECHO_T}no" >&6; }
6674fi
6675
6676
6677if test "$FDP" != "echo fdp" ; then
6678
6679cat >>confdefs.h <<\_ACEOF
6680#define HAVE_FDP 1
6681_ACEOF
6682
6683    if test "$llvm_cv_os_type" = "MingW" ; then
6684    FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6685  fi
6686
6687cat >>confdefs.h <<_ACEOF
6688#define LLVM_PATH_FDP "$FDP${EXEEXT}"
6689_ACEOF
6690
6691fi
6692# Extract the first word of "neato", so it can be a program name with args.
6693set dummy neato; ac_word=$2
6694{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6695echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6696if test "${ac_cv_path_NEATO+set}" = set; then
6697  echo $ECHO_N "(cached) $ECHO_C" >&6
6698else
6699  case $NEATO in
6700  [\\/]* | ?:[\\/]*)
6701  ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path.
6702  ;;
6703  *)
6704  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6705for as_dir in $PATH
6706do
6707  IFS=$as_save_IFS
6708  test -z "$as_dir" && as_dir=.
6709  for ac_exec_ext in '' $ac_executable_extensions; do
6710  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6711    ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext"
6712    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6713    break 2
6714  fi
6715done
6716done
6717IFS=$as_save_IFS
6718
6719  test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato"
6720  ;;
6721esac
6722fi
6723NEATO=$ac_cv_path_NEATO
6724if test -n "$NEATO"; then
6725  { echo "$as_me:$LINENO: result: $NEATO" >&5
6726echo "${ECHO_T}$NEATO" >&6; }
6727else
6728  { echo "$as_me:$LINENO: result: no" >&5
6729echo "${ECHO_T}no" >&6; }
6730fi
6731
6732
6733if test "$NEATO" != "echo neato" ; then
6734
6735cat >>confdefs.h <<\_ACEOF
6736#define HAVE_NEATO 1
6737_ACEOF
6738
6739    if test "$llvm_cv_os_type" = "MingW" ; then
6740    NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6741  fi
6742
6743cat >>confdefs.h <<_ACEOF
6744#define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
6745_ACEOF
6746
6747fi
6748# Extract the first word of "twopi", so it can be a program name with args.
6749set dummy twopi; ac_word=$2
6750{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6751echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6752if test "${ac_cv_path_TWOPI+set}" = set; then
6753  echo $ECHO_N "(cached) $ECHO_C" >&6
6754else
6755  case $TWOPI in
6756  [\\/]* | ?:[\\/]*)
6757  ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path.
6758  ;;
6759  *)
6760  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6761for as_dir in $PATH
6762do
6763  IFS=$as_save_IFS
6764  test -z "$as_dir" && as_dir=.
6765  for ac_exec_ext in '' $ac_executable_extensions; do
6766  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6767    ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext"
6768    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6769    break 2
6770  fi
6771done
6772done
6773IFS=$as_save_IFS
6774
6775  test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi"
6776  ;;
6777esac
6778fi
6779TWOPI=$ac_cv_path_TWOPI
6780if test -n "$TWOPI"; then
6781  { echo "$as_me:$LINENO: result: $TWOPI" >&5
6782echo "${ECHO_T}$TWOPI" >&6; }
6783else
6784  { echo "$as_me:$LINENO: result: no" >&5
6785echo "${ECHO_T}no" >&6; }
6786fi
6787
6788
6789if test "$TWOPI" != "echo twopi" ; then
6790
6791cat >>confdefs.h <<\_ACEOF
6792#define HAVE_TWOPI 1
6793_ACEOF
6794
6795    if test "$llvm_cv_os_type" = "MingW" ; then
6796    TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6797  fi
6798
6799cat >>confdefs.h <<_ACEOF
6800#define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
6801_ACEOF
6802
6803fi
6804# Extract the first word of "circo", so it can be a program name with args.
6805set dummy circo; ac_word=$2
6806{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6807echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6808if test "${ac_cv_path_CIRCO+set}" = set; then
6809  echo $ECHO_N "(cached) $ECHO_C" >&6
6810else
6811  case $CIRCO in
6812  [\\/]* | ?:[\\/]*)
6813  ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path.
6814  ;;
6815  *)
6816  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6817for as_dir in $PATH
6818do
6819  IFS=$as_save_IFS
6820  test -z "$as_dir" && as_dir=.
6821  for ac_exec_ext in '' $ac_executable_extensions; do
6822  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6823    ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext"
6824    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6825    break 2
6826  fi
6827done
6828done
6829IFS=$as_save_IFS
6830
6831  test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo"
6832  ;;
6833esac
6834fi
6835CIRCO=$ac_cv_path_CIRCO
6836if test -n "$CIRCO"; then
6837  { echo "$as_me:$LINENO: result: $CIRCO" >&5
6838echo "${ECHO_T}$CIRCO" >&6; }
6839else
6840  { echo "$as_me:$LINENO: result: no" >&5
6841echo "${ECHO_T}no" >&6; }
6842fi
6843
6844
6845if test "$CIRCO" != "echo circo" ; then
6846
6847cat >>confdefs.h <<\_ACEOF
6848#define HAVE_CIRCO 1
6849_ACEOF
6850
6851    if test "$llvm_cv_os_type" = "MingW" ; then
6852    CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6853  fi
6854
6855cat >>confdefs.h <<_ACEOF
6856#define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
6857_ACEOF
6858
6859fi
6860for ac_prog in gv gsview32
6861do
6862  # Extract the first word of "$ac_prog", so it can be a program name with args.
6863set dummy $ac_prog; ac_word=$2
6864{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6865echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6866if test "${ac_cv_path_GV+set}" = set; then
6867  echo $ECHO_N "(cached) $ECHO_C" >&6
6868else
6869  case $GV in
6870  [\\/]* | ?:[\\/]*)
6871  ac_cv_path_GV="$GV" # Let the user override the test with a path.
6872  ;;
6873  *)
6874  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6875for as_dir in $PATH
6876do
6877  IFS=$as_save_IFS
6878  test -z "$as_dir" && as_dir=.
6879  for ac_exec_ext in '' $ac_executable_extensions; do
6880  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6881    ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
6882    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6883    break 2
6884  fi
6885done
6886done
6887IFS=$as_save_IFS
6888
6889  ;;
6890esac
6891fi
6892GV=$ac_cv_path_GV
6893if test -n "$GV"; then
6894  { echo "$as_me:$LINENO: result: $GV" >&5
6895echo "${ECHO_T}$GV" >&6; }
6896else
6897  { echo "$as_me:$LINENO: result: no" >&5
6898echo "${ECHO_T}no" >&6; }
6899fi
6900
6901
6902  test -n "$GV" && break
6903done
6904test -n "$GV" || GV="echo gv"
6905
6906if test "$GV" != "echo gv" ; then
6907
6908cat >>confdefs.h <<\_ACEOF
6909#define HAVE_GV 1
6910_ACEOF
6911
6912    if test "$llvm_cv_os_type" = "MingW" ; then
6913    GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6914  fi
6915
6916cat >>confdefs.h <<_ACEOF
6917#define LLVM_PATH_GV "$GV${EXEEXT}"
6918_ACEOF
6919
6920fi
6921# Extract the first word of "dotty", so it can be a program name with args.
6922set dummy dotty; ac_word=$2
6923{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6924echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6925if test "${ac_cv_path_DOTTY+set}" = set; then
6926  echo $ECHO_N "(cached) $ECHO_C" >&6
6927else
6928  case $DOTTY in
6929  [\\/]* | ?:[\\/]*)
6930  ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
6931  ;;
6932  *)
6933  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6934for as_dir in $PATH
6935do
6936  IFS=$as_save_IFS
6937  test -z "$as_dir" && as_dir=.
6938  for ac_exec_ext in '' $ac_executable_extensions; do
6939  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6940    ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
6941    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6942    break 2
6943  fi
6944done
6945done
6946IFS=$as_save_IFS
6947
6948  test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
6949  ;;
6950esac
6951fi
6952DOTTY=$ac_cv_path_DOTTY
6953if test -n "$DOTTY"; then
6954  { echo "$as_me:$LINENO: result: $DOTTY" >&5
6955echo "${ECHO_T}$DOTTY" >&6; }
6956else
6957  { echo "$as_me:$LINENO: result: no" >&5
6958echo "${ECHO_T}no" >&6; }
6959fi
6960
6961
6962if test "$DOTTY" != "echo dotty" ; then
6963
6964cat >>confdefs.h <<\_ACEOF
6965#define HAVE_DOTTY 1
6966_ACEOF
6967
6968    if test "$llvm_cv_os_type" = "MingW" ; then
6969    DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6970  fi
6971
6972cat >>confdefs.h <<_ACEOF
6973#define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
6974_ACEOF
6975
6976fi
6977# Extract the first word of "xdot.py", so it can be a program name with args.
6978set dummy xdot.py; ac_word=$2
6979{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6980echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6981if test "${ac_cv_path_XDOT_PY+set}" = set; then
6982  echo $ECHO_N "(cached) $ECHO_C" >&6
6983else
6984  case $XDOT_PY in
6985  [\\/]* | ?:[\\/]*)
6986  ac_cv_path_XDOT_PY="$XDOT_PY" # Let the user override the test with a path.
6987  ;;
6988  *)
6989  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6990for as_dir in $PATH
6991do
6992  IFS=$as_save_IFS
6993  test -z "$as_dir" && as_dir=.
6994  for ac_exec_ext in '' $ac_executable_extensions; do
6995  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6996    ac_cv_path_XDOT_PY="$as_dir/$ac_word$ac_exec_ext"
6997    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6998    break 2
6999  fi
7000done
7001done
7002IFS=$as_save_IFS
7003
7004  test -z "$ac_cv_path_XDOT_PY" && ac_cv_path_XDOT_PY="echo xdot.py"
7005  ;;
7006esac
7007fi
7008XDOT_PY=$ac_cv_path_XDOT_PY
7009if test -n "$XDOT_PY"; then
7010  { echo "$as_me:$LINENO: result: $XDOT_PY" >&5
7011echo "${ECHO_T}$XDOT_PY" >&6; }
7012else
7013  { echo "$as_me:$LINENO: result: no" >&5
7014echo "${ECHO_T}no" >&6; }
7015fi
7016
7017
7018if test "$XDOT_PY" != "echo xdot.py" ; then
7019
7020cat >>confdefs.h <<\_ACEOF
7021#define HAVE_XDOT_PY 1
7022_ACEOF
7023
7024    if test "$llvm_cv_os_type" = "MingW" ; then
7025    XDOT_PY=`echo $XDOT_PY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7026  fi
7027
7028cat >>confdefs.h <<_ACEOF
7029#define LLVM_PATH_XDOT_PY "$XDOT_PY${EXEEXT}"
7030_ACEOF
7031
7032fi
7033
7034# Find a good install program.  We prefer a C program (faster),
7035# so one script is as good as another.  But avoid the broken or
7036# incompatible versions:
7037# SysV /etc/install, /usr/sbin/install
7038# SunOS /usr/etc/install
7039# IRIX /sbin/install
7040# AIX /bin/install
7041# AmigaOS /C/install, which installs bootblocks on floppy discs
7042# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7043# AFS /usr/afsws/bin/install, which mishandles nonexistent args
7044# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7045# OS/2's system install, which has a completely different semantic
7046# ./install, which can be erroneously created by make from ./install.sh.
7047{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7048echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
7049if test -z "$INSTALL"; then
7050if test "${ac_cv_path_install+set}" = set; then
7051  echo $ECHO_N "(cached) $ECHO_C" >&6
7052else
7053  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7054for as_dir in $PATH
7055do
7056  IFS=$as_save_IFS
7057  test -z "$as_dir" && as_dir=.
7058  # Account for people who put trailing slashes in PATH elements.
7059case $as_dir/ in
7060  ./ | .// | /cC/* | \
7061  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7062  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
7063  /usr/ucb/* ) ;;
7064  *)
7065    # OSF1 and SCO ODT 3.0 have their own names for install.
7066    # Don't use installbsd from OSF since it installs stuff as root
7067    # by default.
7068    for ac_prog in ginstall scoinst install; do
7069      for ac_exec_ext in '' $ac_executable_extensions; do
7070	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
7071	  if test $ac_prog = install &&
7072	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7073	    # AIX install.  It has an incompatible calling convention.
7074	    :
7075	  elif test $ac_prog = install &&
7076	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7077	    # program-specific install script used by HP pwplus--don't use.
7078	    :
7079	  else
7080	    ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7081	    break 3
7082	  fi
7083	fi
7084      done
7085    done
7086    ;;
7087esac
7088done
7089IFS=$as_save_IFS
7090
7091
7092fi
7093  if test "${ac_cv_path_install+set}" = set; then
7094    INSTALL=$ac_cv_path_install
7095  else
7096    # As a last resort, use the slow shell script.  Don't cache a
7097    # value for INSTALL within a source directory, because that will
7098    # break other packages using the cache if that directory is
7099    # removed, or if the value is a relative name.
7100    INSTALL=$ac_install_sh
7101  fi
7102fi
7103{ echo "$as_me:$LINENO: result: $INSTALL" >&5
7104echo "${ECHO_T}$INSTALL" >&6; }
7105
7106# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7107# It thinks the first close brace ends the variable substitution.
7108test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7109
7110test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7111
7112test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7113
7114case "$INSTALL" in
7115 [\\/$]* | ?:[\\/]* ) ;;
7116 *)  INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
7117esac
7118
7119# Extract the first word of "bzip2", so it can be a program name with args.
7120set dummy bzip2; ac_word=$2
7121{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7122echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7123if test "${ac_cv_path_BZIP2+set}" = set; then
7124  echo $ECHO_N "(cached) $ECHO_C" >&6
7125else
7126  case $BZIP2 in
7127  [\\/]* | ?:[\\/]*)
7128  ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7129  ;;
7130  *)
7131  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7132for as_dir in $PATH
7133do
7134  IFS=$as_save_IFS
7135  test -z "$as_dir" && as_dir=.
7136  for ac_exec_ext in '' $ac_executable_extensions; do
7137  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7138    ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
7139    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7140    break 2
7141  fi
7142done
7143done
7144IFS=$as_save_IFS
7145
7146  ;;
7147esac
7148fi
7149BZIP2=$ac_cv_path_BZIP2
7150if test -n "$BZIP2"; then
7151  { echo "$as_me:$LINENO: result: $BZIP2" >&5
7152echo "${ECHO_T}$BZIP2" >&6; }
7153else
7154  { echo "$as_me:$LINENO: result: no" >&5
7155echo "${ECHO_T}no" >&6; }
7156fi
7157
7158
7159# Extract the first word of "cat", so it can be a program name with args.
7160set dummy cat; ac_word=$2
7161{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7162echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7163if test "${ac_cv_path_CAT+set}" = set; then
7164  echo $ECHO_N "(cached) $ECHO_C" >&6
7165else
7166  case $CAT in
7167  [\\/]* | ?:[\\/]*)
7168  ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
7169  ;;
7170  *)
7171  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7172for as_dir in $PATH
7173do
7174  IFS=$as_save_IFS
7175  test -z "$as_dir" && as_dir=.
7176  for ac_exec_ext in '' $ac_executable_extensions; do
7177  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7178    ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
7179    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7180    break 2
7181  fi
7182done
7183done
7184IFS=$as_save_IFS
7185
7186  ;;
7187esac
7188fi
7189CAT=$ac_cv_path_CAT
7190if test -n "$CAT"; then
7191  { echo "$as_me:$LINENO: result: $CAT" >&5
7192echo "${ECHO_T}$CAT" >&6; }
7193else
7194  { echo "$as_me:$LINENO: result: no" >&5
7195echo "${ECHO_T}no" >&6; }
7196fi
7197
7198
7199# Extract the first word of "doxygen", so it can be a program name with args.
7200set dummy doxygen; ac_word=$2
7201{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7202echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7203if test "${ac_cv_path_DOXYGEN+set}" = set; then
7204  echo $ECHO_N "(cached) $ECHO_C" >&6
7205else
7206  case $DOXYGEN in
7207  [\\/]* | ?:[\\/]*)
7208  ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7209  ;;
7210  *)
7211  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7212for as_dir in $PATH
7213do
7214  IFS=$as_save_IFS
7215  test -z "$as_dir" && as_dir=.
7216  for ac_exec_ext in '' $ac_executable_extensions; do
7217  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7218    ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
7219    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7220    break 2
7221  fi
7222done
7223done
7224IFS=$as_save_IFS
7225
7226  ;;
7227esac
7228fi
7229DOXYGEN=$ac_cv_path_DOXYGEN
7230if test -n "$DOXYGEN"; then
7231  { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7232echo "${ECHO_T}$DOXYGEN" >&6; }
7233else
7234  { echo "$as_me:$LINENO: result: no" >&5
7235echo "${ECHO_T}no" >&6; }
7236fi
7237
7238
7239# Extract the first word of "groff", so it can be a program name with args.
7240set dummy groff; ac_word=$2
7241{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7242echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7243if test "${ac_cv_path_GROFF+set}" = set; then
7244  echo $ECHO_N "(cached) $ECHO_C" >&6
7245else
7246  case $GROFF in
7247  [\\/]* | ?:[\\/]*)
7248  ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7249  ;;
7250  *)
7251  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7252for as_dir in $PATH
7253do
7254  IFS=$as_save_IFS
7255  test -z "$as_dir" && as_dir=.
7256  for ac_exec_ext in '' $ac_executable_extensions; do
7257  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7258    ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7259    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7260    break 2
7261  fi
7262done
7263done
7264IFS=$as_save_IFS
7265
7266  ;;
7267esac
7268fi
7269GROFF=$ac_cv_path_GROFF
7270if test -n "$GROFF"; then
7271  { echo "$as_me:$LINENO: result: $GROFF" >&5
7272echo "${ECHO_T}$GROFF" >&6; }
7273else
7274  { echo "$as_me:$LINENO: result: no" >&5
7275echo "${ECHO_T}no" >&6; }
7276fi
7277
7278
7279# Extract the first word of "gzip", so it can be a program name with args.
7280set dummy gzip; ac_word=$2
7281{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7282echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7283if test "${ac_cv_path_GZIPBIN+set}" = set; then
7284  echo $ECHO_N "(cached) $ECHO_C" >&6
7285else
7286  case $GZIPBIN in
7287  [\\/]* | ?:[\\/]*)
7288  ac_cv_path_GZIPBIN="$GZIPBIN" # Let the user override the test with a path.
7289  ;;
7290  *)
7291  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7292for as_dir in $PATH
7293do
7294  IFS=$as_save_IFS
7295  test -z "$as_dir" && as_dir=.
7296  for ac_exec_ext in '' $ac_executable_extensions; do
7297  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7298    ac_cv_path_GZIPBIN="$as_dir/$ac_word$ac_exec_ext"
7299    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7300    break 2
7301  fi
7302done
7303done
7304IFS=$as_save_IFS
7305
7306  ;;
7307esac
7308fi
7309GZIPBIN=$ac_cv_path_GZIPBIN
7310if test -n "$GZIPBIN"; then
7311  { echo "$as_me:$LINENO: result: $GZIPBIN" >&5
7312echo "${ECHO_T}$GZIPBIN" >&6; }
7313else
7314  { echo "$as_me:$LINENO: result: no" >&5
7315echo "${ECHO_T}no" >&6; }
7316fi
7317
7318
7319# Extract the first word of "pdfroff", so it can be a program name with args.
7320set dummy pdfroff; ac_word=$2
7321{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7322echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7323if test "${ac_cv_path_PDFROFF+set}" = set; then
7324  echo $ECHO_N "(cached) $ECHO_C" >&6
7325else
7326  case $PDFROFF in
7327  [\\/]* | ?:[\\/]*)
7328  ac_cv_path_PDFROFF="$PDFROFF" # Let the user override the test with a path.
7329  ;;
7330  *)
7331  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7332for as_dir in $PATH
7333do
7334  IFS=$as_save_IFS
7335  test -z "$as_dir" && as_dir=.
7336  for ac_exec_ext in '' $ac_executable_extensions; do
7337  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7338    ac_cv_path_PDFROFF="$as_dir/$ac_word$ac_exec_ext"
7339    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7340    break 2
7341  fi
7342done
7343done
7344IFS=$as_save_IFS
7345
7346  ;;
7347esac
7348fi
7349PDFROFF=$ac_cv_path_PDFROFF
7350if test -n "$PDFROFF"; then
7351  { echo "$as_me:$LINENO: result: $PDFROFF" >&5
7352echo "${ECHO_T}$PDFROFF" >&6; }
7353else
7354  { echo "$as_me:$LINENO: result: no" >&5
7355echo "${ECHO_T}no" >&6; }
7356fi
7357
7358
7359# Extract the first word of "zip", so it can be a program name with args.
7360set dummy zip; ac_word=$2
7361{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7362echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7363if test "${ac_cv_path_ZIP+set}" = set; then
7364  echo $ECHO_N "(cached) $ECHO_C" >&6
7365else
7366  case $ZIP in
7367  [\\/]* | ?:[\\/]*)
7368  ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
7369  ;;
7370  *)
7371  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7372for as_dir in $PATH
7373do
7374  IFS=$as_save_IFS
7375  test -z "$as_dir" && as_dir=.
7376  for ac_exec_ext in '' $ac_executable_extensions; do
7377  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7378    ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
7379    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7380    break 2
7381  fi
7382done
7383done
7384IFS=$as_save_IFS
7385
7386  ;;
7387esac
7388fi
7389ZIP=$ac_cv_path_ZIP
7390if test -n "$ZIP"; then
7391  { echo "$as_me:$LINENO: result: $ZIP" >&5
7392echo "${ECHO_T}$ZIP" >&6; }
7393else
7394  { echo "$as_me:$LINENO: result: no" >&5
7395echo "${ECHO_T}no" >&6; }
7396fi
7397
7398
7399for ac_prog in ocamlc
7400do
7401  # Extract the first word of "$ac_prog", so it can be a program name with args.
7402set dummy $ac_prog; ac_word=$2
7403{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7404echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7405if test "${ac_cv_path_OCAMLC+set}" = set; then
7406  echo $ECHO_N "(cached) $ECHO_C" >&6
7407else
7408  case $OCAMLC in
7409  [\\/]* | ?:[\\/]*)
7410  ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
7411  ;;
7412  *)
7413  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7414for as_dir in $PATH
7415do
7416  IFS=$as_save_IFS
7417  test -z "$as_dir" && as_dir=.
7418  for ac_exec_ext in '' $ac_executable_extensions; do
7419  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7420    ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
7421    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7422    break 2
7423  fi
7424done
7425done
7426IFS=$as_save_IFS
7427
7428  ;;
7429esac
7430fi
7431OCAMLC=$ac_cv_path_OCAMLC
7432if test -n "$OCAMLC"; then
7433  { echo "$as_me:$LINENO: result: $OCAMLC" >&5
7434echo "${ECHO_T}$OCAMLC" >&6; }
7435else
7436  { echo "$as_me:$LINENO: result: no" >&5
7437echo "${ECHO_T}no" >&6; }
7438fi
7439
7440
7441  test -n "$OCAMLC" && break
7442done
7443
7444for ac_prog in ocamlopt
7445do
7446  # Extract the first word of "$ac_prog", so it can be a program name with args.
7447set dummy $ac_prog; ac_word=$2
7448{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7449echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7450if test "${ac_cv_path_OCAMLOPT+set}" = set; then
7451  echo $ECHO_N "(cached) $ECHO_C" >&6
7452else
7453  case $OCAMLOPT in
7454  [\\/]* | ?:[\\/]*)
7455  ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
7456  ;;
7457  *)
7458  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7459for as_dir in $PATH
7460do
7461  IFS=$as_save_IFS
7462  test -z "$as_dir" && as_dir=.
7463  for ac_exec_ext in '' $ac_executable_extensions; do
7464  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7465    ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
7466    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7467    break 2
7468  fi
7469done
7470done
7471IFS=$as_save_IFS
7472
7473  ;;
7474esac
7475fi
7476OCAMLOPT=$ac_cv_path_OCAMLOPT
7477if test -n "$OCAMLOPT"; then
7478  { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
7479echo "${ECHO_T}$OCAMLOPT" >&6; }
7480else
7481  { echo "$as_me:$LINENO: result: no" >&5
7482echo "${ECHO_T}no" >&6; }
7483fi
7484
7485
7486  test -n "$OCAMLOPT" && break
7487done
7488
7489for ac_prog in ocamldep
7490do
7491  # Extract the first word of "$ac_prog", so it can be a program name with args.
7492set dummy $ac_prog; ac_word=$2
7493{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7494echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7495if test "${ac_cv_path_OCAMLDEP+set}" = set; then
7496  echo $ECHO_N "(cached) $ECHO_C" >&6
7497else
7498  case $OCAMLDEP in
7499  [\\/]* | ?:[\\/]*)
7500  ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
7501  ;;
7502  *)
7503  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7504for as_dir in $PATH
7505do
7506  IFS=$as_save_IFS
7507  test -z "$as_dir" && as_dir=.
7508  for ac_exec_ext in '' $ac_executable_extensions; do
7509  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7510    ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
7511    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7512    break 2
7513  fi
7514done
7515done
7516IFS=$as_save_IFS
7517
7518  ;;
7519esac
7520fi
7521OCAMLDEP=$ac_cv_path_OCAMLDEP
7522if test -n "$OCAMLDEP"; then
7523  { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
7524echo "${ECHO_T}$OCAMLDEP" >&6; }
7525else
7526  { echo "$as_me:$LINENO: result: no" >&5
7527echo "${ECHO_T}no" >&6; }
7528fi
7529
7530
7531  test -n "$OCAMLDEP" && break
7532done
7533
7534for ac_prog in ocamldoc
7535do
7536  # Extract the first word of "$ac_prog", so it can be a program name with args.
7537set dummy $ac_prog; ac_word=$2
7538{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7539echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7540if test "${ac_cv_path_OCAMLDOC+set}" = set; then
7541  echo $ECHO_N "(cached) $ECHO_C" >&6
7542else
7543  case $OCAMLDOC in
7544  [\\/]* | ?:[\\/]*)
7545  ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
7546  ;;
7547  *)
7548  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7549for as_dir in $PATH
7550do
7551  IFS=$as_save_IFS
7552  test -z "$as_dir" && as_dir=.
7553  for ac_exec_ext in '' $ac_executable_extensions; do
7554  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7555    ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
7556    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7557    break 2
7558  fi
7559done
7560done
7561IFS=$as_save_IFS
7562
7563  ;;
7564esac
7565fi
7566OCAMLDOC=$ac_cv_path_OCAMLDOC
7567if test -n "$OCAMLDOC"; then
7568  { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
7569echo "${ECHO_T}$OCAMLDOC" >&6; }
7570else
7571  { echo "$as_me:$LINENO: result: no" >&5
7572echo "${ECHO_T}no" >&6; }
7573fi
7574
7575
7576  test -n "$OCAMLDOC" && break
7577done
7578
7579for ac_prog in gas as
7580do
7581  # Extract the first word of "$ac_prog", so it can be a program name with args.
7582set dummy $ac_prog; ac_word=$2
7583{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7584echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7585if test "${ac_cv_path_GAS+set}" = set; then
7586  echo $ECHO_N "(cached) $ECHO_C" >&6
7587else
7588  case $GAS in
7589  [\\/]* | ?:[\\/]*)
7590  ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
7591  ;;
7592  *)
7593  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7594for as_dir in $PATH
7595do
7596  IFS=$as_save_IFS
7597  test -z "$as_dir" && as_dir=.
7598  for ac_exec_ext in '' $ac_executable_extensions; do
7599  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7600    ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
7601    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7602    break 2
7603  fi
7604done
7605done
7606IFS=$as_save_IFS
7607
7608  ;;
7609esac
7610fi
7611GAS=$ac_cv_path_GAS
7612if test -n "$GAS"; then
7613  { echo "$as_me:$LINENO: result: $GAS" >&5
7614echo "${ECHO_T}$GAS" >&6; }
7615else
7616  { echo "$as_me:$LINENO: result: no" >&5
7617echo "${ECHO_T}no" >&6; }
7618fi
7619
7620
7621  test -n "$GAS" && break
7622done
7623
7624
7625{ echo "$as_me:$LINENO: checking for linker version" >&5
7626echo $ECHO_N "checking for linker version... $ECHO_C" >&6; }
7627if test "${llvm_cv_link_version+set}" = set; then
7628  echo $ECHO_N "(cached) $ECHO_C" >&6
7629else
7630
7631   version_string="$(ld -v 2>&1 | head -1)"
7632
7633   # Check for ld64.
7634   if (echo "$version_string" | grep -q "ld64"); then
7635     llvm_cv_link_version=$(echo "$version_string" | sed -e "s#.*ld64-\([^ ]*\)\( (.*)\)\{0,1\}#\1#")
7636   else
7637     llvm_cv_link_version=$(echo "$version_string" | sed -e "s#[^0-9]*\([0-9.]*\).*#\1#")
7638   fi
7639
7640fi
7641{ echo "$as_me:$LINENO: result: $llvm_cv_link_version" >&5
7642echo "${ECHO_T}$llvm_cv_link_version" >&6; }
7643
7644cat >>confdefs.h <<_ACEOF
7645#define HOST_LINK_VERSION "$llvm_cv_link_version"
7646_ACEOF
7647
7648
7649
7650{ echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
7651echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
7652if test "${llvm_cv_link_use_r+set}" = set; then
7653  echo $ECHO_N "(cached) $ECHO_C" >&6
7654else
7655   ac_ext=c
7656ac_cpp='$CPP $CPPFLAGS'
7657ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7658ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7659ac_compiler_gnu=$ac_cv_c_compiler_gnu
7660
7661  oldcflags="$CFLAGS"
7662  CFLAGS="$CFLAGS -Wl,-R."
7663  cat >conftest.$ac_ext <<_ACEOF
7664/* confdefs.h.  */
7665_ACEOF
7666cat confdefs.h >>conftest.$ac_ext
7667cat >>conftest.$ac_ext <<_ACEOF
7668/* end confdefs.h.  */
7669
7670int
7671main ()
7672{
7673
7674  ;
7675  return 0;
7676}
7677_ACEOF
7678rm -f conftest.$ac_objext conftest$ac_exeext
7679if { (ac_try="$ac_link"
7680case "(($ac_try" in
7681  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7682  *) ac_try_echo=$ac_try;;
7683esac
7684eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7685  (eval "$ac_link") 2>conftest.er1
7686  ac_status=$?
7687  grep -v '^ *+' conftest.er1 >conftest.err
7688  rm -f conftest.er1
7689  cat conftest.err >&5
7690  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7691  (exit $ac_status); } &&
7692	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7693  { (case "(($ac_try" in
7694  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7695  *) ac_try_echo=$ac_try;;
7696esac
7697eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7698  (eval "$ac_try") 2>&5
7699  ac_status=$?
7700  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7701  (exit $ac_status); }; } &&
7702	 { ac_try='test -s conftest$ac_exeext'
7703  { (case "(($ac_try" in
7704  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7705  *) ac_try_echo=$ac_try;;
7706esac
7707eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7708  (eval "$ac_try") 2>&5
7709  ac_status=$?
7710  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7711  (exit $ac_status); }; }; then
7712  llvm_cv_link_use_r=yes
7713else
7714  echo "$as_me: failed program was:" >&5
7715sed 's/^/| /' conftest.$ac_ext >&5
7716
7717	llvm_cv_link_use_r=no
7718fi
7719
7720rm -f core conftest.err conftest.$ac_objext \
7721      conftest$ac_exeext conftest.$ac_ext
7722  CFLAGS="$oldcflags"
7723  ac_ext=c
7724ac_cpp='$CPP $CPPFLAGS'
7725ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7726ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7727ac_compiler_gnu=$ac_cv_c_compiler_gnu
7728
7729
7730fi
7731{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
7732echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
7733if test "$llvm_cv_link_use_r" = yes ; then
7734
7735cat >>confdefs.h <<\_ACEOF
7736#define HAVE_LINK_R 1
7737_ACEOF
7738
7739  fi
7740
7741
7742{ echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5
7743echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; }
7744if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
7745  echo $ECHO_N "(cached) $ECHO_C" >&6
7746else
7747   ac_ext=c
7748ac_cpp='$CPP $CPPFLAGS'
7749ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7750ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7751ac_compiler_gnu=$ac_cv_c_compiler_gnu
7752
7753  oldcflags="$CFLAGS"
7754  CFLAGS="$CFLAGS -Wl,-export-dynamic"
7755  cat >conftest.$ac_ext <<_ACEOF
7756/* confdefs.h.  */
7757_ACEOF
7758cat confdefs.h >>conftest.$ac_ext
7759cat >>conftest.$ac_ext <<_ACEOF
7760/* end confdefs.h.  */
7761
7762int
7763main ()
7764{
7765
7766  ;
7767  return 0;
7768}
7769_ACEOF
7770rm -f conftest.$ac_objext conftest$ac_exeext
7771if { (ac_try="$ac_link"
7772case "(($ac_try" in
7773  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7774  *) ac_try_echo=$ac_try;;
7775esac
7776eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7777  (eval "$ac_link") 2>conftest.er1
7778  ac_status=$?
7779  grep -v '^ *+' conftest.er1 >conftest.err
7780  rm -f conftest.er1
7781  cat conftest.err >&5
7782  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7783  (exit $ac_status); } &&
7784	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7785  { (case "(($ac_try" in
7786  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7787  *) ac_try_echo=$ac_try;;
7788esac
7789eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7790  (eval "$ac_try") 2>&5
7791  ac_status=$?
7792  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7793  (exit $ac_status); }; } &&
7794	 { ac_try='test -s conftest$ac_exeext'
7795  { (case "(($ac_try" in
7796  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7797  *) ac_try_echo=$ac_try;;
7798esac
7799eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7800  (eval "$ac_try") 2>&5
7801  ac_status=$?
7802  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7803  (exit $ac_status); }; }; then
7804  llvm_cv_link_use_export_dynamic=yes
7805else
7806  echo "$as_me: failed program was:" >&5
7807sed 's/^/| /' conftest.$ac_ext >&5
7808
7809	llvm_cv_link_use_export_dynamic=no
7810fi
7811
7812rm -f core conftest.err conftest.$ac_objext \
7813      conftest$ac_exeext conftest.$ac_ext
7814  CFLAGS="$oldcflags"
7815  ac_ext=c
7816ac_cpp='$CPP $CPPFLAGS'
7817ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7818ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7819ac_compiler_gnu=$ac_cv_c_compiler_gnu
7820
7821
7822fi
7823{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
7824echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
7825if test "$llvm_cv_link_use_export_dynamic" = yes ; then
7826
7827cat >>confdefs.h <<\_ACEOF
7828#define HAVE_LINK_EXPORT_DYNAMIC 1
7829_ACEOF
7830
7831  fi
7832
7833
7834{ echo "$as_me:$LINENO: checking for compiler -Wl,--version-script option" >&5
7835echo $ECHO_N "checking for compiler -Wl,--version-script option... $ECHO_C" >&6; }
7836if test "${llvm_cv_link_use_version_script+set}" = set; then
7837  echo $ECHO_N "(cached) $ECHO_C" >&6
7838else
7839   ac_ext=c
7840ac_cpp='$CPP $CPPFLAGS'
7841ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7842ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7843ac_compiler_gnu=$ac_cv_c_compiler_gnu
7844
7845  oldcflags="$CFLAGS"
7846
7847  # The following code is from the autoconf manual,
7848  # "11.13: Limitations of Usual Tools".
7849  # Create a temporary directory $tmp in $TMPDIR (default /tmp).
7850  # Use mktemp if possible; otherwise fall back on mkdir,
7851  # with $RANDOM to make collisions less likely.
7852  : ${TMPDIR=/tmp}
7853  {
7854    tmp=`
7855      (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null
7856    ` &&
7857    test -n "$tmp" && test -d "$tmp"
7858  } || {
7859    tmp=$TMPDIR/foo$$-$RANDOM
7860    (umask 077 && mkdir "$tmp")
7861  } || exit $?
7862
7863  echo "{" > "$tmp/export.map"
7864  echo "  global: main;" >> "$tmp/export.map"
7865  echo "  local: *;" >> "$tmp/export.map"
7866  echo "};" >> "$tmp/export.map"
7867
7868  CFLAGS="$CFLAGS -Wl,--version-script=$tmp/export.map"
7869  cat >conftest.$ac_ext <<_ACEOF
7870/* confdefs.h.  */
7871_ACEOF
7872cat confdefs.h >>conftest.$ac_ext
7873cat >>conftest.$ac_ext <<_ACEOF
7874/* end confdefs.h.  */
7875
7876int
7877main ()
7878{
7879
7880  ;
7881  return 0;
7882}
7883_ACEOF
7884rm -f conftest.$ac_objext conftest$ac_exeext
7885if { (ac_try="$ac_link"
7886case "(($ac_try" in
7887  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7888  *) ac_try_echo=$ac_try;;
7889esac
7890eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7891  (eval "$ac_link") 2>conftest.er1
7892  ac_status=$?
7893  grep -v '^ *+' conftest.er1 >conftest.err
7894  rm -f conftest.er1
7895  cat conftest.err >&5
7896  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7897  (exit $ac_status); } &&
7898	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7899  { (case "(($ac_try" in
7900  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7901  *) ac_try_echo=$ac_try;;
7902esac
7903eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7904  (eval "$ac_try") 2>&5
7905  ac_status=$?
7906  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7907  (exit $ac_status); }; } &&
7908	 { ac_try='test -s conftest$ac_exeext'
7909  { (case "(($ac_try" in
7910  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7911  *) ac_try_echo=$ac_try;;
7912esac
7913eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7914  (eval "$ac_try") 2>&5
7915  ac_status=$?
7916  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7917  (exit $ac_status); }; }; then
7918  llvm_cv_link_use_version_script=yes
7919else
7920  echo "$as_me: failed program was:" >&5
7921sed 's/^/| /' conftest.$ac_ext >&5
7922
7923	llvm_cv_link_use_version_script=no
7924fi
7925
7926rm -f core conftest.err conftest.$ac_objext \
7927      conftest$ac_exeext conftest.$ac_ext
7928  rm "$tmp/export.map"
7929  rmdir "$tmp"
7930  CFLAGS="$oldcflags"
7931  ac_ext=c
7932ac_cpp='$CPP $CPPFLAGS'
7933ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7934ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7935ac_compiler_gnu=$ac_cv_c_compiler_gnu
7936
7937
7938fi
7939{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_version_script" >&5
7940echo "${ECHO_T}$llvm_cv_link_use_version_script" >&6; }
7941if test "$llvm_cv_link_use_version_script" = yes ; then
7942  HAVE_LINK_VERSION_SCRIPT=1
7943
7944  fi
7945
7946
7947
7948
7949{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
7950echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
7951if test "${ac_cv_c_const+set}" = set; then
7952  echo $ECHO_N "(cached) $ECHO_C" >&6
7953else
7954  cat >conftest.$ac_ext <<_ACEOF
7955/* confdefs.h.  */
7956_ACEOF
7957cat confdefs.h >>conftest.$ac_ext
7958cat >>conftest.$ac_ext <<_ACEOF
7959/* end confdefs.h.  */
7960
7961int
7962main ()
7963{
7964/* FIXME: Include the comments suggested by Paul. */
7965#ifndef __cplusplus
7966  /* Ultrix mips cc rejects this.  */
7967  typedef int charset[2];
7968  const charset x;
7969  /* SunOS 4.1.1 cc rejects this.  */
7970  char const *const *ccp;
7971  char **p;
7972  /* NEC SVR4.0.2 mips cc rejects this.  */
7973  struct point {int x, y;};
7974  static struct point const zero = {0,0};
7975  /* AIX XL C 1.02.0.0 rejects this.
7976     It does not let you subtract one const X* pointer from another in
7977     an arm of an if-expression whose if-part is not a constant
7978     expression */
7979  const char *g = "string";
7980  ccp = &g + (g ? g-g : 0);
7981  /* HPUX 7.0 cc rejects these. */
7982  ++ccp;
7983  p = (char**) ccp;
7984  ccp = (char const *const *) p;
7985  { /* SCO 3.2v4 cc rejects this.  */
7986    char *t;
7987    char const *s = 0 ? (char *) 0 : (char const *) 0;
7988
7989    *t++ = 0;
7990    if (s) return 0;
7991  }
7992  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
7993    int x[] = {25, 17};
7994    const int *foo = &x[0];
7995    ++foo;
7996  }
7997  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
7998    typedef const int *iptr;
7999    iptr p = 0;
8000    ++p;
8001  }
8002  { /* AIX XL C 1.02.0.0 rejects this saying
8003       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8004    struct s { int j; const int *ap[3]; };
8005    struct s *b; b->j = 5;
8006  }
8007  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8008    const int foo = 10;
8009    if (!foo) return 0;
8010  }
8011  return !x[0] && !zero.x;
8012#endif
8013
8014  ;
8015  return 0;
8016}
8017_ACEOF
8018rm -f conftest.$ac_objext
8019if { (ac_try="$ac_compile"
8020case "(($ac_try" in
8021  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8022  *) ac_try_echo=$ac_try;;
8023esac
8024eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8025  (eval "$ac_compile") 2>conftest.er1
8026  ac_status=$?
8027  grep -v '^ *+' conftest.er1 >conftest.err
8028  rm -f conftest.er1
8029  cat conftest.err >&5
8030  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8031  (exit $ac_status); } &&
8032	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8033  { (case "(($ac_try" in
8034  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8035  *) ac_try_echo=$ac_try;;
8036esac
8037eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8038  (eval "$ac_try") 2>&5
8039  ac_status=$?
8040  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8041  (exit $ac_status); }; } &&
8042	 { ac_try='test -s conftest.$ac_objext'
8043  { (case "(($ac_try" in
8044  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8045  *) ac_try_echo=$ac_try;;
8046esac
8047eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8048  (eval "$ac_try") 2>&5
8049  ac_status=$?
8050  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8051  (exit $ac_status); }; }; then
8052  ac_cv_c_const=yes
8053else
8054  echo "$as_me: failed program was:" >&5
8055sed 's/^/| /' conftest.$ac_ext >&5
8056
8057	ac_cv_c_const=no
8058fi
8059
8060rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8061fi
8062{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8063echo "${ECHO_T}$ac_cv_c_const" >&6; }
8064if test $ac_cv_c_const = no; then
8065
8066cat >>confdefs.h <<\_ACEOF
8067#define const
8068_ACEOF
8069
8070fi
8071
8072
8073
8074
8075
8076
8077ac_header_dirent=no
8078for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8079  as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8080{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8081echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8082if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8083  echo $ECHO_N "(cached) $ECHO_C" >&6
8084else
8085  cat >conftest.$ac_ext <<_ACEOF
8086/* confdefs.h.  */
8087_ACEOF
8088cat confdefs.h >>conftest.$ac_ext
8089cat >>conftest.$ac_ext <<_ACEOF
8090/* end confdefs.h.  */
8091#include <sys/types.h>
8092#include <$ac_hdr>
8093
8094int
8095main ()
8096{
8097if ((DIR *) 0)
8098return 0;
8099  ;
8100  return 0;
8101}
8102_ACEOF
8103rm -f conftest.$ac_objext
8104if { (ac_try="$ac_compile"
8105case "(($ac_try" in
8106  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8107  *) ac_try_echo=$ac_try;;
8108esac
8109eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8110  (eval "$ac_compile") 2>conftest.er1
8111  ac_status=$?
8112  grep -v '^ *+' conftest.er1 >conftest.err
8113  rm -f conftest.er1
8114  cat conftest.err >&5
8115  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8116  (exit $ac_status); } &&
8117	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8118  { (case "(($ac_try" in
8119  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8120  *) ac_try_echo=$ac_try;;
8121esac
8122eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8123  (eval "$ac_try") 2>&5
8124  ac_status=$?
8125  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8126  (exit $ac_status); }; } &&
8127	 { ac_try='test -s conftest.$ac_objext'
8128  { (case "(($ac_try" in
8129  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8130  *) ac_try_echo=$ac_try;;
8131esac
8132eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8133  (eval "$ac_try") 2>&5
8134  ac_status=$?
8135  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8136  (exit $ac_status); }; }; then
8137  eval "$as_ac_Header=yes"
8138else
8139  echo "$as_me: failed program was:" >&5
8140sed 's/^/| /' conftest.$ac_ext >&5
8141
8142	eval "$as_ac_Header=no"
8143fi
8144
8145rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8146fi
8147ac_res=`eval echo '${'$as_ac_Header'}'`
8148	       { echo "$as_me:$LINENO: result: $ac_res" >&5
8149echo "${ECHO_T}$ac_res" >&6; }
8150if test `eval echo '${'$as_ac_Header'}'` = yes; then
8151  cat >>confdefs.h <<_ACEOF
8152#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8153_ACEOF
8154
8155ac_header_dirent=$ac_hdr; break
8156fi
8157
8158done
8159# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8160if test $ac_header_dirent = dirent.h; then
8161  { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8162echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8163if test "${ac_cv_search_opendir+set}" = set; then
8164  echo $ECHO_N "(cached) $ECHO_C" >&6
8165else
8166  ac_func_search_save_LIBS=$LIBS
8167cat >conftest.$ac_ext <<_ACEOF
8168/* confdefs.h.  */
8169_ACEOF
8170cat confdefs.h >>conftest.$ac_ext
8171cat >>conftest.$ac_ext <<_ACEOF
8172/* end confdefs.h.  */
8173
8174/* Override any GCC internal prototype to avoid an error.
8175   Use char because int might match the return type of a GCC
8176   builtin and then its argument prototype would still apply.  */
8177#ifdef __cplusplus
8178extern "C"
8179#endif
8180char opendir ();
8181int
8182main ()
8183{
8184return opendir ();
8185  ;
8186  return 0;
8187}
8188_ACEOF
8189for ac_lib in '' dir; do
8190  if test -z "$ac_lib"; then
8191    ac_res="none required"
8192  else
8193    ac_res=-l$ac_lib
8194    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8195  fi
8196  rm -f conftest.$ac_objext conftest$ac_exeext
8197if { (ac_try="$ac_link"
8198case "(($ac_try" in
8199  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8200  *) ac_try_echo=$ac_try;;
8201esac
8202eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8203  (eval "$ac_link") 2>conftest.er1
8204  ac_status=$?
8205  grep -v '^ *+' conftest.er1 >conftest.err
8206  rm -f conftest.er1
8207  cat conftest.err >&5
8208  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8209  (exit $ac_status); } &&
8210	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8211  { (case "(($ac_try" in
8212  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8213  *) ac_try_echo=$ac_try;;
8214esac
8215eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8216  (eval "$ac_try") 2>&5
8217  ac_status=$?
8218  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8219  (exit $ac_status); }; } &&
8220	 { ac_try='test -s conftest$ac_exeext'
8221  { (case "(($ac_try" in
8222  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8223  *) ac_try_echo=$ac_try;;
8224esac
8225eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8226  (eval "$ac_try") 2>&5
8227  ac_status=$?
8228  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8229  (exit $ac_status); }; }; then
8230  ac_cv_search_opendir=$ac_res
8231else
8232  echo "$as_me: failed program was:" >&5
8233sed 's/^/| /' conftest.$ac_ext >&5
8234
8235
8236fi
8237
8238rm -f core conftest.err conftest.$ac_objext \
8239      conftest$ac_exeext
8240  if test "${ac_cv_search_opendir+set}" = set; then
8241  break
8242fi
8243done
8244if test "${ac_cv_search_opendir+set}" = set; then
8245  :
8246else
8247  ac_cv_search_opendir=no
8248fi
8249rm conftest.$ac_ext
8250LIBS=$ac_func_search_save_LIBS
8251fi
8252{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8253echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8254ac_res=$ac_cv_search_opendir
8255if test "$ac_res" != no; then
8256  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8257
8258fi
8259
8260else
8261  { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8262echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8263if test "${ac_cv_search_opendir+set}" = set; then
8264  echo $ECHO_N "(cached) $ECHO_C" >&6
8265else
8266  ac_func_search_save_LIBS=$LIBS
8267cat >conftest.$ac_ext <<_ACEOF
8268/* confdefs.h.  */
8269_ACEOF
8270cat confdefs.h >>conftest.$ac_ext
8271cat >>conftest.$ac_ext <<_ACEOF
8272/* end confdefs.h.  */
8273
8274/* Override any GCC internal prototype to avoid an error.
8275   Use char because int might match the return type of a GCC
8276   builtin and then its argument prototype would still apply.  */
8277#ifdef __cplusplus
8278extern "C"
8279#endif
8280char opendir ();
8281int
8282main ()
8283{
8284return opendir ();
8285  ;
8286  return 0;
8287}
8288_ACEOF
8289for ac_lib in '' x; do
8290  if test -z "$ac_lib"; then
8291    ac_res="none required"
8292  else
8293    ac_res=-l$ac_lib
8294    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8295  fi
8296  rm -f conftest.$ac_objext conftest$ac_exeext
8297if { (ac_try="$ac_link"
8298case "(($ac_try" in
8299  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8300  *) ac_try_echo=$ac_try;;
8301esac
8302eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8303  (eval "$ac_link") 2>conftest.er1
8304  ac_status=$?
8305  grep -v '^ *+' conftest.er1 >conftest.err
8306  rm -f conftest.er1
8307  cat conftest.err >&5
8308  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8309  (exit $ac_status); } &&
8310	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8311  { (case "(($ac_try" in
8312  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8313  *) ac_try_echo=$ac_try;;
8314esac
8315eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8316  (eval "$ac_try") 2>&5
8317  ac_status=$?
8318  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8319  (exit $ac_status); }; } &&
8320	 { ac_try='test -s conftest$ac_exeext'
8321  { (case "(($ac_try" in
8322  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8323  *) ac_try_echo=$ac_try;;
8324esac
8325eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8326  (eval "$ac_try") 2>&5
8327  ac_status=$?
8328  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8329  (exit $ac_status); }; }; then
8330  ac_cv_search_opendir=$ac_res
8331else
8332  echo "$as_me: failed program was:" >&5
8333sed 's/^/| /' conftest.$ac_ext >&5
8334
8335
8336fi
8337
8338rm -f core conftest.err conftest.$ac_objext \
8339      conftest$ac_exeext
8340  if test "${ac_cv_search_opendir+set}" = set; then
8341  break
8342fi
8343done
8344if test "${ac_cv_search_opendir+set}" = set; then
8345  :
8346else
8347  ac_cv_search_opendir=no
8348fi
8349rm conftest.$ac_ext
8350LIBS=$ac_func_search_save_LIBS
8351fi
8352{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8353echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8354ac_res=$ac_cv_search_opendir
8355if test "$ac_res" != no; then
8356  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8357
8358fi
8359
8360fi
8361
8362
8363for ac_header in dlfcn.h
8364do
8365as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8366if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8367  { echo "$as_me:$LINENO: checking for $ac_header" >&5
8368echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8369if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8370  echo $ECHO_N "(cached) $ECHO_C" >&6
8371fi
8372ac_res=`eval echo '${'$as_ac_Header'}'`
8373	       { echo "$as_me:$LINENO: result: $ac_res" >&5
8374echo "${ECHO_T}$ac_res" >&6; }
8375else
8376  # Is the header compilable?
8377{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
8378echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8379cat >conftest.$ac_ext <<_ACEOF
8380/* confdefs.h.  */
8381_ACEOF
8382cat confdefs.h >>conftest.$ac_ext
8383cat >>conftest.$ac_ext <<_ACEOF
8384/* end confdefs.h.  */
8385$ac_includes_default
8386#include <$ac_header>
8387_ACEOF
8388rm -f conftest.$ac_objext
8389if { (ac_try="$ac_compile"
8390case "(($ac_try" in
8391  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8392  *) ac_try_echo=$ac_try;;
8393esac
8394eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8395  (eval "$ac_compile") 2>conftest.er1
8396  ac_status=$?
8397  grep -v '^ *+' conftest.er1 >conftest.err
8398  rm -f conftest.er1
8399  cat conftest.err >&5
8400  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8401  (exit $ac_status); } &&
8402	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8403  { (case "(($ac_try" in
8404  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8405  *) ac_try_echo=$ac_try;;
8406esac
8407eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8408  (eval "$ac_try") 2>&5
8409  ac_status=$?
8410  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8411  (exit $ac_status); }; } &&
8412	 { ac_try='test -s conftest.$ac_objext'
8413  { (case "(($ac_try" in
8414  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8415  *) ac_try_echo=$ac_try;;
8416esac
8417eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8418  (eval "$ac_try") 2>&5
8419  ac_status=$?
8420  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8421  (exit $ac_status); }; }; then
8422  ac_header_compiler=yes
8423else
8424  echo "$as_me: failed program was:" >&5
8425sed 's/^/| /' conftest.$ac_ext >&5
8426
8427	ac_header_compiler=no
8428fi
8429
8430rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8431{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8432echo "${ECHO_T}$ac_header_compiler" >&6; }
8433
8434# Is the header present?
8435{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
8436echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8437cat >conftest.$ac_ext <<_ACEOF
8438/* confdefs.h.  */
8439_ACEOF
8440cat confdefs.h >>conftest.$ac_ext
8441cat >>conftest.$ac_ext <<_ACEOF
8442/* end confdefs.h.  */
8443#include <$ac_header>
8444_ACEOF
8445if { (ac_try="$ac_cpp conftest.$ac_ext"
8446case "(($ac_try" in
8447  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8448  *) ac_try_echo=$ac_try;;
8449esac
8450eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8451  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8452  ac_status=$?
8453  grep -v '^ *+' conftest.er1 >conftest.err
8454  rm -f conftest.er1
8455  cat conftest.err >&5
8456  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8457  (exit $ac_status); } >/dev/null; then
8458  if test -s conftest.err; then
8459    ac_cpp_err=$ac_c_preproc_warn_flag
8460    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8461  else
8462    ac_cpp_err=
8463  fi
8464else
8465  ac_cpp_err=yes
8466fi
8467if test -z "$ac_cpp_err"; then
8468  ac_header_preproc=yes
8469else
8470  echo "$as_me: failed program was:" >&5
8471sed 's/^/| /' conftest.$ac_ext >&5
8472
8473  ac_header_preproc=no
8474fi
8475
8476rm -f conftest.err conftest.$ac_ext
8477{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8478echo "${ECHO_T}$ac_header_preproc" >&6; }
8479
8480# So?  What about this header?
8481case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8482  yes:no: )
8483    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8484echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8485    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8486echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8487    ac_header_preproc=yes
8488    ;;
8489  no:yes:* )
8490    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8491echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8492    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8493echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8494    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8495echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8496    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8497echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8498    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8499echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8500    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8501echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8502    ( cat <<\_ASBOX
8503## ------------------------------------ ##
8504## Report this to http://llvm.org/bugs/ ##
8505## ------------------------------------ ##
8506_ASBOX
8507     ) | sed "s/^/$as_me: WARNING:     /" >&2
8508    ;;
8509esac
8510{ echo "$as_me:$LINENO: checking for $ac_header" >&5
8511echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8512if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8513  echo $ECHO_N "(cached) $ECHO_C" >&6
8514else
8515  eval "$as_ac_Header=\$ac_header_preproc"
8516fi
8517ac_res=`eval echo '${'$as_ac_Header'}'`
8518	       { echo "$as_me:$LINENO: result: $ac_res" >&5
8519echo "${ECHO_T}$ac_res" >&6; }
8520
8521fi
8522if test `eval echo '${'$as_ac_Header'}'` = yes; then
8523  cat >>confdefs.h <<_ACEOF
8524#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8525_ACEOF
8526
8527fi
8528
8529done
8530
8531# Check whether --enable-ltdl-install was given.
8532if test "${enable_ltdl_install+set}" = set; then
8533  enableval=$enable_ltdl_install;
8534fi
8535
8536
8537
8538
8539if test x"${enable_ltdl_install-no}" != xno; then
8540  INSTALL_LTDL_TRUE=
8541  INSTALL_LTDL_FALSE='#'
8542else
8543  INSTALL_LTDL_TRUE='#'
8544  INSTALL_LTDL_FALSE=
8545fi
8546
8547
8548
8549if test x"${enable_ltdl_convenience-no}" != xno; then
8550  CONVENIENCE_LTDL_TRUE=
8551  CONVENIENCE_LTDL_FALSE='#'
8552else
8553  CONVENIENCE_LTDL_TRUE='#'
8554  CONVENIENCE_LTDL_FALSE=
8555fi
8556
8557
8558{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8559echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8560library_names_spec=
8561libname_spec='lib$name'
8562soname_spec=
8563shrext_cmds=".so"
8564postinstall_cmds=
8565postuninstall_cmds=
8566finish_cmds=
8567finish_eval=
8568shlibpath_var=
8569shlibpath_overrides_runpath=unknown
8570version_type=none
8571dynamic_linker="$host_os ld.so"
8572sys_lib_dlsearch_path_spec="/lib /usr/lib"
8573if test "$GCC" = yes; then
8574  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8575  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8576    # if the path contains ";" then we assume it to be the separator
8577    # otherwise default to the standard path separator (i.e. ":") - it is
8578    # assumed that no part of a normal pathname contains ";" but that should
8579    # okay in the real world where ";" in dirpaths is itself problematic.
8580    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8581  else
8582    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8583  fi
8584else
8585  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8586fi
8587need_lib_prefix=unknown
8588hardcode_into_libs=no
8589
8590# when you set need_version to no, make sure it does not cause -set_version
8591# flags to be left without arguments
8592need_version=unknown
8593
8594case $host_os in
8595aix3*)
8596  version_type=linux
8597  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8598  shlibpath_var=LIBPATH
8599
8600  # AIX 3 has no versioning support, so we append a major version to the name.
8601  soname_spec='${libname}${release}${shared_ext}$major'
8602  ;;
8603
8604aix4* | aix5*)
8605  version_type=linux
8606  need_lib_prefix=no
8607  need_version=no
8608  hardcode_into_libs=yes
8609  if test "$host_cpu" = ia64; then
8610    # AIX 5 supports IA64
8611    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8612    shlibpath_var=LD_LIBRARY_PATH
8613  else
8614    # With GCC up to 2.95.x, collect2 would create an import file
8615    # for dependence libraries.  The import file would start with
8616    # the line `#! .'.  This would cause the generated library to
8617    # depend on `.', always an invalid library.  This was fixed in
8618    # development snapshots of GCC prior to 3.0.
8619    case $host_os in
8620      aix4 | aix4.[01] | aix4.[01].*)
8621      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8622	   echo ' yes '
8623	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8624	:
8625      else
8626	can_build_shared=no
8627      fi
8628      ;;
8629    esac
8630    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8631    # soname into executable. Probably we can add versioning support to
8632    # collect2, so additional links can be useful in future.
8633    if test "$aix_use_runtimelinking" = yes; then
8634      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8635      # instead of lib<name>.a to let people know that these are not
8636      # typical AIX shared libraries.
8637      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8638    else
8639      # We preserve .a as extension for shared libraries through AIX4.2
8640      # and later when we are not doing run time linking.
8641      library_names_spec='${libname}${release}.a $libname.a'
8642      soname_spec='${libname}${release}${shared_ext}$major'
8643    fi
8644    shlibpath_var=LIBPATH
8645  fi
8646  ;;
8647
8648amigaos*)
8649  library_names_spec='$libname.ixlibrary $libname.a'
8650  # Create ${libname}_ixlibrary.a entries in /sys/libs.
8651  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'
8652  ;;
8653
8654beos*)
8655  library_names_spec='${libname}${shared_ext}'
8656  dynamic_linker="$host_os ld.so"
8657  shlibpath_var=LIBRARY_PATH
8658  ;;
8659
8660bsdi[45]*)
8661  version_type=linux
8662  need_version=no
8663  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8664  soname_spec='${libname}${release}${shared_ext}$major'
8665  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8666  shlibpath_var=LD_LIBRARY_PATH
8667  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8668  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8669  # the default ld.so.conf also contains /usr/contrib/lib and
8670  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8671  # libtool to hard-code these into programs
8672  ;;
8673
8674cygwin* | mingw* | pw32*)
8675  version_type=windows
8676  shrext_cmds=".dll"
8677  need_version=no
8678  need_lib_prefix=no
8679
8680  case $GCC,$host_os in
8681  yes,cygwin* | yes,mingw* | yes,pw32*)
8682    library_names_spec='$libname.dll.a'
8683    # DLL is installed to $(libdir)/../bin by postinstall_cmds
8684    postinstall_cmds='base_file=`basename \${file}`~
8685      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8686      dldir=$destdir/`dirname \$dlpath`~
8687      test -d \$dldir || mkdir -p \$dldir~
8688      $install_prog $dir/$dlname \$dldir/$dlname~
8689      chmod a+x \$dldir/$dlname'
8690    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8691      dlpath=$dir/\$dldll~
8692       $rm \$dlpath'
8693    shlibpath_overrides_runpath=yes
8694
8695    case $host_os in
8696    cygwin*)
8697      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8698      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8699      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8700      ;;
8701    mingw*)
8702      # MinGW DLLs use traditional 'lib' prefix
8703      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8704      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8705      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8706        # It is most probably a Windows format PATH printed by
8707        # mingw gcc, but we are running on Cygwin. Gcc prints its search
8708        # path with ; separators, and with drive letters. We can handle the
8709        # drive letters (cygwin fileutils understands them), so leave them,
8710        # especially as we might pass files found there to a mingw objdump,
8711        # which wouldn't understand a cygwinified path. Ahh.
8712        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8713      else
8714        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8715      fi
8716      ;;
8717    pw32*)
8718      # pw32 DLLs use 'pw' prefix rather than 'lib'
8719      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8720      ;;
8721    esac
8722    ;;
8723
8724  *)
8725    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8726    ;;
8727  esac
8728  dynamic_linker='Win32 ld.exe'
8729  # FIXME: first we should search . and the directory the executable is in
8730  shlibpath_var=PATH
8731  ;;
8732
8733darwin* | rhapsody*)
8734  dynamic_linker="$host_os dyld"
8735  version_type=darwin
8736  need_lib_prefix=no
8737  need_version=no
8738  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8739  soname_spec='${libname}${release}${major}$shared_ext'
8740  shlibpath_overrides_runpath=yes
8741  shlibpath_var=DYLD_LIBRARY_PATH
8742  shrext_cmds='.dylib'
8743  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8744  if test "$GCC" = yes; then
8745    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"`
8746  else
8747    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8748  fi
8749  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8750  ;;
8751
8752dgux*)
8753  version_type=linux
8754  need_lib_prefix=no
8755  need_version=no
8756  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8757  soname_spec='${libname}${release}${shared_ext}$major'
8758  shlibpath_var=LD_LIBRARY_PATH
8759  ;;
8760
8761freebsd1.*)
8762  dynamic_linker=no
8763  ;;
8764
8765kfreebsd*-gnu)
8766  version_type=linux
8767  need_lib_prefix=no
8768  need_version=no
8769  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8770  soname_spec='${libname}${release}${shared_ext}$major'
8771  shlibpath_var=LD_LIBRARY_PATH
8772  shlibpath_overrides_runpath=no
8773  hardcode_into_libs=yes
8774  dynamic_linker='GNU ld.so'
8775  ;;
8776
8777freebsd* | dragonfly*)
8778  # DragonFly does not have aout.  When/if they implement a new
8779  # versioning mechanism, adjust this.
8780  if test -x /usr/bin/objformat; then
8781    objformat=`/usr/bin/objformat`
8782  else
8783    case $host_os in
8784    freebsd[123].*) objformat=aout ;;
8785    *) objformat=elf ;;
8786    esac
8787  fi
8788  version_type=freebsd-$objformat
8789  case $version_type in
8790    freebsd-elf*)
8791      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8792      need_version=no
8793      need_lib_prefix=no
8794      ;;
8795    freebsd-*)
8796      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8797      need_version=yes
8798      ;;
8799  esac
8800  shlibpath_var=LD_LIBRARY_PATH
8801  case $host_os in
8802  freebsd2.*)
8803    shlibpath_overrides_runpath=yes
8804    ;;
8805  freebsd3.[01]* | freebsdelf3.[01]*)
8806    shlibpath_overrides_runpath=yes
8807    hardcode_into_libs=yes
8808    ;;
8809  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8810  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8811    shlibpath_overrides_runpath=no
8812    hardcode_into_libs=yes
8813    ;;
8814  freebsd*) # from 4.6 on
8815    shlibpath_overrides_runpath=yes
8816    hardcode_into_libs=yes
8817    ;;
8818  esac
8819  ;;
8820
8821gnu*)
8822  version_type=linux
8823  need_lib_prefix=no
8824  need_version=no
8825  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8826  soname_spec='${libname}${release}${shared_ext}$major'
8827  shlibpath_var=LD_LIBRARY_PATH
8828  hardcode_into_libs=yes
8829  ;;
8830
8831hpux9* | hpux10* | hpux11*)
8832  # Give a soname corresponding to the major version so that dld.sl refuses to
8833  # link against other versions.
8834  version_type=sunos
8835  need_lib_prefix=no
8836  need_version=no
8837  case $host_cpu in
8838  ia64*)
8839    shrext_cmds='.so'
8840    hardcode_into_libs=yes
8841    dynamic_linker="$host_os dld.so"
8842    shlibpath_var=LD_LIBRARY_PATH
8843    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8844    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8845    soname_spec='${libname}${release}${shared_ext}$major'
8846    if test "X$HPUX_IA64_MODE" = X32; then
8847      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8848    else
8849      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8850    fi
8851    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8852    ;;
8853   hppa*64*)
8854     shrext_cmds='.sl'
8855     hardcode_into_libs=yes
8856     dynamic_linker="$host_os dld.sl"
8857     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8858     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8859     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8860     soname_spec='${libname}${release}${shared_ext}$major'
8861     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8862     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8863     ;;
8864   *)
8865    shrext_cmds='.sl'
8866    dynamic_linker="$host_os dld.sl"
8867    shlibpath_var=SHLIB_PATH
8868    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8869    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8870    soname_spec='${libname}${release}${shared_ext}$major'
8871    ;;
8872  esac
8873  # HP-UX runs *really* slowly unless shared libraries are mode 555.
8874  postinstall_cmds='chmod 555 $lib'
8875  ;;
8876
8877interix3*)
8878  version_type=linux
8879  need_lib_prefix=no
8880  need_version=no
8881  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8882  soname_spec='${libname}${release}${shared_ext}$major'
8883  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8884  shlibpath_var=LD_LIBRARY_PATH
8885  shlibpath_overrides_runpath=no
8886  hardcode_into_libs=yes
8887  ;;
8888
8889irix5* | irix6* | nonstopux*)
8890  case $host_os in
8891    nonstopux*) version_type=nonstopux ;;
8892    *)
8893	if test "$lt_cv_prog_gnu_ld" = yes; then
8894		version_type=linux
8895	else
8896		version_type=irix
8897	fi ;;
8898  esac
8899  need_lib_prefix=no
8900  need_version=no
8901  soname_spec='${libname}${release}${shared_ext}$major'
8902  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8903  case $host_os in
8904  irix5* | nonstopux*)
8905    libsuff= shlibsuff=
8906    ;;
8907  *)
8908    case $LD in # libtool.m4 will add one of these switches to LD
8909    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8910      libsuff= shlibsuff= libmagic=32-bit;;
8911    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8912      libsuff=32 shlibsuff=N32 libmagic=N32;;
8913    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8914      libsuff=64 shlibsuff=64 libmagic=64-bit;;
8915    *) libsuff= shlibsuff= libmagic=never-match;;
8916    esac
8917    ;;
8918  esac
8919  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8920  shlibpath_overrides_runpath=no
8921  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8922  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8923  hardcode_into_libs=yes
8924  ;;
8925
8926# No shared lib support for Linux oldld, aout, or coff.
8927linux*oldld* | linux*aout* | linux*coff*)
8928  dynamic_linker=no
8929  ;;
8930
8931# This must be Linux ELF.
8932linux*)
8933  version_type=linux
8934  need_lib_prefix=no
8935  need_version=no
8936  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8937  soname_spec='${libname}${release}${shared_ext}$major'
8938  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8939  shlibpath_var=LD_LIBRARY_PATH
8940  shlibpath_overrides_runpath=no
8941  # This implies no fast_install, which is unacceptable.
8942  # Some rework will be needed to allow for fast_install
8943  # before this can be enabled.
8944  hardcode_into_libs=yes
8945
8946  # Append ld.so.conf contents to the search path
8947  if test -f /etc/ld.so.conf; then
8948    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' ' '`
8949    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8950  fi
8951
8952  # We used to test for /lib/ld.so.1 and disable shared libraries on
8953  # powerpc, because MkLinux only supported shared libraries with the
8954  # GNU dynamic linker.  Since this was broken with cross compilers,
8955  # most powerpc-linux boxes support dynamic linking these days and
8956  # people can always --disable-shared, the test was removed, and we
8957  # assume the GNU/Linux dynamic linker is in use.
8958  dynamic_linker='GNU/Linux ld.so'
8959  ;;
8960
8961knetbsd*-gnu)
8962  version_type=linux
8963  need_lib_prefix=no
8964  need_version=no
8965  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8966  soname_spec='${libname}${release}${shared_ext}$major'
8967  shlibpath_var=LD_LIBRARY_PATH
8968  shlibpath_overrides_runpath=no
8969  hardcode_into_libs=yes
8970  dynamic_linker='GNU ld.so'
8971  ;;
8972
8973netbsd*)
8974  version_type=sunos
8975  need_lib_prefix=no
8976  need_version=no
8977  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8978    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8979    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8980    dynamic_linker='NetBSD (a.out) ld.so'
8981  else
8982    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8983    soname_spec='${libname}${release}${shared_ext}$major'
8984    dynamic_linker='NetBSD ld.elf_so'
8985  fi
8986  shlibpath_var=LD_LIBRARY_PATH
8987  shlibpath_overrides_runpath=yes
8988  hardcode_into_libs=yes
8989  ;;
8990
8991newsos6)
8992  version_type=linux
8993  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8994  shlibpath_var=LD_LIBRARY_PATH
8995  shlibpath_overrides_runpath=yes
8996  ;;
8997
8998nto-qnx*)
8999  version_type=linux
9000  need_lib_prefix=no
9001  need_version=no
9002  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9003  soname_spec='${libname}${release}${shared_ext}$major'
9004  shlibpath_var=LD_LIBRARY_PATH
9005  shlibpath_overrides_runpath=yes
9006  ;;
9007
9008openbsd* | bitrig*)
9009  version_type=sunos
9010  sys_lib_dlsearch_path_spec="/usr/lib"
9011  need_lib_prefix=no
9012  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9013  case $host_os in
9014    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9015    *)                         need_version=no  ;;
9016  esac
9017  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9018  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9019  shlibpath_var=LD_LIBRARY_PATH
9020  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9021    case $host_os in
9022      openbsd2.[89] | openbsd2.[89].*)
9023	shlibpath_overrides_runpath=no
9024	;;
9025      *)
9026	shlibpath_overrides_runpath=yes
9027	;;
9028      esac
9029  else
9030    shlibpath_overrides_runpath=yes
9031  fi
9032  ;;
9033
9034os2*)
9035  libname_spec='$name'
9036  shrext_cmds=".dll"
9037  need_lib_prefix=no
9038  library_names_spec='$libname${shared_ext} $libname.a'
9039  dynamic_linker='OS/2 ld.exe'
9040  shlibpath_var=LIBPATH
9041  ;;
9042
9043osf3* | osf4* | osf5*)
9044  version_type=osf
9045  need_lib_prefix=no
9046  need_version=no
9047  soname_spec='${libname}${release}${shared_ext}$major'
9048  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9049  shlibpath_var=LD_LIBRARY_PATH
9050  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9051  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9052  ;;
9053
9054solaris*)
9055  version_type=linux
9056  need_lib_prefix=no
9057  need_version=no
9058  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9059  soname_spec='${libname}${release}${shared_ext}$major'
9060  shlibpath_var=LD_LIBRARY_PATH
9061  shlibpath_overrides_runpath=yes
9062  hardcode_into_libs=yes
9063  # ldd complains unless libraries are executable
9064  postinstall_cmds='chmod +x $lib'
9065  ;;
9066
9067sunos4*)
9068  version_type=sunos
9069  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9070  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9071  shlibpath_var=LD_LIBRARY_PATH
9072  shlibpath_overrides_runpath=yes
9073  if test "$with_gnu_ld" = yes; then
9074    need_lib_prefix=no
9075  fi
9076  need_version=yes
9077  ;;
9078
9079sysv4 | sysv4.3*)
9080  version_type=linux
9081  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9082  soname_spec='${libname}${release}${shared_ext}$major'
9083  shlibpath_var=LD_LIBRARY_PATH
9084  case $host_vendor in
9085    sni)
9086      shlibpath_overrides_runpath=no
9087      need_lib_prefix=no
9088      export_dynamic_flag_spec='${wl}-Blargedynsym'
9089      runpath_var=LD_RUN_PATH
9090      ;;
9091    siemens)
9092      need_lib_prefix=no
9093      ;;
9094    motorola)
9095      need_lib_prefix=no
9096      need_version=no
9097      shlibpath_overrides_runpath=no
9098      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9099      ;;
9100  esac
9101  ;;
9102
9103sysv4*MP*)
9104  if test -d /usr/nec ;then
9105    version_type=linux
9106    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9107    soname_spec='$libname${shared_ext}.$major'
9108    shlibpath_var=LD_LIBRARY_PATH
9109  fi
9110  ;;
9111
9112sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9113  version_type=freebsd-elf
9114  need_lib_prefix=no
9115  need_version=no
9116  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9117  soname_spec='${libname}${release}${shared_ext}$major'
9118  shlibpath_var=LD_LIBRARY_PATH
9119  hardcode_into_libs=yes
9120  if test "$with_gnu_ld" = yes; then
9121    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9122    shlibpath_overrides_runpath=no
9123  else
9124    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9125    shlibpath_overrides_runpath=yes
9126    case $host_os in
9127      sco3.2v5*)
9128        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9129	;;
9130    esac
9131  fi
9132  sys_lib_dlsearch_path_spec='/usr/lib'
9133  ;;
9134
9135uts4*)
9136  version_type=linux
9137  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9138  soname_spec='${libname}${release}${shared_ext}$major'
9139  shlibpath_var=LD_LIBRARY_PATH
9140  ;;
9141
9142*)
9143  dynamic_linker=no
9144  ;;
9145esac
9146{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9147echo "${ECHO_T}$dynamic_linker" >&6; }
9148test "$dynamic_linker" = no && can_build_shared=no
9149
9150variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9151if test "$GCC" = yes; then
9152  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9153fi
9154
9155
9156{ echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9157echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
9158if test "${libltdl_cv_shlibext+set}" = set; then
9159  echo $ECHO_N "(cached) $ECHO_C" >&6
9160else
9161
9162module=yes
9163eval libltdl_cv_shlibext=$shrext_cmds
9164
9165fi
9166{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9167echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
9168if test -n "$libltdl_cv_shlibext"; then
9169
9170cat >>confdefs.h <<_ACEOF
9171#define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9172_ACEOF
9173
9174fi
9175
9176
9177{ echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
9178echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
9179if test "${libltdl_cv_shlibpath_var+set}" = set; then
9180  echo $ECHO_N "(cached) $ECHO_C" >&6
9181else
9182  libltdl_cv_shlibpath_var="$shlibpath_var"
9183fi
9184{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
9185echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
9186if test -n "$libltdl_cv_shlibpath_var"; then
9187
9188cat >>confdefs.h <<_ACEOF
9189#define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
9190_ACEOF
9191
9192fi
9193
9194
9195{ echo "$as_me:$LINENO: checking for the default library search path" >&5
9196echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
9197if test "${libltdl_cv_sys_search_path+set}" = set; then
9198  echo $ECHO_N "(cached) $ECHO_C" >&6
9199else
9200  libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9201fi
9202{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9203echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
9204if test -n "$libltdl_cv_sys_search_path"; then
9205  sys_search_path=
9206  for dir in $libltdl_cv_sys_search_path; do
9207    if test -z "$sys_search_path"; then
9208      sys_search_path="$dir"
9209    else
9210      sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9211    fi
9212  done
9213
9214cat >>confdefs.h <<_ACEOF
9215#define LTDL_SYSSEARCHPATH "$sys_search_path"
9216_ACEOF
9217
9218fi
9219
9220{ echo "$as_me:$LINENO: checking for objdir" >&5
9221echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9222if test "${libltdl_cv_objdir+set}" = set; then
9223  echo $ECHO_N "(cached) $ECHO_C" >&6
9224else
9225  libltdl_cv_objdir="$objdir"
9226  if test -n "$objdir"; then
9227    :
9228  else
9229    rm -f .libs 2>/dev/null
9230    mkdir .libs 2>/dev/null
9231    if test -d .libs; then
9232      libltdl_cv_objdir=.libs
9233    else
9234      # MS-DOS does not allow filenames that begin with a dot.
9235      libltdl_cv_objdir=_libs
9236    fi
9237  rmdir .libs 2>/dev/null
9238  fi
9239
9240fi
9241{ echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9242echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
9243
9244cat >>confdefs.h <<_ACEOF
9245#define LTDL_OBJDIR "$libltdl_cv_objdir/"
9246_ACEOF
9247
9248
9249
9250
9251
9252
9253# Check for command to grab the raw symbol name followed by C symbol from nm.
9254{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9255echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
9256if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9257  echo $ECHO_N "(cached) $ECHO_C" >&6
9258else
9259
9260# These are sane defaults that work on at least a few old systems.
9261# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
9262
9263# Character class describing NM global symbol codes.
9264symcode='[BCDEGRST]'
9265
9266# Regexp to match symbols that can be accessed directly from C.
9267sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9268
9269# Transform an extracted symbol line into a proper C declaration
9270lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9271
9272# Transform an extracted symbol line into symbol name and symbol address
9273lt_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'"
9274
9275# Define system-specific variables.
9276case $host_os in
9277aix*)
9278  symcode='[BCDT]'
9279  ;;
9280cygwin* | mingw* | pw32*)
9281  symcode='[ABCDGISTW]'
9282  ;;
9283hpux*) # Its linker distinguishes data from code symbols
9284  if test "$host_cpu" = ia64; then
9285    symcode='[ABCDEGRST]'
9286  fi
9287  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9288  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'"
9289  ;;
9290linux*)
9291  if test "$host_cpu" = ia64; then
9292    symcode='[ABCDGIRSTW]'
9293    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9294    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'"
9295  fi
9296  ;;
9297irix* | nonstopux*)
9298  symcode='[BCDEGRST]'
9299  ;;
9300osf*)
9301  symcode='[BCDEGQRST]'
9302  ;;
9303solaris*)
9304  symcode='[BDRT]'
9305  ;;
9306sco3.2v5*)
9307  symcode='[DT]'
9308  ;;
9309sysv4.2uw2*)
9310  symcode='[DT]'
9311  ;;
9312sysv5* | sco5v6* | unixware* | OpenUNIX*)
9313  symcode='[ABDT]'
9314  ;;
9315sysv4)
9316  symcode='[DFNSTU]'
9317  ;;
9318esac
9319
9320# Handle CRLF in mingw tool chain
9321opt_cr=
9322case $build_os in
9323mingw*)
9324  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9325  ;;
9326esac
9327
9328# If we're using GNU nm, then use its standard symbol codes.
9329case `$NM -V 2>&1` in
9330*GNU* | *'with BFD'*)
9331  symcode='[ABCDGIRSTW]' ;;
9332esac
9333
9334# Try without a prefix undercore, then with it.
9335for ac_symprfx in "" "_"; do
9336
9337  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9338  symxfrm="\\1 $ac_symprfx\\2 \\2"
9339
9340  # Write the raw and C identifiers.
9341  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ 	]\($symcode$symcode*\)[ 	][ 	]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9342
9343  # Check to see that the pipe works correctly.
9344  pipe_works=no
9345
9346  rm -f conftest*
9347  cat > conftest.$ac_ext <<EOF
9348#ifdef __cplusplus
9349extern "C" {
9350#endif
9351char nm_test_var;
9352void nm_test_func(){}
9353#ifdef __cplusplus
9354}
9355#endif
9356int main(){nm_test_var='a';nm_test_func();return(0);}
9357EOF
9358
9359  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9360  (eval $ac_compile) 2>&5
9361  ac_status=$?
9362  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9363  (exit $ac_status); }; then
9364    # Now try to grab the symbols.
9365    nlist=conftest.nm
9366    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
9367  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9368  ac_status=$?
9369  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9370  (exit $ac_status); } && test -s "$nlist"; then
9371      # Try sorting and uniquifying the output.
9372      if sort "$nlist" | uniq > "$nlist"T; then
9373	mv -f "$nlist"T "$nlist"
9374      else
9375	rm -f "$nlist"T
9376      fi
9377
9378      # Make sure that we snagged all the symbols we need.
9379      if grep ' nm_test_var$' "$nlist" >/dev/null; then
9380	if grep ' nm_test_func$' "$nlist" >/dev/null; then
9381	  cat <<EOF > conftest.$ac_ext
9382#ifdef __cplusplus
9383extern "C" {
9384#endif
9385
9386EOF
9387	  # Now generate the symbol file.
9388	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9389
9390	  cat <<EOF >> conftest.$ac_ext
9391#if defined (__STDC__) && __STDC__
9392# define lt_ptr_t void *
9393#else
9394# define lt_ptr_t char *
9395# define const
9396#endif
9397
9398/* The mapping between symbol names and symbols. */
9399const struct {
9400  const char *name;
9401  lt_ptr_t address;
9402}
9403lt_preloaded_symbols[] =
9404{
9405EOF
9406	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9407	  cat <<\EOF >> conftest.$ac_ext
9408  {0, (lt_ptr_t) 0}
9409};
9410
9411#ifdef __cplusplus
9412}
9413#endif
9414EOF
9415	  # Now try linking the two files.
9416	  mv conftest.$ac_objext conftstm.$ac_objext
9417	  lt_save_LIBS="$LIBS"
9418	  lt_save_CFLAGS="$CFLAGS"
9419	  LIBS="conftstm.$ac_objext"
9420	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9421	  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9422  (eval $ac_link) 2>&5
9423  ac_status=$?
9424  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9425  (exit $ac_status); } && test -s conftest${ac_exeext}; then
9426	    pipe_works=yes
9427	  fi
9428	  LIBS="$lt_save_LIBS"
9429	  CFLAGS="$lt_save_CFLAGS"
9430	else
9431	  echo "cannot find nm_test_func in $nlist" >&5
9432	fi
9433      else
9434	echo "cannot find nm_test_var in $nlist" >&5
9435      fi
9436    else
9437      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9438    fi
9439  else
9440    echo "$progname: failed program was:" >&5
9441    cat conftest.$ac_ext >&5
9442  fi
9443  rm -f conftest* conftst*
9444
9445  # Do not use the global_symbol_pipe unless it works.
9446  if test "$pipe_works" = yes; then
9447    break
9448  else
9449    lt_cv_sys_global_symbol_pipe=
9450  fi
9451done
9452
9453fi
9454
9455if test -z "$lt_cv_sys_global_symbol_pipe"; then
9456  lt_cv_sys_global_symbol_to_cdecl=
9457fi
9458if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9459  { echo "$as_me:$LINENO: result: failed" >&5
9460echo "${ECHO_T}failed" >&6; }
9461else
9462  { echo "$as_me:$LINENO: result: ok" >&5
9463echo "${ECHO_T}ok" >&6; }
9464fi
9465
9466
9467{ echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
9468echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
9469if test "${libltdl_cv_preloaded_symbols+set}" = set; then
9470  echo $ECHO_N "(cached) $ECHO_C" >&6
9471else
9472  if test -n "$lt_cv_sys_global_symbol_pipe"; then
9473    libltdl_cv_preloaded_symbols=yes
9474  else
9475    libltdl_cv_preloaded_symbols=no
9476  fi
9477
9478fi
9479{ echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
9480echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
9481if test x"$libltdl_cv_preloaded_symbols" = xyes; then
9482
9483cat >>confdefs.h <<\_ACEOF
9484#define HAVE_PRELOADED_SYMBOLS 1
9485_ACEOF
9486
9487fi
9488
9489LIBADD_DL=
9490
9491ac_ext=c
9492ac_cpp='$CPP $CPPFLAGS'
9493ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9494ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9495ac_compiler_gnu=$ac_cv_c_compiler_gnu
9496
9497
9498{ echo "$as_me:$LINENO: checking for shl_load" >&5
9499echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9500if test "${ac_cv_func_shl_load+set}" = set; then
9501  echo $ECHO_N "(cached) $ECHO_C" >&6
9502else
9503  cat >conftest.$ac_ext <<_ACEOF
9504/* confdefs.h.  */
9505_ACEOF
9506cat confdefs.h >>conftest.$ac_ext
9507cat >>conftest.$ac_ext <<_ACEOF
9508/* end confdefs.h.  */
9509/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9510   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9511#define shl_load innocuous_shl_load
9512
9513/* System header to define __stub macros and hopefully few prototypes,
9514    which can conflict with char shl_load (); below.
9515    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9516    <limits.h> exists even on freestanding compilers.  */
9517
9518#ifdef __STDC__
9519# include <limits.h>
9520#else
9521# include <assert.h>
9522#endif
9523
9524#undef shl_load
9525
9526/* Override any GCC internal prototype to avoid an error.
9527   Use char because int might match the return type of a GCC
9528   builtin and then its argument prototype would still apply.  */
9529#ifdef __cplusplus
9530extern "C"
9531#endif
9532char shl_load ();
9533/* The GNU C library defines this for functions which it implements
9534    to always fail with ENOSYS.  Some functions are actually named
9535    something starting with __ and the normal name is an alias.  */
9536#if defined __stub_shl_load || defined __stub___shl_load
9537choke me
9538#endif
9539
9540int
9541main ()
9542{
9543return shl_load ();
9544  ;
9545  return 0;
9546}
9547_ACEOF
9548rm -f conftest.$ac_objext conftest$ac_exeext
9549if { (ac_try="$ac_link"
9550case "(($ac_try" in
9551  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9552  *) ac_try_echo=$ac_try;;
9553esac
9554eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9555  (eval "$ac_link") 2>conftest.er1
9556  ac_status=$?
9557  grep -v '^ *+' conftest.er1 >conftest.err
9558  rm -f conftest.er1
9559  cat conftest.err >&5
9560  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9561  (exit $ac_status); } &&
9562	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9563  { (case "(($ac_try" in
9564  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9565  *) ac_try_echo=$ac_try;;
9566esac
9567eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9568  (eval "$ac_try") 2>&5
9569  ac_status=$?
9570  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9571  (exit $ac_status); }; } &&
9572	 { ac_try='test -s conftest$ac_exeext'
9573  { (case "(($ac_try" in
9574  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9575  *) ac_try_echo=$ac_try;;
9576esac
9577eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9578  (eval "$ac_try") 2>&5
9579  ac_status=$?
9580  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9581  (exit $ac_status); }; }; then
9582  ac_cv_func_shl_load=yes
9583else
9584  echo "$as_me: failed program was:" >&5
9585sed 's/^/| /' conftest.$ac_ext >&5
9586
9587	ac_cv_func_shl_load=no
9588fi
9589
9590rm -f core conftest.err conftest.$ac_objext \
9591      conftest$ac_exeext conftest.$ac_ext
9592fi
9593{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9594echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9595if test $ac_cv_func_shl_load = yes; then
9596
9597cat >>confdefs.h <<\_ACEOF
9598#define HAVE_SHL_LOAD 1
9599_ACEOF
9600
9601else
9602  { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9603echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9604if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9605  echo $ECHO_N "(cached) $ECHO_C" >&6
9606else
9607  ac_check_lib_save_LIBS=$LIBS
9608LIBS="-ldld  $LIBS"
9609cat >conftest.$ac_ext <<_ACEOF
9610/* confdefs.h.  */
9611_ACEOF
9612cat confdefs.h >>conftest.$ac_ext
9613cat >>conftest.$ac_ext <<_ACEOF
9614/* end confdefs.h.  */
9615
9616/* Override any GCC internal prototype to avoid an error.
9617   Use char because int might match the return type of a GCC
9618   builtin and then its argument prototype would still apply.  */
9619#ifdef __cplusplus
9620extern "C"
9621#endif
9622char shl_load ();
9623int
9624main ()
9625{
9626return shl_load ();
9627  ;
9628  return 0;
9629}
9630_ACEOF
9631rm -f conftest.$ac_objext conftest$ac_exeext
9632if { (ac_try="$ac_link"
9633case "(($ac_try" in
9634  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9635  *) ac_try_echo=$ac_try;;
9636esac
9637eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9638  (eval "$ac_link") 2>conftest.er1
9639  ac_status=$?
9640  grep -v '^ *+' conftest.er1 >conftest.err
9641  rm -f conftest.er1
9642  cat conftest.err >&5
9643  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9644  (exit $ac_status); } &&
9645	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9646  { (case "(($ac_try" in
9647  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9648  *) ac_try_echo=$ac_try;;
9649esac
9650eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9651  (eval "$ac_try") 2>&5
9652  ac_status=$?
9653  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9654  (exit $ac_status); }; } &&
9655	 { ac_try='test -s conftest$ac_exeext'
9656  { (case "(($ac_try" in
9657  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9658  *) ac_try_echo=$ac_try;;
9659esac
9660eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9661  (eval "$ac_try") 2>&5
9662  ac_status=$?
9663  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9664  (exit $ac_status); }; }; then
9665  ac_cv_lib_dld_shl_load=yes
9666else
9667  echo "$as_me: failed program was:" >&5
9668sed 's/^/| /' conftest.$ac_ext >&5
9669
9670	ac_cv_lib_dld_shl_load=no
9671fi
9672
9673rm -f core conftest.err conftest.$ac_objext \
9674      conftest$ac_exeext conftest.$ac_ext
9675LIBS=$ac_check_lib_save_LIBS
9676fi
9677{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9678echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9679if test $ac_cv_lib_dld_shl_load = yes; then
9680
9681cat >>confdefs.h <<\_ACEOF
9682#define HAVE_SHL_LOAD 1
9683_ACEOF
9684
9685	LIBADD_DL="$LIBADD_DL -ldld"
9686else
9687  { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9688echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9689if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9690  echo $ECHO_N "(cached) $ECHO_C" >&6
9691else
9692  ac_check_lib_save_LIBS=$LIBS
9693LIBS="-ldl  $LIBS"
9694cat >conftest.$ac_ext <<_ACEOF
9695/* confdefs.h.  */
9696_ACEOF
9697cat confdefs.h >>conftest.$ac_ext
9698cat >>conftest.$ac_ext <<_ACEOF
9699/* end confdefs.h.  */
9700
9701/* Override any GCC internal prototype to avoid an error.
9702   Use char because int might match the return type of a GCC
9703   builtin and then its argument prototype would still apply.  */
9704#ifdef __cplusplus
9705extern "C"
9706#endif
9707char dlopen ();
9708int
9709main ()
9710{
9711return dlopen ();
9712  ;
9713  return 0;
9714}
9715_ACEOF
9716rm -f conftest.$ac_objext conftest$ac_exeext
9717if { (ac_try="$ac_link"
9718case "(($ac_try" in
9719  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9720  *) ac_try_echo=$ac_try;;
9721esac
9722eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9723  (eval "$ac_link") 2>conftest.er1
9724  ac_status=$?
9725  grep -v '^ *+' conftest.er1 >conftest.err
9726  rm -f conftest.er1
9727  cat conftest.err >&5
9728  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9729  (exit $ac_status); } &&
9730	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9731  { (case "(($ac_try" in
9732  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9733  *) ac_try_echo=$ac_try;;
9734esac
9735eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9736  (eval "$ac_try") 2>&5
9737  ac_status=$?
9738  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9739  (exit $ac_status); }; } &&
9740	 { ac_try='test -s conftest$ac_exeext'
9741  { (case "(($ac_try" in
9742  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9743  *) ac_try_echo=$ac_try;;
9744esac
9745eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9746  (eval "$ac_try") 2>&5
9747  ac_status=$?
9748  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9749  (exit $ac_status); }; }; then
9750  ac_cv_lib_dl_dlopen=yes
9751else
9752  echo "$as_me: failed program was:" >&5
9753sed 's/^/| /' conftest.$ac_ext >&5
9754
9755	ac_cv_lib_dl_dlopen=no
9756fi
9757
9758rm -f core conftest.err conftest.$ac_objext \
9759      conftest$ac_exeext conftest.$ac_ext
9760LIBS=$ac_check_lib_save_LIBS
9761fi
9762{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9763echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9764if test $ac_cv_lib_dl_dlopen = yes; then
9765
9766cat >>confdefs.h <<\_ACEOF
9767#define HAVE_LIBDL 1
9768_ACEOF
9769
9770	        LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
9771else
9772  cat >conftest.$ac_ext <<_ACEOF
9773/* confdefs.h.  */
9774_ACEOF
9775cat confdefs.h >>conftest.$ac_ext
9776cat >>conftest.$ac_ext <<_ACEOF
9777/* end confdefs.h.  */
9778#if HAVE_DLFCN_H
9779#  include <dlfcn.h>
9780#endif
9781
9782int
9783main ()
9784{
9785dlopen(0, 0);
9786  ;
9787  return 0;
9788}
9789_ACEOF
9790rm -f conftest.$ac_objext conftest$ac_exeext
9791if { (ac_try="$ac_link"
9792case "(($ac_try" in
9793  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9794  *) ac_try_echo=$ac_try;;
9795esac
9796eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9797  (eval "$ac_link") 2>conftest.er1
9798  ac_status=$?
9799  grep -v '^ *+' conftest.er1 >conftest.err
9800  rm -f conftest.er1
9801  cat conftest.err >&5
9802  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9803  (exit $ac_status); } &&
9804	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9805  { (case "(($ac_try" in
9806  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9807  *) ac_try_echo=$ac_try;;
9808esac
9809eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9810  (eval "$ac_try") 2>&5
9811  ac_status=$?
9812  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9813  (exit $ac_status); }; } &&
9814	 { ac_try='test -s conftest$ac_exeext'
9815  { (case "(($ac_try" in
9816  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9817  *) ac_try_echo=$ac_try;;
9818esac
9819eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9820  (eval "$ac_try") 2>&5
9821  ac_status=$?
9822  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9823  (exit $ac_status); }; }; then
9824
9825cat >>confdefs.h <<\_ACEOF
9826#define HAVE_LIBDL 1
9827_ACEOF
9828 libltdl_cv_func_dlopen="yes"
9829else
9830  echo "$as_me: failed program was:" >&5
9831sed 's/^/| /' conftest.$ac_ext >&5
9832
9833	{ echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9834echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
9835if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9836  echo $ECHO_N "(cached) $ECHO_C" >&6
9837else
9838  ac_check_lib_save_LIBS=$LIBS
9839LIBS="-lsvld  $LIBS"
9840cat >conftest.$ac_ext <<_ACEOF
9841/* confdefs.h.  */
9842_ACEOF
9843cat confdefs.h >>conftest.$ac_ext
9844cat >>conftest.$ac_ext <<_ACEOF
9845/* end confdefs.h.  */
9846
9847/* Override any GCC internal prototype to avoid an error.
9848   Use char because int might match the return type of a GCC
9849   builtin and then its argument prototype would still apply.  */
9850#ifdef __cplusplus
9851extern "C"
9852#endif
9853char dlopen ();
9854int
9855main ()
9856{
9857return dlopen ();
9858  ;
9859  return 0;
9860}
9861_ACEOF
9862rm -f conftest.$ac_objext conftest$ac_exeext
9863if { (ac_try="$ac_link"
9864case "(($ac_try" in
9865  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9866  *) ac_try_echo=$ac_try;;
9867esac
9868eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9869  (eval "$ac_link") 2>conftest.er1
9870  ac_status=$?
9871  grep -v '^ *+' conftest.er1 >conftest.err
9872  rm -f conftest.er1
9873  cat conftest.err >&5
9874  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9875  (exit $ac_status); } &&
9876	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9877  { (case "(($ac_try" in
9878  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9879  *) ac_try_echo=$ac_try;;
9880esac
9881eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9882  (eval "$ac_try") 2>&5
9883  ac_status=$?
9884  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9885  (exit $ac_status); }; } &&
9886	 { ac_try='test -s conftest$ac_exeext'
9887  { (case "(($ac_try" in
9888  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9889  *) ac_try_echo=$ac_try;;
9890esac
9891eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9892  (eval "$ac_try") 2>&5
9893  ac_status=$?
9894  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9895  (exit $ac_status); }; }; then
9896  ac_cv_lib_svld_dlopen=yes
9897else
9898  echo "$as_me: failed program was:" >&5
9899sed 's/^/| /' conftest.$ac_ext >&5
9900
9901	ac_cv_lib_svld_dlopen=no
9902fi
9903
9904rm -f core conftest.err conftest.$ac_objext \
9905      conftest$ac_exeext conftest.$ac_ext
9906LIBS=$ac_check_lib_save_LIBS
9907fi
9908{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9909echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
9910if test $ac_cv_lib_svld_dlopen = yes; then
9911
9912cat >>confdefs.h <<\_ACEOF
9913#define HAVE_LIBDL 1
9914_ACEOF
9915
9916	            LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
9917else
9918  { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9919echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
9920if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9921  echo $ECHO_N "(cached) $ECHO_C" >&6
9922else
9923  ac_check_lib_save_LIBS=$LIBS
9924LIBS="-ldld  $LIBS"
9925cat >conftest.$ac_ext <<_ACEOF
9926/* confdefs.h.  */
9927_ACEOF
9928cat confdefs.h >>conftest.$ac_ext
9929cat >>conftest.$ac_ext <<_ACEOF
9930/* end confdefs.h.  */
9931
9932/* Override any GCC internal prototype to avoid an error.
9933   Use char because int might match the return type of a GCC
9934   builtin and then its argument prototype would still apply.  */
9935#ifdef __cplusplus
9936extern "C"
9937#endif
9938char dld_link ();
9939int
9940main ()
9941{
9942return dld_link ();
9943  ;
9944  return 0;
9945}
9946_ACEOF
9947rm -f conftest.$ac_objext conftest$ac_exeext
9948if { (ac_try="$ac_link"
9949case "(($ac_try" in
9950  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9951  *) ac_try_echo=$ac_try;;
9952esac
9953eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9954  (eval "$ac_link") 2>conftest.er1
9955  ac_status=$?
9956  grep -v '^ *+' conftest.er1 >conftest.err
9957  rm -f conftest.er1
9958  cat conftest.err >&5
9959  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9960  (exit $ac_status); } &&
9961	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9962  { (case "(($ac_try" in
9963  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9964  *) ac_try_echo=$ac_try;;
9965esac
9966eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9967  (eval "$ac_try") 2>&5
9968  ac_status=$?
9969  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9970  (exit $ac_status); }; } &&
9971	 { ac_try='test -s conftest$ac_exeext'
9972  { (case "(($ac_try" in
9973  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9974  *) ac_try_echo=$ac_try;;
9975esac
9976eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9977  (eval "$ac_try") 2>&5
9978  ac_status=$?
9979  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9980  (exit $ac_status); }; }; then
9981  ac_cv_lib_dld_dld_link=yes
9982else
9983  echo "$as_me: failed program was:" >&5
9984sed 's/^/| /' conftest.$ac_ext >&5
9985
9986	ac_cv_lib_dld_dld_link=no
9987fi
9988
9989rm -f core conftest.err conftest.$ac_objext \
9990      conftest$ac_exeext conftest.$ac_ext
9991LIBS=$ac_check_lib_save_LIBS
9992fi
9993{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9994echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
9995if test $ac_cv_lib_dld_dld_link = yes; then
9996
9997cat >>confdefs.h <<\_ACEOF
9998#define HAVE_DLD 1
9999_ACEOF
10000
10001	 	LIBADD_DL="$LIBADD_DL -ldld"
10002else
10003  { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
10004echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
10005if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
10006  echo $ECHO_N "(cached) $ECHO_C" >&6
10007else
10008  cat >conftest.$ac_ext <<_ACEOF
10009/* confdefs.h.  */
10010_ACEOF
10011cat confdefs.h >>conftest.$ac_ext
10012cat >>conftest.$ac_ext <<_ACEOF
10013/* end confdefs.h.  */
10014/* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10015   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10016#define _dyld_func_lookup innocuous__dyld_func_lookup
10017
10018/* System header to define __stub macros and hopefully few prototypes,
10019    which can conflict with char _dyld_func_lookup (); below.
10020    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10021    <limits.h> exists even on freestanding compilers.  */
10022
10023#ifdef __STDC__
10024# include <limits.h>
10025#else
10026# include <assert.h>
10027#endif
10028
10029#undef _dyld_func_lookup
10030
10031/* Override any GCC internal prototype to avoid an error.
10032   Use char because int might match the return type of a GCC
10033   builtin and then its argument prototype would still apply.  */
10034#ifdef __cplusplus
10035extern "C"
10036#endif
10037char _dyld_func_lookup ();
10038/* The GNU C library defines this for functions which it implements
10039    to always fail with ENOSYS.  Some functions are actually named
10040    something starting with __ and the normal name is an alias.  */
10041#if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
10042choke me
10043#endif
10044
10045int
10046main ()
10047{
10048return _dyld_func_lookup ();
10049  ;
10050  return 0;
10051}
10052_ACEOF
10053rm -f conftest.$ac_objext conftest$ac_exeext
10054if { (ac_try="$ac_link"
10055case "(($ac_try" in
10056  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10057  *) ac_try_echo=$ac_try;;
10058esac
10059eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10060  (eval "$ac_link") 2>conftest.er1
10061  ac_status=$?
10062  grep -v '^ *+' conftest.er1 >conftest.err
10063  rm -f conftest.er1
10064  cat conftest.err >&5
10065  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10066  (exit $ac_status); } &&
10067	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10068  { (case "(($ac_try" in
10069  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10070  *) ac_try_echo=$ac_try;;
10071esac
10072eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10073  (eval "$ac_try") 2>&5
10074  ac_status=$?
10075  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10076  (exit $ac_status); }; } &&
10077	 { ac_try='test -s conftest$ac_exeext'
10078  { (case "(($ac_try" in
10079  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10080  *) ac_try_echo=$ac_try;;
10081esac
10082eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10083  (eval "$ac_try") 2>&5
10084  ac_status=$?
10085  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10086  (exit $ac_status); }; }; then
10087  ac_cv_func__dyld_func_lookup=yes
10088else
10089  echo "$as_me: failed program was:" >&5
10090sed 's/^/| /' conftest.$ac_ext >&5
10091
10092	ac_cv_func__dyld_func_lookup=no
10093fi
10094
10095rm -f core conftest.err conftest.$ac_objext \
10096      conftest$ac_exeext conftest.$ac_ext
10097fi
10098{ echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10099echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
10100if test $ac_cv_func__dyld_func_lookup = yes; then
10101
10102cat >>confdefs.h <<\_ACEOF
10103#define HAVE_DYLD 1
10104_ACEOF
10105
10106fi
10107
10108
10109fi
10110
10111
10112fi
10113
10114
10115fi
10116
10117rm -f core conftest.err conftest.$ac_objext \
10118      conftest$ac_exeext conftest.$ac_ext
10119
10120fi
10121
10122
10123fi
10124
10125
10126fi
10127
10128
10129if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10130then
10131  lt_save_LIBS="$LIBS"
10132  LIBS="$LIBS $LIBADD_DL"
10133
10134for ac_func in dlerror
10135do
10136as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10137{ echo "$as_me:$LINENO: checking for $ac_func" >&5
10138echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10139if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10140  echo $ECHO_N "(cached) $ECHO_C" >&6
10141else
10142  cat >conftest.$ac_ext <<_ACEOF
10143/* confdefs.h.  */
10144_ACEOF
10145cat confdefs.h >>conftest.$ac_ext
10146cat >>conftest.$ac_ext <<_ACEOF
10147/* end confdefs.h.  */
10148/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10149   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10150#define $ac_func innocuous_$ac_func
10151
10152/* System header to define __stub macros and hopefully few prototypes,
10153    which can conflict with char $ac_func (); below.
10154    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10155    <limits.h> exists even on freestanding compilers.  */
10156
10157#ifdef __STDC__
10158# include <limits.h>
10159#else
10160# include <assert.h>
10161#endif
10162
10163#undef $ac_func
10164
10165/* Override any GCC internal prototype to avoid an error.
10166   Use char because int might match the return type of a GCC
10167   builtin and then its argument prototype would still apply.  */
10168#ifdef __cplusplus
10169extern "C"
10170#endif
10171char $ac_func ();
10172/* The GNU C library defines this for functions which it implements
10173    to always fail with ENOSYS.  Some functions are actually named
10174    something starting with __ and the normal name is an alias.  */
10175#if defined __stub_$ac_func || defined __stub___$ac_func
10176choke me
10177#endif
10178
10179int
10180main ()
10181{
10182return $ac_func ();
10183  ;
10184  return 0;
10185}
10186_ACEOF
10187rm -f conftest.$ac_objext conftest$ac_exeext
10188if { (ac_try="$ac_link"
10189case "(($ac_try" in
10190  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10191  *) ac_try_echo=$ac_try;;
10192esac
10193eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10194  (eval "$ac_link") 2>conftest.er1
10195  ac_status=$?
10196  grep -v '^ *+' conftest.er1 >conftest.err
10197  rm -f conftest.er1
10198  cat conftest.err >&5
10199  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10200  (exit $ac_status); } &&
10201	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10202  { (case "(($ac_try" in
10203  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10204  *) ac_try_echo=$ac_try;;
10205esac
10206eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10207  (eval "$ac_try") 2>&5
10208  ac_status=$?
10209  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10210  (exit $ac_status); }; } &&
10211	 { ac_try='test -s conftest$ac_exeext'
10212  { (case "(($ac_try" in
10213  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10214  *) ac_try_echo=$ac_try;;
10215esac
10216eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10217  (eval "$ac_try") 2>&5
10218  ac_status=$?
10219  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10220  (exit $ac_status); }; }; then
10221  eval "$as_ac_var=yes"
10222else
10223  echo "$as_me: failed program was:" >&5
10224sed 's/^/| /' conftest.$ac_ext >&5
10225
10226	eval "$as_ac_var=no"
10227fi
10228
10229rm -f core conftest.err conftest.$ac_objext \
10230      conftest$ac_exeext conftest.$ac_ext
10231fi
10232ac_res=`eval echo '${'$as_ac_var'}'`
10233	       { echo "$as_me:$LINENO: result: $ac_res" >&5
10234echo "${ECHO_T}$ac_res" >&6; }
10235if test `eval echo '${'$as_ac_var'}'` = yes; then
10236  cat >>confdefs.h <<_ACEOF
10237#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10238_ACEOF
10239
10240fi
10241done
10242
10243  LIBS="$lt_save_LIBS"
10244fi
10245ac_ext=c
10246ac_cpp='$CPP $CPPFLAGS'
10247ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10248ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10249ac_compiler_gnu=$ac_cv_c_compiler_gnu
10250
10251
10252
10253{ echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10254echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
10255if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10256  echo $ECHO_N "(cached) $ECHO_C" >&6
10257else
10258  ac_cv_sys_symbol_underscore=no
10259  cat > conftest.$ac_ext <<EOF
10260void nm_test_func(){}
10261int main(){nm_test_func;return 0;}
10262EOF
10263  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10264  (eval $ac_compile) 2>&5
10265  ac_status=$?
10266  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10267  (exit $ac_status); }; then
10268    # Now try to grab the symbols.
10269    ac_nlist=conftest.nm
10270    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
10271  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10272  ac_status=$?
10273  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10274  (exit $ac_status); } && test -s "$ac_nlist"; then
10275      # See whether the symbols have a leading underscore.
10276      if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10277        ac_cv_sys_symbol_underscore=yes
10278      else
10279        if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
10280	  :
10281        else
10282	  echo "configure: cannot find nm_test_func in $ac_nlist" >&5
10283        fi
10284      fi
10285    else
10286      echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
10287    fi
10288  else
10289    echo "configure: failed program was:" >&5
10290    cat conftest.c >&5
10291  fi
10292  rm -rf conftest*
10293
10294fi
10295{ echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
10296echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
10297
10298
10299if test x"$ac_cv_sys_symbol_underscore" = xyes; then
10300  if test x"$libltdl_cv_func_dlopen" = xyes ||
10301     test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
10302	{ echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
10303echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
10304if test "${libltdl_cv_need_uscore+set}" = set; then
10305  echo $ECHO_N "(cached) $ECHO_C" >&6
10306else
10307  libltdl_cv_need_uscore=unknown
10308          save_LIBS="$LIBS"
10309          LIBS="$LIBS $LIBADD_DL"
10310	  if test "$cross_compiling" = yes; then :
10311  libltdl_cv_need_uscore=cross
10312else
10313  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10314  lt_status=$lt_dlunknown
10315  cat > conftest.$ac_ext <<EOF
10316#line 10316 "configure"
10317#include "confdefs.h"
10318
10319#if HAVE_DLFCN_H
10320#include <dlfcn.h>
10321#endif
10322
10323#include <stdio.h>
10324
10325#ifdef RTLD_GLOBAL
10326#  define LT_DLGLOBAL		RTLD_GLOBAL
10327#else
10328#  ifdef DL_GLOBAL
10329#    define LT_DLGLOBAL		DL_GLOBAL
10330#  else
10331#    define LT_DLGLOBAL		0
10332#  endif
10333#endif
10334
10335/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10336   find out it does not work in some platform. */
10337#ifndef LT_DLLAZY_OR_NOW
10338#  ifdef RTLD_LAZY
10339#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
10340#  else
10341#    ifdef DL_LAZY
10342#      define LT_DLLAZY_OR_NOW		DL_LAZY
10343#    else
10344#      ifdef RTLD_NOW
10345#        define LT_DLLAZY_OR_NOW	RTLD_NOW
10346#      else
10347#        ifdef DL_NOW
10348#          define LT_DLLAZY_OR_NOW	DL_NOW
10349#        else
10350#          define LT_DLLAZY_OR_NOW	0
10351#        endif
10352#      endif
10353#    endif
10354#  endif
10355#endif
10356
10357#ifdef __cplusplus
10358extern "C" void exit (int);
10359#endif
10360
10361void fnord() { int i=42;}
10362int main ()
10363{
10364  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10365  int status = $lt_dlunknown;
10366
10367  if (self)
10368    {
10369      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10370      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10371      /* dlclose (self); */
10372    }
10373  else
10374    puts (dlerror ());
10375
10376    exit (status);
10377}
10378EOF
10379  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10380  (eval $ac_link) 2>&5
10381  ac_status=$?
10382  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10383  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10384    (./conftest; exit; ) >&5 2>/dev/null
10385    lt_status=$?
10386    case x$lt_status in
10387      x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
10388      x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
10389      x$lt_dlunknown|x*)  ;;
10390    esac
10391  else :
10392    # compilation failed
10393
10394  fi
10395fi
10396rm -fr conftest*
10397
10398	  LIBS="$save_LIBS"
10399
10400fi
10401{ echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
10402echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
10403  fi
10404fi
10405
10406if test x"$libltdl_cv_need_uscore" = xyes; then
10407
10408cat >>confdefs.h <<\_ACEOF
10409#define NEED_USCORE 1
10410_ACEOF
10411
10412fi
10413
10414
10415{ echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
10416echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
10417if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
10418  echo $ECHO_N "(cached) $ECHO_C" >&6
10419else
10420  # PORTME does your system automatically load deplibs for dlopen?
10421  # or its logical equivalent (e.g. shl_load for HP-UX < 11)
10422  # For now, we just catch OSes we know something about -- in the
10423  # future, we'll try test this programmatically.
10424  libltdl_cv_sys_dlopen_deplibs=unknown
10425  case "$host_os" in
10426  aix3*|aix4.1.*|aix4.2.*)
10427    # Unknown whether this is true for these versions of AIX, but
10428    # we want this `case' here to explicitly catch those versions.
10429    libltdl_cv_sys_dlopen_deplibs=unknown
10430    ;;
10431  aix[45]*)
10432    libltdl_cv_sys_dlopen_deplibs=yes
10433    ;;
10434  darwin*)
10435    # Assuming the user has installed a libdl from somewhere, this is true
10436    # If you are looking for one http://www.opendarwin.org/projects/dlcompat
10437    libltdl_cv_sys_dlopen_deplibs=yes
10438    ;;
10439  gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
10440    # GNU and its variants, using gnu ld.so (Glibc)
10441    libltdl_cv_sys_dlopen_deplibs=yes
10442    ;;
10443  hpux10*|hpux11*)
10444    libltdl_cv_sys_dlopen_deplibs=yes
10445    ;;
10446  interix*)
10447    libltdl_cv_sys_dlopen_deplibs=yes
10448    ;;
10449  irix[12345]*|irix6.[01]*)
10450    # Catch all versions of IRIX before 6.2, and indicate that we don't
10451    # know how it worked for any of those versions.
10452    libltdl_cv_sys_dlopen_deplibs=unknown
10453    ;;
10454  irix*)
10455    # The case above catches anything before 6.2, and it's known that
10456    # at 6.2 and later dlopen does load deplibs.
10457    libltdl_cv_sys_dlopen_deplibs=yes
10458    ;;
10459  netbsd*)
10460    libltdl_cv_sys_dlopen_deplibs=yes
10461    ;;
10462  openbsd*)
10463    libltdl_cv_sys_dlopen_deplibs=yes
10464    ;;
10465  osf[1234]*)
10466    # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
10467    # it did *not* use an RPATH in a shared library to find objects the
10468    # library depends on, so we explicitly say `no'.
10469    libltdl_cv_sys_dlopen_deplibs=no
10470    ;;
10471  osf5.0|osf5.0a|osf5.1)
10472    # dlopen *does* load deplibs and with the right loader patch applied
10473    # it even uses RPATH in a shared library to search for shared objects
10474    # that the library depends on, but there's no easy way to know if that
10475    # patch is installed.  Since this is the case, all we can really
10476    # say is unknown -- it depends on the patch being installed.  If
10477    # it is, this changes to `yes'.  Without it, it would be `no'.
10478    libltdl_cv_sys_dlopen_deplibs=unknown
10479    ;;
10480  osf*)
10481    # the two cases above should catch all versions of osf <= 5.1.  Read
10482    # the comments above for what we know about them.
10483    # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
10484    # is used to find them so we can finally say `yes'.
10485    libltdl_cv_sys_dlopen_deplibs=yes
10486    ;;
10487  solaris*)
10488    libltdl_cv_sys_dlopen_deplibs=yes
10489    ;;
10490  sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10491    libltdl_cv_sys_dlopen_deplibs=yes
10492    ;;
10493  esac
10494
10495fi
10496{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
10497echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
10498if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
10499
10500cat >>confdefs.h <<\_ACEOF
10501#define LTDL_DLOPEN_DEPLIBS 1
10502_ACEOF
10503
10504fi
10505
10506
10507for ac_header in argz.h
10508do
10509as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10510if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10511  { echo "$as_me:$LINENO: checking for $ac_header" >&5
10512echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10513if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10514  echo $ECHO_N "(cached) $ECHO_C" >&6
10515fi
10516ac_res=`eval echo '${'$as_ac_Header'}'`
10517	       { echo "$as_me:$LINENO: result: $ac_res" >&5
10518echo "${ECHO_T}$ac_res" >&6; }
10519else
10520  # Is the header compilable?
10521{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
10522echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10523cat >conftest.$ac_ext <<_ACEOF
10524/* confdefs.h.  */
10525_ACEOF
10526cat confdefs.h >>conftest.$ac_ext
10527cat >>conftest.$ac_ext <<_ACEOF
10528/* end confdefs.h.  */
10529$ac_includes_default
10530#include <$ac_header>
10531_ACEOF
10532rm -f conftest.$ac_objext
10533if { (ac_try="$ac_compile"
10534case "(($ac_try" in
10535  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10536  *) ac_try_echo=$ac_try;;
10537esac
10538eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10539  (eval "$ac_compile") 2>conftest.er1
10540  ac_status=$?
10541  grep -v '^ *+' conftest.er1 >conftest.err
10542  rm -f conftest.er1
10543  cat conftest.err >&5
10544  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10545  (exit $ac_status); } &&
10546	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10547  { (case "(($ac_try" in
10548  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10549  *) ac_try_echo=$ac_try;;
10550esac
10551eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10552  (eval "$ac_try") 2>&5
10553  ac_status=$?
10554  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10555  (exit $ac_status); }; } &&
10556	 { ac_try='test -s conftest.$ac_objext'
10557  { (case "(($ac_try" in
10558  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10559  *) ac_try_echo=$ac_try;;
10560esac
10561eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10562  (eval "$ac_try") 2>&5
10563  ac_status=$?
10564  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10565  (exit $ac_status); }; }; then
10566  ac_header_compiler=yes
10567else
10568  echo "$as_me: failed program was:" >&5
10569sed 's/^/| /' conftest.$ac_ext >&5
10570
10571	ac_header_compiler=no
10572fi
10573
10574rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10575{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10576echo "${ECHO_T}$ac_header_compiler" >&6; }
10577
10578# Is the header present?
10579{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
10580echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10581cat >conftest.$ac_ext <<_ACEOF
10582/* confdefs.h.  */
10583_ACEOF
10584cat confdefs.h >>conftest.$ac_ext
10585cat >>conftest.$ac_ext <<_ACEOF
10586/* end confdefs.h.  */
10587#include <$ac_header>
10588_ACEOF
10589if { (ac_try="$ac_cpp conftest.$ac_ext"
10590case "(($ac_try" in
10591  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10592  *) ac_try_echo=$ac_try;;
10593esac
10594eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10595  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10596  ac_status=$?
10597  grep -v '^ *+' conftest.er1 >conftest.err
10598  rm -f conftest.er1
10599  cat conftest.err >&5
10600  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10601  (exit $ac_status); } >/dev/null; then
10602  if test -s conftest.err; then
10603    ac_cpp_err=$ac_c_preproc_warn_flag
10604    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10605  else
10606    ac_cpp_err=
10607  fi
10608else
10609  ac_cpp_err=yes
10610fi
10611if test -z "$ac_cpp_err"; then
10612  ac_header_preproc=yes
10613else
10614  echo "$as_me: failed program was:" >&5
10615sed 's/^/| /' conftest.$ac_ext >&5
10616
10617  ac_header_preproc=no
10618fi
10619
10620rm -f conftest.err conftest.$ac_ext
10621{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10622echo "${ECHO_T}$ac_header_preproc" >&6; }
10623
10624# So?  What about this header?
10625case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10626  yes:no: )
10627    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10628echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10629    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10630echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10631    ac_header_preproc=yes
10632    ;;
10633  no:yes:* )
10634    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10635echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10636    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10637echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10638    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10639echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10640    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10641echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10642    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10643echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10644    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10645echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10646    ( cat <<\_ASBOX
10647## ------------------------------------ ##
10648## Report this to http://llvm.org/bugs/ ##
10649## ------------------------------------ ##
10650_ASBOX
10651     ) | sed "s/^/$as_me: WARNING:     /" >&2
10652    ;;
10653esac
10654{ echo "$as_me:$LINENO: checking for $ac_header" >&5
10655echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10656if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10657  echo $ECHO_N "(cached) $ECHO_C" >&6
10658else
10659  eval "$as_ac_Header=\$ac_header_preproc"
10660fi
10661ac_res=`eval echo '${'$as_ac_Header'}'`
10662	       { echo "$as_me:$LINENO: result: $ac_res" >&5
10663echo "${ECHO_T}$ac_res" >&6; }
10664
10665fi
10666if test `eval echo '${'$as_ac_Header'}'` = yes; then
10667  cat >>confdefs.h <<_ACEOF
10668#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10669_ACEOF
10670
10671fi
10672
10673done
10674
10675
10676{ echo "$as_me:$LINENO: checking for error_t" >&5
10677echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
10678if test "${ac_cv_type_error_t+set}" = set; then
10679  echo $ECHO_N "(cached) $ECHO_C" >&6
10680else
10681  cat >conftest.$ac_ext <<_ACEOF
10682/* confdefs.h.  */
10683_ACEOF
10684cat confdefs.h >>conftest.$ac_ext
10685cat >>conftest.$ac_ext <<_ACEOF
10686/* end confdefs.h.  */
10687#if HAVE_ARGZ_H
10688#  include <argz.h>
10689#endif
10690
10691typedef error_t ac__type_new_;
10692int
10693main ()
10694{
10695if ((ac__type_new_ *) 0)
10696  return 0;
10697if (sizeof (ac__type_new_))
10698  return 0;
10699  ;
10700  return 0;
10701}
10702_ACEOF
10703rm -f conftest.$ac_objext
10704if { (ac_try="$ac_compile"
10705case "(($ac_try" in
10706  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10707  *) ac_try_echo=$ac_try;;
10708esac
10709eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10710  (eval "$ac_compile") 2>conftest.er1
10711  ac_status=$?
10712  grep -v '^ *+' conftest.er1 >conftest.err
10713  rm -f conftest.er1
10714  cat conftest.err >&5
10715  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10716  (exit $ac_status); } &&
10717	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10718  { (case "(($ac_try" in
10719  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10720  *) ac_try_echo=$ac_try;;
10721esac
10722eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10723  (eval "$ac_try") 2>&5
10724  ac_status=$?
10725  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10726  (exit $ac_status); }; } &&
10727	 { ac_try='test -s conftest.$ac_objext'
10728  { (case "(($ac_try" in
10729  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10730  *) ac_try_echo=$ac_try;;
10731esac
10732eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10733  (eval "$ac_try") 2>&5
10734  ac_status=$?
10735  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10736  (exit $ac_status); }; }; then
10737  ac_cv_type_error_t=yes
10738else
10739  echo "$as_me: failed program was:" >&5
10740sed 's/^/| /' conftest.$ac_ext >&5
10741
10742	ac_cv_type_error_t=no
10743fi
10744
10745rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10746fi
10747{ echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
10748echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
10749if test $ac_cv_type_error_t = yes; then
10750
10751cat >>confdefs.h <<_ACEOF
10752#define HAVE_ERROR_T 1
10753_ACEOF
10754
10755
10756else
10757
10758cat >>confdefs.h <<\_ACEOF
10759#define error_t int
10760_ACEOF
10761
10762fi
10763
10764
10765
10766
10767
10768
10769
10770for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
10771do
10772as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10773{ echo "$as_me:$LINENO: checking for $ac_func" >&5
10774echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10775if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10776  echo $ECHO_N "(cached) $ECHO_C" >&6
10777else
10778  cat >conftest.$ac_ext <<_ACEOF
10779/* confdefs.h.  */
10780_ACEOF
10781cat confdefs.h >>conftest.$ac_ext
10782cat >>conftest.$ac_ext <<_ACEOF
10783/* end confdefs.h.  */
10784/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10785   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10786#define $ac_func innocuous_$ac_func
10787
10788/* System header to define __stub macros and hopefully few prototypes,
10789    which can conflict with char $ac_func (); below.
10790    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10791    <limits.h> exists even on freestanding compilers.  */
10792
10793#ifdef __STDC__
10794# include <limits.h>
10795#else
10796# include <assert.h>
10797#endif
10798
10799#undef $ac_func
10800
10801/* Override any GCC internal prototype to avoid an error.
10802   Use char because int might match the return type of a GCC
10803   builtin and then its argument prototype would still apply.  */
10804#ifdef __cplusplus
10805extern "C"
10806#endif
10807char $ac_func ();
10808/* The GNU C library defines this for functions which it implements
10809    to always fail with ENOSYS.  Some functions are actually named
10810    something starting with __ and the normal name is an alias.  */
10811#if defined __stub_$ac_func || defined __stub___$ac_func
10812choke me
10813#endif
10814
10815int
10816main ()
10817{
10818return $ac_func ();
10819  ;
10820  return 0;
10821}
10822_ACEOF
10823rm -f conftest.$ac_objext conftest$ac_exeext
10824if { (ac_try="$ac_link"
10825case "(($ac_try" in
10826  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10827  *) ac_try_echo=$ac_try;;
10828esac
10829eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10830  (eval "$ac_link") 2>conftest.er1
10831  ac_status=$?
10832  grep -v '^ *+' conftest.er1 >conftest.err
10833  rm -f conftest.er1
10834  cat conftest.err >&5
10835  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10836  (exit $ac_status); } &&
10837	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10838  { (case "(($ac_try" in
10839  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10840  *) ac_try_echo=$ac_try;;
10841esac
10842eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10843  (eval "$ac_try") 2>&5
10844  ac_status=$?
10845  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10846  (exit $ac_status); }; } &&
10847	 { ac_try='test -s conftest$ac_exeext'
10848  { (case "(($ac_try" in
10849  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10850  *) ac_try_echo=$ac_try;;
10851esac
10852eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10853  (eval "$ac_try") 2>&5
10854  ac_status=$?
10855  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10856  (exit $ac_status); }; }; then
10857  eval "$as_ac_var=yes"
10858else
10859  echo "$as_me: failed program was:" >&5
10860sed 's/^/| /' conftest.$ac_ext >&5
10861
10862	eval "$as_ac_var=no"
10863fi
10864
10865rm -f core conftest.err conftest.$ac_objext \
10866      conftest$ac_exeext conftest.$ac_ext
10867fi
10868ac_res=`eval echo '${'$as_ac_var'}'`
10869	       { echo "$as_me:$LINENO: result: $ac_res" >&5
10870echo "${ECHO_T}$ac_res" >&6; }
10871if test `eval echo '${'$as_ac_var'}'` = yes; then
10872  cat >>confdefs.h <<_ACEOF
10873#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10874_ACEOF
10875
10876fi
10877done
10878
10879
10880
10881
10882
10883
10884
10885
10886
10887
10888
10889
10890
10891
10892
10893
10894
10895
10896
10897
10898
10899
10900
10901
10902
10903
10904
10905
10906for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
10907		  stdio.h unistd.h
10908do
10909as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10910if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10911  { echo "$as_me:$LINENO: checking for $ac_header" >&5
10912echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10913if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10914  echo $ECHO_N "(cached) $ECHO_C" >&6
10915fi
10916ac_res=`eval echo '${'$as_ac_Header'}'`
10917	       { echo "$as_me:$LINENO: result: $ac_res" >&5
10918echo "${ECHO_T}$ac_res" >&6; }
10919else
10920  # Is the header compilable?
10921{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
10922echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10923cat >conftest.$ac_ext <<_ACEOF
10924/* confdefs.h.  */
10925_ACEOF
10926cat confdefs.h >>conftest.$ac_ext
10927cat >>conftest.$ac_ext <<_ACEOF
10928/* end confdefs.h.  */
10929$ac_includes_default
10930#include <$ac_header>
10931_ACEOF
10932rm -f conftest.$ac_objext
10933if { (ac_try="$ac_compile"
10934case "(($ac_try" in
10935  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10936  *) ac_try_echo=$ac_try;;
10937esac
10938eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10939  (eval "$ac_compile") 2>conftest.er1
10940  ac_status=$?
10941  grep -v '^ *+' conftest.er1 >conftest.err
10942  rm -f conftest.er1
10943  cat conftest.err >&5
10944  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10945  (exit $ac_status); } &&
10946	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10947  { (case "(($ac_try" in
10948  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10949  *) ac_try_echo=$ac_try;;
10950esac
10951eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10952  (eval "$ac_try") 2>&5
10953  ac_status=$?
10954  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10955  (exit $ac_status); }; } &&
10956	 { ac_try='test -s conftest.$ac_objext'
10957  { (case "(($ac_try" in
10958  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10959  *) ac_try_echo=$ac_try;;
10960esac
10961eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10962  (eval "$ac_try") 2>&5
10963  ac_status=$?
10964  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10965  (exit $ac_status); }; }; then
10966  ac_header_compiler=yes
10967else
10968  echo "$as_me: failed program was:" >&5
10969sed 's/^/| /' conftest.$ac_ext >&5
10970
10971	ac_header_compiler=no
10972fi
10973
10974rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10975{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10976echo "${ECHO_T}$ac_header_compiler" >&6; }
10977
10978# Is the header present?
10979{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
10980echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10981cat >conftest.$ac_ext <<_ACEOF
10982/* confdefs.h.  */
10983_ACEOF
10984cat confdefs.h >>conftest.$ac_ext
10985cat >>conftest.$ac_ext <<_ACEOF
10986/* end confdefs.h.  */
10987#include <$ac_header>
10988_ACEOF
10989if { (ac_try="$ac_cpp conftest.$ac_ext"
10990case "(($ac_try" in
10991  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10992  *) ac_try_echo=$ac_try;;
10993esac
10994eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10995  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10996  ac_status=$?
10997  grep -v '^ *+' conftest.er1 >conftest.err
10998  rm -f conftest.er1
10999  cat conftest.err >&5
11000  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11001  (exit $ac_status); } >/dev/null; then
11002  if test -s conftest.err; then
11003    ac_cpp_err=$ac_c_preproc_warn_flag
11004    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11005  else
11006    ac_cpp_err=
11007  fi
11008else
11009  ac_cpp_err=yes
11010fi
11011if test -z "$ac_cpp_err"; then
11012  ac_header_preproc=yes
11013else
11014  echo "$as_me: failed program was:" >&5
11015sed 's/^/| /' conftest.$ac_ext >&5
11016
11017  ac_header_preproc=no
11018fi
11019
11020rm -f conftest.err conftest.$ac_ext
11021{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11022echo "${ECHO_T}$ac_header_preproc" >&6; }
11023
11024# So?  What about this header?
11025case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11026  yes:no: )
11027    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11028echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11029    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11030echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11031    ac_header_preproc=yes
11032    ;;
11033  no:yes:* )
11034    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11035echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11036    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11037echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11038    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11039echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11040    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11041echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11042    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11043echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11044    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11045echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11046    ( cat <<\_ASBOX
11047## ------------------------------------ ##
11048## Report this to http://llvm.org/bugs/ ##
11049## ------------------------------------ ##
11050_ASBOX
11051     ) | sed "s/^/$as_me: WARNING:     /" >&2
11052    ;;
11053esac
11054{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11055echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11056if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11057  echo $ECHO_N "(cached) $ECHO_C" >&6
11058else
11059  eval "$as_ac_Header=\$ac_header_preproc"
11060fi
11061ac_res=`eval echo '${'$as_ac_Header'}'`
11062	       { echo "$as_me:$LINENO: result: $ac_res" >&5
11063echo "${ECHO_T}$ac_res" >&6; }
11064
11065fi
11066if test `eval echo '${'$as_ac_Header'}'` = yes; then
11067  cat >>confdefs.h <<_ACEOF
11068#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11069_ACEOF
11070
11071fi
11072
11073done
11074
11075
11076
11077
11078
11079for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
11080do
11081as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11082if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11083  { echo "$as_me:$LINENO: checking for $ac_header" >&5
11084echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11085if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11086  echo $ECHO_N "(cached) $ECHO_C" >&6
11087fi
11088ac_res=`eval echo '${'$as_ac_Header'}'`
11089	       { echo "$as_me:$LINENO: result: $ac_res" >&5
11090echo "${ECHO_T}$ac_res" >&6; }
11091else
11092  # Is the header compilable?
11093{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11094echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11095cat >conftest.$ac_ext <<_ACEOF
11096/* confdefs.h.  */
11097_ACEOF
11098cat confdefs.h >>conftest.$ac_ext
11099cat >>conftest.$ac_ext <<_ACEOF
11100/* end confdefs.h.  */
11101$ac_includes_default
11102#include <$ac_header>
11103_ACEOF
11104rm -f conftest.$ac_objext
11105if { (ac_try="$ac_compile"
11106case "(($ac_try" in
11107  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11108  *) ac_try_echo=$ac_try;;
11109esac
11110eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11111  (eval "$ac_compile") 2>conftest.er1
11112  ac_status=$?
11113  grep -v '^ *+' conftest.er1 >conftest.err
11114  rm -f conftest.er1
11115  cat conftest.err >&5
11116  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11117  (exit $ac_status); } &&
11118	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11119  { (case "(($ac_try" in
11120  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11121  *) ac_try_echo=$ac_try;;
11122esac
11123eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11124  (eval "$ac_try") 2>&5
11125  ac_status=$?
11126  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11127  (exit $ac_status); }; } &&
11128	 { ac_try='test -s conftest.$ac_objext'
11129  { (case "(($ac_try" in
11130  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11131  *) ac_try_echo=$ac_try;;
11132esac
11133eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11134  (eval "$ac_try") 2>&5
11135  ac_status=$?
11136  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11137  (exit $ac_status); }; }; then
11138  ac_header_compiler=yes
11139else
11140  echo "$as_me: failed program was:" >&5
11141sed 's/^/| /' conftest.$ac_ext >&5
11142
11143	ac_header_compiler=no
11144fi
11145
11146rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11147{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11148echo "${ECHO_T}$ac_header_compiler" >&6; }
11149
11150# Is the header present?
11151{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11152echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11153cat >conftest.$ac_ext <<_ACEOF
11154/* confdefs.h.  */
11155_ACEOF
11156cat confdefs.h >>conftest.$ac_ext
11157cat >>conftest.$ac_ext <<_ACEOF
11158/* end confdefs.h.  */
11159#include <$ac_header>
11160_ACEOF
11161if { (ac_try="$ac_cpp conftest.$ac_ext"
11162case "(($ac_try" in
11163  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11164  *) ac_try_echo=$ac_try;;
11165esac
11166eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11167  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11168  ac_status=$?
11169  grep -v '^ *+' conftest.er1 >conftest.err
11170  rm -f conftest.er1
11171  cat conftest.err >&5
11172  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11173  (exit $ac_status); } >/dev/null; then
11174  if test -s conftest.err; then
11175    ac_cpp_err=$ac_c_preproc_warn_flag
11176    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11177  else
11178    ac_cpp_err=
11179  fi
11180else
11181  ac_cpp_err=yes
11182fi
11183if test -z "$ac_cpp_err"; then
11184  ac_header_preproc=yes
11185else
11186  echo "$as_me: failed program was:" >&5
11187sed 's/^/| /' conftest.$ac_ext >&5
11188
11189  ac_header_preproc=no
11190fi
11191
11192rm -f conftest.err conftest.$ac_ext
11193{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11194echo "${ECHO_T}$ac_header_preproc" >&6; }
11195
11196# So?  What about this header?
11197case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11198  yes:no: )
11199    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11200echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11201    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11202echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11203    ac_header_preproc=yes
11204    ;;
11205  no:yes:* )
11206    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11207echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11208    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11209echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11210    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11211echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11212    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11213echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11214    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11215echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11216    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11217echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11218    ( cat <<\_ASBOX
11219## ------------------------------------ ##
11220## Report this to http://llvm.org/bugs/ ##
11221## ------------------------------------ ##
11222_ASBOX
11223     ) | sed "s/^/$as_me: WARNING:     /" >&2
11224    ;;
11225esac
11226{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11227echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11228if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11229  echo $ECHO_N "(cached) $ECHO_C" >&6
11230else
11231  eval "$as_ac_Header=\$ac_header_preproc"
11232fi
11233ac_res=`eval echo '${'$as_ac_Header'}'`
11234	       { echo "$as_me:$LINENO: result: $ac_res" >&5
11235echo "${ECHO_T}$ac_res" >&6; }
11236
11237fi
11238if test `eval echo '${'$as_ac_Header'}'` = yes; then
11239  cat >>confdefs.h <<_ACEOF
11240#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11241_ACEOF
11242
11243fi
11244
11245done
11246
11247
11248
11249for ac_header in string.h strings.h
11250do
11251as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11252if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11253  { echo "$as_me:$LINENO: checking for $ac_header" >&5
11254echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11255if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11256  echo $ECHO_N "(cached) $ECHO_C" >&6
11257fi
11258ac_res=`eval echo '${'$as_ac_Header'}'`
11259	       { echo "$as_me:$LINENO: result: $ac_res" >&5
11260echo "${ECHO_T}$ac_res" >&6; }
11261else
11262  # Is the header compilable?
11263{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11264echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11265cat >conftest.$ac_ext <<_ACEOF
11266/* confdefs.h.  */
11267_ACEOF
11268cat confdefs.h >>conftest.$ac_ext
11269cat >>conftest.$ac_ext <<_ACEOF
11270/* end confdefs.h.  */
11271$ac_includes_default
11272#include <$ac_header>
11273_ACEOF
11274rm -f conftest.$ac_objext
11275if { (ac_try="$ac_compile"
11276case "(($ac_try" in
11277  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11278  *) ac_try_echo=$ac_try;;
11279esac
11280eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11281  (eval "$ac_compile") 2>conftest.er1
11282  ac_status=$?
11283  grep -v '^ *+' conftest.er1 >conftest.err
11284  rm -f conftest.er1
11285  cat conftest.err >&5
11286  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11287  (exit $ac_status); } &&
11288	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11289  { (case "(($ac_try" in
11290  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11291  *) ac_try_echo=$ac_try;;
11292esac
11293eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11294  (eval "$ac_try") 2>&5
11295  ac_status=$?
11296  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11297  (exit $ac_status); }; } &&
11298	 { ac_try='test -s conftest.$ac_objext'
11299  { (case "(($ac_try" in
11300  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11301  *) ac_try_echo=$ac_try;;
11302esac
11303eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11304  (eval "$ac_try") 2>&5
11305  ac_status=$?
11306  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11307  (exit $ac_status); }; }; then
11308  ac_header_compiler=yes
11309else
11310  echo "$as_me: failed program was:" >&5
11311sed 's/^/| /' conftest.$ac_ext >&5
11312
11313	ac_header_compiler=no
11314fi
11315
11316rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11317{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11318echo "${ECHO_T}$ac_header_compiler" >&6; }
11319
11320# Is the header present?
11321{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11322echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11323cat >conftest.$ac_ext <<_ACEOF
11324/* confdefs.h.  */
11325_ACEOF
11326cat confdefs.h >>conftest.$ac_ext
11327cat >>conftest.$ac_ext <<_ACEOF
11328/* end confdefs.h.  */
11329#include <$ac_header>
11330_ACEOF
11331if { (ac_try="$ac_cpp conftest.$ac_ext"
11332case "(($ac_try" in
11333  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11334  *) ac_try_echo=$ac_try;;
11335esac
11336eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11337  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11338  ac_status=$?
11339  grep -v '^ *+' conftest.er1 >conftest.err
11340  rm -f conftest.er1
11341  cat conftest.err >&5
11342  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11343  (exit $ac_status); } >/dev/null; then
11344  if test -s conftest.err; then
11345    ac_cpp_err=$ac_c_preproc_warn_flag
11346    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11347  else
11348    ac_cpp_err=
11349  fi
11350else
11351  ac_cpp_err=yes
11352fi
11353if test -z "$ac_cpp_err"; then
11354  ac_header_preproc=yes
11355else
11356  echo "$as_me: failed program was:" >&5
11357sed 's/^/| /' conftest.$ac_ext >&5
11358
11359  ac_header_preproc=no
11360fi
11361
11362rm -f conftest.err conftest.$ac_ext
11363{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11364echo "${ECHO_T}$ac_header_preproc" >&6; }
11365
11366# So?  What about this header?
11367case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11368  yes:no: )
11369    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11370echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11371    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11372echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11373    ac_header_preproc=yes
11374    ;;
11375  no:yes:* )
11376    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11377echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11378    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11379echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11380    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11381echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11382    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11383echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11384    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11385echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11386    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11387echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11388    ( cat <<\_ASBOX
11389## ------------------------------------ ##
11390## Report this to http://llvm.org/bugs/ ##
11391## ------------------------------------ ##
11392_ASBOX
11393     ) | sed "s/^/$as_me: WARNING:     /" >&2
11394    ;;
11395esac
11396{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11397echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11398if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11399  echo $ECHO_N "(cached) $ECHO_C" >&6
11400else
11401  eval "$as_ac_Header=\$ac_header_preproc"
11402fi
11403ac_res=`eval echo '${'$as_ac_Header'}'`
11404	       { echo "$as_me:$LINENO: result: $ac_res" >&5
11405echo "${ECHO_T}$ac_res" >&6; }
11406
11407fi
11408if test `eval echo '${'$as_ac_Header'}'` = yes; then
11409  cat >>confdefs.h <<_ACEOF
11410#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11411_ACEOF
11412 break
11413fi
11414
11415done
11416
11417
11418
11419
11420for ac_func in strchr index
11421do
11422as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11423{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11424echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11425if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11426  echo $ECHO_N "(cached) $ECHO_C" >&6
11427else
11428  cat >conftest.$ac_ext <<_ACEOF
11429/* confdefs.h.  */
11430_ACEOF
11431cat confdefs.h >>conftest.$ac_ext
11432cat >>conftest.$ac_ext <<_ACEOF
11433/* end confdefs.h.  */
11434/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11435   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11436#define $ac_func innocuous_$ac_func
11437
11438/* System header to define __stub macros and hopefully few prototypes,
11439    which can conflict with char $ac_func (); below.
11440    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11441    <limits.h> exists even on freestanding compilers.  */
11442
11443#ifdef __STDC__
11444# include <limits.h>
11445#else
11446# include <assert.h>
11447#endif
11448
11449#undef $ac_func
11450
11451/* Override any GCC internal prototype to avoid an error.
11452   Use char because int might match the return type of a GCC
11453   builtin and then its argument prototype would still apply.  */
11454#ifdef __cplusplus
11455extern "C"
11456#endif
11457char $ac_func ();
11458/* The GNU C library defines this for functions which it implements
11459    to always fail with ENOSYS.  Some functions are actually named
11460    something starting with __ and the normal name is an alias.  */
11461#if defined __stub_$ac_func || defined __stub___$ac_func
11462choke me
11463#endif
11464
11465int
11466main ()
11467{
11468return $ac_func ();
11469  ;
11470  return 0;
11471}
11472_ACEOF
11473rm -f conftest.$ac_objext conftest$ac_exeext
11474if { (ac_try="$ac_link"
11475case "(($ac_try" in
11476  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11477  *) ac_try_echo=$ac_try;;
11478esac
11479eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11480  (eval "$ac_link") 2>conftest.er1
11481  ac_status=$?
11482  grep -v '^ *+' conftest.er1 >conftest.err
11483  rm -f conftest.er1
11484  cat conftest.err >&5
11485  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11486  (exit $ac_status); } &&
11487	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11488  { (case "(($ac_try" in
11489  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11490  *) ac_try_echo=$ac_try;;
11491esac
11492eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11493  (eval "$ac_try") 2>&5
11494  ac_status=$?
11495  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11496  (exit $ac_status); }; } &&
11497	 { ac_try='test -s conftest$ac_exeext'
11498  { (case "(($ac_try" in
11499  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11500  *) ac_try_echo=$ac_try;;
11501esac
11502eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11503  (eval "$ac_try") 2>&5
11504  ac_status=$?
11505  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11506  (exit $ac_status); }; }; then
11507  eval "$as_ac_var=yes"
11508else
11509  echo "$as_me: failed program was:" >&5
11510sed 's/^/| /' conftest.$ac_ext >&5
11511
11512	eval "$as_ac_var=no"
11513fi
11514
11515rm -f core conftest.err conftest.$ac_objext \
11516      conftest$ac_exeext conftest.$ac_ext
11517fi
11518ac_res=`eval echo '${'$as_ac_var'}'`
11519	       { echo "$as_me:$LINENO: result: $ac_res" >&5
11520echo "${ECHO_T}$ac_res" >&6; }
11521if test `eval echo '${'$as_ac_var'}'` = yes; then
11522  cat >>confdefs.h <<_ACEOF
11523#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11524_ACEOF
11525 break
11526fi
11527done
11528
11529
11530
11531for ac_func in strrchr rindex
11532do
11533as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11534{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11535echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11536if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11537  echo $ECHO_N "(cached) $ECHO_C" >&6
11538else
11539  cat >conftest.$ac_ext <<_ACEOF
11540/* confdefs.h.  */
11541_ACEOF
11542cat confdefs.h >>conftest.$ac_ext
11543cat >>conftest.$ac_ext <<_ACEOF
11544/* end confdefs.h.  */
11545/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11546   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11547#define $ac_func innocuous_$ac_func
11548
11549/* System header to define __stub macros and hopefully few prototypes,
11550    which can conflict with char $ac_func (); below.
11551    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11552    <limits.h> exists even on freestanding compilers.  */
11553
11554#ifdef __STDC__
11555# include <limits.h>
11556#else
11557# include <assert.h>
11558#endif
11559
11560#undef $ac_func
11561
11562/* Override any GCC internal prototype to avoid an error.
11563   Use char because int might match the return type of a GCC
11564   builtin and then its argument prototype would still apply.  */
11565#ifdef __cplusplus
11566extern "C"
11567#endif
11568char $ac_func ();
11569/* The GNU C library defines this for functions which it implements
11570    to always fail with ENOSYS.  Some functions are actually named
11571    something starting with __ and the normal name is an alias.  */
11572#if defined __stub_$ac_func || defined __stub___$ac_func
11573choke me
11574#endif
11575
11576int
11577main ()
11578{
11579return $ac_func ();
11580  ;
11581  return 0;
11582}
11583_ACEOF
11584rm -f conftest.$ac_objext conftest$ac_exeext
11585if { (ac_try="$ac_link"
11586case "(($ac_try" in
11587  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11588  *) ac_try_echo=$ac_try;;
11589esac
11590eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11591  (eval "$ac_link") 2>conftest.er1
11592  ac_status=$?
11593  grep -v '^ *+' conftest.er1 >conftest.err
11594  rm -f conftest.er1
11595  cat conftest.err >&5
11596  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11597  (exit $ac_status); } &&
11598	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11599  { (case "(($ac_try" in
11600  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11601  *) ac_try_echo=$ac_try;;
11602esac
11603eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11604  (eval "$ac_try") 2>&5
11605  ac_status=$?
11606  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11607  (exit $ac_status); }; } &&
11608	 { ac_try='test -s conftest$ac_exeext'
11609  { (case "(($ac_try" in
11610  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11611  *) ac_try_echo=$ac_try;;
11612esac
11613eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11614  (eval "$ac_try") 2>&5
11615  ac_status=$?
11616  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11617  (exit $ac_status); }; }; then
11618  eval "$as_ac_var=yes"
11619else
11620  echo "$as_me: failed program was:" >&5
11621sed 's/^/| /' conftest.$ac_ext >&5
11622
11623	eval "$as_ac_var=no"
11624fi
11625
11626rm -f core conftest.err conftest.$ac_objext \
11627      conftest$ac_exeext conftest.$ac_ext
11628fi
11629ac_res=`eval echo '${'$as_ac_var'}'`
11630	       { echo "$as_me:$LINENO: result: $ac_res" >&5
11631echo "${ECHO_T}$ac_res" >&6; }
11632if test `eval echo '${'$as_ac_var'}'` = yes; then
11633  cat >>confdefs.h <<_ACEOF
11634#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11635_ACEOF
11636 break
11637fi
11638done
11639
11640
11641
11642for ac_func in memcpy bcopy
11643do
11644as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11645{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11646echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11647if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11648  echo $ECHO_N "(cached) $ECHO_C" >&6
11649else
11650  cat >conftest.$ac_ext <<_ACEOF
11651/* confdefs.h.  */
11652_ACEOF
11653cat confdefs.h >>conftest.$ac_ext
11654cat >>conftest.$ac_ext <<_ACEOF
11655/* end confdefs.h.  */
11656/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11657   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11658#define $ac_func innocuous_$ac_func
11659
11660/* System header to define __stub macros and hopefully few prototypes,
11661    which can conflict with char $ac_func (); below.
11662    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11663    <limits.h> exists even on freestanding compilers.  */
11664
11665#ifdef __STDC__
11666# include <limits.h>
11667#else
11668# include <assert.h>
11669#endif
11670
11671#undef $ac_func
11672
11673/* Override any GCC internal prototype to avoid an error.
11674   Use char because int might match the return type of a GCC
11675   builtin and then its argument prototype would still apply.  */
11676#ifdef __cplusplus
11677extern "C"
11678#endif
11679char $ac_func ();
11680/* The GNU C library defines this for functions which it implements
11681    to always fail with ENOSYS.  Some functions are actually named
11682    something starting with __ and the normal name is an alias.  */
11683#if defined __stub_$ac_func || defined __stub___$ac_func
11684choke me
11685#endif
11686
11687int
11688main ()
11689{
11690return $ac_func ();
11691  ;
11692  return 0;
11693}
11694_ACEOF
11695rm -f conftest.$ac_objext conftest$ac_exeext
11696if { (ac_try="$ac_link"
11697case "(($ac_try" in
11698  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11699  *) ac_try_echo=$ac_try;;
11700esac
11701eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11702  (eval "$ac_link") 2>conftest.er1
11703  ac_status=$?
11704  grep -v '^ *+' conftest.er1 >conftest.err
11705  rm -f conftest.er1
11706  cat conftest.err >&5
11707  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11708  (exit $ac_status); } &&
11709	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11710  { (case "(($ac_try" in
11711  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11712  *) ac_try_echo=$ac_try;;
11713esac
11714eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11715  (eval "$ac_try") 2>&5
11716  ac_status=$?
11717  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11718  (exit $ac_status); }; } &&
11719	 { ac_try='test -s conftest$ac_exeext'
11720  { (case "(($ac_try" in
11721  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11722  *) ac_try_echo=$ac_try;;
11723esac
11724eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11725  (eval "$ac_try") 2>&5
11726  ac_status=$?
11727  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11728  (exit $ac_status); }; }; then
11729  eval "$as_ac_var=yes"
11730else
11731  echo "$as_me: failed program was:" >&5
11732sed 's/^/| /' conftest.$ac_ext >&5
11733
11734	eval "$as_ac_var=no"
11735fi
11736
11737rm -f core conftest.err conftest.$ac_objext \
11738      conftest$ac_exeext conftest.$ac_ext
11739fi
11740ac_res=`eval echo '${'$as_ac_var'}'`
11741	       { echo "$as_me:$LINENO: result: $ac_res" >&5
11742echo "${ECHO_T}$ac_res" >&6; }
11743if test `eval echo '${'$as_ac_var'}'` = yes; then
11744  cat >>confdefs.h <<_ACEOF
11745#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11746_ACEOF
11747 break
11748fi
11749done
11750
11751
11752
11753for ac_func in memmove strcmp
11754do
11755as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11756{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11757echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11758if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11759  echo $ECHO_N "(cached) $ECHO_C" >&6
11760else
11761  cat >conftest.$ac_ext <<_ACEOF
11762/* confdefs.h.  */
11763_ACEOF
11764cat confdefs.h >>conftest.$ac_ext
11765cat >>conftest.$ac_ext <<_ACEOF
11766/* end confdefs.h.  */
11767/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11768   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11769#define $ac_func innocuous_$ac_func
11770
11771/* System header to define __stub macros and hopefully few prototypes,
11772    which can conflict with char $ac_func (); below.
11773    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11774    <limits.h> exists even on freestanding compilers.  */
11775
11776#ifdef __STDC__
11777# include <limits.h>
11778#else
11779# include <assert.h>
11780#endif
11781
11782#undef $ac_func
11783
11784/* Override any GCC internal prototype to avoid an error.
11785   Use char because int might match the return type of a GCC
11786   builtin and then its argument prototype would still apply.  */
11787#ifdef __cplusplus
11788extern "C"
11789#endif
11790char $ac_func ();
11791/* The GNU C library defines this for functions which it implements
11792    to always fail with ENOSYS.  Some functions are actually named
11793    something starting with __ and the normal name is an alias.  */
11794#if defined __stub_$ac_func || defined __stub___$ac_func
11795choke me
11796#endif
11797
11798int
11799main ()
11800{
11801return $ac_func ();
11802  ;
11803  return 0;
11804}
11805_ACEOF
11806rm -f conftest.$ac_objext conftest$ac_exeext
11807if { (ac_try="$ac_link"
11808case "(($ac_try" in
11809  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11810  *) ac_try_echo=$ac_try;;
11811esac
11812eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11813  (eval "$ac_link") 2>conftest.er1
11814  ac_status=$?
11815  grep -v '^ *+' conftest.er1 >conftest.err
11816  rm -f conftest.er1
11817  cat conftest.err >&5
11818  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11819  (exit $ac_status); } &&
11820	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11821  { (case "(($ac_try" in
11822  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11823  *) ac_try_echo=$ac_try;;
11824esac
11825eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11826  (eval "$ac_try") 2>&5
11827  ac_status=$?
11828  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11829  (exit $ac_status); }; } &&
11830	 { ac_try='test -s conftest$ac_exeext'
11831  { (case "(($ac_try" in
11832  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11833  *) ac_try_echo=$ac_try;;
11834esac
11835eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11836  (eval "$ac_try") 2>&5
11837  ac_status=$?
11838  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11839  (exit $ac_status); }; }; then
11840  eval "$as_ac_var=yes"
11841else
11842  echo "$as_me: failed program was:" >&5
11843sed 's/^/| /' conftest.$ac_ext >&5
11844
11845	eval "$as_ac_var=no"
11846fi
11847
11848rm -f core conftest.err conftest.$ac_objext \
11849      conftest$ac_exeext conftest.$ac_ext
11850fi
11851ac_res=`eval echo '${'$as_ac_var'}'`
11852	       { echo "$as_me:$LINENO: result: $ac_res" >&5
11853echo "${ECHO_T}$ac_res" >&6; }
11854if test `eval echo '${'$as_ac_var'}'` = yes; then
11855  cat >>confdefs.h <<_ACEOF
11856#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11857_ACEOF
11858
11859fi
11860done
11861
11862
11863
11864
11865for ac_func in closedir opendir readdir
11866do
11867as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11868{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11869echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11870if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11871  echo $ECHO_N "(cached) $ECHO_C" >&6
11872else
11873  cat >conftest.$ac_ext <<_ACEOF
11874/* confdefs.h.  */
11875_ACEOF
11876cat confdefs.h >>conftest.$ac_ext
11877cat >>conftest.$ac_ext <<_ACEOF
11878/* end confdefs.h.  */
11879/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11880   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11881#define $ac_func innocuous_$ac_func
11882
11883/* System header to define __stub macros and hopefully few prototypes,
11884    which can conflict with char $ac_func (); below.
11885    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11886    <limits.h> exists even on freestanding compilers.  */
11887
11888#ifdef __STDC__
11889# include <limits.h>
11890#else
11891# include <assert.h>
11892#endif
11893
11894#undef $ac_func
11895
11896/* Override any GCC internal prototype to avoid an error.
11897   Use char because int might match the return type of a GCC
11898   builtin and then its argument prototype would still apply.  */
11899#ifdef __cplusplus
11900extern "C"
11901#endif
11902char $ac_func ();
11903/* The GNU C library defines this for functions which it implements
11904    to always fail with ENOSYS.  Some functions are actually named
11905    something starting with __ and the normal name is an alias.  */
11906#if defined __stub_$ac_func || defined __stub___$ac_func
11907choke me
11908#endif
11909
11910int
11911main ()
11912{
11913return $ac_func ();
11914  ;
11915  return 0;
11916}
11917_ACEOF
11918rm -f conftest.$ac_objext conftest$ac_exeext
11919if { (ac_try="$ac_link"
11920case "(($ac_try" in
11921  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11922  *) ac_try_echo=$ac_try;;
11923esac
11924eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11925  (eval "$ac_link") 2>conftest.er1
11926  ac_status=$?
11927  grep -v '^ *+' conftest.er1 >conftest.err
11928  rm -f conftest.er1
11929  cat conftest.err >&5
11930  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11931  (exit $ac_status); } &&
11932	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11933  { (case "(($ac_try" in
11934  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11935  *) ac_try_echo=$ac_try;;
11936esac
11937eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11938  (eval "$ac_try") 2>&5
11939  ac_status=$?
11940  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11941  (exit $ac_status); }; } &&
11942	 { ac_try='test -s conftest$ac_exeext'
11943  { (case "(($ac_try" in
11944  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11945  *) ac_try_echo=$ac_try;;
11946esac
11947eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11948  (eval "$ac_try") 2>&5
11949  ac_status=$?
11950  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11951  (exit $ac_status); }; }; then
11952  eval "$as_ac_var=yes"
11953else
11954  echo "$as_me: failed program was:" >&5
11955sed 's/^/| /' conftest.$ac_ext >&5
11956
11957	eval "$as_ac_var=no"
11958fi
11959
11960rm -f core conftest.err conftest.$ac_objext \
11961      conftest$ac_exeext conftest.$ac_ext
11962fi
11963ac_res=`eval echo '${'$as_ac_var'}'`
11964	       { echo "$as_me:$LINENO: result: $ac_res" >&5
11965echo "${ECHO_T}$ac_res" >&6; }
11966if test `eval echo '${'$as_ac_var'}'` = yes; then
11967  cat >>confdefs.h <<_ACEOF
11968#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11969_ACEOF
11970
11971fi
11972done
11973
11974
11975
11976{ echo "$as_me:$LINENO: checking tool compatibility" >&5
11977echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
11978
11979ICC=no
11980IXX=no
11981case $CC in
11982  icc*|icpc*)
11983    ICC=yes
11984    IXX=yes
11985    ;;
11986   *)
11987    ;;
11988esac
11989
11990if test "$GCC" != "yes" && test "$ICC" != "yes"
11991then
11992  { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
11993echo "$as_me: error: gcc|icc required but not found" >&2;}
11994   { (exit 1); exit 1; }; }
11995fi
11996
11997if test "$GXX" != "yes" && test "$IXX" != "yes"
11998then
11999  { { echo "$as_me:$LINENO: error: g++|clang++|icc required but not found" >&5
12000echo "$as_me: error: g++|clang++|icc required but not found" >&2;}
12001   { (exit 1); exit 1; }; }
12002fi
12003
12004if test "$GCC" = "yes"
12005then
12006  cat >conftest.$ac_ext <<_ACEOF
12007#if !defined(__GNUC__) || __GNUC__ < 3
12008#error Unsupported GCC version
12009#endif
12010
12011_ACEOF
12012rm -f conftest.$ac_objext
12013if { (ac_try="$ac_compile"
12014case "(($ac_try" in
12015  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12016  *) ac_try_echo=$ac_try;;
12017esac
12018eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12019  (eval "$ac_compile") 2>conftest.er1
12020  ac_status=$?
12021  grep -v '^ *+' conftest.er1 >conftest.err
12022  rm -f conftest.er1
12023  cat conftest.err >&5
12024  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12025  (exit $ac_status); } &&
12026	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12027  { (case "(($ac_try" in
12028  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12029  *) ac_try_echo=$ac_try;;
12030esac
12031eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12032  (eval "$ac_try") 2>&5
12033  ac_status=$?
12034  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12035  (exit $ac_status); }; } &&
12036	 { ac_try='test -s conftest.$ac_objext'
12037  { (case "(($ac_try" in
12038  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12039  *) ac_try_echo=$ac_try;;
12040esac
12041eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12042  (eval "$ac_try") 2>&5
12043  ac_status=$?
12044  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12045  (exit $ac_status); }; }; then
12046  :
12047else
12048  echo "$as_me: failed program was:" >&5
12049sed 's/^/| /' conftest.$ac_ext >&5
12050
12051	{ { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
12052echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
12053   { (exit 1); exit 1; }; }
12054fi
12055
12056rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12057fi
12058
12059if test -z "$llvm_cv_gnu_make_command"
12060then
12061  { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
12062echo "$as_me: error: GNU Make required but not found" >&2;}
12063   { (exit 1); exit 1; }; }
12064fi
12065
12066{ echo "$as_me:$LINENO: result: ok" >&5
12067echo "${ECHO_T}ok" >&6; }
12068
12069{ echo "$as_me:$LINENO: checking optional compiler flags" >&5
12070echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
12071NO_VARIADIC_MACROS=`$CXX -Werror -Wno-variadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
12072
12073NO_MISSING_FIELD_INITIALIZERS=`$CXX -Werror -Wno-missing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
12074
12075COVERED_SWITCH_DEFAULT=`$CXX -Werror -Wcovered-switch-default -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wcovered-switch-default`
12076
12077{ echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT" >&5
12078echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT" >&6; }
12079
12080
12081
12082{ echo "$as_me:$LINENO: checking for sin in -lm" >&5
12083echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
12084if test "${ac_cv_lib_m_sin+set}" = set; then
12085  echo $ECHO_N "(cached) $ECHO_C" >&6
12086else
12087  ac_check_lib_save_LIBS=$LIBS
12088LIBS="-lm  $LIBS"
12089cat >conftest.$ac_ext <<_ACEOF
12090/* confdefs.h.  */
12091_ACEOF
12092cat confdefs.h >>conftest.$ac_ext
12093cat >>conftest.$ac_ext <<_ACEOF
12094/* end confdefs.h.  */
12095
12096/* Override any GCC internal prototype to avoid an error.
12097   Use char because int might match the return type of a GCC
12098   builtin and then its argument prototype would still apply.  */
12099#ifdef __cplusplus
12100extern "C"
12101#endif
12102char sin ();
12103int
12104main ()
12105{
12106return sin ();
12107  ;
12108  return 0;
12109}
12110_ACEOF
12111rm -f conftest.$ac_objext conftest$ac_exeext
12112if { (ac_try="$ac_link"
12113case "(($ac_try" in
12114  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12115  *) ac_try_echo=$ac_try;;
12116esac
12117eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12118  (eval "$ac_link") 2>conftest.er1
12119  ac_status=$?
12120  grep -v '^ *+' conftest.er1 >conftest.err
12121  rm -f conftest.er1
12122  cat conftest.err >&5
12123  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12124  (exit $ac_status); } &&
12125	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12126  { (case "(($ac_try" in
12127  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12128  *) ac_try_echo=$ac_try;;
12129esac
12130eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12131  (eval "$ac_try") 2>&5
12132  ac_status=$?
12133  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12134  (exit $ac_status); }; } &&
12135	 { ac_try='test -s conftest$ac_exeext'
12136  { (case "(($ac_try" in
12137  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12138  *) ac_try_echo=$ac_try;;
12139esac
12140eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12141  (eval "$ac_try") 2>&5
12142  ac_status=$?
12143  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12144  (exit $ac_status); }; }; then
12145  ac_cv_lib_m_sin=yes
12146else
12147  echo "$as_me: failed program was:" >&5
12148sed 's/^/| /' conftest.$ac_ext >&5
12149
12150	ac_cv_lib_m_sin=no
12151fi
12152
12153rm -f core conftest.err conftest.$ac_objext \
12154      conftest$ac_exeext conftest.$ac_ext
12155LIBS=$ac_check_lib_save_LIBS
12156fi
12157{ echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
12158echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
12159if test $ac_cv_lib_m_sin = yes; then
12160  cat >>confdefs.h <<_ACEOF
12161#define HAVE_LIBM 1
12162_ACEOF
12163
12164  LIBS="-lm $LIBS"
12165
12166fi
12167
12168if test "$llvm_cv_os_type" = "MingW" ; then
12169
12170{ echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
12171echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
12172if test "${ac_cv_lib_imagehlp_main+set}" = set; then
12173  echo $ECHO_N "(cached) $ECHO_C" >&6
12174else
12175  ac_check_lib_save_LIBS=$LIBS
12176LIBS="-limagehlp  $LIBS"
12177cat >conftest.$ac_ext <<_ACEOF
12178/* confdefs.h.  */
12179_ACEOF
12180cat confdefs.h >>conftest.$ac_ext
12181cat >>conftest.$ac_ext <<_ACEOF
12182/* end confdefs.h.  */
12183
12184
12185int
12186main ()
12187{
12188return main ();
12189  ;
12190  return 0;
12191}
12192_ACEOF
12193rm -f conftest.$ac_objext conftest$ac_exeext
12194if { (ac_try="$ac_link"
12195case "(($ac_try" in
12196  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12197  *) ac_try_echo=$ac_try;;
12198esac
12199eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12200  (eval "$ac_link") 2>conftest.er1
12201  ac_status=$?
12202  grep -v '^ *+' conftest.er1 >conftest.err
12203  rm -f conftest.er1
12204  cat conftest.err >&5
12205  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12206  (exit $ac_status); } &&
12207	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12208  { (case "(($ac_try" in
12209  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12210  *) ac_try_echo=$ac_try;;
12211esac
12212eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12213  (eval "$ac_try") 2>&5
12214  ac_status=$?
12215  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12216  (exit $ac_status); }; } &&
12217	 { ac_try='test -s conftest$ac_exeext'
12218  { (case "(($ac_try" in
12219  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12220  *) ac_try_echo=$ac_try;;
12221esac
12222eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12223  (eval "$ac_try") 2>&5
12224  ac_status=$?
12225  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12226  (exit $ac_status); }; }; then
12227  ac_cv_lib_imagehlp_main=yes
12228else
12229  echo "$as_me: failed program was:" >&5
12230sed 's/^/| /' conftest.$ac_ext >&5
12231
12232	ac_cv_lib_imagehlp_main=no
12233fi
12234
12235rm -f core conftest.err conftest.$ac_objext \
12236      conftest$ac_exeext conftest.$ac_ext
12237LIBS=$ac_check_lib_save_LIBS
12238fi
12239{ echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
12240echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
12241if test $ac_cv_lib_imagehlp_main = yes; then
12242  cat >>confdefs.h <<_ACEOF
12243#define HAVE_LIBIMAGEHLP 1
12244_ACEOF
12245
12246  LIBS="-limagehlp $LIBS"
12247
12248fi
12249
12250
12251{ echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
12252echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
12253if test "${ac_cv_lib_psapi_main+set}" = set; then
12254  echo $ECHO_N "(cached) $ECHO_C" >&6
12255else
12256  ac_check_lib_save_LIBS=$LIBS
12257LIBS="-lpsapi  $LIBS"
12258cat >conftest.$ac_ext <<_ACEOF
12259/* confdefs.h.  */
12260_ACEOF
12261cat confdefs.h >>conftest.$ac_ext
12262cat >>conftest.$ac_ext <<_ACEOF
12263/* end confdefs.h.  */
12264
12265
12266int
12267main ()
12268{
12269return main ();
12270  ;
12271  return 0;
12272}
12273_ACEOF
12274rm -f conftest.$ac_objext conftest$ac_exeext
12275if { (ac_try="$ac_link"
12276case "(($ac_try" in
12277  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12278  *) ac_try_echo=$ac_try;;
12279esac
12280eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12281  (eval "$ac_link") 2>conftest.er1
12282  ac_status=$?
12283  grep -v '^ *+' conftest.er1 >conftest.err
12284  rm -f conftest.er1
12285  cat conftest.err >&5
12286  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12287  (exit $ac_status); } &&
12288	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12289  { (case "(($ac_try" in
12290  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12291  *) ac_try_echo=$ac_try;;
12292esac
12293eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12294  (eval "$ac_try") 2>&5
12295  ac_status=$?
12296  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12297  (exit $ac_status); }; } &&
12298	 { ac_try='test -s conftest$ac_exeext'
12299  { (case "(($ac_try" in
12300  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12301  *) ac_try_echo=$ac_try;;
12302esac
12303eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12304  (eval "$ac_try") 2>&5
12305  ac_status=$?
12306  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12307  (exit $ac_status); }; }; then
12308  ac_cv_lib_psapi_main=yes
12309else
12310  echo "$as_me: failed program was:" >&5
12311sed 's/^/| /' conftest.$ac_ext >&5
12312
12313	ac_cv_lib_psapi_main=no
12314fi
12315
12316rm -f core conftest.err conftest.$ac_objext \
12317      conftest$ac_exeext conftest.$ac_ext
12318LIBS=$ac_check_lib_save_LIBS
12319fi
12320{ echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
12321echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
12322if test $ac_cv_lib_psapi_main = yes; then
12323  cat >>confdefs.h <<_ACEOF
12324#define HAVE_LIBPSAPI 1
12325_ACEOF
12326
12327  LIBS="-lpsapi $LIBS"
12328
12329fi
12330
12331fi
12332
12333{ echo "$as_me:$LINENO: checking for library containing dlopen" >&5
12334echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
12335if test "${ac_cv_search_dlopen+set}" = set; then
12336  echo $ECHO_N "(cached) $ECHO_C" >&6
12337else
12338  ac_func_search_save_LIBS=$LIBS
12339cat >conftest.$ac_ext <<_ACEOF
12340/* confdefs.h.  */
12341_ACEOF
12342cat confdefs.h >>conftest.$ac_ext
12343cat >>conftest.$ac_ext <<_ACEOF
12344/* end confdefs.h.  */
12345
12346/* Override any GCC internal prototype to avoid an error.
12347   Use char because int might match the return type of a GCC
12348   builtin and then its argument prototype would still apply.  */
12349#ifdef __cplusplus
12350extern "C"
12351#endif
12352char dlopen ();
12353int
12354main ()
12355{
12356return dlopen ();
12357  ;
12358  return 0;
12359}
12360_ACEOF
12361for ac_lib in '' dl; do
12362  if test -z "$ac_lib"; then
12363    ac_res="none required"
12364  else
12365    ac_res=-l$ac_lib
12366    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12367  fi
12368  rm -f conftest.$ac_objext conftest$ac_exeext
12369if { (ac_try="$ac_link"
12370case "(($ac_try" in
12371  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12372  *) ac_try_echo=$ac_try;;
12373esac
12374eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12375  (eval "$ac_link") 2>conftest.er1
12376  ac_status=$?
12377  grep -v '^ *+' conftest.er1 >conftest.err
12378  rm -f conftest.er1
12379  cat conftest.err >&5
12380  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12381  (exit $ac_status); } &&
12382	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12383  { (case "(($ac_try" in
12384  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12385  *) ac_try_echo=$ac_try;;
12386esac
12387eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12388  (eval "$ac_try") 2>&5
12389  ac_status=$?
12390  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12391  (exit $ac_status); }; } &&
12392	 { ac_try='test -s conftest$ac_exeext'
12393  { (case "(($ac_try" in
12394  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12395  *) ac_try_echo=$ac_try;;
12396esac
12397eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12398  (eval "$ac_try") 2>&5
12399  ac_status=$?
12400  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12401  (exit $ac_status); }; }; then
12402  ac_cv_search_dlopen=$ac_res
12403else
12404  echo "$as_me: failed program was:" >&5
12405sed 's/^/| /' conftest.$ac_ext >&5
12406
12407
12408fi
12409
12410rm -f core conftest.err conftest.$ac_objext \
12411      conftest$ac_exeext
12412  if test "${ac_cv_search_dlopen+set}" = set; then
12413  break
12414fi
12415done
12416if test "${ac_cv_search_dlopen+set}" = set; then
12417  :
12418else
12419  ac_cv_search_dlopen=no
12420fi
12421rm conftest.$ac_ext
12422LIBS=$ac_func_search_save_LIBS
12423fi
12424{ echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
12425echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
12426ac_res=$ac_cv_search_dlopen
12427if test "$ac_res" != no; then
12428  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12429
12430cat >>confdefs.h <<\_ACEOF
12431#define HAVE_DLOPEN 1
12432_ACEOF
12433
12434else
12435  { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
12436echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
12437fi
12438
12439
12440if test "$llvm_cv_enable_libffi" = "yes" ; then
12441  { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
12442echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
12443if test "${ac_cv_search_ffi_call+set}" = set; then
12444  echo $ECHO_N "(cached) $ECHO_C" >&6
12445else
12446  ac_func_search_save_LIBS=$LIBS
12447cat >conftest.$ac_ext <<_ACEOF
12448/* confdefs.h.  */
12449_ACEOF
12450cat confdefs.h >>conftest.$ac_ext
12451cat >>conftest.$ac_ext <<_ACEOF
12452/* end confdefs.h.  */
12453
12454/* Override any GCC internal prototype to avoid an error.
12455   Use char because int might match the return type of a GCC
12456   builtin and then its argument prototype would still apply.  */
12457#ifdef __cplusplus
12458extern "C"
12459#endif
12460char ffi_call ();
12461int
12462main ()
12463{
12464return ffi_call ();
12465  ;
12466  return 0;
12467}
12468_ACEOF
12469for ac_lib in '' ffi; do
12470  if test -z "$ac_lib"; then
12471    ac_res="none required"
12472  else
12473    ac_res=-l$ac_lib
12474    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12475  fi
12476  rm -f conftest.$ac_objext conftest$ac_exeext
12477if { (ac_try="$ac_link"
12478case "(($ac_try" in
12479  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12480  *) ac_try_echo=$ac_try;;
12481esac
12482eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12483  (eval "$ac_link") 2>conftest.er1
12484  ac_status=$?
12485  grep -v '^ *+' conftest.er1 >conftest.err
12486  rm -f conftest.er1
12487  cat conftest.err >&5
12488  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12489  (exit $ac_status); } &&
12490	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12491  { (case "(($ac_try" in
12492  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12493  *) ac_try_echo=$ac_try;;
12494esac
12495eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12496  (eval "$ac_try") 2>&5
12497  ac_status=$?
12498  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12499  (exit $ac_status); }; } &&
12500	 { ac_try='test -s conftest$ac_exeext'
12501  { (case "(($ac_try" in
12502  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12503  *) ac_try_echo=$ac_try;;
12504esac
12505eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12506  (eval "$ac_try") 2>&5
12507  ac_status=$?
12508  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12509  (exit $ac_status); }; }; then
12510  ac_cv_search_ffi_call=$ac_res
12511else
12512  echo "$as_me: failed program was:" >&5
12513sed 's/^/| /' conftest.$ac_ext >&5
12514
12515
12516fi
12517
12518rm -f core conftest.err conftest.$ac_objext \
12519      conftest$ac_exeext
12520  if test "${ac_cv_search_ffi_call+set}" = set; then
12521  break
12522fi
12523done
12524if test "${ac_cv_search_ffi_call+set}" = set; then
12525  :
12526else
12527  ac_cv_search_ffi_call=no
12528fi
12529rm conftest.$ac_ext
12530LIBS=$ac_func_search_save_LIBS
12531fi
12532{ echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
12533echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
12534ac_res=$ac_cv_search_ffi_call
12535if test "$ac_res" != no; then
12536  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12537
12538cat >>confdefs.h <<\_ACEOF
12539#define HAVE_FFI_CALL 1
12540_ACEOF
12541
12542else
12543  { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5
12544echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;}
12545   { (exit 1); exit 1; }; }
12546fi
12547
12548fi
12549
12550{ echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
12551echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
12552if test "${ac_cv_search_mallinfo+set}" = set; then
12553  echo $ECHO_N "(cached) $ECHO_C" >&6
12554else
12555  ac_func_search_save_LIBS=$LIBS
12556cat >conftest.$ac_ext <<_ACEOF
12557/* confdefs.h.  */
12558_ACEOF
12559cat confdefs.h >>conftest.$ac_ext
12560cat >>conftest.$ac_ext <<_ACEOF
12561/* end confdefs.h.  */
12562
12563/* Override any GCC internal prototype to avoid an error.
12564   Use char because int might match the return type of a GCC
12565   builtin and then its argument prototype would still apply.  */
12566#ifdef __cplusplus
12567extern "C"
12568#endif
12569char mallinfo ();
12570int
12571main ()
12572{
12573return mallinfo ();
12574  ;
12575  return 0;
12576}
12577_ACEOF
12578for ac_lib in '' malloc; do
12579  if test -z "$ac_lib"; then
12580    ac_res="none required"
12581  else
12582    ac_res=-l$ac_lib
12583    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12584  fi
12585  rm -f conftest.$ac_objext conftest$ac_exeext
12586if { (ac_try="$ac_link"
12587case "(($ac_try" in
12588  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12589  *) ac_try_echo=$ac_try;;
12590esac
12591eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12592  (eval "$ac_link") 2>conftest.er1
12593  ac_status=$?
12594  grep -v '^ *+' conftest.er1 >conftest.err
12595  rm -f conftest.er1
12596  cat conftest.err >&5
12597  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12598  (exit $ac_status); } &&
12599	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12600  { (case "(($ac_try" in
12601  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12602  *) ac_try_echo=$ac_try;;
12603esac
12604eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12605  (eval "$ac_try") 2>&5
12606  ac_status=$?
12607  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12608  (exit $ac_status); }; } &&
12609	 { ac_try='test -s conftest$ac_exeext'
12610  { (case "(($ac_try" in
12611  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12612  *) ac_try_echo=$ac_try;;
12613esac
12614eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12615  (eval "$ac_try") 2>&5
12616  ac_status=$?
12617  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12618  (exit $ac_status); }; }; then
12619  ac_cv_search_mallinfo=$ac_res
12620else
12621  echo "$as_me: failed program was:" >&5
12622sed 's/^/| /' conftest.$ac_ext >&5
12623
12624
12625fi
12626
12627rm -f core conftest.err conftest.$ac_objext \
12628      conftest$ac_exeext
12629  if test "${ac_cv_search_mallinfo+set}" = set; then
12630  break
12631fi
12632done
12633if test "${ac_cv_search_mallinfo+set}" = set; then
12634  :
12635else
12636  ac_cv_search_mallinfo=no
12637fi
12638rm conftest.$ac_ext
12639LIBS=$ac_func_search_save_LIBS
12640fi
12641{ echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
12642echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
12643ac_res=$ac_cv_search_mallinfo
12644if test "$ac_res" != no; then
12645  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12646
12647cat >>confdefs.h <<\_ACEOF
12648#define HAVE_MALLINFO 1
12649_ACEOF
12650
12651fi
12652
12653
12654if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
12655
12656{ echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
12657echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
12658if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
12659  echo $ECHO_N "(cached) $ECHO_C" >&6
12660else
12661  ac_check_lib_save_LIBS=$LIBS
12662LIBS="-lpthread  $LIBS"
12663cat >conftest.$ac_ext <<_ACEOF
12664/* confdefs.h.  */
12665_ACEOF
12666cat confdefs.h >>conftest.$ac_ext
12667cat >>conftest.$ac_ext <<_ACEOF
12668/* end confdefs.h.  */
12669
12670/* Override any GCC internal prototype to avoid an error.
12671   Use char because int might match the return type of a GCC
12672   builtin and then its argument prototype would still apply.  */
12673#ifdef __cplusplus
12674extern "C"
12675#endif
12676char pthread_mutex_init ();
12677int
12678main ()
12679{
12680return pthread_mutex_init ();
12681  ;
12682  return 0;
12683}
12684_ACEOF
12685rm -f conftest.$ac_objext conftest$ac_exeext
12686if { (ac_try="$ac_link"
12687case "(($ac_try" in
12688  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12689  *) ac_try_echo=$ac_try;;
12690esac
12691eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12692  (eval "$ac_link") 2>conftest.er1
12693  ac_status=$?
12694  grep -v '^ *+' conftest.er1 >conftest.err
12695  rm -f conftest.er1
12696  cat conftest.err >&5
12697  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12698  (exit $ac_status); } &&
12699	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12700  { (case "(($ac_try" in
12701  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12702  *) ac_try_echo=$ac_try;;
12703esac
12704eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12705  (eval "$ac_try") 2>&5
12706  ac_status=$?
12707  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12708  (exit $ac_status); }; } &&
12709	 { ac_try='test -s conftest$ac_exeext'
12710  { (case "(($ac_try" in
12711  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12712  *) ac_try_echo=$ac_try;;
12713esac
12714eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12715  (eval "$ac_try") 2>&5
12716  ac_status=$?
12717  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12718  (exit $ac_status); }; }; then
12719  ac_cv_lib_pthread_pthread_mutex_init=yes
12720else
12721  echo "$as_me: failed program was:" >&5
12722sed 's/^/| /' conftest.$ac_ext >&5
12723
12724	ac_cv_lib_pthread_pthread_mutex_init=no
12725fi
12726
12727rm -f core conftest.err conftest.$ac_objext \
12728      conftest$ac_exeext conftest.$ac_ext
12729LIBS=$ac_check_lib_save_LIBS
12730fi
12731{ echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
12732echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
12733if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
12734  cat >>confdefs.h <<_ACEOF
12735#define HAVE_LIBPTHREAD 1
12736_ACEOF
12737
12738  LIBS="-lpthread $LIBS"
12739
12740fi
12741
12742  { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
12743echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
12744if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12745  echo $ECHO_N "(cached) $ECHO_C" >&6
12746else
12747  ac_func_search_save_LIBS=$LIBS
12748cat >conftest.$ac_ext <<_ACEOF
12749/* confdefs.h.  */
12750_ACEOF
12751cat confdefs.h >>conftest.$ac_ext
12752cat >>conftest.$ac_ext <<_ACEOF
12753/* end confdefs.h.  */
12754
12755/* Override any GCC internal prototype to avoid an error.
12756   Use char because int might match the return type of a GCC
12757   builtin and then its argument prototype would still apply.  */
12758#ifdef __cplusplus
12759extern "C"
12760#endif
12761char pthread_mutex_lock ();
12762int
12763main ()
12764{
12765return pthread_mutex_lock ();
12766  ;
12767  return 0;
12768}
12769_ACEOF
12770for ac_lib in '' pthread; do
12771  if test -z "$ac_lib"; then
12772    ac_res="none required"
12773  else
12774    ac_res=-l$ac_lib
12775    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12776  fi
12777  rm -f conftest.$ac_objext conftest$ac_exeext
12778if { (ac_try="$ac_link"
12779case "(($ac_try" in
12780  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12781  *) ac_try_echo=$ac_try;;
12782esac
12783eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12784  (eval "$ac_link") 2>conftest.er1
12785  ac_status=$?
12786  grep -v '^ *+' conftest.er1 >conftest.err
12787  rm -f conftest.er1
12788  cat conftest.err >&5
12789  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12790  (exit $ac_status); } &&
12791	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12792  { (case "(($ac_try" in
12793  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12794  *) ac_try_echo=$ac_try;;
12795esac
12796eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12797  (eval "$ac_try") 2>&5
12798  ac_status=$?
12799  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12800  (exit $ac_status); }; } &&
12801	 { ac_try='test -s conftest$ac_exeext'
12802  { (case "(($ac_try" in
12803  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12804  *) ac_try_echo=$ac_try;;
12805esac
12806eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12807  (eval "$ac_try") 2>&5
12808  ac_status=$?
12809  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12810  (exit $ac_status); }; }; then
12811  ac_cv_search_pthread_mutex_lock=$ac_res
12812else
12813  echo "$as_me: failed program was:" >&5
12814sed 's/^/| /' conftest.$ac_ext >&5
12815
12816
12817fi
12818
12819rm -f core conftest.err conftest.$ac_objext \
12820      conftest$ac_exeext
12821  if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12822  break
12823fi
12824done
12825if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12826  :
12827else
12828  ac_cv_search_pthread_mutex_lock=no
12829fi
12830rm conftest.$ac_ext
12831LIBS=$ac_func_search_save_LIBS
12832fi
12833{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
12834echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
12835ac_res=$ac_cv_search_pthread_mutex_lock
12836if test "$ac_res" != no; then
12837  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12838
12839cat >>confdefs.h <<\_ACEOF
12840#define HAVE_PTHREAD_MUTEX_LOCK 1
12841_ACEOF
12842
12843fi
12844
12845  { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
12846echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
12847if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
12848  echo $ECHO_N "(cached) $ECHO_C" >&6
12849else
12850  ac_func_search_save_LIBS=$LIBS
12851cat >conftest.$ac_ext <<_ACEOF
12852/* confdefs.h.  */
12853_ACEOF
12854cat confdefs.h >>conftest.$ac_ext
12855cat >>conftest.$ac_ext <<_ACEOF
12856/* end confdefs.h.  */
12857
12858/* Override any GCC internal prototype to avoid an error.
12859   Use char because int might match the return type of a GCC
12860   builtin and then its argument prototype would still apply.  */
12861#ifdef __cplusplus
12862extern "C"
12863#endif
12864char pthread_rwlock_init ();
12865int
12866main ()
12867{
12868return pthread_rwlock_init ();
12869  ;
12870  return 0;
12871}
12872_ACEOF
12873for ac_lib in '' pthread; do
12874  if test -z "$ac_lib"; then
12875    ac_res="none required"
12876  else
12877    ac_res=-l$ac_lib
12878    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12879  fi
12880  rm -f conftest.$ac_objext conftest$ac_exeext
12881if { (ac_try="$ac_link"
12882case "(($ac_try" in
12883  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12884  *) ac_try_echo=$ac_try;;
12885esac
12886eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12887  (eval "$ac_link") 2>conftest.er1
12888  ac_status=$?
12889  grep -v '^ *+' conftest.er1 >conftest.err
12890  rm -f conftest.er1
12891  cat conftest.err >&5
12892  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12893  (exit $ac_status); } &&
12894	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12895  { (case "(($ac_try" in
12896  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12897  *) ac_try_echo=$ac_try;;
12898esac
12899eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12900  (eval "$ac_try") 2>&5
12901  ac_status=$?
12902  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12903  (exit $ac_status); }; } &&
12904	 { ac_try='test -s conftest$ac_exeext'
12905  { (case "(($ac_try" in
12906  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12907  *) ac_try_echo=$ac_try;;
12908esac
12909eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12910  (eval "$ac_try") 2>&5
12911  ac_status=$?
12912  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12913  (exit $ac_status); }; }; then
12914  ac_cv_search_pthread_rwlock_init=$ac_res
12915else
12916  echo "$as_me: failed program was:" >&5
12917sed 's/^/| /' conftest.$ac_ext >&5
12918
12919
12920fi
12921
12922rm -f core conftest.err conftest.$ac_objext \
12923      conftest$ac_exeext
12924  if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
12925  break
12926fi
12927done
12928if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
12929  :
12930else
12931  ac_cv_search_pthread_rwlock_init=no
12932fi
12933rm conftest.$ac_ext
12934LIBS=$ac_func_search_save_LIBS
12935fi
12936{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
12937echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
12938ac_res=$ac_cv_search_pthread_rwlock_init
12939if test "$ac_res" != no; then
12940  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12941
12942cat >>confdefs.h <<\_ACEOF
12943#define HAVE_PTHREAD_RWLOCK_INIT 1
12944_ACEOF
12945
12946fi
12947
12948  { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
12949echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
12950if test "${ac_cv_search_pthread_getspecific+set}" = set; then
12951  echo $ECHO_N "(cached) $ECHO_C" >&6
12952else
12953  ac_func_search_save_LIBS=$LIBS
12954cat >conftest.$ac_ext <<_ACEOF
12955/* confdefs.h.  */
12956_ACEOF
12957cat confdefs.h >>conftest.$ac_ext
12958cat >>conftest.$ac_ext <<_ACEOF
12959/* end confdefs.h.  */
12960
12961/* Override any GCC internal prototype to avoid an error.
12962   Use char because int might match the return type of a GCC
12963   builtin and then its argument prototype would still apply.  */
12964#ifdef __cplusplus
12965extern "C"
12966#endif
12967char pthread_getspecific ();
12968int
12969main ()
12970{
12971return pthread_getspecific ();
12972  ;
12973  return 0;
12974}
12975_ACEOF
12976for ac_lib in '' pthread; do
12977  if test -z "$ac_lib"; then
12978    ac_res="none required"
12979  else
12980    ac_res=-l$ac_lib
12981    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12982  fi
12983  rm -f conftest.$ac_objext conftest$ac_exeext
12984if { (ac_try="$ac_link"
12985case "(($ac_try" in
12986  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12987  *) ac_try_echo=$ac_try;;
12988esac
12989eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12990  (eval "$ac_link") 2>conftest.er1
12991  ac_status=$?
12992  grep -v '^ *+' conftest.er1 >conftest.err
12993  rm -f conftest.er1
12994  cat conftest.err >&5
12995  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12996  (exit $ac_status); } &&
12997	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12998  { (case "(($ac_try" in
12999  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13000  *) ac_try_echo=$ac_try;;
13001esac
13002eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13003  (eval "$ac_try") 2>&5
13004  ac_status=$?
13005  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13006  (exit $ac_status); }; } &&
13007	 { ac_try='test -s conftest$ac_exeext'
13008  { (case "(($ac_try" in
13009  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13010  *) ac_try_echo=$ac_try;;
13011esac
13012eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13013  (eval "$ac_try") 2>&5
13014  ac_status=$?
13015  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13016  (exit $ac_status); }; }; then
13017  ac_cv_search_pthread_getspecific=$ac_res
13018else
13019  echo "$as_me: failed program was:" >&5
13020sed 's/^/| /' conftest.$ac_ext >&5
13021
13022
13023fi
13024
13025rm -f core conftest.err conftest.$ac_objext \
13026      conftest$ac_exeext
13027  if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13028  break
13029fi
13030done
13031if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13032  :
13033else
13034  ac_cv_search_pthread_getspecific=no
13035fi
13036rm conftest.$ac_ext
13037LIBS=$ac_func_search_save_LIBS
13038fi
13039{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
13040echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
13041ac_res=$ac_cv_search_pthread_getspecific
13042if test "$ac_res" != no; then
13043  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13044
13045cat >>confdefs.h <<\_ACEOF
13046#define HAVE_PTHREAD_GETSPECIFIC 1
13047_ACEOF
13048
13049fi
13050
13051fi
13052
13053
13054# Check whether --with-udis86 was given.
13055if test "${with_udis86+set}" = set; then
13056  withval=$with_udis86;
13057      USE_UDIS86=1
13058
13059      case "$withval" in
13060        /usr/lib|yes) ;;
13061        *) LDFLAGS="$LDFLAGS -L${withval}" ;;
13062      esac
13063
13064{ echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
13065echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
13066if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
13067  echo $ECHO_N "(cached) $ECHO_C" >&6
13068else
13069  ac_check_lib_save_LIBS=$LIBS
13070LIBS="-ludis86  $LIBS"
13071cat >conftest.$ac_ext <<_ACEOF
13072/* confdefs.h.  */
13073_ACEOF
13074cat confdefs.h >>conftest.$ac_ext
13075cat >>conftest.$ac_ext <<_ACEOF
13076/* end confdefs.h.  */
13077
13078/* Override any GCC internal prototype to avoid an error.
13079   Use char because int might match the return type of a GCC
13080   builtin and then its argument prototype would still apply.  */
13081#ifdef __cplusplus
13082extern "C"
13083#endif
13084char ud_init ();
13085int
13086main ()
13087{
13088return ud_init ();
13089  ;
13090  return 0;
13091}
13092_ACEOF
13093rm -f conftest.$ac_objext conftest$ac_exeext
13094if { (ac_try="$ac_link"
13095case "(($ac_try" in
13096  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13097  *) ac_try_echo=$ac_try;;
13098esac
13099eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13100  (eval "$ac_link") 2>conftest.er1
13101  ac_status=$?
13102  grep -v '^ *+' conftest.er1 >conftest.err
13103  rm -f conftest.er1
13104  cat conftest.err >&5
13105  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13106  (exit $ac_status); } &&
13107	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13108  { (case "(($ac_try" in
13109  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13110  *) ac_try_echo=$ac_try;;
13111esac
13112eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13113  (eval "$ac_try") 2>&5
13114  ac_status=$?
13115  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13116  (exit $ac_status); }; } &&
13117	 { ac_try='test -s conftest$ac_exeext'
13118  { (case "(($ac_try" in
13119  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13120  *) ac_try_echo=$ac_try;;
13121esac
13122eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13123  (eval "$ac_try") 2>&5
13124  ac_status=$?
13125  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13126  (exit $ac_status); }; }; then
13127  ac_cv_lib_udis86_ud_init=yes
13128else
13129  echo "$as_me: failed program was:" >&5
13130sed 's/^/| /' conftest.$ac_ext >&5
13131
13132	ac_cv_lib_udis86_ud_init=no
13133fi
13134
13135rm -f core conftest.err conftest.$ac_objext \
13136      conftest$ac_exeext conftest.$ac_ext
13137LIBS=$ac_check_lib_save_LIBS
13138fi
13139{ echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
13140echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
13141if test $ac_cv_lib_udis86_ud_init = yes; then
13142  cat >>confdefs.h <<_ACEOF
13143#define HAVE_LIBUDIS86 1
13144_ACEOF
13145
13146  LIBS="-ludis86 $LIBS"
13147
13148else
13149
13150        echo "Error! You need to have libudis86 around."
13151        exit -1
13152
13153fi
13154
13155
13156else
13157  USE_UDIS86=0
13158
13159fi
13160
13161
13162cat >>confdefs.h <<_ACEOF
13163#define USE_UDIS86 $USE_UDIS86
13164_ACEOF
13165
13166
13167
13168# Check whether --with-oprofile was given.
13169if test "${with_oprofile+set}" = set; then
13170  withval=$with_oprofile;
13171      USE_OPROFILE=1
13172
13173      case "$withval" in
13174        /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
13175        no) llvm_cv_oppath=
13176            USE_OPROFILE=0
13177 ;;
13178        *) llvm_cv_oppath="${withval}/lib/oprofile"
13179           CPPFLAGS="-I${withval}/include";;
13180      esac
13181      case $llvm_cv_os_type in
13182        Linux)
13183          if test -n "$llvm_cv_oppath" ; then
13184            LIBS="$LIBS -lopagent -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
13185                                                            { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
13186echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
13187if test "${ac_cv_search_bfd_init+set}" = set; then
13188  echo $ECHO_N "(cached) $ECHO_C" >&6
13189else
13190  ac_func_search_save_LIBS=$LIBS
13191cat >conftest.$ac_ext <<_ACEOF
13192/* confdefs.h.  */
13193_ACEOF
13194cat confdefs.h >>conftest.$ac_ext
13195cat >>conftest.$ac_ext <<_ACEOF
13196/* end confdefs.h.  */
13197
13198/* Override any GCC internal prototype to avoid an error.
13199   Use char because int might match the return type of a GCC
13200   builtin and then its argument prototype would still apply.  */
13201#ifdef __cplusplus
13202extern "C"
13203#endif
13204char bfd_init ();
13205int
13206main ()
13207{
13208return bfd_init ();
13209  ;
13210  return 0;
13211}
13212_ACEOF
13213for ac_lib in '' bfd; do
13214  if test -z "$ac_lib"; then
13215    ac_res="none required"
13216  else
13217    ac_res=-l$ac_lib
13218    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13219  fi
13220  rm -f conftest.$ac_objext conftest$ac_exeext
13221if { (ac_try="$ac_link"
13222case "(($ac_try" in
13223  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13224  *) ac_try_echo=$ac_try;;
13225esac
13226eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13227  (eval "$ac_link") 2>conftest.er1
13228  ac_status=$?
13229  grep -v '^ *+' conftest.er1 >conftest.err
13230  rm -f conftest.er1
13231  cat conftest.err >&5
13232  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13233  (exit $ac_status); } &&
13234	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13235  { (case "(($ac_try" in
13236  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13237  *) ac_try_echo=$ac_try;;
13238esac
13239eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13240  (eval "$ac_try") 2>&5
13241  ac_status=$?
13242  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13243  (exit $ac_status); }; } &&
13244	 { ac_try='test -s conftest$ac_exeext'
13245  { (case "(($ac_try" in
13246  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13247  *) ac_try_echo=$ac_try;;
13248esac
13249eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13250  (eval "$ac_try") 2>&5
13251  ac_status=$?
13252  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13253  (exit $ac_status); }; }; then
13254  ac_cv_search_bfd_init=$ac_res
13255else
13256  echo "$as_me: failed program was:" >&5
13257sed 's/^/| /' conftest.$ac_ext >&5
13258
13259
13260fi
13261
13262rm -f core conftest.err conftest.$ac_objext \
13263      conftest$ac_exeext
13264  if test "${ac_cv_search_bfd_init+set}" = set; then
13265  break
13266fi
13267done
13268if test "${ac_cv_search_bfd_init+set}" = set; then
13269  :
13270else
13271  ac_cv_search_bfd_init=no
13272fi
13273rm conftest.$ac_ext
13274LIBS=$ac_func_search_save_LIBS
13275fi
13276{ echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
13277echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
13278ac_res=$ac_cv_search_bfd_init
13279if test "$ac_res" != no; then
13280  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13281
13282fi
13283
13284            { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
13285echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
13286if test "${ac_cv_search_op_open_agent+set}" = set; then
13287  echo $ECHO_N "(cached) $ECHO_C" >&6
13288else
13289  ac_func_search_save_LIBS=$LIBS
13290cat >conftest.$ac_ext <<_ACEOF
13291/* confdefs.h.  */
13292_ACEOF
13293cat confdefs.h >>conftest.$ac_ext
13294cat >>conftest.$ac_ext <<_ACEOF
13295/* end confdefs.h.  */
13296
13297/* Override any GCC internal prototype to avoid an error.
13298   Use char because int might match the return type of a GCC
13299   builtin and then its argument prototype would still apply.  */
13300#ifdef __cplusplus
13301extern "C"
13302#endif
13303char op_open_agent ();
13304int
13305main ()
13306{
13307return op_open_agent ();
13308  ;
13309  return 0;
13310}
13311_ACEOF
13312for ac_lib in '' opagent; do
13313  if test -z "$ac_lib"; then
13314    ac_res="none required"
13315  else
13316    ac_res=-l$ac_lib
13317    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13318  fi
13319  rm -f conftest.$ac_objext conftest$ac_exeext
13320if { (ac_try="$ac_link"
13321case "(($ac_try" in
13322  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13323  *) ac_try_echo=$ac_try;;
13324esac
13325eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13326  (eval "$ac_link") 2>conftest.er1
13327  ac_status=$?
13328  grep -v '^ *+' conftest.er1 >conftest.err
13329  rm -f conftest.er1
13330  cat conftest.err >&5
13331  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13332  (exit $ac_status); } &&
13333	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13334  { (case "(($ac_try" in
13335  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13336  *) ac_try_echo=$ac_try;;
13337esac
13338eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13339  (eval "$ac_try") 2>&5
13340  ac_status=$?
13341  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13342  (exit $ac_status); }; } &&
13343	 { ac_try='test -s conftest$ac_exeext'
13344  { (case "(($ac_try" in
13345  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13346  *) ac_try_echo=$ac_try;;
13347esac
13348eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13349  (eval "$ac_try") 2>&5
13350  ac_status=$?
13351  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13352  (exit $ac_status); }; }; then
13353  ac_cv_search_op_open_agent=$ac_res
13354else
13355  echo "$as_me: failed program was:" >&5
13356sed 's/^/| /' conftest.$ac_ext >&5
13357
13358
13359fi
13360
13361rm -f core conftest.err conftest.$ac_objext \
13362      conftest$ac_exeext
13363  if test "${ac_cv_search_op_open_agent+set}" = set; then
13364  break
13365fi
13366done
13367if test "${ac_cv_search_op_open_agent+set}" = set; then
13368  :
13369else
13370  ac_cv_search_op_open_agent=no
13371fi
13372rm conftest.$ac_ext
13373LIBS=$ac_func_search_save_LIBS
13374fi
13375{ echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
13376echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
13377ac_res=$ac_cv_search_op_open_agent
13378if test "$ac_res" != no; then
13379  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13380
13381else
13382
13383              echo "Error! You need to have libopagent around."
13384              exit -1
13385
13386fi
13387
13388            if test "${ac_cv_header_opagent_h+set}" = set; then
13389  { echo "$as_me:$LINENO: checking for opagent.h" >&5
13390echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13391if test "${ac_cv_header_opagent_h+set}" = set; then
13392  echo $ECHO_N "(cached) $ECHO_C" >&6
13393fi
13394{ echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13395echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13396else
13397  # Is the header compilable?
13398{ echo "$as_me:$LINENO: checking opagent.h usability" >&5
13399echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
13400cat >conftest.$ac_ext <<_ACEOF
13401/* confdefs.h.  */
13402_ACEOF
13403cat confdefs.h >>conftest.$ac_ext
13404cat >>conftest.$ac_ext <<_ACEOF
13405/* end confdefs.h.  */
13406$ac_includes_default
13407#include <opagent.h>
13408_ACEOF
13409rm -f conftest.$ac_objext
13410if { (ac_try="$ac_compile"
13411case "(($ac_try" in
13412  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13413  *) ac_try_echo=$ac_try;;
13414esac
13415eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13416  (eval "$ac_compile") 2>conftest.er1
13417  ac_status=$?
13418  grep -v '^ *+' conftest.er1 >conftest.err
13419  rm -f conftest.er1
13420  cat conftest.err >&5
13421  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13422  (exit $ac_status); } &&
13423	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13424  { (case "(($ac_try" in
13425  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13426  *) ac_try_echo=$ac_try;;
13427esac
13428eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13429  (eval "$ac_try") 2>&5
13430  ac_status=$?
13431  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13432  (exit $ac_status); }; } &&
13433	 { ac_try='test -s conftest.$ac_objext'
13434  { (case "(($ac_try" in
13435  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13436  *) ac_try_echo=$ac_try;;
13437esac
13438eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13439  (eval "$ac_try") 2>&5
13440  ac_status=$?
13441  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13442  (exit $ac_status); }; }; then
13443  ac_header_compiler=yes
13444else
13445  echo "$as_me: failed program was:" >&5
13446sed 's/^/| /' conftest.$ac_ext >&5
13447
13448	ac_header_compiler=no
13449fi
13450
13451rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13452{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13453echo "${ECHO_T}$ac_header_compiler" >&6; }
13454
13455# Is the header present?
13456{ echo "$as_me:$LINENO: checking opagent.h presence" >&5
13457echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
13458cat >conftest.$ac_ext <<_ACEOF
13459/* confdefs.h.  */
13460_ACEOF
13461cat confdefs.h >>conftest.$ac_ext
13462cat >>conftest.$ac_ext <<_ACEOF
13463/* end confdefs.h.  */
13464#include <opagent.h>
13465_ACEOF
13466if { (ac_try="$ac_cpp conftest.$ac_ext"
13467case "(($ac_try" in
13468  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13469  *) ac_try_echo=$ac_try;;
13470esac
13471eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13472  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13473  ac_status=$?
13474  grep -v '^ *+' conftest.er1 >conftest.err
13475  rm -f conftest.er1
13476  cat conftest.err >&5
13477  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13478  (exit $ac_status); } >/dev/null; then
13479  if test -s conftest.err; then
13480    ac_cpp_err=$ac_c_preproc_warn_flag
13481    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13482  else
13483    ac_cpp_err=
13484  fi
13485else
13486  ac_cpp_err=yes
13487fi
13488if test -z "$ac_cpp_err"; then
13489  ac_header_preproc=yes
13490else
13491  echo "$as_me: failed program was:" >&5
13492sed 's/^/| /' conftest.$ac_ext >&5
13493
13494  ac_header_preproc=no
13495fi
13496
13497rm -f conftest.err conftest.$ac_ext
13498{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13499echo "${ECHO_T}$ac_header_preproc" >&6; }
13500
13501# So?  What about this header?
13502case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13503  yes:no: )
13504    { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
13505echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13506    { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
13507echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
13508    ac_header_preproc=yes
13509    ;;
13510  no:yes:* )
13511    { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
13512echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
13513    { echo "$as_me:$LINENO: WARNING: opagent.h:     check for missing prerequisite headers?" >&5
13514echo "$as_me: WARNING: opagent.h:     check for missing prerequisite headers?" >&2;}
13515    { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
13516echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
13517    { echo "$as_me:$LINENO: WARNING: opagent.h:     section \"Present But Cannot Be Compiled\"" >&5
13518echo "$as_me: WARNING: opagent.h:     section \"Present But Cannot Be Compiled\"" >&2;}
13519    { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
13520echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
13521    { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
13522echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
13523    ( cat <<\_ASBOX
13524## ------------------------------------ ##
13525## Report this to http://llvm.org/bugs/ ##
13526## ------------------------------------ ##
13527_ASBOX
13528     ) | sed "s/^/$as_me: WARNING:     /" >&2
13529    ;;
13530esac
13531{ echo "$as_me:$LINENO: checking for opagent.h" >&5
13532echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13533if test "${ac_cv_header_opagent_h+set}" = set; then
13534  echo $ECHO_N "(cached) $ECHO_C" >&6
13535else
13536  ac_cv_header_opagent_h=$ac_header_preproc
13537fi
13538{ echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13539echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13540
13541fi
13542if test $ac_cv_header_opagent_h = yes; then
13543  :
13544else
13545
13546              echo "Error! You need to have opagent.h around."
13547              exit -1
13548
13549fi
13550
13551
13552          fi ;;
13553        *)
13554          { { echo "$as_me:$LINENO: error: OProfile support is available on Linux only." >&5
13555echo "$as_me: error: OProfile support is available on Linux only." >&2;}
13556   { (exit 1); exit 1; }; } ;;
13557      esac
13558
13559else
13560
13561      USE_OPROFILE=0
13562
13563
13564fi
13565
13566
13567cat >>confdefs.h <<_ACEOF
13568#define LLVM_USE_OPROFILE $USE_OPROFILE
13569_ACEOF
13570
13571
13572
13573# Check whether --with-intel-jitevents was given.
13574if test "${with_intel_jitevents+set}" = set; then
13575  withval=$with_intel_jitevents;
13576       case "$withval" in
13577          yes) USE_INTEL_JITEVENTS=1
13578;;
13579          no)  USE_INTEL_JITEVENTS=0
13580;;
13581          *) { { echo "$as_me:$LINENO: error: Invalid setting for --with-intel-jitevents. Use \"yes\" or \"no\"" >&5
13582echo "$as_me: error: Invalid setting for --with-intel-jitevents. Use \"yes\" or \"no\"" >&2;}
13583   { (exit 1); exit 1; }; };;
13584       esac
13585
13586      case $llvm_cv_os_type in
13587        Linux|Win32|Cygwin|MingW) ;;
13588        *) { { echo "$as_me:$LINENO: error: Intel JIT API support is available on Linux and Windows only." >&5
13589echo "$as_me: error: Intel JIT API support is available on Linux and Windows only." >&2;}
13590   { (exit 1); exit 1; }; };;
13591      esac
13592
13593      case "$llvm_cv_target_arch" in
13594        x86|x86_64) ;;
13595        *) { { echo "$as_me:$LINENO: error: Target architecture $llvm_cv_target_arch does not support Intel JIT Events API." >&5
13596echo "$as_me: error: Target architecture $llvm_cv_target_arch does not support Intel JIT Events API." >&2;}
13597   { (exit 1); exit 1; }; };;
13598      esac
13599
13600else
13601
13602      USE_INTEL_JITEVENTS=0
13603
13604
13605fi
13606
13607
13608cat >>confdefs.h <<_ACEOF
13609#define LLVM_USE_INTEL_JITEVENTS $USE_INTEL_JITEVENTS
13610_ACEOF
13611
13612
13613for ac_prog in xml2-config
13614do
13615  # Extract the first word of "$ac_prog", so it can be a program name with args.
13616set dummy $ac_prog; ac_word=$2
13617{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13618echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13619if test "${ac_cv_prog_XML2CONFIG+set}" = set; then
13620  echo $ECHO_N "(cached) $ECHO_C" >&6
13621else
13622  if test -n "$XML2CONFIG"; then
13623  ac_cv_prog_XML2CONFIG="$XML2CONFIG" # Let the user override the test.
13624else
13625as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13626for as_dir in $PATH
13627do
13628  IFS=$as_save_IFS
13629  test -z "$as_dir" && as_dir=.
13630  for ac_exec_ext in '' $ac_executable_extensions; do
13631  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13632    ac_cv_prog_XML2CONFIG="$ac_prog"
13633    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13634    break 2
13635  fi
13636done
13637done
13638IFS=$as_save_IFS
13639
13640fi
13641fi
13642XML2CONFIG=$ac_cv_prog_XML2CONFIG
13643if test -n "$XML2CONFIG"; then
13644  { echo "$as_me:$LINENO: result: $XML2CONFIG" >&5
13645echo "${ECHO_T}$XML2CONFIG" >&6; }
13646else
13647  { echo "$as_me:$LINENO: result: no" >&5
13648echo "${ECHO_T}no" >&6; }
13649fi
13650
13651
13652  test -n "$XML2CONFIG" && break
13653done
13654
13655
13656{ echo "$as_me:$LINENO: checking for libxml2 includes" >&5
13657echo $ECHO_N "checking for libxml2 includes... $ECHO_C" >&6; }
13658if test "x$XML2CONFIG" = "x"; then
13659 { echo "$as_me:$LINENO: result: xml2-config not found" >&5
13660echo "${ECHO_T}xml2-config not found" >&6; }
13661else
13662 LIBXML2_INC=`$XML2CONFIG --cflags`
13663 { echo "$as_me:$LINENO: result: $LIBXML2_INC" >&5
13664echo "${ECHO_T}$LIBXML2_INC" >&6; }
13665 { echo "$as_me:$LINENO: checking for xmlReadFile in -lxml2" >&5
13666echo $ECHO_N "checking for xmlReadFile in -lxml2... $ECHO_C" >&6; }
13667if test "${ac_cv_lib_xml2_xmlReadFile+set}" = set; then
13668  echo $ECHO_N "(cached) $ECHO_C" >&6
13669else
13670  ac_check_lib_save_LIBS=$LIBS
13671LIBS="-lxml2  $LIBS"
13672cat >conftest.$ac_ext <<_ACEOF
13673/* confdefs.h.  */
13674_ACEOF
13675cat confdefs.h >>conftest.$ac_ext
13676cat >>conftest.$ac_ext <<_ACEOF
13677/* end confdefs.h.  */
13678
13679/* Override any GCC internal prototype to avoid an error.
13680   Use char because int might match the return type of a GCC
13681   builtin and then its argument prototype would still apply.  */
13682#ifdef __cplusplus
13683extern "C"
13684#endif
13685char xmlReadFile ();
13686int
13687main ()
13688{
13689return xmlReadFile ();
13690  ;
13691  return 0;
13692}
13693_ACEOF
13694rm -f conftest.$ac_objext conftest$ac_exeext
13695if { (ac_try="$ac_link"
13696case "(($ac_try" in
13697  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13698  *) ac_try_echo=$ac_try;;
13699esac
13700eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13701  (eval "$ac_link") 2>conftest.er1
13702  ac_status=$?
13703  grep -v '^ *+' conftest.er1 >conftest.err
13704  rm -f conftest.er1
13705  cat conftest.err >&5
13706  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13707  (exit $ac_status); } &&
13708	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13709  { (case "(($ac_try" in
13710  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13711  *) ac_try_echo=$ac_try;;
13712esac
13713eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13714  (eval "$ac_try") 2>&5
13715  ac_status=$?
13716  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13717  (exit $ac_status); }; } &&
13718	 { ac_try='test -s conftest$ac_exeext'
13719  { (case "(($ac_try" in
13720  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13721  *) ac_try_echo=$ac_try;;
13722esac
13723eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13724  (eval "$ac_try") 2>&5
13725  ac_status=$?
13726  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13727  (exit $ac_status); }; }; then
13728  ac_cv_lib_xml2_xmlReadFile=yes
13729else
13730  echo "$as_me: failed program was:" >&5
13731sed 's/^/| /' conftest.$ac_ext >&5
13732
13733	ac_cv_lib_xml2_xmlReadFile=no
13734fi
13735
13736rm -f core conftest.err conftest.$ac_objext \
13737      conftest$ac_exeext conftest.$ac_ext
13738LIBS=$ac_check_lib_save_LIBS
13739fi
13740{ echo "$as_me:$LINENO: result: $ac_cv_lib_xml2_xmlReadFile" >&5
13741echo "${ECHO_T}$ac_cv_lib_xml2_xmlReadFile" >&6; }
13742if test $ac_cv_lib_xml2_xmlReadFile = yes; then
13743
13744cat >>confdefs.h <<\_ACEOF
13745#define CLANG_HAVE_LIBXML 1
13746_ACEOF
13747
13748                                LIBXML2_LIBS="-lxml2"
13749fi
13750
13751fi
13752
13753
13754
13755
13756
13757
13758
13759
13760
13761ac_header_dirent=no
13762for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
13763  as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
13764{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
13765echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
13766if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13767  echo $ECHO_N "(cached) $ECHO_C" >&6
13768else
13769  cat >conftest.$ac_ext <<_ACEOF
13770/* confdefs.h.  */
13771_ACEOF
13772cat confdefs.h >>conftest.$ac_ext
13773cat >>conftest.$ac_ext <<_ACEOF
13774/* end confdefs.h.  */
13775#include <sys/types.h>
13776#include <$ac_hdr>
13777
13778int
13779main ()
13780{
13781if ((DIR *) 0)
13782return 0;
13783  ;
13784  return 0;
13785}
13786_ACEOF
13787rm -f conftest.$ac_objext
13788if { (ac_try="$ac_compile"
13789case "(($ac_try" in
13790  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13791  *) ac_try_echo=$ac_try;;
13792esac
13793eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13794  (eval "$ac_compile") 2>conftest.er1
13795  ac_status=$?
13796  grep -v '^ *+' conftest.er1 >conftest.err
13797  rm -f conftest.er1
13798  cat conftest.err >&5
13799  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13800  (exit $ac_status); } &&
13801	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13802  { (case "(($ac_try" in
13803  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13804  *) ac_try_echo=$ac_try;;
13805esac
13806eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13807  (eval "$ac_try") 2>&5
13808  ac_status=$?
13809  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13810  (exit $ac_status); }; } &&
13811	 { ac_try='test -s conftest.$ac_objext'
13812  { (case "(($ac_try" in
13813  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13814  *) ac_try_echo=$ac_try;;
13815esac
13816eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13817  (eval "$ac_try") 2>&5
13818  ac_status=$?
13819  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13820  (exit $ac_status); }; }; then
13821  eval "$as_ac_Header=yes"
13822else
13823  echo "$as_me: failed program was:" >&5
13824sed 's/^/| /' conftest.$ac_ext >&5
13825
13826	eval "$as_ac_Header=no"
13827fi
13828
13829rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13830fi
13831ac_res=`eval echo '${'$as_ac_Header'}'`
13832	       { echo "$as_me:$LINENO: result: $ac_res" >&5
13833echo "${ECHO_T}$ac_res" >&6; }
13834if test `eval echo '${'$as_ac_Header'}'` = yes; then
13835  cat >>confdefs.h <<_ACEOF
13836#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
13837_ACEOF
13838
13839ac_header_dirent=$ac_hdr; break
13840fi
13841
13842done
13843# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
13844if test $ac_header_dirent = dirent.h; then
13845  { echo "$as_me:$LINENO: checking for library containing opendir" >&5
13846echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
13847if test "${ac_cv_search_opendir+set}" = set; then
13848  echo $ECHO_N "(cached) $ECHO_C" >&6
13849else
13850  ac_func_search_save_LIBS=$LIBS
13851cat >conftest.$ac_ext <<_ACEOF
13852/* confdefs.h.  */
13853_ACEOF
13854cat confdefs.h >>conftest.$ac_ext
13855cat >>conftest.$ac_ext <<_ACEOF
13856/* end confdefs.h.  */
13857
13858/* Override any GCC internal prototype to avoid an error.
13859   Use char because int might match the return type of a GCC
13860   builtin and then its argument prototype would still apply.  */
13861#ifdef __cplusplus
13862extern "C"
13863#endif
13864char opendir ();
13865int
13866main ()
13867{
13868return opendir ();
13869  ;
13870  return 0;
13871}
13872_ACEOF
13873for ac_lib in '' dir; do
13874  if test -z "$ac_lib"; then
13875    ac_res="none required"
13876  else
13877    ac_res=-l$ac_lib
13878    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13879  fi
13880  rm -f conftest.$ac_objext conftest$ac_exeext
13881if { (ac_try="$ac_link"
13882case "(($ac_try" in
13883  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13884  *) ac_try_echo=$ac_try;;
13885esac
13886eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13887  (eval "$ac_link") 2>conftest.er1
13888  ac_status=$?
13889  grep -v '^ *+' conftest.er1 >conftest.err
13890  rm -f conftest.er1
13891  cat conftest.err >&5
13892  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13893  (exit $ac_status); } &&
13894	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13895  { (case "(($ac_try" in
13896  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13897  *) ac_try_echo=$ac_try;;
13898esac
13899eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13900  (eval "$ac_try") 2>&5
13901  ac_status=$?
13902  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13903  (exit $ac_status); }; } &&
13904	 { ac_try='test -s conftest$ac_exeext'
13905  { (case "(($ac_try" in
13906  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13907  *) ac_try_echo=$ac_try;;
13908esac
13909eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13910  (eval "$ac_try") 2>&5
13911  ac_status=$?
13912  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13913  (exit $ac_status); }; }; then
13914  ac_cv_search_opendir=$ac_res
13915else
13916  echo "$as_me: failed program was:" >&5
13917sed 's/^/| /' conftest.$ac_ext >&5
13918
13919
13920fi
13921
13922rm -f core conftest.err conftest.$ac_objext \
13923      conftest$ac_exeext
13924  if test "${ac_cv_search_opendir+set}" = set; then
13925  break
13926fi
13927done
13928if test "${ac_cv_search_opendir+set}" = set; then
13929  :
13930else
13931  ac_cv_search_opendir=no
13932fi
13933rm conftest.$ac_ext
13934LIBS=$ac_func_search_save_LIBS
13935fi
13936{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
13937echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
13938ac_res=$ac_cv_search_opendir
13939if test "$ac_res" != no; then
13940  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13941
13942fi
13943
13944else
13945  { echo "$as_me:$LINENO: checking for library containing opendir" >&5
13946echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
13947if test "${ac_cv_search_opendir+set}" = set; then
13948  echo $ECHO_N "(cached) $ECHO_C" >&6
13949else
13950  ac_func_search_save_LIBS=$LIBS
13951cat >conftest.$ac_ext <<_ACEOF
13952/* confdefs.h.  */
13953_ACEOF
13954cat confdefs.h >>conftest.$ac_ext
13955cat >>conftest.$ac_ext <<_ACEOF
13956/* end confdefs.h.  */
13957
13958/* Override any GCC internal prototype to avoid an error.
13959   Use char because int might match the return type of a GCC
13960   builtin and then its argument prototype would still apply.  */
13961#ifdef __cplusplus
13962extern "C"
13963#endif
13964char opendir ();
13965int
13966main ()
13967{
13968return opendir ();
13969  ;
13970  return 0;
13971}
13972_ACEOF
13973for ac_lib in '' x; do
13974  if test -z "$ac_lib"; then
13975    ac_res="none required"
13976  else
13977    ac_res=-l$ac_lib
13978    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13979  fi
13980  rm -f conftest.$ac_objext conftest$ac_exeext
13981if { (ac_try="$ac_link"
13982case "(($ac_try" in
13983  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13984  *) ac_try_echo=$ac_try;;
13985esac
13986eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13987  (eval "$ac_link") 2>conftest.er1
13988  ac_status=$?
13989  grep -v '^ *+' conftest.er1 >conftest.err
13990  rm -f conftest.er1
13991  cat conftest.err >&5
13992  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13993  (exit $ac_status); } &&
13994	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13995  { (case "(($ac_try" in
13996  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13997  *) ac_try_echo=$ac_try;;
13998esac
13999eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14000  (eval "$ac_try") 2>&5
14001  ac_status=$?
14002  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14003  (exit $ac_status); }; } &&
14004	 { ac_try='test -s conftest$ac_exeext'
14005  { (case "(($ac_try" in
14006  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14007  *) ac_try_echo=$ac_try;;
14008esac
14009eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14010  (eval "$ac_try") 2>&5
14011  ac_status=$?
14012  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14013  (exit $ac_status); }; }; then
14014  ac_cv_search_opendir=$ac_res
14015else
14016  echo "$as_me: failed program was:" >&5
14017sed 's/^/| /' conftest.$ac_ext >&5
14018
14019
14020fi
14021
14022rm -f core conftest.err conftest.$ac_objext \
14023      conftest$ac_exeext
14024  if test "${ac_cv_search_opendir+set}" = set; then
14025  break
14026fi
14027done
14028if test "${ac_cv_search_opendir+set}" = set; then
14029  :
14030else
14031  ac_cv_search_opendir=no
14032fi
14033rm conftest.$ac_ext
14034LIBS=$ac_func_search_save_LIBS
14035fi
14036{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14037echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
14038ac_res=$ac_cv_search_opendir
14039if test "$ac_res" != no; then
14040  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14041
14042fi
14043
14044fi
14045
14046{ echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
14047echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
14048if test "${ac_cv_header_mmap_anon+set}" = set; then
14049  echo $ECHO_N "(cached) $ECHO_C" >&6
14050else
14051   ac_ext=c
14052ac_cpp='$CPP $CPPFLAGS'
14053ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14054ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14055ac_compiler_gnu=$ac_cv_c_compiler_gnu
14056
14057  cat >conftest.$ac_ext <<_ACEOF
14058/* confdefs.h.  */
14059_ACEOF
14060cat confdefs.h >>conftest.$ac_ext
14061cat >>conftest.$ac_ext <<_ACEOF
14062/* end confdefs.h.  */
14063#include <sys/mman.h>
14064#include <unistd.h>
14065#include <fcntl.h>
14066int
14067main ()
14068{
14069mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
14070  ;
14071  return 0;
14072}
14073_ACEOF
14074rm -f conftest.$ac_objext
14075if { (ac_try="$ac_compile"
14076case "(($ac_try" in
14077  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14078  *) ac_try_echo=$ac_try;;
14079esac
14080eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14081  (eval "$ac_compile") 2>conftest.er1
14082  ac_status=$?
14083  grep -v '^ *+' conftest.er1 >conftest.err
14084  rm -f conftest.er1
14085  cat conftest.err >&5
14086  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14087  (exit $ac_status); } &&
14088	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14089  { (case "(($ac_try" in
14090  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14091  *) ac_try_echo=$ac_try;;
14092esac
14093eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14094  (eval "$ac_try") 2>&5
14095  ac_status=$?
14096  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14097  (exit $ac_status); }; } &&
14098	 { ac_try='test -s conftest.$ac_objext'
14099  { (case "(($ac_try" in
14100  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14101  *) ac_try_echo=$ac_try;;
14102esac
14103eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14104  (eval "$ac_try") 2>&5
14105  ac_status=$?
14106  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14107  (exit $ac_status); }; }; then
14108  ac_cv_header_mmap_anon=yes
14109else
14110  echo "$as_me: failed program was:" >&5
14111sed 's/^/| /' conftest.$ac_ext >&5
14112
14113	ac_cv_header_mmap_anon=no
14114fi
14115
14116rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14117  ac_ext=c
14118ac_cpp='$CPP $CPPFLAGS'
14119ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14120ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14121ac_compiler_gnu=$ac_cv_c_compiler_gnu
14122
14123
14124fi
14125{ echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
14126echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
14127if test "$ac_cv_header_mmap_anon" = yes; then
14128
14129cat >>confdefs.h <<\_ACEOF
14130#define HAVE_MMAP_ANONYMOUS 1
14131_ACEOF
14132
14133fi
14134
14135{ echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
14136echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
14137if test "${ac_cv_header_stat_broken+set}" = set; then
14138  echo $ECHO_N "(cached) $ECHO_C" >&6
14139else
14140  cat >conftest.$ac_ext <<_ACEOF
14141/* confdefs.h.  */
14142_ACEOF
14143cat confdefs.h >>conftest.$ac_ext
14144cat >>conftest.$ac_ext <<_ACEOF
14145/* end confdefs.h.  */
14146#include <sys/types.h>
14147#include <sys/stat.h>
14148
14149#if defined S_ISBLK && defined S_IFDIR
14150# if S_ISBLK (S_IFDIR)
14151You lose.
14152# endif
14153#endif
14154
14155#if defined S_ISBLK && defined S_IFCHR
14156# if S_ISBLK (S_IFCHR)
14157You lose.
14158# endif
14159#endif
14160
14161#if defined S_ISLNK && defined S_IFREG
14162# if S_ISLNK (S_IFREG)
14163You lose.
14164# endif
14165#endif
14166
14167#if defined S_ISSOCK && defined S_IFREG
14168# if S_ISSOCK (S_IFREG)
14169You lose.
14170# endif
14171#endif
14172
14173_ACEOF
14174if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14175  $EGREP "You lose" >/dev/null 2>&1; then
14176  ac_cv_header_stat_broken=yes
14177else
14178  ac_cv_header_stat_broken=no
14179fi
14180rm -f conftest*
14181
14182fi
14183{ echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
14184echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
14185if test $ac_cv_header_stat_broken = yes; then
14186
14187cat >>confdefs.h <<\_ACEOF
14188#define STAT_MACROS_BROKEN 1
14189_ACEOF
14190
14191fi
14192
14193{ echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
14194echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
14195if test "${ac_cv_header_sys_wait_h+set}" = set; then
14196  echo $ECHO_N "(cached) $ECHO_C" >&6
14197else
14198  cat >conftest.$ac_ext <<_ACEOF
14199/* confdefs.h.  */
14200_ACEOF
14201cat confdefs.h >>conftest.$ac_ext
14202cat >>conftest.$ac_ext <<_ACEOF
14203/* end confdefs.h.  */
14204#include <sys/types.h>
14205#include <sys/wait.h>
14206#ifndef WEXITSTATUS
14207# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
14208#endif
14209#ifndef WIFEXITED
14210# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
14211#endif
14212
14213int
14214main ()
14215{
14216  int s;
14217  wait (&s);
14218  s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
14219  ;
14220  return 0;
14221}
14222_ACEOF
14223rm -f conftest.$ac_objext
14224if { (ac_try="$ac_compile"
14225case "(($ac_try" in
14226  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14227  *) ac_try_echo=$ac_try;;
14228esac
14229eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14230  (eval "$ac_compile") 2>conftest.er1
14231  ac_status=$?
14232  grep -v '^ *+' conftest.er1 >conftest.err
14233  rm -f conftest.er1
14234  cat conftest.err >&5
14235  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14236  (exit $ac_status); } &&
14237	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14238  { (case "(($ac_try" in
14239  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14240  *) ac_try_echo=$ac_try;;
14241esac
14242eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14243  (eval "$ac_try") 2>&5
14244  ac_status=$?
14245  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14246  (exit $ac_status); }; } &&
14247	 { ac_try='test -s conftest.$ac_objext'
14248  { (case "(($ac_try" in
14249  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14250  *) ac_try_echo=$ac_try;;
14251esac
14252eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14253  (eval "$ac_try") 2>&5
14254  ac_status=$?
14255  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14256  (exit $ac_status); }; }; then
14257  ac_cv_header_sys_wait_h=yes
14258else
14259  echo "$as_me: failed program was:" >&5
14260sed 's/^/| /' conftest.$ac_ext >&5
14261
14262	ac_cv_header_sys_wait_h=no
14263fi
14264
14265rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14266fi
14267{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
14268echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
14269if test $ac_cv_header_sys_wait_h = yes; then
14270
14271cat >>confdefs.h <<\_ACEOF
14272#define HAVE_SYS_WAIT_H 1
14273_ACEOF
14274
14275fi
14276
14277{ echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
14278echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
14279if test "${ac_cv_header_time+set}" = set; then
14280  echo $ECHO_N "(cached) $ECHO_C" >&6
14281else
14282  cat >conftest.$ac_ext <<_ACEOF
14283/* confdefs.h.  */
14284_ACEOF
14285cat confdefs.h >>conftest.$ac_ext
14286cat >>conftest.$ac_ext <<_ACEOF
14287/* end confdefs.h.  */
14288#include <sys/types.h>
14289#include <sys/time.h>
14290#include <time.h>
14291
14292int
14293main ()
14294{
14295if ((struct tm *) 0)
14296return 0;
14297  ;
14298  return 0;
14299}
14300_ACEOF
14301rm -f conftest.$ac_objext
14302if { (ac_try="$ac_compile"
14303case "(($ac_try" in
14304  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14305  *) ac_try_echo=$ac_try;;
14306esac
14307eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14308  (eval "$ac_compile") 2>conftest.er1
14309  ac_status=$?
14310  grep -v '^ *+' conftest.er1 >conftest.err
14311  rm -f conftest.er1
14312  cat conftest.err >&5
14313  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14314  (exit $ac_status); } &&
14315	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14316  { (case "(($ac_try" in
14317  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14318  *) ac_try_echo=$ac_try;;
14319esac
14320eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14321  (eval "$ac_try") 2>&5
14322  ac_status=$?
14323  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14324  (exit $ac_status); }; } &&
14325	 { ac_try='test -s conftest.$ac_objext'
14326  { (case "(($ac_try" in
14327  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14328  *) ac_try_echo=$ac_try;;
14329esac
14330eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14331  (eval "$ac_try") 2>&5
14332  ac_status=$?
14333  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14334  (exit $ac_status); }; }; then
14335  ac_cv_header_time=yes
14336else
14337  echo "$as_me: failed program was:" >&5
14338sed 's/^/| /' conftest.$ac_ext >&5
14339
14340	ac_cv_header_time=no
14341fi
14342
14343rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14344fi
14345{ echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
14346echo "${ECHO_T}$ac_cv_header_time" >&6; }
14347if test $ac_cv_header_time = yes; then
14348
14349cat >>confdefs.h <<\_ACEOF
14350#define TIME_WITH_SYS_TIME 1
14351_ACEOF
14352
14353fi
14354
14355
14356
14357
14358
14359
14360
14361
14362for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
14363do
14364as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14365if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14366  { echo "$as_me:$LINENO: checking for $ac_header" >&5
14367echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14368if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14369  echo $ECHO_N "(cached) $ECHO_C" >&6
14370fi
14371ac_res=`eval echo '${'$as_ac_Header'}'`
14372	       { echo "$as_me:$LINENO: result: $ac_res" >&5
14373echo "${ECHO_T}$ac_res" >&6; }
14374else
14375  # Is the header compilable?
14376{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
14377echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14378cat >conftest.$ac_ext <<_ACEOF
14379/* confdefs.h.  */
14380_ACEOF
14381cat confdefs.h >>conftest.$ac_ext
14382cat >>conftest.$ac_ext <<_ACEOF
14383/* end confdefs.h.  */
14384$ac_includes_default
14385#include <$ac_header>
14386_ACEOF
14387rm -f conftest.$ac_objext
14388if { (ac_try="$ac_compile"
14389case "(($ac_try" in
14390  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14391  *) ac_try_echo=$ac_try;;
14392esac
14393eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14394  (eval "$ac_compile") 2>conftest.er1
14395  ac_status=$?
14396  grep -v '^ *+' conftest.er1 >conftest.err
14397  rm -f conftest.er1
14398  cat conftest.err >&5
14399  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14400  (exit $ac_status); } &&
14401	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14402  { (case "(($ac_try" in
14403  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14404  *) ac_try_echo=$ac_try;;
14405esac
14406eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14407  (eval "$ac_try") 2>&5
14408  ac_status=$?
14409  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14410  (exit $ac_status); }; } &&
14411	 { ac_try='test -s conftest.$ac_objext'
14412  { (case "(($ac_try" in
14413  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14414  *) ac_try_echo=$ac_try;;
14415esac
14416eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14417  (eval "$ac_try") 2>&5
14418  ac_status=$?
14419  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14420  (exit $ac_status); }; }; then
14421  ac_header_compiler=yes
14422else
14423  echo "$as_me: failed program was:" >&5
14424sed 's/^/| /' conftest.$ac_ext >&5
14425
14426	ac_header_compiler=no
14427fi
14428
14429rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14430{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14431echo "${ECHO_T}$ac_header_compiler" >&6; }
14432
14433# Is the header present?
14434{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
14435echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14436cat >conftest.$ac_ext <<_ACEOF
14437/* confdefs.h.  */
14438_ACEOF
14439cat confdefs.h >>conftest.$ac_ext
14440cat >>conftest.$ac_ext <<_ACEOF
14441/* end confdefs.h.  */
14442#include <$ac_header>
14443_ACEOF
14444if { (ac_try="$ac_cpp conftest.$ac_ext"
14445case "(($ac_try" in
14446  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14447  *) ac_try_echo=$ac_try;;
14448esac
14449eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14450  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14451  ac_status=$?
14452  grep -v '^ *+' conftest.er1 >conftest.err
14453  rm -f conftest.er1
14454  cat conftest.err >&5
14455  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14456  (exit $ac_status); } >/dev/null; then
14457  if test -s conftest.err; then
14458    ac_cpp_err=$ac_c_preproc_warn_flag
14459    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14460  else
14461    ac_cpp_err=
14462  fi
14463else
14464  ac_cpp_err=yes
14465fi
14466if test -z "$ac_cpp_err"; then
14467  ac_header_preproc=yes
14468else
14469  echo "$as_me: failed program was:" >&5
14470sed 's/^/| /' conftest.$ac_ext >&5
14471
14472  ac_header_preproc=no
14473fi
14474
14475rm -f conftest.err conftest.$ac_ext
14476{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14477echo "${ECHO_T}$ac_header_preproc" >&6; }
14478
14479# So?  What about this header?
14480case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14481  yes:no: )
14482    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14483echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14484    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14485echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14486    ac_header_preproc=yes
14487    ;;
14488  no:yes:* )
14489    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14490echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14491    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14492echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14493    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14494echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14495    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14496echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14497    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14498echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14499    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14500echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14501    ( cat <<\_ASBOX
14502## ------------------------------------ ##
14503## Report this to http://llvm.org/bugs/ ##
14504## ------------------------------------ ##
14505_ASBOX
14506     ) | sed "s/^/$as_me: WARNING:     /" >&2
14507    ;;
14508esac
14509{ echo "$as_me:$LINENO: checking for $ac_header" >&5
14510echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14511if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14512  echo $ECHO_N "(cached) $ECHO_C" >&6
14513else
14514  eval "$as_ac_Header=\$ac_header_preproc"
14515fi
14516ac_res=`eval echo '${'$as_ac_Header'}'`
14517	       { echo "$as_me:$LINENO: result: $ac_res" >&5
14518echo "${ECHO_T}$ac_res" >&6; }
14519
14520fi
14521if test `eval echo '${'$as_ac_Header'}'` = yes; then
14522  cat >>confdefs.h <<_ACEOF
14523#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14524_ACEOF
14525
14526fi
14527
14528done
14529
14530
14531
14532
14533
14534
14535
14536for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
14537do
14538as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14539if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14540  { echo "$as_me:$LINENO: checking for $ac_header" >&5
14541echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14542if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14543  echo $ECHO_N "(cached) $ECHO_C" >&6
14544fi
14545ac_res=`eval echo '${'$as_ac_Header'}'`
14546	       { echo "$as_me:$LINENO: result: $ac_res" >&5
14547echo "${ECHO_T}$ac_res" >&6; }
14548else
14549  # Is the header compilable?
14550{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
14551echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14552cat >conftest.$ac_ext <<_ACEOF
14553/* confdefs.h.  */
14554_ACEOF
14555cat confdefs.h >>conftest.$ac_ext
14556cat >>conftest.$ac_ext <<_ACEOF
14557/* end confdefs.h.  */
14558$ac_includes_default
14559#include <$ac_header>
14560_ACEOF
14561rm -f conftest.$ac_objext
14562if { (ac_try="$ac_compile"
14563case "(($ac_try" in
14564  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14565  *) ac_try_echo=$ac_try;;
14566esac
14567eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14568  (eval "$ac_compile") 2>conftest.er1
14569  ac_status=$?
14570  grep -v '^ *+' conftest.er1 >conftest.err
14571  rm -f conftest.er1
14572  cat conftest.err >&5
14573  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14574  (exit $ac_status); } &&
14575	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14576  { (case "(($ac_try" in
14577  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14578  *) ac_try_echo=$ac_try;;
14579esac
14580eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14581  (eval "$ac_try") 2>&5
14582  ac_status=$?
14583  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14584  (exit $ac_status); }; } &&
14585	 { ac_try='test -s conftest.$ac_objext'
14586  { (case "(($ac_try" in
14587  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14588  *) ac_try_echo=$ac_try;;
14589esac
14590eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14591  (eval "$ac_try") 2>&5
14592  ac_status=$?
14593  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14594  (exit $ac_status); }; }; then
14595  ac_header_compiler=yes
14596else
14597  echo "$as_me: failed program was:" >&5
14598sed 's/^/| /' conftest.$ac_ext >&5
14599
14600	ac_header_compiler=no
14601fi
14602
14603rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14604{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14605echo "${ECHO_T}$ac_header_compiler" >&6; }
14606
14607# Is the header present?
14608{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
14609echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14610cat >conftest.$ac_ext <<_ACEOF
14611/* confdefs.h.  */
14612_ACEOF
14613cat confdefs.h >>conftest.$ac_ext
14614cat >>conftest.$ac_ext <<_ACEOF
14615/* end confdefs.h.  */
14616#include <$ac_header>
14617_ACEOF
14618if { (ac_try="$ac_cpp conftest.$ac_ext"
14619case "(($ac_try" in
14620  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14621  *) ac_try_echo=$ac_try;;
14622esac
14623eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14624  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14625  ac_status=$?
14626  grep -v '^ *+' conftest.er1 >conftest.err
14627  rm -f conftest.er1
14628  cat conftest.err >&5
14629  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14630  (exit $ac_status); } >/dev/null; then
14631  if test -s conftest.err; then
14632    ac_cpp_err=$ac_c_preproc_warn_flag
14633    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14634  else
14635    ac_cpp_err=
14636  fi
14637else
14638  ac_cpp_err=yes
14639fi
14640if test -z "$ac_cpp_err"; then
14641  ac_header_preproc=yes
14642else
14643  echo "$as_me: failed program was:" >&5
14644sed 's/^/| /' conftest.$ac_ext >&5
14645
14646  ac_header_preproc=no
14647fi
14648
14649rm -f conftest.err conftest.$ac_ext
14650{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14651echo "${ECHO_T}$ac_header_preproc" >&6; }
14652
14653# So?  What about this header?
14654case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14655  yes:no: )
14656    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14657echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14658    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14659echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14660    ac_header_preproc=yes
14661    ;;
14662  no:yes:* )
14663    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14664echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14665    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14666echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14667    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14668echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14669    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14670echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14671    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14672echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14673    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14674echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14675    ( cat <<\_ASBOX
14676## ------------------------------------ ##
14677## Report this to http://llvm.org/bugs/ ##
14678## ------------------------------------ ##
14679_ASBOX
14680     ) | sed "s/^/$as_me: WARNING:     /" >&2
14681    ;;
14682esac
14683{ echo "$as_me:$LINENO: checking for $ac_header" >&5
14684echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14685if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14686  echo $ECHO_N "(cached) $ECHO_C" >&6
14687else
14688  eval "$as_ac_Header=\$ac_header_preproc"
14689fi
14690ac_res=`eval echo '${'$as_ac_Header'}'`
14691	       { echo "$as_me:$LINENO: result: $ac_res" >&5
14692echo "${ECHO_T}$ac_res" >&6; }
14693
14694fi
14695if test `eval echo '${'$as_ac_Header'}'` = yes; then
14696  cat >>confdefs.h <<_ACEOF
14697#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14698_ACEOF
14699
14700fi
14701
14702done
14703
14704
14705
14706for ac_header in utime.h windows.h
14707do
14708as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14709if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14710  { echo "$as_me:$LINENO: checking for $ac_header" >&5
14711echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14712if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14713  echo $ECHO_N "(cached) $ECHO_C" >&6
14714fi
14715ac_res=`eval echo '${'$as_ac_Header'}'`
14716	       { echo "$as_me:$LINENO: result: $ac_res" >&5
14717echo "${ECHO_T}$ac_res" >&6; }
14718else
14719  # Is the header compilable?
14720{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
14721echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14722cat >conftest.$ac_ext <<_ACEOF
14723/* confdefs.h.  */
14724_ACEOF
14725cat confdefs.h >>conftest.$ac_ext
14726cat >>conftest.$ac_ext <<_ACEOF
14727/* end confdefs.h.  */
14728$ac_includes_default
14729#include <$ac_header>
14730_ACEOF
14731rm -f conftest.$ac_objext
14732if { (ac_try="$ac_compile"
14733case "(($ac_try" in
14734  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14735  *) ac_try_echo=$ac_try;;
14736esac
14737eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14738  (eval "$ac_compile") 2>conftest.er1
14739  ac_status=$?
14740  grep -v '^ *+' conftest.er1 >conftest.err
14741  rm -f conftest.er1
14742  cat conftest.err >&5
14743  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14744  (exit $ac_status); } &&
14745	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14746  { (case "(($ac_try" in
14747  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14748  *) ac_try_echo=$ac_try;;
14749esac
14750eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14751  (eval "$ac_try") 2>&5
14752  ac_status=$?
14753  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14754  (exit $ac_status); }; } &&
14755	 { ac_try='test -s conftest.$ac_objext'
14756  { (case "(($ac_try" in
14757  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14758  *) ac_try_echo=$ac_try;;
14759esac
14760eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14761  (eval "$ac_try") 2>&5
14762  ac_status=$?
14763  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14764  (exit $ac_status); }; }; then
14765  ac_header_compiler=yes
14766else
14767  echo "$as_me: failed program was:" >&5
14768sed 's/^/| /' conftest.$ac_ext >&5
14769
14770	ac_header_compiler=no
14771fi
14772
14773rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14774{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14775echo "${ECHO_T}$ac_header_compiler" >&6; }
14776
14777# Is the header present?
14778{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
14779echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14780cat >conftest.$ac_ext <<_ACEOF
14781/* confdefs.h.  */
14782_ACEOF
14783cat confdefs.h >>conftest.$ac_ext
14784cat >>conftest.$ac_ext <<_ACEOF
14785/* end confdefs.h.  */
14786#include <$ac_header>
14787_ACEOF
14788if { (ac_try="$ac_cpp conftest.$ac_ext"
14789case "(($ac_try" in
14790  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14791  *) ac_try_echo=$ac_try;;
14792esac
14793eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14794  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14795  ac_status=$?
14796  grep -v '^ *+' conftest.er1 >conftest.err
14797  rm -f conftest.er1
14798  cat conftest.err >&5
14799  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14800  (exit $ac_status); } >/dev/null; then
14801  if test -s conftest.err; then
14802    ac_cpp_err=$ac_c_preproc_warn_flag
14803    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14804  else
14805    ac_cpp_err=
14806  fi
14807else
14808  ac_cpp_err=yes
14809fi
14810if test -z "$ac_cpp_err"; then
14811  ac_header_preproc=yes
14812else
14813  echo "$as_me: failed program was:" >&5
14814sed 's/^/| /' conftest.$ac_ext >&5
14815
14816  ac_header_preproc=no
14817fi
14818
14819rm -f conftest.err conftest.$ac_ext
14820{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14821echo "${ECHO_T}$ac_header_preproc" >&6; }
14822
14823# So?  What about this header?
14824case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14825  yes:no: )
14826    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14827echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14828    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14829echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14830    ac_header_preproc=yes
14831    ;;
14832  no:yes:* )
14833    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14834echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14835    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14836echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14837    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14838echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14839    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14840echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14841    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14842echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14843    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14844echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14845    ( cat <<\_ASBOX
14846## ------------------------------------ ##
14847## Report this to http://llvm.org/bugs/ ##
14848## ------------------------------------ ##
14849_ASBOX
14850     ) | sed "s/^/$as_me: WARNING:     /" >&2
14851    ;;
14852esac
14853{ echo "$as_me:$LINENO: checking for $ac_header" >&5
14854echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14855if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14856  echo $ECHO_N "(cached) $ECHO_C" >&6
14857else
14858  eval "$as_ac_Header=\$ac_header_preproc"
14859fi
14860ac_res=`eval echo '${'$as_ac_Header'}'`
14861	       { echo "$as_me:$LINENO: result: $ac_res" >&5
14862echo "${ECHO_T}$ac_res" >&6; }
14863
14864fi
14865if test `eval echo '${'$as_ac_Header'}'` = yes; then
14866  cat >>confdefs.h <<_ACEOF
14867#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14868_ACEOF
14869
14870fi
14871
14872done
14873
14874
14875
14876
14877
14878
14879for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h sys/uio.h
14880do
14881as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14882if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14883  { echo "$as_me:$LINENO: checking for $ac_header" >&5
14884echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14885if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14886  echo $ECHO_N "(cached) $ECHO_C" >&6
14887fi
14888ac_res=`eval echo '${'$as_ac_Header'}'`
14889	       { echo "$as_me:$LINENO: result: $ac_res" >&5
14890echo "${ECHO_T}$ac_res" >&6; }
14891else
14892  # Is the header compilable?
14893{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
14894echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14895cat >conftest.$ac_ext <<_ACEOF
14896/* confdefs.h.  */
14897_ACEOF
14898cat confdefs.h >>conftest.$ac_ext
14899cat >>conftest.$ac_ext <<_ACEOF
14900/* end confdefs.h.  */
14901$ac_includes_default
14902#include <$ac_header>
14903_ACEOF
14904rm -f conftest.$ac_objext
14905if { (ac_try="$ac_compile"
14906case "(($ac_try" in
14907  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14908  *) ac_try_echo=$ac_try;;
14909esac
14910eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14911  (eval "$ac_compile") 2>conftest.er1
14912  ac_status=$?
14913  grep -v '^ *+' conftest.er1 >conftest.err
14914  rm -f conftest.er1
14915  cat conftest.err >&5
14916  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14917  (exit $ac_status); } &&
14918	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14919  { (case "(($ac_try" in
14920  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14921  *) ac_try_echo=$ac_try;;
14922esac
14923eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14924  (eval "$ac_try") 2>&5
14925  ac_status=$?
14926  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14927  (exit $ac_status); }; } &&
14928	 { ac_try='test -s conftest.$ac_objext'
14929  { (case "(($ac_try" in
14930  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14931  *) ac_try_echo=$ac_try;;
14932esac
14933eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14934  (eval "$ac_try") 2>&5
14935  ac_status=$?
14936  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14937  (exit $ac_status); }; }; then
14938  ac_header_compiler=yes
14939else
14940  echo "$as_me: failed program was:" >&5
14941sed 's/^/| /' conftest.$ac_ext >&5
14942
14943	ac_header_compiler=no
14944fi
14945
14946rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14947{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14948echo "${ECHO_T}$ac_header_compiler" >&6; }
14949
14950# Is the header present?
14951{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
14952echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14953cat >conftest.$ac_ext <<_ACEOF
14954/* confdefs.h.  */
14955_ACEOF
14956cat confdefs.h >>conftest.$ac_ext
14957cat >>conftest.$ac_ext <<_ACEOF
14958/* end confdefs.h.  */
14959#include <$ac_header>
14960_ACEOF
14961if { (ac_try="$ac_cpp conftest.$ac_ext"
14962case "(($ac_try" in
14963  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14964  *) ac_try_echo=$ac_try;;
14965esac
14966eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14967  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14968  ac_status=$?
14969  grep -v '^ *+' conftest.er1 >conftest.err
14970  rm -f conftest.er1
14971  cat conftest.err >&5
14972  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14973  (exit $ac_status); } >/dev/null; then
14974  if test -s conftest.err; then
14975    ac_cpp_err=$ac_c_preproc_warn_flag
14976    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14977  else
14978    ac_cpp_err=
14979  fi
14980else
14981  ac_cpp_err=yes
14982fi
14983if test -z "$ac_cpp_err"; then
14984  ac_header_preproc=yes
14985else
14986  echo "$as_me: failed program was:" >&5
14987sed 's/^/| /' conftest.$ac_ext >&5
14988
14989  ac_header_preproc=no
14990fi
14991
14992rm -f conftest.err conftest.$ac_ext
14993{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14994echo "${ECHO_T}$ac_header_preproc" >&6; }
14995
14996# So?  What about this header?
14997case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14998  yes:no: )
14999    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15000echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15001    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15002echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15003    ac_header_preproc=yes
15004    ;;
15005  no:yes:* )
15006    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15007echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15008    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15009echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15010    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15011echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15012    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15013echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15014    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15015echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15016    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15017echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15018    ( cat <<\_ASBOX
15019## ------------------------------------ ##
15020## Report this to http://llvm.org/bugs/ ##
15021## ------------------------------------ ##
15022_ASBOX
15023     ) | sed "s/^/$as_me: WARNING:     /" >&2
15024    ;;
15025esac
15026{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15027echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15028if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15029  echo $ECHO_N "(cached) $ECHO_C" >&6
15030else
15031  eval "$as_ac_Header=\$ac_header_preproc"
15032fi
15033ac_res=`eval echo '${'$as_ac_Header'}'`
15034	       { echo "$as_me:$LINENO: result: $ac_res" >&5
15035echo "${ECHO_T}$ac_res" >&6; }
15036
15037fi
15038if test `eval echo '${'$as_ac_Header'}'` = yes; then
15039  cat >>confdefs.h <<_ACEOF
15040#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15041_ACEOF
15042
15043fi
15044
15045done
15046
15047
15048
15049
15050
15051for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h
15052do
15053as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15054if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15055  { echo "$as_me:$LINENO: checking for $ac_header" >&5
15056echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15057if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15058  echo $ECHO_N "(cached) $ECHO_C" >&6
15059fi
15060ac_res=`eval echo '${'$as_ac_Header'}'`
15061	       { echo "$as_me:$LINENO: result: $ac_res" >&5
15062echo "${ECHO_T}$ac_res" >&6; }
15063else
15064  # Is the header compilable?
15065{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15066echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15067cat >conftest.$ac_ext <<_ACEOF
15068/* confdefs.h.  */
15069_ACEOF
15070cat confdefs.h >>conftest.$ac_ext
15071cat >>conftest.$ac_ext <<_ACEOF
15072/* end confdefs.h.  */
15073$ac_includes_default
15074#include <$ac_header>
15075_ACEOF
15076rm -f conftest.$ac_objext
15077if { (ac_try="$ac_compile"
15078case "(($ac_try" in
15079  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15080  *) ac_try_echo=$ac_try;;
15081esac
15082eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15083  (eval "$ac_compile") 2>conftest.er1
15084  ac_status=$?
15085  grep -v '^ *+' conftest.er1 >conftest.err
15086  rm -f conftest.er1
15087  cat conftest.err >&5
15088  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15089  (exit $ac_status); } &&
15090	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15091  { (case "(($ac_try" in
15092  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15093  *) ac_try_echo=$ac_try;;
15094esac
15095eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15096  (eval "$ac_try") 2>&5
15097  ac_status=$?
15098  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15099  (exit $ac_status); }; } &&
15100	 { ac_try='test -s conftest.$ac_objext'
15101  { (case "(($ac_try" in
15102  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15103  *) ac_try_echo=$ac_try;;
15104esac
15105eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15106  (eval "$ac_try") 2>&5
15107  ac_status=$?
15108  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15109  (exit $ac_status); }; }; then
15110  ac_header_compiler=yes
15111else
15112  echo "$as_me: failed program was:" >&5
15113sed 's/^/| /' conftest.$ac_ext >&5
15114
15115	ac_header_compiler=no
15116fi
15117
15118rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15119{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15120echo "${ECHO_T}$ac_header_compiler" >&6; }
15121
15122# Is the header present?
15123{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15124echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15125cat >conftest.$ac_ext <<_ACEOF
15126/* confdefs.h.  */
15127_ACEOF
15128cat confdefs.h >>conftest.$ac_ext
15129cat >>conftest.$ac_ext <<_ACEOF
15130/* end confdefs.h.  */
15131#include <$ac_header>
15132_ACEOF
15133if { (ac_try="$ac_cpp conftest.$ac_ext"
15134case "(($ac_try" in
15135  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15136  *) ac_try_echo=$ac_try;;
15137esac
15138eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15139  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15140  ac_status=$?
15141  grep -v '^ *+' conftest.er1 >conftest.err
15142  rm -f conftest.er1
15143  cat conftest.err >&5
15144  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15145  (exit $ac_status); } >/dev/null; then
15146  if test -s conftest.err; then
15147    ac_cpp_err=$ac_c_preproc_warn_flag
15148    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15149  else
15150    ac_cpp_err=
15151  fi
15152else
15153  ac_cpp_err=yes
15154fi
15155if test -z "$ac_cpp_err"; then
15156  ac_header_preproc=yes
15157else
15158  echo "$as_me: failed program was:" >&5
15159sed 's/^/| /' conftest.$ac_ext >&5
15160
15161  ac_header_preproc=no
15162fi
15163
15164rm -f conftest.err conftest.$ac_ext
15165{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15166echo "${ECHO_T}$ac_header_preproc" >&6; }
15167
15168# So?  What about this header?
15169case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15170  yes:no: )
15171    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15172echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15173    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15174echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15175    ac_header_preproc=yes
15176    ;;
15177  no:yes:* )
15178    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15179echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15180    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15181echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15182    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15183echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15184    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15185echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15186    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15187echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15188    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15189echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15190    ( cat <<\_ASBOX
15191## ------------------------------------ ##
15192## Report this to http://llvm.org/bugs/ ##
15193## ------------------------------------ ##
15194_ASBOX
15195     ) | sed "s/^/$as_me: WARNING:     /" >&2
15196    ;;
15197esac
15198{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15199echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15200if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15201  echo $ECHO_N "(cached) $ECHO_C" >&6
15202else
15203  eval "$as_ac_Header=\$ac_header_preproc"
15204fi
15205ac_res=`eval echo '${'$as_ac_Header'}'`
15206	       { echo "$as_me:$LINENO: result: $ac_res" >&5
15207echo "${ECHO_T}$ac_res" >&6; }
15208
15209fi
15210if test `eval echo '${'$as_ac_Header'}'` = yes; then
15211  cat >>confdefs.h <<_ACEOF
15212#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15213_ACEOF
15214
15215fi
15216
15217done
15218
15219
15220for ac_header in valgrind/valgrind.h
15221do
15222as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15223if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15224  { echo "$as_me:$LINENO: checking for $ac_header" >&5
15225echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15226if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15227  echo $ECHO_N "(cached) $ECHO_C" >&6
15228fi
15229ac_res=`eval echo '${'$as_ac_Header'}'`
15230	       { echo "$as_me:$LINENO: result: $ac_res" >&5
15231echo "${ECHO_T}$ac_res" >&6; }
15232else
15233  # Is the header compilable?
15234{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15235echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15236cat >conftest.$ac_ext <<_ACEOF
15237/* confdefs.h.  */
15238_ACEOF
15239cat confdefs.h >>conftest.$ac_ext
15240cat >>conftest.$ac_ext <<_ACEOF
15241/* end confdefs.h.  */
15242$ac_includes_default
15243#include <$ac_header>
15244_ACEOF
15245rm -f conftest.$ac_objext
15246if { (ac_try="$ac_compile"
15247case "(($ac_try" in
15248  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15249  *) ac_try_echo=$ac_try;;
15250esac
15251eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15252  (eval "$ac_compile") 2>conftest.er1
15253  ac_status=$?
15254  grep -v '^ *+' conftest.er1 >conftest.err
15255  rm -f conftest.er1
15256  cat conftest.err >&5
15257  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15258  (exit $ac_status); } &&
15259	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15260  { (case "(($ac_try" in
15261  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15262  *) ac_try_echo=$ac_try;;
15263esac
15264eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15265  (eval "$ac_try") 2>&5
15266  ac_status=$?
15267  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15268  (exit $ac_status); }; } &&
15269	 { ac_try='test -s conftest.$ac_objext'
15270  { (case "(($ac_try" in
15271  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15272  *) ac_try_echo=$ac_try;;
15273esac
15274eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15275  (eval "$ac_try") 2>&5
15276  ac_status=$?
15277  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15278  (exit $ac_status); }; }; then
15279  ac_header_compiler=yes
15280else
15281  echo "$as_me: failed program was:" >&5
15282sed 's/^/| /' conftest.$ac_ext >&5
15283
15284	ac_header_compiler=no
15285fi
15286
15287rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15288{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15289echo "${ECHO_T}$ac_header_compiler" >&6; }
15290
15291# Is the header present?
15292{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15293echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15294cat >conftest.$ac_ext <<_ACEOF
15295/* confdefs.h.  */
15296_ACEOF
15297cat confdefs.h >>conftest.$ac_ext
15298cat >>conftest.$ac_ext <<_ACEOF
15299/* end confdefs.h.  */
15300#include <$ac_header>
15301_ACEOF
15302if { (ac_try="$ac_cpp conftest.$ac_ext"
15303case "(($ac_try" in
15304  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15305  *) ac_try_echo=$ac_try;;
15306esac
15307eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15308  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15309  ac_status=$?
15310  grep -v '^ *+' conftest.er1 >conftest.err
15311  rm -f conftest.er1
15312  cat conftest.err >&5
15313  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15314  (exit $ac_status); } >/dev/null; then
15315  if test -s conftest.err; then
15316    ac_cpp_err=$ac_c_preproc_warn_flag
15317    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15318  else
15319    ac_cpp_err=
15320  fi
15321else
15322  ac_cpp_err=yes
15323fi
15324if test -z "$ac_cpp_err"; then
15325  ac_header_preproc=yes
15326else
15327  echo "$as_me: failed program was:" >&5
15328sed 's/^/| /' conftest.$ac_ext >&5
15329
15330  ac_header_preproc=no
15331fi
15332
15333rm -f conftest.err conftest.$ac_ext
15334{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15335echo "${ECHO_T}$ac_header_preproc" >&6; }
15336
15337# So?  What about this header?
15338case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15339  yes:no: )
15340    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15341echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15342    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15343echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15344    ac_header_preproc=yes
15345    ;;
15346  no:yes:* )
15347    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15348echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15349    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15350echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15351    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15352echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15353    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15354echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15355    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15356echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15357    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15358echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15359    ( cat <<\_ASBOX
15360## ------------------------------------ ##
15361## Report this to http://llvm.org/bugs/ ##
15362## ------------------------------------ ##
15363_ASBOX
15364     ) | sed "s/^/$as_me: WARNING:     /" >&2
15365    ;;
15366esac
15367{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15368echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15369if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15370  echo $ECHO_N "(cached) $ECHO_C" >&6
15371else
15372  eval "$as_ac_Header=\$ac_header_preproc"
15373fi
15374ac_res=`eval echo '${'$as_ac_Header'}'`
15375	       { echo "$as_me:$LINENO: result: $ac_res" >&5
15376echo "${ECHO_T}$ac_res" >&6; }
15377
15378fi
15379if test `eval echo '${'$as_ac_Header'}'` = yes; then
15380  cat >>confdefs.h <<_ACEOF
15381#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15382_ACEOF
15383
15384fi
15385
15386done
15387
15388
15389for ac_header in fenv.h
15390do
15391as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15392if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15393  { echo "$as_me:$LINENO: checking for $ac_header" >&5
15394echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15395if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15396  echo $ECHO_N "(cached) $ECHO_C" >&6
15397fi
15398ac_res=`eval echo '${'$as_ac_Header'}'`
15399	       { echo "$as_me:$LINENO: result: $ac_res" >&5
15400echo "${ECHO_T}$ac_res" >&6; }
15401else
15402  # Is the header compilable?
15403{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15404echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15405cat >conftest.$ac_ext <<_ACEOF
15406/* confdefs.h.  */
15407_ACEOF
15408cat confdefs.h >>conftest.$ac_ext
15409cat >>conftest.$ac_ext <<_ACEOF
15410/* end confdefs.h.  */
15411$ac_includes_default
15412#include <$ac_header>
15413_ACEOF
15414rm -f conftest.$ac_objext
15415if { (ac_try="$ac_compile"
15416case "(($ac_try" in
15417  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15418  *) ac_try_echo=$ac_try;;
15419esac
15420eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15421  (eval "$ac_compile") 2>conftest.er1
15422  ac_status=$?
15423  grep -v '^ *+' conftest.er1 >conftest.err
15424  rm -f conftest.er1
15425  cat conftest.err >&5
15426  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15427  (exit $ac_status); } &&
15428	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15429  { (case "(($ac_try" in
15430  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15431  *) ac_try_echo=$ac_try;;
15432esac
15433eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15434  (eval "$ac_try") 2>&5
15435  ac_status=$?
15436  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15437  (exit $ac_status); }; } &&
15438	 { ac_try='test -s conftest.$ac_objext'
15439  { (case "(($ac_try" in
15440  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15441  *) ac_try_echo=$ac_try;;
15442esac
15443eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15444  (eval "$ac_try") 2>&5
15445  ac_status=$?
15446  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15447  (exit $ac_status); }; }; then
15448  ac_header_compiler=yes
15449else
15450  echo "$as_me: failed program was:" >&5
15451sed 's/^/| /' conftest.$ac_ext >&5
15452
15453	ac_header_compiler=no
15454fi
15455
15456rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15457{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15458echo "${ECHO_T}$ac_header_compiler" >&6; }
15459
15460# Is the header present?
15461{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15462echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15463cat >conftest.$ac_ext <<_ACEOF
15464/* confdefs.h.  */
15465_ACEOF
15466cat confdefs.h >>conftest.$ac_ext
15467cat >>conftest.$ac_ext <<_ACEOF
15468/* end confdefs.h.  */
15469#include <$ac_header>
15470_ACEOF
15471if { (ac_try="$ac_cpp conftest.$ac_ext"
15472case "(($ac_try" in
15473  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15474  *) ac_try_echo=$ac_try;;
15475esac
15476eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15477  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15478  ac_status=$?
15479  grep -v '^ *+' conftest.er1 >conftest.err
15480  rm -f conftest.er1
15481  cat conftest.err >&5
15482  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15483  (exit $ac_status); } >/dev/null; then
15484  if test -s conftest.err; then
15485    ac_cpp_err=$ac_c_preproc_warn_flag
15486    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15487  else
15488    ac_cpp_err=
15489  fi
15490else
15491  ac_cpp_err=yes
15492fi
15493if test -z "$ac_cpp_err"; then
15494  ac_header_preproc=yes
15495else
15496  echo "$as_me: failed program was:" >&5
15497sed 's/^/| /' conftest.$ac_ext >&5
15498
15499  ac_header_preproc=no
15500fi
15501
15502rm -f conftest.err conftest.$ac_ext
15503{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15504echo "${ECHO_T}$ac_header_preproc" >&6; }
15505
15506# So?  What about this header?
15507case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15508  yes:no: )
15509    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15510echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15511    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15512echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15513    ac_header_preproc=yes
15514    ;;
15515  no:yes:* )
15516    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15517echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15518    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15519echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15520    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15521echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15522    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15523echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15524    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15525echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15526    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15527echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15528    ( cat <<\_ASBOX
15529## ------------------------------------ ##
15530## Report this to http://llvm.org/bugs/ ##
15531## ------------------------------------ ##
15532_ASBOX
15533     ) | sed "s/^/$as_me: WARNING:     /" >&2
15534    ;;
15535esac
15536{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15537echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15538if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15539  echo $ECHO_N "(cached) $ECHO_C" >&6
15540else
15541  eval "$as_ac_Header=\$ac_header_preproc"
15542fi
15543ac_res=`eval echo '${'$as_ac_Header'}'`
15544	       { echo "$as_me:$LINENO: result: $ac_res" >&5
15545echo "${ECHO_T}$ac_res" >&6; }
15546
15547fi
15548if test `eval echo '${'$as_ac_Header'}'` = yes; then
15549  cat >>confdefs.h <<_ACEOF
15550#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15551_ACEOF
15552
15553fi
15554
15555done
15556
15557if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
15558
15559for ac_header in pthread.h
15560do
15561as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15562if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15563  { echo "$as_me:$LINENO: checking for $ac_header" >&5
15564echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15565if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15566  echo $ECHO_N "(cached) $ECHO_C" >&6
15567fi
15568ac_res=`eval echo '${'$as_ac_Header'}'`
15569	       { echo "$as_me:$LINENO: result: $ac_res" >&5
15570echo "${ECHO_T}$ac_res" >&6; }
15571else
15572  # Is the header compilable?
15573{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15574echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15575cat >conftest.$ac_ext <<_ACEOF
15576/* confdefs.h.  */
15577_ACEOF
15578cat confdefs.h >>conftest.$ac_ext
15579cat >>conftest.$ac_ext <<_ACEOF
15580/* end confdefs.h.  */
15581$ac_includes_default
15582#include <$ac_header>
15583_ACEOF
15584rm -f conftest.$ac_objext
15585if { (ac_try="$ac_compile"
15586case "(($ac_try" in
15587  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15588  *) ac_try_echo=$ac_try;;
15589esac
15590eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15591  (eval "$ac_compile") 2>conftest.er1
15592  ac_status=$?
15593  grep -v '^ *+' conftest.er1 >conftest.err
15594  rm -f conftest.er1
15595  cat conftest.err >&5
15596  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15597  (exit $ac_status); } &&
15598	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15599  { (case "(($ac_try" in
15600  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15601  *) ac_try_echo=$ac_try;;
15602esac
15603eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15604  (eval "$ac_try") 2>&5
15605  ac_status=$?
15606  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15607  (exit $ac_status); }; } &&
15608	 { ac_try='test -s conftest.$ac_objext'
15609  { (case "(($ac_try" in
15610  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15611  *) ac_try_echo=$ac_try;;
15612esac
15613eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15614  (eval "$ac_try") 2>&5
15615  ac_status=$?
15616  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15617  (exit $ac_status); }; }; then
15618  ac_header_compiler=yes
15619else
15620  echo "$as_me: failed program was:" >&5
15621sed 's/^/| /' conftest.$ac_ext >&5
15622
15623	ac_header_compiler=no
15624fi
15625
15626rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15627{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15628echo "${ECHO_T}$ac_header_compiler" >&6; }
15629
15630# Is the header present?
15631{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15632echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15633cat >conftest.$ac_ext <<_ACEOF
15634/* confdefs.h.  */
15635_ACEOF
15636cat confdefs.h >>conftest.$ac_ext
15637cat >>conftest.$ac_ext <<_ACEOF
15638/* end confdefs.h.  */
15639#include <$ac_header>
15640_ACEOF
15641if { (ac_try="$ac_cpp conftest.$ac_ext"
15642case "(($ac_try" in
15643  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15644  *) ac_try_echo=$ac_try;;
15645esac
15646eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15647  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15648  ac_status=$?
15649  grep -v '^ *+' conftest.er1 >conftest.err
15650  rm -f conftest.er1
15651  cat conftest.err >&5
15652  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15653  (exit $ac_status); } >/dev/null; then
15654  if test -s conftest.err; then
15655    ac_cpp_err=$ac_c_preproc_warn_flag
15656    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15657  else
15658    ac_cpp_err=
15659  fi
15660else
15661  ac_cpp_err=yes
15662fi
15663if test -z "$ac_cpp_err"; then
15664  ac_header_preproc=yes
15665else
15666  echo "$as_me: failed program was:" >&5
15667sed 's/^/| /' conftest.$ac_ext >&5
15668
15669  ac_header_preproc=no
15670fi
15671
15672rm -f conftest.err conftest.$ac_ext
15673{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15674echo "${ECHO_T}$ac_header_preproc" >&6; }
15675
15676# So?  What about this header?
15677case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15678  yes:no: )
15679    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15680echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15681    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15682echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15683    ac_header_preproc=yes
15684    ;;
15685  no:yes:* )
15686    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15687echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15688    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15689echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15690    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15691echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15692    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15693echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15694    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15695echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15696    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15697echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15698    ( cat <<\_ASBOX
15699## ------------------------------------ ##
15700## Report this to http://llvm.org/bugs/ ##
15701## ------------------------------------ ##
15702_ASBOX
15703     ) | sed "s/^/$as_me: WARNING:     /" >&2
15704    ;;
15705esac
15706{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15707echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15708if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15709  echo $ECHO_N "(cached) $ECHO_C" >&6
15710else
15711  eval "$as_ac_Header=\$ac_header_preproc"
15712fi
15713ac_res=`eval echo '${'$as_ac_Header'}'`
15714	       { echo "$as_me:$LINENO: result: $ac_res" >&5
15715echo "${ECHO_T}$ac_res" >&6; }
15716
15717fi
15718if test `eval echo '${'$as_ac_Header'}'` = yes; then
15719  cat >>confdefs.h <<_ACEOF
15720#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15721_ACEOF
15722 HAVE_PTHREAD=1
15723
15724else
15725  HAVE_PTHREAD=0
15726
15727fi
15728
15729done
15730
15731else
15732  HAVE_PTHREAD=0
15733
15734fi
15735
15736if test "$llvm_cv_enable_libffi" = "yes" ; then
15737
15738
15739for ac_header in ffi.h ffi/ffi.h
15740do
15741as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15742if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15743  { echo "$as_me:$LINENO: checking for $ac_header" >&5
15744echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15745if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15746  echo $ECHO_N "(cached) $ECHO_C" >&6
15747fi
15748ac_res=`eval echo '${'$as_ac_Header'}'`
15749	       { echo "$as_me:$LINENO: result: $ac_res" >&5
15750echo "${ECHO_T}$ac_res" >&6; }
15751else
15752  # Is the header compilable?
15753{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15754echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15755cat >conftest.$ac_ext <<_ACEOF
15756/* confdefs.h.  */
15757_ACEOF
15758cat confdefs.h >>conftest.$ac_ext
15759cat >>conftest.$ac_ext <<_ACEOF
15760/* end confdefs.h.  */
15761$ac_includes_default
15762#include <$ac_header>
15763_ACEOF
15764rm -f conftest.$ac_objext
15765if { (ac_try="$ac_compile"
15766case "(($ac_try" in
15767  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15768  *) ac_try_echo=$ac_try;;
15769esac
15770eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15771  (eval "$ac_compile") 2>conftest.er1
15772  ac_status=$?
15773  grep -v '^ *+' conftest.er1 >conftest.err
15774  rm -f conftest.er1
15775  cat conftest.err >&5
15776  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15777  (exit $ac_status); } &&
15778	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15779  { (case "(($ac_try" in
15780  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15781  *) ac_try_echo=$ac_try;;
15782esac
15783eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15784  (eval "$ac_try") 2>&5
15785  ac_status=$?
15786  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15787  (exit $ac_status); }; } &&
15788	 { ac_try='test -s conftest.$ac_objext'
15789  { (case "(($ac_try" in
15790  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15791  *) ac_try_echo=$ac_try;;
15792esac
15793eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15794  (eval "$ac_try") 2>&5
15795  ac_status=$?
15796  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15797  (exit $ac_status); }; }; then
15798  ac_header_compiler=yes
15799else
15800  echo "$as_me: failed program was:" >&5
15801sed 's/^/| /' conftest.$ac_ext >&5
15802
15803	ac_header_compiler=no
15804fi
15805
15806rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15807{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15808echo "${ECHO_T}$ac_header_compiler" >&6; }
15809
15810# Is the header present?
15811{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15812echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15813cat >conftest.$ac_ext <<_ACEOF
15814/* confdefs.h.  */
15815_ACEOF
15816cat confdefs.h >>conftest.$ac_ext
15817cat >>conftest.$ac_ext <<_ACEOF
15818/* end confdefs.h.  */
15819#include <$ac_header>
15820_ACEOF
15821if { (ac_try="$ac_cpp conftest.$ac_ext"
15822case "(($ac_try" in
15823  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15824  *) ac_try_echo=$ac_try;;
15825esac
15826eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15827  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15828  ac_status=$?
15829  grep -v '^ *+' conftest.er1 >conftest.err
15830  rm -f conftest.er1
15831  cat conftest.err >&5
15832  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15833  (exit $ac_status); } >/dev/null; then
15834  if test -s conftest.err; then
15835    ac_cpp_err=$ac_c_preproc_warn_flag
15836    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15837  else
15838    ac_cpp_err=
15839  fi
15840else
15841  ac_cpp_err=yes
15842fi
15843if test -z "$ac_cpp_err"; then
15844  ac_header_preproc=yes
15845else
15846  echo "$as_me: failed program was:" >&5
15847sed 's/^/| /' conftest.$ac_ext >&5
15848
15849  ac_header_preproc=no
15850fi
15851
15852rm -f conftest.err conftest.$ac_ext
15853{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15854echo "${ECHO_T}$ac_header_preproc" >&6; }
15855
15856# So?  What about this header?
15857case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15858  yes:no: )
15859    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15860echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15861    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15862echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15863    ac_header_preproc=yes
15864    ;;
15865  no:yes:* )
15866    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15867echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15868    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15869echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15870    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15871echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15872    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15873echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15874    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15875echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15876    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15877echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15878    ( cat <<\_ASBOX
15879## ------------------------------------ ##
15880## Report this to http://llvm.org/bugs/ ##
15881## ------------------------------------ ##
15882_ASBOX
15883     ) | sed "s/^/$as_me: WARNING:     /" >&2
15884    ;;
15885esac
15886{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15887echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15888if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15889  echo $ECHO_N "(cached) $ECHO_C" >&6
15890else
15891  eval "$as_ac_Header=\$ac_header_preproc"
15892fi
15893ac_res=`eval echo '${'$as_ac_Header'}'`
15894	       { echo "$as_me:$LINENO: result: $ac_res" >&5
15895echo "${ECHO_T}$ac_res" >&6; }
15896
15897fi
15898if test `eval echo '${'$as_ac_Header'}'` = yes; then
15899  cat >>confdefs.h <<_ACEOF
15900#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15901_ACEOF
15902
15903fi
15904
15905done
15906
15907fi
15908
15909
15910for ac_header in CrashReporterClient.h
15911do
15912as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15913if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15914  { echo "$as_me:$LINENO: checking for $ac_header" >&5
15915echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15916if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15917  echo $ECHO_N "(cached) $ECHO_C" >&6
15918fi
15919ac_res=`eval echo '${'$as_ac_Header'}'`
15920	       { echo "$as_me:$LINENO: result: $ac_res" >&5
15921echo "${ECHO_T}$ac_res" >&6; }
15922else
15923  # Is the header compilable?
15924{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15925echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15926cat >conftest.$ac_ext <<_ACEOF
15927/* confdefs.h.  */
15928_ACEOF
15929cat confdefs.h >>conftest.$ac_ext
15930cat >>conftest.$ac_ext <<_ACEOF
15931/* end confdefs.h.  */
15932$ac_includes_default
15933#include <$ac_header>
15934_ACEOF
15935rm -f conftest.$ac_objext
15936if { (ac_try="$ac_compile"
15937case "(($ac_try" in
15938  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15939  *) ac_try_echo=$ac_try;;
15940esac
15941eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15942  (eval "$ac_compile") 2>conftest.er1
15943  ac_status=$?
15944  grep -v '^ *+' conftest.er1 >conftest.err
15945  rm -f conftest.er1
15946  cat conftest.err >&5
15947  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15948  (exit $ac_status); } &&
15949	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15950  { (case "(($ac_try" in
15951  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15952  *) ac_try_echo=$ac_try;;
15953esac
15954eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15955  (eval "$ac_try") 2>&5
15956  ac_status=$?
15957  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15958  (exit $ac_status); }; } &&
15959	 { ac_try='test -s conftest.$ac_objext'
15960  { (case "(($ac_try" in
15961  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15962  *) ac_try_echo=$ac_try;;
15963esac
15964eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15965  (eval "$ac_try") 2>&5
15966  ac_status=$?
15967  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15968  (exit $ac_status); }; }; then
15969  ac_header_compiler=yes
15970else
15971  echo "$as_me: failed program was:" >&5
15972sed 's/^/| /' conftest.$ac_ext >&5
15973
15974	ac_header_compiler=no
15975fi
15976
15977rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15978{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15979echo "${ECHO_T}$ac_header_compiler" >&6; }
15980
15981# Is the header present?
15982{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15983echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15984cat >conftest.$ac_ext <<_ACEOF
15985/* confdefs.h.  */
15986_ACEOF
15987cat confdefs.h >>conftest.$ac_ext
15988cat >>conftest.$ac_ext <<_ACEOF
15989/* end confdefs.h.  */
15990#include <$ac_header>
15991_ACEOF
15992if { (ac_try="$ac_cpp conftest.$ac_ext"
15993case "(($ac_try" in
15994  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15995  *) ac_try_echo=$ac_try;;
15996esac
15997eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15998  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15999  ac_status=$?
16000  grep -v '^ *+' conftest.er1 >conftest.err
16001  rm -f conftest.er1
16002  cat conftest.err >&5
16003  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16004  (exit $ac_status); } >/dev/null; then
16005  if test -s conftest.err; then
16006    ac_cpp_err=$ac_c_preproc_warn_flag
16007    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16008  else
16009    ac_cpp_err=
16010  fi
16011else
16012  ac_cpp_err=yes
16013fi
16014if test -z "$ac_cpp_err"; then
16015  ac_header_preproc=yes
16016else
16017  echo "$as_me: failed program was:" >&5
16018sed 's/^/| /' conftest.$ac_ext >&5
16019
16020  ac_header_preproc=no
16021fi
16022
16023rm -f conftest.err conftest.$ac_ext
16024{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16025echo "${ECHO_T}$ac_header_preproc" >&6; }
16026
16027# So?  What about this header?
16028case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16029  yes:no: )
16030    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16031echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16032    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16033echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16034    ac_header_preproc=yes
16035    ;;
16036  no:yes:* )
16037    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16038echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16039    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16040echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16041    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16042echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16043    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16044echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16045    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16046echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16047    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16048echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16049    ( cat <<\_ASBOX
16050## ------------------------------------ ##
16051## Report this to http://llvm.org/bugs/ ##
16052## ------------------------------------ ##
16053_ASBOX
16054     ) | sed "s/^/$as_me: WARNING:     /" >&2
16055    ;;
16056esac
16057{ echo "$as_me:$LINENO: checking for $ac_header" >&5
16058echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16059if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16060  echo $ECHO_N "(cached) $ECHO_C" >&6
16061else
16062  eval "$as_ac_Header=\$ac_header_preproc"
16063fi
16064ac_res=`eval echo '${'$as_ac_Header'}'`
16065	       { echo "$as_me:$LINENO: result: $ac_res" >&5
16066echo "${ECHO_T}$ac_res" >&6; }
16067
16068fi
16069if test `eval echo '${'$as_ac_Header'}'` = yes; then
16070  cat >>confdefs.h <<_ACEOF
16071#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16072_ACEOF
16073
16074fi
16075
16076done
16077
16078
16079{ echo "$as_me:$LINENO: checking __crashreporter_info__" >&5
16080echo $ECHO_N "checking __crashreporter_info__... $ECHO_C" >&6; }
16081cat >conftest.$ac_ext <<_ACEOF
16082/* confdefs.h.  */
16083_ACEOF
16084cat confdefs.h >>conftest.$ac_ext
16085cat >>conftest.$ac_ext <<_ACEOF
16086/* end confdefs.h.  */
16087extern const char *__crashreporter_info__;
16088      int main() {
16089        __crashreporter_info__ = "test";
16090        return 0;
16091      }
16092
16093_ACEOF
16094rm -f conftest.$ac_objext conftest$ac_exeext
16095if { (ac_try="$ac_link"
16096case "(($ac_try" in
16097  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16098  *) ac_try_echo=$ac_try;;
16099esac
16100eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16101  (eval "$ac_link") 2>conftest.er1
16102  ac_status=$?
16103  grep -v '^ *+' conftest.er1 >conftest.err
16104  rm -f conftest.er1
16105  cat conftest.err >&5
16106  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16107  (exit $ac_status); } &&
16108	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16109  { (case "(($ac_try" in
16110  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16111  *) ac_try_echo=$ac_try;;
16112esac
16113eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16114  (eval "$ac_try") 2>&5
16115  ac_status=$?
16116  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16117  (exit $ac_status); }; } &&
16118	 { ac_try='test -s conftest$ac_exeext'
16119  { (case "(($ac_try" in
16120  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16121  *) ac_try_echo=$ac_try;;
16122esac
16123eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16124  (eval "$ac_try") 2>&5
16125  ac_status=$?
16126  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16127  (exit $ac_status); }; }; then
16128  { echo "$as_me:$LINENO: result: yes" >&5
16129echo "${ECHO_T}yes" >&6; }
16130
16131cat >>confdefs.h <<\_ACEOF
16132#define HAVE_CRASHREPORTER_INFO 1
16133_ACEOF
16134
16135else
16136  echo "$as_me: failed program was:" >&5
16137sed 's/^/| /' conftest.$ac_ext >&5
16138
16139	{ echo "$as_me:$LINENO: result: no" >&5
16140echo "${ECHO_T}no" >&6; }
16141
16142cat >>confdefs.h <<\_ACEOF
16143#define HAVE_CRASHREPORTER_INFO 0
16144_ACEOF
16145
16146fi
16147
16148rm -f core conftest.err conftest.$ac_objext \
16149      conftest$ac_exeext conftest.$ac_ext
16150
16151
16152
16153
16154  { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
16155echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
16156if test "${ac_cv_huge_val_sanity+set}" = set; then
16157  echo $ECHO_N "(cached) $ECHO_C" >&6
16158else
16159
16160    ac_ext=cpp
16161ac_cpp='$CXXCPP $CPPFLAGS'
16162ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16163ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16164ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16165
16166    ac_save_CXXFLAGS=$CXXFLAGS
16167    CXXFLAGS="$CXXFLAGS -pedantic"
16168    if test "$cross_compiling" = yes; then
16169  ac_cv_huge_val_sanity=yes
16170else
16171  cat >conftest.$ac_ext <<_ACEOF
16172/* confdefs.h.  */
16173_ACEOF
16174cat confdefs.h >>conftest.$ac_ext
16175cat >>conftest.$ac_ext <<_ACEOF
16176/* end confdefs.h.  */
16177#include <math.h>
16178int
16179main ()
16180{
16181double x = HUGE_VAL; return x != x;
16182  ;
16183  return 0;
16184}
16185_ACEOF
16186rm -f conftest$ac_exeext
16187if { (ac_try="$ac_link"
16188case "(($ac_try" in
16189  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16190  *) ac_try_echo=$ac_try;;
16191esac
16192eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16193  (eval "$ac_link") 2>&5
16194  ac_status=$?
16195  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16196  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16197  { (case "(($ac_try" in
16198  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16199  *) ac_try_echo=$ac_try;;
16200esac
16201eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16202  (eval "$ac_try") 2>&5
16203  ac_status=$?
16204  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16205  (exit $ac_status); }; }; then
16206  ac_cv_huge_val_sanity=yes
16207else
16208  echo "$as_me: program exited with status $ac_status" >&5
16209echo "$as_me: failed program was:" >&5
16210sed 's/^/| /' conftest.$ac_ext >&5
16211
16212( exit $ac_status )
16213ac_cv_huge_val_sanity=no
16214fi
16215rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16216fi
16217
16218
16219    CXXFLAGS=$ac_save_CXXFLAGS
16220    ac_ext=c
16221ac_cpp='$CPP $CPPFLAGS'
16222ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16223ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16224ac_compiler_gnu=$ac_cv_c_compiler_gnu
16225
16226
16227fi
16228{ echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
16229echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
16230  HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
16231
16232
16233{ echo "$as_me:$LINENO: checking for pid_t" >&5
16234echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
16235if test "${ac_cv_type_pid_t+set}" = set; then
16236  echo $ECHO_N "(cached) $ECHO_C" >&6
16237else
16238  cat >conftest.$ac_ext <<_ACEOF
16239/* confdefs.h.  */
16240_ACEOF
16241cat confdefs.h >>conftest.$ac_ext
16242cat >>conftest.$ac_ext <<_ACEOF
16243/* end confdefs.h.  */
16244$ac_includes_default
16245typedef pid_t ac__type_new_;
16246int
16247main ()
16248{
16249if ((ac__type_new_ *) 0)
16250  return 0;
16251if (sizeof (ac__type_new_))
16252  return 0;
16253  ;
16254  return 0;
16255}
16256_ACEOF
16257rm -f conftest.$ac_objext
16258if { (ac_try="$ac_compile"
16259case "(($ac_try" in
16260  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16261  *) ac_try_echo=$ac_try;;
16262esac
16263eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16264  (eval "$ac_compile") 2>conftest.er1
16265  ac_status=$?
16266  grep -v '^ *+' conftest.er1 >conftest.err
16267  rm -f conftest.er1
16268  cat conftest.err >&5
16269  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16270  (exit $ac_status); } &&
16271	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16272  { (case "(($ac_try" in
16273  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16274  *) ac_try_echo=$ac_try;;
16275esac
16276eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16277  (eval "$ac_try") 2>&5
16278  ac_status=$?
16279  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16280  (exit $ac_status); }; } &&
16281	 { ac_try='test -s conftest.$ac_objext'
16282  { (case "(($ac_try" in
16283  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16284  *) ac_try_echo=$ac_try;;
16285esac
16286eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16287  (eval "$ac_try") 2>&5
16288  ac_status=$?
16289  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16290  (exit $ac_status); }; }; then
16291  ac_cv_type_pid_t=yes
16292else
16293  echo "$as_me: failed program was:" >&5
16294sed 's/^/| /' conftest.$ac_ext >&5
16295
16296	ac_cv_type_pid_t=no
16297fi
16298
16299rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16300fi
16301{ echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
16302echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
16303if test $ac_cv_type_pid_t = yes; then
16304  :
16305else
16306
16307cat >>confdefs.h <<_ACEOF
16308#define pid_t int
16309_ACEOF
16310
16311fi
16312
16313{ echo "$as_me:$LINENO: checking for size_t" >&5
16314echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
16315if test "${ac_cv_type_size_t+set}" = set; then
16316  echo $ECHO_N "(cached) $ECHO_C" >&6
16317else
16318  cat >conftest.$ac_ext <<_ACEOF
16319/* confdefs.h.  */
16320_ACEOF
16321cat confdefs.h >>conftest.$ac_ext
16322cat >>conftest.$ac_ext <<_ACEOF
16323/* end confdefs.h.  */
16324$ac_includes_default
16325typedef size_t ac__type_new_;
16326int
16327main ()
16328{
16329if ((ac__type_new_ *) 0)
16330  return 0;
16331if (sizeof (ac__type_new_))
16332  return 0;
16333  ;
16334  return 0;
16335}
16336_ACEOF
16337rm -f conftest.$ac_objext
16338if { (ac_try="$ac_compile"
16339case "(($ac_try" in
16340  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16341  *) ac_try_echo=$ac_try;;
16342esac
16343eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16344  (eval "$ac_compile") 2>conftest.er1
16345  ac_status=$?
16346  grep -v '^ *+' conftest.er1 >conftest.err
16347  rm -f conftest.er1
16348  cat conftest.err >&5
16349  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16350  (exit $ac_status); } &&
16351	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16352  { (case "(($ac_try" in
16353  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16354  *) ac_try_echo=$ac_try;;
16355esac
16356eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16357  (eval "$ac_try") 2>&5
16358  ac_status=$?
16359  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16360  (exit $ac_status); }; } &&
16361	 { ac_try='test -s conftest.$ac_objext'
16362  { (case "(($ac_try" in
16363  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16364  *) ac_try_echo=$ac_try;;
16365esac
16366eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16367  (eval "$ac_try") 2>&5
16368  ac_status=$?
16369  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16370  (exit $ac_status); }; }; then
16371  ac_cv_type_size_t=yes
16372else
16373  echo "$as_me: failed program was:" >&5
16374sed 's/^/| /' conftest.$ac_ext >&5
16375
16376	ac_cv_type_size_t=no
16377fi
16378
16379rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16380fi
16381{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
16382echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
16383if test $ac_cv_type_size_t = yes; then
16384  :
16385else
16386
16387cat >>confdefs.h <<_ACEOF
16388#define size_t unsigned int
16389_ACEOF
16390
16391fi
16392
16393
16394cat >>confdefs.h <<_ACEOF
16395#define RETSIGTYPE void
16396_ACEOF
16397
16398{ echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
16399echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
16400if test "${ac_cv_struct_tm+set}" = set; then
16401  echo $ECHO_N "(cached) $ECHO_C" >&6
16402else
16403  cat >conftest.$ac_ext <<_ACEOF
16404/* confdefs.h.  */
16405_ACEOF
16406cat confdefs.h >>conftest.$ac_ext
16407cat >>conftest.$ac_ext <<_ACEOF
16408/* end confdefs.h.  */
16409#include <sys/types.h>
16410#include <time.h>
16411
16412int
16413main ()
16414{
16415struct tm *tp; tp->tm_sec;
16416  ;
16417  return 0;
16418}
16419_ACEOF
16420rm -f conftest.$ac_objext
16421if { (ac_try="$ac_compile"
16422case "(($ac_try" in
16423  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16424  *) ac_try_echo=$ac_try;;
16425esac
16426eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16427  (eval "$ac_compile") 2>conftest.er1
16428  ac_status=$?
16429  grep -v '^ *+' conftest.er1 >conftest.err
16430  rm -f conftest.er1
16431  cat conftest.err >&5
16432  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16433  (exit $ac_status); } &&
16434	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16435  { (case "(($ac_try" in
16436  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16437  *) ac_try_echo=$ac_try;;
16438esac
16439eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16440  (eval "$ac_try") 2>&5
16441  ac_status=$?
16442  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16443  (exit $ac_status); }; } &&
16444	 { ac_try='test -s conftest.$ac_objext'
16445  { (case "(($ac_try" in
16446  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16447  *) ac_try_echo=$ac_try;;
16448esac
16449eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16450  (eval "$ac_try") 2>&5
16451  ac_status=$?
16452  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16453  (exit $ac_status); }; }; then
16454  ac_cv_struct_tm=time.h
16455else
16456  echo "$as_me: failed program was:" >&5
16457sed 's/^/| /' conftest.$ac_ext >&5
16458
16459	ac_cv_struct_tm=sys/time.h
16460fi
16461
16462rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16463fi
16464{ echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
16465echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
16466if test $ac_cv_struct_tm = sys/time.h; then
16467
16468cat >>confdefs.h <<\_ACEOF
16469#define TM_IN_SYS_TIME 1
16470_ACEOF
16471
16472fi
16473
16474{ echo "$as_me:$LINENO: checking for int64_t" >&5
16475echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
16476if test "${ac_cv_type_int64_t+set}" = set; then
16477  echo $ECHO_N "(cached) $ECHO_C" >&6
16478else
16479  cat >conftest.$ac_ext <<_ACEOF
16480/* confdefs.h.  */
16481_ACEOF
16482cat confdefs.h >>conftest.$ac_ext
16483cat >>conftest.$ac_ext <<_ACEOF
16484/* end confdefs.h.  */
16485$ac_includes_default
16486typedef int64_t ac__type_new_;
16487int
16488main ()
16489{
16490if ((ac__type_new_ *) 0)
16491  return 0;
16492if (sizeof (ac__type_new_))
16493  return 0;
16494  ;
16495  return 0;
16496}
16497_ACEOF
16498rm -f conftest.$ac_objext
16499if { (ac_try="$ac_compile"
16500case "(($ac_try" in
16501  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16502  *) ac_try_echo=$ac_try;;
16503esac
16504eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16505  (eval "$ac_compile") 2>conftest.er1
16506  ac_status=$?
16507  grep -v '^ *+' conftest.er1 >conftest.err
16508  rm -f conftest.er1
16509  cat conftest.err >&5
16510  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16511  (exit $ac_status); } &&
16512	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16513  { (case "(($ac_try" in
16514  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16515  *) ac_try_echo=$ac_try;;
16516esac
16517eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16518  (eval "$ac_try") 2>&5
16519  ac_status=$?
16520  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16521  (exit $ac_status); }; } &&
16522	 { ac_try='test -s conftest.$ac_objext'
16523  { (case "(($ac_try" in
16524  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16525  *) ac_try_echo=$ac_try;;
16526esac
16527eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16528  (eval "$ac_try") 2>&5
16529  ac_status=$?
16530  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16531  (exit $ac_status); }; }; then
16532  ac_cv_type_int64_t=yes
16533else
16534  echo "$as_me: failed program was:" >&5
16535sed 's/^/| /' conftest.$ac_ext >&5
16536
16537	ac_cv_type_int64_t=no
16538fi
16539
16540rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16541fi
16542{ echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
16543echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
16544if test $ac_cv_type_int64_t = yes; then
16545
16546cat >>confdefs.h <<_ACEOF
16547#define HAVE_INT64_T 1
16548_ACEOF
16549
16550
16551else
16552  { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
16553echo "$as_me: error: Type int64_t required but not found" >&2;}
16554   { (exit 1); exit 1; }; }
16555fi
16556
16557{ echo "$as_me:$LINENO: checking for uint64_t" >&5
16558echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
16559if test "${ac_cv_type_uint64_t+set}" = set; then
16560  echo $ECHO_N "(cached) $ECHO_C" >&6
16561else
16562  cat >conftest.$ac_ext <<_ACEOF
16563/* confdefs.h.  */
16564_ACEOF
16565cat confdefs.h >>conftest.$ac_ext
16566cat >>conftest.$ac_ext <<_ACEOF
16567/* end confdefs.h.  */
16568$ac_includes_default
16569typedef uint64_t ac__type_new_;
16570int
16571main ()
16572{
16573if ((ac__type_new_ *) 0)
16574  return 0;
16575if (sizeof (ac__type_new_))
16576  return 0;
16577  ;
16578  return 0;
16579}
16580_ACEOF
16581rm -f conftest.$ac_objext
16582if { (ac_try="$ac_compile"
16583case "(($ac_try" in
16584  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16585  *) ac_try_echo=$ac_try;;
16586esac
16587eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16588  (eval "$ac_compile") 2>conftest.er1
16589  ac_status=$?
16590  grep -v '^ *+' conftest.er1 >conftest.err
16591  rm -f conftest.er1
16592  cat conftest.err >&5
16593  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16594  (exit $ac_status); } &&
16595	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16596  { (case "(($ac_try" in
16597  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16598  *) ac_try_echo=$ac_try;;
16599esac
16600eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16601  (eval "$ac_try") 2>&5
16602  ac_status=$?
16603  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16604  (exit $ac_status); }; } &&
16605	 { ac_try='test -s conftest.$ac_objext'
16606  { (case "(($ac_try" in
16607  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16608  *) ac_try_echo=$ac_try;;
16609esac
16610eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16611  (eval "$ac_try") 2>&5
16612  ac_status=$?
16613  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16614  (exit $ac_status); }; }; then
16615  ac_cv_type_uint64_t=yes
16616else
16617  echo "$as_me: failed program was:" >&5
16618sed 's/^/| /' conftest.$ac_ext >&5
16619
16620	ac_cv_type_uint64_t=no
16621fi
16622
16623rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16624fi
16625{ echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
16626echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
16627if test $ac_cv_type_uint64_t = yes; then
16628
16629cat >>confdefs.h <<_ACEOF
16630#define HAVE_UINT64_T 1
16631_ACEOF
16632
16633
16634else
16635  { echo "$as_me:$LINENO: checking for u_int64_t" >&5
16636echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
16637if test "${ac_cv_type_u_int64_t+set}" = set; then
16638  echo $ECHO_N "(cached) $ECHO_C" >&6
16639else
16640  cat >conftest.$ac_ext <<_ACEOF
16641/* confdefs.h.  */
16642_ACEOF
16643cat confdefs.h >>conftest.$ac_ext
16644cat >>conftest.$ac_ext <<_ACEOF
16645/* end confdefs.h.  */
16646$ac_includes_default
16647typedef u_int64_t ac__type_new_;
16648int
16649main ()
16650{
16651if ((ac__type_new_ *) 0)
16652  return 0;
16653if (sizeof (ac__type_new_))
16654  return 0;
16655  ;
16656  return 0;
16657}
16658_ACEOF
16659rm -f conftest.$ac_objext
16660if { (ac_try="$ac_compile"
16661case "(($ac_try" in
16662  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16663  *) ac_try_echo=$ac_try;;
16664esac
16665eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16666  (eval "$ac_compile") 2>conftest.er1
16667  ac_status=$?
16668  grep -v '^ *+' conftest.er1 >conftest.err
16669  rm -f conftest.er1
16670  cat conftest.err >&5
16671  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16672  (exit $ac_status); } &&
16673	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16674  { (case "(($ac_try" in
16675  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16676  *) ac_try_echo=$ac_try;;
16677esac
16678eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16679  (eval "$ac_try") 2>&5
16680  ac_status=$?
16681  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16682  (exit $ac_status); }; } &&
16683	 { ac_try='test -s conftest.$ac_objext'
16684  { (case "(($ac_try" in
16685  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16686  *) ac_try_echo=$ac_try;;
16687esac
16688eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16689  (eval "$ac_try") 2>&5
16690  ac_status=$?
16691  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16692  (exit $ac_status); }; }; then
16693  ac_cv_type_u_int64_t=yes
16694else
16695  echo "$as_me: failed program was:" >&5
16696sed 's/^/| /' conftest.$ac_ext >&5
16697
16698	ac_cv_type_u_int64_t=no
16699fi
16700
16701rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16702fi
16703{ echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
16704echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
16705if test $ac_cv_type_u_int64_t = yes; then
16706
16707cat >>confdefs.h <<_ACEOF
16708#define HAVE_U_INT64_T 1
16709_ACEOF
16710
16711
16712else
16713  { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
16714echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
16715   { (exit 1); exit 1; }; }
16716fi
16717
16718fi
16719
16720
16721
16722
16723
16724
16725
16726
16727
16728
16729for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
16730do
16731as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16732{ echo "$as_me:$LINENO: checking for $ac_func" >&5
16733echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16734if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16735  echo $ECHO_N "(cached) $ECHO_C" >&6
16736else
16737  cat >conftest.$ac_ext <<_ACEOF
16738/* confdefs.h.  */
16739_ACEOF
16740cat confdefs.h >>conftest.$ac_ext
16741cat >>conftest.$ac_ext <<_ACEOF
16742/* end confdefs.h.  */
16743/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16744   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16745#define $ac_func innocuous_$ac_func
16746
16747/* System header to define __stub macros and hopefully few prototypes,
16748    which can conflict with char $ac_func (); below.
16749    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16750    <limits.h> exists even on freestanding compilers.  */
16751
16752#ifdef __STDC__
16753# include <limits.h>
16754#else
16755# include <assert.h>
16756#endif
16757
16758#undef $ac_func
16759
16760/* Override any GCC internal prototype to avoid an error.
16761   Use char because int might match the return type of a GCC
16762   builtin and then its argument prototype would still apply.  */
16763#ifdef __cplusplus
16764extern "C"
16765#endif
16766char $ac_func ();
16767/* The GNU C library defines this for functions which it implements
16768    to always fail with ENOSYS.  Some functions are actually named
16769    something starting with __ and the normal name is an alias.  */
16770#if defined __stub_$ac_func || defined __stub___$ac_func
16771choke me
16772#endif
16773
16774int
16775main ()
16776{
16777return $ac_func ();
16778  ;
16779  return 0;
16780}
16781_ACEOF
16782rm -f conftest.$ac_objext conftest$ac_exeext
16783if { (ac_try="$ac_link"
16784case "(($ac_try" in
16785  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16786  *) ac_try_echo=$ac_try;;
16787esac
16788eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16789  (eval "$ac_link") 2>conftest.er1
16790  ac_status=$?
16791  grep -v '^ *+' conftest.er1 >conftest.err
16792  rm -f conftest.er1
16793  cat conftest.err >&5
16794  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16795  (exit $ac_status); } &&
16796	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16797  { (case "(($ac_try" in
16798  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16799  *) ac_try_echo=$ac_try;;
16800esac
16801eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16802  (eval "$ac_try") 2>&5
16803  ac_status=$?
16804  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16805  (exit $ac_status); }; } &&
16806	 { ac_try='test -s conftest$ac_exeext'
16807  { (case "(($ac_try" in
16808  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16809  *) ac_try_echo=$ac_try;;
16810esac
16811eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16812  (eval "$ac_try") 2>&5
16813  ac_status=$?
16814  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16815  (exit $ac_status); }; }; then
16816  eval "$as_ac_var=yes"
16817else
16818  echo "$as_me: failed program was:" >&5
16819sed 's/^/| /' conftest.$ac_ext >&5
16820
16821	eval "$as_ac_var=no"
16822fi
16823
16824rm -f core conftest.err conftest.$ac_objext \
16825      conftest$ac_exeext conftest.$ac_ext
16826fi
16827ac_res=`eval echo '${'$as_ac_var'}'`
16828	       { echo "$as_me:$LINENO: result: $ac_res" >&5
16829echo "${ECHO_T}$ac_res" >&6; }
16830if test `eval echo '${'$as_ac_var'}'` = yes; then
16831  cat >>confdefs.h <<_ACEOF
16832#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16833_ACEOF
16834
16835fi
16836done
16837
16838
16839
16840
16841
16842for ac_func in powf fmodf strtof round
16843do
16844as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16845{ echo "$as_me:$LINENO: checking for $ac_func" >&5
16846echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16847if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16848  echo $ECHO_N "(cached) $ECHO_C" >&6
16849else
16850  cat >conftest.$ac_ext <<_ACEOF
16851/* confdefs.h.  */
16852_ACEOF
16853cat confdefs.h >>conftest.$ac_ext
16854cat >>conftest.$ac_ext <<_ACEOF
16855/* end confdefs.h.  */
16856/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16857   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16858#define $ac_func innocuous_$ac_func
16859
16860/* System header to define __stub macros and hopefully few prototypes,
16861    which can conflict with char $ac_func (); below.
16862    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16863    <limits.h> exists even on freestanding compilers.  */
16864
16865#ifdef __STDC__
16866# include <limits.h>
16867#else
16868# include <assert.h>
16869#endif
16870
16871#undef $ac_func
16872
16873/* Override any GCC internal prototype to avoid an error.
16874   Use char because int might match the return type of a GCC
16875   builtin and then its argument prototype would still apply.  */
16876#ifdef __cplusplus
16877extern "C"
16878#endif
16879char $ac_func ();
16880/* The GNU C library defines this for functions which it implements
16881    to always fail with ENOSYS.  Some functions are actually named
16882    something starting with __ and the normal name is an alias.  */
16883#if defined __stub_$ac_func || defined __stub___$ac_func
16884choke me
16885#endif
16886
16887int
16888main ()
16889{
16890return $ac_func ();
16891  ;
16892  return 0;
16893}
16894_ACEOF
16895rm -f conftest.$ac_objext conftest$ac_exeext
16896if { (ac_try="$ac_link"
16897case "(($ac_try" in
16898  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16899  *) ac_try_echo=$ac_try;;
16900esac
16901eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16902  (eval "$ac_link") 2>conftest.er1
16903  ac_status=$?
16904  grep -v '^ *+' conftest.er1 >conftest.err
16905  rm -f conftest.er1
16906  cat conftest.err >&5
16907  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16908  (exit $ac_status); } &&
16909	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16910  { (case "(($ac_try" in
16911  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16912  *) ac_try_echo=$ac_try;;
16913esac
16914eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16915  (eval "$ac_try") 2>&5
16916  ac_status=$?
16917  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16918  (exit $ac_status); }; } &&
16919	 { ac_try='test -s conftest$ac_exeext'
16920  { (case "(($ac_try" in
16921  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16922  *) ac_try_echo=$ac_try;;
16923esac
16924eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16925  (eval "$ac_try") 2>&5
16926  ac_status=$?
16927  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16928  (exit $ac_status); }; }; then
16929  eval "$as_ac_var=yes"
16930else
16931  echo "$as_me: failed program was:" >&5
16932sed 's/^/| /' conftest.$ac_ext >&5
16933
16934	eval "$as_ac_var=no"
16935fi
16936
16937rm -f core conftest.err conftest.$ac_objext \
16938      conftest$ac_exeext conftest.$ac_ext
16939fi
16940ac_res=`eval echo '${'$as_ac_var'}'`
16941	       { echo "$as_me:$LINENO: result: $ac_res" >&5
16942echo "${ECHO_T}$ac_res" >&6; }
16943if test `eval echo '${'$as_ac_var'}'` = yes; then
16944  cat >>confdefs.h <<_ACEOF
16945#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16946_ACEOF
16947
16948fi
16949done
16950
16951
16952
16953
16954
16955
16956for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
16957do
16958as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16959{ echo "$as_me:$LINENO: checking for $ac_func" >&5
16960echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16961if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16962  echo $ECHO_N "(cached) $ECHO_C" >&6
16963else
16964  cat >conftest.$ac_ext <<_ACEOF
16965/* confdefs.h.  */
16966_ACEOF
16967cat confdefs.h >>conftest.$ac_ext
16968cat >>conftest.$ac_ext <<_ACEOF
16969/* end confdefs.h.  */
16970/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16971   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16972#define $ac_func innocuous_$ac_func
16973
16974/* System header to define __stub macros and hopefully few prototypes,
16975    which can conflict with char $ac_func (); below.
16976    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16977    <limits.h> exists even on freestanding compilers.  */
16978
16979#ifdef __STDC__
16980# include <limits.h>
16981#else
16982# include <assert.h>
16983#endif
16984
16985#undef $ac_func
16986
16987/* Override any GCC internal prototype to avoid an error.
16988   Use char because int might match the return type of a GCC
16989   builtin and then its argument prototype would still apply.  */
16990#ifdef __cplusplus
16991extern "C"
16992#endif
16993char $ac_func ();
16994/* The GNU C library defines this for functions which it implements
16995    to always fail with ENOSYS.  Some functions are actually named
16996    something starting with __ and the normal name is an alias.  */
16997#if defined __stub_$ac_func || defined __stub___$ac_func
16998choke me
16999#endif
17000
17001int
17002main ()
17003{
17004return $ac_func ();
17005  ;
17006  return 0;
17007}
17008_ACEOF
17009rm -f conftest.$ac_objext conftest$ac_exeext
17010if { (ac_try="$ac_link"
17011case "(($ac_try" in
17012  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17013  *) ac_try_echo=$ac_try;;
17014esac
17015eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17016  (eval "$ac_link") 2>conftest.er1
17017  ac_status=$?
17018  grep -v '^ *+' conftest.er1 >conftest.err
17019  rm -f conftest.er1
17020  cat conftest.err >&5
17021  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17022  (exit $ac_status); } &&
17023	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17024  { (case "(($ac_try" in
17025  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17026  *) ac_try_echo=$ac_try;;
17027esac
17028eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17029  (eval "$ac_try") 2>&5
17030  ac_status=$?
17031  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17032  (exit $ac_status); }; } &&
17033	 { ac_try='test -s conftest$ac_exeext'
17034  { (case "(($ac_try" in
17035  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17036  *) ac_try_echo=$ac_try;;
17037esac
17038eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17039  (eval "$ac_try") 2>&5
17040  ac_status=$?
17041  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17042  (exit $ac_status); }; }; then
17043  eval "$as_ac_var=yes"
17044else
17045  echo "$as_me: failed program was:" >&5
17046sed 's/^/| /' conftest.$ac_ext >&5
17047
17048	eval "$as_ac_var=no"
17049fi
17050
17051rm -f core conftest.err conftest.$ac_objext \
17052      conftest$ac_exeext conftest.$ac_ext
17053fi
17054ac_res=`eval echo '${'$as_ac_var'}'`
17055	       { echo "$as_me:$LINENO: result: $ac_res" >&5
17056echo "${ECHO_T}$ac_res" >&6; }
17057if test `eval echo '${'$as_ac_var'}'` = yes; then
17058  cat >>confdefs.h <<_ACEOF
17059#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17060_ACEOF
17061
17062fi
17063done
17064
17065
17066
17067
17068for ac_func in isatty mkdtemp mkstemp
17069do
17070as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17071{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17072echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17073if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17074  echo $ECHO_N "(cached) $ECHO_C" >&6
17075else
17076  cat >conftest.$ac_ext <<_ACEOF
17077/* confdefs.h.  */
17078_ACEOF
17079cat confdefs.h >>conftest.$ac_ext
17080cat >>conftest.$ac_ext <<_ACEOF
17081/* end confdefs.h.  */
17082/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17083   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17084#define $ac_func innocuous_$ac_func
17085
17086/* System header to define __stub macros and hopefully few prototypes,
17087    which can conflict with char $ac_func (); below.
17088    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17089    <limits.h> exists even on freestanding compilers.  */
17090
17091#ifdef __STDC__
17092# include <limits.h>
17093#else
17094# include <assert.h>
17095#endif
17096
17097#undef $ac_func
17098
17099/* Override any GCC internal prototype to avoid an error.
17100   Use char because int might match the return type of a GCC
17101   builtin and then its argument prototype would still apply.  */
17102#ifdef __cplusplus
17103extern "C"
17104#endif
17105char $ac_func ();
17106/* The GNU C library defines this for functions which it implements
17107    to always fail with ENOSYS.  Some functions are actually named
17108    something starting with __ and the normal name is an alias.  */
17109#if defined __stub_$ac_func || defined __stub___$ac_func
17110choke me
17111#endif
17112
17113int
17114main ()
17115{
17116return $ac_func ();
17117  ;
17118  return 0;
17119}
17120_ACEOF
17121rm -f conftest.$ac_objext conftest$ac_exeext
17122if { (ac_try="$ac_link"
17123case "(($ac_try" in
17124  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17125  *) ac_try_echo=$ac_try;;
17126esac
17127eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17128  (eval "$ac_link") 2>conftest.er1
17129  ac_status=$?
17130  grep -v '^ *+' conftest.er1 >conftest.err
17131  rm -f conftest.er1
17132  cat conftest.err >&5
17133  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17134  (exit $ac_status); } &&
17135	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17136  { (case "(($ac_try" in
17137  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17138  *) ac_try_echo=$ac_try;;
17139esac
17140eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17141  (eval "$ac_try") 2>&5
17142  ac_status=$?
17143  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17144  (exit $ac_status); }; } &&
17145	 { ac_try='test -s conftest$ac_exeext'
17146  { (case "(($ac_try" in
17147  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17148  *) ac_try_echo=$ac_try;;
17149esac
17150eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17151  (eval "$ac_try") 2>&5
17152  ac_status=$?
17153  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17154  (exit $ac_status); }; }; then
17155  eval "$as_ac_var=yes"
17156else
17157  echo "$as_me: failed program was:" >&5
17158sed 's/^/| /' conftest.$ac_ext >&5
17159
17160	eval "$as_ac_var=no"
17161fi
17162
17163rm -f core conftest.err conftest.$ac_objext \
17164      conftest$ac_exeext conftest.$ac_ext
17165fi
17166ac_res=`eval echo '${'$as_ac_var'}'`
17167	       { echo "$as_me:$LINENO: result: $ac_res" >&5
17168echo "${ECHO_T}$ac_res" >&6; }
17169if test `eval echo '${'$as_ac_var'}'` = yes; then
17170  cat >>confdefs.h <<_ACEOF
17171#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17172_ACEOF
17173
17174fi
17175done
17176
17177
17178
17179
17180
17181
17182
17183
17184for ac_func in mktemp posix_spawn pread realpath sbrk setrlimit strdup
17185do
17186as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17187{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17188echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17189if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17190  echo $ECHO_N "(cached) $ECHO_C" >&6
17191else
17192  cat >conftest.$ac_ext <<_ACEOF
17193/* confdefs.h.  */
17194_ACEOF
17195cat confdefs.h >>conftest.$ac_ext
17196cat >>conftest.$ac_ext <<_ACEOF
17197/* end confdefs.h.  */
17198/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17199   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17200#define $ac_func innocuous_$ac_func
17201
17202/* System header to define __stub macros and hopefully few prototypes,
17203    which can conflict with char $ac_func (); below.
17204    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17205    <limits.h> exists even on freestanding compilers.  */
17206
17207#ifdef __STDC__
17208# include <limits.h>
17209#else
17210# include <assert.h>
17211#endif
17212
17213#undef $ac_func
17214
17215/* Override any GCC internal prototype to avoid an error.
17216   Use char because int might match the return type of a GCC
17217   builtin and then its argument prototype would still apply.  */
17218#ifdef __cplusplus
17219extern "C"
17220#endif
17221char $ac_func ();
17222/* The GNU C library defines this for functions which it implements
17223    to always fail with ENOSYS.  Some functions are actually named
17224    something starting with __ and the normal name is an alias.  */
17225#if defined __stub_$ac_func || defined __stub___$ac_func
17226choke me
17227#endif
17228
17229int
17230main ()
17231{
17232return $ac_func ();
17233  ;
17234  return 0;
17235}
17236_ACEOF
17237rm -f conftest.$ac_objext conftest$ac_exeext
17238if { (ac_try="$ac_link"
17239case "(($ac_try" in
17240  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17241  *) ac_try_echo=$ac_try;;
17242esac
17243eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17244  (eval "$ac_link") 2>conftest.er1
17245  ac_status=$?
17246  grep -v '^ *+' conftest.er1 >conftest.err
17247  rm -f conftest.er1
17248  cat conftest.err >&5
17249  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17250  (exit $ac_status); } &&
17251	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17252  { (case "(($ac_try" in
17253  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17254  *) ac_try_echo=$ac_try;;
17255esac
17256eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17257  (eval "$ac_try") 2>&5
17258  ac_status=$?
17259  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17260  (exit $ac_status); }; } &&
17261	 { ac_try='test -s conftest$ac_exeext'
17262  { (case "(($ac_try" in
17263  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17264  *) ac_try_echo=$ac_try;;
17265esac
17266eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17267  (eval "$ac_try") 2>&5
17268  ac_status=$?
17269  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17270  (exit $ac_status); }; }; then
17271  eval "$as_ac_var=yes"
17272else
17273  echo "$as_me: failed program was:" >&5
17274sed 's/^/| /' conftest.$ac_ext >&5
17275
17276	eval "$as_ac_var=no"
17277fi
17278
17279rm -f core conftest.err conftest.$ac_objext \
17280      conftest$ac_exeext conftest.$ac_ext
17281fi
17282ac_res=`eval echo '${'$as_ac_var'}'`
17283	       { echo "$as_me:$LINENO: result: $ac_res" >&5
17284echo "${ECHO_T}$ac_res" >&6; }
17285if test `eval echo '${'$as_ac_var'}'` = yes; then
17286  cat >>confdefs.h <<_ACEOF
17287#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17288_ACEOF
17289
17290fi
17291done
17292
17293
17294
17295
17296
17297for ac_func in strerror strerror_r setenv arc4random
17298do
17299as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17300{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17301echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17302if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17303  echo $ECHO_N "(cached) $ECHO_C" >&6
17304else
17305  cat >conftest.$ac_ext <<_ACEOF
17306/* confdefs.h.  */
17307_ACEOF
17308cat confdefs.h >>conftest.$ac_ext
17309cat >>conftest.$ac_ext <<_ACEOF
17310/* end confdefs.h.  */
17311/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17312   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17313#define $ac_func innocuous_$ac_func
17314
17315/* System header to define __stub macros and hopefully few prototypes,
17316    which can conflict with char $ac_func (); below.
17317    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17318    <limits.h> exists even on freestanding compilers.  */
17319
17320#ifdef __STDC__
17321# include <limits.h>
17322#else
17323# include <assert.h>
17324#endif
17325
17326#undef $ac_func
17327
17328/* Override any GCC internal prototype to avoid an error.
17329   Use char because int might match the return type of a GCC
17330   builtin and then its argument prototype would still apply.  */
17331#ifdef __cplusplus
17332extern "C"
17333#endif
17334char $ac_func ();
17335/* The GNU C library defines this for functions which it implements
17336    to always fail with ENOSYS.  Some functions are actually named
17337    something starting with __ and the normal name is an alias.  */
17338#if defined __stub_$ac_func || defined __stub___$ac_func
17339choke me
17340#endif
17341
17342int
17343main ()
17344{
17345return $ac_func ();
17346  ;
17347  return 0;
17348}
17349_ACEOF
17350rm -f conftest.$ac_objext conftest$ac_exeext
17351if { (ac_try="$ac_link"
17352case "(($ac_try" in
17353  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17354  *) ac_try_echo=$ac_try;;
17355esac
17356eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17357  (eval "$ac_link") 2>conftest.er1
17358  ac_status=$?
17359  grep -v '^ *+' conftest.er1 >conftest.err
17360  rm -f conftest.er1
17361  cat conftest.err >&5
17362  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17363  (exit $ac_status); } &&
17364	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17365  { (case "(($ac_try" in
17366  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17367  *) ac_try_echo=$ac_try;;
17368esac
17369eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17370  (eval "$ac_try") 2>&5
17371  ac_status=$?
17372  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17373  (exit $ac_status); }; } &&
17374	 { ac_try='test -s conftest$ac_exeext'
17375  { (case "(($ac_try" in
17376  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17377  *) ac_try_echo=$ac_try;;
17378esac
17379eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17380  (eval "$ac_try") 2>&5
17381  ac_status=$?
17382  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17383  (exit $ac_status); }; }; then
17384  eval "$as_ac_var=yes"
17385else
17386  echo "$as_me: failed program was:" >&5
17387sed 's/^/| /' conftest.$ac_ext >&5
17388
17389	eval "$as_ac_var=no"
17390fi
17391
17392rm -f core conftest.err conftest.$ac_objext \
17393      conftest$ac_exeext conftest.$ac_ext
17394fi
17395ac_res=`eval echo '${'$as_ac_var'}'`
17396	       { echo "$as_me:$LINENO: result: $ac_res" >&5
17397echo "${ECHO_T}$ac_res" >&6; }
17398if test `eval echo '${'$as_ac_var'}'` = yes; then
17399  cat >>confdefs.h <<_ACEOF
17400#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17401_ACEOF
17402
17403fi
17404done
17405
17406
17407
17408
17409
17410for ac_func in strtoll strtoq sysconf malloc_zone_statistics
17411do
17412as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17413{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17414echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17415if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17416  echo $ECHO_N "(cached) $ECHO_C" >&6
17417else
17418  cat >conftest.$ac_ext <<_ACEOF
17419/* confdefs.h.  */
17420_ACEOF
17421cat confdefs.h >>conftest.$ac_ext
17422cat >>conftest.$ac_ext <<_ACEOF
17423/* end confdefs.h.  */
17424/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17425   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17426#define $ac_func innocuous_$ac_func
17427
17428/* System header to define __stub macros and hopefully few prototypes,
17429    which can conflict with char $ac_func (); below.
17430    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17431    <limits.h> exists even on freestanding compilers.  */
17432
17433#ifdef __STDC__
17434# include <limits.h>
17435#else
17436# include <assert.h>
17437#endif
17438
17439#undef $ac_func
17440
17441/* Override any GCC internal prototype to avoid an error.
17442   Use char because int might match the return type of a GCC
17443   builtin and then its argument prototype would still apply.  */
17444#ifdef __cplusplus
17445extern "C"
17446#endif
17447char $ac_func ();
17448/* The GNU C library defines this for functions which it implements
17449    to always fail with ENOSYS.  Some functions are actually named
17450    something starting with __ and the normal name is an alias.  */
17451#if defined __stub_$ac_func || defined __stub___$ac_func
17452choke me
17453#endif
17454
17455int
17456main ()
17457{
17458return $ac_func ();
17459  ;
17460  return 0;
17461}
17462_ACEOF
17463rm -f conftest.$ac_objext conftest$ac_exeext
17464if { (ac_try="$ac_link"
17465case "(($ac_try" in
17466  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17467  *) ac_try_echo=$ac_try;;
17468esac
17469eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17470  (eval "$ac_link") 2>conftest.er1
17471  ac_status=$?
17472  grep -v '^ *+' conftest.er1 >conftest.err
17473  rm -f conftest.er1
17474  cat conftest.err >&5
17475  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17476  (exit $ac_status); } &&
17477	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17478  { (case "(($ac_try" in
17479  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17480  *) ac_try_echo=$ac_try;;
17481esac
17482eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17483  (eval "$ac_try") 2>&5
17484  ac_status=$?
17485  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17486  (exit $ac_status); }; } &&
17487	 { ac_try='test -s conftest$ac_exeext'
17488  { (case "(($ac_try" in
17489  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17490  *) ac_try_echo=$ac_try;;
17491esac
17492eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17493  (eval "$ac_try") 2>&5
17494  ac_status=$?
17495  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17496  (exit $ac_status); }; }; then
17497  eval "$as_ac_var=yes"
17498else
17499  echo "$as_me: failed program was:" >&5
17500sed 's/^/| /' conftest.$ac_ext >&5
17501
17502	eval "$as_ac_var=no"
17503fi
17504
17505rm -f core conftest.err conftest.$ac_objext \
17506      conftest$ac_exeext conftest.$ac_ext
17507fi
17508ac_res=`eval echo '${'$as_ac_var'}'`
17509	       { echo "$as_me:$LINENO: result: $ac_res" >&5
17510echo "${ECHO_T}$ac_res" >&6; }
17511if test `eval echo '${'$as_ac_var'}'` = yes; then
17512  cat >>confdefs.h <<_ACEOF
17513#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17514_ACEOF
17515
17516fi
17517done
17518
17519
17520
17521
17522
17523
17524for ac_func in setjmp longjmp sigsetjmp siglongjmp writev
17525do
17526as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17527{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17528echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17529if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17530  echo $ECHO_N "(cached) $ECHO_C" >&6
17531else
17532  cat >conftest.$ac_ext <<_ACEOF
17533/* confdefs.h.  */
17534_ACEOF
17535cat confdefs.h >>conftest.$ac_ext
17536cat >>conftest.$ac_ext <<_ACEOF
17537/* end confdefs.h.  */
17538/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17539   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17540#define $ac_func innocuous_$ac_func
17541
17542/* System header to define __stub macros and hopefully few prototypes,
17543    which can conflict with char $ac_func (); below.
17544    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17545    <limits.h> exists even on freestanding compilers.  */
17546
17547#ifdef __STDC__
17548# include <limits.h>
17549#else
17550# include <assert.h>
17551#endif
17552
17553#undef $ac_func
17554
17555/* Override any GCC internal prototype to avoid an error.
17556   Use char because int might match the return type of a GCC
17557   builtin and then its argument prototype would still apply.  */
17558#ifdef __cplusplus
17559extern "C"
17560#endif
17561char $ac_func ();
17562/* The GNU C library defines this for functions which it implements
17563    to always fail with ENOSYS.  Some functions are actually named
17564    something starting with __ and the normal name is an alias.  */
17565#if defined __stub_$ac_func || defined __stub___$ac_func
17566choke me
17567#endif
17568
17569int
17570main ()
17571{
17572return $ac_func ();
17573  ;
17574  return 0;
17575}
17576_ACEOF
17577rm -f conftest.$ac_objext conftest$ac_exeext
17578if { (ac_try="$ac_link"
17579case "(($ac_try" in
17580  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17581  *) ac_try_echo=$ac_try;;
17582esac
17583eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17584  (eval "$ac_link") 2>conftest.er1
17585  ac_status=$?
17586  grep -v '^ *+' conftest.er1 >conftest.err
17587  rm -f conftest.er1
17588  cat conftest.err >&5
17589  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17590  (exit $ac_status); } &&
17591	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17592  { (case "(($ac_try" in
17593  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17594  *) ac_try_echo=$ac_try;;
17595esac
17596eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17597  (eval "$ac_try") 2>&5
17598  ac_status=$?
17599  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17600  (exit $ac_status); }; } &&
17601	 { ac_try='test -s conftest$ac_exeext'
17602  { (case "(($ac_try" in
17603  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17604  *) ac_try_echo=$ac_try;;
17605esac
17606eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17607  (eval "$ac_try") 2>&5
17608  ac_status=$?
17609  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17610  (exit $ac_status); }; }; then
17611  eval "$as_ac_var=yes"
17612else
17613  echo "$as_me: failed program was:" >&5
17614sed 's/^/| /' conftest.$ac_ext >&5
17615
17616	eval "$as_ac_var=no"
17617fi
17618
17619rm -f core conftest.err conftest.$ac_objext \
17620      conftest$ac_exeext conftest.$ac_ext
17621fi
17622ac_res=`eval echo '${'$as_ac_var'}'`
17623	       { echo "$as_me:$LINENO: result: $ac_res" >&5
17624echo "${ECHO_T}$ac_res" >&6; }
17625if test `eval echo '${'$as_ac_var'}'` = yes; then
17626  cat >>confdefs.h <<_ACEOF
17627#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17628_ACEOF
17629
17630fi
17631done
17632
17633{ echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
17634echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
17635if test "${llvm_cv_c_printf_a+set}" = set; then
17636  echo $ECHO_N "(cached) $ECHO_C" >&6
17637else
17638  ac_ext=c
17639ac_cpp='$CPP $CPPFLAGS'
17640ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17641ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17642ac_compiler_gnu=$ac_cv_c_compiler_gnu
17643
17644 if test "$cross_compiling" = yes; then
17645  llvmac_cv_c_printf_a=no
17646else
17647  cat >conftest.$ac_ext <<_ACEOF
17648
17649  /* confdefs.h.  */
17650_ACEOF
17651cat confdefs.h >>conftest.$ac_ext
17652cat >>conftest.$ac_ext <<_ACEOF
17653/* end confdefs.h.  */
17654
17655#include <stdio.h>
17656#include <stdlib.h>
17657
17658int
17659main ()
17660{
17661
17662volatile double A, B;
17663char Buffer[100];
17664A = 1;
17665A /= 10.0;
17666sprintf(Buffer, "%a", A);
17667B = atof(Buffer);
17668if (A != B)
17669  return (1);
17670if (A != 0x1.999999999999ap-4)
17671  return (1);
17672return (0);
17673  ;
17674  return 0;
17675}
17676_ACEOF
17677rm -f conftest$ac_exeext
17678if { (ac_try="$ac_link"
17679case "(($ac_try" in
17680  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17681  *) ac_try_echo=$ac_try;;
17682esac
17683eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17684  (eval "$ac_link") 2>&5
17685  ac_status=$?
17686  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17687  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17688  { (case "(($ac_try" in
17689  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17690  *) ac_try_echo=$ac_try;;
17691esac
17692eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17693  (eval "$ac_try") 2>&5
17694  ac_status=$?
17695  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17696  (exit $ac_status); }; }; then
17697  llvm_cv_c_printf_a=yes
17698else
17699  echo "$as_me: program exited with status $ac_status" >&5
17700echo "$as_me: failed program was:" >&5
17701sed 's/^/| /' conftest.$ac_ext >&5
17702
17703( exit $ac_status )
17704llvmac_cv_c_printf_a=no
17705fi
17706rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17707fi
17708
17709
17710 ac_ext=c
17711ac_cpp='$CPP $CPPFLAGS'
17712ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17713ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17714ac_compiler_gnu=$ac_cv_c_compiler_gnu
17715
17716fi
17717{ echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
17718echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
17719 if test "$llvm_cv_c_printf_a" = "yes"; then
17720
17721cat >>confdefs.h <<\_ACEOF
17722#define HAVE_PRINTF_A 1
17723_ACEOF
17724
17725 fi
17726
17727
17728{ echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
17729echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
17730if test "${ac_cv_func_rand48+set}" = set; then
17731  echo $ECHO_N "(cached) $ECHO_C" >&6
17732else
17733  ac_ext=cpp
17734ac_cpp='$CXXCPP $CPPFLAGS'
17735ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17736ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17737ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17738
17739   cat >conftest.$ac_ext <<_ACEOF
17740/* confdefs.h.  */
17741_ACEOF
17742cat confdefs.h >>conftest.$ac_ext
17743cat >>conftest.$ac_ext <<_ACEOF
17744/* end confdefs.h.  */
17745#include <stdlib.h>
17746int
17747main ()
17748{
17749srand48(0);lrand48();drand48();
17750  ;
17751  return 0;
17752}
17753_ACEOF
17754rm -f conftest.$ac_objext
17755if { (ac_try="$ac_compile"
17756case "(($ac_try" in
17757  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17758  *) ac_try_echo=$ac_try;;
17759esac
17760eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17761  (eval "$ac_compile") 2>conftest.er1
17762  ac_status=$?
17763  grep -v '^ *+' conftest.er1 >conftest.err
17764  rm -f conftest.er1
17765  cat conftest.err >&5
17766  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17767  (exit $ac_status); } &&
17768	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
17769  { (case "(($ac_try" in
17770  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17771  *) ac_try_echo=$ac_try;;
17772esac
17773eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17774  (eval "$ac_try") 2>&5
17775  ac_status=$?
17776  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17777  (exit $ac_status); }; } &&
17778	 { ac_try='test -s conftest.$ac_objext'
17779  { (case "(($ac_try" in
17780  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17781  *) ac_try_echo=$ac_try;;
17782esac
17783eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17784  (eval "$ac_try") 2>&5
17785  ac_status=$?
17786  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17787  (exit $ac_status); }; }; then
17788  ac_cv_func_rand48=yes
17789else
17790  echo "$as_me: failed program was:" >&5
17791sed 's/^/| /' conftest.$ac_ext >&5
17792
17793	ac_cv_func_rand48=no
17794fi
17795
17796rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17797  ac_ext=c
17798ac_cpp='$CPP $CPPFLAGS'
17799ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17800ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17801ac_compiler_gnu=$ac_cv_c_compiler_gnu
17802
17803fi
17804{ echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
17805echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
17806
17807if test "$ac_cv_func_rand48" = "yes" ; then
17808
17809cat >>confdefs.h <<\_ACEOF
17810#define HAVE_RAND48 1
17811_ACEOF
17812
17813fi
17814
17815
17816{ echo "$as_me:$LINENO: checking whether strerror_s is declared" >&5
17817echo $ECHO_N "checking whether strerror_s is declared... $ECHO_C" >&6; }
17818if test "${ac_cv_have_decl_strerror_s+set}" = set; then
17819  echo $ECHO_N "(cached) $ECHO_C" >&6
17820else
17821  cat >conftest.$ac_ext <<_ACEOF
17822/* confdefs.h.  */
17823_ACEOF
17824cat confdefs.h >>conftest.$ac_ext
17825cat >>conftest.$ac_ext <<_ACEOF
17826/* end confdefs.h.  */
17827$ac_includes_default
17828int
17829main ()
17830{
17831#ifndef strerror_s
17832  char *p = (char *) strerror_s;
17833  return !p;
17834#endif
17835
17836  ;
17837  return 0;
17838}
17839_ACEOF
17840rm -f conftest.$ac_objext
17841if { (ac_try="$ac_compile"
17842case "(($ac_try" in
17843  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17844  *) ac_try_echo=$ac_try;;
17845esac
17846eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17847  (eval "$ac_compile") 2>conftest.er1
17848  ac_status=$?
17849  grep -v '^ *+' conftest.er1 >conftest.err
17850  rm -f conftest.er1
17851  cat conftest.err >&5
17852  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17853  (exit $ac_status); } &&
17854	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17855  { (case "(($ac_try" in
17856  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17857  *) ac_try_echo=$ac_try;;
17858esac
17859eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17860  (eval "$ac_try") 2>&5
17861  ac_status=$?
17862  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17863  (exit $ac_status); }; } &&
17864	 { ac_try='test -s conftest.$ac_objext'
17865  { (case "(($ac_try" in
17866  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17867  *) ac_try_echo=$ac_try;;
17868esac
17869eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17870  (eval "$ac_try") 2>&5
17871  ac_status=$?
17872  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17873  (exit $ac_status); }; }; then
17874  ac_cv_have_decl_strerror_s=yes
17875else
17876  echo "$as_me: failed program was:" >&5
17877sed 's/^/| /' conftest.$ac_ext >&5
17878
17879	ac_cv_have_decl_strerror_s=no
17880fi
17881
17882rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17883fi
17884{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_s" >&5
17885echo "${ECHO_T}$ac_cv_have_decl_strerror_s" >&6; }
17886if test $ac_cv_have_decl_strerror_s = yes; then
17887
17888cat >>confdefs.h <<_ACEOF
17889#define HAVE_DECL_STRERROR_S 1
17890_ACEOF
17891
17892
17893else
17894  cat >>confdefs.h <<_ACEOF
17895#define HAVE_DECL_STRERROR_S 0
17896_ACEOF
17897
17898
17899fi
17900
17901
17902
17903if test "$llvm_cv_os_type" = "MingW" ; then
17904  { echo "$as_me:$LINENO: checking for _alloca in -lgcc" >&5
17905echo $ECHO_N "checking for _alloca in -lgcc... $ECHO_C" >&6; }
17906if test "${ac_cv_lib_gcc__alloca+set}" = set; then
17907  echo $ECHO_N "(cached) $ECHO_C" >&6
17908else
17909  ac_check_lib_save_LIBS=$LIBS
17910LIBS="-lgcc  $LIBS"
17911cat >conftest.$ac_ext <<_ACEOF
17912/* confdefs.h.  */
17913_ACEOF
17914cat confdefs.h >>conftest.$ac_ext
17915cat >>conftest.$ac_ext <<_ACEOF
17916/* end confdefs.h.  */
17917
17918/* Override any GCC internal prototype to avoid an error.
17919   Use char because int might match the return type of a GCC
17920   builtin and then its argument prototype would still apply.  */
17921#ifdef __cplusplus
17922extern "C"
17923#endif
17924char _alloca ();
17925int
17926main ()
17927{
17928return _alloca ();
17929  ;
17930  return 0;
17931}
17932_ACEOF
17933rm -f conftest.$ac_objext conftest$ac_exeext
17934if { (ac_try="$ac_link"
17935case "(($ac_try" in
17936  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17937  *) ac_try_echo=$ac_try;;
17938esac
17939eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17940  (eval "$ac_link") 2>conftest.er1
17941  ac_status=$?
17942  grep -v '^ *+' conftest.er1 >conftest.err
17943  rm -f conftest.er1
17944  cat conftest.err >&5
17945  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17946  (exit $ac_status); } &&
17947	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17948  { (case "(($ac_try" in
17949  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17950  *) ac_try_echo=$ac_try;;
17951esac
17952eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17953  (eval "$ac_try") 2>&5
17954  ac_status=$?
17955  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17956  (exit $ac_status); }; } &&
17957	 { ac_try='test -s conftest$ac_exeext'
17958  { (case "(($ac_try" in
17959  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17960  *) ac_try_echo=$ac_try;;
17961esac
17962eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17963  (eval "$ac_try") 2>&5
17964  ac_status=$?
17965  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17966  (exit $ac_status); }; }; then
17967  ac_cv_lib_gcc__alloca=yes
17968else
17969  echo "$as_me: failed program was:" >&5
17970sed 's/^/| /' conftest.$ac_ext >&5
17971
17972	ac_cv_lib_gcc__alloca=no
17973fi
17974
17975rm -f core conftest.err conftest.$ac_objext \
17976      conftest$ac_exeext conftest.$ac_ext
17977LIBS=$ac_check_lib_save_LIBS
17978fi
17979{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc__alloca" >&5
17980echo "${ECHO_T}$ac_cv_lib_gcc__alloca" >&6; }
17981if test $ac_cv_lib_gcc__alloca = yes; then
17982
17983cat >>confdefs.h <<\_ACEOF
17984#define HAVE__ALLOCA 1
17985_ACEOF
17986
17987fi
17988
17989  { echo "$as_me:$LINENO: checking for __alloca in -lgcc" >&5
17990echo $ECHO_N "checking for __alloca in -lgcc... $ECHO_C" >&6; }
17991if test "${ac_cv_lib_gcc___alloca+set}" = set; then
17992  echo $ECHO_N "(cached) $ECHO_C" >&6
17993else
17994  ac_check_lib_save_LIBS=$LIBS
17995LIBS="-lgcc  $LIBS"
17996cat >conftest.$ac_ext <<_ACEOF
17997/* confdefs.h.  */
17998_ACEOF
17999cat confdefs.h >>conftest.$ac_ext
18000cat >>conftest.$ac_ext <<_ACEOF
18001/* end confdefs.h.  */
18002
18003/* Override any GCC internal prototype to avoid an error.
18004   Use char because int might match the return type of a GCC
18005   builtin and then its argument prototype would still apply.  */
18006#ifdef __cplusplus
18007extern "C"
18008#endif
18009char __alloca ();
18010int
18011main ()
18012{
18013return __alloca ();
18014  ;
18015  return 0;
18016}
18017_ACEOF
18018rm -f conftest.$ac_objext conftest$ac_exeext
18019if { (ac_try="$ac_link"
18020case "(($ac_try" in
18021  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18022  *) ac_try_echo=$ac_try;;
18023esac
18024eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18025  (eval "$ac_link") 2>conftest.er1
18026  ac_status=$?
18027  grep -v '^ *+' conftest.er1 >conftest.err
18028  rm -f conftest.er1
18029  cat conftest.err >&5
18030  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18031  (exit $ac_status); } &&
18032	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18033  { (case "(($ac_try" in
18034  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18035  *) ac_try_echo=$ac_try;;
18036esac
18037eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18038  (eval "$ac_try") 2>&5
18039  ac_status=$?
18040  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18041  (exit $ac_status); }; } &&
18042	 { ac_try='test -s conftest$ac_exeext'
18043  { (case "(($ac_try" in
18044  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18045  *) ac_try_echo=$ac_try;;
18046esac
18047eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18048  (eval "$ac_try") 2>&5
18049  ac_status=$?
18050  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18051  (exit $ac_status); }; }; then
18052  ac_cv_lib_gcc___alloca=yes
18053else
18054  echo "$as_me: failed program was:" >&5
18055sed 's/^/| /' conftest.$ac_ext >&5
18056
18057	ac_cv_lib_gcc___alloca=no
18058fi
18059
18060rm -f core conftest.err conftest.$ac_objext \
18061      conftest$ac_exeext conftest.$ac_ext
18062LIBS=$ac_check_lib_save_LIBS
18063fi
18064{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___alloca" >&5
18065echo "${ECHO_T}$ac_cv_lib_gcc___alloca" >&6; }
18066if test $ac_cv_lib_gcc___alloca = yes; then
18067
18068cat >>confdefs.h <<\_ACEOF
18069#define HAVE___ALLOCA 1
18070_ACEOF
18071
18072fi
18073
18074  { echo "$as_me:$LINENO: checking for __chkstk in -lgcc" >&5
18075echo $ECHO_N "checking for __chkstk in -lgcc... $ECHO_C" >&6; }
18076if test "${ac_cv_lib_gcc___chkstk+set}" = set; then
18077  echo $ECHO_N "(cached) $ECHO_C" >&6
18078else
18079  ac_check_lib_save_LIBS=$LIBS
18080LIBS="-lgcc  $LIBS"
18081cat >conftest.$ac_ext <<_ACEOF
18082/* confdefs.h.  */
18083_ACEOF
18084cat confdefs.h >>conftest.$ac_ext
18085cat >>conftest.$ac_ext <<_ACEOF
18086/* end confdefs.h.  */
18087
18088/* Override any GCC internal prototype to avoid an error.
18089   Use char because int might match the return type of a GCC
18090   builtin and then its argument prototype would still apply.  */
18091#ifdef __cplusplus
18092extern "C"
18093#endif
18094char __chkstk ();
18095int
18096main ()
18097{
18098return __chkstk ();
18099  ;
18100  return 0;
18101}
18102_ACEOF
18103rm -f conftest.$ac_objext conftest$ac_exeext
18104if { (ac_try="$ac_link"
18105case "(($ac_try" in
18106  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18107  *) ac_try_echo=$ac_try;;
18108esac
18109eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18110  (eval "$ac_link") 2>conftest.er1
18111  ac_status=$?
18112  grep -v '^ *+' conftest.er1 >conftest.err
18113  rm -f conftest.er1
18114  cat conftest.err >&5
18115  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18116  (exit $ac_status); } &&
18117	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18118  { (case "(($ac_try" in
18119  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18120  *) ac_try_echo=$ac_try;;
18121esac
18122eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18123  (eval "$ac_try") 2>&5
18124  ac_status=$?
18125  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18126  (exit $ac_status); }; } &&
18127	 { ac_try='test -s conftest$ac_exeext'
18128  { (case "(($ac_try" in
18129  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18130  *) ac_try_echo=$ac_try;;
18131esac
18132eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18133  (eval "$ac_try") 2>&5
18134  ac_status=$?
18135  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18136  (exit $ac_status); }; }; then
18137  ac_cv_lib_gcc___chkstk=yes
18138else
18139  echo "$as_me: failed program was:" >&5
18140sed 's/^/| /' conftest.$ac_ext >&5
18141
18142	ac_cv_lib_gcc___chkstk=no
18143fi
18144
18145rm -f core conftest.err conftest.$ac_objext \
18146      conftest$ac_exeext conftest.$ac_ext
18147LIBS=$ac_check_lib_save_LIBS
18148fi
18149{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___chkstk" >&5
18150echo "${ECHO_T}$ac_cv_lib_gcc___chkstk" >&6; }
18151if test $ac_cv_lib_gcc___chkstk = yes; then
18152
18153cat >>confdefs.h <<\_ACEOF
18154#define HAVE___CHKSTK 1
18155_ACEOF
18156
18157fi
18158
18159  { echo "$as_me:$LINENO: checking for ___chkstk in -lgcc" >&5
18160echo $ECHO_N "checking for ___chkstk in -lgcc... $ECHO_C" >&6; }
18161if test "${ac_cv_lib_gcc____chkstk+set}" = set; then
18162  echo $ECHO_N "(cached) $ECHO_C" >&6
18163else
18164  ac_check_lib_save_LIBS=$LIBS
18165LIBS="-lgcc  $LIBS"
18166cat >conftest.$ac_ext <<_ACEOF
18167/* confdefs.h.  */
18168_ACEOF
18169cat confdefs.h >>conftest.$ac_ext
18170cat >>conftest.$ac_ext <<_ACEOF
18171/* end confdefs.h.  */
18172
18173/* Override any GCC internal prototype to avoid an error.
18174   Use char because int might match the return type of a GCC
18175   builtin and then its argument prototype would still apply.  */
18176#ifdef __cplusplus
18177extern "C"
18178#endif
18179char ___chkstk ();
18180int
18181main ()
18182{
18183return ___chkstk ();
18184  ;
18185  return 0;
18186}
18187_ACEOF
18188rm -f conftest.$ac_objext conftest$ac_exeext
18189if { (ac_try="$ac_link"
18190case "(($ac_try" in
18191  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18192  *) ac_try_echo=$ac_try;;
18193esac
18194eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18195  (eval "$ac_link") 2>conftest.er1
18196  ac_status=$?
18197  grep -v '^ *+' conftest.er1 >conftest.err
18198  rm -f conftest.er1
18199  cat conftest.err >&5
18200  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18201  (exit $ac_status); } &&
18202	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18203  { (case "(($ac_try" in
18204  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18205  *) ac_try_echo=$ac_try;;
18206esac
18207eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18208  (eval "$ac_try") 2>&5
18209  ac_status=$?
18210  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18211  (exit $ac_status); }; } &&
18212	 { ac_try='test -s conftest$ac_exeext'
18213  { (case "(($ac_try" in
18214  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18215  *) ac_try_echo=$ac_try;;
18216esac
18217eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18218  (eval "$ac_try") 2>&5
18219  ac_status=$?
18220  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18221  (exit $ac_status); }; }; then
18222  ac_cv_lib_gcc____chkstk=yes
18223else
18224  echo "$as_me: failed program was:" >&5
18225sed 's/^/| /' conftest.$ac_ext >&5
18226
18227	ac_cv_lib_gcc____chkstk=no
18228fi
18229
18230rm -f core conftest.err conftest.$ac_objext \
18231      conftest$ac_exeext conftest.$ac_ext
18232LIBS=$ac_check_lib_save_LIBS
18233fi
18234{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc____chkstk" >&5
18235echo "${ECHO_T}$ac_cv_lib_gcc____chkstk" >&6; }
18236if test $ac_cv_lib_gcc____chkstk = yes; then
18237
18238cat >>confdefs.h <<\_ACEOF
18239#define HAVE____CHKSTK 1
18240_ACEOF
18241
18242fi
18243
18244
18245  { echo "$as_me:$LINENO: checking for __ashldi3 in -lgcc" >&5
18246echo $ECHO_N "checking for __ashldi3 in -lgcc... $ECHO_C" >&6; }
18247if test "${ac_cv_lib_gcc___ashldi3+set}" = set; then
18248  echo $ECHO_N "(cached) $ECHO_C" >&6
18249else
18250  ac_check_lib_save_LIBS=$LIBS
18251LIBS="-lgcc  $LIBS"
18252cat >conftest.$ac_ext <<_ACEOF
18253/* confdefs.h.  */
18254_ACEOF
18255cat confdefs.h >>conftest.$ac_ext
18256cat >>conftest.$ac_ext <<_ACEOF
18257/* end confdefs.h.  */
18258
18259/* Override any GCC internal prototype to avoid an error.
18260   Use char because int might match the return type of a GCC
18261   builtin and then its argument prototype would still apply.  */
18262#ifdef __cplusplus
18263extern "C"
18264#endif
18265char __ashldi3 ();
18266int
18267main ()
18268{
18269return __ashldi3 ();
18270  ;
18271  return 0;
18272}
18273_ACEOF
18274rm -f conftest.$ac_objext conftest$ac_exeext
18275if { (ac_try="$ac_link"
18276case "(($ac_try" in
18277  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18278  *) ac_try_echo=$ac_try;;
18279esac
18280eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18281  (eval "$ac_link") 2>conftest.er1
18282  ac_status=$?
18283  grep -v '^ *+' conftest.er1 >conftest.err
18284  rm -f conftest.er1
18285  cat conftest.err >&5
18286  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18287  (exit $ac_status); } &&
18288	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18289  { (case "(($ac_try" in
18290  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18291  *) ac_try_echo=$ac_try;;
18292esac
18293eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18294  (eval "$ac_try") 2>&5
18295  ac_status=$?
18296  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18297  (exit $ac_status); }; } &&
18298	 { ac_try='test -s conftest$ac_exeext'
18299  { (case "(($ac_try" in
18300  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18301  *) ac_try_echo=$ac_try;;
18302esac
18303eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18304  (eval "$ac_try") 2>&5
18305  ac_status=$?
18306  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18307  (exit $ac_status); }; }; then
18308  ac_cv_lib_gcc___ashldi3=yes
18309else
18310  echo "$as_me: failed program was:" >&5
18311sed 's/^/| /' conftest.$ac_ext >&5
18312
18313	ac_cv_lib_gcc___ashldi3=no
18314fi
18315
18316rm -f core conftest.err conftest.$ac_objext \
18317      conftest$ac_exeext conftest.$ac_ext
18318LIBS=$ac_check_lib_save_LIBS
18319fi
18320{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashldi3" >&5
18321echo "${ECHO_T}$ac_cv_lib_gcc___ashldi3" >&6; }
18322if test $ac_cv_lib_gcc___ashldi3 = yes; then
18323
18324cat >>confdefs.h <<\_ACEOF
18325#define HAVE___ASHLDI3 1
18326_ACEOF
18327
18328fi
18329
18330  { echo "$as_me:$LINENO: checking for __ashrdi3 in -lgcc" >&5
18331echo $ECHO_N "checking for __ashrdi3 in -lgcc... $ECHO_C" >&6; }
18332if test "${ac_cv_lib_gcc___ashrdi3+set}" = set; then
18333  echo $ECHO_N "(cached) $ECHO_C" >&6
18334else
18335  ac_check_lib_save_LIBS=$LIBS
18336LIBS="-lgcc  $LIBS"
18337cat >conftest.$ac_ext <<_ACEOF
18338/* confdefs.h.  */
18339_ACEOF
18340cat confdefs.h >>conftest.$ac_ext
18341cat >>conftest.$ac_ext <<_ACEOF
18342/* end confdefs.h.  */
18343
18344/* Override any GCC internal prototype to avoid an error.
18345   Use char because int might match the return type of a GCC
18346   builtin and then its argument prototype would still apply.  */
18347#ifdef __cplusplus
18348extern "C"
18349#endif
18350char __ashrdi3 ();
18351int
18352main ()
18353{
18354return __ashrdi3 ();
18355  ;
18356  return 0;
18357}
18358_ACEOF
18359rm -f conftest.$ac_objext conftest$ac_exeext
18360if { (ac_try="$ac_link"
18361case "(($ac_try" in
18362  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18363  *) ac_try_echo=$ac_try;;
18364esac
18365eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18366  (eval "$ac_link") 2>conftest.er1
18367  ac_status=$?
18368  grep -v '^ *+' conftest.er1 >conftest.err
18369  rm -f conftest.er1
18370  cat conftest.err >&5
18371  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18372  (exit $ac_status); } &&
18373	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18374  { (case "(($ac_try" in
18375  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18376  *) ac_try_echo=$ac_try;;
18377esac
18378eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18379  (eval "$ac_try") 2>&5
18380  ac_status=$?
18381  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18382  (exit $ac_status); }; } &&
18383	 { ac_try='test -s conftest$ac_exeext'
18384  { (case "(($ac_try" in
18385  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18386  *) ac_try_echo=$ac_try;;
18387esac
18388eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18389  (eval "$ac_try") 2>&5
18390  ac_status=$?
18391  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18392  (exit $ac_status); }; }; then
18393  ac_cv_lib_gcc___ashrdi3=yes
18394else
18395  echo "$as_me: failed program was:" >&5
18396sed 's/^/| /' conftest.$ac_ext >&5
18397
18398	ac_cv_lib_gcc___ashrdi3=no
18399fi
18400
18401rm -f core conftest.err conftest.$ac_objext \
18402      conftest$ac_exeext conftest.$ac_ext
18403LIBS=$ac_check_lib_save_LIBS
18404fi
18405{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashrdi3" >&5
18406echo "${ECHO_T}$ac_cv_lib_gcc___ashrdi3" >&6; }
18407if test $ac_cv_lib_gcc___ashrdi3 = yes; then
18408
18409cat >>confdefs.h <<\_ACEOF
18410#define HAVE___ASHRDI3 1
18411_ACEOF
18412
18413fi
18414
18415  { echo "$as_me:$LINENO: checking for __divdi3 in -lgcc" >&5
18416echo $ECHO_N "checking for __divdi3 in -lgcc... $ECHO_C" >&6; }
18417if test "${ac_cv_lib_gcc___divdi3+set}" = set; then
18418  echo $ECHO_N "(cached) $ECHO_C" >&6
18419else
18420  ac_check_lib_save_LIBS=$LIBS
18421LIBS="-lgcc  $LIBS"
18422cat >conftest.$ac_ext <<_ACEOF
18423/* confdefs.h.  */
18424_ACEOF
18425cat confdefs.h >>conftest.$ac_ext
18426cat >>conftest.$ac_ext <<_ACEOF
18427/* end confdefs.h.  */
18428
18429/* Override any GCC internal prototype to avoid an error.
18430   Use char because int might match the return type of a GCC
18431   builtin and then its argument prototype would still apply.  */
18432#ifdef __cplusplus
18433extern "C"
18434#endif
18435char __divdi3 ();
18436int
18437main ()
18438{
18439return __divdi3 ();
18440  ;
18441  return 0;
18442}
18443_ACEOF
18444rm -f conftest.$ac_objext conftest$ac_exeext
18445if { (ac_try="$ac_link"
18446case "(($ac_try" in
18447  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18448  *) ac_try_echo=$ac_try;;
18449esac
18450eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18451  (eval "$ac_link") 2>conftest.er1
18452  ac_status=$?
18453  grep -v '^ *+' conftest.er1 >conftest.err
18454  rm -f conftest.er1
18455  cat conftest.err >&5
18456  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18457  (exit $ac_status); } &&
18458	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18459  { (case "(($ac_try" in
18460  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18461  *) ac_try_echo=$ac_try;;
18462esac
18463eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18464  (eval "$ac_try") 2>&5
18465  ac_status=$?
18466  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18467  (exit $ac_status); }; } &&
18468	 { ac_try='test -s conftest$ac_exeext'
18469  { (case "(($ac_try" in
18470  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18471  *) ac_try_echo=$ac_try;;
18472esac
18473eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18474  (eval "$ac_try") 2>&5
18475  ac_status=$?
18476  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18477  (exit $ac_status); }; }; then
18478  ac_cv_lib_gcc___divdi3=yes
18479else
18480  echo "$as_me: failed program was:" >&5
18481sed 's/^/| /' conftest.$ac_ext >&5
18482
18483	ac_cv_lib_gcc___divdi3=no
18484fi
18485
18486rm -f core conftest.err conftest.$ac_objext \
18487      conftest$ac_exeext conftest.$ac_ext
18488LIBS=$ac_check_lib_save_LIBS
18489fi
18490{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___divdi3" >&5
18491echo "${ECHO_T}$ac_cv_lib_gcc___divdi3" >&6; }
18492if test $ac_cv_lib_gcc___divdi3 = yes; then
18493
18494cat >>confdefs.h <<\_ACEOF
18495#define HAVE___DIVDI3 1
18496_ACEOF
18497
18498fi
18499
18500  { echo "$as_me:$LINENO: checking for __fixdfdi in -lgcc" >&5
18501echo $ECHO_N "checking for __fixdfdi in -lgcc... $ECHO_C" >&6; }
18502if test "${ac_cv_lib_gcc___fixdfdi+set}" = set; then
18503  echo $ECHO_N "(cached) $ECHO_C" >&6
18504else
18505  ac_check_lib_save_LIBS=$LIBS
18506LIBS="-lgcc  $LIBS"
18507cat >conftest.$ac_ext <<_ACEOF
18508/* confdefs.h.  */
18509_ACEOF
18510cat confdefs.h >>conftest.$ac_ext
18511cat >>conftest.$ac_ext <<_ACEOF
18512/* end confdefs.h.  */
18513
18514/* Override any GCC internal prototype to avoid an error.
18515   Use char because int might match the return type of a GCC
18516   builtin and then its argument prototype would still apply.  */
18517#ifdef __cplusplus
18518extern "C"
18519#endif
18520char __fixdfdi ();
18521int
18522main ()
18523{
18524return __fixdfdi ();
18525  ;
18526  return 0;
18527}
18528_ACEOF
18529rm -f conftest.$ac_objext conftest$ac_exeext
18530if { (ac_try="$ac_link"
18531case "(($ac_try" in
18532  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18533  *) ac_try_echo=$ac_try;;
18534esac
18535eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18536  (eval "$ac_link") 2>conftest.er1
18537  ac_status=$?
18538  grep -v '^ *+' conftest.er1 >conftest.err
18539  rm -f conftest.er1
18540  cat conftest.err >&5
18541  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18542  (exit $ac_status); } &&
18543	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18544  { (case "(($ac_try" in
18545  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18546  *) ac_try_echo=$ac_try;;
18547esac
18548eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18549  (eval "$ac_try") 2>&5
18550  ac_status=$?
18551  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18552  (exit $ac_status); }; } &&
18553	 { ac_try='test -s conftest$ac_exeext'
18554  { (case "(($ac_try" in
18555  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18556  *) ac_try_echo=$ac_try;;
18557esac
18558eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18559  (eval "$ac_try") 2>&5
18560  ac_status=$?
18561  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18562  (exit $ac_status); }; }; then
18563  ac_cv_lib_gcc___fixdfdi=yes
18564else
18565  echo "$as_me: failed program was:" >&5
18566sed 's/^/| /' conftest.$ac_ext >&5
18567
18568	ac_cv_lib_gcc___fixdfdi=no
18569fi
18570
18571rm -f core conftest.err conftest.$ac_objext \
18572      conftest$ac_exeext conftest.$ac_ext
18573LIBS=$ac_check_lib_save_LIBS
18574fi
18575{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixdfdi" >&5
18576echo "${ECHO_T}$ac_cv_lib_gcc___fixdfdi" >&6; }
18577if test $ac_cv_lib_gcc___fixdfdi = yes; then
18578
18579cat >>confdefs.h <<\_ACEOF
18580#define HAVE___FIXDFDI 1
18581_ACEOF
18582
18583fi
18584
18585  { echo "$as_me:$LINENO: checking for __fixsfdi in -lgcc" >&5
18586echo $ECHO_N "checking for __fixsfdi in -lgcc... $ECHO_C" >&6; }
18587if test "${ac_cv_lib_gcc___fixsfdi+set}" = set; then
18588  echo $ECHO_N "(cached) $ECHO_C" >&6
18589else
18590  ac_check_lib_save_LIBS=$LIBS
18591LIBS="-lgcc  $LIBS"
18592cat >conftest.$ac_ext <<_ACEOF
18593/* confdefs.h.  */
18594_ACEOF
18595cat confdefs.h >>conftest.$ac_ext
18596cat >>conftest.$ac_ext <<_ACEOF
18597/* end confdefs.h.  */
18598
18599/* Override any GCC internal prototype to avoid an error.
18600   Use char because int might match the return type of a GCC
18601   builtin and then its argument prototype would still apply.  */
18602#ifdef __cplusplus
18603extern "C"
18604#endif
18605char __fixsfdi ();
18606int
18607main ()
18608{
18609return __fixsfdi ();
18610  ;
18611  return 0;
18612}
18613_ACEOF
18614rm -f conftest.$ac_objext conftest$ac_exeext
18615if { (ac_try="$ac_link"
18616case "(($ac_try" in
18617  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18618  *) ac_try_echo=$ac_try;;
18619esac
18620eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18621  (eval "$ac_link") 2>conftest.er1
18622  ac_status=$?
18623  grep -v '^ *+' conftest.er1 >conftest.err
18624  rm -f conftest.er1
18625  cat conftest.err >&5
18626  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18627  (exit $ac_status); } &&
18628	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18629  { (case "(($ac_try" in
18630  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18631  *) ac_try_echo=$ac_try;;
18632esac
18633eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18634  (eval "$ac_try") 2>&5
18635  ac_status=$?
18636  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18637  (exit $ac_status); }; } &&
18638	 { ac_try='test -s conftest$ac_exeext'
18639  { (case "(($ac_try" in
18640  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18641  *) ac_try_echo=$ac_try;;
18642esac
18643eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18644  (eval "$ac_try") 2>&5
18645  ac_status=$?
18646  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18647  (exit $ac_status); }; }; then
18648  ac_cv_lib_gcc___fixsfdi=yes
18649else
18650  echo "$as_me: failed program was:" >&5
18651sed 's/^/| /' conftest.$ac_ext >&5
18652
18653	ac_cv_lib_gcc___fixsfdi=no
18654fi
18655
18656rm -f core conftest.err conftest.$ac_objext \
18657      conftest$ac_exeext conftest.$ac_ext
18658LIBS=$ac_check_lib_save_LIBS
18659fi
18660{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixsfdi" >&5
18661echo "${ECHO_T}$ac_cv_lib_gcc___fixsfdi" >&6; }
18662if test $ac_cv_lib_gcc___fixsfdi = yes; then
18663
18664cat >>confdefs.h <<\_ACEOF
18665#define HAVE___FIXSFDI 1
18666_ACEOF
18667
18668fi
18669
18670  { echo "$as_me:$LINENO: checking for __floatdidf in -lgcc" >&5
18671echo $ECHO_N "checking for __floatdidf in -lgcc... $ECHO_C" >&6; }
18672if test "${ac_cv_lib_gcc___floatdidf+set}" = set; then
18673  echo $ECHO_N "(cached) $ECHO_C" >&6
18674else
18675  ac_check_lib_save_LIBS=$LIBS
18676LIBS="-lgcc  $LIBS"
18677cat >conftest.$ac_ext <<_ACEOF
18678/* confdefs.h.  */
18679_ACEOF
18680cat confdefs.h >>conftest.$ac_ext
18681cat >>conftest.$ac_ext <<_ACEOF
18682/* end confdefs.h.  */
18683
18684/* Override any GCC internal prototype to avoid an error.
18685   Use char because int might match the return type of a GCC
18686   builtin and then its argument prototype would still apply.  */
18687#ifdef __cplusplus
18688extern "C"
18689#endif
18690char __floatdidf ();
18691int
18692main ()
18693{
18694return __floatdidf ();
18695  ;
18696  return 0;
18697}
18698_ACEOF
18699rm -f conftest.$ac_objext conftest$ac_exeext
18700if { (ac_try="$ac_link"
18701case "(($ac_try" in
18702  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18703  *) ac_try_echo=$ac_try;;
18704esac
18705eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18706  (eval "$ac_link") 2>conftest.er1
18707  ac_status=$?
18708  grep -v '^ *+' conftest.er1 >conftest.err
18709  rm -f conftest.er1
18710  cat conftest.err >&5
18711  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18712  (exit $ac_status); } &&
18713	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18714  { (case "(($ac_try" in
18715  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18716  *) ac_try_echo=$ac_try;;
18717esac
18718eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18719  (eval "$ac_try") 2>&5
18720  ac_status=$?
18721  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18722  (exit $ac_status); }; } &&
18723	 { ac_try='test -s conftest$ac_exeext'
18724  { (case "(($ac_try" in
18725  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18726  *) ac_try_echo=$ac_try;;
18727esac
18728eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18729  (eval "$ac_try") 2>&5
18730  ac_status=$?
18731  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18732  (exit $ac_status); }; }; then
18733  ac_cv_lib_gcc___floatdidf=yes
18734else
18735  echo "$as_me: failed program was:" >&5
18736sed 's/^/| /' conftest.$ac_ext >&5
18737
18738	ac_cv_lib_gcc___floatdidf=no
18739fi
18740
18741rm -f core conftest.err conftest.$ac_objext \
18742      conftest$ac_exeext conftest.$ac_ext
18743LIBS=$ac_check_lib_save_LIBS
18744fi
18745{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___floatdidf" >&5
18746echo "${ECHO_T}$ac_cv_lib_gcc___floatdidf" >&6; }
18747if test $ac_cv_lib_gcc___floatdidf = yes; then
18748
18749cat >>confdefs.h <<\_ACEOF
18750#define HAVE___FLOATDIDF 1
18751_ACEOF
18752
18753fi
18754
18755  { echo "$as_me:$LINENO: checking for __lshrdi3 in -lgcc" >&5
18756echo $ECHO_N "checking for __lshrdi3 in -lgcc... $ECHO_C" >&6; }
18757if test "${ac_cv_lib_gcc___lshrdi3+set}" = set; then
18758  echo $ECHO_N "(cached) $ECHO_C" >&6
18759else
18760  ac_check_lib_save_LIBS=$LIBS
18761LIBS="-lgcc  $LIBS"
18762cat >conftest.$ac_ext <<_ACEOF
18763/* confdefs.h.  */
18764_ACEOF
18765cat confdefs.h >>conftest.$ac_ext
18766cat >>conftest.$ac_ext <<_ACEOF
18767/* end confdefs.h.  */
18768
18769/* Override any GCC internal prototype to avoid an error.
18770   Use char because int might match the return type of a GCC
18771   builtin and then its argument prototype would still apply.  */
18772#ifdef __cplusplus
18773extern "C"
18774#endif
18775char __lshrdi3 ();
18776int
18777main ()
18778{
18779return __lshrdi3 ();
18780  ;
18781  return 0;
18782}
18783_ACEOF
18784rm -f conftest.$ac_objext conftest$ac_exeext
18785if { (ac_try="$ac_link"
18786case "(($ac_try" in
18787  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18788  *) ac_try_echo=$ac_try;;
18789esac
18790eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18791  (eval "$ac_link") 2>conftest.er1
18792  ac_status=$?
18793  grep -v '^ *+' conftest.er1 >conftest.err
18794  rm -f conftest.er1
18795  cat conftest.err >&5
18796  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18797  (exit $ac_status); } &&
18798	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18799  { (case "(($ac_try" in
18800  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18801  *) ac_try_echo=$ac_try;;
18802esac
18803eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18804  (eval "$ac_try") 2>&5
18805  ac_status=$?
18806  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18807  (exit $ac_status); }; } &&
18808	 { ac_try='test -s conftest$ac_exeext'
18809  { (case "(($ac_try" in
18810  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18811  *) ac_try_echo=$ac_try;;
18812esac
18813eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18814  (eval "$ac_try") 2>&5
18815  ac_status=$?
18816  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18817  (exit $ac_status); }; }; then
18818  ac_cv_lib_gcc___lshrdi3=yes
18819else
18820  echo "$as_me: failed program was:" >&5
18821sed 's/^/| /' conftest.$ac_ext >&5
18822
18823	ac_cv_lib_gcc___lshrdi3=no
18824fi
18825
18826rm -f core conftest.err conftest.$ac_objext \
18827      conftest$ac_exeext conftest.$ac_ext
18828LIBS=$ac_check_lib_save_LIBS
18829fi
18830{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___lshrdi3" >&5
18831echo "${ECHO_T}$ac_cv_lib_gcc___lshrdi3" >&6; }
18832if test $ac_cv_lib_gcc___lshrdi3 = yes; then
18833
18834cat >>confdefs.h <<\_ACEOF
18835#define HAVE___LSHRDI3 1
18836_ACEOF
18837
18838fi
18839
18840  { echo "$as_me:$LINENO: checking for __moddi3 in -lgcc" >&5
18841echo $ECHO_N "checking for __moddi3 in -lgcc... $ECHO_C" >&6; }
18842if test "${ac_cv_lib_gcc___moddi3+set}" = set; then
18843  echo $ECHO_N "(cached) $ECHO_C" >&6
18844else
18845  ac_check_lib_save_LIBS=$LIBS
18846LIBS="-lgcc  $LIBS"
18847cat >conftest.$ac_ext <<_ACEOF
18848/* confdefs.h.  */
18849_ACEOF
18850cat confdefs.h >>conftest.$ac_ext
18851cat >>conftest.$ac_ext <<_ACEOF
18852/* end confdefs.h.  */
18853
18854/* Override any GCC internal prototype to avoid an error.
18855   Use char because int might match the return type of a GCC
18856   builtin and then its argument prototype would still apply.  */
18857#ifdef __cplusplus
18858extern "C"
18859#endif
18860char __moddi3 ();
18861int
18862main ()
18863{
18864return __moddi3 ();
18865  ;
18866  return 0;
18867}
18868_ACEOF
18869rm -f conftest.$ac_objext conftest$ac_exeext
18870if { (ac_try="$ac_link"
18871case "(($ac_try" in
18872  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18873  *) ac_try_echo=$ac_try;;
18874esac
18875eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18876  (eval "$ac_link") 2>conftest.er1
18877  ac_status=$?
18878  grep -v '^ *+' conftest.er1 >conftest.err
18879  rm -f conftest.er1
18880  cat conftest.err >&5
18881  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18882  (exit $ac_status); } &&
18883	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18884  { (case "(($ac_try" in
18885  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18886  *) ac_try_echo=$ac_try;;
18887esac
18888eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18889  (eval "$ac_try") 2>&5
18890  ac_status=$?
18891  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18892  (exit $ac_status); }; } &&
18893	 { ac_try='test -s conftest$ac_exeext'
18894  { (case "(($ac_try" in
18895  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18896  *) ac_try_echo=$ac_try;;
18897esac
18898eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18899  (eval "$ac_try") 2>&5
18900  ac_status=$?
18901  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18902  (exit $ac_status); }; }; then
18903  ac_cv_lib_gcc___moddi3=yes
18904else
18905  echo "$as_me: failed program was:" >&5
18906sed 's/^/| /' conftest.$ac_ext >&5
18907
18908	ac_cv_lib_gcc___moddi3=no
18909fi
18910
18911rm -f core conftest.err conftest.$ac_objext \
18912      conftest$ac_exeext conftest.$ac_ext
18913LIBS=$ac_check_lib_save_LIBS
18914fi
18915{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___moddi3" >&5
18916echo "${ECHO_T}$ac_cv_lib_gcc___moddi3" >&6; }
18917if test $ac_cv_lib_gcc___moddi3 = yes; then
18918
18919cat >>confdefs.h <<\_ACEOF
18920#define HAVE___MODDI3 1
18921_ACEOF
18922
18923fi
18924
18925  { echo "$as_me:$LINENO: checking for __udivdi3 in -lgcc" >&5
18926echo $ECHO_N "checking for __udivdi3 in -lgcc... $ECHO_C" >&6; }
18927if test "${ac_cv_lib_gcc___udivdi3+set}" = set; then
18928  echo $ECHO_N "(cached) $ECHO_C" >&6
18929else
18930  ac_check_lib_save_LIBS=$LIBS
18931LIBS="-lgcc  $LIBS"
18932cat >conftest.$ac_ext <<_ACEOF
18933/* confdefs.h.  */
18934_ACEOF
18935cat confdefs.h >>conftest.$ac_ext
18936cat >>conftest.$ac_ext <<_ACEOF
18937/* end confdefs.h.  */
18938
18939/* Override any GCC internal prototype to avoid an error.
18940   Use char because int might match the return type of a GCC
18941   builtin and then its argument prototype would still apply.  */
18942#ifdef __cplusplus
18943extern "C"
18944#endif
18945char __udivdi3 ();
18946int
18947main ()
18948{
18949return __udivdi3 ();
18950  ;
18951  return 0;
18952}
18953_ACEOF
18954rm -f conftest.$ac_objext conftest$ac_exeext
18955if { (ac_try="$ac_link"
18956case "(($ac_try" in
18957  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18958  *) ac_try_echo=$ac_try;;
18959esac
18960eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18961  (eval "$ac_link") 2>conftest.er1
18962  ac_status=$?
18963  grep -v '^ *+' conftest.er1 >conftest.err
18964  rm -f conftest.er1
18965  cat conftest.err >&5
18966  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18967  (exit $ac_status); } &&
18968	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18969  { (case "(($ac_try" in
18970  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18971  *) ac_try_echo=$ac_try;;
18972esac
18973eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18974  (eval "$ac_try") 2>&5
18975  ac_status=$?
18976  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18977  (exit $ac_status); }; } &&
18978	 { ac_try='test -s conftest$ac_exeext'
18979  { (case "(($ac_try" in
18980  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18981  *) ac_try_echo=$ac_try;;
18982esac
18983eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18984  (eval "$ac_try") 2>&5
18985  ac_status=$?
18986  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18987  (exit $ac_status); }; }; then
18988  ac_cv_lib_gcc___udivdi3=yes
18989else
18990  echo "$as_me: failed program was:" >&5
18991sed 's/^/| /' conftest.$ac_ext >&5
18992
18993	ac_cv_lib_gcc___udivdi3=no
18994fi
18995
18996rm -f core conftest.err conftest.$ac_objext \
18997      conftest$ac_exeext conftest.$ac_ext
18998LIBS=$ac_check_lib_save_LIBS
18999fi
19000{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___udivdi3" >&5
19001echo "${ECHO_T}$ac_cv_lib_gcc___udivdi3" >&6; }
19002if test $ac_cv_lib_gcc___udivdi3 = yes; then
19003
19004cat >>confdefs.h <<\_ACEOF
19005#define HAVE___UDIVDI3 1
19006_ACEOF
19007
19008fi
19009
19010  { echo "$as_me:$LINENO: checking for __umoddi3 in -lgcc" >&5
19011echo $ECHO_N "checking for __umoddi3 in -lgcc... $ECHO_C" >&6; }
19012if test "${ac_cv_lib_gcc___umoddi3+set}" = set; then
19013  echo $ECHO_N "(cached) $ECHO_C" >&6
19014else
19015  ac_check_lib_save_LIBS=$LIBS
19016LIBS="-lgcc  $LIBS"
19017cat >conftest.$ac_ext <<_ACEOF
19018/* confdefs.h.  */
19019_ACEOF
19020cat confdefs.h >>conftest.$ac_ext
19021cat >>conftest.$ac_ext <<_ACEOF
19022/* end confdefs.h.  */
19023
19024/* Override any GCC internal prototype to avoid an error.
19025   Use char because int might match the return type of a GCC
19026   builtin and then its argument prototype would still apply.  */
19027#ifdef __cplusplus
19028extern "C"
19029#endif
19030char __umoddi3 ();
19031int
19032main ()
19033{
19034return __umoddi3 ();
19035  ;
19036  return 0;
19037}
19038_ACEOF
19039rm -f conftest.$ac_objext conftest$ac_exeext
19040if { (ac_try="$ac_link"
19041case "(($ac_try" in
19042  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19043  *) ac_try_echo=$ac_try;;
19044esac
19045eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19046  (eval "$ac_link") 2>conftest.er1
19047  ac_status=$?
19048  grep -v '^ *+' conftest.er1 >conftest.err
19049  rm -f conftest.er1
19050  cat conftest.err >&5
19051  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19052  (exit $ac_status); } &&
19053	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19054  { (case "(($ac_try" in
19055  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19056  *) ac_try_echo=$ac_try;;
19057esac
19058eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19059  (eval "$ac_try") 2>&5
19060  ac_status=$?
19061  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19062  (exit $ac_status); }; } &&
19063	 { ac_try='test -s conftest$ac_exeext'
19064  { (case "(($ac_try" in
19065  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19066  *) ac_try_echo=$ac_try;;
19067esac
19068eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19069  (eval "$ac_try") 2>&5
19070  ac_status=$?
19071  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19072  (exit $ac_status); }; }; then
19073  ac_cv_lib_gcc___umoddi3=yes
19074else
19075  echo "$as_me: failed program was:" >&5
19076sed 's/^/| /' conftest.$ac_ext >&5
19077
19078	ac_cv_lib_gcc___umoddi3=no
19079fi
19080
19081rm -f core conftest.err conftest.$ac_objext \
19082      conftest$ac_exeext conftest.$ac_ext
19083LIBS=$ac_check_lib_save_LIBS
19084fi
19085{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___umoddi3" >&5
19086echo "${ECHO_T}$ac_cv_lib_gcc___umoddi3" >&6; }
19087if test $ac_cv_lib_gcc___umoddi3 = yes; then
19088
19089cat >>confdefs.h <<\_ACEOF
19090#define HAVE___UMODDI3 1
19091_ACEOF
19092
19093fi
19094
19095
19096  { echo "$as_me:$LINENO: checking for __main in -lgcc" >&5
19097echo $ECHO_N "checking for __main in -lgcc... $ECHO_C" >&6; }
19098if test "${ac_cv_lib_gcc___main+set}" = set; then
19099  echo $ECHO_N "(cached) $ECHO_C" >&6
19100else
19101  ac_check_lib_save_LIBS=$LIBS
19102LIBS="-lgcc  $LIBS"
19103cat >conftest.$ac_ext <<_ACEOF
19104/* confdefs.h.  */
19105_ACEOF
19106cat confdefs.h >>conftest.$ac_ext
19107cat >>conftest.$ac_ext <<_ACEOF
19108/* end confdefs.h.  */
19109
19110/* Override any GCC internal prototype to avoid an error.
19111   Use char because int might match the return type of a GCC
19112   builtin and then its argument prototype would still apply.  */
19113#ifdef __cplusplus
19114extern "C"
19115#endif
19116char __main ();
19117int
19118main ()
19119{
19120return __main ();
19121  ;
19122  return 0;
19123}
19124_ACEOF
19125rm -f conftest.$ac_objext conftest$ac_exeext
19126if { (ac_try="$ac_link"
19127case "(($ac_try" in
19128  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19129  *) ac_try_echo=$ac_try;;
19130esac
19131eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19132  (eval "$ac_link") 2>conftest.er1
19133  ac_status=$?
19134  grep -v '^ *+' conftest.er1 >conftest.err
19135  rm -f conftest.er1
19136  cat conftest.err >&5
19137  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19138  (exit $ac_status); } &&
19139	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19140  { (case "(($ac_try" in
19141  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19142  *) ac_try_echo=$ac_try;;
19143esac
19144eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19145  (eval "$ac_try") 2>&5
19146  ac_status=$?
19147  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19148  (exit $ac_status); }; } &&
19149	 { ac_try='test -s conftest$ac_exeext'
19150  { (case "(($ac_try" in
19151  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19152  *) ac_try_echo=$ac_try;;
19153esac
19154eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19155  (eval "$ac_try") 2>&5
19156  ac_status=$?
19157  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19158  (exit $ac_status); }; }; then
19159  ac_cv_lib_gcc___main=yes
19160else
19161  echo "$as_me: failed program was:" >&5
19162sed 's/^/| /' conftest.$ac_ext >&5
19163
19164	ac_cv_lib_gcc___main=no
19165fi
19166
19167rm -f core conftest.err conftest.$ac_objext \
19168      conftest$ac_exeext conftest.$ac_ext
19169LIBS=$ac_check_lib_save_LIBS
19170fi
19171{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___main" >&5
19172echo "${ECHO_T}$ac_cv_lib_gcc___main" >&6; }
19173if test $ac_cv_lib_gcc___main = yes; then
19174
19175cat >>confdefs.h <<\_ACEOF
19176#define HAVE___MAIN 1
19177_ACEOF
19178
19179fi
19180
19181  { echo "$as_me:$LINENO: checking for __cmpdi2 in -lgcc" >&5
19182echo $ECHO_N "checking for __cmpdi2 in -lgcc... $ECHO_C" >&6; }
19183if test "${ac_cv_lib_gcc___cmpdi2+set}" = set; then
19184  echo $ECHO_N "(cached) $ECHO_C" >&6
19185else
19186  ac_check_lib_save_LIBS=$LIBS
19187LIBS="-lgcc  $LIBS"
19188cat >conftest.$ac_ext <<_ACEOF
19189/* confdefs.h.  */
19190_ACEOF
19191cat confdefs.h >>conftest.$ac_ext
19192cat >>conftest.$ac_ext <<_ACEOF
19193/* end confdefs.h.  */
19194
19195/* Override any GCC internal prototype to avoid an error.
19196   Use char because int might match the return type of a GCC
19197   builtin and then its argument prototype would still apply.  */
19198#ifdef __cplusplus
19199extern "C"
19200#endif
19201char __cmpdi2 ();
19202int
19203main ()
19204{
19205return __cmpdi2 ();
19206  ;
19207  return 0;
19208}
19209_ACEOF
19210rm -f conftest.$ac_objext conftest$ac_exeext
19211if { (ac_try="$ac_link"
19212case "(($ac_try" in
19213  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19214  *) ac_try_echo=$ac_try;;
19215esac
19216eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19217  (eval "$ac_link") 2>conftest.er1
19218  ac_status=$?
19219  grep -v '^ *+' conftest.er1 >conftest.err
19220  rm -f conftest.er1
19221  cat conftest.err >&5
19222  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19223  (exit $ac_status); } &&
19224	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19225  { (case "(($ac_try" in
19226  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19227  *) ac_try_echo=$ac_try;;
19228esac
19229eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19230  (eval "$ac_try") 2>&5
19231  ac_status=$?
19232  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19233  (exit $ac_status); }; } &&
19234	 { ac_try='test -s conftest$ac_exeext'
19235  { (case "(($ac_try" in
19236  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19237  *) ac_try_echo=$ac_try;;
19238esac
19239eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19240  (eval "$ac_try") 2>&5
19241  ac_status=$?
19242  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19243  (exit $ac_status); }; }; then
19244  ac_cv_lib_gcc___cmpdi2=yes
19245else
19246  echo "$as_me: failed program was:" >&5
19247sed 's/^/| /' conftest.$ac_ext >&5
19248
19249	ac_cv_lib_gcc___cmpdi2=no
19250fi
19251
19252rm -f core conftest.err conftest.$ac_objext \
19253      conftest$ac_exeext conftest.$ac_ext
19254LIBS=$ac_check_lib_save_LIBS
19255fi
19256{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___cmpdi2" >&5
19257echo "${ECHO_T}$ac_cv_lib_gcc___cmpdi2" >&6; }
19258if test $ac_cv_lib_gcc___cmpdi2 = yes; then
19259
19260cat >>confdefs.h <<\_ACEOF
19261#define HAVE___CMPDI2 1
19262_ACEOF
19263
19264fi
19265
19266fi
19267
19268if test "$llvm_cv_os_type" = "MingW" ; then
19269  { echo "$as_me:$LINENO: checking whether EnumerateLoadedModules() accepts new decl" >&5
19270echo $ECHO_N "checking whether EnumerateLoadedModules() accepts new decl... $ECHO_C" >&6; }
19271  cat >conftest.$ac_ext <<_ACEOF
19272#include <windows.h>
19273#include <imagehlp.h>
19274extern void foo(PENUMLOADED_MODULES_CALLBACK);
19275extern void foo(BOOL(CALLBACK*)(PCSTR,ULONG_PTR,ULONG,PVOID));
19276_ACEOF
19277rm -f conftest.$ac_objext
19278if { (ac_try="$ac_compile"
19279case "(($ac_try" in
19280  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19281  *) ac_try_echo=$ac_try;;
19282esac
19283eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19284  (eval "$ac_compile") 2>conftest.er1
19285  ac_status=$?
19286  grep -v '^ *+' conftest.er1 >conftest.err
19287  rm -f conftest.er1
19288  cat conftest.err >&5
19289  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19290  (exit $ac_status); } &&
19291	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19292  { (case "(($ac_try" in
19293  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19294  *) ac_try_echo=$ac_try;;
19295esac
19296eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19297  (eval "$ac_try") 2>&5
19298  ac_status=$?
19299  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19300  (exit $ac_status); }; } &&
19301	 { ac_try='test -s conftest.$ac_objext'
19302  { (case "(($ac_try" in
19303  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19304  *) ac_try_echo=$ac_try;;
19305esac
19306eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19307  (eval "$ac_try") 2>&5
19308  ac_status=$?
19309  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19310  (exit $ac_status); }; }; then
19311
19312  { echo "$as_me:$LINENO: result: yes" >&5
19313echo "${ECHO_T}yes" >&6; }
19314  llvm_cv_win32_elmcb_pcstr="PCSTR"
19315
19316else
19317  echo "$as_me: failed program was:" >&5
19318sed 's/^/| /' conftest.$ac_ext >&5
19319
19320
19321  { echo "$as_me:$LINENO: result: no" >&5
19322echo "${ECHO_T}no" >&6; }
19323  llvm_cv_win32_elmcb_pcstr="PSTR"
19324
19325fi
19326
19327rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19328
19329cat >>confdefs.h <<_ACEOF
19330#define WIN32_ELMCB_PCSTR $llvm_cv_win32_elmcb_pcstr
19331_ACEOF
19332
19333fi
19334
19335
19336{ echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
19337echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
19338if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
19339  echo $ECHO_N "(cached) $ECHO_C" >&6
19340else
19341  ac_ext=cpp
19342ac_cpp='$CXXCPP $CPPFLAGS'
19343ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19344ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19345ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19346
19347   cat >conftest.$ac_ext <<_ACEOF
19348/* confdefs.h.  */
19349_ACEOF
19350cat confdefs.h >>conftest.$ac_ext
19351cat >>conftest.$ac_ext <<_ACEOF
19352/* end confdefs.h.  */
19353#include <math.h>
19354int
19355main ()
19356{
19357float f; isnan(f);
19358  ;
19359  return 0;
19360}
19361_ACEOF
19362rm -f conftest.$ac_objext
19363if { (ac_try="$ac_compile"
19364case "(($ac_try" in
19365  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19366  *) ac_try_echo=$ac_try;;
19367esac
19368eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19369  (eval "$ac_compile") 2>conftest.er1
19370  ac_status=$?
19371  grep -v '^ *+' conftest.er1 >conftest.err
19372  rm -f conftest.er1
19373  cat conftest.err >&5
19374  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19375  (exit $ac_status); } &&
19376	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19377  { (case "(($ac_try" in
19378  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19379  *) ac_try_echo=$ac_try;;
19380esac
19381eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19382  (eval "$ac_try") 2>&5
19383  ac_status=$?
19384  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19385  (exit $ac_status); }; } &&
19386	 { ac_try='test -s conftest.$ac_objext'
19387  { (case "(($ac_try" in
19388  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19389  *) ac_try_echo=$ac_try;;
19390esac
19391eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19392  (eval "$ac_try") 2>&5
19393  ac_status=$?
19394  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19395  (exit $ac_status); }; }; then
19396  ac_cv_func_isnan_in_math_h=yes
19397else
19398  echo "$as_me: failed program was:" >&5
19399sed 's/^/| /' conftest.$ac_ext >&5
19400
19401	ac_cv_func_isnan_in_math_h=no
19402fi
19403
19404rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19405  ac_ext=c
19406ac_cpp='$CPP $CPPFLAGS'
19407ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19408ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19409ac_compiler_gnu=$ac_cv_c_compiler_gnu
19410
19411fi
19412{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
19413echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
19414
19415
19416if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
19417
19418cat >>confdefs.h <<\_ACEOF
19419#define HAVE_ISNAN_IN_MATH_H 1
19420_ACEOF
19421
19422fi
19423
19424{ echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
19425echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
19426if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
19427  echo $ECHO_N "(cached) $ECHO_C" >&6
19428else
19429  ac_ext=cpp
19430ac_cpp='$CXXCPP $CPPFLAGS'
19431ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19432ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19433ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19434
19435   cat >conftest.$ac_ext <<_ACEOF
19436/* confdefs.h.  */
19437_ACEOF
19438cat confdefs.h >>conftest.$ac_ext
19439cat >>conftest.$ac_ext <<_ACEOF
19440/* end confdefs.h.  */
19441#include <cmath>
19442int
19443main ()
19444{
19445float f; isnan(f);
19446  ;
19447  return 0;
19448}
19449_ACEOF
19450rm -f conftest.$ac_objext
19451if { (ac_try="$ac_compile"
19452case "(($ac_try" in
19453  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19454  *) ac_try_echo=$ac_try;;
19455esac
19456eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19457  (eval "$ac_compile") 2>conftest.er1
19458  ac_status=$?
19459  grep -v '^ *+' conftest.er1 >conftest.err
19460  rm -f conftest.er1
19461  cat conftest.err >&5
19462  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19463  (exit $ac_status); } &&
19464	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19465  { (case "(($ac_try" in
19466  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19467  *) ac_try_echo=$ac_try;;
19468esac
19469eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19470  (eval "$ac_try") 2>&5
19471  ac_status=$?
19472  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19473  (exit $ac_status); }; } &&
19474	 { ac_try='test -s conftest.$ac_objext'
19475  { (case "(($ac_try" in
19476  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19477  *) ac_try_echo=$ac_try;;
19478esac
19479eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19480  (eval "$ac_try") 2>&5
19481  ac_status=$?
19482  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19483  (exit $ac_status); }; }; then
19484  ac_cv_func_isnan_in_cmath=yes
19485else
19486  echo "$as_me: failed program was:" >&5
19487sed 's/^/| /' conftest.$ac_ext >&5
19488
19489	ac_cv_func_isnan_in_cmath=no
19490fi
19491
19492rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19493  ac_ext=c
19494ac_cpp='$CPP $CPPFLAGS'
19495ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19496ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19497ac_compiler_gnu=$ac_cv_c_compiler_gnu
19498
19499fi
19500{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
19501echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
19502
19503if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
19504
19505cat >>confdefs.h <<\_ACEOF
19506#define HAVE_ISNAN_IN_CMATH 1
19507_ACEOF
19508
19509fi
19510
19511{ echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
19512echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
19513if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
19514  echo $ECHO_N "(cached) $ECHO_C" >&6
19515else
19516  ac_ext=cpp
19517ac_cpp='$CXXCPP $CPPFLAGS'
19518ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19519ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19520ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19521
19522   cat >conftest.$ac_ext <<_ACEOF
19523/* confdefs.h.  */
19524_ACEOF
19525cat confdefs.h >>conftest.$ac_ext
19526cat >>conftest.$ac_ext <<_ACEOF
19527/* end confdefs.h.  */
19528#include <cmath>
19529int
19530main ()
19531{
19532float f; std::isnan(f);
19533  ;
19534  return 0;
19535}
19536_ACEOF
19537rm -f conftest.$ac_objext
19538if { (ac_try="$ac_compile"
19539case "(($ac_try" in
19540  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19541  *) ac_try_echo=$ac_try;;
19542esac
19543eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19544  (eval "$ac_compile") 2>conftest.er1
19545  ac_status=$?
19546  grep -v '^ *+' conftest.er1 >conftest.err
19547  rm -f conftest.er1
19548  cat conftest.err >&5
19549  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19550  (exit $ac_status); } &&
19551	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19552  { (case "(($ac_try" in
19553  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19554  *) ac_try_echo=$ac_try;;
19555esac
19556eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19557  (eval "$ac_try") 2>&5
19558  ac_status=$?
19559  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19560  (exit $ac_status); }; } &&
19561	 { ac_try='test -s conftest.$ac_objext'
19562  { (case "(($ac_try" in
19563  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19564  *) ac_try_echo=$ac_try;;
19565esac
19566eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19567  (eval "$ac_try") 2>&5
19568  ac_status=$?
19569  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19570  (exit $ac_status); }; }; then
19571  ac_cv_func_std_isnan_in_cmath=yes
19572else
19573  echo "$as_me: failed program was:" >&5
19574sed 's/^/| /' conftest.$ac_ext >&5
19575
19576	ac_cv_func_std_isnan_in_cmath=no
19577fi
19578
19579rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19580  ac_ext=c
19581ac_cpp='$CPP $CPPFLAGS'
19582ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19583ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19584ac_compiler_gnu=$ac_cv_c_compiler_gnu
19585
19586fi
19587{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
19588echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
19589
19590if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
19591
19592cat >>confdefs.h <<\_ACEOF
19593#define HAVE_STD_ISNAN_IN_CMATH 1
19594_ACEOF
19595
19596fi
19597
19598
19599{ echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
19600echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
19601if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
19602  echo $ECHO_N "(cached) $ECHO_C" >&6
19603else
19604  ac_ext=cpp
19605ac_cpp='$CXXCPP $CPPFLAGS'
19606ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19607ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19608ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19609
19610   cat >conftest.$ac_ext <<_ACEOF
19611/* confdefs.h.  */
19612_ACEOF
19613cat confdefs.h >>conftest.$ac_ext
19614cat >>conftest.$ac_ext <<_ACEOF
19615/* end confdefs.h.  */
19616#include <math.h>
19617int
19618main ()
19619{
19620float f; isinf(f);
19621  ;
19622  return 0;
19623}
19624_ACEOF
19625rm -f conftest.$ac_objext
19626if { (ac_try="$ac_compile"
19627case "(($ac_try" in
19628  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19629  *) ac_try_echo=$ac_try;;
19630esac
19631eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19632  (eval "$ac_compile") 2>conftest.er1
19633  ac_status=$?
19634  grep -v '^ *+' conftest.er1 >conftest.err
19635  rm -f conftest.er1
19636  cat conftest.err >&5
19637  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19638  (exit $ac_status); } &&
19639	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19640  { (case "(($ac_try" in
19641  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19642  *) ac_try_echo=$ac_try;;
19643esac
19644eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19645  (eval "$ac_try") 2>&5
19646  ac_status=$?
19647  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19648  (exit $ac_status); }; } &&
19649	 { ac_try='test -s conftest.$ac_objext'
19650  { (case "(($ac_try" in
19651  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19652  *) ac_try_echo=$ac_try;;
19653esac
19654eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19655  (eval "$ac_try") 2>&5
19656  ac_status=$?
19657  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19658  (exit $ac_status); }; }; then
19659  ac_cv_func_isinf_in_math_h=yes
19660else
19661  echo "$as_me: failed program was:" >&5
19662sed 's/^/| /' conftest.$ac_ext >&5
19663
19664	ac_cv_func_isinf_in_math_h=no
19665fi
19666
19667rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19668  ac_ext=c
19669ac_cpp='$CPP $CPPFLAGS'
19670ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19671ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19672ac_compiler_gnu=$ac_cv_c_compiler_gnu
19673
19674fi
19675{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
19676echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
19677
19678if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
19679
19680cat >>confdefs.h <<\_ACEOF
19681#define HAVE_ISINF_IN_MATH_H 1
19682_ACEOF
19683
19684fi
19685
19686{ echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
19687echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
19688if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
19689  echo $ECHO_N "(cached) $ECHO_C" >&6
19690else
19691  ac_ext=cpp
19692ac_cpp='$CXXCPP $CPPFLAGS'
19693ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19694ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19695ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19696
19697   cat >conftest.$ac_ext <<_ACEOF
19698/* confdefs.h.  */
19699_ACEOF
19700cat confdefs.h >>conftest.$ac_ext
19701cat >>conftest.$ac_ext <<_ACEOF
19702/* end confdefs.h.  */
19703#include <cmath>
19704int
19705main ()
19706{
19707float f; isinf(f);
19708  ;
19709  return 0;
19710}
19711_ACEOF
19712rm -f conftest.$ac_objext
19713if { (ac_try="$ac_compile"
19714case "(($ac_try" in
19715  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19716  *) ac_try_echo=$ac_try;;
19717esac
19718eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19719  (eval "$ac_compile") 2>conftest.er1
19720  ac_status=$?
19721  grep -v '^ *+' conftest.er1 >conftest.err
19722  rm -f conftest.er1
19723  cat conftest.err >&5
19724  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19725  (exit $ac_status); } &&
19726	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19727  { (case "(($ac_try" in
19728  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19729  *) ac_try_echo=$ac_try;;
19730esac
19731eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19732  (eval "$ac_try") 2>&5
19733  ac_status=$?
19734  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19735  (exit $ac_status); }; } &&
19736	 { ac_try='test -s conftest.$ac_objext'
19737  { (case "(($ac_try" in
19738  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19739  *) ac_try_echo=$ac_try;;
19740esac
19741eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19742  (eval "$ac_try") 2>&5
19743  ac_status=$?
19744  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19745  (exit $ac_status); }; }; then
19746  ac_cv_func_isinf_in_cmath=yes
19747else
19748  echo "$as_me: failed program was:" >&5
19749sed 's/^/| /' conftest.$ac_ext >&5
19750
19751	ac_cv_func_isinf_in_cmath=no
19752fi
19753
19754rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19755  ac_ext=c
19756ac_cpp='$CPP $CPPFLAGS'
19757ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19758ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19759ac_compiler_gnu=$ac_cv_c_compiler_gnu
19760
19761fi
19762{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
19763echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
19764
19765if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
19766
19767cat >>confdefs.h <<\_ACEOF
19768#define HAVE_ISINF_IN_CMATH 1
19769_ACEOF
19770
19771fi
19772
19773{ echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
19774echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
19775if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
19776  echo $ECHO_N "(cached) $ECHO_C" >&6
19777else
19778  ac_ext=cpp
19779ac_cpp='$CXXCPP $CPPFLAGS'
19780ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19781ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19782ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19783
19784   cat >conftest.$ac_ext <<_ACEOF
19785/* confdefs.h.  */
19786_ACEOF
19787cat confdefs.h >>conftest.$ac_ext
19788cat >>conftest.$ac_ext <<_ACEOF
19789/* end confdefs.h.  */
19790#include <cmath>
19791int
19792main ()
19793{
19794float f; std::isinf(f);
19795  ;
19796  return 0;
19797}
19798_ACEOF
19799rm -f conftest.$ac_objext
19800if { (ac_try="$ac_compile"
19801case "(($ac_try" in
19802  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19803  *) ac_try_echo=$ac_try;;
19804esac
19805eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19806  (eval "$ac_compile") 2>conftest.er1
19807  ac_status=$?
19808  grep -v '^ *+' conftest.er1 >conftest.err
19809  rm -f conftest.er1
19810  cat conftest.err >&5
19811  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19812  (exit $ac_status); } &&
19813	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19814  { (case "(($ac_try" in
19815  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19816  *) ac_try_echo=$ac_try;;
19817esac
19818eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19819  (eval "$ac_try") 2>&5
19820  ac_status=$?
19821  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19822  (exit $ac_status); }; } &&
19823	 { ac_try='test -s conftest.$ac_objext'
19824  { (case "(($ac_try" in
19825  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19826  *) ac_try_echo=$ac_try;;
19827esac
19828eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19829  (eval "$ac_try") 2>&5
19830  ac_status=$?
19831  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19832  (exit $ac_status); }; }; then
19833  ac_cv_func_std_isinf_in_cmath=yes
19834else
19835  echo "$as_me: failed program was:" >&5
19836sed 's/^/| /' conftest.$ac_ext >&5
19837
19838	ac_cv_func_std_isinf_in_cmath=no
19839fi
19840
19841rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19842  ac_ext=c
19843ac_cpp='$CPP $CPPFLAGS'
19844ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19845ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19846ac_compiler_gnu=$ac_cv_c_compiler_gnu
19847
19848fi
19849{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
19850echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
19851
19852if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
19853
19854cat >>confdefs.h <<\_ACEOF
19855#define HAVE_STD_ISINF_IN_CMATH 1
19856_ACEOF
19857
19858fi
19859
19860{ echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
19861echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
19862if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
19863  echo $ECHO_N "(cached) $ECHO_C" >&6
19864else
19865  ac_ext=cpp
19866ac_cpp='$CXXCPP $CPPFLAGS'
19867ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19868ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19869ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19870
19871   cat >conftest.$ac_ext <<_ACEOF
19872/* confdefs.h.  */
19873_ACEOF
19874cat confdefs.h >>conftest.$ac_ext
19875cat >>conftest.$ac_ext <<_ACEOF
19876/* end confdefs.h.  */
19877#include <ieeefp.h>
19878int
19879main ()
19880{
19881float f; finite(f);
19882  ;
19883  return 0;
19884}
19885_ACEOF
19886rm -f conftest.$ac_objext
19887if { (ac_try="$ac_compile"
19888case "(($ac_try" in
19889  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19890  *) ac_try_echo=$ac_try;;
19891esac
19892eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19893  (eval "$ac_compile") 2>conftest.er1
19894  ac_status=$?
19895  grep -v '^ *+' conftest.er1 >conftest.err
19896  rm -f conftest.er1
19897  cat conftest.err >&5
19898  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19899  (exit $ac_status); } &&
19900	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19901  { (case "(($ac_try" in
19902  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19903  *) ac_try_echo=$ac_try;;
19904esac
19905eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19906  (eval "$ac_try") 2>&5
19907  ac_status=$?
19908  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19909  (exit $ac_status); }; } &&
19910	 { ac_try='test -s conftest.$ac_objext'
19911  { (case "(($ac_try" in
19912  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19913  *) ac_try_echo=$ac_try;;
19914esac
19915eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19916  (eval "$ac_try") 2>&5
19917  ac_status=$?
19918  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19919  (exit $ac_status); }; }; then
19920  ac_cv_func_finite_in_ieeefp_h=yes
19921else
19922  echo "$as_me: failed program was:" >&5
19923sed 's/^/| /' conftest.$ac_ext >&5
19924
19925	ac_cv_func_finite_in_ieeefp_h=no
19926fi
19927
19928rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19929  ac_ext=c
19930ac_cpp='$CPP $CPPFLAGS'
19931ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19932ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19933ac_compiler_gnu=$ac_cv_c_compiler_gnu
19934
19935fi
19936{ echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
19937echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
19938
19939if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
19940
19941cat >>confdefs.h <<\_ACEOF
19942#define HAVE_FINITE_IN_IEEEFP_H 1
19943_ACEOF
19944
19945fi
19946
19947
19948
19949if test "$llvm_cv_platform_type" = "Unix" ; then
19950
19951
19952for ac_header in stdlib.h unistd.h
19953do
19954as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19955if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19956  { echo "$as_me:$LINENO: checking for $ac_header" >&5
19957echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19958if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19959  echo $ECHO_N "(cached) $ECHO_C" >&6
19960fi
19961ac_res=`eval echo '${'$as_ac_Header'}'`
19962	       { echo "$as_me:$LINENO: result: $ac_res" >&5
19963echo "${ECHO_T}$ac_res" >&6; }
19964else
19965  # Is the header compilable?
19966{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
19967echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19968cat >conftest.$ac_ext <<_ACEOF
19969/* confdefs.h.  */
19970_ACEOF
19971cat confdefs.h >>conftest.$ac_ext
19972cat >>conftest.$ac_ext <<_ACEOF
19973/* end confdefs.h.  */
19974$ac_includes_default
19975#include <$ac_header>
19976_ACEOF
19977rm -f conftest.$ac_objext
19978if { (ac_try="$ac_compile"
19979case "(($ac_try" in
19980  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19981  *) ac_try_echo=$ac_try;;
19982esac
19983eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19984  (eval "$ac_compile") 2>conftest.er1
19985  ac_status=$?
19986  grep -v '^ *+' conftest.er1 >conftest.err
19987  rm -f conftest.er1
19988  cat conftest.err >&5
19989  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19990  (exit $ac_status); } &&
19991	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19992  { (case "(($ac_try" in
19993  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19994  *) ac_try_echo=$ac_try;;
19995esac
19996eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19997  (eval "$ac_try") 2>&5
19998  ac_status=$?
19999  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20000  (exit $ac_status); }; } &&
20001	 { ac_try='test -s conftest.$ac_objext'
20002  { (case "(($ac_try" in
20003  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20004  *) ac_try_echo=$ac_try;;
20005esac
20006eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20007  (eval "$ac_try") 2>&5
20008  ac_status=$?
20009  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20010  (exit $ac_status); }; }; then
20011  ac_header_compiler=yes
20012else
20013  echo "$as_me: failed program was:" >&5
20014sed 's/^/| /' conftest.$ac_ext >&5
20015
20016	ac_header_compiler=no
20017fi
20018
20019rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20020{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20021echo "${ECHO_T}$ac_header_compiler" >&6; }
20022
20023# Is the header present?
20024{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
20025echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20026cat >conftest.$ac_ext <<_ACEOF
20027/* confdefs.h.  */
20028_ACEOF
20029cat confdefs.h >>conftest.$ac_ext
20030cat >>conftest.$ac_ext <<_ACEOF
20031/* end confdefs.h.  */
20032#include <$ac_header>
20033_ACEOF
20034if { (ac_try="$ac_cpp conftest.$ac_ext"
20035case "(($ac_try" in
20036  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20037  *) ac_try_echo=$ac_try;;
20038esac
20039eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20040  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20041  ac_status=$?
20042  grep -v '^ *+' conftest.er1 >conftest.err
20043  rm -f conftest.er1
20044  cat conftest.err >&5
20045  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20046  (exit $ac_status); } >/dev/null; then
20047  if test -s conftest.err; then
20048    ac_cpp_err=$ac_c_preproc_warn_flag
20049    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20050  else
20051    ac_cpp_err=
20052  fi
20053else
20054  ac_cpp_err=yes
20055fi
20056if test -z "$ac_cpp_err"; then
20057  ac_header_preproc=yes
20058else
20059  echo "$as_me: failed program was:" >&5
20060sed 's/^/| /' conftest.$ac_ext >&5
20061
20062  ac_header_preproc=no
20063fi
20064
20065rm -f conftest.err conftest.$ac_ext
20066{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20067echo "${ECHO_T}$ac_header_preproc" >&6; }
20068
20069# So?  What about this header?
20070case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20071  yes:no: )
20072    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20073echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20074    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20075echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20076    ac_header_preproc=yes
20077    ;;
20078  no:yes:* )
20079    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20080echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20081    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20082echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20083    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20084echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20085    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20086echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20087    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20088echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20089    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20090echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20091    ( cat <<\_ASBOX
20092## ------------------------------------ ##
20093## Report this to http://llvm.org/bugs/ ##
20094## ------------------------------------ ##
20095_ASBOX
20096     ) | sed "s/^/$as_me: WARNING:     /" >&2
20097    ;;
20098esac
20099{ echo "$as_me:$LINENO: checking for $ac_header" >&5
20100echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20101if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20102  echo $ECHO_N "(cached) $ECHO_C" >&6
20103else
20104  eval "$as_ac_Header=\$ac_header_preproc"
20105fi
20106ac_res=`eval echo '${'$as_ac_Header'}'`
20107	       { echo "$as_me:$LINENO: result: $ac_res" >&5
20108echo "${ECHO_T}$ac_res" >&6; }
20109
20110fi
20111if test `eval echo '${'$as_ac_Header'}'` = yes; then
20112  cat >>confdefs.h <<_ACEOF
20113#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20114_ACEOF
20115
20116fi
20117
20118done
20119
20120
20121for ac_func in getpagesize
20122do
20123as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20124{ echo "$as_me:$LINENO: checking for $ac_func" >&5
20125echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20126if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20127  echo $ECHO_N "(cached) $ECHO_C" >&6
20128else
20129  cat >conftest.$ac_ext <<_ACEOF
20130/* confdefs.h.  */
20131_ACEOF
20132cat confdefs.h >>conftest.$ac_ext
20133cat >>conftest.$ac_ext <<_ACEOF
20134/* end confdefs.h.  */
20135/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20136   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20137#define $ac_func innocuous_$ac_func
20138
20139/* System header to define __stub macros and hopefully few prototypes,
20140    which can conflict with char $ac_func (); below.
20141    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20142    <limits.h> exists even on freestanding compilers.  */
20143
20144#ifdef __STDC__
20145# include <limits.h>
20146#else
20147# include <assert.h>
20148#endif
20149
20150#undef $ac_func
20151
20152/* Override any GCC internal prototype to avoid an error.
20153   Use char because int might match the return type of a GCC
20154   builtin and then its argument prototype would still apply.  */
20155#ifdef __cplusplus
20156extern "C"
20157#endif
20158char $ac_func ();
20159/* The GNU C library defines this for functions which it implements
20160    to always fail with ENOSYS.  Some functions are actually named
20161    something starting with __ and the normal name is an alias.  */
20162#if defined __stub_$ac_func || defined __stub___$ac_func
20163choke me
20164#endif
20165
20166int
20167main ()
20168{
20169return $ac_func ();
20170  ;
20171  return 0;
20172}
20173_ACEOF
20174rm -f conftest.$ac_objext conftest$ac_exeext
20175if { (ac_try="$ac_link"
20176case "(($ac_try" in
20177  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20178  *) ac_try_echo=$ac_try;;
20179esac
20180eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20181  (eval "$ac_link") 2>conftest.er1
20182  ac_status=$?
20183  grep -v '^ *+' conftest.er1 >conftest.err
20184  rm -f conftest.er1
20185  cat conftest.err >&5
20186  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20187  (exit $ac_status); } &&
20188	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20189  { (case "(($ac_try" in
20190  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20191  *) ac_try_echo=$ac_try;;
20192esac
20193eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20194  (eval "$ac_try") 2>&5
20195  ac_status=$?
20196  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20197  (exit $ac_status); }; } &&
20198	 { ac_try='test -s conftest$ac_exeext'
20199  { (case "(($ac_try" in
20200  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20201  *) ac_try_echo=$ac_try;;
20202esac
20203eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20204  (eval "$ac_try") 2>&5
20205  ac_status=$?
20206  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20207  (exit $ac_status); }; }; then
20208  eval "$as_ac_var=yes"
20209else
20210  echo "$as_me: failed program was:" >&5
20211sed 's/^/| /' conftest.$ac_ext >&5
20212
20213	eval "$as_ac_var=no"
20214fi
20215
20216rm -f core conftest.err conftest.$ac_objext \
20217      conftest$ac_exeext conftest.$ac_ext
20218fi
20219ac_res=`eval echo '${'$as_ac_var'}'`
20220	       { echo "$as_me:$LINENO: result: $ac_res" >&5
20221echo "${ECHO_T}$ac_res" >&6; }
20222if test `eval echo '${'$as_ac_var'}'` = yes; then
20223  cat >>confdefs.h <<_ACEOF
20224#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20225_ACEOF
20226
20227fi
20228done
20229
20230{ echo "$as_me:$LINENO: checking for working mmap" >&5
20231echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
20232if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
20233  echo $ECHO_N "(cached) $ECHO_C" >&6
20234else
20235  if test "$cross_compiling" = yes; then
20236  ac_cv_func_mmap_fixed_mapped=no
20237else
20238  cat >conftest.$ac_ext <<_ACEOF
20239/* confdefs.h.  */
20240_ACEOF
20241cat confdefs.h >>conftest.$ac_ext
20242cat >>conftest.$ac_ext <<_ACEOF
20243/* end confdefs.h.  */
20244$ac_includes_default
20245/* malloc might have been renamed as rpl_malloc. */
20246#undef malloc
20247
20248/* Thanks to Mike Haertel and Jim Avera for this test.
20249   Here is a matrix of mmap possibilities:
20250	mmap private not fixed
20251	mmap private fixed at somewhere currently unmapped
20252	mmap private fixed at somewhere already mapped
20253	mmap shared not fixed
20254	mmap shared fixed at somewhere currently unmapped
20255	mmap shared fixed at somewhere already mapped
20256   For private mappings, we should verify that changes cannot be read()
20257   back from the file, nor mmap's back from the file at a different
20258   address.  (There have been systems where private was not correctly
20259   implemented like the infamous i386 svr4.0, and systems where the
20260   VM page cache was not coherent with the file system buffer cache
20261   like early versions of FreeBSD and possibly contemporary NetBSD.)
20262   For shared mappings, we should conversely verify that changes get
20263   propagated back to all the places they're supposed to be.
20264
20265   Grep wants private fixed already mapped.
20266   The main things grep needs to know about mmap are:
20267   * does it exist and is it safe to write into the mmap'd area
20268   * how to use it (BSD variants)  */
20269
20270#include <fcntl.h>
20271#include <sys/mman.h>
20272
20273#if !STDC_HEADERS && !HAVE_STDLIB_H
20274char *malloc ();
20275#endif
20276
20277/* This mess was copied from the GNU getpagesize.h.  */
20278#if !HAVE_GETPAGESIZE
20279/* Assume that all systems that can run configure have sys/param.h.  */
20280# if !HAVE_SYS_PARAM_H
20281#  define HAVE_SYS_PARAM_H 1
20282# endif
20283
20284# ifdef _SC_PAGESIZE
20285#  define getpagesize() sysconf(_SC_PAGESIZE)
20286# else /* no _SC_PAGESIZE */
20287#  if HAVE_SYS_PARAM_H
20288#   include <sys/param.h>
20289#   ifdef EXEC_PAGESIZE
20290#    define getpagesize() EXEC_PAGESIZE
20291#   else /* no EXEC_PAGESIZE */
20292#    ifdef NBPG
20293#     define getpagesize() NBPG * CLSIZE
20294#     ifndef CLSIZE
20295#      define CLSIZE 1
20296#     endif /* no CLSIZE */
20297#    else /* no NBPG */
20298#     ifdef NBPC
20299#      define getpagesize() NBPC
20300#     else /* no NBPC */
20301#      ifdef PAGESIZE
20302#       define getpagesize() PAGESIZE
20303#      endif /* PAGESIZE */
20304#     endif /* no NBPC */
20305#    endif /* no NBPG */
20306#   endif /* no EXEC_PAGESIZE */
20307#  else /* no HAVE_SYS_PARAM_H */
20308#   define getpagesize() 8192	/* punt totally */
20309#  endif /* no HAVE_SYS_PARAM_H */
20310# endif /* no _SC_PAGESIZE */
20311
20312#endif /* no HAVE_GETPAGESIZE */
20313
20314int
20315main ()
20316{
20317  char *data, *data2, *data3;
20318  int i, pagesize;
20319  int fd;
20320
20321  pagesize = getpagesize ();
20322
20323  /* First, make a file with some known garbage in it. */
20324  data = (char *) malloc (pagesize);
20325  if (!data)
20326    return 1;
20327  for (i = 0; i < pagesize; ++i)
20328    *(data + i) = rand ();
20329  umask (0);
20330  fd = creat ("conftest.mmap", 0600);
20331  if (fd < 0)
20332    return 1;
20333  if (write (fd, data, pagesize) != pagesize)
20334    return 1;
20335  close (fd);
20336
20337  /* Next, try to mmap the file at a fixed address which already has
20338     something else allocated at it.  If we can, also make sure that
20339     we see the same garbage.  */
20340  fd = open ("conftest.mmap", O_RDWR);
20341  if (fd < 0)
20342    return 1;
20343  data2 = (char *) malloc (2 * pagesize);
20344  if (!data2)
20345    return 1;
20346  data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
20347  if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
20348		     MAP_PRIVATE | MAP_FIXED, fd, 0L))
20349    return 1;
20350  for (i = 0; i < pagesize; ++i)
20351    if (*(data + i) != *(data2 + i))
20352      return 1;
20353
20354  /* Finally, make sure that changes to the mapped area do not
20355     percolate back to the file as seen by read().  (This is a bug on
20356     some variants of i386 svr4.0.)  */
20357  for (i = 0; i < pagesize; ++i)
20358    *(data2 + i) = *(data2 + i) + 1;
20359  data3 = (char *) malloc (pagesize);
20360  if (!data3)
20361    return 1;
20362  if (read (fd, data3, pagesize) != pagesize)
20363    return 1;
20364  for (i = 0; i < pagesize; ++i)
20365    if (*(data + i) != *(data3 + i))
20366      return 1;
20367  close (fd);
20368  return 0;
20369}
20370_ACEOF
20371rm -f conftest$ac_exeext
20372if { (ac_try="$ac_link"
20373case "(($ac_try" in
20374  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20375  *) ac_try_echo=$ac_try;;
20376esac
20377eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20378  (eval "$ac_link") 2>&5
20379  ac_status=$?
20380  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20381  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20382  { (case "(($ac_try" in
20383  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20384  *) ac_try_echo=$ac_try;;
20385esac
20386eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20387  (eval "$ac_try") 2>&5
20388  ac_status=$?
20389  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20390  (exit $ac_status); }; }; then
20391  ac_cv_func_mmap_fixed_mapped=yes
20392else
20393  echo "$as_me: program exited with status $ac_status" >&5
20394echo "$as_me: failed program was:" >&5
20395sed 's/^/| /' conftest.$ac_ext >&5
20396
20397( exit $ac_status )
20398ac_cv_func_mmap_fixed_mapped=no
20399fi
20400rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20401fi
20402
20403
20404fi
20405{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
20406echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
20407if test $ac_cv_func_mmap_fixed_mapped = yes; then
20408
20409cat >>confdefs.h <<\_ACEOF
20410#define HAVE_MMAP 1
20411_ACEOF
20412
20413fi
20414rm -f conftest.mmap
20415
20416  { echo "$as_me:$LINENO: checking for mmap of files" >&5
20417echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
20418if test "${ac_cv_func_mmap_file+set}" = set; then
20419  echo $ECHO_N "(cached) $ECHO_C" >&6
20420else
20421   ac_ext=c
20422ac_cpp='$CPP $CPPFLAGS'
20423ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20424ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20425ac_compiler_gnu=$ac_cv_c_compiler_gnu
20426
20427  if test "$cross_compiling" = yes; then
20428  ac_cv_func_mmap_file=no
20429else
20430  cat >conftest.$ac_ext <<_ACEOF
20431
20432    /* confdefs.h.  */
20433_ACEOF
20434cat confdefs.h >>conftest.$ac_ext
20435cat >>conftest.$ac_ext <<_ACEOF
20436/* end confdefs.h.  */
20437
20438#include <sys/types.h>
20439#include <sys/mman.h>
20440#include <fcntl.h>
20441
20442int
20443main ()
20444{
20445
20446  int fd;
20447  fd = creat ("foo",0777);
20448  fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
20449  unlink ("foo");
20450  return (fd != (int) MAP_FAILED);
20451  ;
20452  return 0;
20453}
20454_ACEOF
20455rm -f conftest$ac_exeext
20456if { (ac_try="$ac_link"
20457case "(($ac_try" in
20458  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20459  *) ac_try_echo=$ac_try;;
20460esac
20461eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20462  (eval "$ac_link") 2>&5
20463  ac_status=$?
20464  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20465  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20466  { (case "(($ac_try" in
20467  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20468  *) ac_try_echo=$ac_try;;
20469esac
20470eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20471  (eval "$ac_try") 2>&5
20472  ac_status=$?
20473  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20474  (exit $ac_status); }; }; then
20475  ac_cv_func_mmap_file=yes
20476else
20477  echo "$as_me: program exited with status $ac_status" >&5
20478echo "$as_me: failed program was:" >&5
20479sed 's/^/| /' conftest.$ac_ext >&5
20480
20481( exit $ac_status )
20482ac_cv_func_mmap_file=no
20483fi
20484rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20485fi
20486
20487
20488  ac_ext=c
20489ac_cpp='$CPP $CPPFLAGS'
20490ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20491ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20492ac_compiler_gnu=$ac_cv_c_compiler_gnu
20493
20494
20495fi
20496{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
20497echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
20498if test "$ac_cv_func_mmap_file" = yes; then
20499
20500cat >>confdefs.h <<\_ACEOF
20501#define HAVE_MMAP_FILE
20502_ACEOF
20503
20504   MMAP_FILE=yes
20505
20506fi
20507
20508  { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
20509echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
20510if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
20511  echo $ECHO_N "(cached) $ECHO_C" >&6
20512else
20513  if test "$llvm_cv_os_type" = "Interix" ; then
20514   ac_cv_need_dev_zero_for_mmap=yes
20515 else
20516   ac_cv_need_dev_zero_for_mmap=no
20517 fi
20518
20519fi
20520{ echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
20521echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
20522if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
20523
20524cat >>confdefs.h <<\_ACEOF
20525#define NEED_DEV_ZERO_FOR_MMAP 1
20526_ACEOF
20527
20528fi
20529
20530  if test "$ac_cv_func_mmap_fixed_mapped" = "no"
20531  then
20532    { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
20533echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
20534  fi
20535  if test "$ac_cv_func_mmap_file" = "no"
20536  then
20537    { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
20538echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
20539  fi
20540fi
20541
20542{ echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
20543echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
20544ac_ext=cpp
20545ac_cpp='$CXXCPP $CPPFLAGS'
20546ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20547ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20548ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20549
20550cat >conftest.$ac_ext <<_ACEOF
20551/* confdefs.h.  */
20552_ACEOF
20553cat confdefs.h >>conftest.$ac_ext
20554cat >>conftest.$ac_ext <<_ACEOF
20555/* end confdefs.h.  */
20556int main() {
20557        volatile unsigned long val = 1;
20558        __sync_synchronize();
20559        __sync_val_compare_and_swap(&val, 1, 0);
20560        __sync_add_and_fetch(&val, 1);
20561        __sync_sub_and_fetch(&val, 1);
20562        return 0;
20563      }
20564
20565_ACEOF
20566rm -f conftest.$ac_objext conftest$ac_exeext
20567if { (ac_try="$ac_link"
20568case "(($ac_try" in
20569  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20570  *) ac_try_echo=$ac_try;;
20571esac
20572eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20573  (eval "$ac_link") 2>conftest.er1
20574  ac_status=$?
20575  grep -v '^ *+' conftest.er1 >conftest.err
20576  rm -f conftest.er1
20577  cat conftest.err >&5
20578  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20579  (exit $ac_status); } &&
20580	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20581  { (case "(($ac_try" in
20582  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20583  *) ac_try_echo=$ac_try;;
20584esac
20585eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20586  (eval "$ac_try") 2>&5
20587  ac_status=$?
20588  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20589  (exit $ac_status); }; } &&
20590	 { ac_try='test -s conftest$ac_exeext'
20591  { (case "(($ac_try" in
20592  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20593  *) ac_try_echo=$ac_try;;
20594esac
20595eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20596  (eval "$ac_try") 2>&5
20597  ac_status=$?
20598  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20599  (exit $ac_status); }; }; then
20600  ac_ext=c
20601ac_cpp='$CPP $CPPFLAGS'
20602ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20603ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20604ac_compiler_gnu=$ac_cv_c_compiler_gnu
20605
20606  { echo "$as_me:$LINENO: result: yes" >&5
20607echo "${ECHO_T}yes" >&6; }
20608
20609cat >>confdefs.h <<\_ACEOF
20610#define LLVM_HAS_ATOMICS 1
20611_ACEOF
20612
20613else
20614  echo "$as_me: failed program was:" >&5
20615sed 's/^/| /' conftest.$ac_ext >&5
20616
20617	{ echo "$as_me:$LINENO: result: no" >&5
20618echo "${ECHO_T}no" >&6; }
20619
20620cat >>confdefs.h <<\_ACEOF
20621#define LLVM_HAS_ATOMICS 0
20622_ACEOF
20623
20624  { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
20625echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
20626fi
20627
20628rm -f core conftest.err conftest.$ac_objext \
20629      conftest$ac_exeext conftest.$ac_ext
20630
20631
20632if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
20633  { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
20634echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
20635if test "${llvm_cv_linux_mixed+set}" = set; then
20636  echo $ECHO_N "(cached) $ECHO_C" >&6
20637else
20638   ac_ext=c
20639ac_cpp='$CPP $CPPFLAGS'
20640ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20641ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20642ac_compiler_gnu=$ac_cv_c_compiler_gnu
20643
20644  cat >conftest.$ac_ext <<_ACEOF
20645/* confdefs.h.  */
20646_ACEOF
20647cat confdefs.h >>conftest.$ac_ext
20648cat >>conftest.$ac_ext <<_ACEOF
20649/* end confdefs.h.  */
20650#ifndef __x86_64__
20651       error: Not x86-64 even if uname says so!
20652      #endif
20653
20654int
20655main ()
20656{
20657
20658  ;
20659  return 0;
20660}
20661_ACEOF
20662rm -f conftest.$ac_objext
20663if { (ac_try="$ac_compile"
20664case "(($ac_try" in
20665  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20666  *) ac_try_echo=$ac_try;;
20667esac
20668eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20669  (eval "$ac_compile") 2>conftest.er1
20670  ac_status=$?
20671  grep -v '^ *+' conftest.er1 >conftest.err
20672  rm -f conftest.er1
20673  cat conftest.err >&5
20674  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20675  (exit $ac_status); } &&
20676	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20677  { (case "(($ac_try" in
20678  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20679  *) ac_try_echo=$ac_try;;
20680esac
20681eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20682  (eval "$ac_try") 2>&5
20683  ac_status=$?
20684  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20685  (exit $ac_status); }; } &&
20686	 { ac_try='test -s conftest.$ac_objext'
20687  { (case "(($ac_try" in
20688  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20689  *) ac_try_echo=$ac_try;;
20690esac
20691eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20692  (eval "$ac_try") 2>&5
20693  ac_status=$?
20694  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20695  (exit $ac_status); }; }; then
20696  llvm_cv_linux_mixed=no
20697else
20698  echo "$as_me: failed program was:" >&5
20699sed 's/^/| /' conftest.$ac_ext >&5
20700
20701	llvm_cv_linux_mixed=yes
20702fi
20703
20704rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20705  ac_ext=c
20706ac_cpp='$CPP $CPPFLAGS'
20707ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20708ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20709ac_compiler_gnu=$ac_cv_c_compiler_gnu
20710
20711
20712fi
20713{ echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
20714echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
20715
20716  if test "$llvm_cv_linux_mixed" = "yes"; then
20717    llvm_cv_target_arch="x86"
20718    ARCH="x86"
20719  fi
20720fi
20721
20722
20723for ac_func in __dso_handle
20724do
20725as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20726{ echo "$as_me:$LINENO: checking for $ac_func" >&5
20727echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20728if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20729  echo $ECHO_N "(cached) $ECHO_C" >&6
20730else
20731  cat >conftest.$ac_ext <<_ACEOF
20732/* confdefs.h.  */
20733_ACEOF
20734cat confdefs.h >>conftest.$ac_ext
20735cat >>conftest.$ac_ext <<_ACEOF
20736/* end confdefs.h.  */
20737/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20738   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20739#define $ac_func innocuous_$ac_func
20740
20741/* System header to define __stub macros and hopefully few prototypes,
20742    which can conflict with char $ac_func (); below.
20743    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20744    <limits.h> exists even on freestanding compilers.  */
20745
20746#ifdef __STDC__
20747# include <limits.h>
20748#else
20749# include <assert.h>
20750#endif
20751
20752#undef $ac_func
20753
20754/* Override any GCC internal prototype to avoid an error.
20755   Use char because int might match the return type of a GCC
20756   builtin and then its argument prototype would still apply.  */
20757#ifdef __cplusplus
20758extern "C"
20759#endif
20760char $ac_func ();
20761/* The GNU C library defines this for functions which it implements
20762    to always fail with ENOSYS.  Some functions are actually named
20763    something starting with __ and the normal name is an alias.  */
20764#if defined __stub_$ac_func || defined __stub___$ac_func
20765choke me
20766#endif
20767
20768int
20769main ()
20770{
20771return $ac_func ();
20772  ;
20773  return 0;
20774}
20775_ACEOF
20776rm -f conftest.$ac_objext conftest$ac_exeext
20777if { (ac_try="$ac_link"
20778case "(($ac_try" in
20779  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20780  *) ac_try_echo=$ac_try;;
20781esac
20782eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20783  (eval "$ac_link") 2>conftest.er1
20784  ac_status=$?
20785  grep -v '^ *+' conftest.er1 >conftest.err
20786  rm -f conftest.er1
20787  cat conftest.err >&5
20788  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20789  (exit $ac_status); } &&
20790	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20791  { (case "(($ac_try" in
20792  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20793  *) ac_try_echo=$ac_try;;
20794esac
20795eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20796  (eval "$ac_try") 2>&5
20797  ac_status=$?
20798  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20799  (exit $ac_status); }; } &&
20800	 { ac_try='test -s conftest$ac_exeext'
20801  { (case "(($ac_try" in
20802  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20803  *) ac_try_echo=$ac_try;;
20804esac
20805eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20806  (eval "$ac_try") 2>&5
20807  ac_status=$?
20808  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20809  (exit $ac_status); }; }; then
20810  eval "$as_ac_var=yes"
20811else
20812  echo "$as_me: failed program was:" >&5
20813sed 's/^/| /' conftest.$ac_ext >&5
20814
20815	eval "$as_ac_var=no"
20816fi
20817
20818rm -f core conftest.err conftest.$ac_objext \
20819      conftest$ac_exeext conftest.$ac_ext
20820fi
20821ac_res=`eval echo '${'$as_ac_var'}'`
20822	       { echo "$as_me:$LINENO: result: $ac_res" >&5
20823echo "${ECHO_T}$ac_res" >&6; }
20824if test `eval echo '${'$as_ac_var'}'` = yes; then
20825  cat >>confdefs.h <<_ACEOF
20826#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20827_ACEOF
20828
20829fi
20830done
20831
20832
20833SHLIBEXT=$libltdl_cv_shlibext
20834
20835
20836SHLIBPATH_VAR=$libltdl_cv_shlibpath_var
20837
20838
20839if test "${prefix}" = "NONE" ; then
20840  prefix="/usr/local"
20841fi
20842eval LLVM_PREFIX="${prefix}";
20843eval LLVM_BINDIR="${prefix}/bin";
20844eval LLVM_LIBDIR="${prefix}/lib";
20845eval LLVM_DATADIR="${prefix}/share/llvm";
20846eval LLVM_DOCSDIR="${prefix}/share/doc/llvm";
20847eval LLVM_ETCDIR="${prefix}/etc/llvm";
20848eval LLVM_INCLUDEDIR="${prefix}/include";
20849eval LLVM_INFODIR="${prefix}/info";
20850eval LLVM_MANDIR="${prefix}/man";
20851LLVM_CONFIGTIME=`date`
20852
20853
20854
20855
20856
20857
20858
20859
20860
20861
20862
20863if test "${ENABLE_TIMESTAMPS}" = "0"; then
20864  LLVM_CONFIGTIME="(timestamp not enabled)"
20865fi
20866
20867
20868cat >>confdefs.h <<_ACEOF
20869#define LLVM_PREFIX "$LLVM_PREFIX"
20870_ACEOF
20871
20872
20873cat >>confdefs.h <<_ACEOF
20874#define LLVM_BINDIR "$LLVM_BINDIR"
20875_ACEOF
20876
20877
20878cat >>confdefs.h <<_ACEOF
20879#define LLVM_LIBDIR "$LLVM_LIBDIR"
20880_ACEOF
20881
20882
20883cat >>confdefs.h <<_ACEOF
20884#define LLVM_DATADIR "$LLVM_DATADIR"
20885_ACEOF
20886
20887
20888cat >>confdefs.h <<_ACEOF
20889#define LLVM_DOCSDIR "$LLVM_DOCSDIR"
20890_ACEOF
20891
20892
20893cat >>confdefs.h <<_ACEOF
20894#define LLVM_ETCDIR "$LLVM_ETCDIR"
20895_ACEOF
20896
20897
20898cat >>confdefs.h <<_ACEOF
20899#define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
20900_ACEOF
20901
20902
20903cat >>confdefs.h <<_ACEOF
20904#define LLVM_INFODIR "$LLVM_INFODIR"
20905_ACEOF
20906
20907
20908cat >>confdefs.h <<_ACEOF
20909#define LLVM_MANDIR "$LLVM_MANDIR"
20910_ACEOF
20911
20912
20913cat >>confdefs.h <<_ACEOF
20914#define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
20915_ACEOF
20916
20917
20918cat >>confdefs.h <<_ACEOF
20919#define LLVM_HOSTTRIPLE "$host"
20920_ACEOF
20921
20922
20923cat >>confdefs.h <<_ACEOF
20924#define LLVM_DEFAULT_TARGET_TRIPLE "$target"
20925_ACEOF
20926
20927
20928if test "$BINDINGS_TO_BUILD" = auto ; then
20929  BINDINGS_TO_BUILD=""
20930  if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
20931    BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
20932  fi
20933fi
20934BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
20935
20936
20937ALL_BINDINGS=ocaml
20938
20939
20940binding_prereqs_failed=0
20941for a_binding in $BINDINGS_TO_BUILD ; do
20942  case "$a_binding" in
20943  ocaml)
20944    if test "x$OCAMLC" = x ; then
20945      { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
20946echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
20947      binding_prereqs_failed=1
20948    fi
20949    if test "x$OCAMLDEP" = x ; then
20950      { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
20951echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
20952      binding_prereqs_failed=1
20953    fi
20954    if test "x$OCAMLOPT" = x ; then
20955      { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
20956echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
20957          fi
20958    if test "x$with_ocaml_libdir" != xauto ; then
20959      OCAML_LIBDIR=$with_ocaml_libdir
20960
20961    else
20962      ocaml_stdlib="`"$OCAMLC" -where`"
20963      if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
20964      then
20965        # ocaml stdlib is beneath our prefix; use stdlib
20966        OCAML_LIBDIR=$ocaml_stdlib
20967
20968      else
20969        # ocaml stdlib is outside our prefix; use libdir/ocaml
20970        OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
20971
20972      fi
20973    fi
20974    ;;
20975  esac
20976done
20977if test "$binding_prereqs_failed" = 1 ; then
20978  { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
20979echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
20980   { (exit 1); exit 1; }; }
20981fi
20982
20983{ echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
20984echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
20985if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
20986  echo $ECHO_N "(cached) $ECHO_C" >&6
20987else
20988   ac_ext=cpp
20989ac_cpp='$CXXCPP $CPPFLAGS'
20990ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20991ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20992ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20993
20994  oldcxxflags="$CXXFLAGS"
20995  CXXFLAGS="$CXXFLAGS -O0 -fvisibility-inlines-hidden -Werror"
20996  cat >conftest.$ac_ext <<_ACEOF
20997/* confdefs.h.  */
20998_ACEOF
20999cat confdefs.h >>conftest.$ac_ext
21000cat >>conftest.$ac_ext <<_ACEOF
21001/* end confdefs.h.  */
21002template <typename T> struct X { void __attribute__((noinline)) f() {} };
21003int
21004main ()
21005{
21006X<int>().f();
21007  ;
21008  return 0;
21009}
21010_ACEOF
21011rm -f conftest.$ac_objext
21012if { (ac_try="$ac_compile"
21013case "(($ac_try" in
21014  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21015  *) ac_try_echo=$ac_try;;
21016esac
21017eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21018  (eval "$ac_compile") 2>conftest.er1
21019  ac_status=$?
21020  grep -v '^ *+' conftest.er1 >conftest.err
21021  rm -f conftest.er1
21022  cat conftest.err >&5
21023  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21024  (exit $ac_status); } &&
21025	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21026  { (case "(($ac_try" in
21027  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21028  *) ac_try_echo=$ac_try;;
21029esac
21030eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21031  (eval "$ac_try") 2>&5
21032  ac_status=$?
21033  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21034  (exit $ac_status); }; } &&
21035	 { ac_try='test -s conftest.$ac_objext'
21036  { (case "(($ac_try" in
21037  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21038  *) ac_try_echo=$ac_try;;
21039esac
21040eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21041  (eval "$ac_try") 2>&5
21042  ac_status=$?
21043  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21044  (exit $ac_status); }; }; then
21045  llvm_cv_cxx_visibility_inlines_hidden=yes
21046else
21047  echo "$as_me: failed program was:" >&5
21048sed 's/^/| /' conftest.$ac_ext >&5
21049
21050	llvm_cv_cxx_visibility_inlines_hidden=no
21051fi
21052
21053rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21054  CXXFLAGS="$oldcxxflags"
21055  ac_ext=c
21056ac_cpp='$CPP $CPPFLAGS'
21057ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21058ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21059ac_compiler_gnu=$ac_cv_c_compiler_gnu
21060
21061
21062fi
21063{ echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
21064echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
21065if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
21066  ENABLE_VISIBILITY_INLINES_HIDDEN=1
21067
21068else
21069  ENABLE_VISIBILITY_INLINES_HIDDEN=0
21070
21071fi
21072
21073
21074if test "$llvm_cv_link_use_r" = "yes" ; then
21075  RPATH="-Wl,-R"
21076else
21077  RPATH="-Wl,-rpath"
21078fi
21079
21080
21081if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
21082  RDYNAMIC="-Wl,-export-dynamic"
21083else
21084  RDYNAMIC=""
21085fi
21086
21087
21088
21089ac_config_headers="$ac_config_headers include/llvm/Config/config.h include/llvm/Config/llvm-config.h"
21090
21091
21092
21093
21094
21095
21096ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
21097
21098ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
21099
21100ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def"
21101
21102ac_config_files="$ac_config_files include/llvm/Config/Disassemblers.def"
21103
21104ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
21105
21106
21107ac_config_files="$ac_config_files Makefile.config"
21108
21109
21110ac_config_files="$ac_config_files llvm.spec"
21111
21112
21113ac_config_files="$ac_config_files docs/doxygen.cfg"
21114
21115
21116if test "${clang_src_root}" = ""; then
21117  clang_src_root="$srcdir/tools/clang"
21118fi
21119if test -f ${clang_src_root}/README.txt; then
21120    configh="include/clang/Config/config.h"
21121  doxy="docs/doxygen.cfg"
21122  ac_config_headers="$ac_config_headers tools/clang/${configh}:${clang_src_root}/${configh}.in"
21123
21124  ac_config_files="$ac_config_files tools/clang/${doxy}:${clang_src_root}/${doxy}.in"
21125
21126fi
21127
21128ac_config_files="$ac_config_files bindings/ocaml/llvm/META.llvm"
21129
21130
21131test "x$program_prefix" = "xNONE" && program_prefix=""
21132
21133
21134
21135ac_config_commands="$ac_config_commands setup"
21136
21137ac_config_commands="$ac_config_commands Makefile"
21138
21139
21140ac_config_commands="$ac_config_commands Makefile.common"
21141
21142
21143ac_config_commands="$ac_config_commands examples/Makefile"
21144
21145
21146ac_config_commands="$ac_config_commands lib/Makefile"
21147
21148
21149ac_config_commands="$ac_config_commands runtime/Makefile"
21150
21151
21152ac_config_commands="$ac_config_commands test/Makefile"
21153
21154
21155ac_config_commands="$ac_config_commands test/Makefile.tests"
21156
21157
21158ac_config_commands="$ac_config_commands unittests/Makefile"
21159
21160
21161ac_config_commands="$ac_config_commands tools/Makefile"
21162
21163
21164ac_config_commands="$ac_config_commands utils/Makefile"
21165
21166
21167ac_config_commands="$ac_config_commands projects/Makefile"
21168
21169
21170ac_config_commands="$ac_config_commands bindings/Makefile"
21171
21172
21173ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
21174
21175
21176
21177cat >confcache <<\_ACEOF
21178# This file is a shell script that caches the results of configure
21179# tests run on this system so they can be shared between configure
21180# scripts and configure runs, see configure's option --config-cache.
21181# It is not useful on other systems.  If it contains results you don't
21182# want to keep, you may remove or edit it.
21183#
21184# config.status only pays attention to the cache file if you give it
21185# the --recheck option to rerun configure.
21186#
21187# `ac_cv_env_foo' variables (set or unset) will be overridden when
21188# loading this file, other *unset* `ac_cv_foo' will be assigned the
21189# following values.
21190
21191_ACEOF
21192
21193# The following way of writing the cache mishandles newlines in values,
21194# but we know of no workaround that is simple, portable, and efficient.
21195# So, we kill variables containing newlines.
21196# Ultrix sh set writes to stderr and can't be redirected directly,
21197# and sets the high bit in the cache file unless we assign to the vars.
21198(
21199  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
21200    eval ac_val=\$$ac_var
21201    case $ac_val in #(
21202    *${as_nl}*)
21203      case $ac_var in #(
21204      *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
21205echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
21206      esac
21207      case $ac_var in #(
21208      _ | IFS | as_nl) ;; #(
21209      *) $as_unset $ac_var ;;
21210      esac ;;
21211    esac
21212  done
21213
21214  (set) 2>&1 |
21215    case $as_nl`(ac_space=' '; set) 2>&1` in #(
21216    *${as_nl}ac_space=\ *)
21217      # `set' does not quote correctly, so add quotes (double-quote
21218      # substitution turns \\\\ into \\, and sed turns \\ into \).
21219      sed -n \
21220	"s/'/'\\\\''/g;
21221	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21222      ;; #(
21223    *)
21224      # `set' quotes correctly as required by POSIX, so do not add quotes.
21225      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
21226      ;;
21227    esac |
21228    sort
21229) |
21230  sed '
21231     /^ac_cv_env_/b end
21232     t clear
21233     :clear
21234     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21235     t end
21236     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21237     :end' >>confcache
21238if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
21239  if test -w "$cache_file"; then
21240    test "x$cache_file" != "x/dev/null" &&
21241      { echo "$as_me:$LINENO: updating cache $cache_file" >&5
21242echo "$as_me: updating cache $cache_file" >&6;}
21243    cat confcache >$cache_file
21244  else
21245    { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
21246echo "$as_me: not updating unwritable cache $cache_file" >&6;}
21247  fi
21248fi
21249rm -f confcache
21250
21251test "x$prefix" = xNONE && prefix=$ac_default_prefix
21252# Let make expand exec_prefix.
21253test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21254
21255DEFS=-DHAVE_CONFIG_H
21256
21257ac_libobjs=
21258ac_ltlibobjs=
21259for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21260  # 1. Remove the extension, and $U if already installed.
21261  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
21262  ac_i=`echo "$ac_i" | sed "$ac_script"`
21263  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
21264  #    will be set to the directory where LIBOBJS objects are built.
21265  ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
21266  ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
21267done
21268LIBOBJS=$ac_libobjs
21269
21270LTLIBOBJS=$ac_ltlibobjs
21271
21272
21273if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
21274  { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
21275Usually this means the macro was only invoked conditionally." >&5
21276echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
21277Usually this means the macro was only invoked conditionally." >&2;}
21278   { (exit 1); exit 1; }; }
21279fi
21280if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
21281  { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
21282Usually this means the macro was only invoked conditionally." >&5
21283echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
21284Usually this means the macro was only invoked conditionally." >&2;}
21285   { (exit 1); exit 1; }; }
21286fi
21287
21288: ${CONFIG_STATUS=./config.status}
21289ac_clean_files_save=$ac_clean_files
21290ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21291{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21292echo "$as_me: creating $CONFIG_STATUS" >&6;}
21293cat >$CONFIG_STATUS <<_ACEOF
21294#! $SHELL
21295# Generated by $as_me.
21296# Run this file to recreate the current configuration.
21297# Compiler output produced by configure, useful for debugging
21298# configure, is in config.log if it exists.
21299
21300debug=false
21301ac_cs_recheck=false
21302ac_cs_silent=false
21303SHELL=\${CONFIG_SHELL-$SHELL}
21304_ACEOF
21305
21306cat >>$CONFIG_STATUS <<\_ACEOF
21307## --------------------- ##
21308## M4sh Initialization.  ##
21309## --------------------- ##
21310
21311# Be Bourne compatible
21312if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21313  emulate sh
21314  NULLCMD=:
21315  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21316  # is contrary to our usage.  Disable this feature.
21317  alias -g '${1+"$@"}'='"$@"'
21318  setopt NO_GLOB_SUBST
21319else
21320  case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
21321fi
21322BIN_SH=xpg4; export BIN_SH # for Tru64
21323DUALCASE=1; export DUALCASE # for MKS sh
21324
21325
21326# PATH needs CR
21327# Avoid depending upon Character Ranges.
21328as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21329as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21330as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21331as_cr_digits='0123456789'
21332as_cr_alnum=$as_cr_Letters$as_cr_digits
21333
21334# The user is always right.
21335if test "${PATH_SEPARATOR+set}" != set; then
21336  echo "#! /bin/sh" >conf$$.sh
21337  echo  "exit 0"   >>conf$$.sh
21338  chmod +x conf$$.sh
21339  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21340    PATH_SEPARATOR=';'
21341  else
21342    PATH_SEPARATOR=:
21343  fi
21344  rm -f conf$$.sh
21345fi
21346
21347# Support unset when possible.
21348if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21349  as_unset=unset
21350else
21351  as_unset=false
21352fi
21353
21354
21355# IFS
21356# We need space, tab and new line, in precisely that order.  Quoting is
21357# there to prevent editors from complaining about space-tab.
21358# (If _AS_PATH_WALK were called with IFS unset, it would disable word
21359# splitting by setting IFS to empty value.)
21360as_nl='
21361'
21362IFS=" ""	$as_nl"
21363
21364# Find who we are.  Look in the path if we contain no directory separator.
21365case $0 in
21366  *[\\/]* ) as_myself=$0 ;;
21367  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21368for as_dir in $PATH
21369do
21370  IFS=$as_save_IFS
21371  test -z "$as_dir" && as_dir=.
21372  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21373done
21374IFS=$as_save_IFS
21375
21376     ;;
21377esac
21378# We did not find ourselves, most probably we were run as `sh COMMAND'
21379# in which case we are not to be found in the path.
21380if test "x$as_myself" = x; then
21381  as_myself=$0
21382fi
21383if test ! -f "$as_myself"; then
21384  echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21385  { (exit 1); exit 1; }
21386fi
21387
21388# Work around bugs in pre-3.0 UWIN ksh.
21389for as_var in ENV MAIL MAILPATH
21390do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21391done
21392PS1='$ '
21393PS2='> '
21394PS4='+ '
21395
21396# NLS nuisances.
21397for as_var in \
21398  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21399  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21400  LC_TELEPHONE LC_TIME
21401do
21402  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21403    eval $as_var=C; export $as_var
21404  else
21405    ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21406  fi
21407done
21408
21409# Required to use basename.
21410if expr a : '\(a\)' >/dev/null 2>&1 &&
21411   test "X`expr 00001 : '.*\(...\)'`" = X001; then
21412  as_expr=expr
21413else
21414  as_expr=false
21415fi
21416
21417if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21418  as_basename=basename
21419else
21420  as_basename=false
21421fi
21422
21423
21424# Name of the executable.
21425as_me=`$as_basename -- "$0" ||
21426$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21427	 X"$0" : 'X\(//\)$' \| \
21428	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
21429echo X/"$0" |
21430    sed '/^.*\/\([^/][^/]*\)\/*$/{
21431	    s//\1/
21432	    q
21433	  }
21434	  /^X\/\(\/\/\)$/{
21435	    s//\1/
21436	    q
21437	  }
21438	  /^X\/\(\/\).*/{
21439	    s//\1/
21440	    q
21441	  }
21442	  s/.*/./; q'`
21443
21444# CDPATH.
21445$as_unset CDPATH
21446
21447
21448
21449  as_lineno_1=$LINENO
21450  as_lineno_2=$LINENO
21451  test "x$as_lineno_1" != "x$as_lineno_2" &&
21452  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
21453
21454  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21455  # uniformly replaced by the line number.  The first 'sed' inserts a
21456  # line-number line after each line using $LINENO; the second 'sed'
21457  # does the real work.  The second script uses 'N' to pair each
21458  # line-number line with the line containing $LINENO, and appends
21459  # trailing '-' during substitution so that $LINENO is not a special
21460  # case at line end.
21461  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21462  # scripts with optimization help from Paolo Bonzini.  Blame Lee
21463  # E. McMahon (1931-1989) for sed's syntax.  :-)
21464  sed -n '
21465    p
21466    /[$]LINENO/=
21467  ' <$as_myself |
21468    sed '
21469      s/[$]LINENO.*/&-/
21470      t lineno
21471      b
21472      :lineno
21473      N
21474      :loop
21475      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
21476      t loop
21477      s/-\n.*//
21478    ' >$as_me.lineno &&
21479  chmod +x "$as_me.lineno" ||
21480    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
21481   { (exit 1); exit 1; }; }
21482
21483  # Don't try to exec as it changes $[0], causing all sort of problems
21484  # (the dirname of $[0] is not the place where we might find the
21485  # original and so on.  Autoconf is especially sensitive to this).
21486  . "./$as_me.lineno"
21487  # Exit status is that of the last command.
21488  exit
21489}
21490
21491
21492if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21493  as_dirname=dirname
21494else
21495  as_dirname=false
21496fi
21497
21498ECHO_C= ECHO_N= ECHO_T=
21499case `echo -n x` in
21500-n*)
21501  case `echo 'x\c'` in
21502  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
21503  *)   ECHO_C='\c';;
21504  esac;;
21505*)
21506  ECHO_N='-n';;
21507esac
21508
21509if expr a : '\(a\)' >/dev/null 2>&1 &&
21510   test "X`expr 00001 : '.*\(...\)'`" = X001; then
21511  as_expr=expr
21512else
21513  as_expr=false
21514fi
21515
21516rm -f conf$$ conf$$.exe conf$$.file
21517if test -d conf$$.dir; then
21518  rm -f conf$$.dir/conf$$.file
21519else
21520  rm -f conf$$.dir
21521  mkdir conf$$.dir
21522fi
21523echo >conf$$.file
21524if ln -s conf$$.file conf$$ 2>/dev/null; then
21525  as_ln_s='ln -s'
21526  # ... but there are two gotchas:
21527  # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21528  # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
21529  # In both cases, we have to default to `cp -p'.
21530  ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
21531    as_ln_s='cp -p'
21532elif ln conf$$.file conf$$ 2>/dev/null; then
21533  as_ln_s=ln
21534else
21535  as_ln_s='cp -p'
21536fi
21537rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21538rmdir conf$$.dir 2>/dev/null
21539
21540if mkdir -p . 2>/dev/null; then
21541  as_mkdir_p=:
21542else
21543  test -d ./-p && rmdir ./-p
21544  as_mkdir_p=false
21545fi
21546
21547# Find out whether ``test -x'' works.  Don't use a zero-byte file, as
21548# systems may use methods other than mode bits to determine executability.
21549cat >conf$$.file <<_ASEOF
21550#! /bin/sh
21551exit 0
21552_ASEOF
21553chmod +x conf$$.file
21554if test -x conf$$.file >/dev/null 2>&1; then
21555  as_executable_p="test -x"
21556else
21557  as_executable_p=:
21558fi
21559rm -f conf$$.file
21560
21561# Sed expression to map a string onto a valid CPP name.
21562as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21563
21564# Sed expression to map a string onto a valid variable name.
21565as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21566
21567
21568exec 6>&1
21569
21570# Save the log message, to keep $[0] and so on meaningful, and to
21571# report actual input values of CONFIG_FILES etc. instead of their
21572# values after options handling.
21573ac_log="
21574This file was extended by LLVM $as_me 3.2svn, which was
21575generated by GNU Autoconf 2.60.  Invocation command line was
21576
21577  CONFIG_FILES    = $CONFIG_FILES
21578  CONFIG_HEADERS  = $CONFIG_HEADERS
21579  CONFIG_LINKS    = $CONFIG_LINKS
21580  CONFIG_COMMANDS = $CONFIG_COMMANDS
21581  $ $0 $@
21582
21583on `(hostname || uname -n) 2>/dev/null | sed 1q`
21584"
21585
21586_ACEOF
21587
21588cat >>$CONFIG_STATUS <<_ACEOF
21589# Files that config.status was made for.
21590config_files="$ac_config_files"
21591config_headers="$ac_config_headers"
21592config_commands="$ac_config_commands"
21593
21594_ACEOF
21595
21596cat >>$CONFIG_STATUS <<\_ACEOF
21597ac_cs_usage="\
21598\`$as_me' instantiates files from templates according to the
21599current configuration.
21600
21601Usage: $0 [OPTIONS] [FILE]...
21602
21603  -h, --help       print this help, then exit
21604  -V, --version    print version number, then exit
21605  -q, --quiet      do not print progress messages
21606  -d, --debug      don't remove temporary files
21607      --recheck    update $as_me by reconfiguring in the same conditions
21608  --file=FILE[:TEMPLATE]
21609		   instantiate the configuration file FILE
21610  --header=FILE[:TEMPLATE]
21611		   instantiate the configuration header FILE
21612
21613Configuration files:
21614$config_files
21615
21616Configuration headers:
21617$config_headers
21618
21619Configuration commands:
21620$config_commands
21621
21622Report bugs to <bug-autoconf@gnu.org>."
21623
21624_ACEOF
21625cat >>$CONFIG_STATUS <<_ACEOF
21626ac_cs_version="\\
21627LLVM config.status 3.2svn
21628configured by $0, generated by GNU Autoconf 2.60,
21629  with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
21630
21631Copyright (C) 2006 Free Software Foundation, Inc.
21632This config.status script is free software; the Free Software Foundation
21633gives unlimited permission to copy, distribute and modify it."
21634
21635ac_pwd='$ac_pwd'
21636srcdir='$srcdir'
21637INSTALL='$INSTALL'
21638_ACEOF
21639
21640cat >>$CONFIG_STATUS <<\_ACEOF
21641# If no file are specified by the user, then we need to provide default
21642# value.  By we need to know if files were specified by the user.
21643ac_need_defaults=:
21644while test $# != 0
21645do
21646  case $1 in
21647  --*=*)
21648    ac_option=`expr "X$1" : 'X\([^=]*\)='`
21649    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
21650    ac_shift=:
21651    ;;
21652  *)
21653    ac_option=$1
21654    ac_optarg=$2
21655    ac_shift=shift
21656    ;;
21657  esac
21658
21659  case $ac_option in
21660  # Handling of the options.
21661  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21662    ac_cs_recheck=: ;;
21663  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
21664    echo "$ac_cs_version"; exit ;;
21665  --debug | --debu | --deb | --de | --d | -d )
21666    debug=: ;;
21667  --file | --fil | --fi | --f )
21668    $ac_shift
21669    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
21670    ac_need_defaults=false;;
21671  --header | --heade | --head | --hea )
21672    $ac_shift
21673    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
21674    ac_need_defaults=false;;
21675  --he | --h)
21676    # Conflict between --help and --header
21677    { echo "$as_me: error: ambiguous option: $1
21678Try \`$0 --help' for more information." >&2
21679   { (exit 1); exit 1; }; };;
21680  --help | --hel | -h )
21681    echo "$ac_cs_usage"; exit ;;
21682  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21683  | -silent | --silent | --silen | --sile | --sil | --si | --s)
21684    ac_cs_silent=: ;;
21685
21686  # This is an error.
21687  -*) { echo "$as_me: error: unrecognized option: $1
21688Try \`$0 --help' for more information." >&2
21689   { (exit 1); exit 1; }; } ;;
21690
21691  *) ac_config_targets="$ac_config_targets $1"
21692     ac_need_defaults=false ;;
21693
21694  esac
21695  shift
21696done
21697
21698ac_configure_extra_args=
21699
21700if $ac_cs_silent; then
21701  exec 6>/dev/null
21702  ac_configure_extra_args="$ac_configure_extra_args --silent"
21703fi
21704
21705_ACEOF
21706cat >>$CONFIG_STATUS <<_ACEOF
21707if \$ac_cs_recheck; then
21708  echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21709  CONFIG_SHELL=$SHELL
21710  export CONFIG_SHELL
21711  exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21712fi
21713
21714_ACEOF
21715cat >>$CONFIG_STATUS <<\_ACEOF
21716exec 5>>config.log
21717{
21718  echo
21719  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21720## Running $as_me. ##
21721_ASBOX
21722  echo "$ac_log"
21723} >&5
21724
21725_ACEOF
21726cat >>$CONFIG_STATUS <<_ACEOF
21727#
21728# INIT-COMMANDS
21729#
21730llvm_src="${srcdir}"
21731
21732_ACEOF
21733
21734cat >>$CONFIG_STATUS <<\_ACEOF
21735
21736# Handling of arguments.
21737for ac_config_target in $ac_config_targets
21738do
21739  case $ac_config_target in
21740    "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
21741    "include/llvm/Config/llvm-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/llvm-config.h" ;;
21742    "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
21743    "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
21744    "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
21745    "include/llvm/Config/Disassemblers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Disassemblers.def" ;;
21746    "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
21747    "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
21748    "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
21749    "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
21750    "tools/clang/${configh}") CONFIG_HEADERS="$CONFIG_HEADERS tools/clang/${configh}:${clang_src_root}/${configh}.in" ;;
21751    "tools/clang/${doxy}") CONFIG_FILES="$CONFIG_FILES tools/clang/${doxy}:${clang_src_root}/${doxy}.in" ;;
21752    "bindings/ocaml/llvm/META.llvm") CONFIG_FILES="$CONFIG_FILES bindings/ocaml/llvm/META.llvm" ;;
21753    "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
21754    "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
21755    "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
21756    "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
21757    "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
21758    "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
21759    "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
21760    "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
21761    "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
21762    "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
21763    "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
21764    "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
21765    "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
21766    "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
21767
21768  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21769echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21770   { (exit 1); exit 1; }; };;
21771  esac
21772done
21773
21774
21775# If the user did not use the arguments to specify the items to instantiate,
21776# then the envvar interface is used.  Set only those that are not.
21777# We use the long form for the default assignment because of an extremely
21778# bizarre bug on SunOS 4.1.3.
21779if $ac_need_defaults; then
21780  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21781  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
21782  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21783fi
21784
21785# Have a temporary directory for convenience.  Make it in the build tree
21786# simply because there is no reason against having it here, and in addition,
21787# creating and moving files from /tmp can sometimes cause problems.
21788# Hook for its removal unless debugging.
21789# Note that there is a small window in which the directory will not be cleaned:
21790# after its creation but before its name has been assigned to `$tmp'.
21791$debug ||
21792{
21793  tmp=
21794  trap 'exit_status=$?
21795  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
21796' 0
21797  trap '{ (exit 1); exit 1; }' 1 2 13 15
21798}
21799# Create a (secure) tmp directory for tmp files.
21800
21801{
21802  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
21803  test -n "$tmp" && test -d "$tmp"
21804}  ||
21805{
21806  tmp=./conf$$-$RANDOM
21807  (umask 077 && mkdir "$tmp")
21808} ||
21809{
21810   echo "$me: cannot create a temporary directory in ." >&2
21811   { (exit 1); exit 1; }
21812}
21813
21814#
21815# Set up the sed scripts for CONFIG_FILES section.
21816#
21817
21818# No need to generate the scripts if there are no CONFIG_FILES.
21819# This happens for instance when ./config.status config.h
21820if test -n "$CONFIG_FILES"; then
21821
21822_ACEOF
21823
21824
21825
21826ac_delim='%!_!# '
21827for ac_last_try in false false false false false :; do
21828  cat >conf$$subs.sed <<_ACEOF
21829SHELL!$SHELL$ac_delim
21830PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
21831PACKAGE_NAME!$PACKAGE_NAME$ac_delim
21832PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
21833PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
21834PACKAGE_STRING!$PACKAGE_STRING$ac_delim
21835PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
21836exec_prefix!$exec_prefix$ac_delim
21837prefix!$prefix$ac_delim
21838program_transform_name!$program_transform_name$ac_delim
21839bindir!$bindir$ac_delim
21840sbindir!$sbindir$ac_delim
21841libexecdir!$libexecdir$ac_delim
21842datarootdir!$datarootdir$ac_delim
21843datadir!$datadir$ac_delim
21844sysconfdir!$sysconfdir$ac_delim
21845sharedstatedir!$sharedstatedir$ac_delim
21846localstatedir!$localstatedir$ac_delim
21847includedir!$includedir$ac_delim
21848oldincludedir!$oldincludedir$ac_delim
21849docdir!$docdir$ac_delim
21850infodir!$infodir$ac_delim
21851htmldir!$htmldir$ac_delim
21852dvidir!$dvidir$ac_delim
21853pdfdir!$pdfdir$ac_delim
21854psdir!$psdir$ac_delim
21855libdir!$libdir$ac_delim
21856localedir!$localedir$ac_delim
21857mandir!$mandir$ac_delim
21858DEFS!$DEFS$ac_delim
21859ECHO_C!$ECHO_C$ac_delim
21860ECHO_N!$ECHO_N$ac_delim
21861ECHO_T!$ECHO_T$ac_delim
21862LIBS!$LIBS$ac_delim
21863build_alias!$build_alias$ac_delim
21864host_alias!$host_alias$ac_delim
21865target_alias!$target_alias$ac_delim
21866LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
21867CC!$CC$ac_delim
21868CFLAGS!$CFLAGS$ac_delim
21869LDFLAGS!$LDFLAGS$ac_delim
21870CPPFLAGS!$CPPFLAGS$ac_delim
21871ac_ct_CC!$ac_ct_CC$ac_delim
21872EXEEXT!$EXEEXT$ac_delim
21873OBJEXT!$OBJEXT$ac_delim
21874CXX!$CXX$ac_delim
21875CXXFLAGS!$CXXFLAGS$ac_delim
21876ac_ct_CXX!$ac_ct_CXX$ac_delim
21877CPP!$CPP$ac_delim
21878subdirs!$subdirs$ac_delim
21879ENABLE_POLLY!$ENABLE_POLLY$ac_delim
21880LLVM_HAS_POLLY!$LLVM_HAS_POLLY$ac_delim
21881build!$build$ac_delim
21882build_cpu!$build_cpu$ac_delim
21883build_vendor!$build_vendor$ac_delim
21884build_os!$build_os$ac_delim
21885host!$host$ac_delim
21886host_cpu!$host_cpu$ac_delim
21887host_vendor!$host_vendor$ac_delim
21888host_os!$host_os$ac_delim
21889target!$target$ac_delim
21890target_cpu!$target_cpu$ac_delim
21891target_vendor!$target_vendor$ac_delim
21892target_os!$target_os$ac_delim
21893OS!$OS$ac_delim
21894HOST_OS!$HOST_OS$ac_delim
21895TARGET_OS!$TARGET_OS$ac_delim
21896LINKALL!$LINKALL$ac_delim
21897NOLINKALL!$NOLINKALL$ac_delim
21898LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
21899LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
21900ARCH!$ARCH$ac_delim
21901HOST_ARCH!$HOST_ARCH$ac_delim
21902ENDIAN!$ENDIAN$ac_delim
21903GREP!$GREP$ac_delim
21904EGREP!$EGREP$ac_delim
21905LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
21906BUILD_CC!$BUILD_CC$ac_delim
21907BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
21908BUILD_CXX!$BUILD_CXX$ac_delim
21909CVSBUILD!$CVSBUILD$ac_delim
21910ENABLE_LIBCPP!$ENABLE_LIBCPP$ac_delim
21911ENABLE_CXX11!$ENABLE_CXX11$ac_delim
21912ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
21913ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
21914DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
21915ENABLE_WERROR!$ENABLE_WERROR$ac_delim
21916ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
21917EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
21918DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
21919DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
21920KEEP_SYMBOLS!$KEEP_SYMBOLS$ac_delim
21921JIT!$JIT$ac_delim
21922TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
21923ENABLE_DOCS!$ENABLE_DOCS$ac_delim
21924ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
21925LLVM_ENABLE_THREADS!$LLVM_ENABLE_THREADS$ac_delim
21926_ACEOF
21927
21928  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
21929    break
21930  elif $ac_last_try; then
21931    { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21932echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21933   { (exit 1); exit 1; }; }
21934  else
21935    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21936  fi
21937done
21938
21939ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21940if test -n "$ac_eof"; then
21941  ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21942  ac_eof=`expr $ac_eof + 1`
21943fi
21944
21945cat >>$CONFIG_STATUS <<_ACEOF
21946cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
21947/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21948_ACEOF
21949sed '
21950s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21951s/^/s,@/; s/!/@,|#_!!_#|/
21952:n
21953t n
21954s/'"$ac_delim"'$/,g/; t
21955s/$/\\/; p
21956N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21957' >>$CONFIG_STATUS <conf$$subs.sed
21958rm -f conf$$subs.sed
21959cat >>$CONFIG_STATUS <<_ACEOF
21960CEOF$ac_eof
21961_ACEOF
21962
21963
21964ac_delim='%!_!# '
21965for ac_last_try in false false false false false :; do
21966  cat >conf$$subs.sed <<_ACEOF
21967ENABLE_PTHREADS!$ENABLE_PTHREADS$ac_delim
21968ENABLE_PIC!$ENABLE_PIC$ac_delim
21969ENABLE_SHARED!$ENABLE_SHARED$ac_delim
21970ENABLE_EMBED_STDCXX!$ENABLE_EMBED_STDCXX$ac_delim
21971ENABLE_TIMESTAMPS!$ENABLE_TIMESTAMPS$ac_delim
21972TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
21973LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
21974LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
21975LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
21976LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
21977OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
21978EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
21979EXTRA_LD_OPTIONS!$EXTRA_LD_OPTIONS$ac_delim
21980CLANG_SRC_ROOT!$CLANG_SRC_ROOT$ac_delim
21981BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
21982INTERNAL_PREFIX!$INTERNAL_PREFIX$ac_delim
21983NM!$NM$ac_delim
21984ifGNUmake!$ifGNUmake$ac_delim
21985LN_S!$LN_S$ac_delim
21986CMP!$CMP$ac_delim
21987CP!$CP$ac_delim
21988DATE!$DATE$ac_delim
21989FIND!$FIND$ac_delim
21990MKDIR!$MKDIR$ac_delim
21991MV!$MV$ac_delim
21992RANLIB!$RANLIB$ac_delim
21993AR!$AR$ac_delim
21994RM!$RM$ac_delim
21995SED!$SED$ac_delim
21996TAR!$TAR$ac_delim
21997BINPWD!$BINPWD$ac_delim
21998GRAPHVIZ!$GRAPHVIZ$ac_delim
21999DOT!$DOT$ac_delim
22000FDP!$FDP$ac_delim
22001NEATO!$NEATO$ac_delim
22002TWOPI!$TWOPI$ac_delim
22003CIRCO!$CIRCO$ac_delim
22004GV!$GV$ac_delim
22005DOTTY!$DOTTY$ac_delim
22006XDOT_PY!$XDOT_PY$ac_delim
22007INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
22008INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
22009INSTALL_DATA!$INSTALL_DATA$ac_delim
22010BZIP2!$BZIP2$ac_delim
22011CAT!$CAT$ac_delim
22012DOXYGEN!$DOXYGEN$ac_delim
22013GROFF!$GROFF$ac_delim
22014GZIPBIN!$GZIPBIN$ac_delim
22015PDFROFF!$PDFROFF$ac_delim
22016ZIP!$ZIP$ac_delim
22017OCAMLC!$OCAMLC$ac_delim
22018OCAMLOPT!$OCAMLOPT$ac_delim
22019OCAMLDEP!$OCAMLDEP$ac_delim
22020OCAMLDOC!$OCAMLDOC$ac_delim
22021GAS!$GAS$ac_delim
22022HAVE_LINK_VERSION_SCRIPT!$HAVE_LINK_VERSION_SCRIPT$ac_delim
22023INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
22024INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
22025CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
22026CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
22027LIBADD_DL!$LIBADD_DL$ac_delim
22028NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
22029NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
22030COVERED_SWITCH_DEFAULT!$COVERED_SWITCH_DEFAULT$ac_delim
22031USE_UDIS86!$USE_UDIS86$ac_delim
22032USE_OPROFILE!$USE_OPROFILE$ac_delim
22033USE_INTEL_JITEVENTS!$USE_INTEL_JITEVENTS$ac_delim
22034XML2CONFIG!$XML2CONFIG$ac_delim
22035LIBXML2_LIBS!$LIBXML2_LIBS$ac_delim
22036LIBXML2_INC!$LIBXML2_INC$ac_delim
22037HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
22038HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
22039MMAP_FILE!$MMAP_FILE$ac_delim
22040SHLIBEXT!$SHLIBEXT$ac_delim
22041SHLIBPATH_VAR!$SHLIBPATH_VAR$ac_delim
22042LLVM_PREFIX!$LLVM_PREFIX$ac_delim
22043LLVM_BINDIR!$LLVM_BINDIR$ac_delim
22044LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
22045LLVM_DATADIR!$LLVM_DATADIR$ac_delim
22046LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
22047LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
22048LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
22049LLVM_INFODIR!$LLVM_INFODIR$ac_delim
22050LLVM_MANDIR!$LLVM_MANDIR$ac_delim
22051LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
22052BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
22053ALL_BINDINGS!$ALL_BINDINGS$ac_delim
22054OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
22055ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
22056RPATH!$RPATH$ac_delim
22057RDYNAMIC!$RDYNAMIC$ac_delim
22058program_prefix!$program_prefix$ac_delim
22059LIBOBJS!$LIBOBJS$ac_delim
22060LTLIBOBJS!$LTLIBOBJS$ac_delim
22061_ACEOF
22062
22063  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 94; then
22064    break
22065  elif $ac_last_try; then
22066    { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22067echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22068   { (exit 1); exit 1; }; }
22069  else
22070    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22071  fi
22072done
22073
22074ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
22075if test -n "$ac_eof"; then
22076  ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
22077  ac_eof=`expr $ac_eof + 1`
22078fi
22079
22080cat >>$CONFIG_STATUS <<_ACEOF
22081cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
22082/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
22083_ACEOF
22084sed '
22085s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
22086s/^/s,@/; s/!/@,|#_!!_#|/
22087:n
22088t n
22089s/'"$ac_delim"'$/,g/; t
22090s/$/\\/; p
22091N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
22092' >>$CONFIG_STATUS <conf$$subs.sed
22093rm -f conf$$subs.sed
22094cat >>$CONFIG_STATUS <<_ACEOF
22095:end
22096s/|#_!!_#|//g
22097CEOF$ac_eof
22098_ACEOF
22099
22100
22101# VPATH may cause trouble with some makes, so we remove $(srcdir),
22102# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22103# trailing colons and then remove the whole line if VPATH becomes empty
22104# (actually we leave an empty line to preserve line numbers).
22105if test "x$srcdir" = x.; then
22106  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
22107s/:*\$(srcdir):*/:/
22108s/:*\${srcdir}:*/:/
22109s/:*@srcdir@:*/:/
22110s/^\([^=]*=[	 ]*\):*/\1/
22111s/:*$//
22112s/^[^=]*=[	 ]*$//
22113}'
22114fi
22115
22116cat >>$CONFIG_STATUS <<\_ACEOF
22117fi # test -n "$CONFIG_FILES"
22118
22119
22120for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
22121do
22122  case $ac_tag in
22123  :[FHLC]) ac_mode=$ac_tag; continue;;
22124  esac
22125  case $ac_mode$ac_tag in
22126  :[FHL]*:*);;
22127  :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
22128echo "$as_me: error: Invalid tag $ac_tag." >&2;}
22129   { (exit 1); exit 1; }; };;
22130  :[FH]-) ac_tag=-:-;;
22131  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
22132  esac
22133  ac_save_IFS=$IFS
22134  IFS=:
22135  set x $ac_tag
22136  IFS=$ac_save_IFS
22137  shift
22138  ac_file=$1
22139  shift
22140
22141  case $ac_mode in
22142  :L) ac_source=$1;;
22143  :[FH])
22144    ac_file_inputs=
22145    for ac_f
22146    do
22147      case $ac_f in
22148      -) ac_f="$tmp/stdin";;
22149      *) # Look for the file first in the build tree, then in the source tree
22150	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
22151	 # because $ac_f cannot contain `:'.
22152	 test -f "$ac_f" ||
22153	   case $ac_f in
22154	   [\\/$]*) false;;
22155	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
22156	   esac ||
22157	   { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
22158echo "$as_me: error: cannot find input file: $ac_f" >&2;}
22159   { (exit 1); exit 1; }; };;
22160      esac
22161      ac_file_inputs="$ac_file_inputs $ac_f"
22162    done
22163
22164    # Let's still pretend it is `configure' which instantiates (i.e., don't
22165    # use $as_me), people would be surprised to read:
22166    #    /* config.h.  Generated by config.status.  */
22167    configure_input="Generated from "`IFS=:
22168	  echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
22169    if test x"$ac_file" != x-; then
22170      configure_input="$ac_file.  $configure_input"
22171      { echo "$as_me:$LINENO: creating $ac_file" >&5
22172echo "$as_me: creating $ac_file" >&6;}
22173    fi
22174
22175    case $ac_tag in
22176    *:-:* | *:-) cat >"$tmp/stdin";;
22177    esac
22178    ;;
22179  esac
22180
22181  ac_dir=`$as_dirname -- "$ac_file" ||
22182$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22183	 X"$ac_file" : 'X\(//\)[^/]' \| \
22184	 X"$ac_file" : 'X\(//\)$' \| \
22185	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
22186echo X"$ac_file" |
22187    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22188	    s//\1/
22189	    q
22190	  }
22191	  /^X\(\/\/\)[^/].*/{
22192	    s//\1/
22193	    q
22194	  }
22195	  /^X\(\/\/\)$/{
22196	    s//\1/
22197	    q
22198	  }
22199	  /^X\(\/\).*/{
22200	    s//\1/
22201	    q
22202	  }
22203	  s/.*/./; q'`
22204  { as_dir="$ac_dir"
22205  case $as_dir in #(
22206  -*) as_dir=./$as_dir;;
22207  esac
22208  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22209    as_dirs=
22210    while :; do
22211      case $as_dir in #(
22212      *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22213      *) as_qdir=$as_dir;;
22214      esac
22215      as_dirs="'$as_qdir' $as_dirs"
22216      as_dir=`$as_dirname -- "$as_dir" ||
22217$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22218	 X"$as_dir" : 'X\(//\)[^/]' \| \
22219	 X"$as_dir" : 'X\(//\)$' \| \
22220	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22221echo X"$as_dir" |
22222    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22223	    s//\1/
22224	    q
22225	  }
22226	  /^X\(\/\/\)[^/].*/{
22227	    s//\1/
22228	    q
22229	  }
22230	  /^X\(\/\/\)$/{
22231	    s//\1/
22232	    q
22233	  }
22234	  /^X\(\/\).*/{
22235	    s//\1/
22236	    q
22237	  }
22238	  s/.*/./; q'`
22239      test -d "$as_dir" && break
22240    done
22241    test -z "$as_dirs" || eval "mkdir $as_dirs"
22242  } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22243echo "$as_me: error: cannot create directory $as_dir" >&2;}
22244   { (exit 1); exit 1; }; }; }
22245  ac_builddir=.
22246
22247case "$ac_dir" in
22248.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22249*)
22250  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22251  # A ".." for each directory in $ac_dir_suffix.
22252  ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
22253  case $ac_top_builddir_sub in
22254  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22255  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22256  esac ;;
22257esac
22258ac_abs_top_builddir=$ac_pwd
22259ac_abs_builddir=$ac_pwd$ac_dir_suffix
22260# for backward compatibility:
22261ac_top_builddir=$ac_top_build_prefix
22262
22263case $srcdir in
22264  .)  # We are building in place.
22265    ac_srcdir=.
22266    ac_top_srcdir=$ac_top_builddir_sub
22267    ac_abs_top_srcdir=$ac_pwd ;;
22268  [\\/]* | ?:[\\/]* )  # Absolute name.
22269    ac_srcdir=$srcdir$ac_dir_suffix;
22270    ac_top_srcdir=$srcdir
22271    ac_abs_top_srcdir=$srcdir ;;
22272  *) # Relative name.
22273    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22274    ac_top_srcdir=$ac_top_build_prefix$srcdir
22275    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22276esac
22277ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22278
22279
22280  case $ac_mode in
22281  :F)
22282  #
22283  # CONFIG_FILE
22284  #
22285
22286  case $INSTALL in
22287  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22288  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
22289  esac
22290_ACEOF
22291
22292cat >>$CONFIG_STATUS <<\_ACEOF
22293# If the template does not know about datarootdir, expand it.
22294# FIXME: This hack should be removed a few years after 2.60.
22295ac_datarootdir_hack=; ac_datarootdir_seen=
22296
22297case `sed -n '/datarootdir/ {
22298  p
22299  q
22300}
22301/@datadir@/p
22302/@docdir@/p
22303/@infodir@/p
22304/@localedir@/p
22305/@mandir@/p
22306' $ac_file_inputs` in
22307*datarootdir*) ac_datarootdir_seen=yes;;
22308*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
22309  { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22310echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
22311_ACEOF
22312cat >>$CONFIG_STATUS <<_ACEOF
22313  ac_datarootdir_hack='
22314  s&@datadir@&$datadir&g
22315  s&@docdir@&$docdir&g
22316  s&@infodir@&$infodir&g
22317  s&@localedir@&$localedir&g
22318  s&@mandir@&$mandir&g
22319    s&\\\${datarootdir}&$datarootdir&g' ;;
22320esac
22321_ACEOF
22322
22323# Neutralize VPATH when `$srcdir' = `.'.
22324# Shell code in configure.ac might set extrasub.
22325# FIXME: do we really want to maintain this feature?
22326cat >>$CONFIG_STATUS <<_ACEOF
22327  sed "$ac_vpsub
22328$extrasub
22329_ACEOF
22330cat >>$CONFIG_STATUS <<\_ACEOF
22331:t
22332/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22333s&@configure_input@&$configure_input&;t t
22334s&@top_builddir@&$ac_top_builddir_sub&;t t
22335s&@srcdir@&$ac_srcdir&;t t
22336s&@abs_srcdir@&$ac_abs_srcdir&;t t
22337s&@top_srcdir@&$ac_top_srcdir&;t t
22338s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22339s&@builddir@&$ac_builddir&;t t
22340s&@abs_builddir@&$ac_abs_builddir&;t t
22341s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22342s&@INSTALL@&$ac_INSTALL&;t t
22343$ac_datarootdir_hack
22344" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
22345
22346test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22347  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
22348  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
22349  { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22350which seems to be undefined.  Please make sure it is defined." >&5
22351echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22352which seems to be undefined.  Please make sure it is defined." >&2;}
22353
22354  rm -f "$tmp/stdin"
22355  case $ac_file in
22356  -) cat "$tmp/out"; rm -f "$tmp/out";;
22357  *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
22358  esac
22359 ;;
22360  :H)
22361  #
22362  # CONFIG_HEADER
22363  #
22364_ACEOF
22365
22366# Transform confdefs.h into a sed script `conftest.defines', that
22367# substitutes the proper values into config.h.in to produce config.h.
22368rm -f conftest.defines conftest.tail
22369# First, append a space to every undef/define line, to ease matching.
22370echo 's/$/ /' >conftest.defines
22371# Then, protect against being on the right side of a sed subst, or in
22372# an unquoted here document, in config.status.  If some macros were
22373# called several times there might be several #defines for the same
22374# symbol, which is useless.  But do not sort them, since the last
22375# AC_DEFINE must be honored.
22376ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
22377# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
22378# NAME is the cpp macro being defined, VALUE is the value it is being given.
22379# PARAMS is the parameter list in the macro definition--in most cases, it's
22380# just an empty string.
22381ac_dA='s,^\\([	 #]*\\)[^	 ]*\\([	 ]*'
22382ac_dB='\\)[	 (].*,\\1define\\2'
22383ac_dC=' '
22384ac_dD=' ,'
22385
22386uniq confdefs.h |
22387  sed -n '
22388	t rset
22389	:rset
22390	s/^[	 ]*#[	 ]*define[	 ][	 ]*//
22391	t ok
22392	d
22393	:ok
22394	s/[\\&,]/\\&/g
22395	s/^\('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
22396	s/^\('"$ac_word_re"'\)[	 ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
22397  ' >>conftest.defines
22398
22399# Remove the space that was appended to ease matching.
22400# Then replace #undef with comments.  This is necessary, for
22401# example, in the case of _POSIX_SOURCE, which is predefined and required
22402# on some systems where configure will not decide to define it.
22403# (The regexp can be short, since the line contains either #define or #undef.)
22404echo 's/ $//
22405s,^[	 #]*u.*,/* & */,' >>conftest.defines
22406
22407# Break up conftest.defines:
22408ac_max_sed_lines=50
22409
22410# First sed command is:	 sed -f defines.sed $ac_file_inputs >"$tmp/out1"
22411# Second one is:	 sed -f defines.sed "$tmp/out1" >"$tmp/out2"
22412# Third one will be:	 sed -f defines.sed "$tmp/out2" >"$tmp/out1"
22413# et cetera.
22414ac_in='$ac_file_inputs'
22415ac_out='"$tmp/out1"'
22416ac_nxt='"$tmp/out2"'
22417
22418while :
22419do
22420  # Write a here document:
22421    cat >>$CONFIG_STATUS <<_ACEOF
22422    # First, check the format of the line:
22423    cat >"\$tmp/defines.sed" <<\\CEOF
22424/^[	 ]*#[	 ]*undef[	 ][	 ]*$ac_word_re[	 ]*\$/b def
22425/^[	 ]*#[	 ]*define[	 ][	 ]*$ac_word_re[(	 ]/b def
22426b
22427:def
22428_ACEOF
22429  sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
22430  echo 'CEOF
22431    sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
22432  ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
22433  sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
22434  grep . conftest.tail >/dev/null || break
22435  rm -f conftest.defines
22436  mv conftest.tail conftest.defines
22437done
22438rm -f conftest.defines conftest.tail
22439
22440echo "ac_result=$ac_in" >>$CONFIG_STATUS
22441cat >>$CONFIG_STATUS <<\_ACEOF
22442  if test x"$ac_file" != x-; then
22443    echo "/* $configure_input  */" >"$tmp/config.h"
22444    cat "$ac_result" >>"$tmp/config.h"
22445    if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
22446      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
22447echo "$as_me: $ac_file is unchanged" >&6;}
22448    else
22449      rm -f $ac_file
22450      mv "$tmp/config.h" $ac_file
22451    fi
22452  else
22453    echo "/* $configure_input  */"
22454    cat "$ac_result"
22455  fi
22456  rm -f "$tmp/out12"
22457 ;;
22458
22459  :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
22460echo "$as_me: executing $ac_file commands" >&6;}
22461 ;;
22462  esac
22463
22464
22465  case $ac_file$ac_mode in
22466    "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
22467   ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
22468    "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
22469   ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common ;;
22470    "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
22471   ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples/Makefile examples/Makefile ;;
22472    "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
22473   ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
22474    "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
22475   ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
22476    "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
22477   ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile test/Makefile ;;
22478    "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
22479   ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
22480    "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
22481   ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
22482    "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
22483   ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
22484    "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
22485   ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils/Makefile utils/Makefile ;;
22486    "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
22487   ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects/Makefile projects/Makefile ;;
22488    "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
22489   ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
22490    "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
22491   ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
22492
22493  esac
22494done # for ac_tag
22495
22496
22497{ (exit 0); exit 0; }
22498_ACEOF
22499chmod +x $CONFIG_STATUS
22500ac_clean_files=$ac_clean_files_save
22501
22502
22503# configure is writing to config.log, and then calls config.status.
22504# config.status does its own redirection, appending to config.log.
22505# Unfortunately, on DOS this fails, as config.log is still kept open
22506# by configure, so config.status won't be able to write to it; its
22507# output is simply discarded.  So we exec the FD to /dev/null,
22508# effectively closing config.log, so it can be properly (re)opened and
22509# appended to by config.status.  When coming back to configure, we
22510# need to make the FD available again.
22511if test "$no_create" != yes; then
22512  ac_cs_success=:
22513  ac_config_status_args=
22514  test "$silent" = yes &&
22515    ac_config_status_args="$ac_config_status_args --quiet"
22516  exec 5>/dev/null
22517  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22518  exec 5>>config.log
22519  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22520  # would make configure fail if this is the last instruction.
22521  $ac_cs_success || { (exit 1); exit 1; }
22522fi
22523
22524#
22525# CONFIG_SUBDIRS section.
22526#
22527if test "$no_recursion" != yes; then
22528
22529  # Remove --cache-file and --srcdir arguments so they do not pile up.
22530  ac_sub_configure_args=
22531  ac_prev=
22532  eval "set x $ac_configure_args"
22533  shift
22534  for ac_arg
22535  do
22536    if test -n "$ac_prev"; then
22537      ac_prev=
22538      continue
22539    fi
22540    case $ac_arg in
22541    -cache-file | --cache-file | --cache-fil | --cache-fi \
22542    | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
22543      ac_prev=cache_file ;;
22544    -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
22545    | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
22546    | --c=*)
22547      ;;
22548    --config-cache | -C)
22549      ;;
22550    -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
22551      ac_prev=srcdir ;;
22552    -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
22553      ;;
22554    -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
22555      ac_prev=prefix ;;
22556    -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
22557      ;;
22558    *)
22559      case $ac_arg in
22560      *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
22561      esac
22562      ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
22563    esac
22564  done
22565
22566  # Always prepend --prefix to ensure using the same prefix
22567  # in subdir configurations.
22568  ac_arg="--prefix=$prefix"
22569  case $ac_arg in
22570  *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
22571  esac
22572  ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
22573
22574  ac_popdir=`pwd`
22575  for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
22576
22577    # Do not complain, so a configure script can configure whichever
22578    # parts of a large source tree are present.
22579    test -d "$srcdir/$ac_dir" || continue
22580
22581    ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
22582    echo "$as_me:$LINENO: $ac_msg" >&5
22583    echo "$ac_msg" >&6
22584    { as_dir="$ac_dir"
22585  case $as_dir in #(
22586  -*) as_dir=./$as_dir;;
22587  esac
22588  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22589    as_dirs=
22590    while :; do
22591      case $as_dir in #(
22592      *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22593      *) as_qdir=$as_dir;;
22594      esac
22595      as_dirs="'$as_qdir' $as_dirs"
22596      as_dir=`$as_dirname -- "$as_dir" ||
22597$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22598	 X"$as_dir" : 'X\(//\)[^/]' \| \
22599	 X"$as_dir" : 'X\(//\)$' \| \
22600	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22601echo X"$as_dir" |
22602    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22603	    s//\1/
22604	    q
22605	  }
22606	  /^X\(\/\/\)[^/].*/{
22607	    s//\1/
22608	    q
22609	  }
22610	  /^X\(\/\/\)$/{
22611	    s//\1/
22612	    q
22613	  }
22614	  /^X\(\/\).*/{
22615	    s//\1/
22616	    q
22617	  }
22618	  s/.*/./; q'`
22619      test -d "$as_dir" && break
22620    done
22621    test -z "$as_dirs" || eval "mkdir $as_dirs"
22622  } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22623echo "$as_me: error: cannot create directory $as_dir" >&2;}
22624   { (exit 1); exit 1; }; }; }
22625    ac_builddir=.
22626
22627case "$ac_dir" in
22628.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22629*)
22630  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22631  # A ".." for each directory in $ac_dir_suffix.
22632  ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
22633  case $ac_top_builddir_sub in
22634  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22635  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22636  esac ;;
22637esac
22638ac_abs_top_builddir=$ac_pwd
22639ac_abs_builddir=$ac_pwd$ac_dir_suffix
22640# for backward compatibility:
22641ac_top_builddir=$ac_top_build_prefix
22642
22643case $srcdir in
22644  .)  # We are building in place.
22645    ac_srcdir=.
22646    ac_top_srcdir=$ac_top_builddir_sub
22647    ac_abs_top_srcdir=$ac_pwd ;;
22648  [\\/]* | ?:[\\/]* )  # Absolute name.
22649    ac_srcdir=$srcdir$ac_dir_suffix;
22650    ac_top_srcdir=$srcdir
22651    ac_abs_top_srcdir=$srcdir ;;
22652  *) # Relative name.
22653    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22654    ac_top_srcdir=$ac_top_build_prefix$srcdir
22655    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22656esac
22657ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22658
22659
22660    cd "$ac_dir"
22661
22662    # Check for guested configure; otherwise get Cygnus style configure.
22663    if test -f "$ac_srcdir/configure.gnu"; then
22664      ac_sub_configure=$ac_srcdir/configure.gnu
22665    elif test -f "$ac_srcdir/configure"; then
22666      ac_sub_configure=$ac_srcdir/configure
22667    elif test -f "$ac_srcdir/configure.in"; then
22668      # This should be Cygnus configure.
22669      ac_sub_configure=$ac_aux_dir/configure
22670    else
22671      { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
22672echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
22673      ac_sub_configure=
22674    fi
22675
22676    # The recursion is here.
22677    if test -n "$ac_sub_configure"; then
22678      # Make the cache file name correct relative to the subdirectory.
22679      case $cache_file in
22680      [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
22681      *) # Relative name.
22682	ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
22683      esac
22684
22685      { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
22686echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
22687      # The eval makes quoting arguments work.
22688      eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
22689	   --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
22690	{ { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
22691echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
22692   { (exit 1); exit 1; }; }
22693    fi
22694
22695    cd "$ac_popdir"
22696  done
22697fi
22698
22699