1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.60 for [SAMPLE] [x.xx].
4#
5# Report bugs to <bugs@yourdomain>.
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## M4sh Initialization.  ##
13## --------------------- ##
14
15# Be Bourne compatible
16if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17  emulate sh
18  NULLCMD=:
19  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20  # is contrary to our usage.  Disable this feature.
21  alias -g '${1+"$@"}'='"$@"'
22  setopt NO_GLOB_SUBST
23else
24  case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
25fi
26BIN_SH=xpg4; export BIN_SH # for Tru64
27DUALCASE=1; export DUALCASE # for MKS sh
28
29
30# PATH needs CR
31# Avoid depending upon Character Ranges.
32as_cr_letters='abcdefghijklmnopqrstuvwxyz'
33as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
34as_cr_Letters=$as_cr_letters$as_cr_LETTERS
35as_cr_digits='0123456789'
36as_cr_alnum=$as_cr_Letters$as_cr_digits
37
38# The user is always right.
39if test "${PATH_SEPARATOR+set}" != set; then
40  echo "#! /bin/sh" >conf$$.sh
41  echo  "exit 0"   >>conf$$.sh
42  chmod +x conf$$.sh
43  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
44    PATH_SEPARATOR=';'
45  else
46    PATH_SEPARATOR=:
47  fi
48  rm -f conf$$.sh
49fi
50
51# Support unset when possible.
52if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
53  as_unset=unset
54else
55  as_unset=false
56fi
57
58
59# IFS
60# We need space, tab and new line, in precisely that order.  Quoting is
61# there to prevent editors from complaining about space-tab.
62# (If _AS_PATH_WALK were called with IFS unset, it would disable word
63# splitting by setting IFS to empty value.)
64as_nl='
65'
66IFS=" ""	$as_nl"
67
68# Find who we are.  Look in the path if we contain no directory separator.
69case $0 in
70  *[\\/]* ) as_myself=$0 ;;
71  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
72for as_dir in $PATH
73do
74  IFS=$as_save_IFS
75  test -z "$as_dir" && as_dir=.
76  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
77done
78IFS=$as_save_IFS
79
80     ;;
81esac
82# We did not find ourselves, most probably we were run as `sh COMMAND'
83# in which case we are not to be found in the path.
84if test "x$as_myself" = x; then
85  as_myself=$0
86fi
87if test ! -f "$as_myself"; then
88  echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
89  { (exit 1); exit 1; }
90fi
91
92# Work around bugs in pre-3.0 UWIN ksh.
93for as_var in ENV MAIL MAILPATH
94do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
95done
96PS1='$ '
97PS2='> '
98PS4='+ '
99
100# NLS nuisances.
101for as_var in \
102  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
103  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
104  LC_TELEPHONE LC_TIME
105do
106  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
107    eval $as_var=C; export $as_var
108  else
109    ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
110  fi
111done
112
113# Required to use basename.
114if expr a : '\(a\)' >/dev/null 2>&1 &&
115   test "X`expr 00001 : '.*\(...\)'`" = X001; then
116  as_expr=expr
117else
118  as_expr=false
119fi
120
121if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
122  as_basename=basename
123else
124  as_basename=false
125fi
126
127
128# Name of the executable.
129as_me=`$as_basename -- "$0" ||
130$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
131	 X"$0" : 'X\(//\)$' \| \
132	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
133echo X/"$0" |
134    sed '/^.*\/\([^/][^/]*\)\/*$/{
135	    s//\1/
136	    q
137	  }
138	  /^X\/\(\/\/\)$/{
139	    s//\1/
140	    q
141	  }
142	  /^X\/\(\/\).*/{
143	    s//\1/
144	    q
145	  }
146	  s/.*/./; q'`
147
148# CDPATH.
149$as_unset CDPATH
150
151
152if test "x$CONFIG_SHELL" = x; then
153  if (eval ":") 2>/dev/null; then
154  as_have_required=yes
155else
156  as_have_required=no
157fi
158
159  if test $as_have_required = yes && 	 (eval ":
160(as_func_return () {
161  (exit \$1)
162}
163as_func_success () {
164  as_func_return 0
165}
166as_func_failure () {
167  as_func_return 1
168}
169as_func_ret_success () {
170  return 0
171}
172as_func_ret_failure () {
173  return 1
174}
175
176exitcode=0
177if as_func_success; then
178  :
179else
180  exitcode=1
181  echo as_func_success failed.
182fi
183
184if as_func_failure; then
185  exitcode=1
186  echo as_func_failure succeeded.
187fi
188
189if as_func_ret_success; then
190  :
191else
192  exitcode=1
193  echo as_func_ret_success failed.
194fi
195
196if as_func_ret_failure; then
197  exitcode=1
198  echo as_func_ret_failure succeeded.
199fi
200
201if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
202  :
203else
204  exitcode=1
205  echo positional parameters were not saved.
206fi
207
208test \$exitcode = 0) || { (exit 1); exit 1; }
209
210(
211  as_lineno_1=\$LINENO
212  as_lineno_2=\$LINENO
213  test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
214  test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
215") 2> /dev/null; then
216  :
217else
218  as_candidate_shells=
219    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
220for as_dir in /usr/bin/posix$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221do
222  IFS=$as_save_IFS
223  test -z "$as_dir" && as_dir=.
224  case $as_dir in
225	 /*)
226	   for as_base in sh bash ksh sh5; do
227	     as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
228	   done;;
229       esac
230done
231IFS=$as_save_IFS
232
233
234      for as_shell in $as_candidate_shells $SHELL; do
235	 # Try only shells that exist, to save several forks.
236	 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
237		{ ("$as_shell") 2> /dev/null <<\_ASEOF
238# Be Bourne compatible
239if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
240  emulate sh
241  NULLCMD=:
242  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
243  # is contrary to our usage.  Disable this feature.
244  alias -g '${1+"$@"}'='"$@"'
245  setopt NO_GLOB_SUBST
246else
247  case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
248fi
249BIN_SH=xpg4; export BIN_SH # for Tru64
250DUALCASE=1; export DUALCASE # for MKS sh
251
252:
253_ASEOF
254}; then
255  CONFIG_SHELL=$as_shell
256	       as_have_required=yes
257	       if { "$as_shell" 2> /dev/null <<\_ASEOF
258# Be Bourne compatible
259if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
260  emulate sh
261  NULLCMD=:
262  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
263  # is contrary to our usage.  Disable this feature.
264  alias -g '${1+"$@"}'='"$@"'
265  setopt NO_GLOB_SUBST
266else
267  case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
268fi
269BIN_SH=xpg4; export BIN_SH # for Tru64
270DUALCASE=1; export DUALCASE # for MKS sh
271
272:
273(as_func_return () {
274  (exit $1)
275}
276as_func_success () {
277  as_func_return 0
278}
279as_func_failure () {
280  as_func_return 1
281}
282as_func_ret_success () {
283  return 0
284}
285as_func_ret_failure () {
286  return 1
287}
288
289exitcode=0
290if as_func_success; then
291  :
292else
293  exitcode=1
294  echo as_func_success failed.
295fi
296
297if as_func_failure; then
298  exitcode=1
299  echo as_func_failure succeeded.
300fi
301
302if as_func_ret_success; then
303  :
304else
305  exitcode=1
306  echo as_func_ret_success failed.
307fi
308
309if as_func_ret_failure; then
310  exitcode=1
311  echo as_func_ret_failure succeeded.
312fi
313
314if ( set x; as_func_ret_success y && test x = "$1" ); then
315  :
316else
317  exitcode=1
318  echo positional parameters were not saved.
319fi
320
321test $exitcode = 0) || { (exit 1); exit 1; }
322
323(
324  as_lineno_1=$LINENO
325  as_lineno_2=$LINENO
326  test "x$as_lineno_1" != "x$as_lineno_2" &&
327  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
328
329_ASEOF
330}; then
331  break
332fi
333
334fi
335
336      done
337
338      if test "x$CONFIG_SHELL" != x; then
339  for as_var in BASH_ENV ENV
340        do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
341        done
342        export CONFIG_SHELL
343        exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
344fi
345
346
347    if test $as_have_required = no; then
348  echo This script requires a shell more modern than all the
349      echo shells that I found on your system.  Please install a
350      echo modern shell, or manually run the script under such a
351      echo shell if you do have one.
352      { (exit 1); exit 1; }
353fi
354
355
356fi
357
358fi
359
360
361
362(eval "as_func_return () {
363  (exit \$1)
364}
365as_func_success () {
366  as_func_return 0
367}
368as_func_failure () {
369  as_func_return 1
370}
371as_func_ret_success () {
372  return 0
373}
374as_func_ret_failure () {
375  return 1
376}
377
378exitcode=0
379if as_func_success; then
380  :
381else
382  exitcode=1
383  echo as_func_success failed.
384fi
385
386if as_func_failure; then
387  exitcode=1
388  echo as_func_failure succeeded.
389fi
390
391if as_func_ret_success; then
392  :
393else
394  exitcode=1
395  echo as_func_ret_success failed.
396fi
397
398if as_func_ret_failure; then
399  exitcode=1
400  echo as_func_ret_failure succeeded.
401fi
402
403if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
404  :
405else
406  exitcode=1
407  echo positional parameters were not saved.
408fi
409
410test \$exitcode = 0") || {
411  echo No shell found that supports shell functions.
412  echo Please tell autoconf@gnu.org about your system,
413  echo including any error possibly output before this
414  echo message
415}
416
417
418
419  as_lineno_1=$LINENO
420  as_lineno_2=$LINENO
421  test "x$as_lineno_1" != "x$as_lineno_2" &&
422  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
423
424  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
425  # uniformly replaced by the line number.  The first 'sed' inserts a
426  # line-number line after each line using $LINENO; the second 'sed'
427  # does the real work.  The second script uses 'N' to pair each
428  # line-number line with the line containing $LINENO, and appends
429  # trailing '-' during substitution so that $LINENO is not a special
430  # case at line end.
431  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
432  # scripts with optimization help from Paolo Bonzini.  Blame Lee
433  # E. McMahon (1931-1989) for sed's syntax.  :-)
434  sed -n '
435    p
436    /[$]LINENO/=
437  ' <$as_myself |
438    sed '
439      s/[$]LINENO.*/&-/
440      t lineno
441      b
442      :lineno
443      N
444      :loop
445      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
446      t loop
447      s/-\n.*//
448    ' >$as_me.lineno &&
449  chmod +x "$as_me.lineno" ||
450    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
451   { (exit 1); exit 1; }; }
452
453  # Don't try to exec as it changes $[0], causing all sort of problems
454  # (the dirname of $[0] is not the place where we might find the
455  # original and so on.  Autoconf is especially sensitive to this).
456  . "./$as_me.lineno"
457  # Exit status is that of the last command.
458  exit
459}
460
461
462if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
463  as_dirname=dirname
464else
465  as_dirname=false
466fi
467
468ECHO_C= ECHO_N= ECHO_T=
469case `echo -n x` in
470-n*)
471  case `echo 'x\c'` in
472  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
473  *)   ECHO_C='\c';;
474  esac;;
475*)
476  ECHO_N='-n';;
477esac
478
479if expr a : '\(a\)' >/dev/null 2>&1 &&
480   test "X`expr 00001 : '.*\(...\)'`" = X001; then
481  as_expr=expr
482else
483  as_expr=false
484fi
485
486rm -f conf$$ conf$$.exe conf$$.file
487if test -d conf$$.dir; then
488  rm -f conf$$.dir/conf$$.file
489else
490  rm -f conf$$.dir
491  mkdir conf$$.dir
492fi
493echo >conf$$.file
494if ln -s conf$$.file conf$$ 2>/dev/null; then
495  as_ln_s='ln -s'
496  # ... but there are two gotchas:
497  # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
498  # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
499  # In both cases, we have to default to `cp -p'.
500  ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
501    as_ln_s='cp -p'
502elif ln conf$$.file conf$$ 2>/dev/null; then
503  as_ln_s=ln
504else
505  as_ln_s='cp -p'
506fi
507rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
508rmdir conf$$.dir 2>/dev/null
509
510if mkdir -p . 2>/dev/null; then
511  as_mkdir_p=:
512else
513  test -d ./-p && rmdir ./-p
514  as_mkdir_p=false
515fi
516
517# Find out whether ``test -x'' works.  Don't use a zero-byte file, as
518# systems may use methods other than mode bits to determine executability.
519cat >conf$$.file <<_ASEOF
520#! /bin/sh
521exit 0
522_ASEOF
523chmod +x conf$$.file
524if test -x conf$$.file >/dev/null 2>&1; then
525  as_executable_p="test -x"
526else
527  as_executable_p=:
528fi
529rm -f conf$$.file
530
531# Sed expression to map a string onto a valid CPP name.
532as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
533
534# Sed expression to map a string onto a valid variable name.
535as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
536
537
538
539exec 7<&0 </dev/null 6>&1
540
541# Name of the host.
542# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
543# so uname gets run too.
544ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
545
546#
547# Initializations.
548#
549ac_default_prefix=/usr/local
550ac_clean_files=
551ac_config_libobj_dir=.
552LIBOBJS=
553cross_compiling=no
554subdirs=
555MFLAGS=
556MAKEFLAGS=
557SHELL=${CONFIG_SHELL-/bin/sh}
558
559# Identity of this package.
560PACKAGE_NAME='[SAMPLE]'
561PACKAGE_TARNAME='--sample--'
562PACKAGE_VERSION='[x.xx]'
563PACKAGE_STRING='[SAMPLE] [x.xx]'
564PACKAGE_BUGREPORT='bugs@yourdomain'
565
566ac_unique_file=""Makefile.common.in""
567# Factoring default headers for most tests.
568ac_includes_default="\
569#include <stdio.h>
570#if HAVE_SYS_TYPES_H
571# include <sys/types.h>
572#endif
573#if HAVE_SYS_STAT_H
574# include <sys/stat.h>
575#endif
576#if STDC_HEADERS
577# include <stdlib.h>
578# include <stddef.h>
579#else
580# if HAVE_STDLIB_H
581#  include <stdlib.h>
582# endif
583#endif
584#if HAVE_STRING_H
585# if !STDC_HEADERS && HAVE_MEMORY_H
586#  include <memory.h>
587# endif
588# include <string.h>
589#endif
590#if HAVE_STRINGS_H
591# include <strings.h>
592#endif
593#if HAVE_INTTYPES_H
594# include <inttypes.h>
595#endif
596#if HAVE_STDINT_H
597# include <stdint.h>
598#endif
599#if HAVE_UNISTD_H
600# include <unistd.h>
601#endif"
602
603ac_subst_vars='SHELL
604PATH_SEPARATOR
605PACKAGE_NAME
606PACKAGE_TARNAME
607PACKAGE_VERSION
608PACKAGE_STRING
609PACKAGE_BUGREPORT
610exec_prefix
611prefix
612program_transform_name
613bindir
614sbindir
615libexecdir
616datarootdir
617datadir
618sysconfdir
619sharedstatedir
620localstatedir
621includedir
622oldincludedir
623docdir
624infodir
625htmldir
626dvidir
627pdfdir
628psdir
629libdir
630localedir
631mandir
632DEFS
633ECHO_C
634ECHO_N
635ECHO_T
636LIBS
637build_alias
638host_alias
639target_alias
640LLVM_SRC
641LLVM_OBJ
642LLVM_VERSION
643CC
644CFLAGS
645LDFLAGS
646CPPFLAGS
647ac_ct_CC
648EXEEXT
649OBJEXT
650CXX
651CXXFLAGS
652ac_ct_CXX
653CPP
654ENABLE_POLLY
655LLVM_HAS_POLLY
656subdirs
657build
658build_cpu
659build_vendor
660build_os
661host
662host_cpu
663host_vendor
664host_os
665target
666target_cpu
667target_vendor
668target_os
669OS
670HOST_OS
671TARGET_OS
672LINKALL
673NOLINKALL
674LLVM_ON_UNIX
675LLVM_ON_WIN32
676ARCH
677ENDIAN
678GREP
679EGREP
680LLVM_CROSS_COMPILING
681BUILD_CC
682BUILD_EXEEXT
683BUILD_CXX
684CVSBUILD
685ENABLE_LIBCPP
686ENABLE_OPTIMIZED
687ENABLE_PROFILING
688DISABLE_ASSERTIONS
689ENABLE_EXPENSIVE_CHECKS
690EXPENSIVE_CHECKS
691DEBUG_RUNTIME
692DEBUG_SYMBOLS
693JIT
694TARGET_HAS_JIT
695ENABLE_DOCS
696ENABLE_DOXYGEN
697ENABLE_THREADS
698ENABLE_PTHREADS
699ENABLE_PIC
700ENABLE_SHARED
701ENABLE_EMBED_STDCXX
702ENABLE_TIMESTAMPS
703TARGETS_TO_BUILD
704LLVM_ENUM_TARGETS
705LLVM_ENUM_ASM_PRINTERS
706LLVM_ENUM_ASM_PARSERS
707LLVM_ENUM_DISASSEMBLERS
708OPTIMIZE_OPTION
709EXTRA_OPTIONS
710EXTRA_LD_OPTIONS
711BINUTILS_INCDIR
712NM
713ifGNUmake
714LN_S
715CMP
716CP
717DATE
718FIND
719MKDIR
720MV
721RANLIB
722AR
723RM
724SED
725TAR
726BINPWD
727GRAPHVIZ
728DOT
729FDP
730NEATO
731TWOPI
732CIRCO
733GV
734DOTTY
735XDOT_PY
736INSTALL_PROGRAM
737INSTALL_SCRIPT
738INSTALL_DATA
739BZIP2
740CAT
741DOXYGEN
742GROFF
743GZIPBIN
744POD2HTML
745POD2MAN
746PDFROFF
747RUNTEST
748TCLSH
749ZIP
750OCAMLC
751OCAMLOPT
752OCAMLDEP
753OCAMLDOC
754GAS
755HAVE_LINK_VERSION_SCRIPT
756INSTALL_LTDL_TRUE
757INSTALL_LTDL_FALSE
758CONVENIENCE_LTDL_TRUE
759CONVENIENCE_LTDL_FALSE
760LIBADD_DL
761NO_VARIADIC_MACROS
762NO_MISSING_FIELD_INITIALIZERS
763COVERED_SWITCH_DEFAULT
764USE_UDIS86
765USE_OPROFILE
766HAVE_PTHREAD
767HUGE_VAL_SANITY
768MMAP_FILE
769SHLIBEXT
770SHLIBPATH_VAR
771LLVM_PREFIX
772LLVM_BINDIR
773LLVM_LIBDIR
774LLVM_DATADIR
775LLVM_DOCSDIR
776LLVM_ETCDIR
777LLVM_INCLUDEDIR
778LLVM_INFODIR
779LLVM_MANDIR
780LLVM_CONFIGTIME
781BINDINGS_TO_BUILD
782ALL_BINDINGS
783OCAML_LIBDIR
784ENABLE_VISIBILITY_INLINES_HIDDEN
785RPATH
786RDYNAMIC
787LIBOBJS
788LTLIBOBJS'
789ac_subst_files=''
790      ac_precious_vars='build_alias
791host_alias
792target_alias
793CC
794CFLAGS
795LDFLAGS
796CPPFLAGS
797CXX
798CXXFLAGS
799CCC
800CPP'
801ac_subdirs_all='tools/polly'
802
803# Initialize some variables set by options.
804ac_init_help=
805ac_init_version=false
806# The variables have the same names as the options, with
807# dashes changed to underlines.
808cache_file=/dev/null
809exec_prefix=NONE
810no_create=
811no_recursion=
812prefix=NONE
813program_prefix=NONE
814program_suffix=NONE
815program_transform_name=s,x,x,
816silent=
817site=
818srcdir=
819verbose=
820x_includes=NONE
821x_libraries=NONE
822
823# Installation directory options.
824# These are left unexpanded so users can "make install exec_prefix=/foo"
825# and all the variables that are supposed to be based on exec_prefix
826# by default will actually change.
827# Use braces instead of parens because sh, perl, etc. also accept them.
828# (The list follows the same order as the GNU Coding Standards.)
829bindir='${exec_prefix}/bin'
830sbindir='${exec_prefix}/sbin'
831libexecdir='${exec_prefix}/libexec'
832datarootdir='${prefix}/share'
833datadir='${datarootdir}'
834sysconfdir='${prefix}/etc'
835sharedstatedir='${prefix}/com'
836localstatedir='${prefix}/var'
837includedir='${prefix}/include'
838oldincludedir='/usr/include'
839docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
840infodir='${datarootdir}/info'
841htmldir='${docdir}'
842dvidir='${docdir}'
843pdfdir='${docdir}'
844psdir='${docdir}'
845libdir='${exec_prefix}/lib'
846localedir='${datarootdir}/locale'
847mandir='${datarootdir}/man'
848
849ac_prev=
850ac_dashdash=
851for ac_option
852do
853  # If the previous option needs an argument, assign it.
854  if test -n "$ac_prev"; then
855    eval $ac_prev=\$ac_option
856    ac_prev=
857    continue
858  fi
859
860  case $ac_option in
861  *=*)	ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
862  *)	ac_optarg=yes ;;
863  esac
864
865  # Accept the important Cygnus configure options, so we can diagnose typos.
866
867  case $ac_dashdash$ac_option in
868  --)
869    ac_dashdash=yes ;;
870
871  -bindir | --bindir | --bindi | --bind | --bin | --bi)
872    ac_prev=bindir ;;
873  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
874    bindir=$ac_optarg ;;
875
876  -build | --build | --buil | --bui | --bu)
877    ac_prev=build_alias ;;
878  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
879    build_alias=$ac_optarg ;;
880
881  -cache-file | --cache-file | --cache-fil | --cache-fi \
882  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
883    ac_prev=cache_file ;;
884  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
885  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
886    cache_file=$ac_optarg ;;
887
888  --config-cache | -C)
889    cache_file=config.cache ;;
890
891  -datadir | --datadir | --datadi | --datad)
892    ac_prev=datadir ;;
893  -datadir=* | --datadir=* | --datadi=* | --datad=*)
894    datadir=$ac_optarg ;;
895
896  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
897  | --dataroo | --dataro | --datar)
898    ac_prev=datarootdir ;;
899  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
900  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
901    datarootdir=$ac_optarg ;;
902
903  -disable-* | --disable-*)
904    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
905    # Reject names that are not valid shell variable names.
906    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
907      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
908   { (exit 1); exit 1; }; }
909    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
910    eval enable_$ac_feature=no ;;
911
912  -docdir | --docdir | --docdi | --doc | --do)
913    ac_prev=docdir ;;
914  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
915    docdir=$ac_optarg ;;
916
917  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
918    ac_prev=dvidir ;;
919  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
920    dvidir=$ac_optarg ;;
921
922  -enable-* | --enable-*)
923    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
924    # Reject names that are not valid shell variable names.
925    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
926      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
927   { (exit 1); exit 1; }; }
928    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
929    eval enable_$ac_feature=\$ac_optarg ;;
930
931  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
932  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
933  | --exec | --exe | --ex)
934    ac_prev=exec_prefix ;;
935  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
936  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
937  | --exec=* | --exe=* | --ex=*)
938    exec_prefix=$ac_optarg ;;
939
940  -gas | --gas | --ga | --g)
941    # Obsolete; use --with-gas.
942    with_gas=yes ;;
943
944  -help | --help | --hel | --he | -h)
945    ac_init_help=long ;;
946  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
947    ac_init_help=recursive ;;
948  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
949    ac_init_help=short ;;
950
951  -host | --host | --hos | --ho)
952    ac_prev=host_alias ;;
953  -host=* | --host=* | --hos=* | --ho=*)
954    host_alias=$ac_optarg ;;
955
956  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
957    ac_prev=htmldir ;;
958  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
959  | --ht=*)
960    htmldir=$ac_optarg ;;
961
962  -includedir | --includedir | --includedi | --included | --include \
963  | --includ | --inclu | --incl | --inc)
964    ac_prev=includedir ;;
965  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
966  | --includ=* | --inclu=* | --incl=* | --inc=*)
967    includedir=$ac_optarg ;;
968
969  -infodir | --infodir | --infodi | --infod | --info | --inf)
970    ac_prev=infodir ;;
971  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
972    infodir=$ac_optarg ;;
973
974  -libdir | --libdir | --libdi | --libd)
975    ac_prev=libdir ;;
976  -libdir=* | --libdir=* | --libdi=* | --libd=*)
977    libdir=$ac_optarg ;;
978
979  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
980  | --libexe | --libex | --libe)
981    ac_prev=libexecdir ;;
982  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
983  | --libexe=* | --libex=* | --libe=*)
984    libexecdir=$ac_optarg ;;
985
986  -localedir | --localedir | --localedi | --localed | --locale)
987    ac_prev=localedir ;;
988  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
989    localedir=$ac_optarg ;;
990
991  -localstatedir | --localstatedir | --localstatedi | --localstated \
992  | --localstate | --localstat | --localsta | --localst | --locals)
993    ac_prev=localstatedir ;;
994  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
995  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
996    localstatedir=$ac_optarg ;;
997
998  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
999    ac_prev=mandir ;;
1000  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1001    mandir=$ac_optarg ;;
1002
1003  -nfp | --nfp | --nf)
1004    # Obsolete; use --without-fp.
1005    with_fp=no ;;
1006
1007  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1008  | --no-cr | --no-c | -n)
1009    no_create=yes ;;
1010
1011  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1012  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1013    no_recursion=yes ;;
1014
1015  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1016  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1017  | --oldin | --oldi | --old | --ol | --o)
1018    ac_prev=oldincludedir ;;
1019  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1020  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1021  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1022    oldincludedir=$ac_optarg ;;
1023
1024  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1025    ac_prev=prefix ;;
1026  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1027    prefix=$ac_optarg ;;
1028
1029  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1030  | --program-pre | --program-pr | --program-p)
1031    ac_prev=program_prefix ;;
1032  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1033  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1034    program_prefix=$ac_optarg ;;
1035
1036  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1037  | --program-suf | --program-su | --program-s)
1038    ac_prev=program_suffix ;;
1039  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1040  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1041    program_suffix=$ac_optarg ;;
1042
1043  -program-transform-name | --program-transform-name \
1044  | --program-transform-nam | --program-transform-na \
1045  | --program-transform-n | --program-transform- \
1046  | --program-transform | --program-transfor \
1047  | --program-transfo | --program-transf \
1048  | --program-trans | --program-tran \
1049  | --progr-tra | --program-tr | --program-t)
1050    ac_prev=program_transform_name ;;
1051  -program-transform-name=* | --program-transform-name=* \
1052  | --program-transform-nam=* | --program-transform-na=* \
1053  | --program-transform-n=* | --program-transform-=* \
1054  | --program-transform=* | --program-transfor=* \
1055  | --program-transfo=* | --program-transf=* \
1056  | --program-trans=* | --program-tran=* \
1057  | --progr-tra=* | --program-tr=* | --program-t=*)
1058    program_transform_name=$ac_optarg ;;
1059
1060  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1061    ac_prev=pdfdir ;;
1062  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1063    pdfdir=$ac_optarg ;;
1064
1065  -psdir | --psdir | --psdi | --psd | --ps)
1066    ac_prev=psdir ;;
1067  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1068    psdir=$ac_optarg ;;
1069
1070  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1071  | -silent | --silent | --silen | --sile | --sil)
1072    silent=yes ;;
1073
1074  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1075    ac_prev=sbindir ;;
1076  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1077  | --sbi=* | --sb=*)
1078    sbindir=$ac_optarg ;;
1079
1080  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1081  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1082  | --sharedst | --shareds | --shared | --share | --shar \
1083  | --sha | --sh)
1084    ac_prev=sharedstatedir ;;
1085  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1086  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1087  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1088  | --sha=* | --sh=*)
1089    sharedstatedir=$ac_optarg ;;
1090
1091  -site | --site | --sit)
1092    ac_prev=site ;;
1093  -site=* | --site=* | --sit=*)
1094    site=$ac_optarg ;;
1095
1096  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1097    ac_prev=srcdir ;;
1098  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1099    srcdir=$ac_optarg ;;
1100
1101  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1102  | --syscon | --sysco | --sysc | --sys | --sy)
1103    ac_prev=sysconfdir ;;
1104  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1105  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1106    sysconfdir=$ac_optarg ;;
1107
1108  -target | --target | --targe | --targ | --tar | --ta | --t)
1109    ac_prev=target_alias ;;
1110  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1111    target_alias=$ac_optarg ;;
1112
1113  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1114    verbose=yes ;;
1115
1116  -version | --version | --versio | --versi | --vers | -V)
1117    ac_init_version=: ;;
1118
1119  -with-* | --with-*)
1120    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1121    # Reject names that are not valid shell variable names.
1122    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1123      { echo "$as_me: error: invalid package name: $ac_package" >&2
1124   { (exit 1); exit 1; }; }
1125    ac_package=`echo $ac_package| sed 's/-/_/g'`
1126    eval with_$ac_package=\$ac_optarg ;;
1127
1128  -without-* | --without-*)
1129    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1130    # Reject names that are not valid shell variable names.
1131    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1132      { echo "$as_me: error: invalid package name: $ac_package" >&2
1133   { (exit 1); exit 1; }; }
1134    ac_package=`echo $ac_package | sed 's/-/_/g'`
1135    eval with_$ac_package=no ;;
1136
1137  --x)
1138    # Obsolete; use --with-x.
1139    with_x=yes ;;
1140
1141  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1142  | --x-incl | --x-inc | --x-in | --x-i)
1143    ac_prev=x_includes ;;
1144  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1145  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1146    x_includes=$ac_optarg ;;
1147
1148  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1149  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1150    ac_prev=x_libraries ;;
1151  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1152  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1153    x_libraries=$ac_optarg ;;
1154
1155  -*) { echo "$as_me: error: unrecognized option: $ac_option
1156Try \`$0 --help' for more information." >&2
1157   { (exit 1); exit 1; }; }
1158    ;;
1159
1160  *=*)
1161    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1162    # Reject names that are not valid shell variable names.
1163    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1164      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1165   { (exit 1); exit 1; }; }
1166    eval $ac_envvar=\$ac_optarg
1167    export $ac_envvar ;;
1168
1169  *)
1170    # FIXME: should be removed in autoconf 3.0.
1171    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1172    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1173      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1174    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1175    ;;
1176
1177  esac
1178done
1179
1180if test -n "$ac_prev"; then
1181  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1182  { echo "$as_me: error: missing argument to $ac_option" >&2
1183   { (exit 1); exit 1; }; }
1184fi
1185
1186# Be sure to have absolute directory names.
1187for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1188		datadir sysconfdir sharedstatedir localstatedir includedir \
1189		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1190		libdir localedir mandir
1191do
1192  eval ac_val=\$$ac_var
1193  case $ac_val in
1194    [\\/$]* | ?:[\\/]* )  continue;;
1195    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1196  esac
1197  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1198   { (exit 1); exit 1; }; }
1199done
1200
1201# There might be people who depend on the old broken behavior: `$host'
1202# used to hold the argument of --host etc.
1203# FIXME: To remove some day.
1204build=$build_alias
1205host=$host_alias
1206target=$target_alias
1207
1208# FIXME: To remove some day.
1209if test "x$host_alias" != x; then
1210  if test "x$build_alias" = x; then
1211    cross_compiling=maybe
1212    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1213    If a cross compiler is detected then cross compile mode will be used." >&2
1214  elif test "x$build_alias" != "x$host_alias"; then
1215    cross_compiling=yes
1216  fi
1217fi
1218
1219ac_tool_prefix=
1220test -n "$host_alias" && ac_tool_prefix=$host_alias-
1221
1222test "$silent" = yes && exec 6>/dev/null
1223
1224
1225ac_pwd=`pwd` && test -n "$ac_pwd" &&
1226ac_ls_di=`ls -di .` &&
1227ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1228  { echo "$as_me: error: Working directory cannot be determined" >&2
1229   { (exit 1); exit 1; }; }
1230test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1231  { echo "$as_me: error: pwd does not report name of working directory" >&2
1232   { (exit 1); exit 1; }; }
1233
1234
1235# Find the source files, if location was not specified.
1236if test -z "$srcdir"; then
1237  ac_srcdir_defaulted=yes
1238  # Try the directory containing this script, then the parent directory.
1239  ac_confdir=`$as_dirname -- "$0" ||
1240$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1241	 X"$0" : 'X\(//\)[^/]' \| \
1242	 X"$0" : 'X\(//\)$' \| \
1243	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1244echo X"$0" |
1245    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1246	    s//\1/
1247	    q
1248	  }
1249	  /^X\(\/\/\)[^/].*/{
1250	    s//\1/
1251	    q
1252	  }
1253	  /^X\(\/\/\)$/{
1254	    s//\1/
1255	    q
1256	  }
1257	  /^X\(\/\).*/{
1258	    s//\1/
1259	    q
1260	  }
1261	  s/.*/./; q'`
1262  srcdir=$ac_confdir
1263  if test ! -r "$srcdir/$ac_unique_file"; then
1264    srcdir=..
1265  fi
1266else
1267  ac_srcdir_defaulted=no
1268fi
1269if test ! -r "$srcdir/$ac_unique_file"; then
1270  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1271  { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1272   { (exit 1); exit 1; }; }
1273fi
1274ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1275ac_abs_confdir=`(
1276	cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1277   { (exit 1); exit 1; }; }
1278	pwd)`
1279# When building in place, set srcdir=.
1280if test "$ac_abs_confdir" = "$ac_pwd"; then
1281  srcdir=.
1282fi
1283# Remove unnecessary trailing slashes from srcdir.
1284# Double slashes in file names in object file debugging info
1285# mess up M-x gdb in Emacs.
1286case $srcdir in
1287*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1288esac
1289for ac_var in $ac_precious_vars; do
1290  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1291  eval ac_env_${ac_var}_value=\$${ac_var}
1292  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1293  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1294done
1295
1296#
1297# Report the --help message.
1298#
1299if test "$ac_init_help" = "long"; then
1300  # Omit some internal or obsolete options to make the list less imposing.
1301  # This message is too long to be a string in the A/UX 3.1 sh.
1302  cat <<_ACEOF
1303\`configure' configures [SAMPLE] [x.xx] to adapt to many kinds of systems.
1304
1305Usage: $0 [OPTION]... [VAR=VALUE]...
1306
1307To assign environment variables (e.g., CC, CFLAGS...), specify them as
1308VAR=VALUE.  See below for descriptions of some of the useful variables.
1309
1310Defaults for the options are specified in brackets.
1311
1312Configuration:
1313  -h, --help              display this help and exit
1314      --help=short        display options specific to this package
1315      --help=recursive    display the short help of all the included packages
1316  -V, --version           display version information and exit
1317  -q, --quiet, --silent   do not print \`checking...' messages
1318      --cache-file=FILE   cache test results in FILE [disabled]
1319  -C, --config-cache      alias for \`--cache-file=config.cache'
1320  -n, --no-create         do not create output files
1321      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1322
1323Installation directories:
1324  --prefix=PREFIX         install architecture-independent files in PREFIX
1325			  [$ac_default_prefix]
1326  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1327			  [PREFIX]
1328
1329By default, \`make install' will install all the files in
1330\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1331an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1332for instance \`--prefix=\$HOME'.
1333
1334For better control, use the options below.
1335
1336Fine tuning of the installation directories:
1337  --bindir=DIR           user executables [EPREFIX/bin]
1338  --sbindir=DIR          system admin executables [EPREFIX/sbin]
1339  --libexecdir=DIR       program executables [EPREFIX/libexec]
1340  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1341  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1342  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1343  --libdir=DIR           object code libraries [EPREFIX/lib]
1344  --includedir=DIR       C header files [PREFIX/include]
1345  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1346  --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1347  --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1348  --infodir=DIR          info documentation [DATAROOTDIR/info]
1349  --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1350  --mandir=DIR           man documentation [DATAROOTDIR/man]
1351  --docdir=DIR           documentation root [DATAROOTDIR/doc/--sample--]
1352  --htmldir=DIR          html documentation [DOCDIR]
1353  --dvidir=DIR           dvi documentation [DOCDIR]
1354  --pdfdir=DIR           pdf documentation [DOCDIR]
1355  --psdir=DIR            ps documentation [DOCDIR]
1356_ACEOF
1357
1358  cat <<\_ACEOF
1359
1360System types:
1361  --build=BUILD     configure for building on BUILD [guessed]
1362  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1363  --target=TARGET   configure for building compilers for TARGET [HOST]
1364_ACEOF
1365fi
1366
1367if test -n "$ac_init_help"; then
1368  case $ac_init_help in
1369     short | recursive ) echo "Configuration of [SAMPLE] [x.xx]:";;
1370   esac
1371  cat <<\_ACEOF
1372
1373Optional Features:
1374  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1375  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1376  --enable-polly          Use polly if available (default is YES)
1377  --enable-libcpp         Use libc++ if available (default is NO)
1378  --enable-optimized      Compile with optimizations enabled (default is NO)
1379  --enable-profiling      Compile with profiling enabled (default is NO)
1380  --enable-assertions     Compile with assertion checks enabled (default is
1381                          YES)
1382  --enable-expensive-checks
1383                          Compile with expensive debug checks enabled (default
1384                          is NO)
1385  --enable-debug-runtime  Build runtime libs with debug symbols (default is
1386                          NO)
1387  --enable-debug-symbols  Build compiler with debug symbols (default is NO if
1388                          optimization is on and YES if it's off)
1389  --enable-jit            Enable Just In Time Compiling (default is YES)
1390  --enable-docs           Build documents (default is YES)
1391  --enable-doxygen        Build doxygen documentation (default is NO)
1392  --enable-threads        Use threads if available (default is YES)
1393  --enable-pthreads       Use pthreads if available (default is YES)
1394  --enable-pic            Build LLVM with Position Independent Code (default
1395                          is YES)
1396  --enable-shared         Build a shared library and link tools against it
1397                          (default is NO)
1398  --enable-embed-stdcxx   Build a shared library with embedded libstdc++ for
1399                          Win32 DLL (default is YES)
1400  --enable-timestamps     Enable embedding timestamp information in build
1401                          (default is YES)
1402  --enable-targets        Build specific host targets: all or
1403                          target1,target2,... Valid targets are: host, x86,
1404                          x86_64, sparc, powerpc, arm, mips, spu, hexagon,
1405                          xcore, msp430, nvptx, cbe, and cpp (default=all)
1406  --enable-bindings       Build specific language bindings:
1407                          all,auto,none,{binding-name} (default=auto)
1408  --enable-libffi         Check for the presence of libffi (default is NO)
1409  --enable-ltdl-install   install libltdl
1410
1411Optional Packages:
1412  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1413  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1414  --with-llvmsrc          Location of LLVM Source Code
1415  --with-llvmobj          Location of LLVM Object Code
1416  --with-optimize-option  Select the compiler options to use for optimized
1417                          builds
1418  --with-extra-options    Specify additional options to compile LLVM with
1419  --with-extra-ld-options Specify additional options to link LLVM with
1420  --with-ocaml-libdir     Specify install location for ocaml bindings (default
1421                          is stdlib)
1422  --with-clang-resource-dir
1423                          Relative directory from the Clang binary for
1424                          resource files
1425  --with-c-include-dirs   Colon separated list of directories clang will
1426                          search for headers
1427  --with-gcc-toolchain    Directory where gcc is installed.
1428  --with-binutils-include Specify path to binutils/include/ containing
1429                          plugin-api.h file for gold plugin.
1430  --with-bug-report-url   Specify the URL where bug reports should be
1431                          submitted (default=http://llvm.org/bugs/)
1432  --with-tclinclude       directory where tcl headers are
1433  --with-udis86=<path>    Use udis86 external x86 disassembler library
1434  --with-oprofile=<prefix>
1435                          Tell OProfile >= 0.9.4 how to symbolize JIT output
1436
1437Some influential environment variables:
1438  CC          C compiler command
1439  CFLAGS      C compiler flags
1440  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1441              nonstandard directory <lib dir>
1442  CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1443              you have headers in a nonstandard directory <include dir>
1444  CXX         C++ compiler command
1445  CXXFLAGS    C++ compiler flags
1446  CPP         C preprocessor
1447
1448Use these variables to override the choices made by `configure' or to help
1449it to find libraries and programs with nonstandard names/locations.
1450
1451Report bugs to <bugs@yourdomain>.
1452_ACEOF
1453ac_status=$?
1454fi
1455
1456if test "$ac_init_help" = "recursive"; then
1457  # If there are subdirs, report their specific --help.
1458  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1459    test -d "$ac_dir" || continue
1460    ac_builddir=.
1461
1462case "$ac_dir" in
1463.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1464*)
1465  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1466  # A ".." for each directory in $ac_dir_suffix.
1467  ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1468  case $ac_top_builddir_sub in
1469  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1470  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1471  esac ;;
1472esac
1473ac_abs_top_builddir=$ac_pwd
1474ac_abs_builddir=$ac_pwd$ac_dir_suffix
1475# for backward compatibility:
1476ac_top_builddir=$ac_top_build_prefix
1477
1478case $srcdir in
1479  .)  # We are building in place.
1480    ac_srcdir=.
1481    ac_top_srcdir=$ac_top_builddir_sub
1482    ac_abs_top_srcdir=$ac_pwd ;;
1483  [\\/]* | ?:[\\/]* )  # Absolute name.
1484    ac_srcdir=$srcdir$ac_dir_suffix;
1485    ac_top_srcdir=$srcdir
1486    ac_abs_top_srcdir=$srcdir ;;
1487  *) # Relative name.
1488    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1489    ac_top_srcdir=$ac_top_build_prefix$srcdir
1490    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1491esac
1492ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1493
1494    cd "$ac_dir" || { ac_status=$?; continue; }
1495    # Check for guested configure.
1496    if test -f "$ac_srcdir/configure.gnu"; then
1497      echo &&
1498      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1499    elif test -f "$ac_srcdir/configure"; then
1500      echo &&
1501      $SHELL "$ac_srcdir/configure" --help=recursive
1502    else
1503      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1504    fi || ac_status=$?
1505    cd "$ac_pwd" || { ac_status=$?; break; }
1506  done
1507fi
1508
1509test -n "$ac_init_help" && exit $ac_status
1510if $ac_init_version; then
1511  cat <<\_ACEOF
1512[SAMPLE] configure [x.xx]
1513generated by GNU Autoconf 2.60
1514
1515Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
15162002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1517This configure script is free software; the Free Software Foundation
1518gives unlimited permission to copy, distribute and modify it.
1519_ACEOF
1520  exit
1521fi
1522cat >config.log <<_ACEOF
1523This file contains any messages produced by compilers while
1524running configure, to aid debugging if configure makes a mistake.
1525
1526It was created by [SAMPLE] $as_me [x.xx], which was
1527generated by GNU Autoconf 2.60.  Invocation command line was
1528
1529  $ $0 $@
1530
1531_ACEOF
1532exec 5>>config.log
1533{
1534cat <<_ASUNAME
1535## --------- ##
1536## Platform. ##
1537## --------- ##
1538
1539hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1540uname -m = `(uname -m) 2>/dev/null || echo unknown`
1541uname -r = `(uname -r) 2>/dev/null || echo unknown`
1542uname -s = `(uname -s) 2>/dev/null || echo unknown`
1543uname -v = `(uname -v) 2>/dev/null || echo unknown`
1544
1545/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1546/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1547
1548/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1549/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1550/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1551/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1552/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1553/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1554/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1555
1556_ASUNAME
1557
1558as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1559for as_dir in $PATH
1560do
1561  IFS=$as_save_IFS
1562  test -z "$as_dir" && as_dir=.
1563  echo "PATH: $as_dir"
1564done
1565IFS=$as_save_IFS
1566
1567} >&5
1568
1569cat >&5 <<_ACEOF
1570
1571
1572## ----------- ##
1573## Core tests. ##
1574## ----------- ##
1575
1576_ACEOF
1577
1578
1579# Keep a trace of the command line.
1580# Strip out --no-create and --no-recursion so they do not pile up.
1581# Strip out --silent because we don't want to record it for future runs.
1582# Also quote any args containing shell meta-characters.
1583# Make two passes to allow for proper duplicate-argument suppression.
1584ac_configure_args=
1585ac_configure_args0=
1586ac_configure_args1=
1587ac_must_keep_next=false
1588for ac_pass in 1 2
1589do
1590  for ac_arg
1591  do
1592    case $ac_arg in
1593    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1594    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1595    | -silent | --silent | --silen | --sile | --sil)
1596      continue ;;
1597    *\'*)
1598      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1599    esac
1600    case $ac_pass in
1601    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1602    2)
1603      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1604      if test $ac_must_keep_next = true; then
1605	ac_must_keep_next=false # Got value, back to normal.
1606      else
1607	case $ac_arg in
1608	  *=* | --config-cache | -C | -disable-* | --disable-* \
1609	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1610	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1611	  | -with-* | --with-* | -without-* | --without-* | --x)
1612	    case "$ac_configure_args0 " in
1613	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1614	    esac
1615	    ;;
1616	  -* ) ac_must_keep_next=true ;;
1617	esac
1618      fi
1619      ac_configure_args="$ac_configure_args '$ac_arg'"
1620      ;;
1621    esac
1622  done
1623done
1624$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1625$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1626
1627# When interrupted or exit'd, cleanup temporary files, and complete
1628# config.log.  We remove comments because anyway the quotes in there
1629# would cause problems or look ugly.
1630# WARNING: Use '\'' to represent an apostrophe within the trap.
1631# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1632trap 'exit_status=$?
1633  # Save into config.log some information that might help in debugging.
1634  {
1635    echo
1636
1637    cat <<\_ASBOX
1638## ---------------- ##
1639## Cache variables. ##
1640## ---------------- ##
1641_ASBOX
1642    echo
1643    # The following way of writing the cache mishandles newlines in values,
1644(
1645  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1646    eval ac_val=\$$ac_var
1647    case $ac_val in #(
1648    *${as_nl}*)
1649      case $ac_var in #(
1650      *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1651echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1652      esac
1653      case $ac_var in #(
1654      _ | IFS | as_nl) ;; #(
1655      *) $as_unset $ac_var ;;
1656      esac ;;
1657    esac
1658  done
1659  (set) 2>&1 |
1660    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1661    *${as_nl}ac_space=\ *)
1662      sed -n \
1663	"s/'\''/'\''\\\\'\'''\''/g;
1664	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1665      ;; #(
1666    *)
1667      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1668      ;;
1669    esac |
1670    sort
1671)
1672    echo
1673
1674    cat <<\_ASBOX
1675## ----------------- ##
1676## Output variables. ##
1677## ----------------- ##
1678_ASBOX
1679    echo
1680    for ac_var in $ac_subst_vars
1681    do
1682      eval ac_val=\$$ac_var
1683      case $ac_val in
1684      *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1685      esac
1686      echo "$ac_var='\''$ac_val'\''"
1687    done | sort
1688    echo
1689
1690    if test -n "$ac_subst_files"; then
1691      cat <<\_ASBOX
1692## ------------------- ##
1693## File substitutions. ##
1694## ------------------- ##
1695_ASBOX
1696      echo
1697      for ac_var in $ac_subst_files
1698      do
1699	eval ac_val=\$$ac_var
1700	case $ac_val in
1701	*\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1702	esac
1703	echo "$ac_var='\''$ac_val'\''"
1704      done | sort
1705      echo
1706    fi
1707
1708    if test -s confdefs.h; then
1709      cat <<\_ASBOX
1710## ----------- ##
1711## confdefs.h. ##
1712## ----------- ##
1713_ASBOX
1714      echo
1715      cat confdefs.h
1716      echo
1717    fi
1718    test "$ac_signal" != 0 &&
1719      echo "$as_me: caught signal $ac_signal"
1720    echo "$as_me: exit $exit_status"
1721  } >&5
1722  rm -f core *.core core.conftest.* &&
1723    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1724    exit $exit_status
1725' 0
1726for ac_signal in 1 2 13 15; do
1727  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1728done
1729ac_signal=0
1730
1731# confdefs.h avoids OS command line length limits that DEFS can exceed.
1732rm -f -r conftest* confdefs.h
1733
1734# Predefined preprocessor variables.
1735
1736cat >>confdefs.h <<_ACEOF
1737#define PACKAGE_NAME "$PACKAGE_NAME"
1738_ACEOF
1739
1740
1741cat >>confdefs.h <<_ACEOF
1742#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1743_ACEOF
1744
1745
1746cat >>confdefs.h <<_ACEOF
1747#define PACKAGE_VERSION "$PACKAGE_VERSION"
1748_ACEOF
1749
1750
1751cat >>confdefs.h <<_ACEOF
1752#define PACKAGE_STRING "$PACKAGE_STRING"
1753_ACEOF
1754
1755
1756cat >>confdefs.h <<_ACEOF
1757#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1758_ACEOF
1759
1760
1761# Let the site file select an alternate cache file if it wants to.
1762# Prefer explicitly selected file to automatically selected ones.
1763if test -n "$CONFIG_SITE"; then
1764  set x "$CONFIG_SITE"
1765elif test "x$prefix" != xNONE; then
1766  set x "$prefix/share/config.site" "$prefix/etc/config.site"
1767else
1768  set x "$ac_default_prefix/share/config.site" \
1769	"$ac_default_prefix/etc/config.site"
1770fi
1771shift
1772for ac_site_file
1773do
1774  if test -r "$ac_site_file"; then
1775    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1776echo "$as_me: loading site script $ac_site_file" >&6;}
1777    sed 's/^/| /' "$ac_site_file" >&5
1778    . "$ac_site_file"
1779  fi
1780done
1781
1782if test -r "$cache_file"; then
1783  # Some versions of bash will fail to source /dev/null (special
1784  # files actually), so we avoid doing that.
1785  if test -f "$cache_file"; then
1786    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1787echo "$as_me: loading cache $cache_file" >&6;}
1788    case $cache_file in
1789      [\\/]* | ?:[\\/]* ) . "$cache_file";;
1790      *)                      . "./$cache_file";;
1791    esac
1792  fi
1793else
1794  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1795echo "$as_me: creating cache $cache_file" >&6;}
1796  >$cache_file
1797fi
1798
1799# Check that the precious variables saved in the cache have kept the same
1800# value.
1801ac_cache_corrupted=false
1802for ac_var in $ac_precious_vars; do
1803  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1804  eval ac_new_set=\$ac_env_${ac_var}_set
1805  eval ac_old_val=\$ac_cv_env_${ac_var}_value
1806  eval ac_new_val=\$ac_env_${ac_var}_value
1807  case $ac_old_set,$ac_new_set in
1808    set,)
1809      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1810echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1811      ac_cache_corrupted=: ;;
1812    ,set)
1813      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1814echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1815      ac_cache_corrupted=: ;;
1816    ,);;
1817    *)
1818      if test "x$ac_old_val" != "x$ac_new_val"; then
1819	{ echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1820echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1821	{ echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1822echo "$as_me:   former value:  $ac_old_val" >&2;}
1823	{ echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1824echo "$as_me:   current value: $ac_new_val" >&2;}
1825	ac_cache_corrupted=:
1826      fi;;
1827  esac
1828  # Pass precious variables to config.status.
1829  if test "$ac_new_set" = set; then
1830    case $ac_new_val in
1831    *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1832    *) ac_arg=$ac_var=$ac_new_val ;;
1833    esac
1834    case " $ac_configure_args " in
1835      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1836      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1837    esac
1838  fi
1839done
1840if $ac_cache_corrupted; then
1841  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1842echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1843  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1844echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1845   { (exit 1); exit 1; }; }
1846fi
1847
1848
1849
1850
1851
1852
1853
1854
1855
1856
1857
1858
1859
1860
1861
1862
1863
1864
1865
1866
1867
1868
1869
1870
1871
1872ac_ext=c
1873ac_cpp='$CPP $CPPFLAGS'
1874ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1875ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1876ac_compiler_gnu=$ac_cv_c_compiler_gnu
1877
1878
1879
1880LLVM_SRC_ROOT="../.."
1881LLVM_OBJ_ROOT="../.."
1882
1883LLVM_ABS_SRC_ROOT="`cd $srcdir ; cd $LLVM_SRC_ROOT ; pwd`"
1884LLVM_ABS_OBJ_ROOT="`cd $LLVM_OBJ_ROOT ; pwd`"
1885
1886
1887# Check whether --with-llvmsrc was given.
1888if test "${with_llvmsrc+set}" = set; then
1889  withval=$with_llvmsrc; llvm_src="$withval"
1890else
1891  llvm_src="$LLVM_ABS_SRC_ROOT"
1892fi
1893
1894  LLVM_SRC=$llvm_src
1895
1896
1897# Check whether --with-llvmobj was given.
1898if test "${with_llvmobj+set}" = set; then
1899  withval=$with_llvmobj; llvm_obj="$withval"
1900else
1901  llvm_obj="$LLVM_ABS_OBJ_ROOT"
1902fi
1903
1904  LLVM_OBJ=$llvm_obj
1905
1906  ac_config_commands="$ac_config_commands setup"
1907
1908
1909
1910{ echo "$as_me:$LINENO: checking llvm-config" >&5
1911echo $ECHO_N "checking llvm-config... $ECHO_C" >&6; }
1912llvm_config_path="`ls -1 $llvm_obj/*/bin/llvm-config 2> /dev/null | head -1`"
1913if ! test -f "$llvm_config_path" ; then
1914   llvm_config_path="no"
1915fi
1916{ echo "$as_me:$LINENO: result: $llvm_config_path" >&5
1917echo "${ECHO_T}$llvm_config_path" >&6; }
1918
1919{ echo "$as_me:$LINENO: checking LLVM package version" >&5
1920echo $ECHO_N "checking LLVM package version... $ECHO_C" >&6; }
1921if test "$llvm_config_path" != no ; then
1922  llvm_package_version=`$llvm_config_path --version`
1923else
1924  llvm_package_version="unknown";
1925fi
1926{ echo "$as_me:$LINENO: result: $llvm_package_version" >&5
1927echo "${ECHO_T}$llvm_package_version" >&6; }
1928LLVM_VERSION=$llvm_package_version
1929
1930
1931
1932
1933ac_aux_dir=
1934for ac_dir in autoconf "$srcdir"/autoconf; do
1935  if test -f "$ac_dir/install-sh"; then
1936    ac_aux_dir=$ac_dir
1937    ac_install_sh="$ac_aux_dir/install-sh -c"
1938    break
1939  elif test -f "$ac_dir/install.sh"; then
1940    ac_aux_dir=$ac_dir
1941    ac_install_sh="$ac_aux_dir/install.sh -c"
1942    break
1943  elif test -f "$ac_dir/shtool"; then
1944    ac_aux_dir=$ac_dir
1945    ac_install_sh="$ac_aux_dir/shtool install -c"
1946    break
1947  fi
1948done
1949if test -z "$ac_aux_dir"; then
1950  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
1951echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
1952   { (exit 1); exit 1; }; }
1953fi
1954
1955# These three variables are undocumented and unsupported,
1956# and are intended to be withdrawn in a future Autoconf release.
1957# They can cause serious problems if a builder's source tree is in a directory
1958# whose full name contains unusual characters.
1959ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
1960ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
1961ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
1962
1963
1964
1965
1966ac_ext=c
1967ac_cpp='$CPP $CPPFLAGS'
1968ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1969ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1970ac_compiler_gnu=$ac_cv_c_compiler_gnu
1971if test -n "$ac_tool_prefix"; then
1972  for ac_prog in clang llvm-gcc gcc
1973  do
1974    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1975set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1976{ echo "$as_me:$LINENO: checking for $ac_word" >&5
1977echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1978if test "${ac_cv_prog_CC+set}" = set; then
1979  echo $ECHO_N "(cached) $ECHO_C" >&6
1980else
1981  if test -n "$CC"; then
1982  ac_cv_prog_CC="$CC" # Let the user override the test.
1983else
1984as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1985for as_dir in $PATH
1986do
1987  IFS=$as_save_IFS
1988  test -z "$as_dir" && as_dir=.
1989  for ac_exec_ext in '' $ac_executable_extensions; do
1990  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
1991    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1992    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1993    break 2
1994  fi
1995done
1996done
1997IFS=$as_save_IFS
1998
1999fi
2000fi
2001CC=$ac_cv_prog_CC
2002if test -n "$CC"; then
2003  { echo "$as_me:$LINENO: result: $CC" >&5
2004echo "${ECHO_T}$CC" >&6; }
2005else
2006  { echo "$as_me:$LINENO: result: no" >&5
2007echo "${ECHO_T}no" >&6; }
2008fi
2009
2010
2011    test -n "$CC" && break
2012  done
2013fi
2014if test -z "$CC"; then
2015  ac_ct_CC=$CC
2016  for ac_prog in clang llvm-gcc gcc
2017do
2018  # Extract the first word of "$ac_prog", so it can be a program name with args.
2019set dummy $ac_prog; ac_word=$2
2020{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2021echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2022if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2023  echo $ECHO_N "(cached) $ECHO_C" >&6
2024else
2025  if test -n "$ac_ct_CC"; then
2026  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2027else
2028as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2029for as_dir in $PATH
2030do
2031  IFS=$as_save_IFS
2032  test -z "$as_dir" && as_dir=.
2033  for ac_exec_ext in '' $ac_executable_extensions; do
2034  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2035    ac_cv_prog_ac_ct_CC="$ac_prog"
2036    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2037    break 2
2038  fi
2039done
2040done
2041IFS=$as_save_IFS
2042
2043fi
2044fi
2045ac_ct_CC=$ac_cv_prog_ac_ct_CC
2046if test -n "$ac_ct_CC"; then
2047  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2048echo "${ECHO_T}$ac_ct_CC" >&6; }
2049else
2050  { echo "$as_me:$LINENO: result: no" >&5
2051echo "${ECHO_T}no" >&6; }
2052fi
2053
2054
2055  test -n "$ac_ct_CC" && break
2056done
2057
2058  if test "x$ac_ct_CC" = x; then
2059    CC=""
2060  else
2061    case $cross_compiling:$ac_tool_warned in
2062yes:)
2063{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2064whose name does not start with the host triplet.  If you think this
2065configuration is useful to you, please write to autoconf@gnu.org." >&5
2066echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2067whose name does not start with the host triplet.  If you think this
2068configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2069ac_tool_warned=yes ;;
2070esac
2071    CC=$ac_ct_CC
2072  fi
2073fi
2074
2075
2076test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2077See \`config.log' for more details." >&5
2078echo "$as_me: error: no acceptable C compiler found in \$PATH
2079See \`config.log' for more details." >&2;}
2080   { (exit 1); exit 1; }; }
2081
2082# Provide some information about the compiler.
2083echo "$as_me:$LINENO: checking for C compiler version" >&5
2084ac_compiler=`set X $ac_compile; echo $2`
2085{ (ac_try="$ac_compiler --version >&5"
2086case "(($ac_try" in
2087  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2088  *) ac_try_echo=$ac_try;;
2089esac
2090eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2091  (eval "$ac_compiler --version >&5") 2>&5
2092  ac_status=$?
2093  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2094  (exit $ac_status); }
2095{ (ac_try="$ac_compiler -v >&5"
2096case "(($ac_try" in
2097  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2098  *) ac_try_echo=$ac_try;;
2099esac
2100eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2101  (eval "$ac_compiler -v >&5") 2>&5
2102  ac_status=$?
2103  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2104  (exit $ac_status); }
2105{ (ac_try="$ac_compiler -V >&5"
2106case "(($ac_try" in
2107  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2108  *) ac_try_echo=$ac_try;;
2109esac
2110eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2111  (eval "$ac_compiler -V >&5") 2>&5
2112  ac_status=$?
2113  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2114  (exit $ac_status); }
2115
2116cat >conftest.$ac_ext <<_ACEOF
2117/* confdefs.h.  */
2118_ACEOF
2119cat confdefs.h >>conftest.$ac_ext
2120cat >>conftest.$ac_ext <<_ACEOF
2121/* end confdefs.h.  */
2122
2123int
2124main ()
2125{
2126
2127  ;
2128  return 0;
2129}
2130_ACEOF
2131ac_clean_files_save=$ac_clean_files
2132ac_clean_files="$ac_clean_files a.out a.exe b.out"
2133# Try to create an executable without -o first, disregard a.out.
2134# It will help us diagnose broken compilers, and finding out an intuition
2135# of exeext.
2136{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2137echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2138ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2139#
2140# List of possible output files, starting from the most likely.
2141# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2142# only as a last resort.  b.out is created by i960 compilers.
2143ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2144#
2145# The IRIX 6 linker writes into existing files which may not be
2146# executable, retaining their permissions.  Remove them first so a
2147# subsequent execution test works.
2148ac_rmfiles=
2149for ac_file in $ac_files
2150do
2151  case $ac_file in
2152    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2153    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2154  esac
2155done
2156rm -f $ac_rmfiles
2157
2158if { (ac_try="$ac_link_default"
2159case "(($ac_try" in
2160  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2161  *) ac_try_echo=$ac_try;;
2162esac
2163eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2164  (eval "$ac_link_default") 2>&5
2165  ac_status=$?
2166  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2167  (exit $ac_status); }; then
2168  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2169# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2170# in a Makefile.  We should not override ac_cv_exeext if it was cached,
2171# so that the user can short-circuit this test for compilers unknown to
2172# Autoconf.
2173for ac_file in $ac_files
2174do
2175  test -f "$ac_file" || continue
2176  case $ac_file in
2177    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2178	;;
2179    [ab].out )
2180	# We found the default executable, but exeext='' is most
2181	# certainly right.
2182	break;;
2183    *.* )
2184        if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2185	then :; else
2186	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2187	fi
2188	# We set ac_cv_exeext here because the later test for it is not
2189	# safe: cross compilers may not add the suffix if given an `-o'
2190	# argument, so we may need to know it at that point already.
2191	# Even if this section looks crufty: it has the advantage of
2192	# actually working.
2193	break;;
2194    * )
2195	break;;
2196  esac
2197done
2198test "$ac_cv_exeext" = no && ac_cv_exeext=
2199
2200else
2201  echo "$as_me: failed program was:" >&5
2202sed 's/^/| /' conftest.$ac_ext >&5
2203
2204{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2205See \`config.log' for more details." >&5
2206echo "$as_me: error: C compiler cannot create executables
2207See \`config.log' for more details." >&2;}
2208   { (exit 77); exit 77; }; }
2209fi
2210
2211ac_exeext=$ac_cv_exeext
2212{ echo "$as_me:$LINENO: result: $ac_file" >&5
2213echo "${ECHO_T}$ac_file" >&6; }
2214
2215# Check that the compiler produces executables we can run.  If not, either
2216# the compiler is broken, or we cross compile.
2217{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2218echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2219# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2220# If not cross compiling, check that we can run a simple program.
2221if test "$cross_compiling" != yes; then
2222  if { ac_try='./$ac_file'
2223  { (case "(($ac_try" in
2224  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2225  *) ac_try_echo=$ac_try;;
2226esac
2227eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2228  (eval "$ac_try") 2>&5
2229  ac_status=$?
2230  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2231  (exit $ac_status); }; }; then
2232    cross_compiling=no
2233  else
2234    if test "$cross_compiling" = maybe; then
2235	cross_compiling=yes
2236    else
2237	{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2238If you meant to cross compile, use \`--host'.
2239See \`config.log' for more details." >&5
2240echo "$as_me: error: cannot run C compiled programs.
2241If you meant to cross compile, use \`--host'.
2242See \`config.log' for more details." >&2;}
2243   { (exit 1); exit 1; }; }
2244    fi
2245  fi
2246fi
2247{ echo "$as_me:$LINENO: result: yes" >&5
2248echo "${ECHO_T}yes" >&6; }
2249
2250rm -f a.out a.exe conftest$ac_cv_exeext b.out
2251ac_clean_files=$ac_clean_files_save
2252# Check that the compiler produces executables we can run.  If not, either
2253# the compiler is broken, or we cross compile.
2254{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2255echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2256{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
2257echo "${ECHO_T}$cross_compiling" >&6; }
2258
2259{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
2260echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2261if { (ac_try="$ac_link"
2262case "(($ac_try" in
2263  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2264  *) ac_try_echo=$ac_try;;
2265esac
2266eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2267  (eval "$ac_link") 2>&5
2268  ac_status=$?
2269  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2270  (exit $ac_status); }; then
2271  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2272# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2273# work properly (i.e., refer to `conftest.exe'), while it won't with
2274# `rm'.
2275for ac_file in conftest.exe conftest conftest.*; do
2276  test -f "$ac_file" || continue
2277  case $ac_file in
2278    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2279    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2280	  break;;
2281    * ) break;;
2282  esac
2283done
2284else
2285  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2286See \`config.log' for more details." >&5
2287echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2288See \`config.log' for more details." >&2;}
2289   { (exit 1); exit 1; }; }
2290fi
2291
2292rm -f conftest$ac_cv_exeext
2293{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2294echo "${ECHO_T}$ac_cv_exeext" >&6; }
2295
2296rm -f conftest.$ac_ext
2297EXEEXT=$ac_cv_exeext
2298ac_exeext=$EXEEXT
2299{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
2300echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2301if test "${ac_cv_objext+set}" = set; then
2302  echo $ECHO_N "(cached) $ECHO_C" >&6
2303else
2304  cat >conftest.$ac_ext <<_ACEOF
2305/* confdefs.h.  */
2306_ACEOF
2307cat confdefs.h >>conftest.$ac_ext
2308cat >>conftest.$ac_ext <<_ACEOF
2309/* end confdefs.h.  */
2310
2311int
2312main ()
2313{
2314
2315  ;
2316  return 0;
2317}
2318_ACEOF
2319rm -f conftest.o conftest.obj
2320if { (ac_try="$ac_compile"
2321case "(($ac_try" in
2322  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2323  *) ac_try_echo=$ac_try;;
2324esac
2325eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2326  (eval "$ac_compile") 2>&5
2327  ac_status=$?
2328  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2329  (exit $ac_status); }; then
2330  for ac_file in conftest.o conftest.obj conftest.*; do
2331  test -f "$ac_file" || continue;
2332  case $ac_file in
2333    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2334    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2335       break;;
2336  esac
2337done
2338else
2339  echo "$as_me: failed program was:" >&5
2340sed 's/^/| /' conftest.$ac_ext >&5
2341
2342{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2343See \`config.log' for more details." >&5
2344echo "$as_me: error: cannot compute suffix of object files: cannot compile
2345See \`config.log' for more details." >&2;}
2346   { (exit 1); exit 1; }; }
2347fi
2348
2349rm -f conftest.$ac_cv_objext conftest.$ac_ext
2350fi
2351{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2352echo "${ECHO_T}$ac_cv_objext" >&6; }
2353OBJEXT=$ac_cv_objext
2354ac_objext=$OBJEXT
2355{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2356echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2357if test "${ac_cv_c_compiler_gnu+set}" = set; then
2358  echo $ECHO_N "(cached) $ECHO_C" >&6
2359else
2360  cat >conftest.$ac_ext <<_ACEOF
2361/* confdefs.h.  */
2362_ACEOF
2363cat confdefs.h >>conftest.$ac_ext
2364cat >>conftest.$ac_ext <<_ACEOF
2365/* end confdefs.h.  */
2366
2367int
2368main ()
2369{
2370#ifndef __GNUC__
2371       choke me
2372#endif
2373
2374  ;
2375  return 0;
2376}
2377_ACEOF
2378rm -f conftest.$ac_objext
2379if { (ac_try="$ac_compile"
2380case "(($ac_try" in
2381  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2382  *) ac_try_echo=$ac_try;;
2383esac
2384eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2385  (eval "$ac_compile") 2>conftest.er1
2386  ac_status=$?
2387  grep -v '^ *+' conftest.er1 >conftest.err
2388  rm -f conftest.er1
2389  cat conftest.err >&5
2390  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2391  (exit $ac_status); } &&
2392	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2393  { (case "(($ac_try" in
2394  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2395  *) ac_try_echo=$ac_try;;
2396esac
2397eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2398  (eval "$ac_try") 2>&5
2399  ac_status=$?
2400  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2401  (exit $ac_status); }; } &&
2402	 { ac_try='test -s conftest.$ac_objext'
2403  { (case "(($ac_try" in
2404  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2405  *) ac_try_echo=$ac_try;;
2406esac
2407eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2408  (eval "$ac_try") 2>&5
2409  ac_status=$?
2410  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2411  (exit $ac_status); }; }; then
2412  ac_compiler_gnu=yes
2413else
2414  echo "$as_me: failed program was:" >&5
2415sed 's/^/| /' conftest.$ac_ext >&5
2416
2417	ac_compiler_gnu=no
2418fi
2419
2420rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2421ac_cv_c_compiler_gnu=$ac_compiler_gnu
2422
2423fi
2424{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2425echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2426GCC=`test $ac_compiler_gnu = yes && echo yes`
2427ac_test_CFLAGS=${CFLAGS+set}
2428ac_save_CFLAGS=$CFLAGS
2429{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2430echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2431if test "${ac_cv_prog_cc_g+set}" = set; then
2432  echo $ECHO_N "(cached) $ECHO_C" >&6
2433else
2434  ac_save_c_werror_flag=$ac_c_werror_flag
2435   ac_c_werror_flag=yes
2436   ac_cv_prog_cc_g=no
2437   CFLAGS="-g"
2438   cat >conftest.$ac_ext <<_ACEOF
2439/* confdefs.h.  */
2440_ACEOF
2441cat confdefs.h >>conftest.$ac_ext
2442cat >>conftest.$ac_ext <<_ACEOF
2443/* end confdefs.h.  */
2444
2445int
2446main ()
2447{
2448
2449  ;
2450  return 0;
2451}
2452_ACEOF
2453rm -f conftest.$ac_objext
2454if { (ac_try="$ac_compile"
2455case "(($ac_try" in
2456  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2457  *) ac_try_echo=$ac_try;;
2458esac
2459eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2460  (eval "$ac_compile") 2>conftest.er1
2461  ac_status=$?
2462  grep -v '^ *+' conftest.er1 >conftest.err
2463  rm -f conftest.er1
2464  cat conftest.err >&5
2465  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2466  (exit $ac_status); } &&
2467	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2468  { (case "(($ac_try" in
2469  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2470  *) ac_try_echo=$ac_try;;
2471esac
2472eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2473  (eval "$ac_try") 2>&5
2474  ac_status=$?
2475  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2476  (exit $ac_status); }; } &&
2477	 { ac_try='test -s conftest.$ac_objext'
2478  { (case "(($ac_try" in
2479  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2480  *) ac_try_echo=$ac_try;;
2481esac
2482eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2483  (eval "$ac_try") 2>&5
2484  ac_status=$?
2485  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2486  (exit $ac_status); }; }; then
2487  ac_cv_prog_cc_g=yes
2488else
2489  echo "$as_me: failed program was:" >&5
2490sed 's/^/| /' conftest.$ac_ext >&5
2491
2492	CFLAGS=""
2493      cat >conftest.$ac_ext <<_ACEOF
2494/* confdefs.h.  */
2495_ACEOF
2496cat confdefs.h >>conftest.$ac_ext
2497cat >>conftest.$ac_ext <<_ACEOF
2498/* end confdefs.h.  */
2499
2500int
2501main ()
2502{
2503
2504  ;
2505  return 0;
2506}
2507_ACEOF
2508rm -f conftest.$ac_objext
2509if { (ac_try="$ac_compile"
2510case "(($ac_try" in
2511  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2512  *) ac_try_echo=$ac_try;;
2513esac
2514eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2515  (eval "$ac_compile") 2>conftest.er1
2516  ac_status=$?
2517  grep -v '^ *+' conftest.er1 >conftest.err
2518  rm -f conftest.er1
2519  cat conftest.err >&5
2520  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2521  (exit $ac_status); } &&
2522	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2523  { (case "(($ac_try" in
2524  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2525  *) ac_try_echo=$ac_try;;
2526esac
2527eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2528  (eval "$ac_try") 2>&5
2529  ac_status=$?
2530  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2531  (exit $ac_status); }; } &&
2532	 { ac_try='test -s conftest.$ac_objext'
2533  { (case "(($ac_try" in
2534  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2535  *) ac_try_echo=$ac_try;;
2536esac
2537eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2538  (eval "$ac_try") 2>&5
2539  ac_status=$?
2540  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2541  (exit $ac_status); }; }; then
2542  :
2543else
2544  echo "$as_me: failed program was:" >&5
2545sed 's/^/| /' conftest.$ac_ext >&5
2546
2547	ac_c_werror_flag=$ac_save_c_werror_flag
2548	 CFLAGS="-g"
2549	 cat >conftest.$ac_ext <<_ACEOF
2550/* confdefs.h.  */
2551_ACEOF
2552cat confdefs.h >>conftest.$ac_ext
2553cat >>conftest.$ac_ext <<_ACEOF
2554/* end confdefs.h.  */
2555
2556int
2557main ()
2558{
2559
2560  ;
2561  return 0;
2562}
2563_ACEOF
2564rm -f conftest.$ac_objext
2565if { (ac_try="$ac_compile"
2566case "(($ac_try" in
2567  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2568  *) ac_try_echo=$ac_try;;
2569esac
2570eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2571  (eval "$ac_compile") 2>conftest.er1
2572  ac_status=$?
2573  grep -v '^ *+' conftest.er1 >conftest.err
2574  rm -f conftest.er1
2575  cat conftest.err >&5
2576  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2577  (exit $ac_status); } &&
2578	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2579  { (case "(($ac_try" in
2580  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2581  *) ac_try_echo=$ac_try;;
2582esac
2583eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2584  (eval "$ac_try") 2>&5
2585  ac_status=$?
2586  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2587  (exit $ac_status); }; } &&
2588	 { ac_try='test -s conftest.$ac_objext'
2589  { (case "(($ac_try" in
2590  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2591  *) ac_try_echo=$ac_try;;
2592esac
2593eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2594  (eval "$ac_try") 2>&5
2595  ac_status=$?
2596  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2597  (exit $ac_status); }; }; then
2598  ac_cv_prog_cc_g=yes
2599else
2600  echo "$as_me: failed program was:" >&5
2601sed 's/^/| /' conftest.$ac_ext >&5
2602
2603
2604fi
2605
2606rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2607fi
2608
2609rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2610fi
2611
2612rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2613   ac_c_werror_flag=$ac_save_c_werror_flag
2614fi
2615{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2616echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2617if test "$ac_test_CFLAGS" = set; then
2618  CFLAGS=$ac_save_CFLAGS
2619elif test $ac_cv_prog_cc_g = yes; then
2620  if test "$GCC" = yes; then
2621    CFLAGS="-g -O2"
2622  else
2623    CFLAGS="-g"
2624  fi
2625else
2626  if test "$GCC" = yes; then
2627    CFLAGS="-O2"
2628  else
2629    CFLAGS=
2630  fi
2631fi
2632{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2633echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2634if test "${ac_cv_prog_cc_c89+set}" = set; then
2635  echo $ECHO_N "(cached) $ECHO_C" >&6
2636else
2637  ac_cv_prog_cc_c89=no
2638ac_save_CC=$CC
2639cat >conftest.$ac_ext <<_ACEOF
2640/* confdefs.h.  */
2641_ACEOF
2642cat confdefs.h >>conftest.$ac_ext
2643cat >>conftest.$ac_ext <<_ACEOF
2644/* end confdefs.h.  */
2645#include <stdarg.h>
2646#include <stdio.h>
2647#include <sys/types.h>
2648#include <sys/stat.h>
2649/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2650struct buf { int x; };
2651FILE * (*rcsopen) (struct buf *, struct stat *, int);
2652static char *e (p, i)
2653     char **p;
2654     int i;
2655{
2656  return p[i];
2657}
2658static char *f (char * (*g) (char **, int), char **p, ...)
2659{
2660  char *s;
2661  va_list v;
2662  va_start (v,p);
2663  s = g (p, va_arg (v,int));
2664  va_end (v);
2665  return s;
2666}
2667
2668/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2669   function prototypes and stuff, but not '\xHH' hex character constants.
2670   These don't provoke an error unfortunately, instead are silently treated
2671   as 'x'.  The following induces an error, until -std is added to get
2672   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2673   array size at least.  It's necessary to write '\x00'==0 to get something
2674   that's true only with -std.  */
2675int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2676
2677/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2678   inside strings and character constants.  */
2679#define FOO(x) 'x'
2680int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2681
2682int test (int i, double x);
2683struct s1 {int (*f) (int a);};
2684struct s2 {int (*f) (double a);};
2685int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2686int argc;
2687char **argv;
2688int
2689main ()
2690{
2691return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2692  ;
2693  return 0;
2694}
2695_ACEOF
2696for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2697	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2698do
2699  CC="$ac_save_CC $ac_arg"
2700  rm -f conftest.$ac_objext
2701if { (ac_try="$ac_compile"
2702case "(($ac_try" in
2703  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2704  *) ac_try_echo=$ac_try;;
2705esac
2706eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2707  (eval "$ac_compile") 2>conftest.er1
2708  ac_status=$?
2709  grep -v '^ *+' conftest.er1 >conftest.err
2710  rm -f conftest.er1
2711  cat conftest.err >&5
2712  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2713  (exit $ac_status); } &&
2714	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2715  { (case "(($ac_try" in
2716  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2717  *) ac_try_echo=$ac_try;;
2718esac
2719eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2720  (eval "$ac_try") 2>&5
2721  ac_status=$?
2722  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2723  (exit $ac_status); }; } &&
2724	 { ac_try='test -s conftest.$ac_objext'
2725  { (case "(($ac_try" in
2726  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2727  *) ac_try_echo=$ac_try;;
2728esac
2729eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2730  (eval "$ac_try") 2>&5
2731  ac_status=$?
2732  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2733  (exit $ac_status); }; }; then
2734  ac_cv_prog_cc_c89=$ac_arg
2735else
2736  echo "$as_me: failed program was:" >&5
2737sed 's/^/| /' conftest.$ac_ext >&5
2738
2739
2740fi
2741
2742rm -f core conftest.err conftest.$ac_objext
2743  test "x$ac_cv_prog_cc_c89" != "xno" && break
2744done
2745rm -f conftest.$ac_ext
2746CC=$ac_save_CC
2747
2748fi
2749# AC_CACHE_VAL
2750case "x$ac_cv_prog_cc_c89" in
2751  x)
2752    { echo "$as_me:$LINENO: result: none needed" >&5
2753echo "${ECHO_T}none needed" >&6; } ;;
2754  xno)
2755    { echo "$as_me:$LINENO: result: unsupported" >&5
2756echo "${ECHO_T}unsupported" >&6; } ;;
2757  *)
2758    CC="$CC $ac_cv_prog_cc_c89"
2759    { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2760echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2761esac
2762
2763
2764ac_ext=c
2765ac_cpp='$CPP $CPPFLAGS'
2766ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2767ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2768ac_compiler_gnu=$ac_cv_c_compiler_gnu
2769
2770ac_ext=cpp
2771ac_cpp='$CXXCPP $CPPFLAGS'
2772ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2773ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2774ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2775if test -z "$CXX"; then
2776  if test -n "$CCC"; then
2777    CXX=$CCC
2778  else
2779    if test -n "$ac_tool_prefix"; then
2780  for ac_prog in clang++ llvm-g++ g++
2781  do
2782    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2783set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2784{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2785echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2786if test "${ac_cv_prog_CXX+set}" = set; then
2787  echo $ECHO_N "(cached) $ECHO_C" >&6
2788else
2789  if test -n "$CXX"; then
2790  ac_cv_prog_CXX="$CXX" # Let the user override the test.
2791else
2792as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2793for as_dir in $PATH
2794do
2795  IFS=$as_save_IFS
2796  test -z "$as_dir" && as_dir=.
2797  for ac_exec_ext in '' $ac_executable_extensions; do
2798  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2799    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2800    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2801    break 2
2802  fi
2803done
2804done
2805IFS=$as_save_IFS
2806
2807fi
2808fi
2809CXX=$ac_cv_prog_CXX
2810if test -n "$CXX"; then
2811  { echo "$as_me:$LINENO: result: $CXX" >&5
2812echo "${ECHO_T}$CXX" >&6; }
2813else
2814  { echo "$as_me:$LINENO: result: no" >&5
2815echo "${ECHO_T}no" >&6; }
2816fi
2817
2818
2819    test -n "$CXX" && break
2820  done
2821fi
2822if test -z "$CXX"; then
2823  ac_ct_CXX=$CXX
2824  for ac_prog in clang++ llvm-g++ g++
2825do
2826  # Extract the first word of "$ac_prog", so it can be a program name with args.
2827set dummy $ac_prog; ac_word=$2
2828{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2829echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2830if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2831  echo $ECHO_N "(cached) $ECHO_C" >&6
2832else
2833  if test -n "$ac_ct_CXX"; then
2834  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2835else
2836as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2837for as_dir in $PATH
2838do
2839  IFS=$as_save_IFS
2840  test -z "$as_dir" && as_dir=.
2841  for ac_exec_ext in '' $ac_executable_extensions; do
2842  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2843    ac_cv_prog_ac_ct_CXX="$ac_prog"
2844    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2845    break 2
2846  fi
2847done
2848done
2849IFS=$as_save_IFS
2850
2851fi
2852fi
2853ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2854if test -n "$ac_ct_CXX"; then
2855  { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2856echo "${ECHO_T}$ac_ct_CXX" >&6; }
2857else
2858  { echo "$as_me:$LINENO: result: no" >&5
2859echo "${ECHO_T}no" >&6; }
2860fi
2861
2862
2863  test -n "$ac_ct_CXX" && break
2864done
2865
2866  if test "x$ac_ct_CXX" = x; then
2867    CXX="g++"
2868  else
2869    case $cross_compiling:$ac_tool_warned in
2870yes:)
2871{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2872whose name does not start with the host triplet.  If you think this
2873configuration is useful to you, please write to autoconf@gnu.org." >&5
2874echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2875whose name does not start with the host triplet.  If you think this
2876configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2877ac_tool_warned=yes ;;
2878esac
2879    CXX=$ac_ct_CXX
2880  fi
2881fi
2882
2883  fi
2884fi
2885# Provide some information about the compiler.
2886echo "$as_me:$LINENO: checking for C++ compiler version" >&5
2887ac_compiler=`set X $ac_compile; echo $2`
2888{ (ac_try="$ac_compiler --version >&5"
2889case "(($ac_try" in
2890  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2891  *) ac_try_echo=$ac_try;;
2892esac
2893eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2894  (eval "$ac_compiler --version >&5") 2>&5
2895  ac_status=$?
2896  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2897  (exit $ac_status); }
2898{ (ac_try="$ac_compiler -v >&5"
2899case "(($ac_try" in
2900  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2901  *) ac_try_echo=$ac_try;;
2902esac
2903eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2904  (eval "$ac_compiler -v >&5") 2>&5
2905  ac_status=$?
2906  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2907  (exit $ac_status); }
2908{ (ac_try="$ac_compiler -V >&5"
2909case "(($ac_try" in
2910  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2911  *) ac_try_echo=$ac_try;;
2912esac
2913eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2914  (eval "$ac_compiler -V >&5") 2>&5
2915  ac_status=$?
2916  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2917  (exit $ac_status); }
2918
2919{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2920echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
2921if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2922  echo $ECHO_N "(cached) $ECHO_C" >&6
2923else
2924  cat >conftest.$ac_ext <<_ACEOF
2925/* confdefs.h.  */
2926_ACEOF
2927cat confdefs.h >>conftest.$ac_ext
2928cat >>conftest.$ac_ext <<_ACEOF
2929/* end confdefs.h.  */
2930
2931int
2932main ()
2933{
2934#ifndef __GNUC__
2935       choke me
2936#endif
2937
2938  ;
2939  return 0;
2940}
2941_ACEOF
2942rm -f conftest.$ac_objext
2943if { (ac_try="$ac_compile"
2944case "(($ac_try" in
2945  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2946  *) ac_try_echo=$ac_try;;
2947esac
2948eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2949  (eval "$ac_compile") 2>conftest.er1
2950  ac_status=$?
2951  grep -v '^ *+' conftest.er1 >conftest.err
2952  rm -f conftest.er1
2953  cat conftest.err >&5
2954  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2955  (exit $ac_status); } &&
2956	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2957  { (case "(($ac_try" in
2958  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2959  *) ac_try_echo=$ac_try;;
2960esac
2961eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2962  (eval "$ac_try") 2>&5
2963  ac_status=$?
2964  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2965  (exit $ac_status); }; } &&
2966	 { ac_try='test -s conftest.$ac_objext'
2967  { (case "(($ac_try" in
2968  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2969  *) ac_try_echo=$ac_try;;
2970esac
2971eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2972  (eval "$ac_try") 2>&5
2973  ac_status=$?
2974  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2975  (exit $ac_status); }; }; then
2976  ac_compiler_gnu=yes
2977else
2978  echo "$as_me: failed program was:" >&5
2979sed 's/^/| /' conftest.$ac_ext >&5
2980
2981	ac_compiler_gnu=no
2982fi
2983
2984rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2985ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2986
2987fi
2988{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2989echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
2990GXX=`test $ac_compiler_gnu = yes && echo yes`
2991ac_test_CXXFLAGS=${CXXFLAGS+set}
2992ac_save_CXXFLAGS=$CXXFLAGS
2993{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2994echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
2995if test "${ac_cv_prog_cxx_g+set}" = set; then
2996  echo $ECHO_N "(cached) $ECHO_C" >&6
2997else
2998  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
2999   ac_cxx_werror_flag=yes
3000   ac_cv_prog_cxx_g=no
3001   CXXFLAGS="-g"
3002   cat >conftest.$ac_ext <<_ACEOF
3003/* confdefs.h.  */
3004_ACEOF
3005cat confdefs.h >>conftest.$ac_ext
3006cat >>conftest.$ac_ext <<_ACEOF
3007/* end confdefs.h.  */
3008
3009int
3010main ()
3011{
3012
3013  ;
3014  return 0;
3015}
3016_ACEOF
3017rm -f conftest.$ac_objext
3018if { (ac_try="$ac_compile"
3019case "(($ac_try" in
3020  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3021  *) ac_try_echo=$ac_try;;
3022esac
3023eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3024  (eval "$ac_compile") 2>conftest.er1
3025  ac_status=$?
3026  grep -v '^ *+' conftest.er1 >conftest.err
3027  rm -f conftest.er1
3028  cat conftest.err >&5
3029  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3030  (exit $ac_status); } &&
3031	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3032  { (case "(($ac_try" in
3033  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3034  *) ac_try_echo=$ac_try;;
3035esac
3036eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3037  (eval "$ac_try") 2>&5
3038  ac_status=$?
3039  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3040  (exit $ac_status); }; } &&
3041	 { ac_try='test -s conftest.$ac_objext'
3042  { (case "(($ac_try" in
3043  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3044  *) ac_try_echo=$ac_try;;
3045esac
3046eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3047  (eval "$ac_try") 2>&5
3048  ac_status=$?
3049  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3050  (exit $ac_status); }; }; then
3051  ac_cv_prog_cxx_g=yes
3052else
3053  echo "$as_me: failed program was:" >&5
3054sed 's/^/| /' conftest.$ac_ext >&5
3055
3056	CXXFLAGS=""
3057      cat >conftest.$ac_ext <<_ACEOF
3058/* confdefs.h.  */
3059_ACEOF
3060cat confdefs.h >>conftest.$ac_ext
3061cat >>conftest.$ac_ext <<_ACEOF
3062/* end confdefs.h.  */
3063
3064int
3065main ()
3066{
3067
3068  ;
3069  return 0;
3070}
3071_ACEOF
3072rm -f conftest.$ac_objext
3073if { (ac_try="$ac_compile"
3074case "(($ac_try" in
3075  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3076  *) ac_try_echo=$ac_try;;
3077esac
3078eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3079  (eval "$ac_compile") 2>conftest.er1
3080  ac_status=$?
3081  grep -v '^ *+' conftest.er1 >conftest.err
3082  rm -f conftest.er1
3083  cat conftest.err >&5
3084  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3085  (exit $ac_status); } &&
3086	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3087  { (case "(($ac_try" in
3088  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3089  *) ac_try_echo=$ac_try;;
3090esac
3091eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3092  (eval "$ac_try") 2>&5
3093  ac_status=$?
3094  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3095  (exit $ac_status); }; } &&
3096	 { ac_try='test -s conftest.$ac_objext'
3097  { (case "(($ac_try" in
3098  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3099  *) ac_try_echo=$ac_try;;
3100esac
3101eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3102  (eval "$ac_try") 2>&5
3103  ac_status=$?
3104  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3105  (exit $ac_status); }; }; then
3106  :
3107else
3108  echo "$as_me: failed program was:" >&5
3109sed 's/^/| /' conftest.$ac_ext >&5
3110
3111	ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3112	 CXXFLAGS="-g"
3113	 cat >conftest.$ac_ext <<_ACEOF
3114/* confdefs.h.  */
3115_ACEOF
3116cat confdefs.h >>conftest.$ac_ext
3117cat >>conftest.$ac_ext <<_ACEOF
3118/* end confdefs.h.  */
3119
3120int
3121main ()
3122{
3123
3124  ;
3125  return 0;
3126}
3127_ACEOF
3128rm -f conftest.$ac_objext
3129if { (ac_try="$ac_compile"
3130case "(($ac_try" in
3131  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3132  *) ac_try_echo=$ac_try;;
3133esac
3134eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3135  (eval "$ac_compile") 2>conftest.er1
3136  ac_status=$?
3137  grep -v '^ *+' conftest.er1 >conftest.err
3138  rm -f conftest.er1
3139  cat conftest.err >&5
3140  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3141  (exit $ac_status); } &&
3142	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3143  { (case "(($ac_try" in
3144  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3145  *) ac_try_echo=$ac_try;;
3146esac
3147eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3148  (eval "$ac_try") 2>&5
3149  ac_status=$?
3150  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3151  (exit $ac_status); }; } &&
3152	 { ac_try='test -s conftest.$ac_objext'
3153  { (case "(($ac_try" in
3154  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3155  *) ac_try_echo=$ac_try;;
3156esac
3157eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3158  (eval "$ac_try") 2>&5
3159  ac_status=$?
3160  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3161  (exit $ac_status); }; }; then
3162  ac_cv_prog_cxx_g=yes
3163else
3164  echo "$as_me: failed program was:" >&5
3165sed 's/^/| /' conftest.$ac_ext >&5
3166
3167
3168fi
3169
3170rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3171fi
3172
3173rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3174fi
3175
3176rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3177   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3178fi
3179{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3180echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3181if test "$ac_test_CXXFLAGS" = set; then
3182  CXXFLAGS=$ac_save_CXXFLAGS
3183elif test $ac_cv_prog_cxx_g = yes; then
3184  if test "$GXX" = yes; then
3185    CXXFLAGS="-g -O2"
3186  else
3187    CXXFLAGS="-g"
3188  fi
3189else
3190  if test "$GXX" = yes; then
3191    CXXFLAGS="-O2"
3192  else
3193    CXXFLAGS=
3194  fi
3195fi
3196ac_ext=c
3197ac_cpp='$CPP $CPPFLAGS'
3198ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3199ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3200ac_compiler_gnu=$ac_cv_c_compiler_gnu
3201
3202ac_ext=c
3203ac_cpp='$CPP $CPPFLAGS'
3204ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3205ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3206ac_compiler_gnu=$ac_cv_c_compiler_gnu
3207{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3208echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3209# On Suns, sometimes $CPP names a directory.
3210if test -n "$CPP" && test -d "$CPP"; then
3211  CPP=
3212fi
3213if test -z "$CPP"; then
3214  if test "${ac_cv_prog_CPP+set}" = set; then
3215  echo $ECHO_N "(cached) $ECHO_C" >&6
3216else
3217      # Double quotes because CPP needs to be expanded
3218    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3219    do
3220      ac_preproc_ok=false
3221for ac_c_preproc_warn_flag in '' yes
3222do
3223  # Use a header file that comes with gcc, so configuring glibc
3224  # with a fresh cross-compiler works.
3225  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3226  # <limits.h> exists even on freestanding compilers.
3227  # On the NeXT, cc -E runs the code through the compiler's parser,
3228  # not just through cpp. "Syntax error" is here to catch this case.
3229  cat >conftest.$ac_ext <<_ACEOF
3230/* confdefs.h.  */
3231_ACEOF
3232cat confdefs.h >>conftest.$ac_ext
3233cat >>conftest.$ac_ext <<_ACEOF
3234/* end confdefs.h.  */
3235#ifdef __STDC__
3236# include <limits.h>
3237#else
3238# include <assert.h>
3239#endif
3240		     Syntax error
3241_ACEOF
3242if { (ac_try="$ac_cpp conftest.$ac_ext"
3243case "(($ac_try" in
3244  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3245  *) ac_try_echo=$ac_try;;
3246esac
3247eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3248  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3249  ac_status=$?
3250  grep -v '^ *+' conftest.er1 >conftest.err
3251  rm -f conftest.er1
3252  cat conftest.err >&5
3253  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3254  (exit $ac_status); } >/dev/null; then
3255  if test -s conftest.err; then
3256    ac_cpp_err=$ac_c_preproc_warn_flag
3257    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3258  else
3259    ac_cpp_err=
3260  fi
3261else
3262  ac_cpp_err=yes
3263fi
3264if test -z "$ac_cpp_err"; then
3265  :
3266else
3267  echo "$as_me: failed program was:" >&5
3268sed 's/^/| /' conftest.$ac_ext >&5
3269
3270  # Broken: fails on valid input.
3271continue
3272fi
3273
3274rm -f conftest.err conftest.$ac_ext
3275
3276  # OK, works on sane cases.  Now check whether nonexistent headers
3277  # can be detected and how.
3278  cat >conftest.$ac_ext <<_ACEOF
3279/* confdefs.h.  */
3280_ACEOF
3281cat confdefs.h >>conftest.$ac_ext
3282cat >>conftest.$ac_ext <<_ACEOF
3283/* end confdefs.h.  */
3284#include <ac_nonexistent.h>
3285_ACEOF
3286if { (ac_try="$ac_cpp conftest.$ac_ext"
3287case "(($ac_try" in
3288  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3289  *) ac_try_echo=$ac_try;;
3290esac
3291eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3292  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3293  ac_status=$?
3294  grep -v '^ *+' conftest.er1 >conftest.err
3295  rm -f conftest.er1
3296  cat conftest.err >&5
3297  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3298  (exit $ac_status); } >/dev/null; then
3299  if test -s conftest.err; then
3300    ac_cpp_err=$ac_c_preproc_warn_flag
3301    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3302  else
3303    ac_cpp_err=
3304  fi
3305else
3306  ac_cpp_err=yes
3307fi
3308if test -z "$ac_cpp_err"; then
3309  # Broken: success on invalid input.
3310continue
3311else
3312  echo "$as_me: failed program was:" >&5
3313sed 's/^/| /' conftest.$ac_ext >&5
3314
3315  # Passes both tests.
3316ac_preproc_ok=:
3317break
3318fi
3319
3320rm -f conftest.err conftest.$ac_ext
3321
3322done
3323# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3324rm -f conftest.err conftest.$ac_ext
3325if $ac_preproc_ok; then
3326  break
3327fi
3328
3329    done
3330    ac_cv_prog_CPP=$CPP
3331
3332fi
3333  CPP=$ac_cv_prog_CPP
3334else
3335  ac_cv_prog_CPP=$CPP
3336fi
3337{ echo "$as_me:$LINENO: result: $CPP" >&5
3338echo "${ECHO_T}$CPP" >&6; }
3339ac_preproc_ok=false
3340for ac_c_preproc_warn_flag in '' yes
3341do
3342  # Use a header file that comes with gcc, so configuring glibc
3343  # with a fresh cross-compiler works.
3344  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3345  # <limits.h> exists even on freestanding compilers.
3346  # On the NeXT, cc -E runs the code through the compiler's parser,
3347  # not just through cpp. "Syntax error" is here to catch this case.
3348  cat >conftest.$ac_ext <<_ACEOF
3349/* confdefs.h.  */
3350_ACEOF
3351cat confdefs.h >>conftest.$ac_ext
3352cat >>conftest.$ac_ext <<_ACEOF
3353/* end confdefs.h.  */
3354#ifdef __STDC__
3355# include <limits.h>
3356#else
3357# include <assert.h>
3358#endif
3359		     Syntax error
3360_ACEOF
3361if { (ac_try="$ac_cpp conftest.$ac_ext"
3362case "(($ac_try" in
3363  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3364  *) ac_try_echo=$ac_try;;
3365esac
3366eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3367  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3368  ac_status=$?
3369  grep -v '^ *+' conftest.er1 >conftest.err
3370  rm -f conftest.er1
3371  cat conftest.err >&5
3372  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3373  (exit $ac_status); } >/dev/null; then
3374  if test -s conftest.err; then
3375    ac_cpp_err=$ac_c_preproc_warn_flag
3376    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3377  else
3378    ac_cpp_err=
3379  fi
3380else
3381  ac_cpp_err=yes
3382fi
3383if test -z "$ac_cpp_err"; then
3384  :
3385else
3386  echo "$as_me: failed program was:" >&5
3387sed 's/^/| /' conftest.$ac_ext >&5
3388
3389  # Broken: fails on valid input.
3390continue
3391fi
3392
3393rm -f conftest.err conftest.$ac_ext
3394
3395  # OK, works on sane cases.  Now check whether nonexistent headers
3396  # can be detected and how.
3397  cat >conftest.$ac_ext <<_ACEOF
3398/* confdefs.h.  */
3399_ACEOF
3400cat confdefs.h >>conftest.$ac_ext
3401cat >>conftest.$ac_ext <<_ACEOF
3402/* end confdefs.h.  */
3403#include <ac_nonexistent.h>
3404_ACEOF
3405if { (ac_try="$ac_cpp conftest.$ac_ext"
3406case "(($ac_try" in
3407  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3408  *) ac_try_echo=$ac_try;;
3409esac
3410eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3411  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3412  ac_status=$?
3413  grep -v '^ *+' conftest.er1 >conftest.err
3414  rm -f conftest.er1
3415  cat conftest.err >&5
3416  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3417  (exit $ac_status); } >/dev/null; then
3418  if test -s conftest.err; then
3419    ac_cpp_err=$ac_c_preproc_warn_flag
3420    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3421  else
3422    ac_cpp_err=
3423  fi
3424else
3425  ac_cpp_err=yes
3426fi
3427if test -z "$ac_cpp_err"; then
3428  # Broken: success on invalid input.
3429continue
3430else
3431  echo "$as_me: failed program was:" >&5
3432sed 's/^/| /' conftest.$ac_ext >&5
3433
3434  # Passes both tests.
3435ac_preproc_ok=:
3436break
3437fi
3438
3439rm -f conftest.err conftest.$ac_ext
3440
3441done
3442# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3443rm -f conftest.err conftest.$ac_ext
3444if $ac_preproc_ok; then
3445  :
3446else
3447  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3448See \`config.log' for more details." >&5
3449echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3450See \`config.log' for more details." >&2;}
3451   { (exit 1); exit 1; }; }
3452fi
3453
3454ac_ext=c
3455ac_cpp='$CPP $CPPFLAGS'
3456ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3457ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3458ac_compiler_gnu=$ac_cv_c_compiler_gnu
3459
3460
3461
3462
3463# Check whether --enable-polly was given.
3464if test "${enable_polly+set}" = set; then
3465  enableval=$enable_polly;
3466else
3467  enableval=default
3468fi
3469
3470case "$enableval" in
3471  yes) ENABLE_POLLY=1
3472 ;;
3473  no)  ENABLE_POLLY=0
3474 ;;
3475  default) ENABLE_POLLY=1
3476 ;;
3477  *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&5
3478echo "$as_me: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&2;}
3479   { (exit 1); exit 1; }; } ;;
3480esac
3481
3482
3483if (test -d ${srcdir}/tools/polly) && (test $ENABLE_POLLY -eq 1) ; then
3484  LLVM_HAS_POLLY=1
3485
3486  subdirs="$subdirs tools/polly"
3487
3488fi
3489
3490
3491# Make sure we can run config.sub.
3492$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3493  { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3494echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3495   { (exit 1); exit 1; }; }
3496
3497{ echo "$as_me:$LINENO: checking build system type" >&5
3498echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
3499if test "${ac_cv_build+set}" = set; then
3500  echo $ECHO_N "(cached) $ECHO_C" >&6
3501else
3502  ac_build_alias=$build_alias
3503test "x$ac_build_alias" = x &&
3504  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3505test "x$ac_build_alias" = x &&
3506  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3507echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3508   { (exit 1); exit 1; }; }
3509ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3510  { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3511echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3512   { (exit 1); exit 1; }; }
3513
3514fi
3515{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3516echo "${ECHO_T}$ac_cv_build" >&6; }
3517case $ac_cv_build in
3518*-*-*) ;;
3519*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3520echo "$as_me: error: invalid value of canonical build" >&2;}
3521   { (exit 1); exit 1; }; };;
3522esac
3523build=$ac_cv_build
3524ac_save_IFS=$IFS; IFS='-'
3525set x $ac_cv_build
3526shift
3527build_cpu=$1
3528build_vendor=$2
3529shift; shift
3530# Remember, the first character of IFS is used to create $*,
3531# except with old shells:
3532build_os=$*
3533IFS=$ac_save_IFS
3534case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3535
3536
3537{ echo "$as_me:$LINENO: checking host system type" >&5
3538echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3539if test "${ac_cv_host+set}" = set; then
3540  echo $ECHO_N "(cached) $ECHO_C" >&6
3541else
3542  if test "x$host_alias" = x; then
3543  ac_cv_host=$ac_cv_build
3544else
3545  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3546    { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3547echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3548   { (exit 1); exit 1; }; }
3549fi
3550
3551fi
3552{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3553echo "${ECHO_T}$ac_cv_host" >&6; }
3554case $ac_cv_host in
3555*-*-*) ;;
3556*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3557echo "$as_me: error: invalid value of canonical host" >&2;}
3558   { (exit 1); exit 1; }; };;
3559esac
3560host=$ac_cv_host
3561ac_save_IFS=$IFS; IFS='-'
3562set x $ac_cv_host
3563shift
3564host_cpu=$1
3565host_vendor=$2
3566shift; shift
3567# Remember, the first character of IFS is used to create $*,
3568# except with old shells:
3569host_os=$*
3570IFS=$ac_save_IFS
3571case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3572
3573
3574{ echo "$as_me:$LINENO: checking target system type" >&5
3575echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
3576if test "${ac_cv_target+set}" = set; then
3577  echo $ECHO_N "(cached) $ECHO_C" >&6
3578else
3579  if test "x$target_alias" = x; then
3580  ac_cv_target=$ac_cv_host
3581else
3582  ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3583    { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
3584echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
3585   { (exit 1); exit 1; }; }
3586fi
3587
3588fi
3589{ echo "$as_me:$LINENO: result: $ac_cv_target" >&5
3590echo "${ECHO_T}$ac_cv_target" >&6; }
3591case $ac_cv_target in
3592*-*-*) ;;
3593*) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
3594echo "$as_me: error: invalid value of canonical target" >&2;}
3595   { (exit 1); exit 1; }; };;
3596esac
3597target=$ac_cv_target
3598ac_save_IFS=$IFS; IFS='-'
3599set x $ac_cv_target
3600shift
3601target_cpu=$1
3602target_vendor=$2
3603shift; shift
3604# Remember, the first character of IFS is used to create $*,
3605# except with old shells:
3606target_os=$*
3607IFS=$ac_save_IFS
3608case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3609
3610
3611# The aliases save the names the user supplied, while $host etc.
3612# will get canonicalized.
3613test -n "$target_alias" &&
3614  test "$program_prefix$program_suffix$program_transform_name" = \
3615    NONENONEs,x,x, &&
3616  program_prefix=${target_alias}-
3617
3618{ echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
3619echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
3620if test "${llvm_cv_os_type+set}" = set; then
3621  echo $ECHO_N "(cached) $ECHO_C" >&6
3622else
3623  case $host in
3624  *-*-aix*)
3625    llvm_cv_link_all_option="-Wl,--whole-archive"
3626    llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3627    llvm_cv_os_type="AIX"
3628    llvm_cv_platform_type="Unix" ;;
3629  *-*-irix*)
3630    llvm_cv_link_all_option="-Wl,--whole-archive"
3631    llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3632    llvm_cv_os_type="IRIX"
3633    llvm_cv_platform_type="Unix" ;;
3634  *-*-cygwin*)
3635    llvm_cv_link_all_option="-Wl,--whole-archive"
3636    llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3637    llvm_cv_os_type="Cygwin"
3638    llvm_cv_platform_type="Unix" ;;
3639  *-*-darwin*)
3640    llvm_cv_link_all_option="-Wl,-all_load"
3641    llvm_cv_no_link_all_option="-Wl,-noall_load"
3642    llvm_cv_os_type="Darwin"
3643    llvm_cv_platform_type="Unix" ;;
3644  *-*-minix*)
3645    llvm_cv_link_all_option="-Wl,-all_load"
3646    llvm_cv_no_link_all_option="-Wl,-noall_load"
3647    llvm_cv_os_type="Minix"
3648    llvm_cv_platform_type="Unix" ;;
3649  *-*-freebsd* | *-*-kfreebsd-gnu)
3650    llvm_cv_link_all_option="-Wl,--whole-archive"
3651    llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3652    llvm_cv_os_type="FreeBSD"
3653    llvm_cv_platform_type="Unix" ;;
3654  *-*-openbsd*)
3655    llvm_cv_link_all_option="-Wl,--whole-archive"
3656    llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3657    llvm_cv_os_type="OpenBSD"
3658    llvm_cv_platform_type="Unix" ;;
3659  *-*-netbsd*)
3660    llvm_cv_link_all_option="-Wl,--whole-archive"
3661    llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3662    llvm_cv_os_type="NetBSD"
3663    llvm_cv_platform_type="Unix" ;;
3664  *-*-dragonfly*)
3665    llvm_cv_link_all_option="-Wl,--whole-archive"
3666    llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3667    llvm_cv_os_type="DragonFly"
3668    llvm_cv_platform_type="Unix" ;;
3669  *-*-hpux*)
3670    llvm_cv_link_all_option="-Wl,--whole-archive"
3671    llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3672    llvm_cv_os_type="HP-UX"
3673    llvm_cv_platform_type="Unix" ;;
3674  *-*-interix*)
3675    llvm_cv_link_all_option="-Wl,--whole-archive"
3676    llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3677    llvm_cv_os_type="Interix"
3678    llvm_cv_platform_type="Unix" ;;
3679  *-*-linux*)
3680    llvm_cv_link_all_option="-Wl,--whole-archive"
3681    llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3682    llvm_cv_os_type="Linux"
3683    llvm_cv_platform_type="Unix" ;;
3684  *-*-gnu*)
3685    llvm_cv_link_all_option="-Wl,--whole-archive"
3686    llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3687    llvm_cv_os_type="GNU"
3688    llvm_cv_platform_type="Unix" ;;
3689  *-*-solaris*)
3690    llvm_cv_link_all_option="-Wl,-z,allextract"
3691    llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
3692    llvm_cv_os_type="SunOS"
3693    llvm_cv_platform_type="Unix" ;;
3694  *-*-auroraux*)
3695    llvm_cv_link_all_option="-Wl,-z,allextract"
3696    llvm_cv_link_all_option="-Wl,-z,defaultextract"
3697    llvm_cv_os_type="AuroraUX"
3698    llvm_cv_platform_type="Unix" ;;
3699  *-*-win32*)
3700    llvm_cv_link_all_option="-Wl,--whole-archive"
3701    llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3702    llvm_cv_os_type="Win32"
3703    llvm_cv_platform_type="Win32" ;;
3704  *-*-mingw*)
3705    llvm_cv_link_all_option="-Wl,--whole-archive"
3706    llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3707    llvm_cv_os_type="MingW"
3708    llvm_cv_platform_type="Win32" ;;
3709  *-*-haiku*)
3710    llvm_cv_link_all_option="-Wl,--whole-archive"
3711    llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3712    llvm_cv_os_type="Haiku"
3713    llvm_cv_platform_type="Unix" ;;
3714  *-unknown-eabi*)
3715    llvm_cv_link_all_option="-Wl,--whole-archive"
3716    llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3717    llvm_cv_os_type="Freestanding"
3718    llvm_cv_platform_type="Unix" ;;
3719  *-unknown-elf*)
3720    llvm_cv_link_all_option="-Wl,--whole-archive"
3721    llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3722    llvm_cv_os_type="Freestanding"
3723    llvm_cv_platform_type="Unix" ;;
3724  *)
3725    llvm_cv_link_all_option=""
3726    llvm_cv_no_link_all_option=""
3727    llvm_cv_os_type="Unknown"
3728    llvm_cv_platform_type="Unknown" ;;
3729esac
3730fi
3731{ echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
3732echo "${ECHO_T}$llvm_cv_os_type" >&6; }
3733
3734{ echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
3735echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
3736if test "${llvm_cv_target_os_type+set}" = set; then
3737  echo $ECHO_N "(cached) $ECHO_C" >&6
3738else
3739  case $target in
3740  *-*-aix*)
3741    llvm_cv_target_os_type="AIX" ;;
3742  *-*-irix*)
3743    llvm_cv_target_os_type="IRIX" ;;
3744  *-*-cygwin*)
3745    llvm_cv_target_os_type="Cygwin" ;;
3746  *-*-darwin*)
3747    llvm_cv_target_os_type="Darwin" ;;
3748  *-*-minix*)
3749    llvm_cv_target_os_type="Minix" ;;
3750  *-*-freebsd* | *-*-kfreebsd-gnu)
3751    llvm_cv_target_os_type="FreeBSD" ;;
3752  *-*-openbsd*)
3753    llvm_cv_target_os_type="OpenBSD" ;;
3754  *-*-netbsd*)
3755    llvm_cv_target_os_type="NetBSD" ;;
3756  *-*-dragonfly*)
3757    llvm_cv_target_os_type="DragonFly" ;;
3758  *-*-hpux*)
3759    llvm_cv_target_os_type="HP-UX" ;;
3760  *-*-interix*)
3761    llvm_cv_target_os_type="Interix" ;;
3762  *-*-linux*)
3763    llvm_cv_target_os_type="Linux" ;;
3764  *-*-gnu*)
3765    llvm_cv_target_os_type="GNU" ;;
3766  *-*-solaris*)
3767    llvm_cv_target_os_type="SunOS" ;;
3768  *-*-auroraux*)
3769    llvm_cv_target_os_type="AuroraUX" ;;
3770  *-*-win32*)
3771    llvm_cv_target_os_type="Win32" ;;
3772  *-*-mingw*)
3773    llvm_cv_target_os_type="MingW" ;;
3774  *-*-haiku*)
3775    llvm_cv_target_os_type="Haiku" ;;
3776  *-*-rtems*)
3777    llvm_cv_target_os_type="RTEMS" ;;
3778  *-*-nacl*)
3779    llvm_cv_target_os_type="NativeClient" ;;
3780  *-unknown-eabi*)
3781    llvm_cv_target_os_type="Freestanding" ;;
3782  *)
3783    llvm_cv_target_os_type="Unknown" ;;
3784esac
3785fi
3786{ echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
3787echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
3788
3789if test "$llvm_cv_os_type" = "Unknown" ; then
3790  { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
3791echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
3792   { (exit 1); exit 1; }; }
3793fi
3794
3795OS=$llvm_cv_os_type
3796
3797HOST_OS=$llvm_cv_os_type
3798
3799TARGET_OS=$llvm_cv_target_os_type
3800
3801
3802LINKALL=$llvm_cv_link_all_option
3803
3804NOLINKALL=$llvm_cv_no_link_all_option
3805
3806
3807case $llvm_cv_platform_type in
3808  Unix)
3809
3810cat >>confdefs.h <<\_ACEOF
3811#define LLVM_ON_UNIX 1
3812_ACEOF
3813
3814    LLVM_ON_UNIX=1
3815
3816    LLVM_ON_WIN32=0
3817
3818    ;;
3819  Win32)
3820
3821cat >>confdefs.h <<\_ACEOF
3822#define LLVM_ON_WIN32 1
3823_ACEOF
3824
3825    LLVM_ON_UNIX=0
3826
3827    LLVM_ON_WIN32=1
3828
3829    ;;
3830esac
3831
3832{ echo "$as_me:$LINENO: checking target architecture" >&5
3833echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
3834if test "${llvm_cv_target_arch+set}" = set; then
3835  echo $ECHO_N "(cached) $ECHO_C" >&6
3836else
3837  case $target in
3838  i?86-*)                 llvm_cv_target_arch="x86" ;;
3839  amd64-* | x86_64-*)     llvm_cv_target_arch="x86_64" ;;
3840  sparc*-*)               llvm_cv_target_arch="Sparc" ;;
3841  powerpc*-*)             llvm_cv_target_arch="PowerPC" ;;
3842  arm*-*)                 llvm_cv_target_arch="ARM" ;;
3843  mips-*)                 llvm_cv_target_arch="Mips" ;;
3844  mipsel-*)               llvm_cv_target_arch="Mips" ;;
3845  xcore-*)                llvm_cv_target_arch="XCore" ;;
3846  msp430-*)               llvm_cv_target_arch="MSP430" ;;
3847  hexagon-*)              llvm_cv_target_arch="Hexagon" ;;
3848  mblaze-*)               llvm_cv_target_arch="MBlaze" ;;
3849  nvptx-*)                llvm_cv_target_arch="NVPTX" ;;
3850  *)                      llvm_cv_target_arch="Unknown" ;;
3851esac
3852fi
3853{ echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
3854echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
3855
3856if test "$llvm_cv_target_arch" = "Unknown" ; then
3857  { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
3858echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
3859fi
3860
3861# Determine the LLVM native architecture for the target
3862case "$llvm_cv_target_arch" in
3863    x86)     LLVM_NATIVE_ARCH="X86" ;;
3864    x86_64)  LLVM_NATIVE_ARCH="X86" ;;
3865    *)       LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
3866esac
3867
3868ARCH=$llvm_cv_target_arch
3869
3870
3871
3872
3873{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3874echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3875if test "${ac_cv_path_GREP+set}" = set; then
3876  echo $ECHO_N "(cached) $ECHO_C" >&6
3877else
3878  # Extract the first word of "grep ggrep" to use in msg output
3879if test -z "$GREP"; then
3880set dummy grep ggrep; ac_prog_name=$2
3881if test "${ac_cv_path_GREP+set}" = set; then
3882  echo $ECHO_N "(cached) $ECHO_C" >&6
3883else
3884  ac_path_GREP_found=false
3885# Loop through the user's path and test for each of PROGNAME-LIST
3886as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3887for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3888do
3889  IFS=$as_save_IFS
3890  test -z "$as_dir" && as_dir=.
3891  for ac_prog in grep ggrep; do
3892  for ac_exec_ext in '' $ac_executable_extensions; do
3893    ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3894    { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3895    # Check for GNU ac_path_GREP and select it if it is found.
3896  # Check for GNU $ac_path_GREP
3897case `"$ac_path_GREP" --version 2>&1` in
3898*GNU*)
3899  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3900*)
3901  ac_count=0
3902  echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3903  while :
3904  do
3905    cat "conftest.in" "conftest.in" >"conftest.tmp"
3906    mv "conftest.tmp" "conftest.in"
3907    cp "conftest.in" "conftest.nl"
3908    echo 'GREP' >> "conftest.nl"
3909    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3910    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3911    ac_count=`expr $ac_count + 1`
3912    if test $ac_count -gt ${ac_path_GREP_max-0}; then
3913      # Best one so far, save it but keep looking for a better one
3914      ac_cv_path_GREP="$ac_path_GREP"
3915      ac_path_GREP_max=$ac_count
3916    fi
3917    # 10*(2^10) chars as input seems more than enough
3918    test $ac_count -gt 10 && break
3919  done
3920  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3921esac
3922
3923
3924    $ac_path_GREP_found && break 3
3925  done
3926done
3927
3928done
3929IFS=$as_save_IFS
3930
3931
3932fi
3933
3934GREP="$ac_cv_path_GREP"
3935if test -z "$GREP"; then
3936  { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3937echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3938   { (exit 1); exit 1; }; }
3939fi
3940
3941else
3942  ac_cv_path_GREP=$GREP
3943fi
3944
3945
3946fi
3947{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3948echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3949 GREP="$ac_cv_path_GREP"
3950
3951
3952{ echo "$as_me:$LINENO: checking for egrep" >&5
3953echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3954if test "${ac_cv_path_EGREP+set}" = set; then
3955  echo $ECHO_N "(cached) $ECHO_C" >&6
3956else
3957  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3958   then ac_cv_path_EGREP="$GREP -E"
3959   else
3960     # Extract the first word of "egrep" to use in msg output
3961if test -z "$EGREP"; then
3962set dummy egrep; ac_prog_name=$2
3963if test "${ac_cv_path_EGREP+set}" = set; then
3964  echo $ECHO_N "(cached) $ECHO_C" >&6
3965else
3966  ac_path_EGREP_found=false
3967# Loop through the user's path and test for each of PROGNAME-LIST
3968as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3969for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3970do
3971  IFS=$as_save_IFS
3972  test -z "$as_dir" && as_dir=.
3973  for ac_prog in egrep; do
3974  for ac_exec_ext in '' $ac_executable_extensions; do
3975    ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3976    { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
3977    # Check for GNU ac_path_EGREP and select it if it is found.
3978  # Check for GNU $ac_path_EGREP
3979case `"$ac_path_EGREP" --version 2>&1` in
3980*GNU*)
3981  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3982*)
3983  ac_count=0
3984  echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3985  while :
3986  do
3987    cat "conftest.in" "conftest.in" >"conftest.tmp"
3988    mv "conftest.tmp" "conftest.in"
3989    cp "conftest.in" "conftest.nl"
3990    echo 'EGREP' >> "conftest.nl"
3991    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3992    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3993    ac_count=`expr $ac_count + 1`
3994    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3995      # Best one so far, save it but keep looking for a better one
3996      ac_cv_path_EGREP="$ac_path_EGREP"
3997      ac_path_EGREP_max=$ac_count
3998    fi
3999    # 10*(2^10) chars as input seems more than enough
4000    test $ac_count -gt 10 && break
4001  done
4002  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4003esac
4004
4005
4006    $ac_path_EGREP_found && break 3
4007  done
4008done
4009
4010done
4011IFS=$as_save_IFS
4012
4013
4014fi
4015
4016EGREP="$ac_cv_path_EGREP"
4017if test -z "$EGREP"; then
4018  { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4019echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4020   { (exit 1); exit 1; }; }
4021fi
4022
4023else
4024  ac_cv_path_EGREP=$EGREP
4025fi
4026
4027
4028   fi
4029fi
4030{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4031echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4032 EGREP="$ac_cv_path_EGREP"
4033
4034
4035{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4036echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4037if test "${ac_cv_header_stdc+set}" = set; then
4038  echo $ECHO_N "(cached) $ECHO_C" >&6
4039else
4040  cat >conftest.$ac_ext <<_ACEOF
4041/* confdefs.h.  */
4042_ACEOF
4043cat confdefs.h >>conftest.$ac_ext
4044cat >>conftest.$ac_ext <<_ACEOF
4045/* end confdefs.h.  */
4046#include <stdlib.h>
4047#include <stdarg.h>
4048#include <string.h>
4049#include <float.h>
4050
4051int
4052main ()
4053{
4054
4055  ;
4056  return 0;
4057}
4058_ACEOF
4059rm -f conftest.$ac_objext
4060if { (ac_try="$ac_compile"
4061case "(($ac_try" in
4062  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4063  *) ac_try_echo=$ac_try;;
4064esac
4065eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4066  (eval "$ac_compile") 2>conftest.er1
4067  ac_status=$?
4068  grep -v '^ *+' conftest.er1 >conftest.err
4069  rm -f conftest.er1
4070  cat conftest.err >&5
4071  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4072  (exit $ac_status); } &&
4073	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4074  { (case "(($ac_try" in
4075  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4076  *) ac_try_echo=$ac_try;;
4077esac
4078eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4079  (eval "$ac_try") 2>&5
4080  ac_status=$?
4081  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4082  (exit $ac_status); }; } &&
4083	 { ac_try='test -s conftest.$ac_objext'
4084  { (case "(($ac_try" in
4085  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4086  *) ac_try_echo=$ac_try;;
4087esac
4088eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4089  (eval "$ac_try") 2>&5
4090  ac_status=$?
4091  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4092  (exit $ac_status); }; }; then
4093  ac_cv_header_stdc=yes
4094else
4095  echo "$as_me: failed program was:" >&5
4096sed 's/^/| /' conftest.$ac_ext >&5
4097
4098	ac_cv_header_stdc=no
4099fi
4100
4101rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4102
4103if test $ac_cv_header_stdc = yes; then
4104  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4105  cat >conftest.$ac_ext <<_ACEOF
4106/* confdefs.h.  */
4107_ACEOF
4108cat confdefs.h >>conftest.$ac_ext
4109cat >>conftest.$ac_ext <<_ACEOF
4110/* end confdefs.h.  */
4111#include <string.h>
4112
4113_ACEOF
4114if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4115  $EGREP "memchr" >/dev/null 2>&1; then
4116  :
4117else
4118  ac_cv_header_stdc=no
4119fi
4120rm -f conftest*
4121
4122fi
4123
4124if test $ac_cv_header_stdc = yes; then
4125  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4126  cat >conftest.$ac_ext <<_ACEOF
4127/* confdefs.h.  */
4128_ACEOF
4129cat confdefs.h >>conftest.$ac_ext
4130cat >>conftest.$ac_ext <<_ACEOF
4131/* end confdefs.h.  */
4132#include <stdlib.h>
4133
4134_ACEOF
4135if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4136  $EGREP "free" >/dev/null 2>&1; then
4137  :
4138else
4139  ac_cv_header_stdc=no
4140fi
4141rm -f conftest*
4142
4143fi
4144
4145if test $ac_cv_header_stdc = yes; then
4146  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4147  if test "$cross_compiling" = yes; then
4148  :
4149else
4150  cat >conftest.$ac_ext <<_ACEOF
4151/* confdefs.h.  */
4152_ACEOF
4153cat confdefs.h >>conftest.$ac_ext
4154cat >>conftest.$ac_ext <<_ACEOF
4155/* end confdefs.h.  */
4156#include <ctype.h>
4157#include <stdlib.h>
4158#if ((' ' & 0x0FF) == 0x020)
4159# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4160# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4161#else
4162# define ISLOWER(c) \
4163		   (('a' <= (c) && (c) <= 'i') \
4164		     || ('j' <= (c) && (c) <= 'r') \
4165		     || ('s' <= (c) && (c) <= 'z'))
4166# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4167#endif
4168
4169#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4170int
4171main ()
4172{
4173  int i;
4174  for (i = 0; i < 256; i++)
4175    if (XOR (islower (i), ISLOWER (i))
4176	|| toupper (i) != TOUPPER (i))
4177      return 2;
4178  return 0;
4179}
4180_ACEOF
4181rm -f conftest$ac_exeext
4182if { (ac_try="$ac_link"
4183case "(($ac_try" in
4184  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4185  *) ac_try_echo=$ac_try;;
4186esac
4187eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4188  (eval "$ac_link") 2>&5
4189  ac_status=$?
4190  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4191  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4192  { (case "(($ac_try" in
4193  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4194  *) ac_try_echo=$ac_try;;
4195esac
4196eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4197  (eval "$ac_try") 2>&5
4198  ac_status=$?
4199  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4200  (exit $ac_status); }; }; then
4201  :
4202else
4203  echo "$as_me: program exited with status $ac_status" >&5
4204echo "$as_me: failed program was:" >&5
4205sed 's/^/| /' conftest.$ac_ext >&5
4206
4207( exit $ac_status )
4208ac_cv_header_stdc=no
4209fi
4210rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4211fi
4212
4213
4214fi
4215fi
4216{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4217echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4218if test $ac_cv_header_stdc = yes; then
4219
4220cat >>confdefs.h <<\_ACEOF
4221#define STDC_HEADERS 1
4222_ACEOF
4223
4224fi
4225
4226# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4227
4228
4229
4230
4231
4232
4233
4234
4235
4236for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4237		  inttypes.h stdint.h unistd.h
4238do
4239as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4240{ echo "$as_me:$LINENO: checking for $ac_header" >&5
4241echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4242if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4243  echo $ECHO_N "(cached) $ECHO_C" >&6
4244else
4245  cat >conftest.$ac_ext <<_ACEOF
4246/* confdefs.h.  */
4247_ACEOF
4248cat confdefs.h >>conftest.$ac_ext
4249cat >>conftest.$ac_ext <<_ACEOF
4250/* end confdefs.h.  */
4251$ac_includes_default
4252
4253#include <$ac_header>
4254_ACEOF
4255rm -f conftest.$ac_objext
4256if { (ac_try="$ac_compile"
4257case "(($ac_try" in
4258  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4259  *) ac_try_echo=$ac_try;;
4260esac
4261eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4262  (eval "$ac_compile") 2>conftest.er1
4263  ac_status=$?
4264  grep -v '^ *+' conftest.er1 >conftest.err
4265  rm -f conftest.er1
4266  cat conftest.err >&5
4267  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4268  (exit $ac_status); } &&
4269	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4270  { (case "(($ac_try" in
4271  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4272  *) ac_try_echo=$ac_try;;
4273esac
4274eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4275  (eval "$ac_try") 2>&5
4276  ac_status=$?
4277  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4278  (exit $ac_status); }; } &&
4279	 { ac_try='test -s conftest.$ac_objext'
4280  { (case "(($ac_try" in
4281  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4282  *) ac_try_echo=$ac_try;;
4283esac
4284eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4285  (eval "$ac_try") 2>&5
4286  ac_status=$?
4287  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4288  (exit $ac_status); }; }; then
4289  eval "$as_ac_Header=yes"
4290else
4291  echo "$as_me: failed program was:" >&5
4292sed 's/^/| /' conftest.$ac_ext >&5
4293
4294	eval "$as_ac_Header=no"
4295fi
4296
4297rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4298fi
4299ac_res=`eval echo '${'$as_ac_Header'}'`
4300	       { echo "$as_me:$LINENO: result: $ac_res" >&5
4301echo "${ECHO_T}$ac_res" >&6; }
4302if test `eval echo '${'$as_ac_Header'}'` = yes; then
4303  cat >>confdefs.h <<_ACEOF
4304#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4305_ACEOF
4306
4307fi
4308
4309done
4310
4311
4312{ echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4313echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4314if test "${ac_cv_c_bigendian+set}" = set; then
4315  echo $ECHO_N "(cached) $ECHO_C" >&6
4316else
4317  # See if sys/param.h defines the BYTE_ORDER macro.
4318cat >conftest.$ac_ext <<_ACEOF
4319/* confdefs.h.  */
4320_ACEOF
4321cat confdefs.h >>conftest.$ac_ext
4322cat >>conftest.$ac_ext <<_ACEOF
4323/* end confdefs.h.  */
4324#include <sys/types.h>
4325#include <sys/param.h>
4326
4327int
4328main ()
4329{
4330#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4331 bogus endian macros
4332#endif
4333
4334  ;
4335  return 0;
4336}
4337_ACEOF
4338rm -f conftest.$ac_objext
4339if { (ac_try="$ac_compile"
4340case "(($ac_try" in
4341  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4342  *) ac_try_echo=$ac_try;;
4343esac
4344eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4345  (eval "$ac_compile") 2>conftest.er1
4346  ac_status=$?
4347  grep -v '^ *+' conftest.er1 >conftest.err
4348  rm -f conftest.er1
4349  cat conftest.err >&5
4350  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4351  (exit $ac_status); } &&
4352	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4353  { (case "(($ac_try" in
4354  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4355  *) ac_try_echo=$ac_try;;
4356esac
4357eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4358  (eval "$ac_try") 2>&5
4359  ac_status=$?
4360  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4361  (exit $ac_status); }; } &&
4362	 { ac_try='test -s conftest.$ac_objext'
4363  { (case "(($ac_try" in
4364  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4365  *) ac_try_echo=$ac_try;;
4366esac
4367eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4368  (eval "$ac_try") 2>&5
4369  ac_status=$?
4370  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4371  (exit $ac_status); }; }; then
4372  # It does; now see whether it defined to BIG_ENDIAN or not.
4373cat >conftest.$ac_ext <<_ACEOF
4374/* confdefs.h.  */
4375_ACEOF
4376cat confdefs.h >>conftest.$ac_ext
4377cat >>conftest.$ac_ext <<_ACEOF
4378/* end confdefs.h.  */
4379#include <sys/types.h>
4380#include <sys/param.h>
4381
4382int
4383main ()
4384{
4385#if BYTE_ORDER != BIG_ENDIAN
4386 not big endian
4387#endif
4388
4389  ;
4390  return 0;
4391}
4392_ACEOF
4393rm -f conftest.$ac_objext
4394if { (ac_try="$ac_compile"
4395case "(($ac_try" in
4396  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4397  *) ac_try_echo=$ac_try;;
4398esac
4399eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4400  (eval "$ac_compile") 2>conftest.er1
4401  ac_status=$?
4402  grep -v '^ *+' conftest.er1 >conftest.err
4403  rm -f conftest.er1
4404  cat conftest.err >&5
4405  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4406  (exit $ac_status); } &&
4407	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4408  { (case "(($ac_try" in
4409  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4410  *) ac_try_echo=$ac_try;;
4411esac
4412eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4413  (eval "$ac_try") 2>&5
4414  ac_status=$?
4415  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4416  (exit $ac_status); }; } &&
4417	 { ac_try='test -s conftest.$ac_objext'
4418  { (case "(($ac_try" in
4419  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4420  *) ac_try_echo=$ac_try;;
4421esac
4422eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4423  (eval "$ac_try") 2>&5
4424  ac_status=$?
4425  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4426  (exit $ac_status); }; }; then
4427  ac_cv_c_bigendian=yes
4428else
4429  echo "$as_me: failed program was:" >&5
4430sed 's/^/| /' conftest.$ac_ext >&5
4431
4432	ac_cv_c_bigendian=no
4433fi
4434
4435rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4436else
4437  echo "$as_me: failed program was:" >&5
4438sed 's/^/| /' conftest.$ac_ext >&5
4439
4440	# It does not; compile a test program.
4441if test "$cross_compiling" = yes; then
4442  # try to guess the endianness by grepping values into an object file
4443  ac_cv_c_bigendian=unknown
4444  cat >conftest.$ac_ext <<_ACEOF
4445/* confdefs.h.  */
4446_ACEOF
4447cat confdefs.h >>conftest.$ac_ext
4448cat >>conftest.$ac_ext <<_ACEOF
4449/* end confdefs.h.  */
4450short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4451short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4452void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4453short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4454short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4455void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4456int
4457main ()
4458{
4459 _ascii (); _ebcdic ();
4460  ;
4461  return 0;
4462}
4463_ACEOF
4464rm -f conftest.$ac_objext
4465if { (ac_try="$ac_compile"
4466case "(($ac_try" in
4467  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4468  *) ac_try_echo=$ac_try;;
4469esac
4470eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4471  (eval "$ac_compile") 2>conftest.er1
4472  ac_status=$?
4473  grep -v '^ *+' conftest.er1 >conftest.err
4474  rm -f conftest.er1
4475  cat conftest.err >&5
4476  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4477  (exit $ac_status); } &&
4478	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4479  { (case "(($ac_try" in
4480  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4481  *) ac_try_echo=$ac_try;;
4482esac
4483eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4484  (eval "$ac_try") 2>&5
4485  ac_status=$?
4486  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4487  (exit $ac_status); }; } &&
4488	 { ac_try='test -s conftest.$ac_objext'
4489  { (case "(($ac_try" in
4490  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4491  *) ac_try_echo=$ac_try;;
4492esac
4493eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4494  (eval "$ac_try") 2>&5
4495  ac_status=$?
4496  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4497  (exit $ac_status); }; }; then
4498  if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4499  ac_cv_c_bigendian=yes
4500fi
4501if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4502  if test "$ac_cv_c_bigendian" = unknown; then
4503    ac_cv_c_bigendian=no
4504  else
4505    # finding both strings is unlikely to happen, but who knows?
4506    ac_cv_c_bigendian=unknown
4507  fi
4508fi
4509else
4510  echo "$as_me: failed program was:" >&5
4511sed 's/^/| /' conftest.$ac_ext >&5
4512
4513
4514fi
4515
4516rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4517else
4518  cat >conftest.$ac_ext <<_ACEOF
4519/* confdefs.h.  */
4520_ACEOF
4521cat confdefs.h >>conftest.$ac_ext
4522cat >>conftest.$ac_ext <<_ACEOF
4523/* end confdefs.h.  */
4524$ac_includes_default
4525int
4526main ()
4527{
4528
4529  /* Are we little or big endian?  From Harbison&Steele.  */
4530  union
4531  {
4532    long int l;
4533    char c[sizeof (long int)];
4534  } u;
4535  u.l = 1;
4536  return u.c[sizeof (long int) - 1] == 1;
4537
4538  ;
4539  return 0;
4540}
4541_ACEOF
4542rm -f conftest$ac_exeext
4543if { (ac_try="$ac_link"
4544case "(($ac_try" in
4545  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4546  *) ac_try_echo=$ac_try;;
4547esac
4548eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4549  (eval "$ac_link") 2>&5
4550  ac_status=$?
4551  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4552  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4553  { (case "(($ac_try" in
4554  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4555  *) ac_try_echo=$ac_try;;
4556esac
4557eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4558  (eval "$ac_try") 2>&5
4559  ac_status=$?
4560  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4561  (exit $ac_status); }; }; then
4562  ac_cv_c_bigendian=no
4563else
4564  echo "$as_me: program exited with status $ac_status" >&5
4565echo "$as_me: failed program was:" >&5
4566sed 's/^/| /' conftest.$ac_ext >&5
4567
4568( exit $ac_status )
4569ac_cv_c_bigendian=yes
4570fi
4571rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4572fi
4573
4574
4575fi
4576
4577rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4578fi
4579{ echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4580echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4581case $ac_cv_c_bigendian in
4582  yes)
4583    ENDIAN=big
4584 ;;
4585  no)
4586    ENDIAN=little
4587 ;;
4588  *)
4589    { { echo "$as_me:$LINENO: error: unknown endianness
4590presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4591echo "$as_me: error: unknown endianness
4592presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4593   { (exit 1); exit 1; }; } ;;
4594esac
4595
4596
4597if test "$cross_compiling" = yes; then
4598  LLVM_CROSS_COMPILING=1
4599
4600
4601{ echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4602echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4603if test "${ac_cv_build_exeext+set}" = set; then
4604  echo $ECHO_N "(cached) $ECHO_C" >&6
4605else
4606  if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4607  ac_cv_build_exeext=.exe
4608else
4609  ac_build_prefix=${build_alias}-
4610
4611  # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4612set dummy ${ac_build_prefix}gcc; ac_word=$2
4613{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4614echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4615if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4616  echo $ECHO_N "(cached) $ECHO_C" >&6
4617else
4618  if test -n "$BUILD_CC"; then
4619  ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4620else
4621as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4622for as_dir in $PATH
4623do
4624  IFS=$as_save_IFS
4625  test -z "$as_dir" && as_dir=.
4626  for ac_exec_ext in '' $ac_executable_extensions; do
4627  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4628    ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4629    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4630    break 2
4631  fi
4632done
4633done
4634IFS=$as_save_IFS
4635
4636fi
4637fi
4638BUILD_CC=$ac_cv_prog_BUILD_CC
4639if test -n "$BUILD_CC"; then
4640  { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4641echo "${ECHO_T}$BUILD_CC" >&6; }
4642else
4643  { echo "$as_me:$LINENO: result: no" >&5
4644echo "${ECHO_T}no" >&6; }
4645fi
4646
4647
4648  if test -z "$BUILD_CC"; then
4649     # Extract the first word of "gcc", so it can be a program name with args.
4650set dummy gcc; ac_word=$2
4651{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4652echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4653if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4654  echo $ECHO_N "(cached) $ECHO_C" >&6
4655else
4656  if test -n "$BUILD_CC"; then
4657  ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4658else
4659as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4660for as_dir in $PATH
4661do
4662  IFS=$as_save_IFS
4663  test -z "$as_dir" && as_dir=.
4664  for ac_exec_ext in '' $ac_executable_extensions; do
4665  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4666    ac_cv_prog_BUILD_CC="gcc"
4667    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4668    break 2
4669  fi
4670done
4671done
4672IFS=$as_save_IFS
4673
4674fi
4675fi
4676BUILD_CC=$ac_cv_prog_BUILD_CC
4677if test -n "$BUILD_CC"; then
4678  { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4679echo "${ECHO_T}$BUILD_CC" >&6; }
4680else
4681  { echo "$as_me:$LINENO: result: no" >&5
4682echo "${ECHO_T}no" >&6; }
4683fi
4684
4685
4686     if test -z "$BUILD_CC"; then
4687       # Extract the first word of "cc", so it can be a program name with args.
4688set dummy cc; ac_word=$2
4689{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4690echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4691if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4692  echo $ECHO_N "(cached) $ECHO_C" >&6
4693else
4694  if test -n "$BUILD_CC"; then
4695  ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4696else
4697  ac_prog_rejected=no
4698as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4699for as_dir in $PATH
4700do
4701  IFS=$as_save_IFS
4702  test -z "$as_dir" && as_dir=.
4703  for ac_exec_ext in '' $ac_executable_extensions; do
4704  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4705    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4706       ac_prog_rejected=yes
4707       continue
4708     fi
4709    ac_cv_prog_BUILD_CC="cc"
4710    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4711    break 2
4712  fi
4713done
4714done
4715IFS=$as_save_IFS
4716
4717if test $ac_prog_rejected = yes; then
4718  # We found a bogon in the path, so make sure we never use it.
4719  set dummy $ac_cv_prog_BUILD_CC
4720  shift
4721  if test $# != 0; then
4722    # We chose a different compiler from the bogus one.
4723    # However, it has the same basename, so the bogon will be chosen
4724    # first if we set BUILD_CC to just the basename; use the full file name.
4725    shift
4726    ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4727  fi
4728fi
4729fi
4730fi
4731BUILD_CC=$ac_cv_prog_BUILD_CC
4732if test -n "$BUILD_CC"; then
4733  { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4734echo "${ECHO_T}$BUILD_CC" >&6; }
4735else
4736  { echo "$as_me:$LINENO: result: no" >&5
4737echo "${ECHO_T}no" >&6; }
4738fi
4739
4740
4741     fi
4742  fi
4743  test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4744echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4745   { (exit 1); exit 1; }; }
4746  ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4747  rm -f conftest*
4748  echo 'int main () { return 0; }' > conftest.$ac_ext
4749  ac_cv_build_exeext=
4750  if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4751  (eval $ac_build_link) 2>&5
4752  ac_status=$?
4753  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4754  (exit $ac_status); }; then
4755    for file in conftest.*; do
4756      case $file in
4757      *.c | *.o | *.obj | *.dSYM) ;;
4758      *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4759      esac
4760    done
4761  else
4762    { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4763echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4764   { (exit 1); exit 1; }; }
4765  fi
4766  rm -f conftest*
4767  test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4768fi
4769fi
4770
4771BUILD_EXEEXT=""
4772test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4773{ echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4774echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4775ac_build_exeext=$BUILD_EXEEXT
4776
4777  ac_build_prefix=${build_alias}-
4778  # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4779set dummy ${ac_build_prefix}g++; ac_word=$2
4780{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4781echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4782if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4783  echo $ECHO_N "(cached) $ECHO_C" >&6
4784else
4785  if test -n "$BUILD_CXX"; then
4786  ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4787else
4788as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4789for as_dir in $PATH
4790do
4791  IFS=$as_save_IFS
4792  test -z "$as_dir" && as_dir=.
4793  for ac_exec_ext in '' $ac_executable_extensions; do
4794  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4795    ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
4796    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4797    break 2
4798  fi
4799done
4800done
4801IFS=$as_save_IFS
4802
4803fi
4804fi
4805BUILD_CXX=$ac_cv_prog_BUILD_CXX
4806if test -n "$BUILD_CXX"; then
4807  { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4808echo "${ECHO_T}$BUILD_CXX" >&6; }
4809else
4810  { echo "$as_me:$LINENO: result: no" >&5
4811echo "${ECHO_T}no" >&6; }
4812fi
4813
4814
4815  if test -z "$BUILD_CXX"; then
4816     # Extract the first word of "g++", so it can be a program name with args.
4817set dummy g++; ac_word=$2
4818{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4819echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4820if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4821  echo $ECHO_N "(cached) $ECHO_C" >&6
4822else
4823  if test -n "$BUILD_CXX"; then
4824  ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4825else
4826as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4827for as_dir in $PATH
4828do
4829  IFS=$as_save_IFS
4830  test -z "$as_dir" && as_dir=.
4831  for ac_exec_ext in '' $ac_executable_extensions; do
4832  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4833    ac_cv_prog_BUILD_CXX="g++"
4834    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4835    break 2
4836  fi
4837done
4838done
4839IFS=$as_save_IFS
4840
4841fi
4842fi
4843BUILD_CXX=$ac_cv_prog_BUILD_CXX
4844if test -n "$BUILD_CXX"; then
4845  { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4846echo "${ECHO_T}$BUILD_CXX" >&6; }
4847else
4848  { echo "$as_me:$LINENO: result: no" >&5
4849echo "${ECHO_T}no" >&6; }
4850fi
4851
4852
4853     if test -z "$BUILD_CXX"; then
4854       # Extract the first word of "c++", so it can be a program name with args.
4855set dummy c++; ac_word=$2
4856{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4857echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4858if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4859  echo $ECHO_N "(cached) $ECHO_C" >&6
4860else
4861  if test -n "$BUILD_CXX"; then
4862  ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4863else
4864  ac_prog_rejected=no
4865as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4866for as_dir in $PATH
4867do
4868  IFS=$as_save_IFS
4869  test -z "$as_dir" && as_dir=.
4870  for ac_exec_ext in '' $ac_executable_extensions; do
4871  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4872    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4873       ac_prog_rejected=yes
4874       continue
4875     fi
4876    ac_cv_prog_BUILD_CXX="c++"
4877    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4878    break 2
4879  fi
4880done
4881done
4882IFS=$as_save_IFS
4883
4884if test $ac_prog_rejected = yes; then
4885  # We found a bogon in the path, so make sure we never use it.
4886  set dummy $ac_cv_prog_BUILD_CXX
4887  shift
4888  if test $# != 0; then
4889    # We chose a different compiler from the bogus one.
4890    # However, it has the same basename, so the bogon will be chosen
4891    # first if we set BUILD_CXX to just the basename; use the full file name.
4892    shift
4893    ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4894  fi
4895fi
4896fi
4897fi
4898BUILD_CXX=$ac_cv_prog_BUILD_CXX
4899if test -n "$BUILD_CXX"; then
4900  { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4901echo "${ECHO_T}$BUILD_CXX" >&6; }
4902else
4903  { echo "$as_me:$LINENO: result: no" >&5
4904echo "${ECHO_T}no" >&6; }
4905fi
4906
4907
4908     fi
4909  fi
4910else
4911  LLVM_CROSS_COMPILING=0
4912
4913fi
4914
4915if test -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
4916  cvsbuild="yes"
4917  optimize="no"
4918  CVSBUILD=CVSBUILD=1
4919
4920else
4921  cvsbuild="no"
4922  optimize="yes"
4923fi
4924
4925
4926# Check whether --enable-libcpp was given.
4927if test "${enable_libcpp+set}" = set; then
4928  enableval=$enable_libcpp;
4929else
4930  enableval=default
4931fi
4932
4933case "$enableval" in
4934  yes) ENABLE_LIBCPP=1
4935 ;;
4936  no)  ENABLE_LIBCPP=0
4937 ;;
4938  default) ENABLE_LIBCPP=0
4939;;
4940  *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&5
4941echo "$as_me: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&2;}
4942   { (exit 1); exit 1; }; } ;;
4943esac
4944
4945# Check whether --enable-optimized was given.
4946if test "${enable_optimized+set}" = set; then
4947  enableval=$enable_optimized;
4948else
4949  enableval=$optimize
4950fi
4951
4952if test ${enableval} = "no" ; then
4953  ENABLE_OPTIMIZED=
4954
4955else
4956  ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4957
4958fi
4959
4960# Check whether --enable-profiling was given.
4961if test "${enable_profiling+set}" = set; then
4962  enableval=$enable_profiling;
4963else
4964  enableval="no"
4965fi
4966
4967if test ${enableval} = "no" ; then
4968  ENABLE_PROFILING=
4969
4970else
4971  ENABLE_PROFILING=ENABLE_PROFILING=1
4972
4973fi
4974
4975# Check whether --enable-assertions was given.
4976if test "${enable_assertions+set}" = set; then
4977  enableval=$enable_assertions;
4978else
4979  enableval="yes"
4980fi
4981
4982if test ${enableval} = "yes" ; then
4983  DISABLE_ASSERTIONS=
4984
4985else
4986  DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
4987
4988fi
4989
4990# Check whether --enable-expensive-checks was given.
4991if test "${enable_expensive_checks+set}" = set; then
4992  enableval=$enable_expensive_checks;
4993else
4994  enableval="no"
4995fi
4996
4997if test ${enableval} = "yes" ; then
4998  ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
4999
5000  EXPENSIVE_CHECKS=yes
5001
5002else
5003  ENABLE_EXPENSIVE_CHECKS=
5004
5005  EXPENSIVE_CHECKS=no
5006
5007fi
5008
5009# Check whether --enable-debug-runtime was given.
5010if test "${enable_debug_runtime+set}" = set; then
5011  enableval=$enable_debug_runtime;
5012else
5013  enableval=no
5014fi
5015
5016if test ${enableval} = "no" ; then
5017  DEBUG_RUNTIME=
5018
5019else
5020  DEBUG_RUNTIME=DEBUG_RUNTIME=1
5021
5022fi
5023
5024# Check whether --enable-debug-symbols was given.
5025if test "${enable_debug_symbols+set}" = set; then
5026  enableval=$enable_debug_symbols;
5027else
5028  enableval=no
5029fi
5030
5031if test ${enableval} = "no" ; then
5032  DEBUG_SYMBOLS=
5033
5034else
5035  DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
5036
5037fi
5038
5039# Check whether --enable-jit was given.
5040if test "${enable_jit+set}" = set; then
5041  enableval=$enable_jit;
5042else
5043  enableval=default
5044fi
5045
5046if test ${enableval} = "no"
5047then
5048  JIT=
5049
5050else
5051  case "$llvm_cv_target_arch" in
5052    x86)         TARGET_HAS_JIT=1
5053 ;;
5054    Sparc)       TARGET_HAS_JIT=0
5055 ;;
5056    PowerPC)     TARGET_HAS_JIT=1
5057 ;;
5058    x86_64)      TARGET_HAS_JIT=1
5059 ;;
5060    ARM)         TARGET_HAS_JIT=1
5061 ;;
5062    Mips)        TARGET_HAS_JIT=1
5063 ;;
5064    XCore)       TARGET_HAS_JIT=0
5065 ;;
5066    MSP430)      TARGET_HAS_JIT=0
5067 ;;
5068    Hexagon)     TARGET_HAS_JIT=0
5069 ;;
5070    MBlaze)      TARGET_HAS_JIT=0
5071 ;;
5072    NVPTX)       TARGET_HAS_JIT=0
5073 ;;
5074    *)           TARGET_HAS_JIT=0
5075 ;;
5076  esac
5077fi
5078
5079# Check whether --enable-docs was given.
5080if test "${enable_docs+set}" = set; then
5081  enableval=$enable_docs;
5082else
5083  enableval=default
5084fi
5085
5086case "$enableval" in
5087  yes) ENABLE_DOCS=1
5088 ;;
5089  no)  ENABLE_DOCS=0
5090 ;;
5091  default) ENABLE_DOCS=1
5092 ;;
5093  *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&5
5094echo "$as_me: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&2;}
5095   { (exit 1); exit 1; }; } ;;
5096esac
5097
5098# Check whether --enable-doxygen was given.
5099if test "${enable_doxygen+set}" = set; then
5100  enableval=$enable_doxygen;
5101else
5102  enableval=default
5103fi
5104
5105case "$enableval" in
5106  yes) ENABLE_DOXYGEN=1
5107 ;;
5108  no)  ENABLE_DOXYGEN=0
5109 ;;
5110  default) ENABLE_DOXYGEN=0
5111 ;;
5112  *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
5113echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
5114   { (exit 1); exit 1; }; } ;;
5115esac
5116
5117# Check whether --enable-threads was given.
5118if test "${enable_threads+set}" = set; then
5119  enableval=$enable_threads;
5120else
5121  enableval=default
5122fi
5123
5124case "$enableval" in
5125  yes) ENABLE_THREADS=1
5126 ;;
5127  no)  ENABLE_THREADS=0
5128 ;;
5129  default) ENABLE_THREADS=1
5130 ;;
5131  *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
5132echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
5133   { (exit 1); exit 1; }; } ;;
5134esac
5135
5136cat >>confdefs.h <<_ACEOF
5137#define ENABLE_THREADS $ENABLE_THREADS
5138_ACEOF
5139
5140
5141# Check whether --enable-pthreads was given.
5142if test "${enable_pthreads+set}" = set; then
5143  enableval=$enable_pthreads;
5144else
5145  enableval=default
5146fi
5147
5148case "$enableval" in
5149  yes) ENABLE_PTHREADS=1
5150 ;;
5151  no)  ENABLE_PTHREADS=0
5152 ;;
5153  default) ENABLE_PTHREADS=1
5154 ;;
5155  *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&5
5156echo "$as_me: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&2;}
5157   { (exit 1); exit 1; }; } ;;
5158esac
5159
5160# Check whether --enable-pic was given.
5161if test "${enable_pic+set}" = set; then
5162  enableval=$enable_pic;
5163else
5164  enableval=default
5165fi
5166
5167case "$enableval" in
5168  yes) ENABLE_PIC=1
5169 ;;
5170  no)  ENABLE_PIC=0
5171 ;;
5172  default) ENABLE_PIC=1
5173 ;;
5174  *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
5175echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
5176   { (exit 1); exit 1; }; } ;;
5177esac
5178
5179cat >>confdefs.h <<_ACEOF
5180#define ENABLE_PIC $ENABLE_PIC
5181_ACEOF
5182
5183
5184# Check whether --enable-shared was given.
5185if test "${enable_shared+set}" = set; then
5186  enableval=$enable_shared;
5187else
5188  enableval=default
5189fi
5190
5191case "$enableval" in
5192  yes) ENABLE_SHARED=1
5193 ;;
5194  no)  ENABLE_SHARED=0
5195 ;;
5196  default) ENABLE_SHARED=0
5197 ;;
5198  *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5
5199echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;}
5200   { (exit 1); exit 1; }; } ;;
5201esac
5202
5203# Check whether --enable-embed-stdcxx was given.
5204if test "${enable_embed_stdcxx+set}" = set; then
5205  enableval=$enable_embed_stdcxx;
5206else
5207  enableval=default
5208fi
5209
5210case "$enableval" in
5211  yes) ENABLE_EMBED_STDCXX=1
5212 ;;
5213  no)  ENABLE_EMBED_STDCXX=0
5214 ;;
5215  default) ENABLE_EMBED_STDCXX=1
5216 ;;
5217  *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&5
5218echo "$as_me: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&2;}
5219   { (exit 1); exit 1; }; } ;;
5220esac
5221
5222# Check whether --enable-timestamps was given.
5223if test "${enable_timestamps+set}" = set; then
5224  enableval=$enable_timestamps;
5225else
5226  enableval=default
5227fi
5228
5229case "$enableval" in
5230  yes) ENABLE_TIMESTAMPS=1
5231 ;;
5232  no)  ENABLE_TIMESTAMPS=0
5233 ;;
5234  default) ENABLE_TIMESTAMPS=1
5235 ;;
5236  *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&5
5237echo "$as_me: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&2;}
5238   { (exit 1); exit 1; }; } ;;
5239esac
5240
5241cat >>confdefs.h <<_ACEOF
5242#define ENABLE_TIMESTAMPS $ENABLE_TIMESTAMPS
5243_ACEOF
5244
5245
5246TARGETS_TO_BUILD=""
5247# Check whether --enable-targets was given.
5248if test "${enable_targets+set}" = set; then
5249  enableval=$enable_targets;
5250else
5251  enableval=all
5252fi
5253
5254if test "$enableval" = host-only ; then
5255  enableval=host
5256fi
5257case "$enableval" in
5258  all) TARGETS_TO_BUILD="X86 Sparc PowerPC ARM Mips CellSPU XCore MSP430 Hexagon CppBackend MBlaze NVPTX" ;;
5259  *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
5260      case "$a_target" in
5261        x86)      TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5262        x86_64)   TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5263        sparc)    TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5264        powerpc)  TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5265        arm)      TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5266        mips)     TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5267        spu)      TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
5268        xcore)    TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5269        msp430)   TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5270        hexagon)  TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
5271        cpp)      TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
5272        mblaze)   TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
5273        nvptx)    TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
5274        host) case "$llvm_cv_target_arch" in
5275            x86)         TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5276            x86_64)      TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5277            Sparc)       TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5278            PowerPC)     TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5279            ARM)         TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5280            Mips)        TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5281            MBlaze)      TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
5282            CellSPU|SPU) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
5283            XCore)       TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5284            MSP430)      TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5285            Hexagon)     TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
5286            NVPTX)       TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
5287            *)       { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
5288echo "$as_me: error: Can not set target to build" >&2;}
5289   { (exit 1); exit 1; }; } ;;
5290          esac ;;
5291        *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
5292echo "$as_me: error: Unrecognized target $a_target" >&2;}
5293   { (exit 1); exit 1; }; } ;;
5294      esac
5295  done
5296  ;;
5297esac
5298TARGETS_TO_BUILD=$TARGETS_TO_BUILD
5299
5300
5301# Determine whether we are building LLVM support for the native architecture.
5302# If so, define LLVM_NATIVE_ARCH to that LLVM target.
5303for a_target in $TARGETS_TO_BUILD; do
5304  if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
5305
5306cat >>confdefs.h <<_ACEOF
5307#define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCH
5308_ACEOF
5309
5310    LLVM_NATIVE_TARGET="LLVMInitialize${LLVM_NATIVE_ARCH}Target"
5311    LLVM_NATIVE_TARGETINFO="LLVMInitialize${LLVM_NATIVE_ARCH}TargetInfo"
5312    LLVM_NATIVE_TARGETMC="LLVMInitialize${LLVM_NATIVE_ARCH}TargetMC"
5313    LLVM_NATIVE_ASMPRINTER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmPrinter"
5314    if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5315      LLVM_NATIVE_ASMPARSER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmParser"
5316    fi
5317    if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5318      LLVM_NATIVE_DISASSEMBLER="LLVMInitialize${LLVM_NATIVE_ARCH}Disassembler"
5319    fi
5320
5321cat >>confdefs.h <<_ACEOF
5322#define LLVM_NATIVE_TARGET $LLVM_NATIVE_TARGET
5323_ACEOF
5324
5325
5326cat >>confdefs.h <<_ACEOF
5327#define LLVM_NATIVE_TARGETINFO $LLVM_NATIVE_TARGETINFO
5328_ACEOF
5329
5330
5331cat >>confdefs.h <<_ACEOF
5332#define LLVM_NATIVE_TARGETMC $LLVM_NATIVE_TARGETMC
5333_ACEOF
5334
5335
5336cat >>confdefs.h <<_ACEOF
5337#define LLVM_NATIVE_ASMPRINTER $LLVM_NATIVE_ASMPRINTER
5338_ACEOF
5339
5340    if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5341
5342cat >>confdefs.h <<_ACEOF
5343#define LLVM_NATIVE_ASMPARSER $LLVM_NATIVE_ASMPARSER
5344_ACEOF
5345
5346    fi
5347    if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5348
5349cat >>confdefs.h <<_ACEOF
5350#define LLVM_NATIVE_DISASSEMBLER $LLVM_NATIVE_DISASSEMBLER
5351_ACEOF
5352
5353    fi
5354  fi
5355done
5356
5357# Build the LLVM_TARGET and LLVM_... macros for Targets.def and the individual
5358# target feature def files.
5359LLVM_ENUM_TARGETS=""
5360LLVM_ENUM_ASM_PRINTERS=""
5361LLVM_ENUM_ASM_PARSERS=""
5362LLVM_ENUM_DISASSEMBLERS=""
5363for target_to_build in $TARGETS_TO_BUILD; do
5364  LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
5365  if test -f ${srcdir}/lib/Target/${target_to_build}/*AsmPrinter.cpp ; then
5366    LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5367  fi
5368  if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5369    LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5370  fi
5371  if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
5372    LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
5373  fi
5374done
5375
5376
5377
5378
5379
5380
5381# Check whether --with-optimize-option was given.
5382if test "${with_optimize_option+set}" = set; then
5383  withval=$with_optimize_option;
5384else
5385  withval=default
5386fi
5387
5388{ echo "$as_me:$LINENO: checking optimization flags" >&5
5389echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
5390case "$withval" in
5391  default)
5392    case "$llvm_cv_os_type" in
5393    FreeBSD) optimize_option=-O2 ;;
5394    MingW) optimize_option=-O2 ;;
5395    *)     optimize_option=-O3 ;;
5396    esac ;;
5397  *) optimize_option="$withval" ;;
5398esac
5399OPTIMIZE_OPTION=$optimize_option
5400
5401{ echo "$as_me:$LINENO: result: $optimize_option" >&5
5402echo "${ECHO_T}$optimize_option" >&6; }
5403
5404
5405# Check whether --with-extra-options was given.
5406if test "${with_extra_options+set}" = set; then
5407  withval=$with_extra_options;
5408else
5409  withval=default
5410fi
5411
5412case "$withval" in
5413  default) EXTRA_OPTIONS= ;;
5414  *) EXTRA_OPTIONS=$withval ;;
5415esac
5416EXTRA_OPTIONS=$EXTRA_OPTIONS
5417
5418
5419
5420# Check whether --with-extra-ld-options was given.
5421if test "${with_extra_ld_options+set}" = set; then
5422  withval=$with_extra_ld_options;
5423else
5424  withval=default
5425fi
5426
5427case "$withval" in
5428  default) EXTRA_LD_OPTIONS= ;;
5429  *) EXTRA_LD_OPTIONS=$withval ;;
5430esac
5431EXTRA_LD_OPTIONS=$EXTRA_LD_OPTIONS
5432
5433
5434# Check whether --enable-bindings was given.
5435if test "${enable_bindings+set}" = set; then
5436  enableval=$enable_bindings;
5437else
5438  enableval=default
5439fi
5440
5441BINDINGS_TO_BUILD=""
5442case "$enableval" in
5443  yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
5444  all ) BINDINGS_TO_BUILD="ocaml" ;;
5445  none | no) BINDINGS_TO_BUILD="" ;;
5446  *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5447      case "$a_binding" in
5448        ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5449        *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5450echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5451   { (exit 1); exit 1; }; } ;;
5452      esac
5453  done
5454  ;;
5455esac
5456
5457
5458# Check whether --with-ocaml-libdir was given.
5459if test "${with_ocaml_libdir+set}" = set; then
5460  withval=$with_ocaml_libdir;
5461else
5462  withval=auto
5463fi
5464
5465case "$withval" in
5466  auto) with_ocaml_libdir="$withval" ;;
5467  /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5468  *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5469echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5470   { (exit 1); exit 1; }; } ;;
5471esac
5472
5473
5474# Check whether --with-clang-resource-dir was given.
5475if test "${with_clang_resource_dir+set}" = set; then
5476  withval=$with_clang_resource_dir;
5477else
5478  withval=""
5479fi
5480
5481
5482cat >>confdefs.h <<_ACEOF
5483#define CLANG_RESOURCE_DIR "$withval"
5484_ACEOF
5485
5486
5487
5488# Check whether --with-c-include-dirs was given.
5489if test "${with_c_include_dirs+set}" = set; then
5490  withval=$with_c_include_dirs;
5491else
5492  withval=""
5493fi
5494
5495
5496cat >>confdefs.h <<_ACEOF
5497#define C_INCLUDE_DIRS "$withval"
5498_ACEOF
5499
5500
5501# Clang normally uses the system c++ headers and libraries. With this option,
5502# clang will use the ones provided by a gcc installation instead. This option should
5503# be passed the same value that was used with --prefix when configuring gcc.
5504
5505# Check whether --with-gcc-toolchain was given.
5506if test "${with_gcc_toolchain+set}" = set; then
5507  withval=$with_gcc_toolchain;
5508else
5509  withval=""
5510fi
5511
5512
5513cat >>confdefs.h <<_ACEOF
5514#define GCC_INSTALL_PREFIX "$withval"
5515_ACEOF
5516
5517
5518
5519# Check whether --with-binutils-include was given.
5520if test "${with_binutils_include+set}" = set; then
5521  withval=$with_binutils_include;
5522else
5523  withval=default
5524fi
5525
5526case "$withval" in
5527  default) WITH_BINUTILS_INCDIR=default ;;
5528  /* | [A-Za-z]:[\\/]*)      WITH_BINUTILS_INCDIR=$withval ;;
5529  *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5530echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5531   { (exit 1); exit 1; }; } ;;
5532esac
5533if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5534  BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5535
5536  if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5537     echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
5538     { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5539echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5540   { (exit 1); exit 1; }; };
5541  fi
5542fi
5543
5544
5545# Check whether --with-bug-report-url was given.
5546if test "${with_bug_report_url+set}" = set; then
5547  withval=$with_bug_report_url;
5548else
5549  withval="http://llvm.org/bugs/"
5550fi
5551
5552
5553cat >>confdefs.h <<_ACEOF
5554#define BUG_REPORT_URL "$withval"
5555_ACEOF
5556
5557
5558# Check whether --enable-libffi was given.
5559if test "${enable_libffi+set}" = set; then
5560  enableval=$enable_libffi; case "$enableval" in
5561    yes) llvm_cv_enable_libffi="yes" ;;
5562    no)  llvm_cv_enable_libffi="no"  ;;
5563    *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
5564echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5565   { (exit 1); exit 1; }; } ;;
5566  esac
5567else
5568  llvm_cv_enable_libffi=no
5569fi
5570
5571
5572
5573{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5574echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
5575if test "${lt_cv_path_NM+set}" = set; then
5576  echo $ECHO_N "(cached) $ECHO_C" >&6
5577else
5578  if test -n "$NM"; then
5579  # Let the user override the test.
5580  lt_cv_path_NM="$NM"
5581else
5582  lt_nm_to_check="${ac_tool_prefix}nm"
5583  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5584    lt_nm_to_check="$lt_nm_to_check nm"
5585  fi
5586  for lt_tmp_nm in $lt_nm_to_check; do
5587    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5588    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5589      IFS="$lt_save_ifs"
5590      test -z "$ac_dir" && ac_dir=.
5591      tmp_nm="$ac_dir/$lt_tmp_nm"
5592      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5593	# Check to see if the nm accepts a BSD-compat flag.
5594	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
5595	#   nm: unknown option "B" ignored
5596	# Tru64's nm complains that /dev/null is an invalid object file
5597	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5598	*/dev/null* | *'Invalid file or object type'*)
5599	  lt_cv_path_NM="$tmp_nm -B"
5600	  break
5601	  ;;
5602	*)
5603	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5604	  */dev/null*)
5605	    lt_cv_path_NM="$tmp_nm -p"
5606	    break
5607	    ;;
5608	  *)
5609	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5610	    continue # so that we can try to find one that supports BSD flags
5611	    ;;
5612	  esac
5613	  ;;
5614	esac
5615      fi
5616    done
5617    IFS="$lt_save_ifs"
5618  done
5619  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5620fi
5621fi
5622{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5623echo "${ECHO_T}$lt_cv_path_NM" >&6; }
5624NM="$lt_cv_path_NM"
5625
5626
5627
5628{ echo "$as_me:$LINENO: checking for GNU make" >&5
5629echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
5630if test "${llvm_cv_gnu_make_command+set}" = set; then
5631  echo $ECHO_N "(cached) $ECHO_C" >&6
5632else
5633  llvm_cv_gnu_make_command=''
5634 for a in "$MAKE" make gmake gnumake ; do
5635  if test -z "$a" ; then continue ; fi ;
5636  if  ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
5637  then
5638   llvm_cv_gnu_make_command=$a ;
5639   break;
5640  fi
5641 done
5642fi
5643{ echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
5644echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
5645 if test "x$llvm_cv_gnu_make_command" != "x"  ; then
5646   ifGNUmake='' ;
5647 else
5648   ifGNUmake='#' ;
5649   { echo "$as_me:$LINENO: result: \"Not found\"" >&5
5650echo "${ECHO_T}\"Not found\"" >&6; };
5651 fi
5652
5653
5654{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
5655echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
5656LN_S=$as_ln_s
5657if test "$LN_S" = "ln -s"; then
5658  { echo "$as_me:$LINENO: result: yes" >&5
5659echo "${ECHO_T}yes" >&6; }
5660else
5661  { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5662echo "${ECHO_T}no, using $LN_S" >&6; }
5663fi
5664
5665# Extract the first word of "cmp", so it can be a program name with args.
5666set dummy cmp; ac_word=$2
5667{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5668echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5669if test "${ac_cv_path_CMP+set}" = set; then
5670  echo $ECHO_N "(cached) $ECHO_C" >&6
5671else
5672  case $CMP in
5673  [\\/]* | ?:[\\/]*)
5674  ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
5675  ;;
5676  *)
5677  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5678for as_dir in $PATH
5679do
5680  IFS=$as_save_IFS
5681  test -z "$as_dir" && as_dir=.
5682  for ac_exec_ext in '' $ac_executable_extensions; do
5683  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5684    ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
5685    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5686    break 2
5687  fi
5688done
5689done
5690IFS=$as_save_IFS
5691
5692  test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
5693  ;;
5694esac
5695fi
5696CMP=$ac_cv_path_CMP
5697if test -n "$CMP"; then
5698  { echo "$as_me:$LINENO: result: $CMP" >&5
5699echo "${ECHO_T}$CMP" >&6; }
5700else
5701  { echo "$as_me:$LINENO: result: no" >&5
5702echo "${ECHO_T}no" >&6; }
5703fi
5704
5705
5706# Extract the first word of "cp", so it can be a program name with args.
5707set dummy cp; ac_word=$2
5708{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5709echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5710if test "${ac_cv_path_CP+set}" = set; then
5711  echo $ECHO_N "(cached) $ECHO_C" >&6
5712else
5713  case $CP in
5714  [\\/]* | ?:[\\/]*)
5715  ac_cv_path_CP="$CP" # Let the user override the test with a path.
5716  ;;
5717  *)
5718  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5719for as_dir in $PATH
5720do
5721  IFS=$as_save_IFS
5722  test -z "$as_dir" && as_dir=.
5723  for ac_exec_ext in '' $ac_executable_extensions; do
5724  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5725    ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
5726    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5727    break 2
5728  fi
5729done
5730done
5731IFS=$as_save_IFS
5732
5733  test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
5734  ;;
5735esac
5736fi
5737CP=$ac_cv_path_CP
5738if test -n "$CP"; then
5739  { echo "$as_me:$LINENO: result: $CP" >&5
5740echo "${ECHO_T}$CP" >&6; }
5741else
5742  { echo "$as_me:$LINENO: result: no" >&5
5743echo "${ECHO_T}no" >&6; }
5744fi
5745
5746
5747# Extract the first word of "date", so it can be a program name with args.
5748set dummy date; ac_word=$2
5749{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5750echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5751if test "${ac_cv_path_DATE+set}" = set; then
5752  echo $ECHO_N "(cached) $ECHO_C" >&6
5753else
5754  case $DATE in
5755  [\\/]* | ?:[\\/]*)
5756  ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
5757  ;;
5758  *)
5759  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5760for as_dir in $PATH
5761do
5762  IFS=$as_save_IFS
5763  test -z "$as_dir" && as_dir=.
5764  for ac_exec_ext in '' $ac_executable_extensions; do
5765  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5766    ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
5767    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5768    break 2
5769  fi
5770done
5771done
5772IFS=$as_save_IFS
5773
5774  test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
5775  ;;
5776esac
5777fi
5778DATE=$ac_cv_path_DATE
5779if test -n "$DATE"; then
5780  { echo "$as_me:$LINENO: result: $DATE" >&5
5781echo "${ECHO_T}$DATE" >&6; }
5782else
5783  { echo "$as_me:$LINENO: result: no" >&5
5784echo "${ECHO_T}no" >&6; }
5785fi
5786
5787
5788# Extract the first word of "find", so it can be a program name with args.
5789set dummy find; ac_word=$2
5790{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5791echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5792if test "${ac_cv_path_FIND+set}" = set; then
5793  echo $ECHO_N "(cached) $ECHO_C" >&6
5794else
5795  case $FIND in
5796  [\\/]* | ?:[\\/]*)
5797  ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
5798  ;;
5799  *)
5800  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5801for as_dir in $PATH
5802do
5803  IFS=$as_save_IFS
5804  test -z "$as_dir" && as_dir=.
5805  for ac_exec_ext in '' $ac_executable_extensions; do
5806  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5807    ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
5808    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5809    break 2
5810  fi
5811done
5812done
5813IFS=$as_save_IFS
5814
5815  test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
5816  ;;
5817esac
5818fi
5819FIND=$ac_cv_path_FIND
5820if test -n "$FIND"; then
5821  { echo "$as_me:$LINENO: result: $FIND" >&5
5822echo "${ECHO_T}$FIND" >&6; }
5823else
5824  { echo "$as_me:$LINENO: result: no" >&5
5825echo "${ECHO_T}no" >&6; }
5826fi
5827
5828
5829# Extract the first word of "grep", so it can be a program name with args.
5830set dummy grep; ac_word=$2
5831{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5832echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5833if test "${ac_cv_path_GREP+set}" = set; then
5834  echo $ECHO_N "(cached) $ECHO_C" >&6
5835else
5836  case $GREP in
5837  [\\/]* | ?:[\\/]*)
5838  ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
5839  ;;
5840  *)
5841  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5842for as_dir in $PATH
5843do
5844  IFS=$as_save_IFS
5845  test -z "$as_dir" && as_dir=.
5846  for ac_exec_ext in '' $ac_executable_extensions; do
5847  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5848    ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
5849    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5850    break 2
5851  fi
5852done
5853done
5854IFS=$as_save_IFS
5855
5856  test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
5857  ;;
5858esac
5859fi
5860GREP=$ac_cv_path_GREP
5861if test -n "$GREP"; then
5862  { echo "$as_me:$LINENO: result: $GREP" >&5
5863echo "${ECHO_T}$GREP" >&6; }
5864else
5865  { echo "$as_me:$LINENO: result: no" >&5
5866echo "${ECHO_T}no" >&6; }
5867fi
5868
5869
5870# Extract the first word of "mkdir", so it can be a program name with args.
5871set dummy mkdir; ac_word=$2
5872{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5873echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5874if test "${ac_cv_path_MKDIR+set}" = set; then
5875  echo $ECHO_N "(cached) $ECHO_C" >&6
5876else
5877  case $MKDIR in
5878  [\\/]* | ?:[\\/]*)
5879  ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
5880  ;;
5881  *)
5882  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5883for as_dir in $PATH
5884do
5885  IFS=$as_save_IFS
5886  test -z "$as_dir" && as_dir=.
5887  for ac_exec_ext in '' $ac_executable_extensions; do
5888  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5889    ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
5890    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5891    break 2
5892  fi
5893done
5894done
5895IFS=$as_save_IFS
5896
5897  test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
5898  ;;
5899esac
5900fi
5901MKDIR=$ac_cv_path_MKDIR
5902if test -n "$MKDIR"; then
5903  { echo "$as_me:$LINENO: result: $MKDIR" >&5
5904echo "${ECHO_T}$MKDIR" >&6; }
5905else
5906  { echo "$as_me:$LINENO: result: no" >&5
5907echo "${ECHO_T}no" >&6; }
5908fi
5909
5910
5911# Extract the first word of "mv", so it can be a program name with args.
5912set dummy mv; ac_word=$2
5913{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5914echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5915if test "${ac_cv_path_MV+set}" = set; then
5916  echo $ECHO_N "(cached) $ECHO_C" >&6
5917else
5918  case $MV in
5919  [\\/]* | ?:[\\/]*)
5920  ac_cv_path_MV="$MV" # Let the user override the test with a path.
5921  ;;
5922  *)
5923  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5924for as_dir in $PATH
5925do
5926  IFS=$as_save_IFS
5927  test -z "$as_dir" && as_dir=.
5928  for ac_exec_ext in '' $ac_executable_extensions; do
5929  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5930    ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
5931    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5932    break 2
5933  fi
5934done
5935done
5936IFS=$as_save_IFS
5937
5938  test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
5939  ;;
5940esac
5941fi
5942MV=$ac_cv_path_MV
5943if test -n "$MV"; then
5944  { echo "$as_me:$LINENO: result: $MV" >&5
5945echo "${ECHO_T}$MV" >&6; }
5946else
5947  { echo "$as_me:$LINENO: result: no" >&5
5948echo "${ECHO_T}no" >&6; }
5949fi
5950
5951
5952if test -n "$ac_tool_prefix"; then
5953  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5954set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5955{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5956echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5957if test "${ac_cv_prog_RANLIB+set}" = set; then
5958  echo $ECHO_N "(cached) $ECHO_C" >&6
5959else
5960  if test -n "$RANLIB"; then
5961  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5962else
5963as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5964for as_dir in $PATH
5965do
5966  IFS=$as_save_IFS
5967  test -z "$as_dir" && as_dir=.
5968  for ac_exec_ext in '' $ac_executable_extensions; do
5969  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5970    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5971    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5972    break 2
5973  fi
5974done
5975done
5976IFS=$as_save_IFS
5977
5978fi
5979fi
5980RANLIB=$ac_cv_prog_RANLIB
5981if test -n "$RANLIB"; then
5982  { echo "$as_me:$LINENO: result: $RANLIB" >&5
5983echo "${ECHO_T}$RANLIB" >&6; }
5984else
5985  { echo "$as_me:$LINENO: result: no" >&5
5986echo "${ECHO_T}no" >&6; }
5987fi
5988
5989
5990fi
5991if test -z "$ac_cv_prog_RANLIB"; then
5992  ac_ct_RANLIB=$RANLIB
5993  # Extract the first word of "ranlib", so it can be a program name with args.
5994set dummy ranlib; ac_word=$2
5995{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5996echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5997if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5998  echo $ECHO_N "(cached) $ECHO_C" >&6
5999else
6000  if test -n "$ac_ct_RANLIB"; then
6001  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6002else
6003as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6004for as_dir in $PATH
6005do
6006  IFS=$as_save_IFS
6007  test -z "$as_dir" && as_dir=.
6008  for ac_exec_ext in '' $ac_executable_extensions; do
6009  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6010    ac_cv_prog_ac_ct_RANLIB="ranlib"
6011    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6012    break 2
6013  fi
6014done
6015done
6016IFS=$as_save_IFS
6017
6018fi
6019fi
6020ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6021if test -n "$ac_ct_RANLIB"; then
6022  { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6023echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6024else
6025  { echo "$as_me:$LINENO: result: no" >&5
6026echo "${ECHO_T}no" >&6; }
6027fi
6028
6029  if test "x$ac_ct_RANLIB" = x; then
6030    RANLIB=":"
6031  else
6032    case $cross_compiling:$ac_tool_warned in
6033yes:)
6034{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6035whose name does not start with the host triplet.  If you think this
6036configuration is useful to you, please write to autoconf@gnu.org." >&5
6037echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6038whose name does not start with the host triplet.  If you think this
6039configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6040ac_tool_warned=yes ;;
6041esac
6042    RANLIB=$ac_ct_RANLIB
6043  fi
6044else
6045  RANLIB="$ac_cv_prog_RANLIB"
6046fi
6047
6048if test -n "$ac_tool_prefix"; then
6049  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6050set dummy ${ac_tool_prefix}ar; ac_word=$2
6051{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6052echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6053if test "${ac_cv_prog_AR+set}" = set; then
6054  echo $ECHO_N "(cached) $ECHO_C" >&6
6055else
6056  if test -n "$AR"; then
6057  ac_cv_prog_AR="$AR" # Let the user override the test.
6058else
6059as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6060for as_dir in $PATH
6061do
6062  IFS=$as_save_IFS
6063  test -z "$as_dir" && as_dir=.
6064  for ac_exec_ext in '' $ac_executable_extensions; do
6065  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6066    ac_cv_prog_AR="${ac_tool_prefix}ar"
6067    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6068    break 2
6069  fi
6070done
6071done
6072IFS=$as_save_IFS
6073
6074fi
6075fi
6076AR=$ac_cv_prog_AR
6077if test -n "$AR"; then
6078  { echo "$as_me:$LINENO: result: $AR" >&5
6079echo "${ECHO_T}$AR" >&6; }
6080else
6081  { echo "$as_me:$LINENO: result: no" >&5
6082echo "${ECHO_T}no" >&6; }
6083fi
6084
6085
6086fi
6087if test -z "$ac_cv_prog_AR"; then
6088  ac_ct_AR=$AR
6089  # Extract the first word of "ar", so it can be a program name with args.
6090set dummy ar; ac_word=$2
6091{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6092echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6093if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6094  echo $ECHO_N "(cached) $ECHO_C" >&6
6095else
6096  if test -n "$ac_ct_AR"; then
6097  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6098else
6099as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6100for as_dir in $PATH
6101do
6102  IFS=$as_save_IFS
6103  test -z "$as_dir" && as_dir=.
6104  for ac_exec_ext in '' $ac_executable_extensions; do
6105  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6106    ac_cv_prog_ac_ct_AR="ar"
6107    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6108    break 2
6109  fi
6110done
6111done
6112IFS=$as_save_IFS
6113
6114fi
6115fi
6116ac_ct_AR=$ac_cv_prog_ac_ct_AR
6117if test -n "$ac_ct_AR"; then
6118  { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6119echo "${ECHO_T}$ac_ct_AR" >&6; }
6120else
6121  { echo "$as_me:$LINENO: result: no" >&5
6122echo "${ECHO_T}no" >&6; }
6123fi
6124
6125  if test "x$ac_ct_AR" = x; then
6126    AR="false"
6127  else
6128    case $cross_compiling:$ac_tool_warned in
6129yes:)
6130{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6131whose name does not start with the host triplet.  If you think this
6132configuration is useful to you, please write to autoconf@gnu.org." >&5
6133echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6134whose name does not start with the host triplet.  If you think this
6135configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6136ac_tool_warned=yes ;;
6137esac
6138    AR=$ac_ct_AR
6139  fi
6140else
6141  AR="$ac_cv_prog_AR"
6142fi
6143
6144# Extract the first word of "rm", so it can be a program name with args.
6145set dummy rm; ac_word=$2
6146{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6147echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6148if test "${ac_cv_path_RM+set}" = set; then
6149  echo $ECHO_N "(cached) $ECHO_C" >&6
6150else
6151  case $RM in
6152  [\\/]* | ?:[\\/]*)
6153  ac_cv_path_RM="$RM" # Let the user override the test with a path.
6154  ;;
6155  *)
6156  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6157for as_dir in $PATH
6158do
6159  IFS=$as_save_IFS
6160  test -z "$as_dir" && as_dir=.
6161  for ac_exec_ext in '' $ac_executable_extensions; do
6162  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6163    ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
6164    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6165    break 2
6166  fi
6167done
6168done
6169IFS=$as_save_IFS
6170
6171  test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
6172  ;;
6173esac
6174fi
6175RM=$ac_cv_path_RM
6176if test -n "$RM"; then
6177  { echo "$as_me:$LINENO: result: $RM" >&5
6178echo "${ECHO_T}$RM" >&6; }
6179else
6180  { echo "$as_me:$LINENO: result: no" >&5
6181echo "${ECHO_T}no" >&6; }
6182fi
6183
6184
6185# Extract the first word of "sed", so it can be a program name with args.
6186set dummy sed; ac_word=$2
6187{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6188echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6189if test "${ac_cv_path_SED+set}" = set; then
6190  echo $ECHO_N "(cached) $ECHO_C" >&6
6191else
6192  case $SED in
6193  [\\/]* | ?:[\\/]*)
6194  ac_cv_path_SED="$SED" # Let the user override the test with a path.
6195  ;;
6196  *)
6197  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6198for as_dir in $PATH
6199do
6200  IFS=$as_save_IFS
6201  test -z "$as_dir" && as_dir=.
6202  for ac_exec_ext in '' $ac_executable_extensions; do
6203  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6204    ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
6205    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6206    break 2
6207  fi
6208done
6209done
6210IFS=$as_save_IFS
6211
6212  test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
6213  ;;
6214esac
6215fi
6216SED=$ac_cv_path_SED
6217if test -n "$SED"; then
6218  { echo "$as_me:$LINENO: result: $SED" >&5
6219echo "${ECHO_T}$SED" >&6; }
6220else
6221  { echo "$as_me:$LINENO: result: no" >&5
6222echo "${ECHO_T}no" >&6; }
6223fi
6224
6225
6226# Extract the first word of "tar", so it can be a program name with args.
6227set dummy tar; ac_word=$2
6228{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6229echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6230if test "${ac_cv_path_TAR+set}" = set; then
6231  echo $ECHO_N "(cached) $ECHO_C" >&6
6232else
6233  case $TAR in
6234  [\\/]* | ?:[\\/]*)
6235  ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
6236  ;;
6237  *)
6238  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6239for as_dir in $PATH
6240do
6241  IFS=$as_save_IFS
6242  test -z "$as_dir" && as_dir=.
6243  for ac_exec_ext in '' $ac_executable_extensions; do
6244  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6245    ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
6246    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6247    break 2
6248  fi
6249done
6250done
6251IFS=$as_save_IFS
6252
6253  test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
6254  ;;
6255esac
6256fi
6257TAR=$ac_cv_path_TAR
6258if test -n "$TAR"; then
6259  { echo "$as_me:$LINENO: result: $TAR" >&5
6260echo "${ECHO_T}$TAR" >&6; }
6261else
6262  { echo "$as_me:$LINENO: result: no" >&5
6263echo "${ECHO_T}no" >&6; }
6264fi
6265
6266
6267# Extract the first word of "pwd", so it can be a program name with args.
6268set dummy pwd; ac_word=$2
6269{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6270echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6271if test "${ac_cv_path_BINPWD+set}" = set; then
6272  echo $ECHO_N "(cached) $ECHO_C" >&6
6273else
6274  case $BINPWD in
6275  [\\/]* | ?:[\\/]*)
6276  ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
6277  ;;
6278  *)
6279  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6280for as_dir in $PATH
6281do
6282  IFS=$as_save_IFS
6283  test -z "$as_dir" && as_dir=.
6284  for ac_exec_ext in '' $ac_executable_extensions; do
6285  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6286    ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
6287    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6288    break 2
6289  fi
6290done
6291done
6292IFS=$as_save_IFS
6293
6294  test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
6295  ;;
6296esac
6297fi
6298BINPWD=$ac_cv_path_BINPWD
6299if test -n "$BINPWD"; then
6300  { echo "$as_me:$LINENO: result: $BINPWD" >&5
6301echo "${ECHO_T}$BINPWD" >&6; }
6302else
6303  { echo "$as_me:$LINENO: result: no" >&5
6304echo "${ECHO_T}no" >&6; }
6305fi
6306
6307
6308
6309# Extract the first word of "Graphviz", so it can be a program name with args.
6310set dummy Graphviz; ac_word=$2
6311{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6312echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6313if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
6314  echo $ECHO_N "(cached) $ECHO_C" >&6
6315else
6316  case $GRAPHVIZ in
6317  [\\/]* | ?:[\\/]*)
6318  ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
6319  ;;
6320  *)
6321  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6322for as_dir in $PATH
6323do
6324  IFS=$as_save_IFS
6325  test -z "$as_dir" && as_dir=.
6326  for ac_exec_ext in '' $ac_executable_extensions; do
6327  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6328    ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
6329    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6330    break 2
6331  fi
6332done
6333done
6334IFS=$as_save_IFS
6335
6336  test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
6337  ;;
6338esac
6339fi
6340GRAPHVIZ=$ac_cv_path_GRAPHVIZ
6341if test -n "$GRAPHVIZ"; then
6342  { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
6343echo "${ECHO_T}$GRAPHVIZ" >&6; }
6344else
6345  { echo "$as_me:$LINENO: result: no" >&5
6346echo "${ECHO_T}no" >&6; }
6347fi
6348
6349
6350if test "$GRAPHVIZ" != "echo Graphviz" ; then
6351
6352cat >>confdefs.h <<\_ACEOF
6353#define HAVE_GRAPHVIZ 1
6354_ACEOF
6355
6356    if test "$llvm_cv_os_type" = "MingW" ; then
6357    GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6358  fi
6359
6360cat >>confdefs.h <<_ACEOF
6361#define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
6362_ACEOF
6363
6364fi
6365# Extract the first word of "dot", so it can be a program name with args.
6366set dummy dot; ac_word=$2
6367{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6368echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6369if test "${ac_cv_path_DOT+set}" = set; then
6370  echo $ECHO_N "(cached) $ECHO_C" >&6
6371else
6372  case $DOT in
6373  [\\/]* | ?:[\\/]*)
6374  ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
6375  ;;
6376  *)
6377  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6378for as_dir in $PATH
6379do
6380  IFS=$as_save_IFS
6381  test -z "$as_dir" && as_dir=.
6382  for ac_exec_ext in '' $ac_executable_extensions; do
6383  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6384    ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
6385    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6386    break 2
6387  fi
6388done
6389done
6390IFS=$as_save_IFS
6391
6392  test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
6393  ;;
6394esac
6395fi
6396DOT=$ac_cv_path_DOT
6397if test -n "$DOT"; then
6398  { echo "$as_me:$LINENO: result: $DOT" >&5
6399echo "${ECHO_T}$DOT" >&6; }
6400else
6401  { echo "$as_me:$LINENO: result: no" >&5
6402echo "${ECHO_T}no" >&6; }
6403fi
6404
6405
6406if test "$DOT" != "echo dot" ; then
6407
6408cat >>confdefs.h <<\_ACEOF
6409#define HAVE_DOT 1
6410_ACEOF
6411
6412    if test "$llvm_cv_os_type" = "MingW" ; then
6413    DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6414  fi
6415
6416cat >>confdefs.h <<_ACEOF
6417#define LLVM_PATH_DOT "$DOT${EXEEXT}"
6418_ACEOF
6419
6420fi
6421# Extract the first word of "fdp", so it can be a program name with args.
6422set dummy fdp; ac_word=$2
6423{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6424echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6425if test "${ac_cv_path_FDP+set}" = set; then
6426  echo $ECHO_N "(cached) $ECHO_C" >&6
6427else
6428  case $FDP in
6429  [\\/]* | ?:[\\/]*)
6430  ac_cv_path_FDP="$FDP" # Let the user override the test with a path.
6431  ;;
6432  *)
6433  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6434for as_dir in $PATH
6435do
6436  IFS=$as_save_IFS
6437  test -z "$as_dir" && as_dir=.
6438  for ac_exec_ext in '' $ac_executable_extensions; do
6439  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6440    ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext"
6441    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6442    break 2
6443  fi
6444done
6445done
6446IFS=$as_save_IFS
6447
6448  test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp"
6449  ;;
6450esac
6451fi
6452FDP=$ac_cv_path_FDP
6453if test -n "$FDP"; then
6454  { echo "$as_me:$LINENO: result: $FDP" >&5
6455echo "${ECHO_T}$FDP" >&6; }
6456else
6457  { echo "$as_me:$LINENO: result: no" >&5
6458echo "${ECHO_T}no" >&6; }
6459fi
6460
6461
6462if test "$FDP" != "echo fdp" ; then
6463
6464cat >>confdefs.h <<\_ACEOF
6465#define HAVE_FDP 1
6466_ACEOF
6467
6468    if test "$llvm_cv_os_type" = "MingW" ; then
6469    FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6470  fi
6471
6472cat >>confdefs.h <<_ACEOF
6473#define LLVM_PATH_FDP "$FDP${EXEEXT}"
6474_ACEOF
6475
6476fi
6477# Extract the first word of "neato", so it can be a program name with args.
6478set dummy neato; ac_word=$2
6479{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6480echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6481if test "${ac_cv_path_NEATO+set}" = set; then
6482  echo $ECHO_N "(cached) $ECHO_C" >&6
6483else
6484  case $NEATO in
6485  [\\/]* | ?:[\\/]*)
6486  ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path.
6487  ;;
6488  *)
6489  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6490for as_dir in $PATH
6491do
6492  IFS=$as_save_IFS
6493  test -z "$as_dir" && as_dir=.
6494  for ac_exec_ext in '' $ac_executable_extensions; do
6495  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6496    ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext"
6497    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6498    break 2
6499  fi
6500done
6501done
6502IFS=$as_save_IFS
6503
6504  test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato"
6505  ;;
6506esac
6507fi
6508NEATO=$ac_cv_path_NEATO
6509if test -n "$NEATO"; then
6510  { echo "$as_me:$LINENO: result: $NEATO" >&5
6511echo "${ECHO_T}$NEATO" >&6; }
6512else
6513  { echo "$as_me:$LINENO: result: no" >&5
6514echo "${ECHO_T}no" >&6; }
6515fi
6516
6517
6518if test "$NEATO" != "echo neato" ; then
6519
6520cat >>confdefs.h <<\_ACEOF
6521#define HAVE_NEATO 1
6522_ACEOF
6523
6524    if test "$llvm_cv_os_type" = "MingW" ; then
6525    NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6526  fi
6527
6528cat >>confdefs.h <<_ACEOF
6529#define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
6530_ACEOF
6531
6532fi
6533# Extract the first word of "twopi", so it can be a program name with args.
6534set dummy twopi; ac_word=$2
6535{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6536echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6537if test "${ac_cv_path_TWOPI+set}" = set; then
6538  echo $ECHO_N "(cached) $ECHO_C" >&6
6539else
6540  case $TWOPI in
6541  [\\/]* | ?:[\\/]*)
6542  ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path.
6543  ;;
6544  *)
6545  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6546for as_dir in $PATH
6547do
6548  IFS=$as_save_IFS
6549  test -z "$as_dir" && as_dir=.
6550  for ac_exec_ext in '' $ac_executable_extensions; do
6551  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6552    ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext"
6553    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6554    break 2
6555  fi
6556done
6557done
6558IFS=$as_save_IFS
6559
6560  test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi"
6561  ;;
6562esac
6563fi
6564TWOPI=$ac_cv_path_TWOPI
6565if test -n "$TWOPI"; then
6566  { echo "$as_me:$LINENO: result: $TWOPI" >&5
6567echo "${ECHO_T}$TWOPI" >&6; }
6568else
6569  { echo "$as_me:$LINENO: result: no" >&5
6570echo "${ECHO_T}no" >&6; }
6571fi
6572
6573
6574if test "$TWOPI" != "echo twopi" ; then
6575
6576cat >>confdefs.h <<\_ACEOF
6577#define HAVE_TWOPI 1
6578_ACEOF
6579
6580    if test "$llvm_cv_os_type" = "MingW" ; then
6581    TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6582  fi
6583
6584cat >>confdefs.h <<_ACEOF
6585#define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
6586_ACEOF
6587
6588fi
6589# Extract the first word of "circo", so it can be a program name with args.
6590set dummy circo; ac_word=$2
6591{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6592echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6593if test "${ac_cv_path_CIRCO+set}" = set; then
6594  echo $ECHO_N "(cached) $ECHO_C" >&6
6595else
6596  case $CIRCO in
6597  [\\/]* | ?:[\\/]*)
6598  ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path.
6599  ;;
6600  *)
6601  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6602for as_dir in $PATH
6603do
6604  IFS=$as_save_IFS
6605  test -z "$as_dir" && as_dir=.
6606  for ac_exec_ext in '' $ac_executable_extensions; do
6607  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6608    ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext"
6609    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6610    break 2
6611  fi
6612done
6613done
6614IFS=$as_save_IFS
6615
6616  test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo"
6617  ;;
6618esac
6619fi
6620CIRCO=$ac_cv_path_CIRCO
6621if test -n "$CIRCO"; then
6622  { echo "$as_me:$LINENO: result: $CIRCO" >&5
6623echo "${ECHO_T}$CIRCO" >&6; }
6624else
6625  { echo "$as_me:$LINENO: result: no" >&5
6626echo "${ECHO_T}no" >&6; }
6627fi
6628
6629
6630if test "$CIRCO" != "echo circo" ; then
6631
6632cat >>confdefs.h <<\_ACEOF
6633#define HAVE_CIRCO 1
6634_ACEOF
6635
6636    if test "$llvm_cv_os_type" = "MingW" ; then
6637    CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6638  fi
6639
6640cat >>confdefs.h <<_ACEOF
6641#define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
6642_ACEOF
6643
6644fi
6645for ac_prog in gv gsview32
6646do
6647  # Extract the first word of "$ac_prog", so it can be a program name with args.
6648set dummy $ac_prog; ac_word=$2
6649{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6650echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6651if test "${ac_cv_path_GV+set}" = set; then
6652  echo $ECHO_N "(cached) $ECHO_C" >&6
6653else
6654  case $GV in
6655  [\\/]* | ?:[\\/]*)
6656  ac_cv_path_GV="$GV" # Let the user override the test with a path.
6657  ;;
6658  *)
6659  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6660for as_dir in $PATH
6661do
6662  IFS=$as_save_IFS
6663  test -z "$as_dir" && as_dir=.
6664  for ac_exec_ext in '' $ac_executable_extensions; do
6665  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6666    ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
6667    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6668    break 2
6669  fi
6670done
6671done
6672IFS=$as_save_IFS
6673
6674  ;;
6675esac
6676fi
6677GV=$ac_cv_path_GV
6678if test -n "$GV"; then
6679  { echo "$as_me:$LINENO: result: $GV" >&5
6680echo "${ECHO_T}$GV" >&6; }
6681else
6682  { echo "$as_me:$LINENO: result: no" >&5
6683echo "${ECHO_T}no" >&6; }
6684fi
6685
6686
6687  test -n "$GV" && break
6688done
6689test -n "$GV" || GV="echo gv"
6690
6691if test "$GV" != "echo gv" ; then
6692
6693cat >>confdefs.h <<\_ACEOF
6694#define HAVE_GV 1
6695_ACEOF
6696
6697    if test "$llvm_cv_os_type" = "MingW" ; then
6698    GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6699  fi
6700
6701cat >>confdefs.h <<_ACEOF
6702#define LLVM_PATH_GV "$GV${EXEEXT}"
6703_ACEOF
6704
6705fi
6706# Extract the first word of "dotty", so it can be a program name with args.
6707set dummy dotty; ac_word=$2
6708{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6709echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6710if test "${ac_cv_path_DOTTY+set}" = set; then
6711  echo $ECHO_N "(cached) $ECHO_C" >&6
6712else
6713  case $DOTTY in
6714  [\\/]* | ?:[\\/]*)
6715  ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
6716  ;;
6717  *)
6718  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6719for as_dir in $PATH
6720do
6721  IFS=$as_save_IFS
6722  test -z "$as_dir" && as_dir=.
6723  for ac_exec_ext in '' $ac_executable_extensions; do
6724  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6725    ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
6726    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6727    break 2
6728  fi
6729done
6730done
6731IFS=$as_save_IFS
6732
6733  test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
6734  ;;
6735esac
6736fi
6737DOTTY=$ac_cv_path_DOTTY
6738if test -n "$DOTTY"; then
6739  { echo "$as_me:$LINENO: result: $DOTTY" >&5
6740echo "${ECHO_T}$DOTTY" >&6; }
6741else
6742  { echo "$as_me:$LINENO: result: no" >&5
6743echo "${ECHO_T}no" >&6; }
6744fi
6745
6746
6747if test "$DOTTY" != "echo dotty" ; then
6748
6749cat >>confdefs.h <<\_ACEOF
6750#define HAVE_DOTTY 1
6751_ACEOF
6752
6753    if test "$llvm_cv_os_type" = "MingW" ; then
6754    DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6755  fi
6756
6757cat >>confdefs.h <<_ACEOF
6758#define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
6759_ACEOF
6760
6761fi
6762# Extract the first word of "xdot.py", so it can be a program name with args.
6763set dummy xdot.py; ac_word=$2
6764{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6765echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6766if test "${ac_cv_path_XDOT_PY+set}" = set; then
6767  echo $ECHO_N "(cached) $ECHO_C" >&6
6768else
6769  case $XDOT_PY in
6770  [\\/]* | ?:[\\/]*)
6771  ac_cv_path_XDOT_PY="$XDOT_PY" # Let the user override the test with a path.
6772  ;;
6773  *)
6774  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6775for as_dir in $PATH
6776do
6777  IFS=$as_save_IFS
6778  test -z "$as_dir" && as_dir=.
6779  for ac_exec_ext in '' $ac_executable_extensions; do
6780  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6781    ac_cv_path_XDOT_PY="$as_dir/$ac_word$ac_exec_ext"
6782    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6783    break 2
6784  fi
6785done
6786done
6787IFS=$as_save_IFS
6788
6789  test -z "$ac_cv_path_XDOT_PY" && ac_cv_path_XDOT_PY="echo xdot.py"
6790  ;;
6791esac
6792fi
6793XDOT_PY=$ac_cv_path_XDOT_PY
6794if test -n "$XDOT_PY"; then
6795  { echo "$as_me:$LINENO: result: $XDOT_PY" >&5
6796echo "${ECHO_T}$XDOT_PY" >&6; }
6797else
6798  { echo "$as_me:$LINENO: result: no" >&5
6799echo "${ECHO_T}no" >&6; }
6800fi
6801
6802
6803if test "$XDOT_PY" != "echo xdot.py" ; then
6804
6805cat >>confdefs.h <<\_ACEOF
6806#define HAVE_XDOT_PY 1
6807_ACEOF
6808
6809    if test "$llvm_cv_os_type" = "MingW" ; then
6810    XDOT_PY=`echo $XDOT_PY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6811  fi
6812
6813cat >>confdefs.h <<_ACEOF
6814#define LLVM_PATH_XDOT_PY "$XDOT_PY${EXEEXT}"
6815_ACEOF
6816
6817fi
6818
6819# Find a good install program.  We prefer a C program (faster),
6820# so one script is as good as another.  But avoid the broken or
6821# incompatible versions:
6822# SysV /etc/install, /usr/sbin/install
6823# SunOS /usr/etc/install
6824# IRIX /sbin/install
6825# AIX /bin/install
6826# AmigaOS /C/install, which installs bootblocks on floppy discs
6827# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6828# AFS /usr/afsws/bin/install, which mishandles nonexistent args
6829# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6830# OS/2's system install, which has a completely different semantic
6831# ./install, which can be erroneously created by make from ./install.sh.
6832{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
6833echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
6834if test -z "$INSTALL"; then
6835if test "${ac_cv_path_install+set}" = set; then
6836  echo $ECHO_N "(cached) $ECHO_C" >&6
6837else
6838  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6839for as_dir in $PATH
6840do
6841  IFS=$as_save_IFS
6842  test -z "$as_dir" && as_dir=.
6843  # Account for people who put trailing slashes in PATH elements.
6844case $as_dir/ in
6845  ./ | .// | /cC/* | \
6846  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
6847  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
6848  /usr/ucb/* ) ;;
6849  *)
6850    # OSF1 and SCO ODT 3.0 have their own names for install.
6851    # Don't use installbsd from OSF since it installs stuff as root
6852    # by default.
6853    for ac_prog in ginstall scoinst install; do
6854      for ac_exec_ext in '' $ac_executable_extensions; do
6855	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
6856	  if test $ac_prog = install &&
6857	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6858	    # AIX install.  It has an incompatible calling convention.
6859	    :
6860	  elif test $ac_prog = install &&
6861	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6862	    # program-specific install script used by HP pwplus--don't use.
6863	    :
6864	  else
6865	    ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
6866	    break 3
6867	  fi
6868	fi
6869      done
6870    done
6871    ;;
6872esac
6873done
6874IFS=$as_save_IFS
6875
6876
6877fi
6878  if test "${ac_cv_path_install+set}" = set; then
6879    INSTALL=$ac_cv_path_install
6880  else
6881    # As a last resort, use the slow shell script.  Don't cache a
6882    # value for INSTALL within a source directory, because that will
6883    # break other packages using the cache if that directory is
6884    # removed, or if the value is a relative name.
6885    INSTALL=$ac_install_sh
6886  fi
6887fi
6888{ echo "$as_me:$LINENO: result: $INSTALL" >&5
6889echo "${ECHO_T}$INSTALL" >&6; }
6890
6891# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6892# It thinks the first close brace ends the variable substitution.
6893test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
6894
6895test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
6896
6897test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
6898
6899case "$INSTALL" in
6900 [\\/$]* | ?:[\\/]* ) ;;
6901 *)  INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
6902esac
6903
6904# Extract the first word of "bzip2", so it can be a program name with args.
6905set dummy bzip2; ac_word=$2
6906{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6907echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6908if test "${ac_cv_path_BZIP2+set}" = set; then
6909  echo $ECHO_N "(cached) $ECHO_C" >&6
6910else
6911  case $BZIP2 in
6912  [\\/]* | ?:[\\/]*)
6913  ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
6914  ;;
6915  *)
6916  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6917for as_dir in $PATH
6918do
6919  IFS=$as_save_IFS
6920  test -z "$as_dir" && as_dir=.
6921  for ac_exec_ext in '' $ac_executable_extensions; do
6922  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6923    ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
6924    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6925    break 2
6926  fi
6927done
6928done
6929IFS=$as_save_IFS
6930
6931  ;;
6932esac
6933fi
6934BZIP2=$ac_cv_path_BZIP2
6935if test -n "$BZIP2"; then
6936  { echo "$as_me:$LINENO: result: $BZIP2" >&5
6937echo "${ECHO_T}$BZIP2" >&6; }
6938else
6939  { echo "$as_me:$LINENO: result: no" >&5
6940echo "${ECHO_T}no" >&6; }
6941fi
6942
6943
6944# Extract the first word of "cat", so it can be a program name with args.
6945set dummy cat; ac_word=$2
6946{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6947echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6948if test "${ac_cv_path_CAT+set}" = set; then
6949  echo $ECHO_N "(cached) $ECHO_C" >&6
6950else
6951  case $CAT in
6952  [\\/]* | ?:[\\/]*)
6953  ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
6954  ;;
6955  *)
6956  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6957for as_dir in $PATH
6958do
6959  IFS=$as_save_IFS
6960  test -z "$as_dir" && as_dir=.
6961  for ac_exec_ext in '' $ac_executable_extensions; do
6962  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6963    ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
6964    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6965    break 2
6966  fi
6967done
6968done
6969IFS=$as_save_IFS
6970
6971  ;;
6972esac
6973fi
6974CAT=$ac_cv_path_CAT
6975if test -n "$CAT"; then
6976  { echo "$as_me:$LINENO: result: $CAT" >&5
6977echo "${ECHO_T}$CAT" >&6; }
6978else
6979  { echo "$as_me:$LINENO: result: no" >&5
6980echo "${ECHO_T}no" >&6; }
6981fi
6982
6983
6984# Extract the first word of "doxygen", so it can be a program name with args.
6985set dummy doxygen; ac_word=$2
6986{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6987echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6988if test "${ac_cv_path_DOXYGEN+set}" = set; then
6989  echo $ECHO_N "(cached) $ECHO_C" >&6
6990else
6991  case $DOXYGEN in
6992  [\\/]* | ?:[\\/]*)
6993  ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
6994  ;;
6995  *)
6996  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6997for as_dir in $PATH
6998do
6999  IFS=$as_save_IFS
7000  test -z "$as_dir" && as_dir=.
7001  for ac_exec_ext in '' $ac_executable_extensions; do
7002  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7003    ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
7004    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7005    break 2
7006  fi
7007done
7008done
7009IFS=$as_save_IFS
7010
7011  ;;
7012esac
7013fi
7014DOXYGEN=$ac_cv_path_DOXYGEN
7015if test -n "$DOXYGEN"; then
7016  { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7017echo "${ECHO_T}$DOXYGEN" >&6; }
7018else
7019  { echo "$as_me:$LINENO: result: no" >&5
7020echo "${ECHO_T}no" >&6; }
7021fi
7022
7023
7024# Extract the first word of "groff", so it can be a program name with args.
7025set dummy groff; ac_word=$2
7026{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7027echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7028if test "${ac_cv_path_GROFF+set}" = set; then
7029  echo $ECHO_N "(cached) $ECHO_C" >&6
7030else
7031  case $GROFF in
7032  [\\/]* | ?:[\\/]*)
7033  ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7034  ;;
7035  *)
7036  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7037for as_dir in $PATH
7038do
7039  IFS=$as_save_IFS
7040  test -z "$as_dir" && as_dir=.
7041  for ac_exec_ext in '' $ac_executable_extensions; do
7042  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7043    ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7044    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7045    break 2
7046  fi
7047done
7048done
7049IFS=$as_save_IFS
7050
7051  ;;
7052esac
7053fi
7054GROFF=$ac_cv_path_GROFF
7055if test -n "$GROFF"; then
7056  { echo "$as_me:$LINENO: result: $GROFF" >&5
7057echo "${ECHO_T}$GROFF" >&6; }
7058else
7059  { echo "$as_me:$LINENO: result: no" >&5
7060echo "${ECHO_T}no" >&6; }
7061fi
7062
7063
7064# Extract the first word of "gzip", so it can be a program name with args.
7065set dummy gzip; ac_word=$2
7066{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7067echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7068if test "${ac_cv_path_GZIPBIN+set}" = set; then
7069  echo $ECHO_N "(cached) $ECHO_C" >&6
7070else
7071  case $GZIPBIN in
7072  [\\/]* | ?:[\\/]*)
7073  ac_cv_path_GZIPBIN="$GZIPBIN" # Let the user override the test with a path.
7074  ;;
7075  *)
7076  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7077for as_dir in $PATH
7078do
7079  IFS=$as_save_IFS
7080  test -z "$as_dir" && as_dir=.
7081  for ac_exec_ext in '' $ac_executable_extensions; do
7082  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7083    ac_cv_path_GZIPBIN="$as_dir/$ac_word$ac_exec_ext"
7084    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7085    break 2
7086  fi
7087done
7088done
7089IFS=$as_save_IFS
7090
7091  ;;
7092esac
7093fi
7094GZIPBIN=$ac_cv_path_GZIPBIN
7095if test -n "$GZIPBIN"; then
7096  { echo "$as_me:$LINENO: result: $GZIPBIN" >&5
7097echo "${ECHO_T}$GZIPBIN" >&6; }
7098else
7099  { echo "$as_me:$LINENO: result: no" >&5
7100echo "${ECHO_T}no" >&6; }
7101fi
7102
7103
7104# Extract the first word of "pod2html", so it can be a program name with args.
7105set dummy pod2html; ac_word=$2
7106{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7107echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7108if test "${ac_cv_path_POD2HTML+set}" = set; then
7109  echo $ECHO_N "(cached) $ECHO_C" >&6
7110else
7111  case $POD2HTML in
7112  [\\/]* | ?:[\\/]*)
7113  ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
7114  ;;
7115  *)
7116  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7117for as_dir in $PATH
7118do
7119  IFS=$as_save_IFS
7120  test -z "$as_dir" && as_dir=.
7121  for ac_exec_ext in '' $ac_executable_extensions; do
7122  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7123    ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
7124    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7125    break 2
7126  fi
7127done
7128done
7129IFS=$as_save_IFS
7130
7131  ;;
7132esac
7133fi
7134POD2HTML=$ac_cv_path_POD2HTML
7135if test -n "$POD2HTML"; then
7136  { echo "$as_me:$LINENO: result: $POD2HTML" >&5
7137echo "${ECHO_T}$POD2HTML" >&6; }
7138else
7139  { echo "$as_me:$LINENO: result: no" >&5
7140echo "${ECHO_T}no" >&6; }
7141fi
7142
7143
7144# Extract the first word of "pod2man", so it can be a program name with args.
7145set dummy pod2man; ac_word=$2
7146{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7147echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7148if test "${ac_cv_path_POD2MAN+set}" = set; then
7149  echo $ECHO_N "(cached) $ECHO_C" >&6
7150else
7151  case $POD2MAN in
7152  [\\/]* | ?:[\\/]*)
7153  ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
7154  ;;
7155  *)
7156  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7157for as_dir in $PATH
7158do
7159  IFS=$as_save_IFS
7160  test -z "$as_dir" && as_dir=.
7161  for ac_exec_ext in '' $ac_executable_extensions; do
7162  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7163    ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
7164    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7165    break 2
7166  fi
7167done
7168done
7169IFS=$as_save_IFS
7170
7171  ;;
7172esac
7173fi
7174POD2MAN=$ac_cv_path_POD2MAN
7175if test -n "$POD2MAN"; then
7176  { echo "$as_me:$LINENO: result: $POD2MAN" >&5
7177echo "${ECHO_T}$POD2MAN" >&6; }
7178else
7179  { echo "$as_me:$LINENO: result: no" >&5
7180echo "${ECHO_T}no" >&6; }
7181fi
7182
7183
7184# Extract the first word of "pdfroff", so it can be a program name with args.
7185set dummy pdfroff; ac_word=$2
7186{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7187echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7188if test "${ac_cv_path_PDFROFF+set}" = set; then
7189  echo $ECHO_N "(cached) $ECHO_C" >&6
7190else
7191  case $PDFROFF in
7192  [\\/]* | ?:[\\/]*)
7193  ac_cv_path_PDFROFF="$PDFROFF" # Let the user override the test with a path.
7194  ;;
7195  *)
7196  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7197for as_dir in $PATH
7198do
7199  IFS=$as_save_IFS
7200  test -z "$as_dir" && as_dir=.
7201  for ac_exec_ext in '' $ac_executable_extensions; do
7202  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7203    ac_cv_path_PDFROFF="$as_dir/$ac_word$ac_exec_ext"
7204    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7205    break 2
7206  fi
7207done
7208done
7209IFS=$as_save_IFS
7210
7211  ;;
7212esac
7213fi
7214PDFROFF=$ac_cv_path_PDFROFF
7215if test -n "$PDFROFF"; then
7216  { echo "$as_me:$LINENO: result: $PDFROFF" >&5
7217echo "${ECHO_T}$PDFROFF" >&6; }
7218else
7219  { echo "$as_me:$LINENO: result: no" >&5
7220echo "${ECHO_T}no" >&6; }
7221fi
7222
7223
7224# Extract the first word of "runtest", so it can be a program name with args.
7225set dummy runtest; ac_word=$2
7226{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7227echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7228if test "${ac_cv_path_RUNTEST+set}" = set; then
7229  echo $ECHO_N "(cached) $ECHO_C" >&6
7230else
7231  case $RUNTEST in
7232  [\\/]* | ?:[\\/]*)
7233  ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
7234  ;;
7235  *)
7236  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7237for as_dir in $PATH
7238do
7239  IFS=$as_save_IFS
7240  test -z "$as_dir" && as_dir=.
7241  for ac_exec_ext in '' $ac_executable_extensions; do
7242  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7243    ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
7244    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7245    break 2
7246  fi
7247done
7248done
7249IFS=$as_save_IFS
7250
7251  ;;
7252esac
7253fi
7254RUNTEST=$ac_cv_path_RUNTEST
7255if test -n "$RUNTEST"; then
7256  { echo "$as_me:$LINENO: result: $RUNTEST" >&5
7257echo "${ECHO_T}$RUNTEST" >&6; }
7258else
7259  { echo "$as_me:$LINENO: result: no" >&5
7260echo "${ECHO_T}no" >&6; }
7261fi
7262
7263
7264
7265no_itcl=true
7266{ echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
7267echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
7268
7269# Check whether --with-tclinclude was given.
7270if test "${with_tclinclude+set}" = set; then
7271  withval=$with_tclinclude; with_tclinclude=${withval}
7272else
7273  with_tclinclude=''
7274fi
7275
7276if test "${ac_cv_path_tclsh+set}" = set; then
7277  echo $ECHO_N "(cached) $ECHO_C" >&6
7278else
7279
7280if test x"${with_tclinclude}" != x ; then
7281  if test -f ${with_tclinclude}/tclsh ; then
7282    ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
7283  elif test -f ${with_tclinclude}/src/tclsh ; then
7284    ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
7285  else
7286    { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
7287echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
7288   { (exit 1); exit 1; }; }
7289  fi
7290fi
7291fi
7292
7293
7294if test x"${ac_cv_path_tclsh}" = x ; then
7295  { echo "$as_me:$LINENO: result: none" >&5
7296echo "${ECHO_T}none" >&6; }
7297  for ac_prog in tclsh8.4 tclsh8.4.8 tclsh8.4.7 tclsh8.4.6 tclsh8.4.5 tclsh8.4.4 tclsh8.4.3 tclsh8.4.2 tclsh8.4.1 tclsh8.4.0 tclsh8.3 tclsh8.3.5 tclsh8.3.4 tclsh8.3.3 tclsh8.3.2 tclsh8.3.1 tclsh8.3.0 tclsh
7298do
7299  # Extract the first word of "$ac_prog", so it can be a program name with args.
7300set dummy $ac_prog; ac_word=$2
7301{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7302echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7303if test "${ac_cv_path_TCLSH+set}" = set; then
7304  echo $ECHO_N "(cached) $ECHO_C" >&6
7305else
7306  case $TCLSH in
7307  [\\/]* | ?:[\\/]*)
7308  ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
7309  ;;
7310  *)
7311  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7312for as_dir in $PATH
7313do
7314  IFS=$as_save_IFS
7315  test -z "$as_dir" && as_dir=.
7316  for ac_exec_ext in '' $ac_executable_extensions; do
7317  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7318    ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
7319    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7320    break 2
7321  fi
7322done
7323done
7324IFS=$as_save_IFS
7325
7326  ;;
7327esac
7328fi
7329TCLSH=$ac_cv_path_TCLSH
7330if test -n "$TCLSH"; then
7331  { echo "$as_me:$LINENO: result: $TCLSH" >&5
7332echo "${ECHO_T}$TCLSH" >&6; }
7333else
7334  { echo "$as_me:$LINENO: result: no" >&5
7335echo "${ECHO_T}no" >&6; }
7336fi
7337
7338
7339  test -n "$TCLSH" && break
7340done
7341
7342  if test x"${TCLSH}" = x ; then
7343    ac_cv_path_tclsh='';
7344  else
7345    ac_cv_path_tclsh="${TCLSH}";
7346  fi
7347else
7348  { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
7349echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
7350  TCLSH="${ac_cv_path_tclsh}"
7351
7352fi
7353
7354# Extract the first word of "zip", so it can be a program name with args.
7355set dummy zip; ac_word=$2
7356{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7357echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7358if test "${ac_cv_path_ZIP+set}" = set; then
7359  echo $ECHO_N "(cached) $ECHO_C" >&6
7360else
7361  case $ZIP in
7362  [\\/]* | ?:[\\/]*)
7363  ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
7364  ;;
7365  *)
7366  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7367for as_dir in $PATH
7368do
7369  IFS=$as_save_IFS
7370  test -z "$as_dir" && as_dir=.
7371  for ac_exec_ext in '' $ac_executable_extensions; do
7372  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7373    ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
7374    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7375    break 2
7376  fi
7377done
7378done
7379IFS=$as_save_IFS
7380
7381  ;;
7382esac
7383fi
7384ZIP=$ac_cv_path_ZIP
7385if test -n "$ZIP"; then
7386  { echo "$as_me:$LINENO: result: $ZIP" >&5
7387echo "${ECHO_T}$ZIP" >&6; }
7388else
7389  { echo "$as_me:$LINENO: result: no" >&5
7390echo "${ECHO_T}no" >&6; }
7391fi
7392
7393
7394for ac_prog in ocamlc
7395do
7396  # Extract the first word of "$ac_prog", so it can be a program name with args.
7397set dummy $ac_prog; ac_word=$2
7398{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7399echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7400if test "${ac_cv_path_OCAMLC+set}" = set; then
7401  echo $ECHO_N "(cached) $ECHO_C" >&6
7402else
7403  case $OCAMLC in
7404  [\\/]* | ?:[\\/]*)
7405  ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
7406  ;;
7407  *)
7408  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7409for as_dir in $PATH
7410do
7411  IFS=$as_save_IFS
7412  test -z "$as_dir" && as_dir=.
7413  for ac_exec_ext in '' $ac_executable_extensions; do
7414  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7415    ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
7416    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7417    break 2
7418  fi
7419done
7420done
7421IFS=$as_save_IFS
7422
7423  ;;
7424esac
7425fi
7426OCAMLC=$ac_cv_path_OCAMLC
7427if test -n "$OCAMLC"; then
7428  { echo "$as_me:$LINENO: result: $OCAMLC" >&5
7429echo "${ECHO_T}$OCAMLC" >&6; }
7430else
7431  { echo "$as_me:$LINENO: result: no" >&5
7432echo "${ECHO_T}no" >&6; }
7433fi
7434
7435
7436  test -n "$OCAMLC" && break
7437done
7438
7439for ac_prog in ocamlopt
7440do
7441  # Extract the first word of "$ac_prog", so it can be a program name with args.
7442set dummy $ac_prog; ac_word=$2
7443{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7444echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7445if test "${ac_cv_path_OCAMLOPT+set}" = set; then
7446  echo $ECHO_N "(cached) $ECHO_C" >&6
7447else
7448  case $OCAMLOPT in
7449  [\\/]* | ?:[\\/]*)
7450  ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
7451  ;;
7452  *)
7453  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7454for as_dir in $PATH
7455do
7456  IFS=$as_save_IFS
7457  test -z "$as_dir" && as_dir=.
7458  for ac_exec_ext in '' $ac_executable_extensions; do
7459  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7460    ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
7461    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7462    break 2
7463  fi
7464done
7465done
7466IFS=$as_save_IFS
7467
7468  ;;
7469esac
7470fi
7471OCAMLOPT=$ac_cv_path_OCAMLOPT
7472if test -n "$OCAMLOPT"; then
7473  { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
7474echo "${ECHO_T}$OCAMLOPT" >&6; }
7475else
7476  { echo "$as_me:$LINENO: result: no" >&5
7477echo "${ECHO_T}no" >&6; }
7478fi
7479
7480
7481  test -n "$OCAMLOPT" && break
7482done
7483
7484for ac_prog in ocamldep
7485do
7486  # Extract the first word of "$ac_prog", so it can be a program name with args.
7487set dummy $ac_prog; ac_word=$2
7488{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7489echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7490if test "${ac_cv_path_OCAMLDEP+set}" = set; then
7491  echo $ECHO_N "(cached) $ECHO_C" >&6
7492else
7493  case $OCAMLDEP in
7494  [\\/]* | ?:[\\/]*)
7495  ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
7496  ;;
7497  *)
7498  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7499for as_dir in $PATH
7500do
7501  IFS=$as_save_IFS
7502  test -z "$as_dir" && as_dir=.
7503  for ac_exec_ext in '' $ac_executable_extensions; do
7504  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7505    ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
7506    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7507    break 2
7508  fi
7509done
7510done
7511IFS=$as_save_IFS
7512
7513  ;;
7514esac
7515fi
7516OCAMLDEP=$ac_cv_path_OCAMLDEP
7517if test -n "$OCAMLDEP"; then
7518  { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
7519echo "${ECHO_T}$OCAMLDEP" >&6; }
7520else
7521  { echo "$as_me:$LINENO: result: no" >&5
7522echo "${ECHO_T}no" >&6; }
7523fi
7524
7525
7526  test -n "$OCAMLDEP" && break
7527done
7528
7529for ac_prog in ocamldoc
7530do
7531  # Extract the first word of "$ac_prog", so it can be a program name with args.
7532set dummy $ac_prog; ac_word=$2
7533{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7534echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7535if test "${ac_cv_path_OCAMLDOC+set}" = set; then
7536  echo $ECHO_N "(cached) $ECHO_C" >&6
7537else
7538  case $OCAMLDOC in
7539  [\\/]* | ?:[\\/]*)
7540  ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
7541  ;;
7542  *)
7543  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7544for as_dir in $PATH
7545do
7546  IFS=$as_save_IFS
7547  test -z "$as_dir" && as_dir=.
7548  for ac_exec_ext in '' $ac_executable_extensions; do
7549  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7550    ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
7551    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7552    break 2
7553  fi
7554done
7555done
7556IFS=$as_save_IFS
7557
7558  ;;
7559esac
7560fi
7561OCAMLDOC=$ac_cv_path_OCAMLDOC
7562if test -n "$OCAMLDOC"; then
7563  { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
7564echo "${ECHO_T}$OCAMLDOC" >&6; }
7565else
7566  { echo "$as_me:$LINENO: result: no" >&5
7567echo "${ECHO_T}no" >&6; }
7568fi
7569
7570
7571  test -n "$OCAMLDOC" && break
7572done
7573
7574for ac_prog in gas as
7575do
7576  # Extract the first word of "$ac_prog", so it can be a program name with args.
7577set dummy $ac_prog; ac_word=$2
7578{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7579echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7580if test "${ac_cv_path_GAS+set}" = set; then
7581  echo $ECHO_N "(cached) $ECHO_C" >&6
7582else
7583  case $GAS in
7584  [\\/]* | ?:[\\/]*)
7585  ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
7586  ;;
7587  *)
7588  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7589for as_dir in $PATH
7590do
7591  IFS=$as_save_IFS
7592  test -z "$as_dir" && as_dir=.
7593  for ac_exec_ext in '' $ac_executable_extensions; do
7594  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7595    ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
7596    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7597    break 2
7598  fi
7599done
7600done
7601IFS=$as_save_IFS
7602
7603  ;;
7604esac
7605fi
7606GAS=$ac_cv_path_GAS
7607if test -n "$GAS"; then
7608  { echo "$as_me:$LINENO: result: $GAS" >&5
7609echo "${ECHO_T}$GAS" >&6; }
7610else
7611  { echo "$as_me:$LINENO: result: no" >&5
7612echo "${ECHO_T}no" >&6; }
7613fi
7614
7615
7616  test -n "$GAS" && break
7617done
7618
7619
7620{ echo "$as_me:$LINENO: checking for linker version" >&5
7621echo $ECHO_N "checking for linker version... $ECHO_C" >&6; }
7622if test "${llvm_cv_link_version+set}" = set; then
7623  echo $ECHO_N "(cached) $ECHO_C" >&6
7624else
7625
7626   version_string="$(ld -v 2>&1 | head -1)"
7627
7628   # Check for ld64.
7629   if (echo "$version_string" | grep -q "ld64"); then
7630     llvm_cv_link_version=$(echo "$version_string" | sed -e "s#.*ld64-\([^ ]*\)\( (.*)\)\{0,1\}#\1#")
7631   else
7632     llvm_cv_link_version=$(echo "$version_string" | sed -e "s#[^0-9]*\([0-9.]*\).*#\1#")
7633   fi
7634
7635fi
7636{ echo "$as_me:$LINENO: result: $llvm_cv_link_version" >&5
7637echo "${ECHO_T}$llvm_cv_link_version" >&6; }
7638
7639cat >>confdefs.h <<_ACEOF
7640#define HOST_LINK_VERSION "$llvm_cv_link_version"
7641_ACEOF
7642
7643
7644
7645{ echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
7646echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
7647if test "${llvm_cv_link_use_r+set}" = set; then
7648  echo $ECHO_N "(cached) $ECHO_C" >&6
7649else
7650   ac_ext=c
7651ac_cpp='$CPP $CPPFLAGS'
7652ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7653ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7654ac_compiler_gnu=$ac_cv_c_compiler_gnu
7655
7656  oldcflags="$CFLAGS"
7657  CFLAGS="$CFLAGS -Wl,-R."
7658  cat >conftest.$ac_ext <<_ACEOF
7659/* confdefs.h.  */
7660_ACEOF
7661cat confdefs.h >>conftest.$ac_ext
7662cat >>conftest.$ac_ext <<_ACEOF
7663/* end confdefs.h.  */
7664
7665int
7666main ()
7667{
7668
7669  ;
7670  return 0;
7671}
7672_ACEOF
7673rm -f conftest.$ac_objext conftest$ac_exeext
7674if { (ac_try="$ac_link"
7675case "(($ac_try" in
7676  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7677  *) ac_try_echo=$ac_try;;
7678esac
7679eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7680  (eval "$ac_link") 2>conftest.er1
7681  ac_status=$?
7682  grep -v '^ *+' conftest.er1 >conftest.err
7683  rm -f conftest.er1
7684  cat conftest.err >&5
7685  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7686  (exit $ac_status); } &&
7687	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7688  { (case "(($ac_try" in
7689  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7690  *) ac_try_echo=$ac_try;;
7691esac
7692eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7693  (eval "$ac_try") 2>&5
7694  ac_status=$?
7695  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7696  (exit $ac_status); }; } &&
7697	 { ac_try='test -s conftest$ac_exeext'
7698  { (case "(($ac_try" in
7699  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7700  *) ac_try_echo=$ac_try;;
7701esac
7702eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7703  (eval "$ac_try") 2>&5
7704  ac_status=$?
7705  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7706  (exit $ac_status); }; }; then
7707  llvm_cv_link_use_r=yes
7708else
7709  echo "$as_me: failed program was:" >&5
7710sed 's/^/| /' conftest.$ac_ext >&5
7711
7712	llvm_cv_link_use_r=no
7713fi
7714
7715rm -f core conftest.err conftest.$ac_objext \
7716      conftest$ac_exeext conftest.$ac_ext
7717  CFLAGS="$oldcflags"
7718  ac_ext=c
7719ac_cpp='$CPP $CPPFLAGS'
7720ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7721ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7722ac_compiler_gnu=$ac_cv_c_compiler_gnu
7723
7724
7725fi
7726{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
7727echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
7728if test "$llvm_cv_link_use_r" = yes ; then
7729
7730cat >>confdefs.h <<\_ACEOF
7731#define HAVE_LINK_R 1
7732_ACEOF
7733
7734  fi
7735
7736
7737{ echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5
7738echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; }
7739if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
7740  echo $ECHO_N "(cached) $ECHO_C" >&6
7741else
7742   ac_ext=c
7743ac_cpp='$CPP $CPPFLAGS'
7744ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7745ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7746ac_compiler_gnu=$ac_cv_c_compiler_gnu
7747
7748  oldcflags="$CFLAGS"
7749  CFLAGS="$CFLAGS -Wl,-export-dynamic"
7750  cat >conftest.$ac_ext <<_ACEOF
7751/* confdefs.h.  */
7752_ACEOF
7753cat confdefs.h >>conftest.$ac_ext
7754cat >>conftest.$ac_ext <<_ACEOF
7755/* end confdefs.h.  */
7756
7757int
7758main ()
7759{
7760
7761  ;
7762  return 0;
7763}
7764_ACEOF
7765rm -f conftest.$ac_objext conftest$ac_exeext
7766if { (ac_try="$ac_link"
7767case "(($ac_try" in
7768  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7769  *) ac_try_echo=$ac_try;;
7770esac
7771eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7772  (eval "$ac_link") 2>conftest.er1
7773  ac_status=$?
7774  grep -v '^ *+' conftest.er1 >conftest.err
7775  rm -f conftest.er1
7776  cat conftest.err >&5
7777  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7778  (exit $ac_status); } &&
7779	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7780  { (case "(($ac_try" in
7781  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7782  *) ac_try_echo=$ac_try;;
7783esac
7784eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7785  (eval "$ac_try") 2>&5
7786  ac_status=$?
7787  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7788  (exit $ac_status); }; } &&
7789	 { ac_try='test -s conftest$ac_exeext'
7790  { (case "(($ac_try" in
7791  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7792  *) ac_try_echo=$ac_try;;
7793esac
7794eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7795  (eval "$ac_try") 2>&5
7796  ac_status=$?
7797  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7798  (exit $ac_status); }; }; then
7799  llvm_cv_link_use_export_dynamic=yes
7800else
7801  echo "$as_me: failed program was:" >&5
7802sed 's/^/| /' conftest.$ac_ext >&5
7803
7804	llvm_cv_link_use_export_dynamic=no
7805fi
7806
7807rm -f core conftest.err conftest.$ac_objext \
7808      conftest$ac_exeext conftest.$ac_ext
7809  CFLAGS="$oldcflags"
7810  ac_ext=c
7811ac_cpp='$CPP $CPPFLAGS'
7812ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7813ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7814ac_compiler_gnu=$ac_cv_c_compiler_gnu
7815
7816
7817fi
7818{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
7819echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
7820if test "$llvm_cv_link_use_export_dynamic" = yes ; then
7821
7822cat >>confdefs.h <<\_ACEOF
7823#define HAVE_LINK_EXPORT_DYNAMIC 1
7824_ACEOF
7825
7826  fi
7827
7828
7829{ echo "$as_me:$LINENO: checking for compiler -Wl,--version-script option" >&5
7830echo $ECHO_N "checking for compiler -Wl,--version-script option... $ECHO_C" >&6; }
7831if test "${llvm_cv_link_use_version_script+set}" = set; then
7832  echo $ECHO_N "(cached) $ECHO_C" >&6
7833else
7834   ac_ext=c
7835ac_cpp='$CPP $CPPFLAGS'
7836ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7837ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7838ac_compiler_gnu=$ac_cv_c_compiler_gnu
7839
7840  oldcflags="$CFLAGS"
7841
7842  # The following code is from the autoconf manual,
7843  # "11.13: Limitations of Usual Tools".
7844  # Create a temporary directory $tmp in $TMPDIR (default /tmp).
7845  # Use mktemp if possible; otherwise fall back on mkdir,
7846  # with $RANDOM to make collisions less likely.
7847  : ${TMPDIR=/tmp}
7848  {
7849    tmp=`
7850      (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null
7851    ` &&
7852    test -n "$tmp" && test -d "$tmp"
7853  } || {
7854    tmp=$TMPDIR/foo$$-$RANDOM
7855    (umask 077 && mkdir "$tmp")
7856  } || exit $?
7857
7858  echo "{" > "$tmp/export.map"
7859  echo "  global: main;" >> "$tmp/export.map"
7860  echo "  local: *;" >> "$tmp/export.map"
7861  echo "};" >> "$tmp/export.map"
7862
7863  CFLAGS="$CFLAGS -Wl,--version-script=$tmp/export.map"
7864  cat >conftest.$ac_ext <<_ACEOF
7865/* confdefs.h.  */
7866_ACEOF
7867cat confdefs.h >>conftest.$ac_ext
7868cat >>conftest.$ac_ext <<_ACEOF
7869/* end confdefs.h.  */
7870
7871int
7872main ()
7873{
7874
7875  ;
7876  return 0;
7877}
7878_ACEOF
7879rm -f conftest.$ac_objext conftest$ac_exeext
7880if { (ac_try="$ac_link"
7881case "(($ac_try" in
7882  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7883  *) ac_try_echo=$ac_try;;
7884esac
7885eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7886  (eval "$ac_link") 2>conftest.er1
7887  ac_status=$?
7888  grep -v '^ *+' conftest.er1 >conftest.err
7889  rm -f conftest.er1
7890  cat conftest.err >&5
7891  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7892  (exit $ac_status); } &&
7893	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7894  { (case "(($ac_try" in
7895  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7896  *) ac_try_echo=$ac_try;;
7897esac
7898eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7899  (eval "$ac_try") 2>&5
7900  ac_status=$?
7901  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7902  (exit $ac_status); }; } &&
7903	 { ac_try='test -s conftest$ac_exeext'
7904  { (case "(($ac_try" in
7905  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7906  *) ac_try_echo=$ac_try;;
7907esac
7908eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7909  (eval "$ac_try") 2>&5
7910  ac_status=$?
7911  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7912  (exit $ac_status); }; }; then
7913  llvm_cv_link_use_version_script=yes
7914else
7915  echo "$as_me: failed program was:" >&5
7916sed 's/^/| /' conftest.$ac_ext >&5
7917
7918	llvm_cv_link_use_version_script=no
7919fi
7920
7921rm -f core conftest.err conftest.$ac_objext \
7922      conftest$ac_exeext conftest.$ac_ext
7923  rm "$tmp/export.map"
7924  rmdir "$tmp"
7925  CFLAGS="$oldcflags"
7926  ac_ext=c
7927ac_cpp='$CPP $CPPFLAGS'
7928ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7929ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7930ac_compiler_gnu=$ac_cv_c_compiler_gnu
7931
7932
7933fi
7934{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_version_script" >&5
7935echo "${ECHO_T}$llvm_cv_link_use_version_script" >&6; }
7936if test "$llvm_cv_link_use_version_script" = yes ; then
7937  HAVE_LINK_VERSION_SCRIPT=1
7938
7939  fi
7940
7941
7942
7943
7944{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
7945echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
7946if test "${ac_cv_c_const+set}" = set; then
7947  echo $ECHO_N "(cached) $ECHO_C" >&6
7948else
7949  cat >conftest.$ac_ext <<_ACEOF
7950/* confdefs.h.  */
7951_ACEOF
7952cat confdefs.h >>conftest.$ac_ext
7953cat >>conftest.$ac_ext <<_ACEOF
7954/* end confdefs.h.  */
7955
7956int
7957main ()
7958{
7959/* FIXME: Include the comments suggested by Paul. */
7960#ifndef __cplusplus
7961  /* Ultrix mips cc rejects this.  */
7962  typedef int charset[2];
7963  const charset x;
7964  /* SunOS 4.1.1 cc rejects this.  */
7965  char const *const *ccp;
7966  char **p;
7967  /* NEC SVR4.0.2 mips cc rejects this.  */
7968  struct point {int x, y;};
7969  static struct point const zero = {0,0};
7970  /* AIX XL C 1.02.0.0 rejects this.
7971     It does not let you subtract one const X* pointer from another in
7972     an arm of an if-expression whose if-part is not a constant
7973     expression */
7974  const char *g = "string";
7975  ccp = &g + (g ? g-g : 0);
7976  /* HPUX 7.0 cc rejects these. */
7977  ++ccp;
7978  p = (char**) ccp;
7979  ccp = (char const *const *) p;
7980  { /* SCO 3.2v4 cc rejects this.  */
7981    char *t;
7982    char const *s = 0 ? (char *) 0 : (char const *) 0;
7983
7984    *t++ = 0;
7985    if (s) return 0;
7986  }
7987  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
7988    int x[] = {25, 17};
7989    const int *foo = &x[0];
7990    ++foo;
7991  }
7992  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
7993    typedef const int *iptr;
7994    iptr p = 0;
7995    ++p;
7996  }
7997  { /* AIX XL C 1.02.0.0 rejects this saying
7998       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
7999    struct s { int j; const int *ap[3]; };
8000    struct s *b; b->j = 5;
8001  }
8002  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8003    const int foo = 10;
8004    if (!foo) return 0;
8005  }
8006  return !x[0] && !zero.x;
8007#endif
8008
8009  ;
8010  return 0;
8011}
8012_ACEOF
8013rm -f conftest.$ac_objext
8014if { (ac_try="$ac_compile"
8015case "(($ac_try" in
8016  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8017  *) ac_try_echo=$ac_try;;
8018esac
8019eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8020  (eval "$ac_compile") 2>conftest.er1
8021  ac_status=$?
8022  grep -v '^ *+' conftest.er1 >conftest.err
8023  rm -f conftest.er1
8024  cat conftest.err >&5
8025  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8026  (exit $ac_status); } &&
8027	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8028  { (case "(($ac_try" in
8029  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8030  *) ac_try_echo=$ac_try;;
8031esac
8032eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8033  (eval "$ac_try") 2>&5
8034  ac_status=$?
8035  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8036  (exit $ac_status); }; } &&
8037	 { ac_try='test -s conftest.$ac_objext'
8038  { (case "(($ac_try" in
8039  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8040  *) ac_try_echo=$ac_try;;
8041esac
8042eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8043  (eval "$ac_try") 2>&5
8044  ac_status=$?
8045  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8046  (exit $ac_status); }; }; then
8047  ac_cv_c_const=yes
8048else
8049  echo "$as_me: failed program was:" >&5
8050sed 's/^/| /' conftest.$ac_ext >&5
8051
8052	ac_cv_c_const=no
8053fi
8054
8055rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8056fi
8057{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8058echo "${ECHO_T}$ac_cv_c_const" >&6; }
8059if test $ac_cv_c_const = no; then
8060
8061cat >>confdefs.h <<\_ACEOF
8062#define const
8063_ACEOF
8064
8065fi
8066
8067
8068
8069
8070
8071
8072ac_header_dirent=no
8073for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8074  as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8075{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8076echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8077if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8078  echo $ECHO_N "(cached) $ECHO_C" >&6
8079else
8080  cat >conftest.$ac_ext <<_ACEOF
8081/* confdefs.h.  */
8082_ACEOF
8083cat confdefs.h >>conftest.$ac_ext
8084cat >>conftest.$ac_ext <<_ACEOF
8085/* end confdefs.h.  */
8086#include <sys/types.h>
8087#include <$ac_hdr>
8088
8089int
8090main ()
8091{
8092if ((DIR *) 0)
8093return 0;
8094  ;
8095  return 0;
8096}
8097_ACEOF
8098rm -f conftest.$ac_objext
8099if { (ac_try="$ac_compile"
8100case "(($ac_try" in
8101  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8102  *) ac_try_echo=$ac_try;;
8103esac
8104eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8105  (eval "$ac_compile") 2>conftest.er1
8106  ac_status=$?
8107  grep -v '^ *+' conftest.er1 >conftest.err
8108  rm -f conftest.er1
8109  cat conftest.err >&5
8110  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8111  (exit $ac_status); } &&
8112	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8113  { (case "(($ac_try" in
8114  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8115  *) ac_try_echo=$ac_try;;
8116esac
8117eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8118  (eval "$ac_try") 2>&5
8119  ac_status=$?
8120  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8121  (exit $ac_status); }; } &&
8122	 { ac_try='test -s conftest.$ac_objext'
8123  { (case "(($ac_try" in
8124  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8125  *) ac_try_echo=$ac_try;;
8126esac
8127eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8128  (eval "$ac_try") 2>&5
8129  ac_status=$?
8130  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8131  (exit $ac_status); }; }; then
8132  eval "$as_ac_Header=yes"
8133else
8134  echo "$as_me: failed program was:" >&5
8135sed 's/^/| /' conftest.$ac_ext >&5
8136
8137	eval "$as_ac_Header=no"
8138fi
8139
8140rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8141fi
8142ac_res=`eval echo '${'$as_ac_Header'}'`
8143	       { echo "$as_me:$LINENO: result: $ac_res" >&5
8144echo "${ECHO_T}$ac_res" >&6; }
8145if test `eval echo '${'$as_ac_Header'}'` = yes; then
8146  cat >>confdefs.h <<_ACEOF
8147#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8148_ACEOF
8149
8150ac_header_dirent=$ac_hdr; break
8151fi
8152
8153done
8154# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8155if test $ac_header_dirent = dirent.h; then
8156  { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8157echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8158if test "${ac_cv_search_opendir+set}" = set; then
8159  echo $ECHO_N "(cached) $ECHO_C" >&6
8160else
8161  ac_func_search_save_LIBS=$LIBS
8162cat >conftest.$ac_ext <<_ACEOF
8163/* confdefs.h.  */
8164_ACEOF
8165cat confdefs.h >>conftest.$ac_ext
8166cat >>conftest.$ac_ext <<_ACEOF
8167/* end confdefs.h.  */
8168
8169/* Override any GCC internal prototype to avoid an error.
8170   Use char because int might match the return type of a GCC
8171   builtin and then its argument prototype would still apply.  */
8172#ifdef __cplusplus
8173extern "C"
8174#endif
8175char opendir ();
8176int
8177main ()
8178{
8179return opendir ();
8180  ;
8181  return 0;
8182}
8183_ACEOF
8184for ac_lib in '' dir; do
8185  if test -z "$ac_lib"; then
8186    ac_res="none required"
8187  else
8188    ac_res=-l$ac_lib
8189    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8190  fi
8191  rm -f conftest.$ac_objext conftest$ac_exeext
8192if { (ac_try="$ac_link"
8193case "(($ac_try" in
8194  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8195  *) ac_try_echo=$ac_try;;
8196esac
8197eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8198  (eval "$ac_link") 2>conftest.er1
8199  ac_status=$?
8200  grep -v '^ *+' conftest.er1 >conftest.err
8201  rm -f conftest.er1
8202  cat conftest.err >&5
8203  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8204  (exit $ac_status); } &&
8205	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8206  { (case "(($ac_try" in
8207  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8208  *) ac_try_echo=$ac_try;;
8209esac
8210eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8211  (eval "$ac_try") 2>&5
8212  ac_status=$?
8213  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8214  (exit $ac_status); }; } &&
8215	 { ac_try='test -s conftest$ac_exeext'
8216  { (case "(($ac_try" in
8217  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8218  *) ac_try_echo=$ac_try;;
8219esac
8220eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8221  (eval "$ac_try") 2>&5
8222  ac_status=$?
8223  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8224  (exit $ac_status); }; }; then
8225  ac_cv_search_opendir=$ac_res
8226else
8227  echo "$as_me: failed program was:" >&5
8228sed 's/^/| /' conftest.$ac_ext >&5
8229
8230
8231fi
8232
8233rm -f core conftest.err conftest.$ac_objext \
8234      conftest$ac_exeext
8235  if test "${ac_cv_search_opendir+set}" = set; then
8236  break
8237fi
8238done
8239if test "${ac_cv_search_opendir+set}" = set; then
8240  :
8241else
8242  ac_cv_search_opendir=no
8243fi
8244rm conftest.$ac_ext
8245LIBS=$ac_func_search_save_LIBS
8246fi
8247{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8248echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8249ac_res=$ac_cv_search_opendir
8250if test "$ac_res" != no; then
8251  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8252
8253fi
8254
8255else
8256  { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8257echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8258if test "${ac_cv_search_opendir+set}" = set; then
8259  echo $ECHO_N "(cached) $ECHO_C" >&6
8260else
8261  ac_func_search_save_LIBS=$LIBS
8262cat >conftest.$ac_ext <<_ACEOF
8263/* confdefs.h.  */
8264_ACEOF
8265cat confdefs.h >>conftest.$ac_ext
8266cat >>conftest.$ac_ext <<_ACEOF
8267/* end confdefs.h.  */
8268
8269/* Override any GCC internal prototype to avoid an error.
8270   Use char because int might match the return type of a GCC
8271   builtin and then its argument prototype would still apply.  */
8272#ifdef __cplusplus
8273extern "C"
8274#endif
8275char opendir ();
8276int
8277main ()
8278{
8279return opendir ();
8280  ;
8281  return 0;
8282}
8283_ACEOF
8284for ac_lib in '' x; do
8285  if test -z "$ac_lib"; then
8286    ac_res="none required"
8287  else
8288    ac_res=-l$ac_lib
8289    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8290  fi
8291  rm -f conftest.$ac_objext conftest$ac_exeext
8292if { (ac_try="$ac_link"
8293case "(($ac_try" in
8294  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8295  *) ac_try_echo=$ac_try;;
8296esac
8297eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8298  (eval "$ac_link") 2>conftest.er1
8299  ac_status=$?
8300  grep -v '^ *+' conftest.er1 >conftest.err
8301  rm -f conftest.er1
8302  cat conftest.err >&5
8303  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8304  (exit $ac_status); } &&
8305	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8306  { (case "(($ac_try" in
8307  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8308  *) ac_try_echo=$ac_try;;
8309esac
8310eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8311  (eval "$ac_try") 2>&5
8312  ac_status=$?
8313  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8314  (exit $ac_status); }; } &&
8315	 { ac_try='test -s conftest$ac_exeext'
8316  { (case "(($ac_try" in
8317  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8318  *) ac_try_echo=$ac_try;;
8319esac
8320eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8321  (eval "$ac_try") 2>&5
8322  ac_status=$?
8323  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8324  (exit $ac_status); }; }; then
8325  ac_cv_search_opendir=$ac_res
8326else
8327  echo "$as_me: failed program was:" >&5
8328sed 's/^/| /' conftest.$ac_ext >&5
8329
8330
8331fi
8332
8333rm -f core conftest.err conftest.$ac_objext \
8334      conftest$ac_exeext
8335  if test "${ac_cv_search_opendir+set}" = set; then
8336  break
8337fi
8338done
8339if test "${ac_cv_search_opendir+set}" = set; then
8340  :
8341else
8342  ac_cv_search_opendir=no
8343fi
8344rm conftest.$ac_ext
8345LIBS=$ac_func_search_save_LIBS
8346fi
8347{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8348echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8349ac_res=$ac_cv_search_opendir
8350if test "$ac_res" != no; then
8351  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8352
8353fi
8354
8355fi
8356
8357
8358for ac_header in dlfcn.h
8359do
8360as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8361if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8362  { echo "$as_me:$LINENO: checking for $ac_header" >&5
8363echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8364if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8365  echo $ECHO_N "(cached) $ECHO_C" >&6
8366fi
8367ac_res=`eval echo '${'$as_ac_Header'}'`
8368	       { echo "$as_me:$LINENO: result: $ac_res" >&5
8369echo "${ECHO_T}$ac_res" >&6; }
8370else
8371  # Is the header compilable?
8372{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
8373echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8374cat >conftest.$ac_ext <<_ACEOF
8375/* confdefs.h.  */
8376_ACEOF
8377cat confdefs.h >>conftest.$ac_ext
8378cat >>conftest.$ac_ext <<_ACEOF
8379/* end confdefs.h.  */
8380$ac_includes_default
8381#include <$ac_header>
8382_ACEOF
8383rm -f conftest.$ac_objext
8384if { (ac_try="$ac_compile"
8385case "(($ac_try" in
8386  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8387  *) ac_try_echo=$ac_try;;
8388esac
8389eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8390  (eval "$ac_compile") 2>conftest.er1
8391  ac_status=$?
8392  grep -v '^ *+' conftest.er1 >conftest.err
8393  rm -f conftest.er1
8394  cat conftest.err >&5
8395  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8396  (exit $ac_status); } &&
8397	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8398  { (case "(($ac_try" in
8399  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8400  *) ac_try_echo=$ac_try;;
8401esac
8402eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8403  (eval "$ac_try") 2>&5
8404  ac_status=$?
8405  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8406  (exit $ac_status); }; } &&
8407	 { ac_try='test -s conftest.$ac_objext'
8408  { (case "(($ac_try" in
8409  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8410  *) ac_try_echo=$ac_try;;
8411esac
8412eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8413  (eval "$ac_try") 2>&5
8414  ac_status=$?
8415  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8416  (exit $ac_status); }; }; then
8417  ac_header_compiler=yes
8418else
8419  echo "$as_me: failed program was:" >&5
8420sed 's/^/| /' conftest.$ac_ext >&5
8421
8422	ac_header_compiler=no
8423fi
8424
8425rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8426{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8427echo "${ECHO_T}$ac_header_compiler" >&6; }
8428
8429# Is the header present?
8430{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
8431echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8432cat >conftest.$ac_ext <<_ACEOF
8433/* confdefs.h.  */
8434_ACEOF
8435cat confdefs.h >>conftest.$ac_ext
8436cat >>conftest.$ac_ext <<_ACEOF
8437/* end confdefs.h.  */
8438#include <$ac_header>
8439_ACEOF
8440if { (ac_try="$ac_cpp conftest.$ac_ext"
8441case "(($ac_try" in
8442  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8443  *) ac_try_echo=$ac_try;;
8444esac
8445eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8446  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8447  ac_status=$?
8448  grep -v '^ *+' conftest.er1 >conftest.err
8449  rm -f conftest.er1
8450  cat conftest.err >&5
8451  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8452  (exit $ac_status); } >/dev/null; then
8453  if test -s conftest.err; then
8454    ac_cpp_err=$ac_c_preproc_warn_flag
8455    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8456  else
8457    ac_cpp_err=
8458  fi
8459else
8460  ac_cpp_err=yes
8461fi
8462if test -z "$ac_cpp_err"; then
8463  ac_header_preproc=yes
8464else
8465  echo "$as_me: failed program was:" >&5
8466sed 's/^/| /' conftest.$ac_ext >&5
8467
8468  ac_header_preproc=no
8469fi
8470
8471rm -f conftest.err conftest.$ac_ext
8472{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8473echo "${ECHO_T}$ac_header_preproc" >&6; }
8474
8475# So?  What about this header?
8476case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8477  yes:no: )
8478    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8479echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8480    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8481echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8482    ac_header_preproc=yes
8483    ;;
8484  no:yes:* )
8485    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8486echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8487    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8488echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8489    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8490echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8491    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8492echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8493    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8494echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8495    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8496echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8497    ( cat <<\_ASBOX
8498## ------------------------------ ##
8499## Report this to bugs@yourdomain ##
8500## ------------------------------ ##
8501_ASBOX
8502     ) | sed "s/^/$as_me: WARNING:     /" >&2
8503    ;;
8504esac
8505{ echo "$as_me:$LINENO: checking for $ac_header" >&5
8506echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8507if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8508  echo $ECHO_N "(cached) $ECHO_C" >&6
8509else
8510  eval "$as_ac_Header=\$ac_header_preproc"
8511fi
8512ac_res=`eval echo '${'$as_ac_Header'}'`
8513	       { echo "$as_me:$LINENO: result: $ac_res" >&5
8514echo "${ECHO_T}$ac_res" >&6; }
8515
8516fi
8517if test `eval echo '${'$as_ac_Header'}'` = yes; then
8518  cat >>confdefs.h <<_ACEOF
8519#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8520_ACEOF
8521
8522fi
8523
8524done
8525
8526# Check whether --enable-ltdl-install was given.
8527if test "${enable_ltdl_install+set}" = set; then
8528  enableval=$enable_ltdl_install;
8529fi
8530
8531
8532
8533
8534if test x"${enable_ltdl_install-no}" != xno; then
8535  INSTALL_LTDL_TRUE=
8536  INSTALL_LTDL_FALSE='#'
8537else
8538  INSTALL_LTDL_TRUE='#'
8539  INSTALL_LTDL_FALSE=
8540fi
8541
8542
8543
8544if test x"${enable_ltdl_convenience-no}" != xno; then
8545  CONVENIENCE_LTDL_TRUE=
8546  CONVENIENCE_LTDL_FALSE='#'
8547else
8548  CONVENIENCE_LTDL_TRUE='#'
8549  CONVENIENCE_LTDL_FALSE=
8550fi
8551
8552
8553{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8554echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8555library_names_spec=
8556libname_spec='lib$name'
8557soname_spec=
8558shrext_cmds=".so"
8559postinstall_cmds=
8560postuninstall_cmds=
8561finish_cmds=
8562finish_eval=
8563shlibpath_var=
8564shlibpath_overrides_runpath=unknown
8565version_type=none
8566dynamic_linker="$host_os ld.so"
8567sys_lib_dlsearch_path_spec="/lib /usr/lib"
8568if test "$GCC" = yes; then
8569  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8570  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8571    # if the path contains ";" then we assume it to be the separator
8572    # otherwise default to the standard path separator (i.e. ":") - it is
8573    # assumed that no part of a normal pathname contains ";" but that should
8574    # okay in the real world where ";" in dirpaths is itself problematic.
8575    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8576  else
8577    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8578  fi
8579else
8580  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8581fi
8582need_lib_prefix=unknown
8583hardcode_into_libs=no
8584
8585# when you set need_version to no, make sure it does not cause -set_version
8586# flags to be left without arguments
8587need_version=unknown
8588
8589case $host_os in
8590aix3*)
8591  version_type=linux
8592  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8593  shlibpath_var=LIBPATH
8594
8595  # AIX 3 has no versioning support, so we append a major version to the name.
8596  soname_spec='${libname}${release}${shared_ext}$major'
8597  ;;
8598
8599aix4* | aix5*)
8600  version_type=linux
8601  need_lib_prefix=no
8602  need_version=no
8603  hardcode_into_libs=yes
8604  if test "$host_cpu" = ia64; then
8605    # AIX 5 supports IA64
8606    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8607    shlibpath_var=LD_LIBRARY_PATH
8608  else
8609    # With GCC up to 2.95.x, collect2 would create an import file
8610    # for dependence libraries.  The import file would start with
8611    # the line `#! .'.  This would cause the generated library to
8612    # depend on `.', always an invalid library.  This was fixed in
8613    # development snapshots of GCC prior to 3.0.
8614    case $host_os in
8615      aix4 | aix4.[01] | aix4.[01].*)
8616      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8617	   echo ' yes '
8618	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8619	:
8620      else
8621	can_build_shared=no
8622      fi
8623      ;;
8624    esac
8625    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8626    # soname into executable. Probably we can add versioning support to
8627    # collect2, so additional links can be useful in future.
8628    if test "$aix_use_runtimelinking" = yes; then
8629      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8630      # instead of lib<name>.a to let people know that these are not
8631      # typical AIX shared libraries.
8632      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8633    else
8634      # We preserve .a as extension for shared libraries through AIX4.2
8635      # and later when we are not doing run time linking.
8636      library_names_spec='${libname}${release}.a $libname.a'
8637      soname_spec='${libname}${release}${shared_ext}$major'
8638    fi
8639    shlibpath_var=LIBPATH
8640  fi
8641  ;;
8642
8643amigaos*)
8644  library_names_spec='$libname.ixlibrary $libname.a'
8645  # Create ${libname}_ixlibrary.a entries in /sys/libs.
8646  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'
8647  ;;
8648
8649beos*)
8650  library_names_spec='${libname}${shared_ext}'
8651  dynamic_linker="$host_os ld.so"
8652  shlibpath_var=LIBRARY_PATH
8653  ;;
8654
8655bsdi[45]*)
8656  version_type=linux
8657  need_version=no
8658  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8659  soname_spec='${libname}${release}${shared_ext}$major'
8660  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8661  shlibpath_var=LD_LIBRARY_PATH
8662  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8663  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8664  # the default ld.so.conf also contains /usr/contrib/lib and
8665  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8666  # libtool to hard-code these into programs
8667  ;;
8668
8669cygwin* | mingw* | pw32*)
8670  version_type=windows
8671  shrext_cmds=".dll"
8672  need_version=no
8673  need_lib_prefix=no
8674
8675  case $GCC,$host_os in
8676  yes,cygwin* | yes,mingw* | yes,pw32*)
8677    library_names_spec='$libname.dll.a'
8678    # DLL is installed to $(libdir)/../bin by postinstall_cmds
8679    postinstall_cmds='base_file=`basename \${file}`~
8680      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8681      dldir=$destdir/`dirname \$dlpath`~
8682      test -d \$dldir || mkdir -p \$dldir~
8683      $install_prog $dir/$dlname \$dldir/$dlname~
8684      chmod a+x \$dldir/$dlname'
8685    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8686      dlpath=$dir/\$dldll~
8687       $rm \$dlpath'
8688    shlibpath_overrides_runpath=yes
8689
8690    case $host_os in
8691    cygwin*)
8692      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8693      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8694      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8695      ;;
8696    mingw*)
8697      # MinGW DLLs use traditional 'lib' prefix
8698      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8699      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8700      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8701        # It is most probably a Windows format PATH printed by
8702        # mingw gcc, but we are running on Cygwin. Gcc prints its search
8703        # path with ; separators, and with drive letters. We can handle the
8704        # drive letters (cygwin fileutils understands them), so leave them,
8705        # especially as we might pass files found there to a mingw objdump,
8706        # which wouldn't understand a cygwinified path. Ahh.
8707        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8708      else
8709        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8710      fi
8711      ;;
8712    pw32*)
8713      # pw32 DLLs use 'pw' prefix rather than 'lib'
8714      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8715      ;;
8716    esac
8717    ;;
8718
8719  *)
8720    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8721    ;;
8722  esac
8723  dynamic_linker='Win32 ld.exe'
8724  # FIXME: first we should search . and the directory the executable is in
8725  shlibpath_var=PATH
8726  ;;
8727
8728darwin* | rhapsody*)
8729  dynamic_linker="$host_os dyld"
8730  version_type=darwin
8731  need_lib_prefix=no
8732  need_version=no
8733  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8734  soname_spec='${libname}${release}${major}$shared_ext'
8735  shlibpath_overrides_runpath=yes
8736  shlibpath_var=DYLD_LIBRARY_PATH
8737  shrext_cmds='.dylib'
8738  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8739  if test "$GCC" = yes; then
8740    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"`
8741  else
8742    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8743  fi
8744  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8745  ;;
8746
8747dgux*)
8748  version_type=linux
8749  need_lib_prefix=no
8750  need_version=no
8751  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8752  soname_spec='${libname}${release}${shared_ext}$major'
8753  shlibpath_var=LD_LIBRARY_PATH
8754  ;;
8755
8756freebsd1.*)
8757  dynamic_linker=no
8758  ;;
8759
8760kfreebsd*-gnu)
8761  version_type=linux
8762  need_lib_prefix=no
8763  need_version=no
8764  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8765  soname_spec='${libname}${release}${shared_ext}$major'
8766  shlibpath_var=LD_LIBRARY_PATH
8767  shlibpath_overrides_runpath=no
8768  hardcode_into_libs=yes
8769  dynamic_linker='GNU ld.so'
8770  ;;
8771
8772freebsd* | dragonfly*)
8773  # DragonFly does not have aout.  When/if they implement a new
8774  # versioning mechanism, adjust this.
8775  if test -x /usr/bin/objformat; then
8776    objformat=`/usr/bin/objformat`
8777  else
8778    case $host_os in
8779    freebsd[123].*) objformat=aout ;;
8780    *) objformat=elf ;;
8781    esac
8782  fi
8783  version_type=freebsd-$objformat
8784  case $version_type in
8785    freebsd-elf*)
8786      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8787      need_version=no
8788      need_lib_prefix=no
8789      ;;
8790    freebsd-*)
8791      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8792      need_version=yes
8793      ;;
8794  esac
8795  shlibpath_var=LD_LIBRARY_PATH
8796  case $host_os in
8797  freebsd2.*)
8798    shlibpath_overrides_runpath=yes
8799    ;;
8800  freebsd3.[01]* | freebsdelf3.[01]*)
8801    shlibpath_overrides_runpath=yes
8802    hardcode_into_libs=yes
8803    ;;
8804  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8805  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8806    shlibpath_overrides_runpath=no
8807    hardcode_into_libs=yes
8808    ;;
8809  freebsd*) # from 4.6 on
8810    shlibpath_overrides_runpath=yes
8811    hardcode_into_libs=yes
8812    ;;
8813  esac
8814  ;;
8815
8816gnu*)
8817  version_type=linux
8818  need_lib_prefix=no
8819  need_version=no
8820  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8821  soname_spec='${libname}${release}${shared_ext}$major'
8822  shlibpath_var=LD_LIBRARY_PATH
8823  hardcode_into_libs=yes
8824  ;;
8825
8826hpux9* | hpux10* | hpux11*)
8827  # Give a soname corresponding to the major version so that dld.sl refuses to
8828  # link against other versions.
8829  version_type=sunos
8830  need_lib_prefix=no
8831  need_version=no
8832  case $host_cpu in
8833  ia64*)
8834    shrext_cmds='.so'
8835    hardcode_into_libs=yes
8836    dynamic_linker="$host_os dld.so"
8837    shlibpath_var=LD_LIBRARY_PATH
8838    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8839    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8840    soname_spec='${libname}${release}${shared_ext}$major'
8841    if test "X$HPUX_IA64_MODE" = X32; then
8842      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8843    else
8844      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8845    fi
8846    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8847    ;;
8848   hppa*64*)
8849     shrext_cmds='.sl'
8850     hardcode_into_libs=yes
8851     dynamic_linker="$host_os dld.sl"
8852     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8853     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8854     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8855     soname_spec='${libname}${release}${shared_ext}$major'
8856     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8857     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8858     ;;
8859   *)
8860    shrext_cmds='.sl'
8861    dynamic_linker="$host_os dld.sl"
8862    shlibpath_var=SHLIB_PATH
8863    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8864    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8865    soname_spec='${libname}${release}${shared_ext}$major'
8866    ;;
8867  esac
8868  # HP-UX runs *really* slowly unless shared libraries are mode 555.
8869  postinstall_cmds='chmod 555 $lib'
8870  ;;
8871
8872interix3*)
8873  version_type=linux
8874  need_lib_prefix=no
8875  need_version=no
8876  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8877  soname_spec='${libname}${release}${shared_ext}$major'
8878  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8879  shlibpath_var=LD_LIBRARY_PATH
8880  shlibpath_overrides_runpath=no
8881  hardcode_into_libs=yes
8882  ;;
8883
8884irix5* | irix6* | nonstopux*)
8885  case $host_os in
8886    nonstopux*) version_type=nonstopux ;;
8887    *)
8888	if test "$lt_cv_prog_gnu_ld" = yes; then
8889		version_type=linux
8890	else
8891		version_type=irix
8892	fi ;;
8893  esac
8894  need_lib_prefix=no
8895  need_version=no
8896  soname_spec='${libname}${release}${shared_ext}$major'
8897  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8898  case $host_os in
8899  irix5* | nonstopux*)
8900    libsuff= shlibsuff=
8901    ;;
8902  *)
8903    case $LD in # libtool.m4 will add one of these switches to LD
8904    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8905      libsuff= shlibsuff= libmagic=32-bit;;
8906    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8907      libsuff=32 shlibsuff=N32 libmagic=N32;;
8908    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8909      libsuff=64 shlibsuff=64 libmagic=64-bit;;
8910    *) libsuff= shlibsuff= libmagic=never-match;;
8911    esac
8912    ;;
8913  esac
8914  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8915  shlibpath_overrides_runpath=no
8916  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8917  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8918  hardcode_into_libs=yes
8919  ;;
8920
8921# No shared lib support for Linux oldld, aout, or coff.
8922linux*oldld* | linux*aout* | linux*coff*)
8923  dynamic_linker=no
8924  ;;
8925
8926# This must be Linux ELF.
8927linux*)
8928  version_type=linux
8929  need_lib_prefix=no
8930  need_version=no
8931  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8932  soname_spec='${libname}${release}${shared_ext}$major'
8933  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8934  shlibpath_var=LD_LIBRARY_PATH
8935  shlibpath_overrides_runpath=no
8936  # This implies no fast_install, which is unacceptable.
8937  # Some rework will be needed to allow for fast_install
8938  # before this can be enabled.
8939  hardcode_into_libs=yes
8940
8941  # Append ld.so.conf contents to the search path
8942  if test -f /etc/ld.so.conf; then
8943    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' ' '`
8944    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8945  fi
8946
8947  # We used to test for /lib/ld.so.1 and disable shared libraries on
8948  # powerpc, because MkLinux only supported shared libraries with the
8949  # GNU dynamic linker.  Since this was broken with cross compilers,
8950  # most powerpc-linux boxes support dynamic linking these days and
8951  # people can always --disable-shared, the test was removed, and we
8952  # assume the GNU/Linux dynamic linker is in use.
8953  dynamic_linker='GNU/Linux ld.so'
8954  ;;
8955
8956knetbsd*-gnu)
8957  version_type=linux
8958  need_lib_prefix=no
8959  need_version=no
8960  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8961  soname_spec='${libname}${release}${shared_ext}$major'
8962  shlibpath_var=LD_LIBRARY_PATH
8963  shlibpath_overrides_runpath=no
8964  hardcode_into_libs=yes
8965  dynamic_linker='GNU ld.so'
8966  ;;
8967
8968netbsd*)
8969  version_type=sunos
8970  need_lib_prefix=no
8971  need_version=no
8972  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8973    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8974    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8975    dynamic_linker='NetBSD (a.out) ld.so'
8976  else
8977    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8978    soname_spec='${libname}${release}${shared_ext}$major'
8979    dynamic_linker='NetBSD ld.elf_so'
8980  fi
8981  shlibpath_var=LD_LIBRARY_PATH
8982  shlibpath_overrides_runpath=yes
8983  hardcode_into_libs=yes
8984  ;;
8985
8986newsos6)
8987  version_type=linux
8988  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8989  shlibpath_var=LD_LIBRARY_PATH
8990  shlibpath_overrides_runpath=yes
8991  ;;
8992
8993nto-qnx*)
8994  version_type=linux
8995  need_lib_prefix=no
8996  need_version=no
8997  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8998  soname_spec='${libname}${release}${shared_ext}$major'
8999  shlibpath_var=LD_LIBRARY_PATH
9000  shlibpath_overrides_runpath=yes
9001  ;;
9002
9003openbsd*)
9004  version_type=sunos
9005  sys_lib_dlsearch_path_spec="/usr/lib"
9006  need_lib_prefix=no
9007  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9008  case $host_os in
9009    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9010    *)                         need_version=no  ;;
9011  esac
9012  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9013  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9014  shlibpath_var=LD_LIBRARY_PATH
9015  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9016    case $host_os in
9017      openbsd2.[89] | openbsd2.[89].*)
9018	shlibpath_overrides_runpath=no
9019	;;
9020      *)
9021	shlibpath_overrides_runpath=yes
9022	;;
9023      esac
9024  else
9025    shlibpath_overrides_runpath=yes
9026  fi
9027  ;;
9028
9029os2*)
9030  libname_spec='$name'
9031  shrext_cmds=".dll"
9032  need_lib_prefix=no
9033  library_names_spec='$libname${shared_ext} $libname.a'
9034  dynamic_linker='OS/2 ld.exe'
9035  shlibpath_var=LIBPATH
9036  ;;
9037
9038osf3* | osf4* | osf5*)
9039  version_type=osf
9040  need_lib_prefix=no
9041  need_version=no
9042  soname_spec='${libname}${release}${shared_ext}$major'
9043  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9044  shlibpath_var=LD_LIBRARY_PATH
9045  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9046  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9047  ;;
9048
9049solaris*)
9050  version_type=linux
9051  need_lib_prefix=no
9052  need_version=no
9053  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9054  soname_spec='${libname}${release}${shared_ext}$major'
9055  shlibpath_var=LD_LIBRARY_PATH
9056  shlibpath_overrides_runpath=yes
9057  hardcode_into_libs=yes
9058  # ldd complains unless libraries are executable
9059  postinstall_cmds='chmod +x $lib'
9060  ;;
9061
9062sunos4*)
9063  version_type=sunos
9064  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9065  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9066  shlibpath_var=LD_LIBRARY_PATH
9067  shlibpath_overrides_runpath=yes
9068  if test "$with_gnu_ld" = yes; then
9069    need_lib_prefix=no
9070  fi
9071  need_version=yes
9072  ;;
9073
9074sysv4 | sysv4.3*)
9075  version_type=linux
9076  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9077  soname_spec='${libname}${release}${shared_ext}$major'
9078  shlibpath_var=LD_LIBRARY_PATH
9079  case $host_vendor in
9080    sni)
9081      shlibpath_overrides_runpath=no
9082      need_lib_prefix=no
9083      export_dynamic_flag_spec='${wl}-Blargedynsym'
9084      runpath_var=LD_RUN_PATH
9085      ;;
9086    siemens)
9087      need_lib_prefix=no
9088      ;;
9089    motorola)
9090      need_lib_prefix=no
9091      need_version=no
9092      shlibpath_overrides_runpath=no
9093      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9094      ;;
9095  esac
9096  ;;
9097
9098sysv4*MP*)
9099  if test -d /usr/nec ;then
9100    version_type=linux
9101    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9102    soname_spec='$libname${shared_ext}.$major'
9103    shlibpath_var=LD_LIBRARY_PATH
9104  fi
9105  ;;
9106
9107sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9108  version_type=freebsd-elf
9109  need_lib_prefix=no
9110  need_version=no
9111  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9112  soname_spec='${libname}${release}${shared_ext}$major'
9113  shlibpath_var=LD_LIBRARY_PATH
9114  hardcode_into_libs=yes
9115  if test "$with_gnu_ld" = yes; then
9116    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9117    shlibpath_overrides_runpath=no
9118  else
9119    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9120    shlibpath_overrides_runpath=yes
9121    case $host_os in
9122      sco3.2v5*)
9123        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9124	;;
9125    esac
9126  fi
9127  sys_lib_dlsearch_path_spec='/usr/lib'
9128  ;;
9129
9130uts4*)
9131  version_type=linux
9132  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9133  soname_spec='${libname}${release}${shared_ext}$major'
9134  shlibpath_var=LD_LIBRARY_PATH
9135  ;;
9136
9137*)
9138  dynamic_linker=no
9139  ;;
9140esac
9141{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9142echo "${ECHO_T}$dynamic_linker" >&6; }
9143test "$dynamic_linker" = no && can_build_shared=no
9144
9145variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9146if test "$GCC" = yes; then
9147  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9148fi
9149
9150
9151{ echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9152echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
9153if test "${libltdl_cv_shlibext+set}" = set; then
9154  echo $ECHO_N "(cached) $ECHO_C" >&6
9155else
9156
9157module=yes
9158eval libltdl_cv_shlibext=$shrext_cmds
9159
9160fi
9161{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9162echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
9163if test -n "$libltdl_cv_shlibext"; then
9164
9165cat >>confdefs.h <<_ACEOF
9166#define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9167_ACEOF
9168
9169fi
9170
9171
9172{ echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
9173echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
9174if test "${libltdl_cv_shlibpath_var+set}" = set; then
9175  echo $ECHO_N "(cached) $ECHO_C" >&6
9176else
9177  libltdl_cv_shlibpath_var="$shlibpath_var"
9178fi
9179{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
9180echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
9181if test -n "$libltdl_cv_shlibpath_var"; then
9182
9183cat >>confdefs.h <<_ACEOF
9184#define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
9185_ACEOF
9186
9187fi
9188
9189
9190{ echo "$as_me:$LINENO: checking for the default library search path" >&5
9191echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
9192if test "${libltdl_cv_sys_search_path+set}" = set; then
9193  echo $ECHO_N "(cached) $ECHO_C" >&6
9194else
9195  libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9196fi
9197{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9198echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
9199if test -n "$libltdl_cv_sys_search_path"; then
9200  sys_search_path=
9201  for dir in $libltdl_cv_sys_search_path; do
9202    if test -z "$sys_search_path"; then
9203      sys_search_path="$dir"
9204    else
9205      sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9206    fi
9207  done
9208
9209cat >>confdefs.h <<_ACEOF
9210#define LTDL_SYSSEARCHPATH "$sys_search_path"
9211_ACEOF
9212
9213fi
9214
9215{ echo "$as_me:$LINENO: checking for objdir" >&5
9216echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9217if test "${libltdl_cv_objdir+set}" = set; then
9218  echo $ECHO_N "(cached) $ECHO_C" >&6
9219else
9220  libltdl_cv_objdir="$objdir"
9221  if test -n "$objdir"; then
9222    :
9223  else
9224    rm -f .libs 2>/dev/null
9225    mkdir .libs 2>/dev/null
9226    if test -d .libs; then
9227      libltdl_cv_objdir=.libs
9228    else
9229      # MS-DOS does not allow filenames that begin with a dot.
9230      libltdl_cv_objdir=_libs
9231    fi
9232  rmdir .libs 2>/dev/null
9233  fi
9234
9235fi
9236{ echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9237echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
9238
9239cat >>confdefs.h <<_ACEOF
9240#define LTDL_OBJDIR "$libltdl_cv_objdir/"
9241_ACEOF
9242
9243
9244
9245
9246
9247
9248# Check for command to grab the raw symbol name followed by C symbol from nm.
9249{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9250echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
9251if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9252  echo $ECHO_N "(cached) $ECHO_C" >&6
9253else
9254
9255# These are sane defaults that work on at least a few old systems.
9256# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
9257
9258# Character class describing NM global symbol codes.
9259symcode='[BCDEGRST]'
9260
9261# Regexp to match symbols that can be accessed directly from C.
9262sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9263
9264# Transform an extracted symbol line into a proper C declaration
9265lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9266
9267# Transform an extracted symbol line into symbol name and symbol address
9268lt_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'"
9269
9270# Define system-specific variables.
9271case $host_os in
9272aix*)
9273  symcode='[BCDT]'
9274  ;;
9275cygwin* | mingw* | pw32*)
9276  symcode='[ABCDGISTW]'
9277  ;;
9278hpux*) # Its linker distinguishes data from code symbols
9279  if test "$host_cpu" = ia64; then
9280    symcode='[ABCDEGRST]'
9281  fi
9282  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9283  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'"
9284  ;;
9285linux*)
9286  if test "$host_cpu" = ia64; then
9287    symcode='[ABCDGIRSTW]'
9288    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9289    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'"
9290  fi
9291  ;;
9292irix* | nonstopux*)
9293  symcode='[BCDEGRST]'
9294  ;;
9295osf*)
9296  symcode='[BCDEGQRST]'
9297  ;;
9298solaris*)
9299  symcode='[BDRT]'
9300  ;;
9301sco3.2v5*)
9302  symcode='[DT]'
9303  ;;
9304sysv4.2uw2*)
9305  symcode='[DT]'
9306  ;;
9307sysv5* | sco5v6* | unixware* | OpenUNIX*)
9308  symcode='[ABDT]'
9309  ;;
9310sysv4)
9311  symcode='[DFNSTU]'
9312  ;;
9313esac
9314
9315# Handle CRLF in mingw tool chain
9316opt_cr=
9317case $build_os in
9318mingw*)
9319  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9320  ;;
9321esac
9322
9323# If we're using GNU nm, then use its standard symbol codes.
9324case `$NM -V 2>&1` in
9325*GNU* | *'with BFD'*)
9326  symcode='[ABCDGIRSTW]' ;;
9327esac
9328
9329# Try without a prefix undercore, then with it.
9330for ac_symprfx in "" "_"; do
9331
9332  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9333  symxfrm="\\1 $ac_symprfx\\2 \\2"
9334
9335  # Write the raw and C identifiers.
9336  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ 	]\($symcode$symcode*\)[ 	][ 	]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9337
9338  # Check to see that the pipe works correctly.
9339  pipe_works=no
9340
9341  rm -f conftest*
9342  cat > conftest.$ac_ext <<EOF
9343#ifdef __cplusplus
9344extern "C" {
9345#endif
9346char nm_test_var;
9347void nm_test_func(){}
9348#ifdef __cplusplus
9349}
9350#endif
9351int main(){nm_test_var='a';nm_test_func();return(0);}
9352EOF
9353
9354  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9355  (eval $ac_compile) 2>&5
9356  ac_status=$?
9357  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9358  (exit $ac_status); }; then
9359    # Now try to grab the symbols.
9360    nlist=conftest.nm
9361    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
9362  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9363  ac_status=$?
9364  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9365  (exit $ac_status); } && test -s "$nlist"; then
9366      # Try sorting and uniquifying the output.
9367      if sort "$nlist" | uniq > "$nlist"T; then
9368	mv -f "$nlist"T "$nlist"
9369      else
9370	rm -f "$nlist"T
9371      fi
9372
9373      # Make sure that we snagged all the symbols we need.
9374      if grep ' nm_test_var$' "$nlist" >/dev/null; then
9375	if grep ' nm_test_func$' "$nlist" >/dev/null; then
9376	  cat <<EOF > conftest.$ac_ext
9377#ifdef __cplusplus
9378extern "C" {
9379#endif
9380
9381EOF
9382	  # Now generate the symbol file.
9383	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9384
9385	  cat <<EOF >> conftest.$ac_ext
9386#if defined (__STDC__) && __STDC__
9387# define lt_ptr_t void *
9388#else
9389# define lt_ptr_t char *
9390# define const
9391#endif
9392
9393/* The mapping between symbol names and symbols. */
9394const struct {
9395  const char *name;
9396  lt_ptr_t address;
9397}
9398lt_preloaded_symbols[] =
9399{
9400EOF
9401	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9402	  cat <<\EOF >> conftest.$ac_ext
9403  {0, (lt_ptr_t) 0}
9404};
9405
9406#ifdef __cplusplus
9407}
9408#endif
9409EOF
9410	  # Now try linking the two files.
9411	  mv conftest.$ac_objext conftstm.$ac_objext
9412	  lt_save_LIBS="$LIBS"
9413	  lt_save_CFLAGS="$CFLAGS"
9414	  LIBS="conftstm.$ac_objext"
9415	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9416	  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9417  (eval $ac_link) 2>&5
9418  ac_status=$?
9419  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9420  (exit $ac_status); } && test -s conftest${ac_exeext}; then
9421	    pipe_works=yes
9422	  fi
9423	  LIBS="$lt_save_LIBS"
9424	  CFLAGS="$lt_save_CFLAGS"
9425	else
9426	  echo "cannot find nm_test_func in $nlist" >&5
9427	fi
9428      else
9429	echo "cannot find nm_test_var in $nlist" >&5
9430      fi
9431    else
9432      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9433    fi
9434  else
9435    echo "$progname: failed program was:" >&5
9436    cat conftest.$ac_ext >&5
9437  fi
9438  rm -f conftest* conftst*
9439
9440  # Do not use the global_symbol_pipe unless it works.
9441  if test "$pipe_works" = yes; then
9442    break
9443  else
9444    lt_cv_sys_global_symbol_pipe=
9445  fi
9446done
9447
9448fi
9449
9450if test -z "$lt_cv_sys_global_symbol_pipe"; then
9451  lt_cv_sys_global_symbol_to_cdecl=
9452fi
9453if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9454  { echo "$as_me:$LINENO: result: failed" >&5
9455echo "${ECHO_T}failed" >&6; }
9456else
9457  { echo "$as_me:$LINENO: result: ok" >&5
9458echo "${ECHO_T}ok" >&6; }
9459fi
9460
9461
9462{ echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
9463echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
9464if test "${libltdl_cv_preloaded_symbols+set}" = set; then
9465  echo $ECHO_N "(cached) $ECHO_C" >&6
9466else
9467  if test -n "$lt_cv_sys_global_symbol_pipe"; then
9468    libltdl_cv_preloaded_symbols=yes
9469  else
9470    libltdl_cv_preloaded_symbols=no
9471  fi
9472
9473fi
9474{ echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
9475echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
9476if test x"$libltdl_cv_preloaded_symbols" = xyes; then
9477
9478cat >>confdefs.h <<\_ACEOF
9479#define HAVE_PRELOADED_SYMBOLS 1
9480_ACEOF
9481
9482fi
9483
9484LIBADD_DL=
9485
9486ac_ext=c
9487ac_cpp='$CPP $CPPFLAGS'
9488ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9489ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9490ac_compiler_gnu=$ac_cv_c_compiler_gnu
9491
9492
9493{ echo "$as_me:$LINENO: checking for shl_load" >&5
9494echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9495if test "${ac_cv_func_shl_load+set}" = set; then
9496  echo $ECHO_N "(cached) $ECHO_C" >&6
9497else
9498  cat >conftest.$ac_ext <<_ACEOF
9499/* confdefs.h.  */
9500_ACEOF
9501cat confdefs.h >>conftest.$ac_ext
9502cat >>conftest.$ac_ext <<_ACEOF
9503/* end confdefs.h.  */
9504/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9505   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9506#define shl_load innocuous_shl_load
9507
9508/* System header to define __stub macros and hopefully few prototypes,
9509    which can conflict with char shl_load (); below.
9510    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9511    <limits.h> exists even on freestanding compilers.  */
9512
9513#ifdef __STDC__
9514# include <limits.h>
9515#else
9516# include <assert.h>
9517#endif
9518
9519#undef shl_load
9520
9521/* Override any GCC internal prototype to avoid an error.
9522   Use char because int might match the return type of a GCC
9523   builtin and then its argument prototype would still apply.  */
9524#ifdef __cplusplus
9525extern "C"
9526#endif
9527char shl_load ();
9528/* The GNU C library defines this for functions which it implements
9529    to always fail with ENOSYS.  Some functions are actually named
9530    something starting with __ and the normal name is an alias.  */
9531#if defined __stub_shl_load || defined __stub___shl_load
9532choke me
9533#endif
9534
9535int
9536main ()
9537{
9538return shl_load ();
9539  ;
9540  return 0;
9541}
9542_ACEOF
9543rm -f conftest.$ac_objext conftest$ac_exeext
9544if { (ac_try="$ac_link"
9545case "(($ac_try" in
9546  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9547  *) ac_try_echo=$ac_try;;
9548esac
9549eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9550  (eval "$ac_link") 2>conftest.er1
9551  ac_status=$?
9552  grep -v '^ *+' conftest.er1 >conftest.err
9553  rm -f conftest.er1
9554  cat conftest.err >&5
9555  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9556  (exit $ac_status); } &&
9557	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9558  { (case "(($ac_try" in
9559  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9560  *) ac_try_echo=$ac_try;;
9561esac
9562eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9563  (eval "$ac_try") 2>&5
9564  ac_status=$?
9565  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9566  (exit $ac_status); }; } &&
9567	 { ac_try='test -s conftest$ac_exeext'
9568  { (case "(($ac_try" in
9569  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9570  *) ac_try_echo=$ac_try;;
9571esac
9572eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9573  (eval "$ac_try") 2>&5
9574  ac_status=$?
9575  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9576  (exit $ac_status); }; }; then
9577  ac_cv_func_shl_load=yes
9578else
9579  echo "$as_me: failed program was:" >&5
9580sed 's/^/| /' conftest.$ac_ext >&5
9581
9582	ac_cv_func_shl_load=no
9583fi
9584
9585rm -f core conftest.err conftest.$ac_objext \
9586      conftest$ac_exeext conftest.$ac_ext
9587fi
9588{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9589echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9590if test $ac_cv_func_shl_load = yes; then
9591
9592cat >>confdefs.h <<\_ACEOF
9593#define HAVE_SHL_LOAD 1
9594_ACEOF
9595
9596else
9597  { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9598echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9599if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9600  echo $ECHO_N "(cached) $ECHO_C" >&6
9601else
9602  ac_check_lib_save_LIBS=$LIBS
9603LIBS="-ldld  $LIBS"
9604cat >conftest.$ac_ext <<_ACEOF
9605/* confdefs.h.  */
9606_ACEOF
9607cat confdefs.h >>conftest.$ac_ext
9608cat >>conftest.$ac_ext <<_ACEOF
9609/* end confdefs.h.  */
9610
9611/* Override any GCC internal prototype to avoid an error.
9612   Use char because int might match the return type of a GCC
9613   builtin and then its argument prototype would still apply.  */
9614#ifdef __cplusplus
9615extern "C"
9616#endif
9617char shl_load ();
9618int
9619main ()
9620{
9621return shl_load ();
9622  ;
9623  return 0;
9624}
9625_ACEOF
9626rm -f conftest.$ac_objext conftest$ac_exeext
9627if { (ac_try="$ac_link"
9628case "(($ac_try" in
9629  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9630  *) ac_try_echo=$ac_try;;
9631esac
9632eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9633  (eval "$ac_link") 2>conftest.er1
9634  ac_status=$?
9635  grep -v '^ *+' conftest.er1 >conftest.err
9636  rm -f conftest.er1
9637  cat conftest.err >&5
9638  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9639  (exit $ac_status); } &&
9640	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9641  { (case "(($ac_try" in
9642  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9643  *) ac_try_echo=$ac_try;;
9644esac
9645eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9646  (eval "$ac_try") 2>&5
9647  ac_status=$?
9648  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9649  (exit $ac_status); }; } &&
9650	 { ac_try='test -s conftest$ac_exeext'
9651  { (case "(($ac_try" in
9652  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9653  *) ac_try_echo=$ac_try;;
9654esac
9655eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9656  (eval "$ac_try") 2>&5
9657  ac_status=$?
9658  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9659  (exit $ac_status); }; }; then
9660  ac_cv_lib_dld_shl_load=yes
9661else
9662  echo "$as_me: failed program was:" >&5
9663sed 's/^/| /' conftest.$ac_ext >&5
9664
9665	ac_cv_lib_dld_shl_load=no
9666fi
9667
9668rm -f core conftest.err conftest.$ac_objext \
9669      conftest$ac_exeext conftest.$ac_ext
9670LIBS=$ac_check_lib_save_LIBS
9671fi
9672{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9673echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9674if test $ac_cv_lib_dld_shl_load = yes; then
9675
9676cat >>confdefs.h <<\_ACEOF
9677#define HAVE_SHL_LOAD 1
9678_ACEOF
9679
9680	LIBADD_DL="$LIBADD_DL -ldld"
9681else
9682  { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9683echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9684if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9685  echo $ECHO_N "(cached) $ECHO_C" >&6
9686else
9687  ac_check_lib_save_LIBS=$LIBS
9688LIBS="-ldl  $LIBS"
9689cat >conftest.$ac_ext <<_ACEOF
9690/* confdefs.h.  */
9691_ACEOF
9692cat confdefs.h >>conftest.$ac_ext
9693cat >>conftest.$ac_ext <<_ACEOF
9694/* end confdefs.h.  */
9695
9696/* Override any GCC internal prototype to avoid an error.
9697   Use char because int might match the return type of a GCC
9698   builtin and then its argument prototype would still apply.  */
9699#ifdef __cplusplus
9700extern "C"
9701#endif
9702char dlopen ();
9703int
9704main ()
9705{
9706return dlopen ();
9707  ;
9708  return 0;
9709}
9710_ACEOF
9711rm -f conftest.$ac_objext conftest$ac_exeext
9712if { (ac_try="$ac_link"
9713case "(($ac_try" in
9714  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9715  *) ac_try_echo=$ac_try;;
9716esac
9717eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9718  (eval "$ac_link") 2>conftest.er1
9719  ac_status=$?
9720  grep -v '^ *+' conftest.er1 >conftest.err
9721  rm -f conftest.er1
9722  cat conftest.err >&5
9723  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9724  (exit $ac_status); } &&
9725	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9726  { (case "(($ac_try" in
9727  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9728  *) ac_try_echo=$ac_try;;
9729esac
9730eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9731  (eval "$ac_try") 2>&5
9732  ac_status=$?
9733  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9734  (exit $ac_status); }; } &&
9735	 { ac_try='test -s conftest$ac_exeext'
9736  { (case "(($ac_try" in
9737  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9738  *) ac_try_echo=$ac_try;;
9739esac
9740eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9741  (eval "$ac_try") 2>&5
9742  ac_status=$?
9743  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9744  (exit $ac_status); }; }; then
9745  ac_cv_lib_dl_dlopen=yes
9746else
9747  echo "$as_me: failed program was:" >&5
9748sed 's/^/| /' conftest.$ac_ext >&5
9749
9750	ac_cv_lib_dl_dlopen=no
9751fi
9752
9753rm -f core conftest.err conftest.$ac_objext \
9754      conftest$ac_exeext conftest.$ac_ext
9755LIBS=$ac_check_lib_save_LIBS
9756fi
9757{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9758echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9759if test $ac_cv_lib_dl_dlopen = yes; then
9760
9761cat >>confdefs.h <<\_ACEOF
9762#define HAVE_LIBDL 1
9763_ACEOF
9764
9765	        LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
9766else
9767  cat >conftest.$ac_ext <<_ACEOF
9768/* confdefs.h.  */
9769_ACEOF
9770cat confdefs.h >>conftest.$ac_ext
9771cat >>conftest.$ac_ext <<_ACEOF
9772/* end confdefs.h.  */
9773#if HAVE_DLFCN_H
9774#  include <dlfcn.h>
9775#endif
9776
9777int
9778main ()
9779{
9780dlopen(0, 0);
9781  ;
9782  return 0;
9783}
9784_ACEOF
9785rm -f conftest.$ac_objext conftest$ac_exeext
9786if { (ac_try="$ac_link"
9787case "(($ac_try" in
9788  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9789  *) ac_try_echo=$ac_try;;
9790esac
9791eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9792  (eval "$ac_link") 2>conftest.er1
9793  ac_status=$?
9794  grep -v '^ *+' conftest.er1 >conftest.err
9795  rm -f conftest.er1
9796  cat conftest.err >&5
9797  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9798  (exit $ac_status); } &&
9799	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9800  { (case "(($ac_try" in
9801  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9802  *) ac_try_echo=$ac_try;;
9803esac
9804eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9805  (eval "$ac_try") 2>&5
9806  ac_status=$?
9807  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9808  (exit $ac_status); }; } &&
9809	 { ac_try='test -s conftest$ac_exeext'
9810  { (case "(($ac_try" in
9811  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9812  *) ac_try_echo=$ac_try;;
9813esac
9814eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9815  (eval "$ac_try") 2>&5
9816  ac_status=$?
9817  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9818  (exit $ac_status); }; }; then
9819
9820cat >>confdefs.h <<\_ACEOF
9821#define HAVE_LIBDL 1
9822_ACEOF
9823 libltdl_cv_func_dlopen="yes"
9824else
9825  echo "$as_me: failed program was:" >&5
9826sed 's/^/| /' conftest.$ac_ext >&5
9827
9828	{ echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9829echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
9830if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9831  echo $ECHO_N "(cached) $ECHO_C" >&6
9832else
9833  ac_check_lib_save_LIBS=$LIBS
9834LIBS="-lsvld  $LIBS"
9835cat >conftest.$ac_ext <<_ACEOF
9836/* confdefs.h.  */
9837_ACEOF
9838cat confdefs.h >>conftest.$ac_ext
9839cat >>conftest.$ac_ext <<_ACEOF
9840/* end confdefs.h.  */
9841
9842/* Override any GCC internal prototype to avoid an error.
9843   Use char because int might match the return type of a GCC
9844   builtin and then its argument prototype would still apply.  */
9845#ifdef __cplusplus
9846extern "C"
9847#endif
9848char dlopen ();
9849int
9850main ()
9851{
9852return dlopen ();
9853  ;
9854  return 0;
9855}
9856_ACEOF
9857rm -f conftest.$ac_objext conftest$ac_exeext
9858if { (ac_try="$ac_link"
9859case "(($ac_try" in
9860  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9861  *) ac_try_echo=$ac_try;;
9862esac
9863eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9864  (eval "$ac_link") 2>conftest.er1
9865  ac_status=$?
9866  grep -v '^ *+' conftest.er1 >conftest.err
9867  rm -f conftest.er1
9868  cat conftest.err >&5
9869  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9870  (exit $ac_status); } &&
9871	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9872  { (case "(($ac_try" in
9873  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9874  *) ac_try_echo=$ac_try;;
9875esac
9876eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9877  (eval "$ac_try") 2>&5
9878  ac_status=$?
9879  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9880  (exit $ac_status); }; } &&
9881	 { ac_try='test -s conftest$ac_exeext'
9882  { (case "(($ac_try" in
9883  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9884  *) ac_try_echo=$ac_try;;
9885esac
9886eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9887  (eval "$ac_try") 2>&5
9888  ac_status=$?
9889  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9890  (exit $ac_status); }; }; then
9891  ac_cv_lib_svld_dlopen=yes
9892else
9893  echo "$as_me: failed program was:" >&5
9894sed 's/^/| /' conftest.$ac_ext >&5
9895
9896	ac_cv_lib_svld_dlopen=no
9897fi
9898
9899rm -f core conftest.err conftest.$ac_objext \
9900      conftest$ac_exeext conftest.$ac_ext
9901LIBS=$ac_check_lib_save_LIBS
9902fi
9903{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9904echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
9905if test $ac_cv_lib_svld_dlopen = yes; then
9906
9907cat >>confdefs.h <<\_ACEOF
9908#define HAVE_LIBDL 1
9909_ACEOF
9910
9911	            LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
9912else
9913  { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9914echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
9915if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9916  echo $ECHO_N "(cached) $ECHO_C" >&6
9917else
9918  ac_check_lib_save_LIBS=$LIBS
9919LIBS="-ldld  $LIBS"
9920cat >conftest.$ac_ext <<_ACEOF
9921/* confdefs.h.  */
9922_ACEOF
9923cat confdefs.h >>conftest.$ac_ext
9924cat >>conftest.$ac_ext <<_ACEOF
9925/* end confdefs.h.  */
9926
9927/* Override any GCC internal prototype to avoid an error.
9928   Use char because int might match the return type of a GCC
9929   builtin and then its argument prototype would still apply.  */
9930#ifdef __cplusplus
9931extern "C"
9932#endif
9933char dld_link ();
9934int
9935main ()
9936{
9937return dld_link ();
9938  ;
9939  return 0;
9940}
9941_ACEOF
9942rm -f conftest.$ac_objext conftest$ac_exeext
9943if { (ac_try="$ac_link"
9944case "(($ac_try" in
9945  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9946  *) ac_try_echo=$ac_try;;
9947esac
9948eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9949  (eval "$ac_link") 2>conftest.er1
9950  ac_status=$?
9951  grep -v '^ *+' conftest.er1 >conftest.err
9952  rm -f conftest.er1
9953  cat conftest.err >&5
9954  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9955  (exit $ac_status); } &&
9956	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9957  { (case "(($ac_try" in
9958  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9959  *) ac_try_echo=$ac_try;;
9960esac
9961eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9962  (eval "$ac_try") 2>&5
9963  ac_status=$?
9964  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9965  (exit $ac_status); }; } &&
9966	 { ac_try='test -s conftest$ac_exeext'
9967  { (case "(($ac_try" in
9968  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9969  *) ac_try_echo=$ac_try;;
9970esac
9971eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9972  (eval "$ac_try") 2>&5
9973  ac_status=$?
9974  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9975  (exit $ac_status); }; }; then
9976  ac_cv_lib_dld_dld_link=yes
9977else
9978  echo "$as_me: failed program was:" >&5
9979sed 's/^/| /' conftest.$ac_ext >&5
9980
9981	ac_cv_lib_dld_dld_link=no
9982fi
9983
9984rm -f core conftest.err conftest.$ac_objext \
9985      conftest$ac_exeext conftest.$ac_ext
9986LIBS=$ac_check_lib_save_LIBS
9987fi
9988{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9989echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
9990if test $ac_cv_lib_dld_dld_link = yes; then
9991
9992cat >>confdefs.h <<\_ACEOF
9993#define HAVE_DLD 1
9994_ACEOF
9995
9996	 	LIBADD_DL="$LIBADD_DL -ldld"
9997else
9998  { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
9999echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
10000if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
10001  echo $ECHO_N "(cached) $ECHO_C" >&6
10002else
10003  cat >conftest.$ac_ext <<_ACEOF
10004/* confdefs.h.  */
10005_ACEOF
10006cat confdefs.h >>conftest.$ac_ext
10007cat >>conftest.$ac_ext <<_ACEOF
10008/* end confdefs.h.  */
10009/* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10010   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10011#define _dyld_func_lookup innocuous__dyld_func_lookup
10012
10013/* System header to define __stub macros and hopefully few prototypes,
10014    which can conflict with char _dyld_func_lookup (); below.
10015    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10016    <limits.h> exists even on freestanding compilers.  */
10017
10018#ifdef __STDC__
10019# include <limits.h>
10020#else
10021# include <assert.h>
10022#endif
10023
10024#undef _dyld_func_lookup
10025
10026/* Override any GCC internal prototype to avoid an error.
10027   Use char because int might match the return type of a GCC
10028   builtin and then its argument prototype would still apply.  */
10029#ifdef __cplusplus
10030extern "C"
10031#endif
10032char _dyld_func_lookup ();
10033/* The GNU C library defines this for functions which it implements
10034    to always fail with ENOSYS.  Some functions are actually named
10035    something starting with __ and the normal name is an alias.  */
10036#if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
10037choke me
10038#endif
10039
10040int
10041main ()
10042{
10043return _dyld_func_lookup ();
10044  ;
10045  return 0;
10046}
10047_ACEOF
10048rm -f conftest.$ac_objext conftest$ac_exeext
10049if { (ac_try="$ac_link"
10050case "(($ac_try" in
10051  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10052  *) ac_try_echo=$ac_try;;
10053esac
10054eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10055  (eval "$ac_link") 2>conftest.er1
10056  ac_status=$?
10057  grep -v '^ *+' conftest.er1 >conftest.err
10058  rm -f conftest.er1
10059  cat conftest.err >&5
10060  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10061  (exit $ac_status); } &&
10062	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10063  { (case "(($ac_try" in
10064  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10065  *) ac_try_echo=$ac_try;;
10066esac
10067eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10068  (eval "$ac_try") 2>&5
10069  ac_status=$?
10070  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10071  (exit $ac_status); }; } &&
10072	 { ac_try='test -s conftest$ac_exeext'
10073  { (case "(($ac_try" in
10074  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10075  *) ac_try_echo=$ac_try;;
10076esac
10077eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10078  (eval "$ac_try") 2>&5
10079  ac_status=$?
10080  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10081  (exit $ac_status); }; }; then
10082  ac_cv_func__dyld_func_lookup=yes
10083else
10084  echo "$as_me: failed program was:" >&5
10085sed 's/^/| /' conftest.$ac_ext >&5
10086
10087	ac_cv_func__dyld_func_lookup=no
10088fi
10089
10090rm -f core conftest.err conftest.$ac_objext \
10091      conftest$ac_exeext conftest.$ac_ext
10092fi
10093{ echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10094echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
10095if test $ac_cv_func__dyld_func_lookup = yes; then
10096
10097cat >>confdefs.h <<\_ACEOF
10098#define HAVE_DYLD 1
10099_ACEOF
10100
10101fi
10102
10103
10104fi
10105
10106
10107fi
10108
10109
10110fi
10111
10112rm -f core conftest.err conftest.$ac_objext \
10113      conftest$ac_exeext conftest.$ac_ext
10114
10115fi
10116
10117
10118fi
10119
10120
10121fi
10122
10123
10124if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10125then
10126  lt_save_LIBS="$LIBS"
10127  LIBS="$LIBS $LIBADD_DL"
10128
10129for ac_func in dlerror
10130do
10131as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10132{ echo "$as_me:$LINENO: checking for $ac_func" >&5
10133echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10134if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10135  echo $ECHO_N "(cached) $ECHO_C" >&6
10136else
10137  cat >conftest.$ac_ext <<_ACEOF
10138/* confdefs.h.  */
10139_ACEOF
10140cat confdefs.h >>conftest.$ac_ext
10141cat >>conftest.$ac_ext <<_ACEOF
10142/* end confdefs.h.  */
10143/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10144   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10145#define $ac_func innocuous_$ac_func
10146
10147/* System header to define __stub macros and hopefully few prototypes,
10148    which can conflict with char $ac_func (); below.
10149    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10150    <limits.h> exists even on freestanding compilers.  */
10151
10152#ifdef __STDC__
10153# include <limits.h>
10154#else
10155# include <assert.h>
10156#endif
10157
10158#undef $ac_func
10159
10160/* Override any GCC internal prototype to avoid an error.
10161   Use char because int might match the return type of a GCC
10162   builtin and then its argument prototype would still apply.  */
10163#ifdef __cplusplus
10164extern "C"
10165#endif
10166char $ac_func ();
10167/* The GNU C library defines this for functions which it implements
10168    to always fail with ENOSYS.  Some functions are actually named
10169    something starting with __ and the normal name is an alias.  */
10170#if defined __stub_$ac_func || defined __stub___$ac_func
10171choke me
10172#endif
10173
10174int
10175main ()
10176{
10177return $ac_func ();
10178  ;
10179  return 0;
10180}
10181_ACEOF
10182rm -f conftest.$ac_objext conftest$ac_exeext
10183if { (ac_try="$ac_link"
10184case "(($ac_try" in
10185  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10186  *) ac_try_echo=$ac_try;;
10187esac
10188eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10189  (eval "$ac_link") 2>conftest.er1
10190  ac_status=$?
10191  grep -v '^ *+' conftest.er1 >conftest.err
10192  rm -f conftest.er1
10193  cat conftest.err >&5
10194  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10195  (exit $ac_status); } &&
10196	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10197  { (case "(($ac_try" in
10198  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10199  *) ac_try_echo=$ac_try;;
10200esac
10201eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10202  (eval "$ac_try") 2>&5
10203  ac_status=$?
10204  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10205  (exit $ac_status); }; } &&
10206	 { ac_try='test -s conftest$ac_exeext'
10207  { (case "(($ac_try" in
10208  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10209  *) ac_try_echo=$ac_try;;
10210esac
10211eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10212  (eval "$ac_try") 2>&5
10213  ac_status=$?
10214  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10215  (exit $ac_status); }; }; then
10216  eval "$as_ac_var=yes"
10217else
10218  echo "$as_me: failed program was:" >&5
10219sed 's/^/| /' conftest.$ac_ext >&5
10220
10221	eval "$as_ac_var=no"
10222fi
10223
10224rm -f core conftest.err conftest.$ac_objext \
10225      conftest$ac_exeext conftest.$ac_ext
10226fi
10227ac_res=`eval echo '${'$as_ac_var'}'`
10228	       { echo "$as_me:$LINENO: result: $ac_res" >&5
10229echo "${ECHO_T}$ac_res" >&6; }
10230if test `eval echo '${'$as_ac_var'}'` = yes; then
10231  cat >>confdefs.h <<_ACEOF
10232#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10233_ACEOF
10234
10235fi
10236done
10237
10238  LIBS="$lt_save_LIBS"
10239fi
10240ac_ext=c
10241ac_cpp='$CPP $CPPFLAGS'
10242ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10243ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10244ac_compiler_gnu=$ac_cv_c_compiler_gnu
10245
10246
10247
10248{ echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10249echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
10250if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10251  echo $ECHO_N "(cached) $ECHO_C" >&6
10252else
10253  ac_cv_sys_symbol_underscore=no
10254  cat > conftest.$ac_ext <<EOF
10255void nm_test_func(){}
10256int main(){nm_test_func;return 0;}
10257EOF
10258  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10259  (eval $ac_compile) 2>&5
10260  ac_status=$?
10261  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10262  (exit $ac_status); }; then
10263    # Now try to grab the symbols.
10264    ac_nlist=conftest.nm
10265    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
10266  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10267  ac_status=$?
10268  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10269  (exit $ac_status); } && test -s "$ac_nlist"; then
10270      # See whether the symbols have a leading underscore.
10271      if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10272        ac_cv_sys_symbol_underscore=yes
10273      else
10274        if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
10275	  :
10276        else
10277	  echo "configure: cannot find nm_test_func in $ac_nlist" >&5
10278        fi
10279      fi
10280    else
10281      echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
10282    fi
10283  else
10284    echo "configure: failed program was:" >&5
10285    cat conftest.c >&5
10286  fi
10287  rm -rf conftest*
10288
10289fi
10290{ echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
10291echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
10292
10293
10294if test x"$ac_cv_sys_symbol_underscore" = xyes; then
10295  if test x"$libltdl_cv_func_dlopen" = xyes ||
10296     test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
10297	{ echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
10298echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
10299if test "${libltdl_cv_need_uscore+set}" = set; then
10300  echo $ECHO_N "(cached) $ECHO_C" >&6
10301else
10302  libltdl_cv_need_uscore=unknown
10303          save_LIBS="$LIBS"
10304          LIBS="$LIBS $LIBADD_DL"
10305	  if test "$cross_compiling" = yes; then :
10306  libltdl_cv_need_uscore=cross
10307else
10308  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10309  lt_status=$lt_dlunknown
10310  cat > conftest.$ac_ext <<EOF
10311#line 10311 "configure"
10312#include "confdefs.h"
10313
10314#if HAVE_DLFCN_H
10315#include <dlfcn.h>
10316#endif
10317
10318#include <stdio.h>
10319
10320#ifdef RTLD_GLOBAL
10321#  define LT_DLGLOBAL		RTLD_GLOBAL
10322#else
10323#  ifdef DL_GLOBAL
10324#    define LT_DLGLOBAL		DL_GLOBAL
10325#  else
10326#    define LT_DLGLOBAL		0
10327#  endif
10328#endif
10329
10330/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10331   find out it does not work in some platform. */
10332#ifndef LT_DLLAZY_OR_NOW
10333#  ifdef RTLD_LAZY
10334#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
10335#  else
10336#    ifdef DL_LAZY
10337#      define LT_DLLAZY_OR_NOW		DL_LAZY
10338#    else
10339#      ifdef RTLD_NOW
10340#        define LT_DLLAZY_OR_NOW	RTLD_NOW
10341#      else
10342#        ifdef DL_NOW
10343#          define LT_DLLAZY_OR_NOW	DL_NOW
10344#        else
10345#          define LT_DLLAZY_OR_NOW	0
10346#        endif
10347#      endif
10348#    endif
10349#  endif
10350#endif
10351
10352#ifdef __cplusplus
10353extern "C" void exit (int);
10354#endif
10355
10356void fnord() { int i=42;}
10357int main ()
10358{
10359  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10360  int status = $lt_dlunknown;
10361
10362  if (self)
10363    {
10364      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10365      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10366      /* dlclose (self); */
10367    }
10368  else
10369    puts (dlerror ());
10370
10371    exit (status);
10372}
10373EOF
10374  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10375  (eval $ac_link) 2>&5
10376  ac_status=$?
10377  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10378  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10379    (./conftest; exit; ) >&5 2>/dev/null
10380    lt_status=$?
10381    case x$lt_status in
10382      x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
10383      x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
10384      x$lt_dlunknown|x*)  ;;
10385    esac
10386  else :
10387    # compilation failed
10388
10389  fi
10390fi
10391rm -fr conftest*
10392
10393	  LIBS="$save_LIBS"
10394
10395fi
10396{ echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
10397echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
10398  fi
10399fi
10400
10401if test x"$libltdl_cv_need_uscore" = xyes; then
10402
10403cat >>confdefs.h <<\_ACEOF
10404#define NEED_USCORE 1
10405_ACEOF
10406
10407fi
10408
10409
10410{ echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
10411echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
10412if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
10413  echo $ECHO_N "(cached) $ECHO_C" >&6
10414else
10415  # PORTME does your system automatically load deplibs for dlopen?
10416  # or its logical equivalent (e.g. shl_load for HP-UX < 11)
10417  # For now, we just catch OSes we know something about -- in the
10418  # future, we'll try test this programmatically.
10419  libltdl_cv_sys_dlopen_deplibs=unknown
10420  case "$host_os" in
10421  aix3*|aix4.1.*|aix4.2.*)
10422    # Unknown whether this is true for these versions of AIX, but
10423    # we want this `case' here to explicitly catch those versions.
10424    libltdl_cv_sys_dlopen_deplibs=unknown
10425    ;;
10426  aix[45]*)
10427    libltdl_cv_sys_dlopen_deplibs=yes
10428    ;;
10429  darwin*)
10430    # Assuming the user has installed a libdl from somewhere, this is true
10431    # If you are looking for one http://www.opendarwin.org/projects/dlcompat
10432    libltdl_cv_sys_dlopen_deplibs=yes
10433    ;;
10434  gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
10435    # GNU and its variants, using gnu ld.so (Glibc)
10436    libltdl_cv_sys_dlopen_deplibs=yes
10437    ;;
10438  hpux10*|hpux11*)
10439    libltdl_cv_sys_dlopen_deplibs=yes
10440    ;;
10441  interix*)
10442    libltdl_cv_sys_dlopen_deplibs=yes
10443    ;;
10444  irix[12345]*|irix6.[01]*)
10445    # Catch all versions of IRIX before 6.2, and indicate that we don't
10446    # know how it worked for any of those versions.
10447    libltdl_cv_sys_dlopen_deplibs=unknown
10448    ;;
10449  irix*)
10450    # The case above catches anything before 6.2, and it's known that
10451    # at 6.2 and later dlopen does load deplibs.
10452    libltdl_cv_sys_dlopen_deplibs=yes
10453    ;;
10454  netbsd*)
10455    libltdl_cv_sys_dlopen_deplibs=yes
10456    ;;
10457  openbsd*)
10458    libltdl_cv_sys_dlopen_deplibs=yes
10459    ;;
10460  osf[1234]*)
10461    # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
10462    # it did *not* use an RPATH in a shared library to find objects the
10463    # library depends on, so we explicitly say `no'.
10464    libltdl_cv_sys_dlopen_deplibs=no
10465    ;;
10466  osf5.0|osf5.0a|osf5.1)
10467    # dlopen *does* load deplibs and with the right loader patch applied
10468    # it even uses RPATH in a shared library to search for shared objects
10469    # that the library depends on, but there's no easy way to know if that
10470    # patch is installed.  Since this is the case, all we can really
10471    # say is unknown -- it depends on the patch being installed.  If
10472    # it is, this changes to `yes'.  Without it, it would be `no'.
10473    libltdl_cv_sys_dlopen_deplibs=unknown
10474    ;;
10475  osf*)
10476    # the two cases above should catch all versions of osf <= 5.1.  Read
10477    # the comments above for what we know about them.
10478    # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
10479    # is used to find them so we can finally say `yes'.
10480    libltdl_cv_sys_dlopen_deplibs=yes
10481    ;;
10482  solaris*)
10483    libltdl_cv_sys_dlopen_deplibs=yes
10484    ;;
10485  sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10486    libltdl_cv_sys_dlopen_deplibs=yes
10487    ;;
10488  esac
10489
10490fi
10491{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
10492echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
10493if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
10494
10495cat >>confdefs.h <<\_ACEOF
10496#define LTDL_DLOPEN_DEPLIBS 1
10497_ACEOF
10498
10499fi
10500
10501
10502for ac_header in argz.h
10503do
10504as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10505if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10506  { echo "$as_me:$LINENO: checking for $ac_header" >&5
10507echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10508if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10509  echo $ECHO_N "(cached) $ECHO_C" >&6
10510fi
10511ac_res=`eval echo '${'$as_ac_Header'}'`
10512	       { echo "$as_me:$LINENO: result: $ac_res" >&5
10513echo "${ECHO_T}$ac_res" >&6; }
10514else
10515  # Is the header compilable?
10516{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
10517echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10518cat >conftest.$ac_ext <<_ACEOF
10519/* confdefs.h.  */
10520_ACEOF
10521cat confdefs.h >>conftest.$ac_ext
10522cat >>conftest.$ac_ext <<_ACEOF
10523/* end confdefs.h.  */
10524$ac_includes_default
10525#include <$ac_header>
10526_ACEOF
10527rm -f conftest.$ac_objext
10528if { (ac_try="$ac_compile"
10529case "(($ac_try" in
10530  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10531  *) ac_try_echo=$ac_try;;
10532esac
10533eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10534  (eval "$ac_compile") 2>conftest.er1
10535  ac_status=$?
10536  grep -v '^ *+' conftest.er1 >conftest.err
10537  rm -f conftest.er1
10538  cat conftest.err >&5
10539  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10540  (exit $ac_status); } &&
10541	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10542  { (case "(($ac_try" in
10543  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10544  *) ac_try_echo=$ac_try;;
10545esac
10546eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10547  (eval "$ac_try") 2>&5
10548  ac_status=$?
10549  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10550  (exit $ac_status); }; } &&
10551	 { ac_try='test -s conftest.$ac_objext'
10552  { (case "(($ac_try" in
10553  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10554  *) ac_try_echo=$ac_try;;
10555esac
10556eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10557  (eval "$ac_try") 2>&5
10558  ac_status=$?
10559  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10560  (exit $ac_status); }; }; then
10561  ac_header_compiler=yes
10562else
10563  echo "$as_me: failed program was:" >&5
10564sed 's/^/| /' conftest.$ac_ext >&5
10565
10566	ac_header_compiler=no
10567fi
10568
10569rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10570{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10571echo "${ECHO_T}$ac_header_compiler" >&6; }
10572
10573# Is the header present?
10574{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
10575echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10576cat >conftest.$ac_ext <<_ACEOF
10577/* confdefs.h.  */
10578_ACEOF
10579cat confdefs.h >>conftest.$ac_ext
10580cat >>conftest.$ac_ext <<_ACEOF
10581/* end confdefs.h.  */
10582#include <$ac_header>
10583_ACEOF
10584if { (ac_try="$ac_cpp conftest.$ac_ext"
10585case "(($ac_try" in
10586  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10587  *) ac_try_echo=$ac_try;;
10588esac
10589eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10590  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10591  ac_status=$?
10592  grep -v '^ *+' conftest.er1 >conftest.err
10593  rm -f conftest.er1
10594  cat conftest.err >&5
10595  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10596  (exit $ac_status); } >/dev/null; then
10597  if test -s conftest.err; then
10598    ac_cpp_err=$ac_c_preproc_warn_flag
10599    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10600  else
10601    ac_cpp_err=
10602  fi
10603else
10604  ac_cpp_err=yes
10605fi
10606if test -z "$ac_cpp_err"; then
10607  ac_header_preproc=yes
10608else
10609  echo "$as_me: failed program was:" >&5
10610sed 's/^/| /' conftest.$ac_ext >&5
10611
10612  ac_header_preproc=no
10613fi
10614
10615rm -f conftest.err conftest.$ac_ext
10616{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10617echo "${ECHO_T}$ac_header_preproc" >&6; }
10618
10619# So?  What about this header?
10620case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10621  yes:no: )
10622    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10623echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10624    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10625echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10626    ac_header_preproc=yes
10627    ;;
10628  no:yes:* )
10629    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10630echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10631    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10632echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10633    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10634echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10635    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10636echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10637    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10638echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10639    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10640echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10641    ( cat <<\_ASBOX
10642## ------------------------------ ##
10643## Report this to bugs@yourdomain ##
10644## ------------------------------ ##
10645_ASBOX
10646     ) | sed "s/^/$as_me: WARNING:     /" >&2
10647    ;;
10648esac
10649{ echo "$as_me:$LINENO: checking for $ac_header" >&5
10650echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10651if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10652  echo $ECHO_N "(cached) $ECHO_C" >&6
10653else
10654  eval "$as_ac_Header=\$ac_header_preproc"
10655fi
10656ac_res=`eval echo '${'$as_ac_Header'}'`
10657	       { echo "$as_me:$LINENO: result: $ac_res" >&5
10658echo "${ECHO_T}$ac_res" >&6; }
10659
10660fi
10661if test `eval echo '${'$as_ac_Header'}'` = yes; then
10662  cat >>confdefs.h <<_ACEOF
10663#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10664_ACEOF
10665
10666fi
10667
10668done
10669
10670
10671{ echo "$as_me:$LINENO: checking for error_t" >&5
10672echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
10673if test "${ac_cv_type_error_t+set}" = set; then
10674  echo $ECHO_N "(cached) $ECHO_C" >&6
10675else
10676  cat >conftest.$ac_ext <<_ACEOF
10677/* confdefs.h.  */
10678_ACEOF
10679cat confdefs.h >>conftest.$ac_ext
10680cat >>conftest.$ac_ext <<_ACEOF
10681/* end confdefs.h.  */
10682#if HAVE_ARGZ_H
10683#  include <argz.h>
10684#endif
10685
10686typedef error_t ac__type_new_;
10687int
10688main ()
10689{
10690if ((ac__type_new_ *) 0)
10691  return 0;
10692if (sizeof (ac__type_new_))
10693  return 0;
10694  ;
10695  return 0;
10696}
10697_ACEOF
10698rm -f conftest.$ac_objext
10699if { (ac_try="$ac_compile"
10700case "(($ac_try" in
10701  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10702  *) ac_try_echo=$ac_try;;
10703esac
10704eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10705  (eval "$ac_compile") 2>conftest.er1
10706  ac_status=$?
10707  grep -v '^ *+' conftest.er1 >conftest.err
10708  rm -f conftest.er1
10709  cat conftest.err >&5
10710  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10711  (exit $ac_status); } &&
10712	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10713  { (case "(($ac_try" in
10714  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10715  *) ac_try_echo=$ac_try;;
10716esac
10717eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10718  (eval "$ac_try") 2>&5
10719  ac_status=$?
10720  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10721  (exit $ac_status); }; } &&
10722	 { ac_try='test -s conftest.$ac_objext'
10723  { (case "(($ac_try" in
10724  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10725  *) ac_try_echo=$ac_try;;
10726esac
10727eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10728  (eval "$ac_try") 2>&5
10729  ac_status=$?
10730  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10731  (exit $ac_status); }; }; then
10732  ac_cv_type_error_t=yes
10733else
10734  echo "$as_me: failed program was:" >&5
10735sed 's/^/| /' conftest.$ac_ext >&5
10736
10737	ac_cv_type_error_t=no
10738fi
10739
10740rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10741fi
10742{ echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
10743echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
10744if test $ac_cv_type_error_t = yes; then
10745
10746cat >>confdefs.h <<_ACEOF
10747#define HAVE_ERROR_T 1
10748_ACEOF
10749
10750
10751else
10752
10753cat >>confdefs.h <<\_ACEOF
10754#define error_t int
10755_ACEOF
10756
10757fi
10758
10759
10760
10761
10762
10763
10764
10765for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
10766do
10767as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10768{ echo "$as_me:$LINENO: checking for $ac_func" >&5
10769echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10770if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10771  echo $ECHO_N "(cached) $ECHO_C" >&6
10772else
10773  cat >conftest.$ac_ext <<_ACEOF
10774/* confdefs.h.  */
10775_ACEOF
10776cat confdefs.h >>conftest.$ac_ext
10777cat >>conftest.$ac_ext <<_ACEOF
10778/* end confdefs.h.  */
10779/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10780   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10781#define $ac_func innocuous_$ac_func
10782
10783/* System header to define __stub macros and hopefully few prototypes,
10784    which can conflict with char $ac_func (); below.
10785    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10786    <limits.h> exists even on freestanding compilers.  */
10787
10788#ifdef __STDC__
10789# include <limits.h>
10790#else
10791# include <assert.h>
10792#endif
10793
10794#undef $ac_func
10795
10796/* Override any GCC internal prototype to avoid an error.
10797   Use char because int might match the return type of a GCC
10798   builtin and then its argument prototype would still apply.  */
10799#ifdef __cplusplus
10800extern "C"
10801#endif
10802char $ac_func ();
10803/* The GNU C library defines this for functions which it implements
10804    to always fail with ENOSYS.  Some functions are actually named
10805    something starting with __ and the normal name is an alias.  */
10806#if defined __stub_$ac_func || defined __stub___$ac_func
10807choke me
10808#endif
10809
10810int
10811main ()
10812{
10813return $ac_func ();
10814  ;
10815  return 0;
10816}
10817_ACEOF
10818rm -f conftest.$ac_objext conftest$ac_exeext
10819if { (ac_try="$ac_link"
10820case "(($ac_try" in
10821  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10822  *) ac_try_echo=$ac_try;;
10823esac
10824eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10825  (eval "$ac_link") 2>conftest.er1
10826  ac_status=$?
10827  grep -v '^ *+' conftest.er1 >conftest.err
10828  rm -f conftest.er1
10829  cat conftest.err >&5
10830  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10831  (exit $ac_status); } &&
10832	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10833  { (case "(($ac_try" in
10834  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10835  *) ac_try_echo=$ac_try;;
10836esac
10837eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10838  (eval "$ac_try") 2>&5
10839  ac_status=$?
10840  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10841  (exit $ac_status); }; } &&
10842	 { ac_try='test -s conftest$ac_exeext'
10843  { (case "(($ac_try" in
10844  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10845  *) ac_try_echo=$ac_try;;
10846esac
10847eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10848  (eval "$ac_try") 2>&5
10849  ac_status=$?
10850  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10851  (exit $ac_status); }; }; then
10852  eval "$as_ac_var=yes"
10853else
10854  echo "$as_me: failed program was:" >&5
10855sed 's/^/| /' conftest.$ac_ext >&5
10856
10857	eval "$as_ac_var=no"
10858fi
10859
10860rm -f core conftest.err conftest.$ac_objext \
10861      conftest$ac_exeext conftest.$ac_ext
10862fi
10863ac_res=`eval echo '${'$as_ac_var'}'`
10864	       { echo "$as_me:$LINENO: result: $ac_res" >&5
10865echo "${ECHO_T}$ac_res" >&6; }
10866if test `eval echo '${'$as_ac_var'}'` = yes; then
10867  cat >>confdefs.h <<_ACEOF
10868#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10869_ACEOF
10870
10871fi
10872done
10873
10874
10875
10876
10877
10878
10879
10880
10881
10882
10883
10884
10885
10886
10887
10888
10889
10890
10891
10892
10893
10894
10895
10896
10897
10898
10899
10900
10901for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
10902		  stdio.h unistd.h
10903do
10904as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10905if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10906  { echo "$as_me:$LINENO: checking for $ac_header" >&5
10907echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10908if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10909  echo $ECHO_N "(cached) $ECHO_C" >&6
10910fi
10911ac_res=`eval echo '${'$as_ac_Header'}'`
10912	       { echo "$as_me:$LINENO: result: $ac_res" >&5
10913echo "${ECHO_T}$ac_res" >&6; }
10914else
10915  # Is the header compilable?
10916{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
10917echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10918cat >conftest.$ac_ext <<_ACEOF
10919/* confdefs.h.  */
10920_ACEOF
10921cat confdefs.h >>conftest.$ac_ext
10922cat >>conftest.$ac_ext <<_ACEOF
10923/* end confdefs.h.  */
10924$ac_includes_default
10925#include <$ac_header>
10926_ACEOF
10927rm -f conftest.$ac_objext
10928if { (ac_try="$ac_compile"
10929case "(($ac_try" in
10930  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10931  *) ac_try_echo=$ac_try;;
10932esac
10933eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10934  (eval "$ac_compile") 2>conftest.er1
10935  ac_status=$?
10936  grep -v '^ *+' conftest.er1 >conftest.err
10937  rm -f conftest.er1
10938  cat conftest.err >&5
10939  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10940  (exit $ac_status); } &&
10941	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10942  { (case "(($ac_try" in
10943  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10944  *) ac_try_echo=$ac_try;;
10945esac
10946eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10947  (eval "$ac_try") 2>&5
10948  ac_status=$?
10949  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10950  (exit $ac_status); }; } &&
10951	 { ac_try='test -s conftest.$ac_objext'
10952  { (case "(($ac_try" in
10953  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10954  *) ac_try_echo=$ac_try;;
10955esac
10956eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10957  (eval "$ac_try") 2>&5
10958  ac_status=$?
10959  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10960  (exit $ac_status); }; }; then
10961  ac_header_compiler=yes
10962else
10963  echo "$as_me: failed program was:" >&5
10964sed 's/^/| /' conftest.$ac_ext >&5
10965
10966	ac_header_compiler=no
10967fi
10968
10969rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10970{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10971echo "${ECHO_T}$ac_header_compiler" >&6; }
10972
10973# Is the header present?
10974{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
10975echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10976cat >conftest.$ac_ext <<_ACEOF
10977/* confdefs.h.  */
10978_ACEOF
10979cat confdefs.h >>conftest.$ac_ext
10980cat >>conftest.$ac_ext <<_ACEOF
10981/* end confdefs.h.  */
10982#include <$ac_header>
10983_ACEOF
10984if { (ac_try="$ac_cpp conftest.$ac_ext"
10985case "(($ac_try" in
10986  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10987  *) ac_try_echo=$ac_try;;
10988esac
10989eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10990  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10991  ac_status=$?
10992  grep -v '^ *+' conftest.er1 >conftest.err
10993  rm -f conftest.er1
10994  cat conftest.err >&5
10995  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10996  (exit $ac_status); } >/dev/null; then
10997  if test -s conftest.err; then
10998    ac_cpp_err=$ac_c_preproc_warn_flag
10999    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11000  else
11001    ac_cpp_err=
11002  fi
11003else
11004  ac_cpp_err=yes
11005fi
11006if test -z "$ac_cpp_err"; then
11007  ac_header_preproc=yes
11008else
11009  echo "$as_me: failed program was:" >&5
11010sed 's/^/| /' conftest.$ac_ext >&5
11011
11012  ac_header_preproc=no
11013fi
11014
11015rm -f conftest.err conftest.$ac_ext
11016{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11017echo "${ECHO_T}$ac_header_preproc" >&6; }
11018
11019# So?  What about this header?
11020case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11021  yes:no: )
11022    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11023echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11024    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11025echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11026    ac_header_preproc=yes
11027    ;;
11028  no:yes:* )
11029    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11030echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11031    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11032echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11033    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11034echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11035    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11036echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11037    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11038echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11039    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11040echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11041    ( cat <<\_ASBOX
11042## ------------------------------ ##
11043## Report this to bugs@yourdomain ##
11044## ------------------------------ ##
11045_ASBOX
11046     ) | sed "s/^/$as_me: WARNING:     /" >&2
11047    ;;
11048esac
11049{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11050echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11051if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11052  echo $ECHO_N "(cached) $ECHO_C" >&6
11053else
11054  eval "$as_ac_Header=\$ac_header_preproc"
11055fi
11056ac_res=`eval echo '${'$as_ac_Header'}'`
11057	       { echo "$as_me:$LINENO: result: $ac_res" >&5
11058echo "${ECHO_T}$ac_res" >&6; }
11059
11060fi
11061if test `eval echo '${'$as_ac_Header'}'` = yes; then
11062  cat >>confdefs.h <<_ACEOF
11063#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11064_ACEOF
11065
11066fi
11067
11068done
11069
11070
11071
11072
11073
11074for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
11075do
11076as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11077if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11078  { echo "$as_me:$LINENO: checking for $ac_header" >&5
11079echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11080if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11081  echo $ECHO_N "(cached) $ECHO_C" >&6
11082fi
11083ac_res=`eval echo '${'$as_ac_Header'}'`
11084	       { echo "$as_me:$LINENO: result: $ac_res" >&5
11085echo "${ECHO_T}$ac_res" >&6; }
11086else
11087  # Is the header compilable?
11088{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11089echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11090cat >conftest.$ac_ext <<_ACEOF
11091/* confdefs.h.  */
11092_ACEOF
11093cat confdefs.h >>conftest.$ac_ext
11094cat >>conftest.$ac_ext <<_ACEOF
11095/* end confdefs.h.  */
11096$ac_includes_default
11097#include <$ac_header>
11098_ACEOF
11099rm -f conftest.$ac_objext
11100if { (ac_try="$ac_compile"
11101case "(($ac_try" in
11102  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11103  *) ac_try_echo=$ac_try;;
11104esac
11105eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11106  (eval "$ac_compile") 2>conftest.er1
11107  ac_status=$?
11108  grep -v '^ *+' conftest.er1 >conftest.err
11109  rm -f conftest.er1
11110  cat conftest.err >&5
11111  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11112  (exit $ac_status); } &&
11113	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11114  { (case "(($ac_try" in
11115  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11116  *) ac_try_echo=$ac_try;;
11117esac
11118eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11119  (eval "$ac_try") 2>&5
11120  ac_status=$?
11121  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11122  (exit $ac_status); }; } &&
11123	 { ac_try='test -s conftest.$ac_objext'
11124  { (case "(($ac_try" in
11125  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11126  *) ac_try_echo=$ac_try;;
11127esac
11128eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11129  (eval "$ac_try") 2>&5
11130  ac_status=$?
11131  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11132  (exit $ac_status); }; }; then
11133  ac_header_compiler=yes
11134else
11135  echo "$as_me: failed program was:" >&5
11136sed 's/^/| /' conftest.$ac_ext >&5
11137
11138	ac_header_compiler=no
11139fi
11140
11141rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11142{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11143echo "${ECHO_T}$ac_header_compiler" >&6; }
11144
11145# Is the header present?
11146{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11147echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11148cat >conftest.$ac_ext <<_ACEOF
11149/* confdefs.h.  */
11150_ACEOF
11151cat confdefs.h >>conftest.$ac_ext
11152cat >>conftest.$ac_ext <<_ACEOF
11153/* end confdefs.h.  */
11154#include <$ac_header>
11155_ACEOF
11156if { (ac_try="$ac_cpp conftest.$ac_ext"
11157case "(($ac_try" in
11158  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11159  *) ac_try_echo=$ac_try;;
11160esac
11161eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11162  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11163  ac_status=$?
11164  grep -v '^ *+' conftest.er1 >conftest.err
11165  rm -f conftest.er1
11166  cat conftest.err >&5
11167  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11168  (exit $ac_status); } >/dev/null; then
11169  if test -s conftest.err; then
11170    ac_cpp_err=$ac_c_preproc_warn_flag
11171    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11172  else
11173    ac_cpp_err=
11174  fi
11175else
11176  ac_cpp_err=yes
11177fi
11178if test -z "$ac_cpp_err"; then
11179  ac_header_preproc=yes
11180else
11181  echo "$as_me: failed program was:" >&5
11182sed 's/^/| /' conftest.$ac_ext >&5
11183
11184  ac_header_preproc=no
11185fi
11186
11187rm -f conftest.err conftest.$ac_ext
11188{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11189echo "${ECHO_T}$ac_header_preproc" >&6; }
11190
11191# So?  What about this header?
11192case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11193  yes:no: )
11194    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11195echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11196    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11197echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11198    ac_header_preproc=yes
11199    ;;
11200  no:yes:* )
11201    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11202echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11203    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11204echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11205    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11206echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11207    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11208echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11209    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11210echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11211    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11212echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11213    ( cat <<\_ASBOX
11214## ------------------------------ ##
11215## Report this to bugs@yourdomain ##
11216## ------------------------------ ##
11217_ASBOX
11218     ) | sed "s/^/$as_me: WARNING:     /" >&2
11219    ;;
11220esac
11221{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11222echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11223if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11224  echo $ECHO_N "(cached) $ECHO_C" >&6
11225else
11226  eval "$as_ac_Header=\$ac_header_preproc"
11227fi
11228ac_res=`eval echo '${'$as_ac_Header'}'`
11229	       { echo "$as_me:$LINENO: result: $ac_res" >&5
11230echo "${ECHO_T}$ac_res" >&6; }
11231
11232fi
11233if test `eval echo '${'$as_ac_Header'}'` = yes; then
11234  cat >>confdefs.h <<_ACEOF
11235#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11236_ACEOF
11237
11238fi
11239
11240done
11241
11242
11243
11244for ac_header in string.h strings.h
11245do
11246as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11247if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11248  { echo "$as_me:$LINENO: checking for $ac_header" >&5
11249echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11250if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11251  echo $ECHO_N "(cached) $ECHO_C" >&6
11252fi
11253ac_res=`eval echo '${'$as_ac_Header'}'`
11254	       { echo "$as_me:$LINENO: result: $ac_res" >&5
11255echo "${ECHO_T}$ac_res" >&6; }
11256else
11257  # Is the header compilable?
11258{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11259echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11260cat >conftest.$ac_ext <<_ACEOF
11261/* confdefs.h.  */
11262_ACEOF
11263cat confdefs.h >>conftest.$ac_ext
11264cat >>conftest.$ac_ext <<_ACEOF
11265/* end confdefs.h.  */
11266$ac_includes_default
11267#include <$ac_header>
11268_ACEOF
11269rm -f conftest.$ac_objext
11270if { (ac_try="$ac_compile"
11271case "(($ac_try" in
11272  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11273  *) ac_try_echo=$ac_try;;
11274esac
11275eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11276  (eval "$ac_compile") 2>conftest.er1
11277  ac_status=$?
11278  grep -v '^ *+' conftest.er1 >conftest.err
11279  rm -f conftest.er1
11280  cat conftest.err >&5
11281  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11282  (exit $ac_status); } &&
11283	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11284  { (case "(($ac_try" in
11285  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11286  *) ac_try_echo=$ac_try;;
11287esac
11288eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11289  (eval "$ac_try") 2>&5
11290  ac_status=$?
11291  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11292  (exit $ac_status); }; } &&
11293	 { ac_try='test -s conftest.$ac_objext'
11294  { (case "(($ac_try" in
11295  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11296  *) ac_try_echo=$ac_try;;
11297esac
11298eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11299  (eval "$ac_try") 2>&5
11300  ac_status=$?
11301  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11302  (exit $ac_status); }; }; then
11303  ac_header_compiler=yes
11304else
11305  echo "$as_me: failed program was:" >&5
11306sed 's/^/| /' conftest.$ac_ext >&5
11307
11308	ac_header_compiler=no
11309fi
11310
11311rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11312{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11313echo "${ECHO_T}$ac_header_compiler" >&6; }
11314
11315# Is the header present?
11316{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11317echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11318cat >conftest.$ac_ext <<_ACEOF
11319/* confdefs.h.  */
11320_ACEOF
11321cat confdefs.h >>conftest.$ac_ext
11322cat >>conftest.$ac_ext <<_ACEOF
11323/* end confdefs.h.  */
11324#include <$ac_header>
11325_ACEOF
11326if { (ac_try="$ac_cpp conftest.$ac_ext"
11327case "(($ac_try" in
11328  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11329  *) ac_try_echo=$ac_try;;
11330esac
11331eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11332  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11333  ac_status=$?
11334  grep -v '^ *+' conftest.er1 >conftest.err
11335  rm -f conftest.er1
11336  cat conftest.err >&5
11337  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11338  (exit $ac_status); } >/dev/null; then
11339  if test -s conftest.err; then
11340    ac_cpp_err=$ac_c_preproc_warn_flag
11341    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11342  else
11343    ac_cpp_err=
11344  fi
11345else
11346  ac_cpp_err=yes
11347fi
11348if test -z "$ac_cpp_err"; then
11349  ac_header_preproc=yes
11350else
11351  echo "$as_me: failed program was:" >&5
11352sed 's/^/| /' conftest.$ac_ext >&5
11353
11354  ac_header_preproc=no
11355fi
11356
11357rm -f conftest.err conftest.$ac_ext
11358{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11359echo "${ECHO_T}$ac_header_preproc" >&6; }
11360
11361# So?  What about this header?
11362case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11363  yes:no: )
11364    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11365echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11366    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11367echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11368    ac_header_preproc=yes
11369    ;;
11370  no:yes:* )
11371    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11372echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11373    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11374echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11375    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11376echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11377    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11378echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11379    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11380echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11381    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11382echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11383    ( cat <<\_ASBOX
11384## ------------------------------ ##
11385## Report this to bugs@yourdomain ##
11386## ------------------------------ ##
11387_ASBOX
11388     ) | sed "s/^/$as_me: WARNING:     /" >&2
11389    ;;
11390esac
11391{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11392echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11393if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11394  echo $ECHO_N "(cached) $ECHO_C" >&6
11395else
11396  eval "$as_ac_Header=\$ac_header_preproc"
11397fi
11398ac_res=`eval echo '${'$as_ac_Header'}'`
11399	       { echo "$as_me:$LINENO: result: $ac_res" >&5
11400echo "${ECHO_T}$ac_res" >&6; }
11401
11402fi
11403if test `eval echo '${'$as_ac_Header'}'` = yes; then
11404  cat >>confdefs.h <<_ACEOF
11405#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11406_ACEOF
11407 break
11408fi
11409
11410done
11411
11412
11413
11414
11415for ac_func in strchr index
11416do
11417as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11418{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11419echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11420if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11421  echo $ECHO_N "(cached) $ECHO_C" >&6
11422else
11423  cat >conftest.$ac_ext <<_ACEOF
11424/* confdefs.h.  */
11425_ACEOF
11426cat confdefs.h >>conftest.$ac_ext
11427cat >>conftest.$ac_ext <<_ACEOF
11428/* end confdefs.h.  */
11429/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11430   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11431#define $ac_func innocuous_$ac_func
11432
11433/* System header to define __stub macros and hopefully few prototypes,
11434    which can conflict with char $ac_func (); below.
11435    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11436    <limits.h> exists even on freestanding compilers.  */
11437
11438#ifdef __STDC__
11439# include <limits.h>
11440#else
11441# include <assert.h>
11442#endif
11443
11444#undef $ac_func
11445
11446/* Override any GCC internal prototype to avoid an error.
11447   Use char because int might match the return type of a GCC
11448   builtin and then its argument prototype would still apply.  */
11449#ifdef __cplusplus
11450extern "C"
11451#endif
11452char $ac_func ();
11453/* The GNU C library defines this for functions which it implements
11454    to always fail with ENOSYS.  Some functions are actually named
11455    something starting with __ and the normal name is an alias.  */
11456#if defined __stub_$ac_func || defined __stub___$ac_func
11457choke me
11458#endif
11459
11460int
11461main ()
11462{
11463return $ac_func ();
11464  ;
11465  return 0;
11466}
11467_ACEOF
11468rm -f conftest.$ac_objext conftest$ac_exeext
11469if { (ac_try="$ac_link"
11470case "(($ac_try" in
11471  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11472  *) ac_try_echo=$ac_try;;
11473esac
11474eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11475  (eval "$ac_link") 2>conftest.er1
11476  ac_status=$?
11477  grep -v '^ *+' conftest.er1 >conftest.err
11478  rm -f conftest.er1
11479  cat conftest.err >&5
11480  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11481  (exit $ac_status); } &&
11482	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11483  { (case "(($ac_try" in
11484  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11485  *) ac_try_echo=$ac_try;;
11486esac
11487eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11488  (eval "$ac_try") 2>&5
11489  ac_status=$?
11490  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11491  (exit $ac_status); }; } &&
11492	 { ac_try='test -s conftest$ac_exeext'
11493  { (case "(($ac_try" in
11494  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11495  *) ac_try_echo=$ac_try;;
11496esac
11497eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11498  (eval "$ac_try") 2>&5
11499  ac_status=$?
11500  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11501  (exit $ac_status); }; }; then
11502  eval "$as_ac_var=yes"
11503else
11504  echo "$as_me: failed program was:" >&5
11505sed 's/^/| /' conftest.$ac_ext >&5
11506
11507	eval "$as_ac_var=no"
11508fi
11509
11510rm -f core conftest.err conftest.$ac_objext \
11511      conftest$ac_exeext conftest.$ac_ext
11512fi
11513ac_res=`eval echo '${'$as_ac_var'}'`
11514	       { echo "$as_me:$LINENO: result: $ac_res" >&5
11515echo "${ECHO_T}$ac_res" >&6; }
11516if test `eval echo '${'$as_ac_var'}'` = yes; then
11517  cat >>confdefs.h <<_ACEOF
11518#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11519_ACEOF
11520 break
11521fi
11522done
11523
11524
11525
11526for ac_func in strrchr rindex
11527do
11528as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11529{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11530echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11531if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11532  echo $ECHO_N "(cached) $ECHO_C" >&6
11533else
11534  cat >conftest.$ac_ext <<_ACEOF
11535/* confdefs.h.  */
11536_ACEOF
11537cat confdefs.h >>conftest.$ac_ext
11538cat >>conftest.$ac_ext <<_ACEOF
11539/* end confdefs.h.  */
11540/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11541   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11542#define $ac_func innocuous_$ac_func
11543
11544/* System header to define __stub macros and hopefully few prototypes,
11545    which can conflict with char $ac_func (); below.
11546    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11547    <limits.h> exists even on freestanding compilers.  */
11548
11549#ifdef __STDC__
11550# include <limits.h>
11551#else
11552# include <assert.h>
11553#endif
11554
11555#undef $ac_func
11556
11557/* Override any GCC internal prototype to avoid an error.
11558   Use char because int might match the return type of a GCC
11559   builtin and then its argument prototype would still apply.  */
11560#ifdef __cplusplus
11561extern "C"
11562#endif
11563char $ac_func ();
11564/* The GNU C library defines this for functions which it implements
11565    to always fail with ENOSYS.  Some functions are actually named
11566    something starting with __ and the normal name is an alias.  */
11567#if defined __stub_$ac_func || defined __stub___$ac_func
11568choke me
11569#endif
11570
11571int
11572main ()
11573{
11574return $ac_func ();
11575  ;
11576  return 0;
11577}
11578_ACEOF
11579rm -f conftest.$ac_objext conftest$ac_exeext
11580if { (ac_try="$ac_link"
11581case "(($ac_try" in
11582  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11583  *) ac_try_echo=$ac_try;;
11584esac
11585eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11586  (eval "$ac_link") 2>conftest.er1
11587  ac_status=$?
11588  grep -v '^ *+' conftest.er1 >conftest.err
11589  rm -f conftest.er1
11590  cat conftest.err >&5
11591  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11592  (exit $ac_status); } &&
11593	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11594  { (case "(($ac_try" in
11595  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11596  *) ac_try_echo=$ac_try;;
11597esac
11598eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11599  (eval "$ac_try") 2>&5
11600  ac_status=$?
11601  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11602  (exit $ac_status); }; } &&
11603	 { ac_try='test -s conftest$ac_exeext'
11604  { (case "(($ac_try" in
11605  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11606  *) ac_try_echo=$ac_try;;
11607esac
11608eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11609  (eval "$ac_try") 2>&5
11610  ac_status=$?
11611  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11612  (exit $ac_status); }; }; then
11613  eval "$as_ac_var=yes"
11614else
11615  echo "$as_me: failed program was:" >&5
11616sed 's/^/| /' conftest.$ac_ext >&5
11617
11618	eval "$as_ac_var=no"
11619fi
11620
11621rm -f core conftest.err conftest.$ac_objext \
11622      conftest$ac_exeext conftest.$ac_ext
11623fi
11624ac_res=`eval echo '${'$as_ac_var'}'`
11625	       { echo "$as_me:$LINENO: result: $ac_res" >&5
11626echo "${ECHO_T}$ac_res" >&6; }
11627if test `eval echo '${'$as_ac_var'}'` = yes; then
11628  cat >>confdefs.h <<_ACEOF
11629#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11630_ACEOF
11631 break
11632fi
11633done
11634
11635
11636
11637for ac_func in memcpy bcopy
11638do
11639as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11640{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11641echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11642if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11643  echo $ECHO_N "(cached) $ECHO_C" >&6
11644else
11645  cat >conftest.$ac_ext <<_ACEOF
11646/* confdefs.h.  */
11647_ACEOF
11648cat confdefs.h >>conftest.$ac_ext
11649cat >>conftest.$ac_ext <<_ACEOF
11650/* end confdefs.h.  */
11651/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11652   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11653#define $ac_func innocuous_$ac_func
11654
11655/* System header to define __stub macros and hopefully few prototypes,
11656    which can conflict with char $ac_func (); below.
11657    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11658    <limits.h> exists even on freestanding compilers.  */
11659
11660#ifdef __STDC__
11661# include <limits.h>
11662#else
11663# include <assert.h>
11664#endif
11665
11666#undef $ac_func
11667
11668/* Override any GCC internal prototype to avoid an error.
11669   Use char because int might match the return type of a GCC
11670   builtin and then its argument prototype would still apply.  */
11671#ifdef __cplusplus
11672extern "C"
11673#endif
11674char $ac_func ();
11675/* The GNU C library defines this for functions which it implements
11676    to always fail with ENOSYS.  Some functions are actually named
11677    something starting with __ and the normal name is an alias.  */
11678#if defined __stub_$ac_func || defined __stub___$ac_func
11679choke me
11680#endif
11681
11682int
11683main ()
11684{
11685return $ac_func ();
11686  ;
11687  return 0;
11688}
11689_ACEOF
11690rm -f conftest.$ac_objext conftest$ac_exeext
11691if { (ac_try="$ac_link"
11692case "(($ac_try" in
11693  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11694  *) ac_try_echo=$ac_try;;
11695esac
11696eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11697  (eval "$ac_link") 2>conftest.er1
11698  ac_status=$?
11699  grep -v '^ *+' conftest.er1 >conftest.err
11700  rm -f conftest.er1
11701  cat conftest.err >&5
11702  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11703  (exit $ac_status); } &&
11704	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11705  { (case "(($ac_try" in
11706  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11707  *) ac_try_echo=$ac_try;;
11708esac
11709eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11710  (eval "$ac_try") 2>&5
11711  ac_status=$?
11712  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11713  (exit $ac_status); }; } &&
11714	 { ac_try='test -s conftest$ac_exeext'
11715  { (case "(($ac_try" in
11716  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11717  *) ac_try_echo=$ac_try;;
11718esac
11719eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11720  (eval "$ac_try") 2>&5
11721  ac_status=$?
11722  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11723  (exit $ac_status); }; }; then
11724  eval "$as_ac_var=yes"
11725else
11726  echo "$as_me: failed program was:" >&5
11727sed 's/^/| /' conftest.$ac_ext >&5
11728
11729	eval "$as_ac_var=no"
11730fi
11731
11732rm -f core conftest.err conftest.$ac_objext \
11733      conftest$ac_exeext conftest.$ac_ext
11734fi
11735ac_res=`eval echo '${'$as_ac_var'}'`
11736	       { echo "$as_me:$LINENO: result: $ac_res" >&5
11737echo "${ECHO_T}$ac_res" >&6; }
11738if test `eval echo '${'$as_ac_var'}'` = yes; then
11739  cat >>confdefs.h <<_ACEOF
11740#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11741_ACEOF
11742 break
11743fi
11744done
11745
11746
11747
11748for ac_func in memmove strcmp
11749do
11750as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11751{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11752echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11753if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11754  echo $ECHO_N "(cached) $ECHO_C" >&6
11755else
11756  cat >conftest.$ac_ext <<_ACEOF
11757/* confdefs.h.  */
11758_ACEOF
11759cat confdefs.h >>conftest.$ac_ext
11760cat >>conftest.$ac_ext <<_ACEOF
11761/* end confdefs.h.  */
11762/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11763   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11764#define $ac_func innocuous_$ac_func
11765
11766/* System header to define __stub macros and hopefully few prototypes,
11767    which can conflict with char $ac_func (); below.
11768    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11769    <limits.h> exists even on freestanding compilers.  */
11770
11771#ifdef __STDC__
11772# include <limits.h>
11773#else
11774# include <assert.h>
11775#endif
11776
11777#undef $ac_func
11778
11779/* Override any GCC internal prototype to avoid an error.
11780   Use char because int might match the return type of a GCC
11781   builtin and then its argument prototype would still apply.  */
11782#ifdef __cplusplus
11783extern "C"
11784#endif
11785char $ac_func ();
11786/* The GNU C library defines this for functions which it implements
11787    to always fail with ENOSYS.  Some functions are actually named
11788    something starting with __ and the normal name is an alias.  */
11789#if defined __stub_$ac_func || defined __stub___$ac_func
11790choke me
11791#endif
11792
11793int
11794main ()
11795{
11796return $ac_func ();
11797  ;
11798  return 0;
11799}
11800_ACEOF
11801rm -f conftest.$ac_objext conftest$ac_exeext
11802if { (ac_try="$ac_link"
11803case "(($ac_try" in
11804  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11805  *) ac_try_echo=$ac_try;;
11806esac
11807eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11808  (eval "$ac_link") 2>conftest.er1
11809  ac_status=$?
11810  grep -v '^ *+' conftest.er1 >conftest.err
11811  rm -f conftest.er1
11812  cat conftest.err >&5
11813  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11814  (exit $ac_status); } &&
11815	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11816  { (case "(($ac_try" in
11817  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11818  *) ac_try_echo=$ac_try;;
11819esac
11820eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11821  (eval "$ac_try") 2>&5
11822  ac_status=$?
11823  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11824  (exit $ac_status); }; } &&
11825	 { ac_try='test -s conftest$ac_exeext'
11826  { (case "(($ac_try" in
11827  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11828  *) ac_try_echo=$ac_try;;
11829esac
11830eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11831  (eval "$ac_try") 2>&5
11832  ac_status=$?
11833  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11834  (exit $ac_status); }; }; then
11835  eval "$as_ac_var=yes"
11836else
11837  echo "$as_me: failed program was:" >&5
11838sed 's/^/| /' conftest.$ac_ext >&5
11839
11840	eval "$as_ac_var=no"
11841fi
11842
11843rm -f core conftest.err conftest.$ac_objext \
11844      conftest$ac_exeext conftest.$ac_ext
11845fi
11846ac_res=`eval echo '${'$as_ac_var'}'`
11847	       { echo "$as_me:$LINENO: result: $ac_res" >&5
11848echo "${ECHO_T}$ac_res" >&6; }
11849if test `eval echo '${'$as_ac_var'}'` = yes; then
11850  cat >>confdefs.h <<_ACEOF
11851#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11852_ACEOF
11853
11854fi
11855done
11856
11857
11858
11859
11860for ac_func in closedir opendir readdir
11861do
11862as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11863{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11864echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11865if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11866  echo $ECHO_N "(cached) $ECHO_C" >&6
11867else
11868  cat >conftest.$ac_ext <<_ACEOF
11869/* confdefs.h.  */
11870_ACEOF
11871cat confdefs.h >>conftest.$ac_ext
11872cat >>conftest.$ac_ext <<_ACEOF
11873/* end confdefs.h.  */
11874/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11875   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11876#define $ac_func innocuous_$ac_func
11877
11878/* System header to define __stub macros and hopefully few prototypes,
11879    which can conflict with char $ac_func (); below.
11880    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11881    <limits.h> exists even on freestanding compilers.  */
11882
11883#ifdef __STDC__
11884# include <limits.h>
11885#else
11886# include <assert.h>
11887#endif
11888
11889#undef $ac_func
11890
11891/* Override any GCC internal prototype to avoid an error.
11892   Use char because int might match the return type of a GCC
11893   builtin and then its argument prototype would still apply.  */
11894#ifdef __cplusplus
11895extern "C"
11896#endif
11897char $ac_func ();
11898/* The GNU C library defines this for functions which it implements
11899    to always fail with ENOSYS.  Some functions are actually named
11900    something starting with __ and the normal name is an alias.  */
11901#if defined __stub_$ac_func || defined __stub___$ac_func
11902choke me
11903#endif
11904
11905int
11906main ()
11907{
11908return $ac_func ();
11909  ;
11910  return 0;
11911}
11912_ACEOF
11913rm -f conftest.$ac_objext conftest$ac_exeext
11914if { (ac_try="$ac_link"
11915case "(($ac_try" in
11916  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11917  *) ac_try_echo=$ac_try;;
11918esac
11919eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11920  (eval "$ac_link") 2>conftest.er1
11921  ac_status=$?
11922  grep -v '^ *+' conftest.er1 >conftest.err
11923  rm -f conftest.er1
11924  cat conftest.err >&5
11925  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11926  (exit $ac_status); } &&
11927	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11928  { (case "(($ac_try" in
11929  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11930  *) ac_try_echo=$ac_try;;
11931esac
11932eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11933  (eval "$ac_try") 2>&5
11934  ac_status=$?
11935  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11936  (exit $ac_status); }; } &&
11937	 { ac_try='test -s conftest$ac_exeext'
11938  { (case "(($ac_try" in
11939  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11940  *) ac_try_echo=$ac_try;;
11941esac
11942eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11943  (eval "$ac_try") 2>&5
11944  ac_status=$?
11945  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11946  (exit $ac_status); }; }; then
11947  eval "$as_ac_var=yes"
11948else
11949  echo "$as_me: failed program was:" >&5
11950sed 's/^/| /' conftest.$ac_ext >&5
11951
11952	eval "$as_ac_var=no"
11953fi
11954
11955rm -f core conftest.err conftest.$ac_objext \
11956      conftest$ac_exeext conftest.$ac_ext
11957fi
11958ac_res=`eval echo '${'$as_ac_var'}'`
11959	       { echo "$as_me:$LINENO: result: $ac_res" >&5
11960echo "${ECHO_T}$ac_res" >&6; }
11961if test `eval echo '${'$as_ac_var'}'` = yes; then
11962  cat >>confdefs.h <<_ACEOF
11963#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11964_ACEOF
11965
11966fi
11967done
11968
11969
11970
11971{ echo "$as_me:$LINENO: checking tool compatibility" >&5
11972echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
11973
11974ICC=no
11975IXX=no
11976case $CC in
11977  icc*|icpc*)
11978    ICC=yes
11979    IXX=yes
11980    ;;
11981   *)
11982    ;;
11983esac
11984
11985if test "$GCC" != "yes" && test "$ICC" != "yes"
11986then
11987  { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
11988echo "$as_me: error: gcc|icc required but not found" >&2;}
11989   { (exit 1); exit 1; }; }
11990fi
11991
11992if test "$GXX" != "yes" && test "$IXX" != "yes"
11993then
11994  { { echo "$as_me:$LINENO: error: g++|clang++|icc required but not found" >&5
11995echo "$as_me: error: g++|clang++|icc required but not found" >&2;}
11996   { (exit 1); exit 1; }; }
11997fi
11998
11999if test "$GCC" = "yes"
12000then
12001  cat >conftest.$ac_ext <<_ACEOF
12002#if !defined(__GNUC__) || __GNUC__ < 3
12003#error Unsupported GCC version
12004#endif
12005
12006_ACEOF
12007rm -f conftest.$ac_objext
12008if { (ac_try="$ac_compile"
12009case "(($ac_try" in
12010  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12011  *) ac_try_echo=$ac_try;;
12012esac
12013eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12014  (eval "$ac_compile") 2>conftest.er1
12015  ac_status=$?
12016  grep -v '^ *+' conftest.er1 >conftest.err
12017  rm -f conftest.er1
12018  cat conftest.err >&5
12019  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12020  (exit $ac_status); } &&
12021	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12022  { (case "(($ac_try" in
12023  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12024  *) ac_try_echo=$ac_try;;
12025esac
12026eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12027  (eval "$ac_try") 2>&5
12028  ac_status=$?
12029  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12030  (exit $ac_status); }; } &&
12031	 { ac_try='test -s conftest.$ac_objext'
12032  { (case "(($ac_try" in
12033  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12034  *) ac_try_echo=$ac_try;;
12035esac
12036eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12037  (eval "$ac_try") 2>&5
12038  ac_status=$?
12039  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12040  (exit $ac_status); }; }; then
12041  :
12042else
12043  echo "$as_me: failed program was:" >&5
12044sed 's/^/| /' conftest.$ac_ext >&5
12045
12046	{ { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
12047echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
12048   { (exit 1); exit 1; }; }
12049fi
12050
12051rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12052fi
12053
12054if test -z "$llvm_cv_gnu_make_command"
12055then
12056  { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
12057echo "$as_me: error: GNU Make required but not found" >&2;}
12058   { (exit 1); exit 1; }; }
12059fi
12060
12061{ echo "$as_me:$LINENO: result: ok" >&5
12062echo "${ECHO_T}ok" >&6; }
12063
12064{ echo "$as_me:$LINENO: checking optional compiler flags" >&5
12065echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
12066NO_VARIADIC_MACROS=`$CXX -Werror -Wno-variadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
12067
12068NO_MISSING_FIELD_INITIALIZERS=`$CXX -Werror -Wno-missing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
12069
12070COVERED_SWITCH_DEFAULT=`$CXX -Werror -Wcovered-switch-default -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wcovered-switch-default`
12071
12072{ echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT" >&5
12073echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT" >&6; }
12074
12075
12076
12077{ echo "$as_me:$LINENO: checking for sin in -lm" >&5
12078echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
12079if test "${ac_cv_lib_m_sin+set}" = set; then
12080  echo $ECHO_N "(cached) $ECHO_C" >&6
12081else
12082  ac_check_lib_save_LIBS=$LIBS
12083LIBS="-lm  $LIBS"
12084cat >conftest.$ac_ext <<_ACEOF
12085/* confdefs.h.  */
12086_ACEOF
12087cat confdefs.h >>conftest.$ac_ext
12088cat >>conftest.$ac_ext <<_ACEOF
12089/* end confdefs.h.  */
12090
12091/* Override any GCC internal prototype to avoid an error.
12092   Use char because int might match the return type of a GCC
12093   builtin and then its argument prototype would still apply.  */
12094#ifdef __cplusplus
12095extern "C"
12096#endif
12097char sin ();
12098int
12099main ()
12100{
12101return sin ();
12102  ;
12103  return 0;
12104}
12105_ACEOF
12106rm -f conftest.$ac_objext conftest$ac_exeext
12107if { (ac_try="$ac_link"
12108case "(($ac_try" in
12109  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12110  *) ac_try_echo=$ac_try;;
12111esac
12112eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12113  (eval "$ac_link") 2>conftest.er1
12114  ac_status=$?
12115  grep -v '^ *+' conftest.er1 >conftest.err
12116  rm -f conftest.er1
12117  cat conftest.err >&5
12118  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12119  (exit $ac_status); } &&
12120	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12121  { (case "(($ac_try" in
12122  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12123  *) ac_try_echo=$ac_try;;
12124esac
12125eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12126  (eval "$ac_try") 2>&5
12127  ac_status=$?
12128  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12129  (exit $ac_status); }; } &&
12130	 { ac_try='test -s conftest$ac_exeext'
12131  { (case "(($ac_try" in
12132  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12133  *) ac_try_echo=$ac_try;;
12134esac
12135eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12136  (eval "$ac_try") 2>&5
12137  ac_status=$?
12138  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12139  (exit $ac_status); }; }; then
12140  ac_cv_lib_m_sin=yes
12141else
12142  echo "$as_me: failed program was:" >&5
12143sed 's/^/| /' conftest.$ac_ext >&5
12144
12145	ac_cv_lib_m_sin=no
12146fi
12147
12148rm -f core conftest.err conftest.$ac_objext \
12149      conftest$ac_exeext conftest.$ac_ext
12150LIBS=$ac_check_lib_save_LIBS
12151fi
12152{ echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
12153echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
12154if test $ac_cv_lib_m_sin = yes; then
12155  cat >>confdefs.h <<_ACEOF
12156#define HAVE_LIBM 1
12157_ACEOF
12158
12159  LIBS="-lm $LIBS"
12160
12161fi
12162
12163if test "$llvm_cv_os_type" = "MingW" ; then
12164
12165{ echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
12166echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
12167if test "${ac_cv_lib_imagehlp_main+set}" = set; then
12168  echo $ECHO_N "(cached) $ECHO_C" >&6
12169else
12170  ac_check_lib_save_LIBS=$LIBS
12171LIBS="-limagehlp  $LIBS"
12172cat >conftest.$ac_ext <<_ACEOF
12173/* confdefs.h.  */
12174_ACEOF
12175cat confdefs.h >>conftest.$ac_ext
12176cat >>conftest.$ac_ext <<_ACEOF
12177/* end confdefs.h.  */
12178
12179
12180int
12181main ()
12182{
12183return main ();
12184  ;
12185  return 0;
12186}
12187_ACEOF
12188rm -f conftest.$ac_objext conftest$ac_exeext
12189if { (ac_try="$ac_link"
12190case "(($ac_try" in
12191  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12192  *) ac_try_echo=$ac_try;;
12193esac
12194eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12195  (eval "$ac_link") 2>conftest.er1
12196  ac_status=$?
12197  grep -v '^ *+' conftest.er1 >conftest.err
12198  rm -f conftest.er1
12199  cat conftest.err >&5
12200  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12201  (exit $ac_status); } &&
12202	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12203  { (case "(($ac_try" in
12204  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12205  *) ac_try_echo=$ac_try;;
12206esac
12207eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12208  (eval "$ac_try") 2>&5
12209  ac_status=$?
12210  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12211  (exit $ac_status); }; } &&
12212	 { ac_try='test -s conftest$ac_exeext'
12213  { (case "(($ac_try" in
12214  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12215  *) ac_try_echo=$ac_try;;
12216esac
12217eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12218  (eval "$ac_try") 2>&5
12219  ac_status=$?
12220  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12221  (exit $ac_status); }; }; then
12222  ac_cv_lib_imagehlp_main=yes
12223else
12224  echo "$as_me: failed program was:" >&5
12225sed 's/^/| /' conftest.$ac_ext >&5
12226
12227	ac_cv_lib_imagehlp_main=no
12228fi
12229
12230rm -f core conftest.err conftest.$ac_objext \
12231      conftest$ac_exeext conftest.$ac_ext
12232LIBS=$ac_check_lib_save_LIBS
12233fi
12234{ echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
12235echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
12236if test $ac_cv_lib_imagehlp_main = yes; then
12237  cat >>confdefs.h <<_ACEOF
12238#define HAVE_LIBIMAGEHLP 1
12239_ACEOF
12240
12241  LIBS="-limagehlp $LIBS"
12242
12243fi
12244
12245
12246{ echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
12247echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
12248if test "${ac_cv_lib_psapi_main+set}" = set; then
12249  echo $ECHO_N "(cached) $ECHO_C" >&6
12250else
12251  ac_check_lib_save_LIBS=$LIBS
12252LIBS="-lpsapi  $LIBS"
12253cat >conftest.$ac_ext <<_ACEOF
12254/* confdefs.h.  */
12255_ACEOF
12256cat confdefs.h >>conftest.$ac_ext
12257cat >>conftest.$ac_ext <<_ACEOF
12258/* end confdefs.h.  */
12259
12260
12261int
12262main ()
12263{
12264return main ();
12265  ;
12266  return 0;
12267}
12268_ACEOF
12269rm -f conftest.$ac_objext conftest$ac_exeext
12270if { (ac_try="$ac_link"
12271case "(($ac_try" in
12272  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12273  *) ac_try_echo=$ac_try;;
12274esac
12275eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12276  (eval "$ac_link") 2>conftest.er1
12277  ac_status=$?
12278  grep -v '^ *+' conftest.er1 >conftest.err
12279  rm -f conftest.er1
12280  cat conftest.err >&5
12281  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12282  (exit $ac_status); } &&
12283	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12284  { (case "(($ac_try" in
12285  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12286  *) ac_try_echo=$ac_try;;
12287esac
12288eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12289  (eval "$ac_try") 2>&5
12290  ac_status=$?
12291  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12292  (exit $ac_status); }; } &&
12293	 { ac_try='test -s conftest$ac_exeext'
12294  { (case "(($ac_try" in
12295  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12296  *) ac_try_echo=$ac_try;;
12297esac
12298eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12299  (eval "$ac_try") 2>&5
12300  ac_status=$?
12301  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12302  (exit $ac_status); }; }; then
12303  ac_cv_lib_psapi_main=yes
12304else
12305  echo "$as_me: failed program was:" >&5
12306sed 's/^/| /' conftest.$ac_ext >&5
12307
12308	ac_cv_lib_psapi_main=no
12309fi
12310
12311rm -f core conftest.err conftest.$ac_objext \
12312      conftest$ac_exeext conftest.$ac_ext
12313LIBS=$ac_check_lib_save_LIBS
12314fi
12315{ echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
12316echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
12317if test $ac_cv_lib_psapi_main = yes; then
12318  cat >>confdefs.h <<_ACEOF
12319#define HAVE_LIBPSAPI 1
12320_ACEOF
12321
12322  LIBS="-lpsapi $LIBS"
12323
12324fi
12325
12326fi
12327
12328{ echo "$as_me:$LINENO: checking for library containing dlopen" >&5
12329echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
12330if test "${ac_cv_search_dlopen+set}" = set; then
12331  echo $ECHO_N "(cached) $ECHO_C" >&6
12332else
12333  ac_func_search_save_LIBS=$LIBS
12334cat >conftest.$ac_ext <<_ACEOF
12335/* confdefs.h.  */
12336_ACEOF
12337cat confdefs.h >>conftest.$ac_ext
12338cat >>conftest.$ac_ext <<_ACEOF
12339/* end confdefs.h.  */
12340
12341/* Override any GCC internal prototype to avoid an error.
12342   Use char because int might match the return type of a GCC
12343   builtin and then its argument prototype would still apply.  */
12344#ifdef __cplusplus
12345extern "C"
12346#endif
12347char dlopen ();
12348int
12349main ()
12350{
12351return dlopen ();
12352  ;
12353  return 0;
12354}
12355_ACEOF
12356for ac_lib in '' dl; do
12357  if test -z "$ac_lib"; then
12358    ac_res="none required"
12359  else
12360    ac_res=-l$ac_lib
12361    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12362  fi
12363  rm -f conftest.$ac_objext conftest$ac_exeext
12364if { (ac_try="$ac_link"
12365case "(($ac_try" in
12366  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12367  *) ac_try_echo=$ac_try;;
12368esac
12369eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12370  (eval "$ac_link") 2>conftest.er1
12371  ac_status=$?
12372  grep -v '^ *+' conftest.er1 >conftest.err
12373  rm -f conftest.er1
12374  cat conftest.err >&5
12375  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12376  (exit $ac_status); } &&
12377	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12378  { (case "(($ac_try" in
12379  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12380  *) ac_try_echo=$ac_try;;
12381esac
12382eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12383  (eval "$ac_try") 2>&5
12384  ac_status=$?
12385  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12386  (exit $ac_status); }; } &&
12387	 { ac_try='test -s conftest$ac_exeext'
12388  { (case "(($ac_try" in
12389  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12390  *) ac_try_echo=$ac_try;;
12391esac
12392eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12393  (eval "$ac_try") 2>&5
12394  ac_status=$?
12395  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12396  (exit $ac_status); }; }; then
12397  ac_cv_search_dlopen=$ac_res
12398else
12399  echo "$as_me: failed program was:" >&5
12400sed 's/^/| /' conftest.$ac_ext >&5
12401
12402
12403fi
12404
12405rm -f core conftest.err conftest.$ac_objext \
12406      conftest$ac_exeext
12407  if test "${ac_cv_search_dlopen+set}" = set; then
12408  break
12409fi
12410done
12411if test "${ac_cv_search_dlopen+set}" = set; then
12412  :
12413else
12414  ac_cv_search_dlopen=no
12415fi
12416rm conftest.$ac_ext
12417LIBS=$ac_func_search_save_LIBS
12418fi
12419{ echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
12420echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
12421ac_res=$ac_cv_search_dlopen
12422if test "$ac_res" != no; then
12423  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12424
12425cat >>confdefs.h <<\_ACEOF
12426#define HAVE_DLOPEN 1
12427_ACEOF
12428
12429else
12430  { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
12431echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
12432fi
12433
12434
12435if test "$llvm_cv_enable_libffi" = "yes" ; then
12436  { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
12437echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
12438if test "${ac_cv_search_ffi_call+set}" = set; then
12439  echo $ECHO_N "(cached) $ECHO_C" >&6
12440else
12441  ac_func_search_save_LIBS=$LIBS
12442cat >conftest.$ac_ext <<_ACEOF
12443/* confdefs.h.  */
12444_ACEOF
12445cat confdefs.h >>conftest.$ac_ext
12446cat >>conftest.$ac_ext <<_ACEOF
12447/* end confdefs.h.  */
12448
12449/* Override any GCC internal prototype to avoid an error.
12450   Use char because int might match the return type of a GCC
12451   builtin and then its argument prototype would still apply.  */
12452#ifdef __cplusplus
12453extern "C"
12454#endif
12455char ffi_call ();
12456int
12457main ()
12458{
12459return ffi_call ();
12460  ;
12461  return 0;
12462}
12463_ACEOF
12464for ac_lib in '' ffi; do
12465  if test -z "$ac_lib"; then
12466    ac_res="none required"
12467  else
12468    ac_res=-l$ac_lib
12469    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12470  fi
12471  rm -f conftest.$ac_objext conftest$ac_exeext
12472if { (ac_try="$ac_link"
12473case "(($ac_try" in
12474  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12475  *) ac_try_echo=$ac_try;;
12476esac
12477eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12478  (eval "$ac_link") 2>conftest.er1
12479  ac_status=$?
12480  grep -v '^ *+' conftest.er1 >conftest.err
12481  rm -f conftest.er1
12482  cat conftest.err >&5
12483  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12484  (exit $ac_status); } &&
12485	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12486  { (case "(($ac_try" in
12487  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12488  *) ac_try_echo=$ac_try;;
12489esac
12490eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12491  (eval "$ac_try") 2>&5
12492  ac_status=$?
12493  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12494  (exit $ac_status); }; } &&
12495	 { ac_try='test -s conftest$ac_exeext'
12496  { (case "(($ac_try" in
12497  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12498  *) ac_try_echo=$ac_try;;
12499esac
12500eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12501  (eval "$ac_try") 2>&5
12502  ac_status=$?
12503  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12504  (exit $ac_status); }; }; then
12505  ac_cv_search_ffi_call=$ac_res
12506else
12507  echo "$as_me: failed program was:" >&5
12508sed 's/^/| /' conftest.$ac_ext >&5
12509
12510
12511fi
12512
12513rm -f core conftest.err conftest.$ac_objext \
12514      conftest$ac_exeext
12515  if test "${ac_cv_search_ffi_call+set}" = set; then
12516  break
12517fi
12518done
12519if test "${ac_cv_search_ffi_call+set}" = set; then
12520  :
12521else
12522  ac_cv_search_ffi_call=no
12523fi
12524rm conftest.$ac_ext
12525LIBS=$ac_func_search_save_LIBS
12526fi
12527{ echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
12528echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
12529ac_res=$ac_cv_search_ffi_call
12530if test "$ac_res" != no; then
12531  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12532
12533cat >>confdefs.h <<\_ACEOF
12534#define HAVE_FFI_CALL 1
12535_ACEOF
12536
12537else
12538  { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5
12539echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;}
12540   { (exit 1); exit 1; }; }
12541fi
12542
12543fi
12544
12545{ echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
12546echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
12547if test "${ac_cv_search_mallinfo+set}" = set; then
12548  echo $ECHO_N "(cached) $ECHO_C" >&6
12549else
12550  ac_func_search_save_LIBS=$LIBS
12551cat >conftest.$ac_ext <<_ACEOF
12552/* confdefs.h.  */
12553_ACEOF
12554cat confdefs.h >>conftest.$ac_ext
12555cat >>conftest.$ac_ext <<_ACEOF
12556/* end confdefs.h.  */
12557
12558/* Override any GCC internal prototype to avoid an error.
12559   Use char because int might match the return type of a GCC
12560   builtin and then its argument prototype would still apply.  */
12561#ifdef __cplusplus
12562extern "C"
12563#endif
12564char mallinfo ();
12565int
12566main ()
12567{
12568return mallinfo ();
12569  ;
12570  return 0;
12571}
12572_ACEOF
12573for ac_lib in '' malloc; do
12574  if test -z "$ac_lib"; then
12575    ac_res="none required"
12576  else
12577    ac_res=-l$ac_lib
12578    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12579  fi
12580  rm -f conftest.$ac_objext conftest$ac_exeext
12581if { (ac_try="$ac_link"
12582case "(($ac_try" in
12583  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12584  *) ac_try_echo=$ac_try;;
12585esac
12586eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12587  (eval "$ac_link") 2>conftest.er1
12588  ac_status=$?
12589  grep -v '^ *+' conftest.er1 >conftest.err
12590  rm -f conftest.er1
12591  cat conftest.err >&5
12592  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12593  (exit $ac_status); } &&
12594	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12595  { (case "(($ac_try" in
12596  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12597  *) ac_try_echo=$ac_try;;
12598esac
12599eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12600  (eval "$ac_try") 2>&5
12601  ac_status=$?
12602  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12603  (exit $ac_status); }; } &&
12604	 { ac_try='test -s conftest$ac_exeext'
12605  { (case "(($ac_try" in
12606  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12607  *) ac_try_echo=$ac_try;;
12608esac
12609eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12610  (eval "$ac_try") 2>&5
12611  ac_status=$?
12612  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12613  (exit $ac_status); }; }; then
12614  ac_cv_search_mallinfo=$ac_res
12615else
12616  echo "$as_me: failed program was:" >&5
12617sed 's/^/| /' conftest.$ac_ext >&5
12618
12619
12620fi
12621
12622rm -f core conftest.err conftest.$ac_objext \
12623      conftest$ac_exeext
12624  if test "${ac_cv_search_mallinfo+set}" = set; then
12625  break
12626fi
12627done
12628if test "${ac_cv_search_mallinfo+set}" = set; then
12629  :
12630else
12631  ac_cv_search_mallinfo=no
12632fi
12633rm conftest.$ac_ext
12634LIBS=$ac_func_search_save_LIBS
12635fi
12636{ echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
12637echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
12638ac_res=$ac_cv_search_mallinfo
12639if test "$ac_res" != no; then
12640  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12641
12642cat >>confdefs.h <<\_ACEOF
12643#define HAVE_MALLINFO 1
12644_ACEOF
12645
12646fi
12647
12648
12649if test "$ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
12650
12651{ echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
12652echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
12653if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
12654  echo $ECHO_N "(cached) $ECHO_C" >&6
12655else
12656  ac_check_lib_save_LIBS=$LIBS
12657LIBS="-lpthread  $LIBS"
12658cat >conftest.$ac_ext <<_ACEOF
12659/* confdefs.h.  */
12660_ACEOF
12661cat confdefs.h >>conftest.$ac_ext
12662cat >>conftest.$ac_ext <<_ACEOF
12663/* end confdefs.h.  */
12664
12665/* Override any GCC internal prototype to avoid an error.
12666   Use char because int might match the return type of a GCC
12667   builtin and then its argument prototype would still apply.  */
12668#ifdef __cplusplus
12669extern "C"
12670#endif
12671char pthread_mutex_init ();
12672int
12673main ()
12674{
12675return pthread_mutex_init ();
12676  ;
12677  return 0;
12678}
12679_ACEOF
12680rm -f conftest.$ac_objext conftest$ac_exeext
12681if { (ac_try="$ac_link"
12682case "(($ac_try" in
12683  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12684  *) ac_try_echo=$ac_try;;
12685esac
12686eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12687  (eval "$ac_link") 2>conftest.er1
12688  ac_status=$?
12689  grep -v '^ *+' conftest.er1 >conftest.err
12690  rm -f conftest.er1
12691  cat conftest.err >&5
12692  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12693  (exit $ac_status); } &&
12694	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12695  { (case "(($ac_try" in
12696  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12697  *) ac_try_echo=$ac_try;;
12698esac
12699eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12700  (eval "$ac_try") 2>&5
12701  ac_status=$?
12702  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12703  (exit $ac_status); }; } &&
12704	 { ac_try='test -s conftest$ac_exeext'
12705  { (case "(($ac_try" in
12706  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12707  *) ac_try_echo=$ac_try;;
12708esac
12709eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12710  (eval "$ac_try") 2>&5
12711  ac_status=$?
12712  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12713  (exit $ac_status); }; }; then
12714  ac_cv_lib_pthread_pthread_mutex_init=yes
12715else
12716  echo "$as_me: failed program was:" >&5
12717sed 's/^/| /' conftest.$ac_ext >&5
12718
12719	ac_cv_lib_pthread_pthread_mutex_init=no
12720fi
12721
12722rm -f core conftest.err conftest.$ac_objext \
12723      conftest$ac_exeext conftest.$ac_ext
12724LIBS=$ac_check_lib_save_LIBS
12725fi
12726{ echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
12727echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
12728if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
12729  cat >>confdefs.h <<_ACEOF
12730#define HAVE_LIBPTHREAD 1
12731_ACEOF
12732
12733  LIBS="-lpthread $LIBS"
12734
12735fi
12736
12737  { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
12738echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
12739if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12740  echo $ECHO_N "(cached) $ECHO_C" >&6
12741else
12742  ac_func_search_save_LIBS=$LIBS
12743cat >conftest.$ac_ext <<_ACEOF
12744/* confdefs.h.  */
12745_ACEOF
12746cat confdefs.h >>conftest.$ac_ext
12747cat >>conftest.$ac_ext <<_ACEOF
12748/* end confdefs.h.  */
12749
12750/* Override any GCC internal prototype to avoid an error.
12751   Use char because int might match the return type of a GCC
12752   builtin and then its argument prototype would still apply.  */
12753#ifdef __cplusplus
12754extern "C"
12755#endif
12756char pthread_mutex_lock ();
12757int
12758main ()
12759{
12760return pthread_mutex_lock ();
12761  ;
12762  return 0;
12763}
12764_ACEOF
12765for ac_lib in '' pthread; do
12766  if test -z "$ac_lib"; then
12767    ac_res="none required"
12768  else
12769    ac_res=-l$ac_lib
12770    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12771  fi
12772  rm -f conftest.$ac_objext conftest$ac_exeext
12773if { (ac_try="$ac_link"
12774case "(($ac_try" in
12775  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12776  *) ac_try_echo=$ac_try;;
12777esac
12778eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12779  (eval "$ac_link") 2>conftest.er1
12780  ac_status=$?
12781  grep -v '^ *+' conftest.er1 >conftest.err
12782  rm -f conftest.er1
12783  cat conftest.err >&5
12784  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12785  (exit $ac_status); } &&
12786	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12787  { (case "(($ac_try" in
12788  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12789  *) ac_try_echo=$ac_try;;
12790esac
12791eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12792  (eval "$ac_try") 2>&5
12793  ac_status=$?
12794  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12795  (exit $ac_status); }; } &&
12796	 { ac_try='test -s conftest$ac_exeext'
12797  { (case "(($ac_try" in
12798  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12799  *) ac_try_echo=$ac_try;;
12800esac
12801eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12802  (eval "$ac_try") 2>&5
12803  ac_status=$?
12804  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12805  (exit $ac_status); }; }; then
12806  ac_cv_search_pthread_mutex_lock=$ac_res
12807else
12808  echo "$as_me: failed program was:" >&5
12809sed 's/^/| /' conftest.$ac_ext >&5
12810
12811
12812fi
12813
12814rm -f core conftest.err conftest.$ac_objext \
12815      conftest$ac_exeext
12816  if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12817  break
12818fi
12819done
12820if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12821  :
12822else
12823  ac_cv_search_pthread_mutex_lock=no
12824fi
12825rm conftest.$ac_ext
12826LIBS=$ac_func_search_save_LIBS
12827fi
12828{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
12829echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
12830ac_res=$ac_cv_search_pthread_mutex_lock
12831if test "$ac_res" != no; then
12832  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12833
12834cat >>confdefs.h <<\_ACEOF
12835#define HAVE_PTHREAD_MUTEX_LOCK 1
12836_ACEOF
12837
12838fi
12839
12840  { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
12841echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
12842if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
12843  echo $ECHO_N "(cached) $ECHO_C" >&6
12844else
12845  ac_func_search_save_LIBS=$LIBS
12846cat >conftest.$ac_ext <<_ACEOF
12847/* confdefs.h.  */
12848_ACEOF
12849cat confdefs.h >>conftest.$ac_ext
12850cat >>conftest.$ac_ext <<_ACEOF
12851/* end confdefs.h.  */
12852
12853/* Override any GCC internal prototype to avoid an error.
12854   Use char because int might match the return type of a GCC
12855   builtin and then its argument prototype would still apply.  */
12856#ifdef __cplusplus
12857extern "C"
12858#endif
12859char pthread_rwlock_init ();
12860int
12861main ()
12862{
12863return pthread_rwlock_init ();
12864  ;
12865  return 0;
12866}
12867_ACEOF
12868for ac_lib in '' pthread; do
12869  if test -z "$ac_lib"; then
12870    ac_res="none required"
12871  else
12872    ac_res=-l$ac_lib
12873    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12874  fi
12875  rm -f conftest.$ac_objext conftest$ac_exeext
12876if { (ac_try="$ac_link"
12877case "(($ac_try" in
12878  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12879  *) ac_try_echo=$ac_try;;
12880esac
12881eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12882  (eval "$ac_link") 2>conftest.er1
12883  ac_status=$?
12884  grep -v '^ *+' conftest.er1 >conftest.err
12885  rm -f conftest.er1
12886  cat conftest.err >&5
12887  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12888  (exit $ac_status); } &&
12889	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12890  { (case "(($ac_try" in
12891  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12892  *) ac_try_echo=$ac_try;;
12893esac
12894eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12895  (eval "$ac_try") 2>&5
12896  ac_status=$?
12897  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12898  (exit $ac_status); }; } &&
12899	 { ac_try='test -s conftest$ac_exeext'
12900  { (case "(($ac_try" in
12901  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12902  *) ac_try_echo=$ac_try;;
12903esac
12904eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12905  (eval "$ac_try") 2>&5
12906  ac_status=$?
12907  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12908  (exit $ac_status); }; }; then
12909  ac_cv_search_pthread_rwlock_init=$ac_res
12910else
12911  echo "$as_me: failed program was:" >&5
12912sed 's/^/| /' conftest.$ac_ext >&5
12913
12914
12915fi
12916
12917rm -f core conftest.err conftest.$ac_objext \
12918      conftest$ac_exeext
12919  if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
12920  break
12921fi
12922done
12923if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
12924  :
12925else
12926  ac_cv_search_pthread_rwlock_init=no
12927fi
12928rm conftest.$ac_ext
12929LIBS=$ac_func_search_save_LIBS
12930fi
12931{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
12932echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
12933ac_res=$ac_cv_search_pthread_rwlock_init
12934if test "$ac_res" != no; then
12935  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12936
12937cat >>confdefs.h <<\_ACEOF
12938#define HAVE_PTHREAD_RWLOCK_INIT 1
12939_ACEOF
12940
12941fi
12942
12943  { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
12944echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
12945if test "${ac_cv_search_pthread_getspecific+set}" = set; then
12946  echo $ECHO_N "(cached) $ECHO_C" >&6
12947else
12948  ac_func_search_save_LIBS=$LIBS
12949cat >conftest.$ac_ext <<_ACEOF
12950/* confdefs.h.  */
12951_ACEOF
12952cat confdefs.h >>conftest.$ac_ext
12953cat >>conftest.$ac_ext <<_ACEOF
12954/* end confdefs.h.  */
12955
12956/* Override any GCC internal prototype to avoid an error.
12957   Use char because int might match the return type of a GCC
12958   builtin and then its argument prototype would still apply.  */
12959#ifdef __cplusplus
12960extern "C"
12961#endif
12962char pthread_getspecific ();
12963int
12964main ()
12965{
12966return pthread_getspecific ();
12967  ;
12968  return 0;
12969}
12970_ACEOF
12971for ac_lib in '' pthread; do
12972  if test -z "$ac_lib"; then
12973    ac_res="none required"
12974  else
12975    ac_res=-l$ac_lib
12976    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12977  fi
12978  rm -f conftest.$ac_objext conftest$ac_exeext
12979if { (ac_try="$ac_link"
12980case "(($ac_try" in
12981  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12982  *) ac_try_echo=$ac_try;;
12983esac
12984eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12985  (eval "$ac_link") 2>conftest.er1
12986  ac_status=$?
12987  grep -v '^ *+' conftest.er1 >conftest.err
12988  rm -f conftest.er1
12989  cat conftest.err >&5
12990  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12991  (exit $ac_status); } &&
12992	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12993  { (case "(($ac_try" in
12994  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12995  *) ac_try_echo=$ac_try;;
12996esac
12997eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12998  (eval "$ac_try") 2>&5
12999  ac_status=$?
13000  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13001  (exit $ac_status); }; } &&
13002	 { ac_try='test -s conftest$ac_exeext'
13003  { (case "(($ac_try" in
13004  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13005  *) ac_try_echo=$ac_try;;
13006esac
13007eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13008  (eval "$ac_try") 2>&5
13009  ac_status=$?
13010  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13011  (exit $ac_status); }; }; then
13012  ac_cv_search_pthread_getspecific=$ac_res
13013else
13014  echo "$as_me: failed program was:" >&5
13015sed 's/^/| /' conftest.$ac_ext >&5
13016
13017
13018fi
13019
13020rm -f core conftest.err conftest.$ac_objext \
13021      conftest$ac_exeext
13022  if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13023  break
13024fi
13025done
13026if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13027  :
13028else
13029  ac_cv_search_pthread_getspecific=no
13030fi
13031rm conftest.$ac_ext
13032LIBS=$ac_func_search_save_LIBS
13033fi
13034{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
13035echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
13036ac_res=$ac_cv_search_pthread_getspecific
13037if test "$ac_res" != no; then
13038  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13039
13040cat >>confdefs.h <<\_ACEOF
13041#define HAVE_PTHREAD_GETSPECIFIC 1
13042_ACEOF
13043
13044fi
13045
13046fi
13047
13048
13049# Check whether --with-udis86 was given.
13050if test "${with_udis86+set}" = set; then
13051  withval=$with_udis86;
13052      USE_UDIS86=1
13053
13054      case "$withval" in
13055        /usr/lib|yes) ;;
13056        *) LDFLAGS="$LDFLAGS -L${withval}" ;;
13057      esac
13058
13059{ echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
13060echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
13061if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
13062  echo $ECHO_N "(cached) $ECHO_C" >&6
13063else
13064  ac_check_lib_save_LIBS=$LIBS
13065LIBS="-ludis86  $LIBS"
13066cat >conftest.$ac_ext <<_ACEOF
13067/* confdefs.h.  */
13068_ACEOF
13069cat confdefs.h >>conftest.$ac_ext
13070cat >>conftest.$ac_ext <<_ACEOF
13071/* end confdefs.h.  */
13072
13073/* Override any GCC internal prototype to avoid an error.
13074   Use char because int might match the return type of a GCC
13075   builtin and then its argument prototype would still apply.  */
13076#ifdef __cplusplus
13077extern "C"
13078#endif
13079char ud_init ();
13080int
13081main ()
13082{
13083return ud_init ();
13084  ;
13085  return 0;
13086}
13087_ACEOF
13088rm -f conftest.$ac_objext conftest$ac_exeext
13089if { (ac_try="$ac_link"
13090case "(($ac_try" in
13091  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13092  *) ac_try_echo=$ac_try;;
13093esac
13094eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13095  (eval "$ac_link") 2>conftest.er1
13096  ac_status=$?
13097  grep -v '^ *+' conftest.er1 >conftest.err
13098  rm -f conftest.er1
13099  cat conftest.err >&5
13100  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13101  (exit $ac_status); } &&
13102	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13103  { (case "(($ac_try" in
13104  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13105  *) ac_try_echo=$ac_try;;
13106esac
13107eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13108  (eval "$ac_try") 2>&5
13109  ac_status=$?
13110  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13111  (exit $ac_status); }; } &&
13112	 { ac_try='test -s conftest$ac_exeext'
13113  { (case "(($ac_try" in
13114  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13115  *) ac_try_echo=$ac_try;;
13116esac
13117eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13118  (eval "$ac_try") 2>&5
13119  ac_status=$?
13120  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13121  (exit $ac_status); }; }; then
13122  ac_cv_lib_udis86_ud_init=yes
13123else
13124  echo "$as_me: failed program was:" >&5
13125sed 's/^/| /' conftest.$ac_ext >&5
13126
13127	ac_cv_lib_udis86_ud_init=no
13128fi
13129
13130rm -f core conftest.err conftest.$ac_objext \
13131      conftest$ac_exeext conftest.$ac_ext
13132LIBS=$ac_check_lib_save_LIBS
13133fi
13134{ echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
13135echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
13136if test $ac_cv_lib_udis86_ud_init = yes; then
13137  cat >>confdefs.h <<_ACEOF
13138#define HAVE_LIBUDIS86 1
13139_ACEOF
13140
13141  LIBS="-ludis86 $LIBS"
13142
13143else
13144
13145        echo "Error! You need to have libudis86 around."
13146        exit -1
13147
13148fi
13149
13150
13151else
13152  USE_UDIS86=0
13153
13154fi
13155
13156
13157cat >>confdefs.h <<_ACEOF
13158#define USE_UDIS86 $USE_UDIS86
13159_ACEOF
13160
13161
13162
13163# Check whether --with-oprofile was given.
13164if test "${with_oprofile+set}" = set; then
13165  withval=$with_oprofile;
13166      USE_OPROFILE=1
13167
13168      case "$withval" in
13169        /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
13170        no) llvm_cv_oppath=
13171            USE_OPROFILE=0
13172 ;;
13173        *) llvm_cv_oppath="${withval}/lib/oprofile"
13174           CPPFLAGS="-I${withval}/include";;
13175      esac
13176      if test -n "$llvm_cv_oppath" ; then
13177        LIBS="$LIBS -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
13178                                        { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
13179echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
13180if test "${ac_cv_search_bfd_init+set}" = set; then
13181  echo $ECHO_N "(cached) $ECHO_C" >&6
13182else
13183  ac_func_search_save_LIBS=$LIBS
13184cat >conftest.$ac_ext <<_ACEOF
13185/* confdefs.h.  */
13186_ACEOF
13187cat confdefs.h >>conftest.$ac_ext
13188cat >>conftest.$ac_ext <<_ACEOF
13189/* end confdefs.h.  */
13190
13191/* Override any GCC internal prototype to avoid an error.
13192   Use char because int might match the return type of a GCC
13193   builtin and then its argument prototype would still apply.  */
13194#ifdef __cplusplus
13195extern "C"
13196#endif
13197char bfd_init ();
13198int
13199main ()
13200{
13201return bfd_init ();
13202  ;
13203  return 0;
13204}
13205_ACEOF
13206for ac_lib in '' bfd; do
13207  if test -z "$ac_lib"; then
13208    ac_res="none required"
13209  else
13210    ac_res=-l$ac_lib
13211    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13212  fi
13213  rm -f conftest.$ac_objext conftest$ac_exeext
13214if { (ac_try="$ac_link"
13215case "(($ac_try" in
13216  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13217  *) ac_try_echo=$ac_try;;
13218esac
13219eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13220  (eval "$ac_link") 2>conftest.er1
13221  ac_status=$?
13222  grep -v '^ *+' conftest.er1 >conftest.err
13223  rm -f conftest.er1
13224  cat conftest.err >&5
13225  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13226  (exit $ac_status); } &&
13227	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13228  { (case "(($ac_try" in
13229  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13230  *) ac_try_echo=$ac_try;;
13231esac
13232eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13233  (eval "$ac_try") 2>&5
13234  ac_status=$?
13235  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13236  (exit $ac_status); }; } &&
13237	 { ac_try='test -s conftest$ac_exeext'
13238  { (case "(($ac_try" in
13239  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13240  *) ac_try_echo=$ac_try;;
13241esac
13242eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13243  (eval "$ac_try") 2>&5
13244  ac_status=$?
13245  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13246  (exit $ac_status); }; }; then
13247  ac_cv_search_bfd_init=$ac_res
13248else
13249  echo "$as_me: failed program was:" >&5
13250sed 's/^/| /' conftest.$ac_ext >&5
13251
13252
13253fi
13254
13255rm -f core conftest.err conftest.$ac_objext \
13256      conftest$ac_exeext
13257  if test "${ac_cv_search_bfd_init+set}" = set; then
13258  break
13259fi
13260done
13261if test "${ac_cv_search_bfd_init+set}" = set; then
13262  :
13263else
13264  ac_cv_search_bfd_init=no
13265fi
13266rm conftest.$ac_ext
13267LIBS=$ac_func_search_save_LIBS
13268fi
13269{ echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
13270echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
13271ac_res=$ac_cv_search_bfd_init
13272if test "$ac_res" != no; then
13273  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13274
13275fi
13276
13277        { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
13278echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
13279if test "${ac_cv_search_op_open_agent+set}" = set; then
13280  echo $ECHO_N "(cached) $ECHO_C" >&6
13281else
13282  ac_func_search_save_LIBS=$LIBS
13283cat >conftest.$ac_ext <<_ACEOF
13284/* confdefs.h.  */
13285_ACEOF
13286cat confdefs.h >>conftest.$ac_ext
13287cat >>conftest.$ac_ext <<_ACEOF
13288/* end confdefs.h.  */
13289
13290/* Override any GCC internal prototype to avoid an error.
13291   Use char because int might match the return type of a GCC
13292   builtin and then its argument prototype would still apply.  */
13293#ifdef __cplusplus
13294extern "C"
13295#endif
13296char op_open_agent ();
13297int
13298main ()
13299{
13300return op_open_agent ();
13301  ;
13302  return 0;
13303}
13304_ACEOF
13305for ac_lib in '' opagent; do
13306  if test -z "$ac_lib"; then
13307    ac_res="none required"
13308  else
13309    ac_res=-l$ac_lib
13310    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13311  fi
13312  rm -f conftest.$ac_objext conftest$ac_exeext
13313if { (ac_try="$ac_link"
13314case "(($ac_try" in
13315  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13316  *) ac_try_echo=$ac_try;;
13317esac
13318eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13319  (eval "$ac_link") 2>conftest.er1
13320  ac_status=$?
13321  grep -v '^ *+' conftest.er1 >conftest.err
13322  rm -f conftest.er1
13323  cat conftest.err >&5
13324  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13325  (exit $ac_status); } &&
13326	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13327  { (case "(($ac_try" in
13328  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13329  *) ac_try_echo=$ac_try;;
13330esac
13331eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13332  (eval "$ac_try") 2>&5
13333  ac_status=$?
13334  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13335  (exit $ac_status); }; } &&
13336	 { ac_try='test -s conftest$ac_exeext'
13337  { (case "(($ac_try" in
13338  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13339  *) ac_try_echo=$ac_try;;
13340esac
13341eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13342  (eval "$ac_try") 2>&5
13343  ac_status=$?
13344  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13345  (exit $ac_status); }; }; then
13346  ac_cv_search_op_open_agent=$ac_res
13347else
13348  echo "$as_me: failed program was:" >&5
13349sed 's/^/| /' conftest.$ac_ext >&5
13350
13351
13352fi
13353
13354rm -f core conftest.err conftest.$ac_objext \
13355      conftest$ac_exeext
13356  if test "${ac_cv_search_op_open_agent+set}" = set; then
13357  break
13358fi
13359done
13360if test "${ac_cv_search_op_open_agent+set}" = set; then
13361  :
13362else
13363  ac_cv_search_op_open_agent=no
13364fi
13365rm conftest.$ac_ext
13366LIBS=$ac_func_search_save_LIBS
13367fi
13368{ echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
13369echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
13370ac_res=$ac_cv_search_op_open_agent
13371if test "$ac_res" != no; then
13372  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13373
13374else
13375
13376          echo "Error! You need to have libopagent around."
13377          exit -1
13378
13379fi
13380
13381        if test "${ac_cv_header_opagent_h+set}" = set; then
13382  { echo "$as_me:$LINENO: checking for opagent.h" >&5
13383echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13384if test "${ac_cv_header_opagent_h+set}" = set; then
13385  echo $ECHO_N "(cached) $ECHO_C" >&6
13386fi
13387{ echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13388echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13389else
13390  # Is the header compilable?
13391{ echo "$as_me:$LINENO: checking opagent.h usability" >&5
13392echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
13393cat >conftest.$ac_ext <<_ACEOF
13394/* confdefs.h.  */
13395_ACEOF
13396cat confdefs.h >>conftest.$ac_ext
13397cat >>conftest.$ac_ext <<_ACEOF
13398/* end confdefs.h.  */
13399$ac_includes_default
13400#include <opagent.h>
13401_ACEOF
13402rm -f conftest.$ac_objext
13403if { (ac_try="$ac_compile"
13404case "(($ac_try" in
13405  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13406  *) ac_try_echo=$ac_try;;
13407esac
13408eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13409  (eval "$ac_compile") 2>conftest.er1
13410  ac_status=$?
13411  grep -v '^ *+' conftest.er1 >conftest.err
13412  rm -f conftest.er1
13413  cat conftest.err >&5
13414  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13415  (exit $ac_status); } &&
13416	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13417  { (case "(($ac_try" in
13418  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13419  *) ac_try_echo=$ac_try;;
13420esac
13421eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13422  (eval "$ac_try") 2>&5
13423  ac_status=$?
13424  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13425  (exit $ac_status); }; } &&
13426	 { ac_try='test -s conftest.$ac_objext'
13427  { (case "(($ac_try" in
13428  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13429  *) ac_try_echo=$ac_try;;
13430esac
13431eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13432  (eval "$ac_try") 2>&5
13433  ac_status=$?
13434  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13435  (exit $ac_status); }; }; then
13436  ac_header_compiler=yes
13437else
13438  echo "$as_me: failed program was:" >&5
13439sed 's/^/| /' conftest.$ac_ext >&5
13440
13441	ac_header_compiler=no
13442fi
13443
13444rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13445{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13446echo "${ECHO_T}$ac_header_compiler" >&6; }
13447
13448# Is the header present?
13449{ echo "$as_me:$LINENO: checking opagent.h presence" >&5
13450echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
13451cat >conftest.$ac_ext <<_ACEOF
13452/* confdefs.h.  */
13453_ACEOF
13454cat confdefs.h >>conftest.$ac_ext
13455cat >>conftest.$ac_ext <<_ACEOF
13456/* end confdefs.h.  */
13457#include <opagent.h>
13458_ACEOF
13459if { (ac_try="$ac_cpp conftest.$ac_ext"
13460case "(($ac_try" in
13461  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13462  *) ac_try_echo=$ac_try;;
13463esac
13464eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13465  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13466  ac_status=$?
13467  grep -v '^ *+' conftest.er1 >conftest.err
13468  rm -f conftest.er1
13469  cat conftest.err >&5
13470  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13471  (exit $ac_status); } >/dev/null; then
13472  if test -s conftest.err; then
13473    ac_cpp_err=$ac_c_preproc_warn_flag
13474    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13475  else
13476    ac_cpp_err=
13477  fi
13478else
13479  ac_cpp_err=yes
13480fi
13481if test -z "$ac_cpp_err"; then
13482  ac_header_preproc=yes
13483else
13484  echo "$as_me: failed program was:" >&5
13485sed 's/^/| /' conftest.$ac_ext >&5
13486
13487  ac_header_preproc=no
13488fi
13489
13490rm -f conftest.err conftest.$ac_ext
13491{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13492echo "${ECHO_T}$ac_header_preproc" >&6; }
13493
13494# So?  What about this header?
13495case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13496  yes:no: )
13497    { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
13498echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13499    { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
13500echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
13501    ac_header_preproc=yes
13502    ;;
13503  no:yes:* )
13504    { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
13505echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
13506    { echo "$as_me:$LINENO: WARNING: opagent.h:     check for missing prerequisite headers?" >&5
13507echo "$as_me: WARNING: opagent.h:     check for missing prerequisite headers?" >&2;}
13508    { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
13509echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
13510    { echo "$as_me:$LINENO: WARNING: opagent.h:     section \"Present But Cannot Be Compiled\"" >&5
13511echo "$as_me: WARNING: opagent.h:     section \"Present But Cannot Be Compiled\"" >&2;}
13512    { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
13513echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
13514    { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
13515echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
13516    ( cat <<\_ASBOX
13517## ------------------------------ ##
13518## Report this to bugs@yourdomain ##
13519## ------------------------------ ##
13520_ASBOX
13521     ) | sed "s/^/$as_me: WARNING:     /" >&2
13522    ;;
13523esac
13524{ echo "$as_me:$LINENO: checking for opagent.h" >&5
13525echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13526if test "${ac_cv_header_opagent_h+set}" = set; then
13527  echo $ECHO_N "(cached) $ECHO_C" >&6
13528else
13529  ac_cv_header_opagent_h=$ac_header_preproc
13530fi
13531{ echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13532echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13533
13534fi
13535if test $ac_cv_header_opagent_h = yes; then
13536  :
13537else
13538
13539          echo "Error! You need to have opagent.h around."
13540          exit -1
13541
13542fi
13543
13544
13545      fi
13546
13547else
13548
13549      USE_OPROFILE=0
13550
13551
13552fi
13553
13554
13555cat >>confdefs.h <<_ACEOF
13556#define USE_OPROFILE $USE_OPROFILE
13557_ACEOF
13558
13559
13560
13561
13562
13563
13564
13565
13566ac_header_dirent=no
13567for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
13568  as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
13569{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
13570echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
13571if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13572  echo $ECHO_N "(cached) $ECHO_C" >&6
13573else
13574  cat >conftest.$ac_ext <<_ACEOF
13575/* confdefs.h.  */
13576_ACEOF
13577cat confdefs.h >>conftest.$ac_ext
13578cat >>conftest.$ac_ext <<_ACEOF
13579/* end confdefs.h.  */
13580#include <sys/types.h>
13581#include <$ac_hdr>
13582
13583int
13584main ()
13585{
13586if ((DIR *) 0)
13587return 0;
13588  ;
13589  return 0;
13590}
13591_ACEOF
13592rm -f conftest.$ac_objext
13593if { (ac_try="$ac_compile"
13594case "(($ac_try" in
13595  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13596  *) ac_try_echo=$ac_try;;
13597esac
13598eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13599  (eval "$ac_compile") 2>conftest.er1
13600  ac_status=$?
13601  grep -v '^ *+' conftest.er1 >conftest.err
13602  rm -f conftest.er1
13603  cat conftest.err >&5
13604  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13605  (exit $ac_status); } &&
13606	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13607  { (case "(($ac_try" in
13608  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13609  *) ac_try_echo=$ac_try;;
13610esac
13611eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13612  (eval "$ac_try") 2>&5
13613  ac_status=$?
13614  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13615  (exit $ac_status); }; } &&
13616	 { ac_try='test -s conftest.$ac_objext'
13617  { (case "(($ac_try" in
13618  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13619  *) ac_try_echo=$ac_try;;
13620esac
13621eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13622  (eval "$ac_try") 2>&5
13623  ac_status=$?
13624  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13625  (exit $ac_status); }; }; then
13626  eval "$as_ac_Header=yes"
13627else
13628  echo "$as_me: failed program was:" >&5
13629sed 's/^/| /' conftest.$ac_ext >&5
13630
13631	eval "$as_ac_Header=no"
13632fi
13633
13634rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13635fi
13636ac_res=`eval echo '${'$as_ac_Header'}'`
13637	       { echo "$as_me:$LINENO: result: $ac_res" >&5
13638echo "${ECHO_T}$ac_res" >&6; }
13639if test `eval echo '${'$as_ac_Header'}'` = yes; then
13640  cat >>confdefs.h <<_ACEOF
13641#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
13642_ACEOF
13643
13644ac_header_dirent=$ac_hdr; break
13645fi
13646
13647done
13648# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
13649if test $ac_header_dirent = dirent.h; then
13650  { echo "$as_me:$LINENO: checking for library containing opendir" >&5
13651echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
13652if test "${ac_cv_search_opendir+set}" = set; then
13653  echo $ECHO_N "(cached) $ECHO_C" >&6
13654else
13655  ac_func_search_save_LIBS=$LIBS
13656cat >conftest.$ac_ext <<_ACEOF
13657/* confdefs.h.  */
13658_ACEOF
13659cat confdefs.h >>conftest.$ac_ext
13660cat >>conftest.$ac_ext <<_ACEOF
13661/* end confdefs.h.  */
13662
13663/* Override any GCC internal prototype to avoid an error.
13664   Use char because int might match the return type of a GCC
13665   builtin and then its argument prototype would still apply.  */
13666#ifdef __cplusplus
13667extern "C"
13668#endif
13669char opendir ();
13670int
13671main ()
13672{
13673return opendir ();
13674  ;
13675  return 0;
13676}
13677_ACEOF
13678for ac_lib in '' dir; do
13679  if test -z "$ac_lib"; then
13680    ac_res="none required"
13681  else
13682    ac_res=-l$ac_lib
13683    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13684  fi
13685  rm -f conftest.$ac_objext conftest$ac_exeext
13686if { (ac_try="$ac_link"
13687case "(($ac_try" in
13688  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13689  *) ac_try_echo=$ac_try;;
13690esac
13691eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13692  (eval "$ac_link") 2>conftest.er1
13693  ac_status=$?
13694  grep -v '^ *+' conftest.er1 >conftest.err
13695  rm -f conftest.er1
13696  cat conftest.err >&5
13697  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13698  (exit $ac_status); } &&
13699	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13700  { (case "(($ac_try" in
13701  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13702  *) ac_try_echo=$ac_try;;
13703esac
13704eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13705  (eval "$ac_try") 2>&5
13706  ac_status=$?
13707  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13708  (exit $ac_status); }; } &&
13709	 { ac_try='test -s conftest$ac_exeext'
13710  { (case "(($ac_try" in
13711  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13712  *) ac_try_echo=$ac_try;;
13713esac
13714eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13715  (eval "$ac_try") 2>&5
13716  ac_status=$?
13717  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13718  (exit $ac_status); }; }; then
13719  ac_cv_search_opendir=$ac_res
13720else
13721  echo "$as_me: failed program was:" >&5
13722sed 's/^/| /' conftest.$ac_ext >&5
13723
13724
13725fi
13726
13727rm -f core conftest.err conftest.$ac_objext \
13728      conftest$ac_exeext
13729  if test "${ac_cv_search_opendir+set}" = set; then
13730  break
13731fi
13732done
13733if test "${ac_cv_search_opendir+set}" = set; then
13734  :
13735else
13736  ac_cv_search_opendir=no
13737fi
13738rm conftest.$ac_ext
13739LIBS=$ac_func_search_save_LIBS
13740fi
13741{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
13742echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
13743ac_res=$ac_cv_search_opendir
13744if test "$ac_res" != no; then
13745  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13746
13747fi
13748
13749else
13750  { echo "$as_me:$LINENO: checking for library containing opendir" >&5
13751echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
13752if test "${ac_cv_search_opendir+set}" = set; then
13753  echo $ECHO_N "(cached) $ECHO_C" >&6
13754else
13755  ac_func_search_save_LIBS=$LIBS
13756cat >conftest.$ac_ext <<_ACEOF
13757/* confdefs.h.  */
13758_ACEOF
13759cat confdefs.h >>conftest.$ac_ext
13760cat >>conftest.$ac_ext <<_ACEOF
13761/* end confdefs.h.  */
13762
13763/* Override any GCC internal prototype to avoid an error.
13764   Use char because int might match the return type of a GCC
13765   builtin and then its argument prototype would still apply.  */
13766#ifdef __cplusplus
13767extern "C"
13768#endif
13769char opendir ();
13770int
13771main ()
13772{
13773return opendir ();
13774  ;
13775  return 0;
13776}
13777_ACEOF
13778for ac_lib in '' x; do
13779  if test -z "$ac_lib"; then
13780    ac_res="none required"
13781  else
13782    ac_res=-l$ac_lib
13783    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13784  fi
13785  rm -f conftest.$ac_objext conftest$ac_exeext
13786if { (ac_try="$ac_link"
13787case "(($ac_try" in
13788  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13789  *) ac_try_echo=$ac_try;;
13790esac
13791eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13792  (eval "$ac_link") 2>conftest.er1
13793  ac_status=$?
13794  grep -v '^ *+' conftest.er1 >conftest.err
13795  rm -f conftest.er1
13796  cat conftest.err >&5
13797  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13798  (exit $ac_status); } &&
13799	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13800  { (case "(($ac_try" in
13801  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13802  *) ac_try_echo=$ac_try;;
13803esac
13804eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13805  (eval "$ac_try") 2>&5
13806  ac_status=$?
13807  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13808  (exit $ac_status); }; } &&
13809	 { ac_try='test -s conftest$ac_exeext'
13810  { (case "(($ac_try" in
13811  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13812  *) ac_try_echo=$ac_try;;
13813esac
13814eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13815  (eval "$ac_try") 2>&5
13816  ac_status=$?
13817  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13818  (exit $ac_status); }; }; then
13819  ac_cv_search_opendir=$ac_res
13820else
13821  echo "$as_me: failed program was:" >&5
13822sed 's/^/| /' conftest.$ac_ext >&5
13823
13824
13825fi
13826
13827rm -f core conftest.err conftest.$ac_objext \
13828      conftest$ac_exeext
13829  if test "${ac_cv_search_opendir+set}" = set; then
13830  break
13831fi
13832done
13833if test "${ac_cv_search_opendir+set}" = set; then
13834  :
13835else
13836  ac_cv_search_opendir=no
13837fi
13838rm conftest.$ac_ext
13839LIBS=$ac_func_search_save_LIBS
13840fi
13841{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
13842echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
13843ac_res=$ac_cv_search_opendir
13844if test "$ac_res" != no; then
13845  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13846
13847fi
13848
13849fi
13850
13851{ echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
13852echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
13853if test "${ac_cv_header_mmap_anon+set}" = set; then
13854  echo $ECHO_N "(cached) $ECHO_C" >&6
13855else
13856   ac_ext=c
13857ac_cpp='$CPP $CPPFLAGS'
13858ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13859ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13860ac_compiler_gnu=$ac_cv_c_compiler_gnu
13861
13862  cat >conftest.$ac_ext <<_ACEOF
13863/* confdefs.h.  */
13864_ACEOF
13865cat confdefs.h >>conftest.$ac_ext
13866cat >>conftest.$ac_ext <<_ACEOF
13867/* end confdefs.h.  */
13868#include <sys/mman.h>
13869#include <unistd.h>
13870#include <fcntl.h>
13871int
13872main ()
13873{
13874mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
13875  ;
13876  return 0;
13877}
13878_ACEOF
13879rm -f conftest.$ac_objext
13880if { (ac_try="$ac_compile"
13881case "(($ac_try" in
13882  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13883  *) ac_try_echo=$ac_try;;
13884esac
13885eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13886  (eval "$ac_compile") 2>conftest.er1
13887  ac_status=$?
13888  grep -v '^ *+' conftest.er1 >conftest.err
13889  rm -f conftest.er1
13890  cat conftest.err >&5
13891  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13892  (exit $ac_status); } &&
13893	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13894  { (case "(($ac_try" in
13895  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13896  *) ac_try_echo=$ac_try;;
13897esac
13898eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13899  (eval "$ac_try") 2>&5
13900  ac_status=$?
13901  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13902  (exit $ac_status); }; } &&
13903	 { ac_try='test -s conftest.$ac_objext'
13904  { (case "(($ac_try" in
13905  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13906  *) ac_try_echo=$ac_try;;
13907esac
13908eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13909  (eval "$ac_try") 2>&5
13910  ac_status=$?
13911  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13912  (exit $ac_status); }; }; then
13913  ac_cv_header_mmap_anon=yes
13914else
13915  echo "$as_me: failed program was:" >&5
13916sed 's/^/| /' conftest.$ac_ext >&5
13917
13918	ac_cv_header_mmap_anon=no
13919fi
13920
13921rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13922  ac_ext=c
13923ac_cpp='$CPP $CPPFLAGS'
13924ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13925ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13926ac_compiler_gnu=$ac_cv_c_compiler_gnu
13927
13928
13929fi
13930{ echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
13931echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
13932if test "$ac_cv_header_mmap_anon" = yes; then
13933
13934cat >>confdefs.h <<\_ACEOF
13935#define HAVE_MMAP_ANONYMOUS 1
13936_ACEOF
13937
13938fi
13939
13940{ echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
13941echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
13942if test "${ac_cv_header_stat_broken+set}" = set; then
13943  echo $ECHO_N "(cached) $ECHO_C" >&6
13944else
13945  cat >conftest.$ac_ext <<_ACEOF
13946/* confdefs.h.  */
13947_ACEOF
13948cat confdefs.h >>conftest.$ac_ext
13949cat >>conftest.$ac_ext <<_ACEOF
13950/* end confdefs.h.  */
13951#include <sys/types.h>
13952#include <sys/stat.h>
13953
13954#if defined S_ISBLK && defined S_IFDIR
13955# if S_ISBLK (S_IFDIR)
13956You lose.
13957# endif
13958#endif
13959
13960#if defined S_ISBLK && defined S_IFCHR
13961# if S_ISBLK (S_IFCHR)
13962You lose.
13963# endif
13964#endif
13965
13966#if defined S_ISLNK && defined S_IFREG
13967# if S_ISLNK (S_IFREG)
13968You lose.
13969# endif
13970#endif
13971
13972#if defined S_ISSOCK && defined S_IFREG
13973# if S_ISSOCK (S_IFREG)
13974You lose.
13975# endif
13976#endif
13977
13978_ACEOF
13979if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13980  $EGREP "You lose" >/dev/null 2>&1; then
13981  ac_cv_header_stat_broken=yes
13982else
13983  ac_cv_header_stat_broken=no
13984fi
13985rm -f conftest*
13986
13987fi
13988{ echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
13989echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
13990if test $ac_cv_header_stat_broken = yes; then
13991
13992cat >>confdefs.h <<\_ACEOF
13993#define STAT_MACROS_BROKEN 1
13994_ACEOF
13995
13996fi
13997
13998{ echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
13999echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
14000if test "${ac_cv_header_sys_wait_h+set}" = set; then
14001  echo $ECHO_N "(cached) $ECHO_C" >&6
14002else
14003  cat >conftest.$ac_ext <<_ACEOF
14004/* confdefs.h.  */
14005_ACEOF
14006cat confdefs.h >>conftest.$ac_ext
14007cat >>conftest.$ac_ext <<_ACEOF
14008/* end confdefs.h.  */
14009#include <sys/types.h>
14010#include <sys/wait.h>
14011#ifndef WEXITSTATUS
14012# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
14013#endif
14014#ifndef WIFEXITED
14015# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
14016#endif
14017
14018int
14019main ()
14020{
14021  int s;
14022  wait (&s);
14023  s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
14024  ;
14025  return 0;
14026}
14027_ACEOF
14028rm -f conftest.$ac_objext
14029if { (ac_try="$ac_compile"
14030case "(($ac_try" in
14031  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14032  *) ac_try_echo=$ac_try;;
14033esac
14034eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14035  (eval "$ac_compile") 2>conftest.er1
14036  ac_status=$?
14037  grep -v '^ *+' conftest.er1 >conftest.err
14038  rm -f conftest.er1
14039  cat conftest.err >&5
14040  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14041  (exit $ac_status); } &&
14042	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14043  { (case "(($ac_try" in
14044  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14045  *) ac_try_echo=$ac_try;;
14046esac
14047eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14048  (eval "$ac_try") 2>&5
14049  ac_status=$?
14050  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14051  (exit $ac_status); }; } &&
14052	 { ac_try='test -s conftest.$ac_objext'
14053  { (case "(($ac_try" in
14054  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14055  *) ac_try_echo=$ac_try;;
14056esac
14057eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14058  (eval "$ac_try") 2>&5
14059  ac_status=$?
14060  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14061  (exit $ac_status); }; }; then
14062  ac_cv_header_sys_wait_h=yes
14063else
14064  echo "$as_me: failed program was:" >&5
14065sed 's/^/| /' conftest.$ac_ext >&5
14066
14067	ac_cv_header_sys_wait_h=no
14068fi
14069
14070rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14071fi
14072{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
14073echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
14074if test $ac_cv_header_sys_wait_h = yes; then
14075
14076cat >>confdefs.h <<\_ACEOF
14077#define HAVE_SYS_WAIT_H 1
14078_ACEOF
14079
14080fi
14081
14082{ echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
14083echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
14084if test "${ac_cv_header_time+set}" = set; then
14085  echo $ECHO_N "(cached) $ECHO_C" >&6
14086else
14087  cat >conftest.$ac_ext <<_ACEOF
14088/* confdefs.h.  */
14089_ACEOF
14090cat confdefs.h >>conftest.$ac_ext
14091cat >>conftest.$ac_ext <<_ACEOF
14092/* end confdefs.h.  */
14093#include <sys/types.h>
14094#include <sys/time.h>
14095#include <time.h>
14096
14097int
14098main ()
14099{
14100if ((struct tm *) 0)
14101return 0;
14102  ;
14103  return 0;
14104}
14105_ACEOF
14106rm -f conftest.$ac_objext
14107if { (ac_try="$ac_compile"
14108case "(($ac_try" in
14109  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14110  *) ac_try_echo=$ac_try;;
14111esac
14112eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14113  (eval "$ac_compile") 2>conftest.er1
14114  ac_status=$?
14115  grep -v '^ *+' conftest.er1 >conftest.err
14116  rm -f conftest.er1
14117  cat conftest.err >&5
14118  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14119  (exit $ac_status); } &&
14120	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14121  { (case "(($ac_try" in
14122  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14123  *) ac_try_echo=$ac_try;;
14124esac
14125eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14126  (eval "$ac_try") 2>&5
14127  ac_status=$?
14128  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14129  (exit $ac_status); }; } &&
14130	 { ac_try='test -s conftest.$ac_objext'
14131  { (case "(($ac_try" in
14132  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14133  *) ac_try_echo=$ac_try;;
14134esac
14135eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14136  (eval "$ac_try") 2>&5
14137  ac_status=$?
14138  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14139  (exit $ac_status); }; }; then
14140  ac_cv_header_time=yes
14141else
14142  echo "$as_me: failed program was:" >&5
14143sed 's/^/| /' conftest.$ac_ext >&5
14144
14145	ac_cv_header_time=no
14146fi
14147
14148rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14149fi
14150{ echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
14151echo "${ECHO_T}$ac_cv_header_time" >&6; }
14152if test $ac_cv_header_time = yes; then
14153
14154cat >>confdefs.h <<\_ACEOF
14155#define TIME_WITH_SYS_TIME 1
14156_ACEOF
14157
14158fi
14159
14160
14161
14162
14163
14164
14165
14166
14167for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
14168do
14169as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14170if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14171  { echo "$as_me:$LINENO: checking for $ac_header" >&5
14172echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14173if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14174  echo $ECHO_N "(cached) $ECHO_C" >&6
14175fi
14176ac_res=`eval echo '${'$as_ac_Header'}'`
14177	       { echo "$as_me:$LINENO: result: $ac_res" >&5
14178echo "${ECHO_T}$ac_res" >&6; }
14179else
14180  # Is the header compilable?
14181{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
14182echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14183cat >conftest.$ac_ext <<_ACEOF
14184/* confdefs.h.  */
14185_ACEOF
14186cat confdefs.h >>conftest.$ac_ext
14187cat >>conftest.$ac_ext <<_ACEOF
14188/* end confdefs.h.  */
14189$ac_includes_default
14190#include <$ac_header>
14191_ACEOF
14192rm -f conftest.$ac_objext
14193if { (ac_try="$ac_compile"
14194case "(($ac_try" in
14195  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14196  *) ac_try_echo=$ac_try;;
14197esac
14198eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14199  (eval "$ac_compile") 2>conftest.er1
14200  ac_status=$?
14201  grep -v '^ *+' conftest.er1 >conftest.err
14202  rm -f conftest.er1
14203  cat conftest.err >&5
14204  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14205  (exit $ac_status); } &&
14206	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14207  { (case "(($ac_try" in
14208  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14209  *) ac_try_echo=$ac_try;;
14210esac
14211eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14212  (eval "$ac_try") 2>&5
14213  ac_status=$?
14214  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14215  (exit $ac_status); }; } &&
14216	 { ac_try='test -s conftest.$ac_objext'
14217  { (case "(($ac_try" in
14218  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14219  *) ac_try_echo=$ac_try;;
14220esac
14221eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14222  (eval "$ac_try") 2>&5
14223  ac_status=$?
14224  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14225  (exit $ac_status); }; }; then
14226  ac_header_compiler=yes
14227else
14228  echo "$as_me: failed program was:" >&5
14229sed 's/^/| /' conftest.$ac_ext >&5
14230
14231	ac_header_compiler=no
14232fi
14233
14234rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14235{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14236echo "${ECHO_T}$ac_header_compiler" >&6; }
14237
14238# Is the header present?
14239{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
14240echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14241cat >conftest.$ac_ext <<_ACEOF
14242/* confdefs.h.  */
14243_ACEOF
14244cat confdefs.h >>conftest.$ac_ext
14245cat >>conftest.$ac_ext <<_ACEOF
14246/* end confdefs.h.  */
14247#include <$ac_header>
14248_ACEOF
14249if { (ac_try="$ac_cpp conftest.$ac_ext"
14250case "(($ac_try" in
14251  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14252  *) ac_try_echo=$ac_try;;
14253esac
14254eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14255  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14256  ac_status=$?
14257  grep -v '^ *+' conftest.er1 >conftest.err
14258  rm -f conftest.er1
14259  cat conftest.err >&5
14260  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14261  (exit $ac_status); } >/dev/null; then
14262  if test -s conftest.err; then
14263    ac_cpp_err=$ac_c_preproc_warn_flag
14264    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14265  else
14266    ac_cpp_err=
14267  fi
14268else
14269  ac_cpp_err=yes
14270fi
14271if test -z "$ac_cpp_err"; then
14272  ac_header_preproc=yes
14273else
14274  echo "$as_me: failed program was:" >&5
14275sed 's/^/| /' conftest.$ac_ext >&5
14276
14277  ac_header_preproc=no
14278fi
14279
14280rm -f conftest.err conftest.$ac_ext
14281{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14282echo "${ECHO_T}$ac_header_preproc" >&6; }
14283
14284# So?  What about this header?
14285case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14286  yes:no: )
14287    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14288echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14289    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14290echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14291    ac_header_preproc=yes
14292    ;;
14293  no:yes:* )
14294    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14295echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14296    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14297echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14298    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14299echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14300    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14301echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14302    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14303echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14304    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14305echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14306    ( cat <<\_ASBOX
14307## ------------------------------ ##
14308## Report this to bugs@yourdomain ##
14309## ------------------------------ ##
14310_ASBOX
14311     ) | sed "s/^/$as_me: WARNING:     /" >&2
14312    ;;
14313esac
14314{ echo "$as_me:$LINENO: checking for $ac_header" >&5
14315echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14316if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14317  echo $ECHO_N "(cached) $ECHO_C" >&6
14318else
14319  eval "$as_ac_Header=\$ac_header_preproc"
14320fi
14321ac_res=`eval echo '${'$as_ac_Header'}'`
14322	       { echo "$as_me:$LINENO: result: $ac_res" >&5
14323echo "${ECHO_T}$ac_res" >&6; }
14324
14325fi
14326if test `eval echo '${'$as_ac_Header'}'` = yes; then
14327  cat >>confdefs.h <<_ACEOF
14328#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14329_ACEOF
14330
14331fi
14332
14333done
14334
14335
14336
14337
14338
14339
14340
14341for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
14342do
14343as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14344if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14345  { echo "$as_me:$LINENO: checking for $ac_header" >&5
14346echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14347if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14348  echo $ECHO_N "(cached) $ECHO_C" >&6
14349fi
14350ac_res=`eval echo '${'$as_ac_Header'}'`
14351	       { echo "$as_me:$LINENO: result: $ac_res" >&5
14352echo "${ECHO_T}$ac_res" >&6; }
14353else
14354  # Is the header compilable?
14355{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
14356echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14357cat >conftest.$ac_ext <<_ACEOF
14358/* confdefs.h.  */
14359_ACEOF
14360cat confdefs.h >>conftest.$ac_ext
14361cat >>conftest.$ac_ext <<_ACEOF
14362/* end confdefs.h.  */
14363$ac_includes_default
14364#include <$ac_header>
14365_ACEOF
14366rm -f conftest.$ac_objext
14367if { (ac_try="$ac_compile"
14368case "(($ac_try" in
14369  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14370  *) ac_try_echo=$ac_try;;
14371esac
14372eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14373  (eval "$ac_compile") 2>conftest.er1
14374  ac_status=$?
14375  grep -v '^ *+' conftest.er1 >conftest.err
14376  rm -f conftest.er1
14377  cat conftest.err >&5
14378  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14379  (exit $ac_status); } &&
14380	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14381  { (case "(($ac_try" in
14382  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14383  *) ac_try_echo=$ac_try;;
14384esac
14385eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14386  (eval "$ac_try") 2>&5
14387  ac_status=$?
14388  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14389  (exit $ac_status); }; } &&
14390	 { ac_try='test -s conftest.$ac_objext'
14391  { (case "(($ac_try" in
14392  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14393  *) ac_try_echo=$ac_try;;
14394esac
14395eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14396  (eval "$ac_try") 2>&5
14397  ac_status=$?
14398  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14399  (exit $ac_status); }; }; then
14400  ac_header_compiler=yes
14401else
14402  echo "$as_me: failed program was:" >&5
14403sed 's/^/| /' conftest.$ac_ext >&5
14404
14405	ac_header_compiler=no
14406fi
14407
14408rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14409{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14410echo "${ECHO_T}$ac_header_compiler" >&6; }
14411
14412# Is the header present?
14413{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
14414echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14415cat >conftest.$ac_ext <<_ACEOF
14416/* confdefs.h.  */
14417_ACEOF
14418cat confdefs.h >>conftest.$ac_ext
14419cat >>conftest.$ac_ext <<_ACEOF
14420/* end confdefs.h.  */
14421#include <$ac_header>
14422_ACEOF
14423if { (ac_try="$ac_cpp conftest.$ac_ext"
14424case "(($ac_try" in
14425  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14426  *) ac_try_echo=$ac_try;;
14427esac
14428eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14429  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14430  ac_status=$?
14431  grep -v '^ *+' conftest.er1 >conftest.err
14432  rm -f conftest.er1
14433  cat conftest.err >&5
14434  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14435  (exit $ac_status); } >/dev/null; then
14436  if test -s conftest.err; then
14437    ac_cpp_err=$ac_c_preproc_warn_flag
14438    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14439  else
14440    ac_cpp_err=
14441  fi
14442else
14443  ac_cpp_err=yes
14444fi
14445if test -z "$ac_cpp_err"; then
14446  ac_header_preproc=yes
14447else
14448  echo "$as_me: failed program was:" >&5
14449sed 's/^/| /' conftest.$ac_ext >&5
14450
14451  ac_header_preproc=no
14452fi
14453
14454rm -f conftest.err conftest.$ac_ext
14455{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14456echo "${ECHO_T}$ac_header_preproc" >&6; }
14457
14458# So?  What about this header?
14459case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14460  yes:no: )
14461    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14462echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14463    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14464echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14465    ac_header_preproc=yes
14466    ;;
14467  no:yes:* )
14468    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14469echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14470    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14471echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14472    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14473echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14474    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14475echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14476    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14477echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14478    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14479echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14480    ( cat <<\_ASBOX
14481## ------------------------------ ##
14482## Report this to bugs@yourdomain ##
14483## ------------------------------ ##
14484_ASBOX
14485     ) | sed "s/^/$as_me: WARNING:     /" >&2
14486    ;;
14487esac
14488{ echo "$as_me:$LINENO: checking for $ac_header" >&5
14489echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14490if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14491  echo $ECHO_N "(cached) $ECHO_C" >&6
14492else
14493  eval "$as_ac_Header=\$ac_header_preproc"
14494fi
14495ac_res=`eval echo '${'$as_ac_Header'}'`
14496	       { echo "$as_me:$LINENO: result: $ac_res" >&5
14497echo "${ECHO_T}$ac_res" >&6; }
14498
14499fi
14500if test `eval echo '${'$as_ac_Header'}'` = yes; then
14501  cat >>confdefs.h <<_ACEOF
14502#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14503_ACEOF
14504
14505fi
14506
14507done
14508
14509
14510
14511for ac_header in utime.h windows.h
14512do
14513as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14514if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14515  { echo "$as_me:$LINENO: checking for $ac_header" >&5
14516echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14517if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14518  echo $ECHO_N "(cached) $ECHO_C" >&6
14519fi
14520ac_res=`eval echo '${'$as_ac_Header'}'`
14521	       { echo "$as_me:$LINENO: result: $ac_res" >&5
14522echo "${ECHO_T}$ac_res" >&6; }
14523else
14524  # Is the header compilable?
14525{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
14526echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14527cat >conftest.$ac_ext <<_ACEOF
14528/* confdefs.h.  */
14529_ACEOF
14530cat confdefs.h >>conftest.$ac_ext
14531cat >>conftest.$ac_ext <<_ACEOF
14532/* end confdefs.h.  */
14533$ac_includes_default
14534#include <$ac_header>
14535_ACEOF
14536rm -f conftest.$ac_objext
14537if { (ac_try="$ac_compile"
14538case "(($ac_try" in
14539  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14540  *) ac_try_echo=$ac_try;;
14541esac
14542eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14543  (eval "$ac_compile") 2>conftest.er1
14544  ac_status=$?
14545  grep -v '^ *+' conftest.er1 >conftest.err
14546  rm -f conftest.er1
14547  cat conftest.err >&5
14548  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14549  (exit $ac_status); } &&
14550	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14551  { (case "(($ac_try" in
14552  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14553  *) ac_try_echo=$ac_try;;
14554esac
14555eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14556  (eval "$ac_try") 2>&5
14557  ac_status=$?
14558  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14559  (exit $ac_status); }; } &&
14560	 { ac_try='test -s conftest.$ac_objext'
14561  { (case "(($ac_try" in
14562  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14563  *) ac_try_echo=$ac_try;;
14564esac
14565eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14566  (eval "$ac_try") 2>&5
14567  ac_status=$?
14568  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14569  (exit $ac_status); }; }; then
14570  ac_header_compiler=yes
14571else
14572  echo "$as_me: failed program was:" >&5
14573sed 's/^/| /' conftest.$ac_ext >&5
14574
14575	ac_header_compiler=no
14576fi
14577
14578rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14579{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14580echo "${ECHO_T}$ac_header_compiler" >&6; }
14581
14582# Is the header present?
14583{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
14584echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14585cat >conftest.$ac_ext <<_ACEOF
14586/* confdefs.h.  */
14587_ACEOF
14588cat confdefs.h >>conftest.$ac_ext
14589cat >>conftest.$ac_ext <<_ACEOF
14590/* end confdefs.h.  */
14591#include <$ac_header>
14592_ACEOF
14593if { (ac_try="$ac_cpp conftest.$ac_ext"
14594case "(($ac_try" in
14595  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14596  *) ac_try_echo=$ac_try;;
14597esac
14598eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14599  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14600  ac_status=$?
14601  grep -v '^ *+' conftest.er1 >conftest.err
14602  rm -f conftest.er1
14603  cat conftest.err >&5
14604  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14605  (exit $ac_status); } >/dev/null; then
14606  if test -s conftest.err; then
14607    ac_cpp_err=$ac_c_preproc_warn_flag
14608    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14609  else
14610    ac_cpp_err=
14611  fi
14612else
14613  ac_cpp_err=yes
14614fi
14615if test -z "$ac_cpp_err"; then
14616  ac_header_preproc=yes
14617else
14618  echo "$as_me: failed program was:" >&5
14619sed 's/^/| /' conftest.$ac_ext >&5
14620
14621  ac_header_preproc=no
14622fi
14623
14624rm -f conftest.err conftest.$ac_ext
14625{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14626echo "${ECHO_T}$ac_header_preproc" >&6; }
14627
14628# So?  What about this header?
14629case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14630  yes:no: )
14631    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14632echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14633    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14634echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14635    ac_header_preproc=yes
14636    ;;
14637  no:yes:* )
14638    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14639echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14640    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14641echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14642    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14643echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14644    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14645echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14646    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14647echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14648    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14649echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14650    ( cat <<\_ASBOX
14651## ------------------------------ ##
14652## Report this to bugs@yourdomain ##
14653## ------------------------------ ##
14654_ASBOX
14655     ) | sed "s/^/$as_me: WARNING:     /" >&2
14656    ;;
14657esac
14658{ echo "$as_me:$LINENO: checking for $ac_header" >&5
14659echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14660if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14661  echo $ECHO_N "(cached) $ECHO_C" >&6
14662else
14663  eval "$as_ac_Header=\$ac_header_preproc"
14664fi
14665ac_res=`eval echo '${'$as_ac_Header'}'`
14666	       { echo "$as_me:$LINENO: result: $ac_res" >&5
14667echo "${ECHO_T}$ac_res" >&6; }
14668
14669fi
14670if test `eval echo '${'$as_ac_Header'}'` = yes; then
14671  cat >>confdefs.h <<_ACEOF
14672#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14673_ACEOF
14674
14675fi
14676
14677done
14678
14679
14680
14681
14682
14683
14684for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h sys/uio.h
14685do
14686as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14687if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14688  { echo "$as_me:$LINENO: checking for $ac_header" >&5
14689echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14690if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14691  echo $ECHO_N "(cached) $ECHO_C" >&6
14692fi
14693ac_res=`eval echo '${'$as_ac_Header'}'`
14694	       { echo "$as_me:$LINENO: result: $ac_res" >&5
14695echo "${ECHO_T}$ac_res" >&6; }
14696else
14697  # Is the header compilable?
14698{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
14699echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14700cat >conftest.$ac_ext <<_ACEOF
14701/* confdefs.h.  */
14702_ACEOF
14703cat confdefs.h >>conftest.$ac_ext
14704cat >>conftest.$ac_ext <<_ACEOF
14705/* end confdefs.h.  */
14706$ac_includes_default
14707#include <$ac_header>
14708_ACEOF
14709rm -f conftest.$ac_objext
14710if { (ac_try="$ac_compile"
14711case "(($ac_try" in
14712  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14713  *) ac_try_echo=$ac_try;;
14714esac
14715eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14716  (eval "$ac_compile") 2>conftest.er1
14717  ac_status=$?
14718  grep -v '^ *+' conftest.er1 >conftest.err
14719  rm -f conftest.er1
14720  cat conftest.err >&5
14721  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14722  (exit $ac_status); } &&
14723	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14724  { (case "(($ac_try" in
14725  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14726  *) ac_try_echo=$ac_try;;
14727esac
14728eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14729  (eval "$ac_try") 2>&5
14730  ac_status=$?
14731  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14732  (exit $ac_status); }; } &&
14733	 { ac_try='test -s conftest.$ac_objext'
14734  { (case "(($ac_try" in
14735  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14736  *) ac_try_echo=$ac_try;;
14737esac
14738eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14739  (eval "$ac_try") 2>&5
14740  ac_status=$?
14741  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14742  (exit $ac_status); }; }; then
14743  ac_header_compiler=yes
14744else
14745  echo "$as_me: failed program was:" >&5
14746sed 's/^/| /' conftest.$ac_ext >&5
14747
14748	ac_header_compiler=no
14749fi
14750
14751rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14752{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14753echo "${ECHO_T}$ac_header_compiler" >&6; }
14754
14755# Is the header present?
14756{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
14757echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14758cat >conftest.$ac_ext <<_ACEOF
14759/* confdefs.h.  */
14760_ACEOF
14761cat confdefs.h >>conftest.$ac_ext
14762cat >>conftest.$ac_ext <<_ACEOF
14763/* end confdefs.h.  */
14764#include <$ac_header>
14765_ACEOF
14766if { (ac_try="$ac_cpp conftest.$ac_ext"
14767case "(($ac_try" in
14768  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14769  *) ac_try_echo=$ac_try;;
14770esac
14771eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14772  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14773  ac_status=$?
14774  grep -v '^ *+' conftest.er1 >conftest.err
14775  rm -f conftest.er1
14776  cat conftest.err >&5
14777  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14778  (exit $ac_status); } >/dev/null; then
14779  if test -s conftest.err; then
14780    ac_cpp_err=$ac_c_preproc_warn_flag
14781    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14782  else
14783    ac_cpp_err=
14784  fi
14785else
14786  ac_cpp_err=yes
14787fi
14788if test -z "$ac_cpp_err"; then
14789  ac_header_preproc=yes
14790else
14791  echo "$as_me: failed program was:" >&5
14792sed 's/^/| /' conftest.$ac_ext >&5
14793
14794  ac_header_preproc=no
14795fi
14796
14797rm -f conftest.err conftest.$ac_ext
14798{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14799echo "${ECHO_T}$ac_header_preproc" >&6; }
14800
14801# So?  What about this header?
14802case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14803  yes:no: )
14804    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14805echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14806    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14807echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14808    ac_header_preproc=yes
14809    ;;
14810  no:yes:* )
14811    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14812echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14813    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14814echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14815    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14816echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14817    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14818echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14819    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14820echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14821    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14822echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14823    ( cat <<\_ASBOX
14824## ------------------------------ ##
14825## Report this to bugs@yourdomain ##
14826## ------------------------------ ##
14827_ASBOX
14828     ) | sed "s/^/$as_me: WARNING:     /" >&2
14829    ;;
14830esac
14831{ echo "$as_me:$LINENO: checking for $ac_header" >&5
14832echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14833if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14834  echo $ECHO_N "(cached) $ECHO_C" >&6
14835else
14836  eval "$as_ac_Header=\$ac_header_preproc"
14837fi
14838ac_res=`eval echo '${'$as_ac_Header'}'`
14839	       { echo "$as_me:$LINENO: result: $ac_res" >&5
14840echo "${ECHO_T}$ac_res" >&6; }
14841
14842fi
14843if test `eval echo '${'$as_ac_Header'}'` = yes; then
14844  cat >>confdefs.h <<_ACEOF
14845#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14846_ACEOF
14847
14848fi
14849
14850done
14851
14852
14853
14854
14855
14856for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h
14857do
14858as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14859if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14860  { echo "$as_me:$LINENO: checking for $ac_header" >&5
14861echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14862if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14863  echo $ECHO_N "(cached) $ECHO_C" >&6
14864fi
14865ac_res=`eval echo '${'$as_ac_Header'}'`
14866	       { echo "$as_me:$LINENO: result: $ac_res" >&5
14867echo "${ECHO_T}$ac_res" >&6; }
14868else
14869  # Is the header compilable?
14870{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
14871echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14872cat >conftest.$ac_ext <<_ACEOF
14873/* confdefs.h.  */
14874_ACEOF
14875cat confdefs.h >>conftest.$ac_ext
14876cat >>conftest.$ac_ext <<_ACEOF
14877/* end confdefs.h.  */
14878$ac_includes_default
14879#include <$ac_header>
14880_ACEOF
14881rm -f conftest.$ac_objext
14882if { (ac_try="$ac_compile"
14883case "(($ac_try" in
14884  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14885  *) ac_try_echo=$ac_try;;
14886esac
14887eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14888  (eval "$ac_compile") 2>conftest.er1
14889  ac_status=$?
14890  grep -v '^ *+' conftest.er1 >conftest.err
14891  rm -f conftest.er1
14892  cat conftest.err >&5
14893  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14894  (exit $ac_status); } &&
14895	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14896  { (case "(($ac_try" in
14897  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14898  *) ac_try_echo=$ac_try;;
14899esac
14900eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14901  (eval "$ac_try") 2>&5
14902  ac_status=$?
14903  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14904  (exit $ac_status); }; } &&
14905	 { ac_try='test -s conftest.$ac_objext'
14906  { (case "(($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_try") 2>&5
14912  ac_status=$?
14913  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14914  (exit $ac_status); }; }; then
14915  ac_header_compiler=yes
14916else
14917  echo "$as_me: failed program was:" >&5
14918sed 's/^/| /' conftest.$ac_ext >&5
14919
14920	ac_header_compiler=no
14921fi
14922
14923rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14924{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14925echo "${ECHO_T}$ac_header_compiler" >&6; }
14926
14927# Is the header present?
14928{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
14929echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14930cat >conftest.$ac_ext <<_ACEOF
14931/* confdefs.h.  */
14932_ACEOF
14933cat confdefs.h >>conftest.$ac_ext
14934cat >>conftest.$ac_ext <<_ACEOF
14935/* end confdefs.h.  */
14936#include <$ac_header>
14937_ACEOF
14938if { (ac_try="$ac_cpp conftest.$ac_ext"
14939case "(($ac_try" in
14940  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14941  *) ac_try_echo=$ac_try;;
14942esac
14943eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14944  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14945  ac_status=$?
14946  grep -v '^ *+' conftest.er1 >conftest.err
14947  rm -f conftest.er1
14948  cat conftest.err >&5
14949  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14950  (exit $ac_status); } >/dev/null; then
14951  if test -s conftest.err; then
14952    ac_cpp_err=$ac_c_preproc_warn_flag
14953    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14954  else
14955    ac_cpp_err=
14956  fi
14957else
14958  ac_cpp_err=yes
14959fi
14960if test -z "$ac_cpp_err"; then
14961  ac_header_preproc=yes
14962else
14963  echo "$as_me: failed program was:" >&5
14964sed 's/^/| /' conftest.$ac_ext >&5
14965
14966  ac_header_preproc=no
14967fi
14968
14969rm -f conftest.err conftest.$ac_ext
14970{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14971echo "${ECHO_T}$ac_header_preproc" >&6; }
14972
14973# So?  What about this header?
14974case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14975  yes:no: )
14976    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14977echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14978    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14979echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14980    ac_header_preproc=yes
14981    ;;
14982  no:yes:* )
14983    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14984echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14985    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14986echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14987    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14988echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14989    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14990echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14991    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14992echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14993    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14994echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14995    ( cat <<\_ASBOX
14996## ------------------------------ ##
14997## Report this to bugs@yourdomain ##
14998## ------------------------------ ##
14999_ASBOX
15000     ) | sed "s/^/$as_me: WARNING:     /" >&2
15001    ;;
15002esac
15003{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15004echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15005if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15006  echo $ECHO_N "(cached) $ECHO_C" >&6
15007else
15008  eval "$as_ac_Header=\$ac_header_preproc"
15009fi
15010ac_res=`eval echo '${'$as_ac_Header'}'`
15011	       { echo "$as_me:$LINENO: result: $ac_res" >&5
15012echo "${ECHO_T}$ac_res" >&6; }
15013
15014fi
15015if test `eval echo '${'$as_ac_Header'}'` = yes; then
15016  cat >>confdefs.h <<_ACEOF
15017#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15018_ACEOF
15019
15020fi
15021
15022done
15023
15024
15025for ac_header in valgrind/valgrind.h
15026do
15027as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15028if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15029  { echo "$as_me:$LINENO: checking for $ac_header" >&5
15030echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15031if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15032  echo $ECHO_N "(cached) $ECHO_C" >&6
15033fi
15034ac_res=`eval echo '${'$as_ac_Header'}'`
15035	       { echo "$as_me:$LINENO: result: $ac_res" >&5
15036echo "${ECHO_T}$ac_res" >&6; }
15037else
15038  # Is the header compilable?
15039{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15040echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15041cat >conftest.$ac_ext <<_ACEOF
15042/* confdefs.h.  */
15043_ACEOF
15044cat confdefs.h >>conftest.$ac_ext
15045cat >>conftest.$ac_ext <<_ACEOF
15046/* end confdefs.h.  */
15047$ac_includes_default
15048#include <$ac_header>
15049_ACEOF
15050rm -f conftest.$ac_objext
15051if { (ac_try="$ac_compile"
15052case "(($ac_try" in
15053  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15054  *) ac_try_echo=$ac_try;;
15055esac
15056eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15057  (eval "$ac_compile") 2>conftest.er1
15058  ac_status=$?
15059  grep -v '^ *+' conftest.er1 >conftest.err
15060  rm -f conftest.er1
15061  cat conftest.err >&5
15062  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15063  (exit $ac_status); } &&
15064	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15065  { (case "(($ac_try" in
15066  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15067  *) ac_try_echo=$ac_try;;
15068esac
15069eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15070  (eval "$ac_try") 2>&5
15071  ac_status=$?
15072  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15073  (exit $ac_status); }; } &&
15074	 { ac_try='test -s conftest.$ac_objext'
15075  { (case "(($ac_try" in
15076  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15077  *) ac_try_echo=$ac_try;;
15078esac
15079eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15080  (eval "$ac_try") 2>&5
15081  ac_status=$?
15082  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15083  (exit $ac_status); }; }; then
15084  ac_header_compiler=yes
15085else
15086  echo "$as_me: failed program was:" >&5
15087sed 's/^/| /' conftest.$ac_ext >&5
15088
15089	ac_header_compiler=no
15090fi
15091
15092rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15093{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15094echo "${ECHO_T}$ac_header_compiler" >&6; }
15095
15096# Is the header present?
15097{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15098echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15099cat >conftest.$ac_ext <<_ACEOF
15100/* confdefs.h.  */
15101_ACEOF
15102cat confdefs.h >>conftest.$ac_ext
15103cat >>conftest.$ac_ext <<_ACEOF
15104/* end confdefs.h.  */
15105#include <$ac_header>
15106_ACEOF
15107if { (ac_try="$ac_cpp conftest.$ac_ext"
15108case "(($ac_try" in
15109  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15110  *) ac_try_echo=$ac_try;;
15111esac
15112eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15113  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15114  ac_status=$?
15115  grep -v '^ *+' conftest.er1 >conftest.err
15116  rm -f conftest.er1
15117  cat conftest.err >&5
15118  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15119  (exit $ac_status); } >/dev/null; then
15120  if test -s conftest.err; then
15121    ac_cpp_err=$ac_c_preproc_warn_flag
15122    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15123  else
15124    ac_cpp_err=
15125  fi
15126else
15127  ac_cpp_err=yes
15128fi
15129if test -z "$ac_cpp_err"; then
15130  ac_header_preproc=yes
15131else
15132  echo "$as_me: failed program was:" >&5
15133sed 's/^/| /' conftest.$ac_ext >&5
15134
15135  ac_header_preproc=no
15136fi
15137
15138rm -f conftest.err conftest.$ac_ext
15139{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15140echo "${ECHO_T}$ac_header_preproc" >&6; }
15141
15142# So?  What about this header?
15143case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15144  yes:no: )
15145    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15146echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15147    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15148echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15149    ac_header_preproc=yes
15150    ;;
15151  no:yes:* )
15152    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15153echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15154    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15155echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15156    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15157echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15158    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15159echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15160    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15161echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15162    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15163echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15164    ( cat <<\_ASBOX
15165## ------------------------------ ##
15166## Report this to bugs@yourdomain ##
15167## ------------------------------ ##
15168_ASBOX
15169     ) | sed "s/^/$as_me: WARNING:     /" >&2
15170    ;;
15171esac
15172{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15173echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15174if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15175  echo $ECHO_N "(cached) $ECHO_C" >&6
15176else
15177  eval "$as_ac_Header=\$ac_header_preproc"
15178fi
15179ac_res=`eval echo '${'$as_ac_Header'}'`
15180	       { echo "$as_me:$LINENO: result: $ac_res" >&5
15181echo "${ECHO_T}$ac_res" >&6; }
15182
15183fi
15184if test `eval echo '${'$as_ac_Header'}'` = yes; then
15185  cat >>confdefs.h <<_ACEOF
15186#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15187_ACEOF
15188
15189fi
15190
15191done
15192
15193
15194for ac_header in fenv.h
15195do
15196as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15197if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
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
15202fi
15203ac_res=`eval echo '${'$as_ac_Header'}'`
15204	       { echo "$as_me:$LINENO: result: $ac_res" >&5
15205echo "${ECHO_T}$ac_res" >&6; }
15206else
15207  # Is the header compilable?
15208{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15209echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15210cat >conftest.$ac_ext <<_ACEOF
15211/* confdefs.h.  */
15212_ACEOF
15213cat confdefs.h >>conftest.$ac_ext
15214cat >>conftest.$ac_ext <<_ACEOF
15215/* end confdefs.h.  */
15216$ac_includes_default
15217#include <$ac_header>
15218_ACEOF
15219rm -f conftest.$ac_objext
15220if { (ac_try="$ac_compile"
15221case "(($ac_try" in
15222  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15223  *) ac_try_echo=$ac_try;;
15224esac
15225eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15226  (eval "$ac_compile") 2>conftest.er1
15227  ac_status=$?
15228  grep -v '^ *+' conftest.er1 >conftest.err
15229  rm -f conftest.er1
15230  cat conftest.err >&5
15231  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15232  (exit $ac_status); } &&
15233	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15234  { (case "(($ac_try" in
15235  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15236  *) ac_try_echo=$ac_try;;
15237esac
15238eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15239  (eval "$ac_try") 2>&5
15240  ac_status=$?
15241  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15242  (exit $ac_status); }; } &&
15243	 { ac_try='test -s conftest.$ac_objext'
15244  { (case "(($ac_try" in
15245  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15246  *) ac_try_echo=$ac_try;;
15247esac
15248eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15249  (eval "$ac_try") 2>&5
15250  ac_status=$?
15251  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15252  (exit $ac_status); }; }; then
15253  ac_header_compiler=yes
15254else
15255  echo "$as_me: failed program was:" >&5
15256sed 's/^/| /' conftest.$ac_ext >&5
15257
15258	ac_header_compiler=no
15259fi
15260
15261rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15262{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15263echo "${ECHO_T}$ac_header_compiler" >&6; }
15264
15265# Is the header present?
15266{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15267echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15268cat >conftest.$ac_ext <<_ACEOF
15269/* confdefs.h.  */
15270_ACEOF
15271cat confdefs.h >>conftest.$ac_ext
15272cat >>conftest.$ac_ext <<_ACEOF
15273/* end confdefs.h.  */
15274#include <$ac_header>
15275_ACEOF
15276if { (ac_try="$ac_cpp conftest.$ac_ext"
15277case "(($ac_try" in
15278  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15279  *) ac_try_echo=$ac_try;;
15280esac
15281eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15282  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15283  ac_status=$?
15284  grep -v '^ *+' conftest.er1 >conftest.err
15285  rm -f conftest.er1
15286  cat conftest.err >&5
15287  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15288  (exit $ac_status); } >/dev/null; then
15289  if test -s conftest.err; then
15290    ac_cpp_err=$ac_c_preproc_warn_flag
15291    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15292  else
15293    ac_cpp_err=
15294  fi
15295else
15296  ac_cpp_err=yes
15297fi
15298if test -z "$ac_cpp_err"; then
15299  ac_header_preproc=yes
15300else
15301  echo "$as_me: failed program was:" >&5
15302sed 's/^/| /' conftest.$ac_ext >&5
15303
15304  ac_header_preproc=no
15305fi
15306
15307rm -f conftest.err conftest.$ac_ext
15308{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15309echo "${ECHO_T}$ac_header_preproc" >&6; }
15310
15311# So?  What about this header?
15312case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15313  yes:no: )
15314    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15315echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15316    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15317echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15318    ac_header_preproc=yes
15319    ;;
15320  no:yes:* )
15321    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15322echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15323    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15324echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15325    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15326echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15327    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15328echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15329    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15330echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15331    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15332echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15333    ( cat <<\_ASBOX
15334## ------------------------------ ##
15335## Report this to bugs@yourdomain ##
15336## ------------------------------ ##
15337_ASBOX
15338     ) | sed "s/^/$as_me: WARNING:     /" >&2
15339    ;;
15340esac
15341{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15342echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15343if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15344  echo $ECHO_N "(cached) $ECHO_C" >&6
15345else
15346  eval "$as_ac_Header=\$ac_header_preproc"
15347fi
15348ac_res=`eval echo '${'$as_ac_Header'}'`
15349	       { echo "$as_me:$LINENO: result: $ac_res" >&5
15350echo "${ECHO_T}$ac_res" >&6; }
15351
15352fi
15353if test `eval echo '${'$as_ac_Header'}'` = yes; then
15354  cat >>confdefs.h <<_ACEOF
15355#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15356_ACEOF
15357
15358fi
15359
15360done
15361
15362if test "$ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
15363
15364for ac_header in pthread.h
15365do
15366as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15367if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15368  { echo "$as_me:$LINENO: checking for $ac_header" >&5
15369echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15370if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15371  echo $ECHO_N "(cached) $ECHO_C" >&6
15372fi
15373ac_res=`eval echo '${'$as_ac_Header'}'`
15374	       { echo "$as_me:$LINENO: result: $ac_res" >&5
15375echo "${ECHO_T}$ac_res" >&6; }
15376else
15377  # Is the header compilable?
15378{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15379echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15380cat >conftest.$ac_ext <<_ACEOF
15381/* confdefs.h.  */
15382_ACEOF
15383cat confdefs.h >>conftest.$ac_ext
15384cat >>conftest.$ac_ext <<_ACEOF
15385/* end confdefs.h.  */
15386$ac_includes_default
15387#include <$ac_header>
15388_ACEOF
15389rm -f conftest.$ac_objext
15390if { (ac_try="$ac_compile"
15391case "(($ac_try" in
15392  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15393  *) ac_try_echo=$ac_try;;
15394esac
15395eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15396  (eval "$ac_compile") 2>conftest.er1
15397  ac_status=$?
15398  grep -v '^ *+' conftest.er1 >conftest.err
15399  rm -f conftest.er1
15400  cat conftest.err >&5
15401  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15402  (exit $ac_status); } &&
15403	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15404  { (case "(($ac_try" in
15405  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15406  *) ac_try_echo=$ac_try;;
15407esac
15408eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15409  (eval "$ac_try") 2>&5
15410  ac_status=$?
15411  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15412  (exit $ac_status); }; } &&
15413	 { ac_try='test -s conftest.$ac_objext'
15414  { (case "(($ac_try" in
15415  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15416  *) ac_try_echo=$ac_try;;
15417esac
15418eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15419  (eval "$ac_try") 2>&5
15420  ac_status=$?
15421  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15422  (exit $ac_status); }; }; then
15423  ac_header_compiler=yes
15424else
15425  echo "$as_me: failed program was:" >&5
15426sed 's/^/| /' conftest.$ac_ext >&5
15427
15428	ac_header_compiler=no
15429fi
15430
15431rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15432{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15433echo "${ECHO_T}$ac_header_compiler" >&6; }
15434
15435# Is the header present?
15436{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15437echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15438cat >conftest.$ac_ext <<_ACEOF
15439/* confdefs.h.  */
15440_ACEOF
15441cat confdefs.h >>conftest.$ac_ext
15442cat >>conftest.$ac_ext <<_ACEOF
15443/* end confdefs.h.  */
15444#include <$ac_header>
15445_ACEOF
15446if { (ac_try="$ac_cpp conftest.$ac_ext"
15447case "(($ac_try" in
15448  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15449  *) ac_try_echo=$ac_try;;
15450esac
15451eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15452  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15453  ac_status=$?
15454  grep -v '^ *+' conftest.er1 >conftest.err
15455  rm -f conftest.er1
15456  cat conftest.err >&5
15457  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15458  (exit $ac_status); } >/dev/null; then
15459  if test -s conftest.err; then
15460    ac_cpp_err=$ac_c_preproc_warn_flag
15461    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15462  else
15463    ac_cpp_err=
15464  fi
15465else
15466  ac_cpp_err=yes
15467fi
15468if test -z "$ac_cpp_err"; then
15469  ac_header_preproc=yes
15470else
15471  echo "$as_me: failed program was:" >&5
15472sed 's/^/| /' conftest.$ac_ext >&5
15473
15474  ac_header_preproc=no
15475fi
15476
15477rm -f conftest.err conftest.$ac_ext
15478{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15479echo "${ECHO_T}$ac_header_preproc" >&6; }
15480
15481# So?  What about this header?
15482case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15483  yes:no: )
15484    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15485echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15486    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15487echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15488    ac_header_preproc=yes
15489    ;;
15490  no:yes:* )
15491    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15492echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15493    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15494echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15495    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15496echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15497    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15498echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15499    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15500echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15501    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15502echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15503    ( cat <<\_ASBOX
15504## ------------------------------ ##
15505## Report this to bugs@yourdomain ##
15506## ------------------------------ ##
15507_ASBOX
15508     ) | sed "s/^/$as_me: WARNING:     /" >&2
15509    ;;
15510esac
15511{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15512echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15513if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15514  echo $ECHO_N "(cached) $ECHO_C" >&6
15515else
15516  eval "$as_ac_Header=\$ac_header_preproc"
15517fi
15518ac_res=`eval echo '${'$as_ac_Header'}'`
15519	       { echo "$as_me:$LINENO: result: $ac_res" >&5
15520echo "${ECHO_T}$ac_res" >&6; }
15521
15522fi
15523if test `eval echo '${'$as_ac_Header'}'` = yes; then
15524  cat >>confdefs.h <<_ACEOF
15525#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15526_ACEOF
15527 HAVE_PTHREAD=1
15528
15529else
15530  HAVE_PTHREAD=0
15531
15532fi
15533
15534done
15535
15536else
15537  HAVE_PTHREAD=0
15538
15539fi
15540
15541if test "$llvm_cv_enable_libffi" = "yes" ; then
15542
15543
15544for ac_header in ffi.h ffi/ffi.h
15545do
15546as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15547if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15548  { echo "$as_me:$LINENO: checking for $ac_header" >&5
15549echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15550if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15551  echo $ECHO_N "(cached) $ECHO_C" >&6
15552fi
15553ac_res=`eval echo '${'$as_ac_Header'}'`
15554	       { echo "$as_me:$LINENO: result: $ac_res" >&5
15555echo "${ECHO_T}$ac_res" >&6; }
15556else
15557  # Is the header compilable?
15558{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15559echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15560cat >conftest.$ac_ext <<_ACEOF
15561/* confdefs.h.  */
15562_ACEOF
15563cat confdefs.h >>conftest.$ac_ext
15564cat >>conftest.$ac_ext <<_ACEOF
15565/* end confdefs.h.  */
15566$ac_includes_default
15567#include <$ac_header>
15568_ACEOF
15569rm -f conftest.$ac_objext
15570if { (ac_try="$ac_compile"
15571case "(($ac_try" in
15572  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15573  *) ac_try_echo=$ac_try;;
15574esac
15575eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15576  (eval "$ac_compile") 2>conftest.er1
15577  ac_status=$?
15578  grep -v '^ *+' conftest.er1 >conftest.err
15579  rm -f conftest.er1
15580  cat conftest.err >&5
15581  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15582  (exit $ac_status); } &&
15583	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15584  { (case "(($ac_try" in
15585  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15586  *) ac_try_echo=$ac_try;;
15587esac
15588eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15589  (eval "$ac_try") 2>&5
15590  ac_status=$?
15591  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15592  (exit $ac_status); }; } &&
15593	 { ac_try='test -s conftest.$ac_objext'
15594  { (case "(($ac_try" in
15595  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15596  *) ac_try_echo=$ac_try;;
15597esac
15598eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15599  (eval "$ac_try") 2>&5
15600  ac_status=$?
15601  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15602  (exit $ac_status); }; }; then
15603  ac_header_compiler=yes
15604else
15605  echo "$as_me: failed program was:" >&5
15606sed 's/^/| /' conftest.$ac_ext >&5
15607
15608	ac_header_compiler=no
15609fi
15610
15611rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15612{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15613echo "${ECHO_T}$ac_header_compiler" >&6; }
15614
15615# Is the header present?
15616{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15617echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15618cat >conftest.$ac_ext <<_ACEOF
15619/* confdefs.h.  */
15620_ACEOF
15621cat confdefs.h >>conftest.$ac_ext
15622cat >>conftest.$ac_ext <<_ACEOF
15623/* end confdefs.h.  */
15624#include <$ac_header>
15625_ACEOF
15626if { (ac_try="$ac_cpp conftest.$ac_ext"
15627case "(($ac_try" in
15628  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15629  *) ac_try_echo=$ac_try;;
15630esac
15631eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15632  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15633  ac_status=$?
15634  grep -v '^ *+' conftest.er1 >conftest.err
15635  rm -f conftest.er1
15636  cat conftest.err >&5
15637  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15638  (exit $ac_status); } >/dev/null; then
15639  if test -s conftest.err; then
15640    ac_cpp_err=$ac_c_preproc_warn_flag
15641    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15642  else
15643    ac_cpp_err=
15644  fi
15645else
15646  ac_cpp_err=yes
15647fi
15648if test -z "$ac_cpp_err"; then
15649  ac_header_preproc=yes
15650else
15651  echo "$as_me: failed program was:" >&5
15652sed 's/^/| /' conftest.$ac_ext >&5
15653
15654  ac_header_preproc=no
15655fi
15656
15657rm -f conftest.err conftest.$ac_ext
15658{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15659echo "${ECHO_T}$ac_header_preproc" >&6; }
15660
15661# So?  What about this header?
15662case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15663  yes:no: )
15664    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15665echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15666    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15667echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15668    ac_header_preproc=yes
15669    ;;
15670  no:yes:* )
15671    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15672echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15673    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15674echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15675    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15676echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15677    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15678echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15679    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15680echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15681    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15682echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15683    ( cat <<\_ASBOX
15684## ------------------------------ ##
15685## Report this to bugs@yourdomain ##
15686## ------------------------------ ##
15687_ASBOX
15688     ) | sed "s/^/$as_me: WARNING:     /" >&2
15689    ;;
15690esac
15691{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15692echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15693if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15694  echo $ECHO_N "(cached) $ECHO_C" >&6
15695else
15696  eval "$as_ac_Header=\$ac_header_preproc"
15697fi
15698ac_res=`eval echo '${'$as_ac_Header'}'`
15699	       { echo "$as_me:$LINENO: result: $ac_res" >&5
15700echo "${ECHO_T}$ac_res" >&6; }
15701
15702fi
15703if test `eval echo '${'$as_ac_Header'}'` = yes; then
15704  cat >>confdefs.h <<_ACEOF
15705#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15706_ACEOF
15707
15708fi
15709
15710done
15711
15712fi
15713
15714
15715for ac_header in CrashReporterClient.h
15716do
15717as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15718if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15719  { echo "$as_me:$LINENO: checking for $ac_header" >&5
15720echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15721if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15722  echo $ECHO_N "(cached) $ECHO_C" >&6
15723fi
15724ac_res=`eval echo '${'$as_ac_Header'}'`
15725	       { echo "$as_me:$LINENO: result: $ac_res" >&5
15726echo "${ECHO_T}$ac_res" >&6; }
15727else
15728  # Is the header compilable?
15729{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15730echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15731cat >conftest.$ac_ext <<_ACEOF
15732/* confdefs.h.  */
15733_ACEOF
15734cat confdefs.h >>conftest.$ac_ext
15735cat >>conftest.$ac_ext <<_ACEOF
15736/* end confdefs.h.  */
15737$ac_includes_default
15738#include <$ac_header>
15739_ACEOF
15740rm -f conftest.$ac_objext
15741if { (ac_try="$ac_compile"
15742case "(($ac_try" in
15743  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15744  *) ac_try_echo=$ac_try;;
15745esac
15746eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15747  (eval "$ac_compile") 2>conftest.er1
15748  ac_status=$?
15749  grep -v '^ *+' conftest.er1 >conftest.err
15750  rm -f conftest.er1
15751  cat conftest.err >&5
15752  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15753  (exit $ac_status); } &&
15754	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15755  { (case "(($ac_try" in
15756  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15757  *) ac_try_echo=$ac_try;;
15758esac
15759eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15760  (eval "$ac_try") 2>&5
15761  ac_status=$?
15762  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15763  (exit $ac_status); }; } &&
15764	 { ac_try='test -s conftest.$ac_objext'
15765  { (case "(($ac_try" in
15766  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15767  *) ac_try_echo=$ac_try;;
15768esac
15769eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15770  (eval "$ac_try") 2>&5
15771  ac_status=$?
15772  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15773  (exit $ac_status); }; }; then
15774  ac_header_compiler=yes
15775else
15776  echo "$as_me: failed program was:" >&5
15777sed 's/^/| /' conftest.$ac_ext >&5
15778
15779	ac_header_compiler=no
15780fi
15781
15782rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15783{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15784echo "${ECHO_T}$ac_header_compiler" >&6; }
15785
15786# Is the header present?
15787{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15788echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15789cat >conftest.$ac_ext <<_ACEOF
15790/* confdefs.h.  */
15791_ACEOF
15792cat confdefs.h >>conftest.$ac_ext
15793cat >>conftest.$ac_ext <<_ACEOF
15794/* end confdefs.h.  */
15795#include <$ac_header>
15796_ACEOF
15797if { (ac_try="$ac_cpp conftest.$ac_ext"
15798case "(($ac_try" in
15799  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15800  *) ac_try_echo=$ac_try;;
15801esac
15802eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15803  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15804  ac_status=$?
15805  grep -v '^ *+' conftest.er1 >conftest.err
15806  rm -f conftest.er1
15807  cat conftest.err >&5
15808  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15809  (exit $ac_status); } >/dev/null; then
15810  if test -s conftest.err; then
15811    ac_cpp_err=$ac_c_preproc_warn_flag
15812    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15813  else
15814    ac_cpp_err=
15815  fi
15816else
15817  ac_cpp_err=yes
15818fi
15819if test -z "$ac_cpp_err"; then
15820  ac_header_preproc=yes
15821else
15822  echo "$as_me: failed program was:" >&5
15823sed 's/^/| /' conftest.$ac_ext >&5
15824
15825  ac_header_preproc=no
15826fi
15827
15828rm -f conftest.err conftest.$ac_ext
15829{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15830echo "${ECHO_T}$ac_header_preproc" >&6; }
15831
15832# So?  What about this header?
15833case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15834  yes:no: )
15835    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15836echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15837    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15838echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15839    ac_header_preproc=yes
15840    ;;
15841  no:yes:* )
15842    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15843echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15844    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15845echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15846    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15847echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15848    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15849echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15850    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15851echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15852    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15853echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15854    ( cat <<\_ASBOX
15855## ------------------------------ ##
15856## Report this to bugs@yourdomain ##
15857## ------------------------------ ##
15858_ASBOX
15859     ) | sed "s/^/$as_me: WARNING:     /" >&2
15860    ;;
15861esac
15862{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15863echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15864if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15865  echo $ECHO_N "(cached) $ECHO_C" >&6
15866else
15867  eval "$as_ac_Header=\$ac_header_preproc"
15868fi
15869ac_res=`eval echo '${'$as_ac_Header'}'`
15870	       { echo "$as_me:$LINENO: result: $ac_res" >&5
15871echo "${ECHO_T}$ac_res" >&6; }
15872
15873fi
15874if test `eval echo '${'$as_ac_Header'}'` = yes; then
15875  cat >>confdefs.h <<_ACEOF
15876#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15877_ACEOF
15878
15879fi
15880
15881done
15882
15883
15884{ echo "$as_me:$LINENO: checking __crashreporter_info__" >&5
15885echo $ECHO_N "checking __crashreporter_info__... $ECHO_C" >&6; }
15886cat >conftest.$ac_ext <<_ACEOF
15887/* confdefs.h.  */
15888_ACEOF
15889cat confdefs.h >>conftest.$ac_ext
15890cat >>conftest.$ac_ext <<_ACEOF
15891/* end confdefs.h.  */
15892extern const char *__crashreporter_info__;
15893      int main() {
15894        __crashreporter_info__ = "test";
15895        return 0;
15896      }
15897
15898_ACEOF
15899rm -f conftest.$ac_objext conftest$ac_exeext
15900if { (ac_try="$ac_link"
15901case "(($ac_try" in
15902  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15903  *) ac_try_echo=$ac_try;;
15904esac
15905eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15906  (eval "$ac_link") 2>conftest.er1
15907  ac_status=$?
15908  grep -v '^ *+' conftest.er1 >conftest.err
15909  rm -f conftest.er1
15910  cat conftest.err >&5
15911  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15912  (exit $ac_status); } &&
15913	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15914  { (case "(($ac_try" in
15915  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15916  *) ac_try_echo=$ac_try;;
15917esac
15918eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15919  (eval "$ac_try") 2>&5
15920  ac_status=$?
15921  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15922  (exit $ac_status); }; } &&
15923	 { ac_try='test -s conftest$ac_exeext'
15924  { (case "(($ac_try" in
15925  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15926  *) ac_try_echo=$ac_try;;
15927esac
15928eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15929  (eval "$ac_try") 2>&5
15930  ac_status=$?
15931  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15932  (exit $ac_status); }; }; then
15933  { echo "$as_me:$LINENO: result: yes" >&5
15934echo "${ECHO_T}yes" >&6; }
15935
15936cat >>confdefs.h <<\_ACEOF
15937#define HAVE_CRASHREPORTER_INFO 1
15938_ACEOF
15939
15940else
15941  echo "$as_me: failed program was:" >&5
15942sed 's/^/| /' conftest.$ac_ext >&5
15943
15944	{ echo "$as_me:$LINENO: result: no" >&5
15945echo "${ECHO_T}no" >&6; }
15946
15947cat >>confdefs.h <<\_ACEOF
15948#define HAVE_CRASHREPORTER_INFO 0
15949_ACEOF
15950
15951fi
15952
15953rm -f core conftest.err conftest.$ac_objext \
15954      conftest$ac_exeext conftest.$ac_ext
15955
15956
15957
15958
15959  { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
15960echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
15961if test "${ac_cv_huge_val_sanity+set}" = set; then
15962  echo $ECHO_N "(cached) $ECHO_C" >&6
15963else
15964
15965    ac_ext=cpp
15966ac_cpp='$CXXCPP $CPPFLAGS'
15967ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15968ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15969ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15970
15971    ac_save_CXXFLAGS=$CXXFLAGS
15972    CXXFLAGS="$CXXFLAGS -pedantic"
15973    if test "$cross_compiling" = yes; then
15974  ac_cv_huge_val_sanity=yes
15975else
15976  cat >conftest.$ac_ext <<_ACEOF
15977/* confdefs.h.  */
15978_ACEOF
15979cat confdefs.h >>conftest.$ac_ext
15980cat >>conftest.$ac_ext <<_ACEOF
15981/* end confdefs.h.  */
15982#include <math.h>
15983int
15984main ()
15985{
15986double x = HUGE_VAL; return x != x;
15987  ;
15988  return 0;
15989}
15990_ACEOF
15991rm -f conftest$ac_exeext
15992if { (ac_try="$ac_link"
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_link") 2>&5
15999  ac_status=$?
16000  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16001  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16002  { (case "(($ac_try" in
16003  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16004  *) ac_try_echo=$ac_try;;
16005esac
16006eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16007  (eval "$ac_try") 2>&5
16008  ac_status=$?
16009  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16010  (exit $ac_status); }; }; then
16011  ac_cv_huge_val_sanity=yes
16012else
16013  echo "$as_me: program exited with status $ac_status" >&5
16014echo "$as_me: failed program was:" >&5
16015sed 's/^/| /' conftest.$ac_ext >&5
16016
16017( exit $ac_status )
16018ac_cv_huge_val_sanity=no
16019fi
16020rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16021fi
16022
16023
16024    CXXFLAGS=$ac_save_CXXFLAGS
16025    ac_ext=c
16026ac_cpp='$CPP $CPPFLAGS'
16027ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16028ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16029ac_compiler_gnu=$ac_cv_c_compiler_gnu
16030
16031
16032fi
16033{ echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
16034echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
16035  HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
16036
16037
16038{ echo "$as_me:$LINENO: checking for pid_t" >&5
16039echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
16040if test "${ac_cv_type_pid_t+set}" = set; then
16041  echo $ECHO_N "(cached) $ECHO_C" >&6
16042else
16043  cat >conftest.$ac_ext <<_ACEOF
16044/* confdefs.h.  */
16045_ACEOF
16046cat confdefs.h >>conftest.$ac_ext
16047cat >>conftest.$ac_ext <<_ACEOF
16048/* end confdefs.h.  */
16049$ac_includes_default
16050typedef pid_t ac__type_new_;
16051int
16052main ()
16053{
16054if ((ac__type_new_ *) 0)
16055  return 0;
16056if (sizeof (ac__type_new_))
16057  return 0;
16058  ;
16059  return 0;
16060}
16061_ACEOF
16062rm -f conftest.$ac_objext
16063if { (ac_try="$ac_compile"
16064case "(($ac_try" in
16065  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16066  *) ac_try_echo=$ac_try;;
16067esac
16068eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16069  (eval "$ac_compile") 2>conftest.er1
16070  ac_status=$?
16071  grep -v '^ *+' conftest.er1 >conftest.err
16072  rm -f conftest.er1
16073  cat conftest.err >&5
16074  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16075  (exit $ac_status); } &&
16076	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16077  { (case "(($ac_try" in
16078  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16079  *) ac_try_echo=$ac_try;;
16080esac
16081eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16082  (eval "$ac_try") 2>&5
16083  ac_status=$?
16084  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16085  (exit $ac_status); }; } &&
16086	 { ac_try='test -s conftest.$ac_objext'
16087  { (case "(($ac_try" in
16088  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16089  *) ac_try_echo=$ac_try;;
16090esac
16091eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16092  (eval "$ac_try") 2>&5
16093  ac_status=$?
16094  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16095  (exit $ac_status); }; }; then
16096  ac_cv_type_pid_t=yes
16097else
16098  echo "$as_me: failed program was:" >&5
16099sed 's/^/| /' conftest.$ac_ext >&5
16100
16101	ac_cv_type_pid_t=no
16102fi
16103
16104rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16105fi
16106{ echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
16107echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
16108if test $ac_cv_type_pid_t = yes; then
16109  :
16110else
16111
16112cat >>confdefs.h <<_ACEOF
16113#define pid_t int
16114_ACEOF
16115
16116fi
16117
16118{ echo "$as_me:$LINENO: checking for size_t" >&5
16119echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
16120if test "${ac_cv_type_size_t+set}" = set; then
16121  echo $ECHO_N "(cached) $ECHO_C" >&6
16122else
16123  cat >conftest.$ac_ext <<_ACEOF
16124/* confdefs.h.  */
16125_ACEOF
16126cat confdefs.h >>conftest.$ac_ext
16127cat >>conftest.$ac_ext <<_ACEOF
16128/* end confdefs.h.  */
16129$ac_includes_default
16130typedef size_t ac__type_new_;
16131int
16132main ()
16133{
16134if ((ac__type_new_ *) 0)
16135  return 0;
16136if (sizeof (ac__type_new_))
16137  return 0;
16138  ;
16139  return 0;
16140}
16141_ACEOF
16142rm -f conftest.$ac_objext
16143if { (ac_try="$ac_compile"
16144case "(($ac_try" in
16145  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16146  *) ac_try_echo=$ac_try;;
16147esac
16148eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16149  (eval "$ac_compile") 2>conftest.er1
16150  ac_status=$?
16151  grep -v '^ *+' conftest.er1 >conftest.err
16152  rm -f conftest.er1
16153  cat conftest.err >&5
16154  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16155  (exit $ac_status); } &&
16156	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16157  { (case "(($ac_try" in
16158  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16159  *) ac_try_echo=$ac_try;;
16160esac
16161eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16162  (eval "$ac_try") 2>&5
16163  ac_status=$?
16164  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16165  (exit $ac_status); }; } &&
16166	 { ac_try='test -s conftest.$ac_objext'
16167  { (case "(($ac_try" in
16168  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16169  *) ac_try_echo=$ac_try;;
16170esac
16171eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16172  (eval "$ac_try") 2>&5
16173  ac_status=$?
16174  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16175  (exit $ac_status); }; }; then
16176  ac_cv_type_size_t=yes
16177else
16178  echo "$as_me: failed program was:" >&5
16179sed 's/^/| /' conftest.$ac_ext >&5
16180
16181	ac_cv_type_size_t=no
16182fi
16183
16184rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16185fi
16186{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
16187echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
16188if test $ac_cv_type_size_t = yes; then
16189  :
16190else
16191
16192cat >>confdefs.h <<_ACEOF
16193#define size_t unsigned int
16194_ACEOF
16195
16196fi
16197
16198
16199cat >>confdefs.h <<_ACEOF
16200#define RETSIGTYPE void
16201_ACEOF
16202
16203{ echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
16204echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
16205if test "${ac_cv_struct_tm+set}" = set; then
16206  echo $ECHO_N "(cached) $ECHO_C" >&6
16207else
16208  cat >conftest.$ac_ext <<_ACEOF
16209/* confdefs.h.  */
16210_ACEOF
16211cat confdefs.h >>conftest.$ac_ext
16212cat >>conftest.$ac_ext <<_ACEOF
16213/* end confdefs.h.  */
16214#include <sys/types.h>
16215#include <time.h>
16216
16217int
16218main ()
16219{
16220struct tm *tp; tp->tm_sec;
16221  ;
16222  return 0;
16223}
16224_ACEOF
16225rm -f conftest.$ac_objext
16226if { (ac_try="$ac_compile"
16227case "(($ac_try" in
16228  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16229  *) ac_try_echo=$ac_try;;
16230esac
16231eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16232  (eval "$ac_compile") 2>conftest.er1
16233  ac_status=$?
16234  grep -v '^ *+' conftest.er1 >conftest.err
16235  rm -f conftest.er1
16236  cat conftest.err >&5
16237  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16238  (exit $ac_status); } &&
16239	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16240  { (case "(($ac_try" in
16241  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16242  *) ac_try_echo=$ac_try;;
16243esac
16244eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16245  (eval "$ac_try") 2>&5
16246  ac_status=$?
16247  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16248  (exit $ac_status); }; } &&
16249	 { ac_try='test -s conftest.$ac_objext'
16250  { (case "(($ac_try" in
16251  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16252  *) ac_try_echo=$ac_try;;
16253esac
16254eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16255  (eval "$ac_try") 2>&5
16256  ac_status=$?
16257  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16258  (exit $ac_status); }; }; then
16259  ac_cv_struct_tm=time.h
16260else
16261  echo "$as_me: failed program was:" >&5
16262sed 's/^/| /' conftest.$ac_ext >&5
16263
16264	ac_cv_struct_tm=sys/time.h
16265fi
16266
16267rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16268fi
16269{ echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
16270echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
16271if test $ac_cv_struct_tm = sys/time.h; then
16272
16273cat >>confdefs.h <<\_ACEOF
16274#define TM_IN_SYS_TIME 1
16275_ACEOF
16276
16277fi
16278
16279{ echo "$as_me:$LINENO: checking for int64_t" >&5
16280echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
16281if test "${ac_cv_type_int64_t+set}" = set; then
16282  echo $ECHO_N "(cached) $ECHO_C" >&6
16283else
16284  cat >conftest.$ac_ext <<_ACEOF
16285/* confdefs.h.  */
16286_ACEOF
16287cat confdefs.h >>conftest.$ac_ext
16288cat >>conftest.$ac_ext <<_ACEOF
16289/* end confdefs.h.  */
16290$ac_includes_default
16291typedef int64_t ac__type_new_;
16292int
16293main ()
16294{
16295if ((ac__type_new_ *) 0)
16296  return 0;
16297if (sizeof (ac__type_new_))
16298  return 0;
16299  ;
16300  return 0;
16301}
16302_ACEOF
16303rm -f conftest.$ac_objext
16304if { (ac_try="$ac_compile"
16305case "(($ac_try" in
16306  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16307  *) ac_try_echo=$ac_try;;
16308esac
16309eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16310  (eval "$ac_compile") 2>conftest.er1
16311  ac_status=$?
16312  grep -v '^ *+' conftest.er1 >conftest.err
16313  rm -f conftest.er1
16314  cat conftest.err >&5
16315  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16316  (exit $ac_status); } &&
16317	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16318  { (case "(($ac_try" in
16319  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16320  *) ac_try_echo=$ac_try;;
16321esac
16322eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16323  (eval "$ac_try") 2>&5
16324  ac_status=$?
16325  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16326  (exit $ac_status); }; } &&
16327	 { ac_try='test -s conftest.$ac_objext'
16328  { (case "(($ac_try" in
16329  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16330  *) ac_try_echo=$ac_try;;
16331esac
16332eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16333  (eval "$ac_try") 2>&5
16334  ac_status=$?
16335  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16336  (exit $ac_status); }; }; then
16337  ac_cv_type_int64_t=yes
16338else
16339  echo "$as_me: failed program was:" >&5
16340sed 's/^/| /' conftest.$ac_ext >&5
16341
16342	ac_cv_type_int64_t=no
16343fi
16344
16345rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16346fi
16347{ echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
16348echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
16349if test $ac_cv_type_int64_t = yes; then
16350
16351cat >>confdefs.h <<_ACEOF
16352#define HAVE_INT64_T 1
16353_ACEOF
16354
16355
16356else
16357  { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
16358echo "$as_me: error: Type int64_t required but not found" >&2;}
16359   { (exit 1); exit 1; }; }
16360fi
16361
16362{ echo "$as_me:$LINENO: checking for uint64_t" >&5
16363echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
16364if test "${ac_cv_type_uint64_t+set}" = set; then
16365  echo $ECHO_N "(cached) $ECHO_C" >&6
16366else
16367  cat >conftest.$ac_ext <<_ACEOF
16368/* confdefs.h.  */
16369_ACEOF
16370cat confdefs.h >>conftest.$ac_ext
16371cat >>conftest.$ac_ext <<_ACEOF
16372/* end confdefs.h.  */
16373$ac_includes_default
16374typedef uint64_t ac__type_new_;
16375int
16376main ()
16377{
16378if ((ac__type_new_ *) 0)
16379  return 0;
16380if (sizeof (ac__type_new_))
16381  return 0;
16382  ;
16383  return 0;
16384}
16385_ACEOF
16386rm -f conftest.$ac_objext
16387if { (ac_try="$ac_compile"
16388case "(($ac_try" in
16389  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16390  *) ac_try_echo=$ac_try;;
16391esac
16392eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16393  (eval "$ac_compile") 2>conftest.er1
16394  ac_status=$?
16395  grep -v '^ *+' conftest.er1 >conftest.err
16396  rm -f conftest.er1
16397  cat conftest.err >&5
16398  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16399  (exit $ac_status); } &&
16400	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16401  { (case "(($ac_try" in
16402  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16403  *) ac_try_echo=$ac_try;;
16404esac
16405eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16406  (eval "$ac_try") 2>&5
16407  ac_status=$?
16408  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16409  (exit $ac_status); }; } &&
16410	 { ac_try='test -s conftest.$ac_objext'
16411  { (case "(($ac_try" in
16412  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16413  *) ac_try_echo=$ac_try;;
16414esac
16415eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16416  (eval "$ac_try") 2>&5
16417  ac_status=$?
16418  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16419  (exit $ac_status); }; }; then
16420  ac_cv_type_uint64_t=yes
16421else
16422  echo "$as_me: failed program was:" >&5
16423sed 's/^/| /' conftest.$ac_ext >&5
16424
16425	ac_cv_type_uint64_t=no
16426fi
16427
16428rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16429fi
16430{ echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
16431echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
16432if test $ac_cv_type_uint64_t = yes; then
16433
16434cat >>confdefs.h <<_ACEOF
16435#define HAVE_UINT64_T 1
16436_ACEOF
16437
16438
16439else
16440  { echo "$as_me:$LINENO: checking for u_int64_t" >&5
16441echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
16442if test "${ac_cv_type_u_int64_t+set}" = set; then
16443  echo $ECHO_N "(cached) $ECHO_C" >&6
16444else
16445  cat >conftest.$ac_ext <<_ACEOF
16446/* confdefs.h.  */
16447_ACEOF
16448cat confdefs.h >>conftest.$ac_ext
16449cat >>conftest.$ac_ext <<_ACEOF
16450/* end confdefs.h.  */
16451$ac_includes_default
16452typedef u_int64_t ac__type_new_;
16453int
16454main ()
16455{
16456if ((ac__type_new_ *) 0)
16457  return 0;
16458if (sizeof (ac__type_new_))
16459  return 0;
16460  ;
16461  return 0;
16462}
16463_ACEOF
16464rm -f conftest.$ac_objext
16465if { (ac_try="$ac_compile"
16466case "(($ac_try" in
16467  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16468  *) ac_try_echo=$ac_try;;
16469esac
16470eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16471  (eval "$ac_compile") 2>conftest.er1
16472  ac_status=$?
16473  grep -v '^ *+' conftest.er1 >conftest.err
16474  rm -f conftest.er1
16475  cat conftest.err >&5
16476  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16477  (exit $ac_status); } &&
16478	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16479  { (case "(($ac_try" in
16480  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16481  *) ac_try_echo=$ac_try;;
16482esac
16483eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16484  (eval "$ac_try") 2>&5
16485  ac_status=$?
16486  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16487  (exit $ac_status); }; } &&
16488	 { ac_try='test -s conftest.$ac_objext'
16489  { (case "(($ac_try" in
16490  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16491  *) ac_try_echo=$ac_try;;
16492esac
16493eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16494  (eval "$ac_try") 2>&5
16495  ac_status=$?
16496  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16497  (exit $ac_status); }; }; then
16498  ac_cv_type_u_int64_t=yes
16499else
16500  echo "$as_me: failed program was:" >&5
16501sed 's/^/| /' conftest.$ac_ext >&5
16502
16503	ac_cv_type_u_int64_t=no
16504fi
16505
16506rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16507fi
16508{ echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
16509echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
16510if test $ac_cv_type_u_int64_t = yes; then
16511
16512cat >>confdefs.h <<_ACEOF
16513#define HAVE_U_INT64_T 1
16514_ACEOF
16515
16516
16517else
16518  { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
16519echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
16520   { (exit 1); exit 1; }; }
16521fi
16522
16523fi
16524
16525
16526
16527
16528
16529
16530
16531
16532
16533
16534for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
16535do
16536as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16537{ echo "$as_me:$LINENO: checking for $ac_func" >&5
16538echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16539if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16540  echo $ECHO_N "(cached) $ECHO_C" >&6
16541else
16542  cat >conftest.$ac_ext <<_ACEOF
16543/* confdefs.h.  */
16544_ACEOF
16545cat confdefs.h >>conftest.$ac_ext
16546cat >>conftest.$ac_ext <<_ACEOF
16547/* end confdefs.h.  */
16548/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16549   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16550#define $ac_func innocuous_$ac_func
16551
16552/* System header to define __stub macros and hopefully few prototypes,
16553    which can conflict with char $ac_func (); below.
16554    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16555    <limits.h> exists even on freestanding compilers.  */
16556
16557#ifdef __STDC__
16558# include <limits.h>
16559#else
16560# include <assert.h>
16561#endif
16562
16563#undef $ac_func
16564
16565/* Override any GCC internal prototype to avoid an error.
16566   Use char because int might match the return type of a GCC
16567   builtin and then its argument prototype would still apply.  */
16568#ifdef __cplusplus
16569extern "C"
16570#endif
16571char $ac_func ();
16572/* The GNU C library defines this for functions which it implements
16573    to always fail with ENOSYS.  Some functions are actually named
16574    something starting with __ and the normal name is an alias.  */
16575#if defined __stub_$ac_func || defined __stub___$ac_func
16576choke me
16577#endif
16578
16579int
16580main ()
16581{
16582return $ac_func ();
16583  ;
16584  return 0;
16585}
16586_ACEOF
16587rm -f conftest.$ac_objext conftest$ac_exeext
16588if { (ac_try="$ac_link"
16589case "(($ac_try" in
16590  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16591  *) ac_try_echo=$ac_try;;
16592esac
16593eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16594  (eval "$ac_link") 2>conftest.er1
16595  ac_status=$?
16596  grep -v '^ *+' conftest.er1 >conftest.err
16597  rm -f conftest.er1
16598  cat conftest.err >&5
16599  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16600  (exit $ac_status); } &&
16601	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16602  { (case "(($ac_try" in
16603  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16604  *) ac_try_echo=$ac_try;;
16605esac
16606eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16607  (eval "$ac_try") 2>&5
16608  ac_status=$?
16609  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16610  (exit $ac_status); }; } &&
16611	 { ac_try='test -s conftest$ac_exeext'
16612  { (case "(($ac_try" in
16613  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16614  *) ac_try_echo=$ac_try;;
16615esac
16616eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16617  (eval "$ac_try") 2>&5
16618  ac_status=$?
16619  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16620  (exit $ac_status); }; }; then
16621  eval "$as_ac_var=yes"
16622else
16623  echo "$as_me: failed program was:" >&5
16624sed 's/^/| /' conftest.$ac_ext >&5
16625
16626	eval "$as_ac_var=no"
16627fi
16628
16629rm -f core conftest.err conftest.$ac_objext \
16630      conftest$ac_exeext conftest.$ac_ext
16631fi
16632ac_res=`eval echo '${'$as_ac_var'}'`
16633	       { echo "$as_me:$LINENO: result: $ac_res" >&5
16634echo "${ECHO_T}$ac_res" >&6; }
16635if test `eval echo '${'$as_ac_var'}'` = yes; then
16636  cat >>confdefs.h <<_ACEOF
16637#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16638_ACEOF
16639
16640fi
16641done
16642
16643
16644
16645
16646
16647for ac_func in powf fmodf strtof round
16648do
16649as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16650{ echo "$as_me:$LINENO: checking for $ac_func" >&5
16651echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16652if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16653  echo $ECHO_N "(cached) $ECHO_C" >&6
16654else
16655  cat >conftest.$ac_ext <<_ACEOF
16656/* confdefs.h.  */
16657_ACEOF
16658cat confdefs.h >>conftest.$ac_ext
16659cat >>conftest.$ac_ext <<_ACEOF
16660/* end confdefs.h.  */
16661/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16662   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16663#define $ac_func innocuous_$ac_func
16664
16665/* System header to define __stub macros and hopefully few prototypes,
16666    which can conflict with char $ac_func (); below.
16667    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16668    <limits.h> exists even on freestanding compilers.  */
16669
16670#ifdef __STDC__
16671# include <limits.h>
16672#else
16673# include <assert.h>
16674#endif
16675
16676#undef $ac_func
16677
16678/* Override any GCC internal prototype to avoid an error.
16679   Use char because int might match the return type of a GCC
16680   builtin and then its argument prototype would still apply.  */
16681#ifdef __cplusplus
16682extern "C"
16683#endif
16684char $ac_func ();
16685/* The GNU C library defines this for functions which it implements
16686    to always fail with ENOSYS.  Some functions are actually named
16687    something starting with __ and the normal name is an alias.  */
16688#if defined __stub_$ac_func || defined __stub___$ac_func
16689choke me
16690#endif
16691
16692int
16693main ()
16694{
16695return $ac_func ();
16696  ;
16697  return 0;
16698}
16699_ACEOF
16700rm -f conftest.$ac_objext conftest$ac_exeext
16701if { (ac_try="$ac_link"
16702case "(($ac_try" in
16703  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16704  *) ac_try_echo=$ac_try;;
16705esac
16706eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16707  (eval "$ac_link") 2>conftest.er1
16708  ac_status=$?
16709  grep -v '^ *+' conftest.er1 >conftest.err
16710  rm -f conftest.er1
16711  cat conftest.err >&5
16712  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16713  (exit $ac_status); } &&
16714	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16715  { (case "(($ac_try" in
16716  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16717  *) ac_try_echo=$ac_try;;
16718esac
16719eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16720  (eval "$ac_try") 2>&5
16721  ac_status=$?
16722  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16723  (exit $ac_status); }; } &&
16724	 { ac_try='test -s conftest$ac_exeext'
16725  { (case "(($ac_try" in
16726  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16727  *) ac_try_echo=$ac_try;;
16728esac
16729eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16730  (eval "$ac_try") 2>&5
16731  ac_status=$?
16732  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16733  (exit $ac_status); }; }; then
16734  eval "$as_ac_var=yes"
16735else
16736  echo "$as_me: failed program was:" >&5
16737sed 's/^/| /' conftest.$ac_ext >&5
16738
16739	eval "$as_ac_var=no"
16740fi
16741
16742rm -f core conftest.err conftest.$ac_objext \
16743      conftest$ac_exeext conftest.$ac_ext
16744fi
16745ac_res=`eval echo '${'$as_ac_var'}'`
16746	       { echo "$as_me:$LINENO: result: $ac_res" >&5
16747echo "${ECHO_T}$ac_res" >&6; }
16748if test `eval echo '${'$as_ac_var'}'` = yes; then
16749  cat >>confdefs.h <<_ACEOF
16750#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16751_ACEOF
16752
16753fi
16754done
16755
16756
16757
16758
16759
16760
16761for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
16762do
16763as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16764{ echo "$as_me:$LINENO: checking for $ac_func" >&5
16765echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16766if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16767  echo $ECHO_N "(cached) $ECHO_C" >&6
16768else
16769  cat >conftest.$ac_ext <<_ACEOF
16770/* confdefs.h.  */
16771_ACEOF
16772cat confdefs.h >>conftest.$ac_ext
16773cat >>conftest.$ac_ext <<_ACEOF
16774/* end confdefs.h.  */
16775/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16776   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16777#define $ac_func innocuous_$ac_func
16778
16779/* System header to define __stub macros and hopefully few prototypes,
16780    which can conflict with char $ac_func (); below.
16781    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16782    <limits.h> exists even on freestanding compilers.  */
16783
16784#ifdef __STDC__
16785# include <limits.h>
16786#else
16787# include <assert.h>
16788#endif
16789
16790#undef $ac_func
16791
16792/* Override any GCC internal prototype to avoid an error.
16793   Use char because int might match the return type of a GCC
16794   builtin and then its argument prototype would still apply.  */
16795#ifdef __cplusplus
16796extern "C"
16797#endif
16798char $ac_func ();
16799/* The GNU C library defines this for functions which it implements
16800    to always fail with ENOSYS.  Some functions are actually named
16801    something starting with __ and the normal name is an alias.  */
16802#if defined __stub_$ac_func || defined __stub___$ac_func
16803choke me
16804#endif
16805
16806int
16807main ()
16808{
16809return $ac_func ();
16810  ;
16811  return 0;
16812}
16813_ACEOF
16814rm -f conftest.$ac_objext conftest$ac_exeext
16815if { (ac_try="$ac_link"
16816case "(($ac_try" in
16817  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16818  *) ac_try_echo=$ac_try;;
16819esac
16820eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16821  (eval "$ac_link") 2>conftest.er1
16822  ac_status=$?
16823  grep -v '^ *+' conftest.er1 >conftest.err
16824  rm -f conftest.er1
16825  cat conftest.err >&5
16826  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16827  (exit $ac_status); } &&
16828	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16829  { (case "(($ac_try" in
16830  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16831  *) ac_try_echo=$ac_try;;
16832esac
16833eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16834  (eval "$ac_try") 2>&5
16835  ac_status=$?
16836  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16837  (exit $ac_status); }; } &&
16838	 { ac_try='test -s conftest$ac_exeext'
16839  { (case "(($ac_try" in
16840  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16841  *) ac_try_echo=$ac_try;;
16842esac
16843eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16844  (eval "$ac_try") 2>&5
16845  ac_status=$?
16846  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16847  (exit $ac_status); }; }; then
16848  eval "$as_ac_var=yes"
16849else
16850  echo "$as_me: failed program was:" >&5
16851sed 's/^/| /' conftest.$ac_ext >&5
16852
16853	eval "$as_ac_var=no"
16854fi
16855
16856rm -f core conftest.err conftest.$ac_objext \
16857      conftest$ac_exeext conftest.$ac_ext
16858fi
16859ac_res=`eval echo '${'$as_ac_var'}'`
16860	       { echo "$as_me:$LINENO: result: $ac_res" >&5
16861echo "${ECHO_T}$ac_res" >&6; }
16862if test `eval echo '${'$as_ac_var'}'` = yes; then
16863  cat >>confdefs.h <<_ACEOF
16864#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16865_ACEOF
16866
16867fi
16868done
16869
16870
16871
16872
16873for ac_func in isatty mkdtemp mkstemp
16874do
16875as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16876{ echo "$as_me:$LINENO: checking for $ac_func" >&5
16877echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16878if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16879  echo $ECHO_N "(cached) $ECHO_C" >&6
16880else
16881  cat >conftest.$ac_ext <<_ACEOF
16882/* confdefs.h.  */
16883_ACEOF
16884cat confdefs.h >>conftest.$ac_ext
16885cat >>conftest.$ac_ext <<_ACEOF
16886/* end confdefs.h.  */
16887/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16888   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16889#define $ac_func innocuous_$ac_func
16890
16891/* System header to define __stub macros and hopefully few prototypes,
16892    which can conflict with char $ac_func (); below.
16893    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16894    <limits.h> exists even on freestanding compilers.  */
16895
16896#ifdef __STDC__
16897# include <limits.h>
16898#else
16899# include <assert.h>
16900#endif
16901
16902#undef $ac_func
16903
16904/* Override any GCC internal prototype to avoid an error.
16905   Use char because int might match the return type of a GCC
16906   builtin and then its argument prototype would still apply.  */
16907#ifdef __cplusplus
16908extern "C"
16909#endif
16910char $ac_func ();
16911/* The GNU C library defines this for functions which it implements
16912    to always fail with ENOSYS.  Some functions are actually named
16913    something starting with __ and the normal name is an alias.  */
16914#if defined __stub_$ac_func || defined __stub___$ac_func
16915choke me
16916#endif
16917
16918int
16919main ()
16920{
16921return $ac_func ();
16922  ;
16923  return 0;
16924}
16925_ACEOF
16926rm -f conftest.$ac_objext conftest$ac_exeext
16927if { (ac_try="$ac_link"
16928case "(($ac_try" in
16929  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16930  *) ac_try_echo=$ac_try;;
16931esac
16932eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16933  (eval "$ac_link") 2>conftest.er1
16934  ac_status=$?
16935  grep -v '^ *+' conftest.er1 >conftest.err
16936  rm -f conftest.er1
16937  cat conftest.err >&5
16938  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16939  (exit $ac_status); } &&
16940	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16941  { (case "(($ac_try" in
16942  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16943  *) ac_try_echo=$ac_try;;
16944esac
16945eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16946  (eval "$ac_try") 2>&5
16947  ac_status=$?
16948  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16949  (exit $ac_status); }; } &&
16950	 { ac_try='test -s conftest$ac_exeext'
16951  { (case "(($ac_try" in
16952  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16953  *) ac_try_echo=$ac_try;;
16954esac
16955eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16956  (eval "$ac_try") 2>&5
16957  ac_status=$?
16958  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16959  (exit $ac_status); }; }; then
16960  eval "$as_ac_var=yes"
16961else
16962  echo "$as_me: failed program was:" >&5
16963sed 's/^/| /' conftest.$ac_ext >&5
16964
16965	eval "$as_ac_var=no"
16966fi
16967
16968rm -f core conftest.err conftest.$ac_objext \
16969      conftest$ac_exeext conftest.$ac_ext
16970fi
16971ac_res=`eval echo '${'$as_ac_var'}'`
16972	       { echo "$as_me:$LINENO: result: $ac_res" >&5
16973echo "${ECHO_T}$ac_res" >&6; }
16974if test `eval echo '${'$as_ac_var'}'` = yes; then
16975  cat >>confdefs.h <<_ACEOF
16976#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16977_ACEOF
16978
16979fi
16980done
16981
16982
16983
16984
16985
16986
16987
16988for ac_func in mktemp posix_spawn realpath sbrk setrlimit strdup
16989do
16990as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16991{ echo "$as_me:$LINENO: checking for $ac_func" >&5
16992echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16993if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16994  echo $ECHO_N "(cached) $ECHO_C" >&6
16995else
16996  cat >conftest.$ac_ext <<_ACEOF
16997/* confdefs.h.  */
16998_ACEOF
16999cat confdefs.h >>conftest.$ac_ext
17000cat >>conftest.$ac_ext <<_ACEOF
17001/* end confdefs.h.  */
17002/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17003   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17004#define $ac_func innocuous_$ac_func
17005
17006/* System header to define __stub macros and hopefully few prototypes,
17007    which can conflict with char $ac_func (); below.
17008    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17009    <limits.h> exists even on freestanding compilers.  */
17010
17011#ifdef __STDC__
17012# include <limits.h>
17013#else
17014# include <assert.h>
17015#endif
17016
17017#undef $ac_func
17018
17019/* Override any GCC internal prototype to avoid an error.
17020   Use char because int might match the return type of a GCC
17021   builtin and then its argument prototype would still apply.  */
17022#ifdef __cplusplus
17023extern "C"
17024#endif
17025char $ac_func ();
17026/* The GNU C library defines this for functions which it implements
17027    to always fail with ENOSYS.  Some functions are actually named
17028    something starting with __ and the normal name is an alias.  */
17029#if defined __stub_$ac_func || defined __stub___$ac_func
17030choke me
17031#endif
17032
17033int
17034main ()
17035{
17036return $ac_func ();
17037  ;
17038  return 0;
17039}
17040_ACEOF
17041rm -f conftest.$ac_objext conftest$ac_exeext
17042if { (ac_try="$ac_link"
17043case "(($ac_try" in
17044  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17045  *) ac_try_echo=$ac_try;;
17046esac
17047eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17048  (eval "$ac_link") 2>conftest.er1
17049  ac_status=$?
17050  grep -v '^ *+' conftest.er1 >conftest.err
17051  rm -f conftest.er1
17052  cat conftest.err >&5
17053  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17054  (exit $ac_status); } &&
17055	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17056  { (case "(($ac_try" in
17057  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17058  *) ac_try_echo=$ac_try;;
17059esac
17060eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17061  (eval "$ac_try") 2>&5
17062  ac_status=$?
17063  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17064  (exit $ac_status); }; } &&
17065	 { ac_try='test -s conftest$ac_exeext'
17066  { (case "(($ac_try" in
17067  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17068  *) ac_try_echo=$ac_try;;
17069esac
17070eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17071  (eval "$ac_try") 2>&5
17072  ac_status=$?
17073  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17074  (exit $ac_status); }; }; then
17075  eval "$as_ac_var=yes"
17076else
17077  echo "$as_me: failed program was:" >&5
17078sed 's/^/| /' conftest.$ac_ext >&5
17079
17080	eval "$as_ac_var=no"
17081fi
17082
17083rm -f core conftest.err conftest.$ac_objext \
17084      conftest$ac_exeext conftest.$ac_ext
17085fi
17086ac_res=`eval echo '${'$as_ac_var'}'`
17087	       { echo "$as_me:$LINENO: result: $ac_res" >&5
17088echo "${ECHO_T}$ac_res" >&6; }
17089if test `eval echo '${'$as_ac_var'}'` = yes; then
17090  cat >>confdefs.h <<_ACEOF
17091#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17092_ACEOF
17093
17094fi
17095done
17096
17097
17098
17099
17100for ac_func in strerror strerror_r setenv
17101do
17102as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17103{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17104echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17105if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17106  echo $ECHO_N "(cached) $ECHO_C" >&6
17107else
17108  cat >conftest.$ac_ext <<_ACEOF
17109/* confdefs.h.  */
17110_ACEOF
17111cat confdefs.h >>conftest.$ac_ext
17112cat >>conftest.$ac_ext <<_ACEOF
17113/* end confdefs.h.  */
17114/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17115   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17116#define $ac_func innocuous_$ac_func
17117
17118/* System header to define __stub macros and hopefully few prototypes,
17119    which can conflict with char $ac_func (); below.
17120    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17121    <limits.h> exists even on freestanding compilers.  */
17122
17123#ifdef __STDC__
17124# include <limits.h>
17125#else
17126# include <assert.h>
17127#endif
17128
17129#undef $ac_func
17130
17131/* Override any GCC internal prototype to avoid an error.
17132   Use char because int might match the return type of a GCC
17133   builtin and then its argument prototype would still apply.  */
17134#ifdef __cplusplus
17135extern "C"
17136#endif
17137char $ac_func ();
17138/* The GNU C library defines this for functions which it implements
17139    to always fail with ENOSYS.  Some functions are actually named
17140    something starting with __ and the normal name is an alias.  */
17141#if defined __stub_$ac_func || defined __stub___$ac_func
17142choke me
17143#endif
17144
17145int
17146main ()
17147{
17148return $ac_func ();
17149  ;
17150  return 0;
17151}
17152_ACEOF
17153rm -f conftest.$ac_objext conftest$ac_exeext
17154if { (ac_try="$ac_link"
17155case "(($ac_try" in
17156  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17157  *) ac_try_echo=$ac_try;;
17158esac
17159eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17160  (eval "$ac_link") 2>conftest.er1
17161  ac_status=$?
17162  grep -v '^ *+' conftest.er1 >conftest.err
17163  rm -f conftest.er1
17164  cat conftest.err >&5
17165  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17166  (exit $ac_status); } &&
17167	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17168  { (case "(($ac_try" in
17169  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17170  *) ac_try_echo=$ac_try;;
17171esac
17172eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17173  (eval "$ac_try") 2>&5
17174  ac_status=$?
17175  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17176  (exit $ac_status); }; } &&
17177	 { ac_try='test -s conftest$ac_exeext'
17178  { (case "(($ac_try" in
17179  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17180  *) ac_try_echo=$ac_try;;
17181esac
17182eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17183  (eval "$ac_try") 2>&5
17184  ac_status=$?
17185  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17186  (exit $ac_status); }; }; then
17187  eval "$as_ac_var=yes"
17188else
17189  echo "$as_me: failed program was:" >&5
17190sed 's/^/| /' conftest.$ac_ext >&5
17191
17192	eval "$as_ac_var=no"
17193fi
17194
17195rm -f core conftest.err conftest.$ac_objext \
17196      conftest$ac_exeext conftest.$ac_ext
17197fi
17198ac_res=`eval echo '${'$as_ac_var'}'`
17199	       { echo "$as_me:$LINENO: result: $ac_res" >&5
17200echo "${ECHO_T}$ac_res" >&6; }
17201if test `eval echo '${'$as_ac_var'}'` = yes; then
17202  cat >>confdefs.h <<_ACEOF
17203#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17204_ACEOF
17205
17206fi
17207done
17208
17209
17210
17211
17212
17213for ac_func in strtoll strtoq sysconf malloc_zone_statistics
17214do
17215as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17216{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17217echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17218if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17219  echo $ECHO_N "(cached) $ECHO_C" >&6
17220else
17221  cat >conftest.$ac_ext <<_ACEOF
17222/* confdefs.h.  */
17223_ACEOF
17224cat confdefs.h >>conftest.$ac_ext
17225cat >>conftest.$ac_ext <<_ACEOF
17226/* end confdefs.h.  */
17227/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17228   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17229#define $ac_func innocuous_$ac_func
17230
17231/* System header to define __stub macros and hopefully few prototypes,
17232    which can conflict with char $ac_func (); below.
17233    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17234    <limits.h> exists even on freestanding compilers.  */
17235
17236#ifdef __STDC__
17237# include <limits.h>
17238#else
17239# include <assert.h>
17240#endif
17241
17242#undef $ac_func
17243
17244/* Override any GCC internal prototype to avoid an error.
17245   Use char because int might match the return type of a GCC
17246   builtin and then its argument prototype would still apply.  */
17247#ifdef __cplusplus
17248extern "C"
17249#endif
17250char $ac_func ();
17251/* The GNU C library defines this for functions which it implements
17252    to always fail with ENOSYS.  Some functions are actually named
17253    something starting with __ and the normal name is an alias.  */
17254#if defined __stub_$ac_func || defined __stub___$ac_func
17255choke me
17256#endif
17257
17258int
17259main ()
17260{
17261return $ac_func ();
17262  ;
17263  return 0;
17264}
17265_ACEOF
17266rm -f conftest.$ac_objext conftest$ac_exeext
17267if { (ac_try="$ac_link"
17268case "(($ac_try" in
17269  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17270  *) ac_try_echo=$ac_try;;
17271esac
17272eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17273  (eval "$ac_link") 2>conftest.er1
17274  ac_status=$?
17275  grep -v '^ *+' conftest.er1 >conftest.err
17276  rm -f conftest.er1
17277  cat conftest.err >&5
17278  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17279  (exit $ac_status); } &&
17280	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17281  { (case "(($ac_try" in
17282  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17283  *) ac_try_echo=$ac_try;;
17284esac
17285eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17286  (eval "$ac_try") 2>&5
17287  ac_status=$?
17288  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17289  (exit $ac_status); }; } &&
17290	 { ac_try='test -s conftest$ac_exeext'
17291  { (case "(($ac_try" in
17292  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17293  *) ac_try_echo=$ac_try;;
17294esac
17295eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17296  (eval "$ac_try") 2>&5
17297  ac_status=$?
17298  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17299  (exit $ac_status); }; }; then
17300  eval "$as_ac_var=yes"
17301else
17302  echo "$as_me: failed program was:" >&5
17303sed 's/^/| /' conftest.$ac_ext >&5
17304
17305	eval "$as_ac_var=no"
17306fi
17307
17308rm -f core conftest.err conftest.$ac_objext \
17309      conftest$ac_exeext conftest.$ac_ext
17310fi
17311ac_res=`eval echo '${'$as_ac_var'}'`
17312	       { echo "$as_me:$LINENO: result: $ac_res" >&5
17313echo "${ECHO_T}$ac_res" >&6; }
17314if test `eval echo '${'$as_ac_var'}'` = yes; then
17315  cat >>confdefs.h <<_ACEOF
17316#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17317_ACEOF
17318
17319fi
17320done
17321
17322
17323
17324
17325
17326
17327for ac_func in setjmp longjmp sigsetjmp siglongjmp writev
17328do
17329as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17330{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17331echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17332if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17333  echo $ECHO_N "(cached) $ECHO_C" >&6
17334else
17335  cat >conftest.$ac_ext <<_ACEOF
17336/* confdefs.h.  */
17337_ACEOF
17338cat confdefs.h >>conftest.$ac_ext
17339cat >>conftest.$ac_ext <<_ACEOF
17340/* end confdefs.h.  */
17341/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17342   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17343#define $ac_func innocuous_$ac_func
17344
17345/* System header to define __stub macros and hopefully few prototypes,
17346    which can conflict with char $ac_func (); below.
17347    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17348    <limits.h> exists even on freestanding compilers.  */
17349
17350#ifdef __STDC__
17351# include <limits.h>
17352#else
17353# include <assert.h>
17354#endif
17355
17356#undef $ac_func
17357
17358/* Override any GCC internal prototype to avoid an error.
17359   Use char because int might match the return type of a GCC
17360   builtin and then its argument prototype would still apply.  */
17361#ifdef __cplusplus
17362extern "C"
17363#endif
17364char $ac_func ();
17365/* The GNU C library defines this for functions which it implements
17366    to always fail with ENOSYS.  Some functions are actually named
17367    something starting with __ and the normal name is an alias.  */
17368#if defined __stub_$ac_func || defined __stub___$ac_func
17369choke me
17370#endif
17371
17372int
17373main ()
17374{
17375return $ac_func ();
17376  ;
17377  return 0;
17378}
17379_ACEOF
17380rm -f conftest.$ac_objext conftest$ac_exeext
17381if { (ac_try="$ac_link"
17382case "(($ac_try" in
17383  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17384  *) ac_try_echo=$ac_try;;
17385esac
17386eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17387  (eval "$ac_link") 2>conftest.er1
17388  ac_status=$?
17389  grep -v '^ *+' conftest.er1 >conftest.err
17390  rm -f conftest.er1
17391  cat conftest.err >&5
17392  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17393  (exit $ac_status); } &&
17394	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17395  { (case "(($ac_try" in
17396  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17397  *) ac_try_echo=$ac_try;;
17398esac
17399eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17400  (eval "$ac_try") 2>&5
17401  ac_status=$?
17402  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17403  (exit $ac_status); }; } &&
17404	 { ac_try='test -s conftest$ac_exeext'
17405  { (case "(($ac_try" in
17406  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17407  *) ac_try_echo=$ac_try;;
17408esac
17409eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17410  (eval "$ac_try") 2>&5
17411  ac_status=$?
17412  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17413  (exit $ac_status); }; }; then
17414  eval "$as_ac_var=yes"
17415else
17416  echo "$as_me: failed program was:" >&5
17417sed 's/^/| /' conftest.$ac_ext >&5
17418
17419	eval "$as_ac_var=no"
17420fi
17421
17422rm -f core conftest.err conftest.$ac_objext \
17423      conftest$ac_exeext conftest.$ac_ext
17424fi
17425ac_res=`eval echo '${'$as_ac_var'}'`
17426	       { echo "$as_me:$LINENO: result: $ac_res" >&5
17427echo "${ECHO_T}$ac_res" >&6; }
17428if test `eval echo '${'$as_ac_var'}'` = yes; then
17429  cat >>confdefs.h <<_ACEOF
17430#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17431_ACEOF
17432
17433fi
17434done
17435
17436{ echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
17437echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
17438if test "${llvm_cv_c_printf_a+set}" = set; then
17439  echo $ECHO_N "(cached) $ECHO_C" >&6
17440else
17441  ac_ext=c
17442ac_cpp='$CPP $CPPFLAGS'
17443ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17444ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17445ac_compiler_gnu=$ac_cv_c_compiler_gnu
17446
17447 if test "$cross_compiling" = yes; then
17448  llvmac_cv_c_printf_a=no
17449else
17450  cat >conftest.$ac_ext <<_ACEOF
17451
17452  /* confdefs.h.  */
17453_ACEOF
17454cat confdefs.h >>conftest.$ac_ext
17455cat >>conftest.$ac_ext <<_ACEOF
17456/* end confdefs.h.  */
17457
17458#include <stdio.h>
17459#include <stdlib.h>
17460
17461int
17462main ()
17463{
17464
17465volatile double A, B;
17466char Buffer[100];
17467A = 1;
17468A /= 10.0;
17469sprintf(Buffer, "%a", A);
17470B = atof(Buffer);
17471if (A != B)
17472  return (1);
17473if (A != 0x1.999999999999ap-4)
17474  return (1);
17475return (0);
17476  ;
17477  return 0;
17478}
17479_ACEOF
17480rm -f conftest$ac_exeext
17481if { (ac_try="$ac_link"
17482case "(($ac_try" in
17483  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17484  *) ac_try_echo=$ac_try;;
17485esac
17486eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17487  (eval "$ac_link") 2>&5
17488  ac_status=$?
17489  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17490  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17491  { (case "(($ac_try" in
17492  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17493  *) ac_try_echo=$ac_try;;
17494esac
17495eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17496  (eval "$ac_try") 2>&5
17497  ac_status=$?
17498  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17499  (exit $ac_status); }; }; then
17500  llvm_cv_c_printf_a=yes
17501else
17502  echo "$as_me: program exited with status $ac_status" >&5
17503echo "$as_me: failed program was:" >&5
17504sed 's/^/| /' conftest.$ac_ext >&5
17505
17506( exit $ac_status )
17507llvmac_cv_c_printf_a=no
17508fi
17509rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17510fi
17511
17512
17513 ac_ext=c
17514ac_cpp='$CPP $CPPFLAGS'
17515ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17516ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17517ac_compiler_gnu=$ac_cv_c_compiler_gnu
17518
17519fi
17520{ echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
17521echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
17522 if test "$llvm_cv_c_printf_a" = "yes"; then
17523
17524cat >>confdefs.h <<\_ACEOF
17525#define HAVE_PRINTF_A 1
17526_ACEOF
17527
17528 fi
17529
17530
17531{ echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
17532echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
17533if test "${ac_cv_func_rand48+set}" = set; then
17534  echo $ECHO_N "(cached) $ECHO_C" >&6
17535else
17536  ac_ext=cpp
17537ac_cpp='$CXXCPP $CPPFLAGS'
17538ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17539ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17540ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17541
17542   cat >conftest.$ac_ext <<_ACEOF
17543/* confdefs.h.  */
17544_ACEOF
17545cat confdefs.h >>conftest.$ac_ext
17546cat >>conftest.$ac_ext <<_ACEOF
17547/* end confdefs.h.  */
17548#include <stdlib.h>
17549int
17550main ()
17551{
17552srand48(0);lrand48();drand48();
17553  ;
17554  return 0;
17555}
17556_ACEOF
17557rm -f conftest.$ac_objext
17558if { (ac_try="$ac_compile"
17559case "(($ac_try" in
17560  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17561  *) ac_try_echo=$ac_try;;
17562esac
17563eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17564  (eval "$ac_compile") 2>conftest.er1
17565  ac_status=$?
17566  grep -v '^ *+' conftest.er1 >conftest.err
17567  rm -f conftest.er1
17568  cat conftest.err >&5
17569  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17570  (exit $ac_status); } &&
17571	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
17572  { (case "(($ac_try" in
17573  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17574  *) ac_try_echo=$ac_try;;
17575esac
17576eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17577  (eval "$ac_try") 2>&5
17578  ac_status=$?
17579  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17580  (exit $ac_status); }; } &&
17581	 { ac_try='test -s conftest.$ac_objext'
17582  { (case "(($ac_try" in
17583  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17584  *) ac_try_echo=$ac_try;;
17585esac
17586eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17587  (eval "$ac_try") 2>&5
17588  ac_status=$?
17589  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17590  (exit $ac_status); }; }; then
17591  ac_cv_func_rand48=yes
17592else
17593  echo "$as_me: failed program was:" >&5
17594sed 's/^/| /' conftest.$ac_ext >&5
17595
17596	ac_cv_func_rand48=no
17597fi
17598
17599rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17600  ac_ext=c
17601ac_cpp='$CPP $CPPFLAGS'
17602ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17603ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17604ac_compiler_gnu=$ac_cv_c_compiler_gnu
17605
17606fi
17607{ echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
17608echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
17609
17610if test "$ac_cv_func_rand48" = "yes" ; then
17611
17612cat >>confdefs.h <<\_ACEOF
17613#define HAVE_RAND48 1
17614_ACEOF
17615
17616fi
17617
17618
17619{ echo "$as_me:$LINENO: checking whether strerror_s is declared" >&5
17620echo $ECHO_N "checking whether strerror_s is declared... $ECHO_C" >&6; }
17621if test "${ac_cv_have_decl_strerror_s+set}" = set; then
17622  echo $ECHO_N "(cached) $ECHO_C" >&6
17623else
17624  cat >conftest.$ac_ext <<_ACEOF
17625/* confdefs.h.  */
17626_ACEOF
17627cat confdefs.h >>conftest.$ac_ext
17628cat >>conftest.$ac_ext <<_ACEOF
17629/* end confdefs.h.  */
17630$ac_includes_default
17631int
17632main ()
17633{
17634#ifndef strerror_s
17635  char *p = (char *) strerror_s;
17636  return !p;
17637#endif
17638
17639  ;
17640  return 0;
17641}
17642_ACEOF
17643rm -f conftest.$ac_objext
17644if { (ac_try="$ac_compile"
17645case "(($ac_try" in
17646  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17647  *) ac_try_echo=$ac_try;;
17648esac
17649eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17650  (eval "$ac_compile") 2>conftest.er1
17651  ac_status=$?
17652  grep -v '^ *+' conftest.er1 >conftest.err
17653  rm -f conftest.er1
17654  cat conftest.err >&5
17655  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17656  (exit $ac_status); } &&
17657	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17658  { (case "(($ac_try" in
17659  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17660  *) ac_try_echo=$ac_try;;
17661esac
17662eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17663  (eval "$ac_try") 2>&5
17664  ac_status=$?
17665  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17666  (exit $ac_status); }; } &&
17667	 { ac_try='test -s conftest.$ac_objext'
17668  { (case "(($ac_try" in
17669  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17670  *) ac_try_echo=$ac_try;;
17671esac
17672eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17673  (eval "$ac_try") 2>&5
17674  ac_status=$?
17675  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17676  (exit $ac_status); }; }; then
17677  ac_cv_have_decl_strerror_s=yes
17678else
17679  echo "$as_me: failed program was:" >&5
17680sed 's/^/| /' conftest.$ac_ext >&5
17681
17682	ac_cv_have_decl_strerror_s=no
17683fi
17684
17685rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17686fi
17687{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_s" >&5
17688echo "${ECHO_T}$ac_cv_have_decl_strerror_s" >&6; }
17689if test $ac_cv_have_decl_strerror_s = yes; then
17690
17691cat >>confdefs.h <<_ACEOF
17692#define HAVE_DECL_STRERROR_S 1
17693_ACEOF
17694
17695
17696else
17697  cat >>confdefs.h <<_ACEOF
17698#define HAVE_DECL_STRERROR_S 0
17699_ACEOF
17700
17701
17702fi
17703
17704
17705
17706if test "$llvm_cv_os_type" = "MingW" ; then
17707  { echo "$as_me:$LINENO: checking for _alloca in -lgcc" >&5
17708echo $ECHO_N "checking for _alloca in -lgcc... $ECHO_C" >&6; }
17709if test "${ac_cv_lib_gcc__alloca+set}" = set; then
17710  echo $ECHO_N "(cached) $ECHO_C" >&6
17711else
17712  ac_check_lib_save_LIBS=$LIBS
17713LIBS="-lgcc  $LIBS"
17714cat >conftest.$ac_ext <<_ACEOF
17715/* confdefs.h.  */
17716_ACEOF
17717cat confdefs.h >>conftest.$ac_ext
17718cat >>conftest.$ac_ext <<_ACEOF
17719/* end confdefs.h.  */
17720
17721/* Override any GCC internal prototype to avoid an error.
17722   Use char because int might match the return type of a GCC
17723   builtin and then its argument prototype would still apply.  */
17724#ifdef __cplusplus
17725extern "C"
17726#endif
17727char _alloca ();
17728int
17729main ()
17730{
17731return _alloca ();
17732  ;
17733  return 0;
17734}
17735_ACEOF
17736rm -f conftest.$ac_objext conftest$ac_exeext
17737if { (ac_try="$ac_link"
17738case "(($ac_try" in
17739  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17740  *) ac_try_echo=$ac_try;;
17741esac
17742eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17743  (eval "$ac_link") 2>conftest.er1
17744  ac_status=$?
17745  grep -v '^ *+' conftest.er1 >conftest.err
17746  rm -f conftest.er1
17747  cat conftest.err >&5
17748  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17749  (exit $ac_status); } &&
17750	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17751  { (case "(($ac_try" in
17752  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17753  *) ac_try_echo=$ac_try;;
17754esac
17755eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17756  (eval "$ac_try") 2>&5
17757  ac_status=$?
17758  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17759  (exit $ac_status); }; } &&
17760	 { ac_try='test -s conftest$ac_exeext'
17761  { (case "(($ac_try" in
17762  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17763  *) ac_try_echo=$ac_try;;
17764esac
17765eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17766  (eval "$ac_try") 2>&5
17767  ac_status=$?
17768  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17769  (exit $ac_status); }; }; then
17770  ac_cv_lib_gcc__alloca=yes
17771else
17772  echo "$as_me: failed program was:" >&5
17773sed 's/^/| /' conftest.$ac_ext >&5
17774
17775	ac_cv_lib_gcc__alloca=no
17776fi
17777
17778rm -f core conftest.err conftest.$ac_objext \
17779      conftest$ac_exeext conftest.$ac_ext
17780LIBS=$ac_check_lib_save_LIBS
17781fi
17782{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc__alloca" >&5
17783echo "${ECHO_T}$ac_cv_lib_gcc__alloca" >&6; }
17784if test $ac_cv_lib_gcc__alloca = yes; then
17785
17786cat >>confdefs.h <<\_ACEOF
17787#define HAVE__ALLOCA 1
17788_ACEOF
17789
17790fi
17791
17792  { echo "$as_me:$LINENO: checking for __alloca in -lgcc" >&5
17793echo $ECHO_N "checking for __alloca in -lgcc... $ECHO_C" >&6; }
17794if test "${ac_cv_lib_gcc___alloca+set}" = set; then
17795  echo $ECHO_N "(cached) $ECHO_C" >&6
17796else
17797  ac_check_lib_save_LIBS=$LIBS
17798LIBS="-lgcc  $LIBS"
17799cat >conftest.$ac_ext <<_ACEOF
17800/* confdefs.h.  */
17801_ACEOF
17802cat confdefs.h >>conftest.$ac_ext
17803cat >>conftest.$ac_ext <<_ACEOF
17804/* end confdefs.h.  */
17805
17806/* Override any GCC internal prototype to avoid an error.
17807   Use char because int might match the return type of a GCC
17808   builtin and then its argument prototype would still apply.  */
17809#ifdef __cplusplus
17810extern "C"
17811#endif
17812char __alloca ();
17813int
17814main ()
17815{
17816return __alloca ();
17817  ;
17818  return 0;
17819}
17820_ACEOF
17821rm -f conftest.$ac_objext conftest$ac_exeext
17822if { (ac_try="$ac_link"
17823case "(($ac_try" in
17824  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17825  *) ac_try_echo=$ac_try;;
17826esac
17827eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17828  (eval "$ac_link") 2>conftest.er1
17829  ac_status=$?
17830  grep -v '^ *+' conftest.er1 >conftest.err
17831  rm -f conftest.er1
17832  cat conftest.err >&5
17833  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17834  (exit $ac_status); } &&
17835	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17836  { (case "(($ac_try" in
17837  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17838  *) ac_try_echo=$ac_try;;
17839esac
17840eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17841  (eval "$ac_try") 2>&5
17842  ac_status=$?
17843  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17844  (exit $ac_status); }; } &&
17845	 { ac_try='test -s conftest$ac_exeext'
17846  { (case "(($ac_try" in
17847  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17848  *) ac_try_echo=$ac_try;;
17849esac
17850eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17851  (eval "$ac_try") 2>&5
17852  ac_status=$?
17853  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17854  (exit $ac_status); }; }; then
17855  ac_cv_lib_gcc___alloca=yes
17856else
17857  echo "$as_me: failed program was:" >&5
17858sed 's/^/| /' conftest.$ac_ext >&5
17859
17860	ac_cv_lib_gcc___alloca=no
17861fi
17862
17863rm -f core conftest.err conftest.$ac_objext \
17864      conftest$ac_exeext conftest.$ac_ext
17865LIBS=$ac_check_lib_save_LIBS
17866fi
17867{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___alloca" >&5
17868echo "${ECHO_T}$ac_cv_lib_gcc___alloca" >&6; }
17869if test $ac_cv_lib_gcc___alloca = yes; then
17870
17871cat >>confdefs.h <<\_ACEOF
17872#define HAVE___ALLOCA 1
17873_ACEOF
17874
17875fi
17876
17877  { echo "$as_me:$LINENO: checking for __chkstk in -lgcc" >&5
17878echo $ECHO_N "checking for __chkstk in -lgcc... $ECHO_C" >&6; }
17879if test "${ac_cv_lib_gcc___chkstk+set}" = set; then
17880  echo $ECHO_N "(cached) $ECHO_C" >&6
17881else
17882  ac_check_lib_save_LIBS=$LIBS
17883LIBS="-lgcc  $LIBS"
17884cat >conftest.$ac_ext <<_ACEOF
17885/* confdefs.h.  */
17886_ACEOF
17887cat confdefs.h >>conftest.$ac_ext
17888cat >>conftest.$ac_ext <<_ACEOF
17889/* end confdefs.h.  */
17890
17891/* Override any GCC internal prototype to avoid an error.
17892   Use char because int might match the return type of a GCC
17893   builtin and then its argument prototype would still apply.  */
17894#ifdef __cplusplus
17895extern "C"
17896#endif
17897char __chkstk ();
17898int
17899main ()
17900{
17901return __chkstk ();
17902  ;
17903  return 0;
17904}
17905_ACEOF
17906rm -f conftest.$ac_objext conftest$ac_exeext
17907if { (ac_try="$ac_link"
17908case "(($ac_try" in
17909  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17910  *) ac_try_echo=$ac_try;;
17911esac
17912eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17913  (eval "$ac_link") 2>conftest.er1
17914  ac_status=$?
17915  grep -v '^ *+' conftest.er1 >conftest.err
17916  rm -f conftest.er1
17917  cat conftest.err >&5
17918  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17919  (exit $ac_status); } &&
17920	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17921  { (case "(($ac_try" in
17922  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17923  *) ac_try_echo=$ac_try;;
17924esac
17925eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17926  (eval "$ac_try") 2>&5
17927  ac_status=$?
17928  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17929  (exit $ac_status); }; } &&
17930	 { ac_try='test -s conftest$ac_exeext'
17931  { (case "(($ac_try" in
17932  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17933  *) ac_try_echo=$ac_try;;
17934esac
17935eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17936  (eval "$ac_try") 2>&5
17937  ac_status=$?
17938  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17939  (exit $ac_status); }; }; then
17940  ac_cv_lib_gcc___chkstk=yes
17941else
17942  echo "$as_me: failed program was:" >&5
17943sed 's/^/| /' conftest.$ac_ext >&5
17944
17945	ac_cv_lib_gcc___chkstk=no
17946fi
17947
17948rm -f core conftest.err conftest.$ac_objext \
17949      conftest$ac_exeext conftest.$ac_ext
17950LIBS=$ac_check_lib_save_LIBS
17951fi
17952{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___chkstk" >&5
17953echo "${ECHO_T}$ac_cv_lib_gcc___chkstk" >&6; }
17954if test $ac_cv_lib_gcc___chkstk = yes; then
17955
17956cat >>confdefs.h <<\_ACEOF
17957#define HAVE___CHKSTK 1
17958_ACEOF
17959
17960fi
17961
17962  { echo "$as_me:$LINENO: checking for ___chkstk in -lgcc" >&5
17963echo $ECHO_N "checking for ___chkstk in -lgcc... $ECHO_C" >&6; }
17964if test "${ac_cv_lib_gcc____chkstk+set}" = set; then
17965  echo $ECHO_N "(cached) $ECHO_C" >&6
17966else
17967  ac_check_lib_save_LIBS=$LIBS
17968LIBS="-lgcc  $LIBS"
17969cat >conftest.$ac_ext <<_ACEOF
17970/* confdefs.h.  */
17971_ACEOF
17972cat confdefs.h >>conftest.$ac_ext
17973cat >>conftest.$ac_ext <<_ACEOF
17974/* end confdefs.h.  */
17975
17976/* Override any GCC internal prototype to avoid an error.
17977   Use char because int might match the return type of a GCC
17978   builtin and then its argument prototype would still apply.  */
17979#ifdef __cplusplus
17980extern "C"
17981#endif
17982char ___chkstk ();
17983int
17984main ()
17985{
17986return ___chkstk ();
17987  ;
17988  return 0;
17989}
17990_ACEOF
17991rm -f conftest.$ac_objext conftest$ac_exeext
17992if { (ac_try="$ac_link"
17993case "(($ac_try" in
17994  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17995  *) ac_try_echo=$ac_try;;
17996esac
17997eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17998  (eval "$ac_link") 2>conftest.er1
17999  ac_status=$?
18000  grep -v '^ *+' conftest.er1 >conftest.err
18001  rm -f conftest.er1
18002  cat conftest.err >&5
18003  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18004  (exit $ac_status); } &&
18005	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18006  { (case "(($ac_try" in
18007  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18008  *) ac_try_echo=$ac_try;;
18009esac
18010eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18011  (eval "$ac_try") 2>&5
18012  ac_status=$?
18013  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18014  (exit $ac_status); }; } &&
18015	 { ac_try='test -s conftest$ac_exeext'
18016  { (case "(($ac_try" in
18017  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18018  *) ac_try_echo=$ac_try;;
18019esac
18020eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18021  (eval "$ac_try") 2>&5
18022  ac_status=$?
18023  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18024  (exit $ac_status); }; }; then
18025  ac_cv_lib_gcc____chkstk=yes
18026else
18027  echo "$as_me: failed program was:" >&5
18028sed 's/^/| /' conftest.$ac_ext >&5
18029
18030	ac_cv_lib_gcc____chkstk=no
18031fi
18032
18033rm -f core conftest.err conftest.$ac_objext \
18034      conftest$ac_exeext conftest.$ac_ext
18035LIBS=$ac_check_lib_save_LIBS
18036fi
18037{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc____chkstk" >&5
18038echo "${ECHO_T}$ac_cv_lib_gcc____chkstk" >&6; }
18039if test $ac_cv_lib_gcc____chkstk = yes; then
18040
18041cat >>confdefs.h <<\_ACEOF
18042#define HAVE____CHKSTK 1
18043_ACEOF
18044
18045fi
18046
18047
18048  { echo "$as_me:$LINENO: checking for __ashldi3 in -lgcc" >&5
18049echo $ECHO_N "checking for __ashldi3 in -lgcc... $ECHO_C" >&6; }
18050if test "${ac_cv_lib_gcc___ashldi3+set}" = set; then
18051  echo $ECHO_N "(cached) $ECHO_C" >&6
18052else
18053  ac_check_lib_save_LIBS=$LIBS
18054LIBS="-lgcc  $LIBS"
18055cat >conftest.$ac_ext <<_ACEOF
18056/* confdefs.h.  */
18057_ACEOF
18058cat confdefs.h >>conftest.$ac_ext
18059cat >>conftest.$ac_ext <<_ACEOF
18060/* end confdefs.h.  */
18061
18062/* Override any GCC internal prototype to avoid an error.
18063   Use char because int might match the return type of a GCC
18064   builtin and then its argument prototype would still apply.  */
18065#ifdef __cplusplus
18066extern "C"
18067#endif
18068char __ashldi3 ();
18069int
18070main ()
18071{
18072return __ashldi3 ();
18073  ;
18074  return 0;
18075}
18076_ACEOF
18077rm -f conftest.$ac_objext conftest$ac_exeext
18078if { (ac_try="$ac_link"
18079case "(($ac_try" in
18080  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18081  *) ac_try_echo=$ac_try;;
18082esac
18083eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18084  (eval "$ac_link") 2>conftest.er1
18085  ac_status=$?
18086  grep -v '^ *+' conftest.er1 >conftest.err
18087  rm -f conftest.er1
18088  cat conftest.err >&5
18089  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18090  (exit $ac_status); } &&
18091	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18092  { (case "(($ac_try" in
18093  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18094  *) ac_try_echo=$ac_try;;
18095esac
18096eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18097  (eval "$ac_try") 2>&5
18098  ac_status=$?
18099  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18100  (exit $ac_status); }; } &&
18101	 { ac_try='test -s conftest$ac_exeext'
18102  { (case "(($ac_try" in
18103  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18104  *) ac_try_echo=$ac_try;;
18105esac
18106eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18107  (eval "$ac_try") 2>&5
18108  ac_status=$?
18109  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18110  (exit $ac_status); }; }; then
18111  ac_cv_lib_gcc___ashldi3=yes
18112else
18113  echo "$as_me: failed program was:" >&5
18114sed 's/^/| /' conftest.$ac_ext >&5
18115
18116	ac_cv_lib_gcc___ashldi3=no
18117fi
18118
18119rm -f core conftest.err conftest.$ac_objext \
18120      conftest$ac_exeext conftest.$ac_ext
18121LIBS=$ac_check_lib_save_LIBS
18122fi
18123{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashldi3" >&5
18124echo "${ECHO_T}$ac_cv_lib_gcc___ashldi3" >&6; }
18125if test $ac_cv_lib_gcc___ashldi3 = yes; then
18126
18127cat >>confdefs.h <<\_ACEOF
18128#define HAVE___ASHLDI3 1
18129_ACEOF
18130
18131fi
18132
18133  { echo "$as_me:$LINENO: checking for __ashrdi3 in -lgcc" >&5
18134echo $ECHO_N "checking for __ashrdi3 in -lgcc... $ECHO_C" >&6; }
18135if test "${ac_cv_lib_gcc___ashrdi3+set}" = set; then
18136  echo $ECHO_N "(cached) $ECHO_C" >&6
18137else
18138  ac_check_lib_save_LIBS=$LIBS
18139LIBS="-lgcc  $LIBS"
18140cat >conftest.$ac_ext <<_ACEOF
18141/* confdefs.h.  */
18142_ACEOF
18143cat confdefs.h >>conftest.$ac_ext
18144cat >>conftest.$ac_ext <<_ACEOF
18145/* end confdefs.h.  */
18146
18147/* Override any GCC internal prototype to avoid an error.
18148   Use char because int might match the return type of a GCC
18149   builtin and then its argument prototype would still apply.  */
18150#ifdef __cplusplus
18151extern "C"
18152#endif
18153char __ashrdi3 ();
18154int
18155main ()
18156{
18157return __ashrdi3 ();
18158  ;
18159  return 0;
18160}
18161_ACEOF
18162rm -f conftest.$ac_objext conftest$ac_exeext
18163if { (ac_try="$ac_link"
18164case "(($ac_try" in
18165  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18166  *) ac_try_echo=$ac_try;;
18167esac
18168eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18169  (eval "$ac_link") 2>conftest.er1
18170  ac_status=$?
18171  grep -v '^ *+' conftest.er1 >conftest.err
18172  rm -f conftest.er1
18173  cat conftest.err >&5
18174  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18175  (exit $ac_status); } &&
18176	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18177  { (case "(($ac_try" in
18178  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18179  *) ac_try_echo=$ac_try;;
18180esac
18181eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18182  (eval "$ac_try") 2>&5
18183  ac_status=$?
18184  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18185  (exit $ac_status); }; } &&
18186	 { ac_try='test -s conftest$ac_exeext'
18187  { (case "(($ac_try" in
18188  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18189  *) ac_try_echo=$ac_try;;
18190esac
18191eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18192  (eval "$ac_try") 2>&5
18193  ac_status=$?
18194  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18195  (exit $ac_status); }; }; then
18196  ac_cv_lib_gcc___ashrdi3=yes
18197else
18198  echo "$as_me: failed program was:" >&5
18199sed 's/^/| /' conftest.$ac_ext >&5
18200
18201	ac_cv_lib_gcc___ashrdi3=no
18202fi
18203
18204rm -f core conftest.err conftest.$ac_objext \
18205      conftest$ac_exeext conftest.$ac_ext
18206LIBS=$ac_check_lib_save_LIBS
18207fi
18208{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashrdi3" >&5
18209echo "${ECHO_T}$ac_cv_lib_gcc___ashrdi3" >&6; }
18210if test $ac_cv_lib_gcc___ashrdi3 = yes; then
18211
18212cat >>confdefs.h <<\_ACEOF
18213#define HAVE___ASHRDI3 1
18214_ACEOF
18215
18216fi
18217
18218  { echo "$as_me:$LINENO: checking for __divdi3 in -lgcc" >&5
18219echo $ECHO_N "checking for __divdi3 in -lgcc... $ECHO_C" >&6; }
18220if test "${ac_cv_lib_gcc___divdi3+set}" = set; then
18221  echo $ECHO_N "(cached) $ECHO_C" >&6
18222else
18223  ac_check_lib_save_LIBS=$LIBS
18224LIBS="-lgcc  $LIBS"
18225cat >conftest.$ac_ext <<_ACEOF
18226/* confdefs.h.  */
18227_ACEOF
18228cat confdefs.h >>conftest.$ac_ext
18229cat >>conftest.$ac_ext <<_ACEOF
18230/* end confdefs.h.  */
18231
18232/* Override any GCC internal prototype to avoid an error.
18233   Use char because int might match the return type of a GCC
18234   builtin and then its argument prototype would still apply.  */
18235#ifdef __cplusplus
18236extern "C"
18237#endif
18238char __divdi3 ();
18239int
18240main ()
18241{
18242return __divdi3 ();
18243  ;
18244  return 0;
18245}
18246_ACEOF
18247rm -f conftest.$ac_objext conftest$ac_exeext
18248if { (ac_try="$ac_link"
18249case "(($ac_try" in
18250  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18251  *) ac_try_echo=$ac_try;;
18252esac
18253eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18254  (eval "$ac_link") 2>conftest.er1
18255  ac_status=$?
18256  grep -v '^ *+' conftest.er1 >conftest.err
18257  rm -f conftest.er1
18258  cat conftest.err >&5
18259  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18260  (exit $ac_status); } &&
18261	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18262  { (case "(($ac_try" in
18263  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18264  *) ac_try_echo=$ac_try;;
18265esac
18266eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18267  (eval "$ac_try") 2>&5
18268  ac_status=$?
18269  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18270  (exit $ac_status); }; } &&
18271	 { ac_try='test -s conftest$ac_exeext'
18272  { (case "(($ac_try" in
18273  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18274  *) ac_try_echo=$ac_try;;
18275esac
18276eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18277  (eval "$ac_try") 2>&5
18278  ac_status=$?
18279  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18280  (exit $ac_status); }; }; then
18281  ac_cv_lib_gcc___divdi3=yes
18282else
18283  echo "$as_me: failed program was:" >&5
18284sed 's/^/| /' conftest.$ac_ext >&5
18285
18286	ac_cv_lib_gcc___divdi3=no
18287fi
18288
18289rm -f core conftest.err conftest.$ac_objext \
18290      conftest$ac_exeext conftest.$ac_ext
18291LIBS=$ac_check_lib_save_LIBS
18292fi
18293{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___divdi3" >&5
18294echo "${ECHO_T}$ac_cv_lib_gcc___divdi3" >&6; }
18295if test $ac_cv_lib_gcc___divdi3 = yes; then
18296
18297cat >>confdefs.h <<\_ACEOF
18298#define HAVE___DIVDI3 1
18299_ACEOF
18300
18301fi
18302
18303  { echo "$as_me:$LINENO: checking for __fixdfdi in -lgcc" >&5
18304echo $ECHO_N "checking for __fixdfdi in -lgcc... $ECHO_C" >&6; }
18305if test "${ac_cv_lib_gcc___fixdfdi+set}" = set; then
18306  echo $ECHO_N "(cached) $ECHO_C" >&6
18307else
18308  ac_check_lib_save_LIBS=$LIBS
18309LIBS="-lgcc  $LIBS"
18310cat >conftest.$ac_ext <<_ACEOF
18311/* confdefs.h.  */
18312_ACEOF
18313cat confdefs.h >>conftest.$ac_ext
18314cat >>conftest.$ac_ext <<_ACEOF
18315/* end confdefs.h.  */
18316
18317/* Override any GCC internal prototype to avoid an error.
18318   Use char because int might match the return type of a GCC
18319   builtin and then its argument prototype would still apply.  */
18320#ifdef __cplusplus
18321extern "C"
18322#endif
18323char __fixdfdi ();
18324int
18325main ()
18326{
18327return __fixdfdi ();
18328  ;
18329  return 0;
18330}
18331_ACEOF
18332rm -f conftest.$ac_objext conftest$ac_exeext
18333if { (ac_try="$ac_link"
18334case "(($ac_try" in
18335  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18336  *) ac_try_echo=$ac_try;;
18337esac
18338eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18339  (eval "$ac_link") 2>conftest.er1
18340  ac_status=$?
18341  grep -v '^ *+' conftest.er1 >conftest.err
18342  rm -f conftest.er1
18343  cat conftest.err >&5
18344  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18345  (exit $ac_status); } &&
18346	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18347  { (case "(($ac_try" in
18348  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18349  *) ac_try_echo=$ac_try;;
18350esac
18351eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18352  (eval "$ac_try") 2>&5
18353  ac_status=$?
18354  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18355  (exit $ac_status); }; } &&
18356	 { ac_try='test -s conftest$ac_exeext'
18357  { (case "(($ac_try" in
18358  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18359  *) ac_try_echo=$ac_try;;
18360esac
18361eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18362  (eval "$ac_try") 2>&5
18363  ac_status=$?
18364  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18365  (exit $ac_status); }; }; then
18366  ac_cv_lib_gcc___fixdfdi=yes
18367else
18368  echo "$as_me: failed program was:" >&5
18369sed 's/^/| /' conftest.$ac_ext >&5
18370
18371	ac_cv_lib_gcc___fixdfdi=no
18372fi
18373
18374rm -f core conftest.err conftest.$ac_objext \
18375      conftest$ac_exeext conftest.$ac_ext
18376LIBS=$ac_check_lib_save_LIBS
18377fi
18378{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixdfdi" >&5
18379echo "${ECHO_T}$ac_cv_lib_gcc___fixdfdi" >&6; }
18380if test $ac_cv_lib_gcc___fixdfdi = yes; then
18381
18382cat >>confdefs.h <<\_ACEOF
18383#define HAVE___FIXDFDI 1
18384_ACEOF
18385
18386fi
18387
18388  { echo "$as_me:$LINENO: checking for __fixsfdi in -lgcc" >&5
18389echo $ECHO_N "checking for __fixsfdi in -lgcc... $ECHO_C" >&6; }
18390if test "${ac_cv_lib_gcc___fixsfdi+set}" = set; then
18391  echo $ECHO_N "(cached) $ECHO_C" >&6
18392else
18393  ac_check_lib_save_LIBS=$LIBS
18394LIBS="-lgcc  $LIBS"
18395cat >conftest.$ac_ext <<_ACEOF
18396/* confdefs.h.  */
18397_ACEOF
18398cat confdefs.h >>conftest.$ac_ext
18399cat >>conftest.$ac_ext <<_ACEOF
18400/* end confdefs.h.  */
18401
18402/* Override any GCC internal prototype to avoid an error.
18403   Use char because int might match the return type of a GCC
18404   builtin and then its argument prototype would still apply.  */
18405#ifdef __cplusplus
18406extern "C"
18407#endif
18408char __fixsfdi ();
18409int
18410main ()
18411{
18412return __fixsfdi ();
18413  ;
18414  return 0;
18415}
18416_ACEOF
18417rm -f conftest.$ac_objext conftest$ac_exeext
18418if { (ac_try="$ac_link"
18419case "(($ac_try" in
18420  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18421  *) ac_try_echo=$ac_try;;
18422esac
18423eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18424  (eval "$ac_link") 2>conftest.er1
18425  ac_status=$?
18426  grep -v '^ *+' conftest.er1 >conftest.err
18427  rm -f conftest.er1
18428  cat conftest.err >&5
18429  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18430  (exit $ac_status); } &&
18431	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18432  { (case "(($ac_try" in
18433  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18434  *) ac_try_echo=$ac_try;;
18435esac
18436eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18437  (eval "$ac_try") 2>&5
18438  ac_status=$?
18439  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18440  (exit $ac_status); }; } &&
18441	 { ac_try='test -s conftest$ac_exeext'
18442  { (case "(($ac_try" in
18443  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18444  *) ac_try_echo=$ac_try;;
18445esac
18446eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18447  (eval "$ac_try") 2>&5
18448  ac_status=$?
18449  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18450  (exit $ac_status); }; }; then
18451  ac_cv_lib_gcc___fixsfdi=yes
18452else
18453  echo "$as_me: failed program was:" >&5
18454sed 's/^/| /' conftest.$ac_ext >&5
18455
18456	ac_cv_lib_gcc___fixsfdi=no
18457fi
18458
18459rm -f core conftest.err conftest.$ac_objext \
18460      conftest$ac_exeext conftest.$ac_ext
18461LIBS=$ac_check_lib_save_LIBS
18462fi
18463{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixsfdi" >&5
18464echo "${ECHO_T}$ac_cv_lib_gcc___fixsfdi" >&6; }
18465if test $ac_cv_lib_gcc___fixsfdi = yes; then
18466
18467cat >>confdefs.h <<\_ACEOF
18468#define HAVE___FIXSFDI 1
18469_ACEOF
18470
18471fi
18472
18473  { echo "$as_me:$LINENO: checking for __floatdidf in -lgcc" >&5
18474echo $ECHO_N "checking for __floatdidf in -lgcc... $ECHO_C" >&6; }
18475if test "${ac_cv_lib_gcc___floatdidf+set}" = set; then
18476  echo $ECHO_N "(cached) $ECHO_C" >&6
18477else
18478  ac_check_lib_save_LIBS=$LIBS
18479LIBS="-lgcc  $LIBS"
18480cat >conftest.$ac_ext <<_ACEOF
18481/* confdefs.h.  */
18482_ACEOF
18483cat confdefs.h >>conftest.$ac_ext
18484cat >>conftest.$ac_ext <<_ACEOF
18485/* end confdefs.h.  */
18486
18487/* Override any GCC internal prototype to avoid an error.
18488   Use char because int might match the return type of a GCC
18489   builtin and then its argument prototype would still apply.  */
18490#ifdef __cplusplus
18491extern "C"
18492#endif
18493char __floatdidf ();
18494int
18495main ()
18496{
18497return __floatdidf ();
18498  ;
18499  return 0;
18500}
18501_ACEOF
18502rm -f conftest.$ac_objext conftest$ac_exeext
18503if { (ac_try="$ac_link"
18504case "(($ac_try" in
18505  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18506  *) ac_try_echo=$ac_try;;
18507esac
18508eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18509  (eval "$ac_link") 2>conftest.er1
18510  ac_status=$?
18511  grep -v '^ *+' conftest.er1 >conftest.err
18512  rm -f conftest.er1
18513  cat conftest.err >&5
18514  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18515  (exit $ac_status); } &&
18516	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18517  { (case "(($ac_try" in
18518  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18519  *) ac_try_echo=$ac_try;;
18520esac
18521eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18522  (eval "$ac_try") 2>&5
18523  ac_status=$?
18524  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18525  (exit $ac_status); }; } &&
18526	 { ac_try='test -s conftest$ac_exeext'
18527  { (case "(($ac_try" in
18528  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18529  *) ac_try_echo=$ac_try;;
18530esac
18531eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18532  (eval "$ac_try") 2>&5
18533  ac_status=$?
18534  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18535  (exit $ac_status); }; }; then
18536  ac_cv_lib_gcc___floatdidf=yes
18537else
18538  echo "$as_me: failed program was:" >&5
18539sed 's/^/| /' conftest.$ac_ext >&5
18540
18541	ac_cv_lib_gcc___floatdidf=no
18542fi
18543
18544rm -f core conftest.err conftest.$ac_objext \
18545      conftest$ac_exeext conftest.$ac_ext
18546LIBS=$ac_check_lib_save_LIBS
18547fi
18548{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___floatdidf" >&5
18549echo "${ECHO_T}$ac_cv_lib_gcc___floatdidf" >&6; }
18550if test $ac_cv_lib_gcc___floatdidf = yes; then
18551
18552cat >>confdefs.h <<\_ACEOF
18553#define HAVE___FLOATDIDF 1
18554_ACEOF
18555
18556fi
18557
18558  { echo "$as_me:$LINENO: checking for __lshrdi3 in -lgcc" >&5
18559echo $ECHO_N "checking for __lshrdi3 in -lgcc... $ECHO_C" >&6; }
18560if test "${ac_cv_lib_gcc___lshrdi3+set}" = set; then
18561  echo $ECHO_N "(cached) $ECHO_C" >&6
18562else
18563  ac_check_lib_save_LIBS=$LIBS
18564LIBS="-lgcc  $LIBS"
18565cat >conftest.$ac_ext <<_ACEOF
18566/* confdefs.h.  */
18567_ACEOF
18568cat confdefs.h >>conftest.$ac_ext
18569cat >>conftest.$ac_ext <<_ACEOF
18570/* end confdefs.h.  */
18571
18572/* Override any GCC internal prototype to avoid an error.
18573   Use char because int might match the return type of a GCC
18574   builtin and then its argument prototype would still apply.  */
18575#ifdef __cplusplus
18576extern "C"
18577#endif
18578char __lshrdi3 ();
18579int
18580main ()
18581{
18582return __lshrdi3 ();
18583  ;
18584  return 0;
18585}
18586_ACEOF
18587rm -f conftest.$ac_objext conftest$ac_exeext
18588if { (ac_try="$ac_link"
18589case "(($ac_try" in
18590  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18591  *) ac_try_echo=$ac_try;;
18592esac
18593eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18594  (eval "$ac_link") 2>conftest.er1
18595  ac_status=$?
18596  grep -v '^ *+' conftest.er1 >conftest.err
18597  rm -f conftest.er1
18598  cat conftest.err >&5
18599  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18600  (exit $ac_status); } &&
18601	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18602  { (case "(($ac_try" in
18603  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18604  *) ac_try_echo=$ac_try;;
18605esac
18606eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18607  (eval "$ac_try") 2>&5
18608  ac_status=$?
18609  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18610  (exit $ac_status); }; } &&
18611	 { ac_try='test -s conftest$ac_exeext'
18612  { (case "(($ac_try" in
18613  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18614  *) ac_try_echo=$ac_try;;
18615esac
18616eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18617  (eval "$ac_try") 2>&5
18618  ac_status=$?
18619  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18620  (exit $ac_status); }; }; then
18621  ac_cv_lib_gcc___lshrdi3=yes
18622else
18623  echo "$as_me: failed program was:" >&5
18624sed 's/^/| /' conftest.$ac_ext >&5
18625
18626	ac_cv_lib_gcc___lshrdi3=no
18627fi
18628
18629rm -f core conftest.err conftest.$ac_objext \
18630      conftest$ac_exeext conftest.$ac_ext
18631LIBS=$ac_check_lib_save_LIBS
18632fi
18633{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___lshrdi3" >&5
18634echo "${ECHO_T}$ac_cv_lib_gcc___lshrdi3" >&6; }
18635if test $ac_cv_lib_gcc___lshrdi3 = yes; then
18636
18637cat >>confdefs.h <<\_ACEOF
18638#define HAVE___LSHRDI3 1
18639_ACEOF
18640
18641fi
18642
18643  { echo "$as_me:$LINENO: checking for __moddi3 in -lgcc" >&5
18644echo $ECHO_N "checking for __moddi3 in -lgcc... $ECHO_C" >&6; }
18645if test "${ac_cv_lib_gcc___moddi3+set}" = set; then
18646  echo $ECHO_N "(cached) $ECHO_C" >&6
18647else
18648  ac_check_lib_save_LIBS=$LIBS
18649LIBS="-lgcc  $LIBS"
18650cat >conftest.$ac_ext <<_ACEOF
18651/* confdefs.h.  */
18652_ACEOF
18653cat confdefs.h >>conftest.$ac_ext
18654cat >>conftest.$ac_ext <<_ACEOF
18655/* end confdefs.h.  */
18656
18657/* Override any GCC internal prototype to avoid an error.
18658   Use char because int might match the return type of a GCC
18659   builtin and then its argument prototype would still apply.  */
18660#ifdef __cplusplus
18661extern "C"
18662#endif
18663char __moddi3 ();
18664int
18665main ()
18666{
18667return __moddi3 ();
18668  ;
18669  return 0;
18670}
18671_ACEOF
18672rm -f conftest.$ac_objext conftest$ac_exeext
18673if { (ac_try="$ac_link"
18674case "(($ac_try" in
18675  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18676  *) ac_try_echo=$ac_try;;
18677esac
18678eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18679  (eval "$ac_link") 2>conftest.er1
18680  ac_status=$?
18681  grep -v '^ *+' conftest.er1 >conftest.err
18682  rm -f conftest.er1
18683  cat conftest.err >&5
18684  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18685  (exit $ac_status); } &&
18686	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18687  { (case "(($ac_try" in
18688  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18689  *) ac_try_echo=$ac_try;;
18690esac
18691eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18692  (eval "$ac_try") 2>&5
18693  ac_status=$?
18694  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18695  (exit $ac_status); }; } &&
18696	 { ac_try='test -s conftest$ac_exeext'
18697  { (case "(($ac_try" in
18698  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18699  *) ac_try_echo=$ac_try;;
18700esac
18701eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18702  (eval "$ac_try") 2>&5
18703  ac_status=$?
18704  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18705  (exit $ac_status); }; }; then
18706  ac_cv_lib_gcc___moddi3=yes
18707else
18708  echo "$as_me: failed program was:" >&5
18709sed 's/^/| /' conftest.$ac_ext >&5
18710
18711	ac_cv_lib_gcc___moddi3=no
18712fi
18713
18714rm -f core conftest.err conftest.$ac_objext \
18715      conftest$ac_exeext conftest.$ac_ext
18716LIBS=$ac_check_lib_save_LIBS
18717fi
18718{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___moddi3" >&5
18719echo "${ECHO_T}$ac_cv_lib_gcc___moddi3" >&6; }
18720if test $ac_cv_lib_gcc___moddi3 = yes; then
18721
18722cat >>confdefs.h <<\_ACEOF
18723#define HAVE___MODDI3 1
18724_ACEOF
18725
18726fi
18727
18728  { echo "$as_me:$LINENO: checking for __udivdi3 in -lgcc" >&5
18729echo $ECHO_N "checking for __udivdi3 in -lgcc... $ECHO_C" >&6; }
18730if test "${ac_cv_lib_gcc___udivdi3+set}" = set; then
18731  echo $ECHO_N "(cached) $ECHO_C" >&6
18732else
18733  ac_check_lib_save_LIBS=$LIBS
18734LIBS="-lgcc  $LIBS"
18735cat >conftest.$ac_ext <<_ACEOF
18736/* confdefs.h.  */
18737_ACEOF
18738cat confdefs.h >>conftest.$ac_ext
18739cat >>conftest.$ac_ext <<_ACEOF
18740/* end confdefs.h.  */
18741
18742/* Override any GCC internal prototype to avoid an error.
18743   Use char because int might match the return type of a GCC
18744   builtin and then its argument prototype would still apply.  */
18745#ifdef __cplusplus
18746extern "C"
18747#endif
18748char __udivdi3 ();
18749int
18750main ()
18751{
18752return __udivdi3 ();
18753  ;
18754  return 0;
18755}
18756_ACEOF
18757rm -f conftest.$ac_objext conftest$ac_exeext
18758if { (ac_try="$ac_link"
18759case "(($ac_try" in
18760  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18761  *) ac_try_echo=$ac_try;;
18762esac
18763eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18764  (eval "$ac_link") 2>conftest.er1
18765  ac_status=$?
18766  grep -v '^ *+' conftest.er1 >conftest.err
18767  rm -f conftest.er1
18768  cat conftest.err >&5
18769  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18770  (exit $ac_status); } &&
18771	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18772  { (case "(($ac_try" in
18773  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18774  *) ac_try_echo=$ac_try;;
18775esac
18776eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18777  (eval "$ac_try") 2>&5
18778  ac_status=$?
18779  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18780  (exit $ac_status); }; } &&
18781	 { ac_try='test -s conftest$ac_exeext'
18782  { (case "(($ac_try" in
18783  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18784  *) ac_try_echo=$ac_try;;
18785esac
18786eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18787  (eval "$ac_try") 2>&5
18788  ac_status=$?
18789  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18790  (exit $ac_status); }; }; then
18791  ac_cv_lib_gcc___udivdi3=yes
18792else
18793  echo "$as_me: failed program was:" >&5
18794sed 's/^/| /' conftest.$ac_ext >&5
18795
18796	ac_cv_lib_gcc___udivdi3=no
18797fi
18798
18799rm -f core conftest.err conftest.$ac_objext \
18800      conftest$ac_exeext conftest.$ac_ext
18801LIBS=$ac_check_lib_save_LIBS
18802fi
18803{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___udivdi3" >&5
18804echo "${ECHO_T}$ac_cv_lib_gcc___udivdi3" >&6; }
18805if test $ac_cv_lib_gcc___udivdi3 = yes; then
18806
18807cat >>confdefs.h <<\_ACEOF
18808#define HAVE___UDIVDI3 1
18809_ACEOF
18810
18811fi
18812
18813  { echo "$as_me:$LINENO: checking for __umoddi3 in -lgcc" >&5
18814echo $ECHO_N "checking for __umoddi3 in -lgcc... $ECHO_C" >&6; }
18815if test "${ac_cv_lib_gcc___umoddi3+set}" = set; then
18816  echo $ECHO_N "(cached) $ECHO_C" >&6
18817else
18818  ac_check_lib_save_LIBS=$LIBS
18819LIBS="-lgcc  $LIBS"
18820cat >conftest.$ac_ext <<_ACEOF
18821/* confdefs.h.  */
18822_ACEOF
18823cat confdefs.h >>conftest.$ac_ext
18824cat >>conftest.$ac_ext <<_ACEOF
18825/* end confdefs.h.  */
18826
18827/* Override any GCC internal prototype to avoid an error.
18828   Use char because int might match the return type of a GCC
18829   builtin and then its argument prototype would still apply.  */
18830#ifdef __cplusplus
18831extern "C"
18832#endif
18833char __umoddi3 ();
18834int
18835main ()
18836{
18837return __umoddi3 ();
18838  ;
18839  return 0;
18840}
18841_ACEOF
18842rm -f conftest.$ac_objext conftest$ac_exeext
18843if { (ac_try="$ac_link"
18844case "(($ac_try" in
18845  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18846  *) ac_try_echo=$ac_try;;
18847esac
18848eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18849  (eval "$ac_link") 2>conftest.er1
18850  ac_status=$?
18851  grep -v '^ *+' conftest.er1 >conftest.err
18852  rm -f conftest.er1
18853  cat conftest.err >&5
18854  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18855  (exit $ac_status); } &&
18856	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18857  { (case "(($ac_try" in
18858  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18859  *) ac_try_echo=$ac_try;;
18860esac
18861eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18862  (eval "$ac_try") 2>&5
18863  ac_status=$?
18864  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18865  (exit $ac_status); }; } &&
18866	 { ac_try='test -s conftest$ac_exeext'
18867  { (case "(($ac_try" in
18868  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18869  *) ac_try_echo=$ac_try;;
18870esac
18871eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18872  (eval "$ac_try") 2>&5
18873  ac_status=$?
18874  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18875  (exit $ac_status); }; }; then
18876  ac_cv_lib_gcc___umoddi3=yes
18877else
18878  echo "$as_me: failed program was:" >&5
18879sed 's/^/| /' conftest.$ac_ext >&5
18880
18881	ac_cv_lib_gcc___umoddi3=no
18882fi
18883
18884rm -f core conftest.err conftest.$ac_objext \
18885      conftest$ac_exeext conftest.$ac_ext
18886LIBS=$ac_check_lib_save_LIBS
18887fi
18888{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___umoddi3" >&5
18889echo "${ECHO_T}$ac_cv_lib_gcc___umoddi3" >&6; }
18890if test $ac_cv_lib_gcc___umoddi3 = yes; then
18891
18892cat >>confdefs.h <<\_ACEOF
18893#define HAVE___UMODDI3 1
18894_ACEOF
18895
18896fi
18897
18898
18899  { echo "$as_me:$LINENO: checking for __main in -lgcc" >&5
18900echo $ECHO_N "checking for __main in -lgcc... $ECHO_C" >&6; }
18901if test "${ac_cv_lib_gcc___main+set}" = set; then
18902  echo $ECHO_N "(cached) $ECHO_C" >&6
18903else
18904  ac_check_lib_save_LIBS=$LIBS
18905LIBS="-lgcc  $LIBS"
18906cat >conftest.$ac_ext <<_ACEOF
18907/* confdefs.h.  */
18908_ACEOF
18909cat confdefs.h >>conftest.$ac_ext
18910cat >>conftest.$ac_ext <<_ACEOF
18911/* end confdefs.h.  */
18912
18913/* Override any GCC internal prototype to avoid an error.
18914   Use char because int might match the return type of a GCC
18915   builtin and then its argument prototype would still apply.  */
18916#ifdef __cplusplus
18917extern "C"
18918#endif
18919char __main ();
18920int
18921main ()
18922{
18923return __main ();
18924  ;
18925  return 0;
18926}
18927_ACEOF
18928rm -f conftest.$ac_objext conftest$ac_exeext
18929if { (ac_try="$ac_link"
18930case "(($ac_try" in
18931  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18932  *) ac_try_echo=$ac_try;;
18933esac
18934eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18935  (eval "$ac_link") 2>conftest.er1
18936  ac_status=$?
18937  grep -v '^ *+' conftest.er1 >conftest.err
18938  rm -f conftest.er1
18939  cat conftest.err >&5
18940  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18941  (exit $ac_status); } &&
18942	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18943  { (case "(($ac_try" in
18944  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18945  *) ac_try_echo=$ac_try;;
18946esac
18947eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18948  (eval "$ac_try") 2>&5
18949  ac_status=$?
18950  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18951  (exit $ac_status); }; } &&
18952	 { ac_try='test -s conftest$ac_exeext'
18953  { (case "(($ac_try" in
18954  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18955  *) ac_try_echo=$ac_try;;
18956esac
18957eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18958  (eval "$ac_try") 2>&5
18959  ac_status=$?
18960  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18961  (exit $ac_status); }; }; then
18962  ac_cv_lib_gcc___main=yes
18963else
18964  echo "$as_me: failed program was:" >&5
18965sed 's/^/| /' conftest.$ac_ext >&5
18966
18967	ac_cv_lib_gcc___main=no
18968fi
18969
18970rm -f core conftest.err conftest.$ac_objext \
18971      conftest$ac_exeext conftest.$ac_ext
18972LIBS=$ac_check_lib_save_LIBS
18973fi
18974{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___main" >&5
18975echo "${ECHO_T}$ac_cv_lib_gcc___main" >&6; }
18976if test $ac_cv_lib_gcc___main = yes; then
18977
18978cat >>confdefs.h <<\_ACEOF
18979#define HAVE___MAIN 1
18980_ACEOF
18981
18982fi
18983
18984  { echo "$as_me:$LINENO: checking for __cmpdi2 in -lgcc" >&5
18985echo $ECHO_N "checking for __cmpdi2 in -lgcc... $ECHO_C" >&6; }
18986if test "${ac_cv_lib_gcc___cmpdi2+set}" = set; then
18987  echo $ECHO_N "(cached) $ECHO_C" >&6
18988else
18989  ac_check_lib_save_LIBS=$LIBS
18990LIBS="-lgcc  $LIBS"
18991cat >conftest.$ac_ext <<_ACEOF
18992/* confdefs.h.  */
18993_ACEOF
18994cat confdefs.h >>conftest.$ac_ext
18995cat >>conftest.$ac_ext <<_ACEOF
18996/* end confdefs.h.  */
18997
18998/* Override any GCC internal prototype to avoid an error.
18999   Use char because int might match the return type of a GCC
19000   builtin and then its argument prototype would still apply.  */
19001#ifdef __cplusplus
19002extern "C"
19003#endif
19004char __cmpdi2 ();
19005int
19006main ()
19007{
19008return __cmpdi2 ();
19009  ;
19010  return 0;
19011}
19012_ACEOF
19013rm -f conftest.$ac_objext conftest$ac_exeext
19014if { (ac_try="$ac_link"
19015case "(($ac_try" in
19016  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19017  *) ac_try_echo=$ac_try;;
19018esac
19019eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19020  (eval "$ac_link") 2>conftest.er1
19021  ac_status=$?
19022  grep -v '^ *+' conftest.er1 >conftest.err
19023  rm -f conftest.er1
19024  cat conftest.err >&5
19025  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19026  (exit $ac_status); } &&
19027	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19028  { (case "(($ac_try" in
19029  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19030  *) ac_try_echo=$ac_try;;
19031esac
19032eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19033  (eval "$ac_try") 2>&5
19034  ac_status=$?
19035  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19036  (exit $ac_status); }; } &&
19037	 { ac_try='test -s conftest$ac_exeext'
19038  { (case "(($ac_try" in
19039  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19040  *) ac_try_echo=$ac_try;;
19041esac
19042eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19043  (eval "$ac_try") 2>&5
19044  ac_status=$?
19045  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19046  (exit $ac_status); }; }; then
19047  ac_cv_lib_gcc___cmpdi2=yes
19048else
19049  echo "$as_me: failed program was:" >&5
19050sed 's/^/| /' conftest.$ac_ext >&5
19051
19052	ac_cv_lib_gcc___cmpdi2=no
19053fi
19054
19055rm -f core conftest.err conftest.$ac_objext \
19056      conftest$ac_exeext conftest.$ac_ext
19057LIBS=$ac_check_lib_save_LIBS
19058fi
19059{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___cmpdi2" >&5
19060echo "${ECHO_T}$ac_cv_lib_gcc___cmpdi2" >&6; }
19061if test $ac_cv_lib_gcc___cmpdi2 = yes; then
19062
19063cat >>confdefs.h <<\_ACEOF
19064#define HAVE___CMPDI2 1
19065_ACEOF
19066
19067fi
19068
19069fi
19070
19071if test "$llvm_cv_os_type" = "MingW" ; then
19072  { echo "$as_me:$LINENO: checking whether EnumerateLoadedModules() accepts new decl" >&5
19073echo $ECHO_N "checking whether EnumerateLoadedModules() accepts new decl... $ECHO_C" >&6; }
19074  cat >conftest.$ac_ext <<_ACEOF
19075#include <windows.h>
19076#include <imagehlp.h>
19077extern void foo(PENUMLOADED_MODULES_CALLBACK);
19078extern void foo(BOOL(CALLBACK*)(PCSTR,ULONG_PTR,ULONG,PVOID));
19079_ACEOF
19080rm -f conftest.$ac_objext
19081if { (ac_try="$ac_compile"
19082case "(($ac_try" in
19083  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19084  *) ac_try_echo=$ac_try;;
19085esac
19086eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19087  (eval "$ac_compile") 2>conftest.er1
19088  ac_status=$?
19089  grep -v '^ *+' conftest.er1 >conftest.err
19090  rm -f conftest.er1
19091  cat conftest.err >&5
19092  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19093  (exit $ac_status); } &&
19094	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19095  { (case "(($ac_try" in
19096  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19097  *) ac_try_echo=$ac_try;;
19098esac
19099eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19100  (eval "$ac_try") 2>&5
19101  ac_status=$?
19102  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19103  (exit $ac_status); }; } &&
19104	 { ac_try='test -s conftest.$ac_objext'
19105  { (case "(($ac_try" in
19106  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19107  *) ac_try_echo=$ac_try;;
19108esac
19109eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19110  (eval "$ac_try") 2>&5
19111  ac_status=$?
19112  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19113  (exit $ac_status); }; }; then
19114
19115  { echo "$as_me:$LINENO: result: yes" >&5
19116echo "${ECHO_T}yes" >&6; }
19117  llvm_cv_win32_elmcb_pcstr="PCSTR"
19118
19119else
19120  echo "$as_me: failed program was:" >&5
19121sed 's/^/| /' conftest.$ac_ext >&5
19122
19123
19124  { echo "$as_me:$LINENO: result: no" >&5
19125echo "${ECHO_T}no" >&6; }
19126  llvm_cv_win32_elmcb_pcstr="PSTR"
19127
19128fi
19129
19130rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19131
19132cat >>confdefs.h <<_ACEOF
19133#define WIN32_ELMCB_PCSTR $llvm_cv_win32_elmcb_pcstr
19134_ACEOF
19135
19136fi
19137
19138
19139{ echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
19140echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
19141if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
19142  echo $ECHO_N "(cached) $ECHO_C" >&6
19143else
19144  ac_ext=cpp
19145ac_cpp='$CXXCPP $CPPFLAGS'
19146ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19147ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19148ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19149
19150   cat >conftest.$ac_ext <<_ACEOF
19151/* confdefs.h.  */
19152_ACEOF
19153cat confdefs.h >>conftest.$ac_ext
19154cat >>conftest.$ac_ext <<_ACEOF
19155/* end confdefs.h.  */
19156#include <math.h>
19157int
19158main ()
19159{
19160float f; isnan(f);
19161  ;
19162  return 0;
19163}
19164_ACEOF
19165rm -f conftest.$ac_objext
19166if { (ac_try="$ac_compile"
19167case "(($ac_try" in
19168  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19169  *) ac_try_echo=$ac_try;;
19170esac
19171eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19172  (eval "$ac_compile") 2>conftest.er1
19173  ac_status=$?
19174  grep -v '^ *+' conftest.er1 >conftest.err
19175  rm -f conftest.er1
19176  cat conftest.err >&5
19177  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19178  (exit $ac_status); } &&
19179	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19180  { (case "(($ac_try" in
19181  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19182  *) ac_try_echo=$ac_try;;
19183esac
19184eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19185  (eval "$ac_try") 2>&5
19186  ac_status=$?
19187  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19188  (exit $ac_status); }; } &&
19189	 { ac_try='test -s conftest.$ac_objext'
19190  { (case "(($ac_try" in
19191  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19192  *) ac_try_echo=$ac_try;;
19193esac
19194eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19195  (eval "$ac_try") 2>&5
19196  ac_status=$?
19197  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19198  (exit $ac_status); }; }; then
19199  ac_cv_func_isnan_in_math_h=yes
19200else
19201  echo "$as_me: failed program was:" >&5
19202sed 's/^/| /' conftest.$ac_ext >&5
19203
19204	ac_cv_func_isnan_in_math_h=no
19205fi
19206
19207rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19208  ac_ext=c
19209ac_cpp='$CPP $CPPFLAGS'
19210ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19211ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19212ac_compiler_gnu=$ac_cv_c_compiler_gnu
19213
19214fi
19215{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
19216echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
19217
19218
19219if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
19220
19221cat >>confdefs.h <<\_ACEOF
19222#define HAVE_ISNAN_IN_MATH_H 1
19223_ACEOF
19224
19225fi
19226
19227{ echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
19228echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
19229if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
19230  echo $ECHO_N "(cached) $ECHO_C" >&6
19231else
19232  ac_ext=cpp
19233ac_cpp='$CXXCPP $CPPFLAGS'
19234ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19235ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19236ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19237
19238   cat >conftest.$ac_ext <<_ACEOF
19239/* confdefs.h.  */
19240_ACEOF
19241cat confdefs.h >>conftest.$ac_ext
19242cat >>conftest.$ac_ext <<_ACEOF
19243/* end confdefs.h.  */
19244#include <cmath>
19245int
19246main ()
19247{
19248float f; isnan(f);
19249  ;
19250  return 0;
19251}
19252_ACEOF
19253rm -f conftest.$ac_objext
19254if { (ac_try="$ac_compile"
19255case "(($ac_try" in
19256  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19257  *) ac_try_echo=$ac_try;;
19258esac
19259eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19260  (eval "$ac_compile") 2>conftest.er1
19261  ac_status=$?
19262  grep -v '^ *+' conftest.er1 >conftest.err
19263  rm -f conftest.er1
19264  cat conftest.err >&5
19265  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19266  (exit $ac_status); } &&
19267	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19268  { (case "(($ac_try" in
19269  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19270  *) ac_try_echo=$ac_try;;
19271esac
19272eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19273  (eval "$ac_try") 2>&5
19274  ac_status=$?
19275  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19276  (exit $ac_status); }; } &&
19277	 { ac_try='test -s conftest.$ac_objext'
19278  { (case "(($ac_try" in
19279  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19280  *) ac_try_echo=$ac_try;;
19281esac
19282eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19283  (eval "$ac_try") 2>&5
19284  ac_status=$?
19285  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19286  (exit $ac_status); }; }; then
19287  ac_cv_func_isnan_in_cmath=yes
19288else
19289  echo "$as_me: failed program was:" >&5
19290sed 's/^/| /' conftest.$ac_ext >&5
19291
19292	ac_cv_func_isnan_in_cmath=no
19293fi
19294
19295rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19296  ac_ext=c
19297ac_cpp='$CPP $CPPFLAGS'
19298ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19299ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19300ac_compiler_gnu=$ac_cv_c_compiler_gnu
19301
19302fi
19303{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
19304echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
19305
19306if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
19307
19308cat >>confdefs.h <<\_ACEOF
19309#define HAVE_ISNAN_IN_CMATH 1
19310_ACEOF
19311
19312fi
19313
19314{ echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
19315echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
19316if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
19317  echo $ECHO_N "(cached) $ECHO_C" >&6
19318else
19319  ac_ext=cpp
19320ac_cpp='$CXXCPP $CPPFLAGS'
19321ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19322ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19323ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19324
19325   cat >conftest.$ac_ext <<_ACEOF
19326/* confdefs.h.  */
19327_ACEOF
19328cat confdefs.h >>conftest.$ac_ext
19329cat >>conftest.$ac_ext <<_ACEOF
19330/* end confdefs.h.  */
19331#include <cmath>
19332int
19333main ()
19334{
19335float f; std::isnan(f);
19336  ;
19337  return 0;
19338}
19339_ACEOF
19340rm -f conftest.$ac_objext
19341if { (ac_try="$ac_compile"
19342case "(($ac_try" in
19343  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19344  *) ac_try_echo=$ac_try;;
19345esac
19346eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19347  (eval "$ac_compile") 2>conftest.er1
19348  ac_status=$?
19349  grep -v '^ *+' conftest.er1 >conftest.err
19350  rm -f conftest.er1
19351  cat conftest.err >&5
19352  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19353  (exit $ac_status); } &&
19354	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19355  { (case "(($ac_try" in
19356  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19357  *) ac_try_echo=$ac_try;;
19358esac
19359eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19360  (eval "$ac_try") 2>&5
19361  ac_status=$?
19362  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19363  (exit $ac_status); }; } &&
19364	 { ac_try='test -s conftest.$ac_objext'
19365  { (case "(($ac_try" in
19366  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19367  *) ac_try_echo=$ac_try;;
19368esac
19369eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19370  (eval "$ac_try") 2>&5
19371  ac_status=$?
19372  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19373  (exit $ac_status); }; }; then
19374  ac_cv_func_std_isnan_in_cmath=yes
19375else
19376  echo "$as_me: failed program was:" >&5
19377sed 's/^/| /' conftest.$ac_ext >&5
19378
19379	ac_cv_func_std_isnan_in_cmath=no
19380fi
19381
19382rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19383  ac_ext=c
19384ac_cpp='$CPP $CPPFLAGS'
19385ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19386ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19387ac_compiler_gnu=$ac_cv_c_compiler_gnu
19388
19389fi
19390{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
19391echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
19392
19393if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
19394
19395cat >>confdefs.h <<\_ACEOF
19396#define HAVE_STD_ISNAN_IN_CMATH 1
19397_ACEOF
19398
19399fi
19400
19401
19402{ echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
19403echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
19404if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
19405  echo $ECHO_N "(cached) $ECHO_C" >&6
19406else
19407  ac_ext=cpp
19408ac_cpp='$CXXCPP $CPPFLAGS'
19409ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19410ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19411ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19412
19413   cat >conftest.$ac_ext <<_ACEOF
19414/* confdefs.h.  */
19415_ACEOF
19416cat confdefs.h >>conftest.$ac_ext
19417cat >>conftest.$ac_ext <<_ACEOF
19418/* end confdefs.h.  */
19419#include <math.h>
19420int
19421main ()
19422{
19423float f; isinf(f);
19424  ;
19425  return 0;
19426}
19427_ACEOF
19428rm -f conftest.$ac_objext
19429if { (ac_try="$ac_compile"
19430case "(($ac_try" in
19431  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19432  *) ac_try_echo=$ac_try;;
19433esac
19434eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19435  (eval "$ac_compile") 2>conftest.er1
19436  ac_status=$?
19437  grep -v '^ *+' conftest.er1 >conftest.err
19438  rm -f conftest.er1
19439  cat conftest.err >&5
19440  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19441  (exit $ac_status); } &&
19442	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19443  { (case "(($ac_try" in
19444  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19445  *) ac_try_echo=$ac_try;;
19446esac
19447eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19448  (eval "$ac_try") 2>&5
19449  ac_status=$?
19450  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19451  (exit $ac_status); }; } &&
19452	 { ac_try='test -s conftest.$ac_objext'
19453  { (case "(($ac_try" in
19454  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19455  *) ac_try_echo=$ac_try;;
19456esac
19457eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19458  (eval "$ac_try") 2>&5
19459  ac_status=$?
19460  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19461  (exit $ac_status); }; }; then
19462  ac_cv_func_isinf_in_math_h=yes
19463else
19464  echo "$as_me: failed program was:" >&5
19465sed 's/^/| /' conftest.$ac_ext >&5
19466
19467	ac_cv_func_isinf_in_math_h=no
19468fi
19469
19470rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19471  ac_ext=c
19472ac_cpp='$CPP $CPPFLAGS'
19473ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19474ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19475ac_compiler_gnu=$ac_cv_c_compiler_gnu
19476
19477fi
19478{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
19479echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
19480
19481if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
19482
19483cat >>confdefs.h <<\_ACEOF
19484#define HAVE_ISINF_IN_MATH_H 1
19485_ACEOF
19486
19487fi
19488
19489{ echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
19490echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
19491if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
19492  echo $ECHO_N "(cached) $ECHO_C" >&6
19493else
19494  ac_ext=cpp
19495ac_cpp='$CXXCPP $CPPFLAGS'
19496ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19497ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19498ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19499
19500   cat >conftest.$ac_ext <<_ACEOF
19501/* confdefs.h.  */
19502_ACEOF
19503cat confdefs.h >>conftest.$ac_ext
19504cat >>conftest.$ac_ext <<_ACEOF
19505/* end confdefs.h.  */
19506#include <cmath>
19507int
19508main ()
19509{
19510float f; isinf(f);
19511  ;
19512  return 0;
19513}
19514_ACEOF
19515rm -f conftest.$ac_objext
19516if { (ac_try="$ac_compile"
19517case "(($ac_try" in
19518  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19519  *) ac_try_echo=$ac_try;;
19520esac
19521eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19522  (eval "$ac_compile") 2>conftest.er1
19523  ac_status=$?
19524  grep -v '^ *+' conftest.er1 >conftest.err
19525  rm -f conftest.er1
19526  cat conftest.err >&5
19527  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19528  (exit $ac_status); } &&
19529	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19530  { (case "(($ac_try" in
19531  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19532  *) ac_try_echo=$ac_try;;
19533esac
19534eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19535  (eval "$ac_try") 2>&5
19536  ac_status=$?
19537  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19538  (exit $ac_status); }; } &&
19539	 { ac_try='test -s conftest.$ac_objext'
19540  { (case "(($ac_try" in
19541  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19542  *) ac_try_echo=$ac_try;;
19543esac
19544eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19545  (eval "$ac_try") 2>&5
19546  ac_status=$?
19547  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19548  (exit $ac_status); }; }; then
19549  ac_cv_func_isinf_in_cmath=yes
19550else
19551  echo "$as_me: failed program was:" >&5
19552sed 's/^/| /' conftest.$ac_ext >&5
19553
19554	ac_cv_func_isinf_in_cmath=no
19555fi
19556
19557rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19558  ac_ext=c
19559ac_cpp='$CPP $CPPFLAGS'
19560ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19561ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19562ac_compiler_gnu=$ac_cv_c_compiler_gnu
19563
19564fi
19565{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
19566echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
19567
19568if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
19569
19570cat >>confdefs.h <<\_ACEOF
19571#define HAVE_ISINF_IN_CMATH 1
19572_ACEOF
19573
19574fi
19575
19576{ echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
19577echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
19578if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
19579  echo $ECHO_N "(cached) $ECHO_C" >&6
19580else
19581  ac_ext=cpp
19582ac_cpp='$CXXCPP $CPPFLAGS'
19583ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19584ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19585ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19586
19587   cat >conftest.$ac_ext <<_ACEOF
19588/* confdefs.h.  */
19589_ACEOF
19590cat confdefs.h >>conftest.$ac_ext
19591cat >>conftest.$ac_ext <<_ACEOF
19592/* end confdefs.h.  */
19593#include <cmath>
19594int
19595main ()
19596{
19597float f; std::isinf(f);
19598  ;
19599  return 0;
19600}
19601_ACEOF
19602rm -f conftest.$ac_objext
19603if { (ac_try="$ac_compile"
19604case "(($ac_try" in
19605  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19606  *) ac_try_echo=$ac_try;;
19607esac
19608eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19609  (eval "$ac_compile") 2>conftest.er1
19610  ac_status=$?
19611  grep -v '^ *+' conftest.er1 >conftest.err
19612  rm -f conftest.er1
19613  cat conftest.err >&5
19614  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19615  (exit $ac_status); } &&
19616	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19617  { (case "(($ac_try" in
19618  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19619  *) ac_try_echo=$ac_try;;
19620esac
19621eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19622  (eval "$ac_try") 2>&5
19623  ac_status=$?
19624  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19625  (exit $ac_status); }; } &&
19626	 { ac_try='test -s conftest.$ac_objext'
19627  { (case "(($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_try") 2>&5
19633  ac_status=$?
19634  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19635  (exit $ac_status); }; }; then
19636  ac_cv_func_std_isinf_in_cmath=yes
19637else
19638  echo "$as_me: failed program was:" >&5
19639sed 's/^/| /' conftest.$ac_ext >&5
19640
19641	ac_cv_func_std_isinf_in_cmath=no
19642fi
19643
19644rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19645  ac_ext=c
19646ac_cpp='$CPP $CPPFLAGS'
19647ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19648ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19649ac_compiler_gnu=$ac_cv_c_compiler_gnu
19650
19651fi
19652{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
19653echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
19654
19655if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
19656
19657cat >>confdefs.h <<\_ACEOF
19658#define HAVE_STD_ISINF_IN_CMATH 1
19659_ACEOF
19660
19661fi
19662
19663{ echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
19664echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
19665if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
19666  echo $ECHO_N "(cached) $ECHO_C" >&6
19667else
19668  ac_ext=cpp
19669ac_cpp='$CXXCPP $CPPFLAGS'
19670ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19671ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19672ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19673
19674   cat >conftest.$ac_ext <<_ACEOF
19675/* confdefs.h.  */
19676_ACEOF
19677cat confdefs.h >>conftest.$ac_ext
19678cat >>conftest.$ac_ext <<_ACEOF
19679/* end confdefs.h.  */
19680#include <ieeefp.h>
19681int
19682main ()
19683{
19684float f; finite(f);
19685  ;
19686  return 0;
19687}
19688_ACEOF
19689rm -f conftest.$ac_objext
19690if { (ac_try="$ac_compile"
19691case "(($ac_try" in
19692  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19693  *) ac_try_echo=$ac_try;;
19694esac
19695eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19696  (eval "$ac_compile") 2>conftest.er1
19697  ac_status=$?
19698  grep -v '^ *+' conftest.er1 >conftest.err
19699  rm -f conftest.er1
19700  cat conftest.err >&5
19701  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19702  (exit $ac_status); } &&
19703	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19704  { (case "(($ac_try" in
19705  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19706  *) ac_try_echo=$ac_try;;
19707esac
19708eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19709  (eval "$ac_try") 2>&5
19710  ac_status=$?
19711  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19712  (exit $ac_status); }; } &&
19713	 { ac_try='test -s conftest.$ac_objext'
19714  { (case "(($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_try") 2>&5
19720  ac_status=$?
19721  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19722  (exit $ac_status); }; }; then
19723  ac_cv_func_finite_in_ieeefp_h=yes
19724else
19725  echo "$as_me: failed program was:" >&5
19726sed 's/^/| /' conftest.$ac_ext >&5
19727
19728	ac_cv_func_finite_in_ieeefp_h=no
19729fi
19730
19731rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19732  ac_ext=c
19733ac_cpp='$CPP $CPPFLAGS'
19734ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19735ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19736ac_compiler_gnu=$ac_cv_c_compiler_gnu
19737
19738fi
19739{ echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
19740echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
19741
19742if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
19743
19744cat >>confdefs.h <<\_ACEOF
19745#define HAVE_FINITE_IN_IEEEFP_H 1
19746_ACEOF
19747
19748fi
19749
19750
19751
19752if test "$llvm_cv_platform_type" = "Unix" ; then
19753
19754
19755for ac_header in stdlib.h unistd.h
19756do
19757as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19758if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19759  { echo "$as_me:$LINENO: checking for $ac_header" >&5
19760echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19761if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19762  echo $ECHO_N "(cached) $ECHO_C" >&6
19763fi
19764ac_res=`eval echo '${'$as_ac_Header'}'`
19765	       { echo "$as_me:$LINENO: result: $ac_res" >&5
19766echo "${ECHO_T}$ac_res" >&6; }
19767else
19768  # Is the header compilable?
19769{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
19770echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19771cat >conftest.$ac_ext <<_ACEOF
19772/* confdefs.h.  */
19773_ACEOF
19774cat confdefs.h >>conftest.$ac_ext
19775cat >>conftest.$ac_ext <<_ACEOF
19776/* end confdefs.h.  */
19777$ac_includes_default
19778#include <$ac_header>
19779_ACEOF
19780rm -f conftest.$ac_objext
19781if { (ac_try="$ac_compile"
19782case "(($ac_try" in
19783  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19784  *) ac_try_echo=$ac_try;;
19785esac
19786eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19787  (eval "$ac_compile") 2>conftest.er1
19788  ac_status=$?
19789  grep -v '^ *+' conftest.er1 >conftest.err
19790  rm -f conftest.er1
19791  cat conftest.err >&5
19792  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19793  (exit $ac_status); } &&
19794	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19795  { (case "(($ac_try" in
19796  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19797  *) ac_try_echo=$ac_try;;
19798esac
19799eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19800  (eval "$ac_try") 2>&5
19801  ac_status=$?
19802  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19803  (exit $ac_status); }; } &&
19804	 { ac_try='test -s conftest.$ac_objext'
19805  { (case "(($ac_try" in
19806  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19807  *) ac_try_echo=$ac_try;;
19808esac
19809eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19810  (eval "$ac_try") 2>&5
19811  ac_status=$?
19812  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19813  (exit $ac_status); }; }; then
19814  ac_header_compiler=yes
19815else
19816  echo "$as_me: failed program was:" >&5
19817sed 's/^/| /' conftest.$ac_ext >&5
19818
19819	ac_header_compiler=no
19820fi
19821
19822rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19823{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19824echo "${ECHO_T}$ac_header_compiler" >&6; }
19825
19826# Is the header present?
19827{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
19828echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
19829cat >conftest.$ac_ext <<_ACEOF
19830/* confdefs.h.  */
19831_ACEOF
19832cat confdefs.h >>conftest.$ac_ext
19833cat >>conftest.$ac_ext <<_ACEOF
19834/* end confdefs.h.  */
19835#include <$ac_header>
19836_ACEOF
19837if { (ac_try="$ac_cpp conftest.$ac_ext"
19838case "(($ac_try" in
19839  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19840  *) ac_try_echo=$ac_try;;
19841esac
19842eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19843  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19844  ac_status=$?
19845  grep -v '^ *+' conftest.er1 >conftest.err
19846  rm -f conftest.er1
19847  cat conftest.err >&5
19848  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19849  (exit $ac_status); } >/dev/null; then
19850  if test -s conftest.err; then
19851    ac_cpp_err=$ac_c_preproc_warn_flag
19852    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19853  else
19854    ac_cpp_err=
19855  fi
19856else
19857  ac_cpp_err=yes
19858fi
19859if test -z "$ac_cpp_err"; then
19860  ac_header_preproc=yes
19861else
19862  echo "$as_me: failed program was:" >&5
19863sed 's/^/| /' conftest.$ac_ext >&5
19864
19865  ac_header_preproc=no
19866fi
19867
19868rm -f conftest.err conftest.$ac_ext
19869{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19870echo "${ECHO_T}$ac_header_preproc" >&6; }
19871
19872# So?  What about this header?
19873case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19874  yes:no: )
19875    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19876echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19877    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19878echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19879    ac_header_preproc=yes
19880    ;;
19881  no:yes:* )
19882    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19883echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19884    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
19885echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
19886    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19887echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19888    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
19889echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
19890    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19891echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19892    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19893echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19894    ( cat <<\_ASBOX
19895## ------------------------------ ##
19896## Report this to bugs@yourdomain ##
19897## ------------------------------ ##
19898_ASBOX
19899     ) | sed "s/^/$as_me: WARNING:     /" >&2
19900    ;;
19901esac
19902{ echo "$as_me:$LINENO: checking for $ac_header" >&5
19903echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19904if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19905  echo $ECHO_N "(cached) $ECHO_C" >&6
19906else
19907  eval "$as_ac_Header=\$ac_header_preproc"
19908fi
19909ac_res=`eval echo '${'$as_ac_Header'}'`
19910	       { echo "$as_me:$LINENO: result: $ac_res" >&5
19911echo "${ECHO_T}$ac_res" >&6; }
19912
19913fi
19914if test `eval echo '${'$as_ac_Header'}'` = yes; then
19915  cat >>confdefs.h <<_ACEOF
19916#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19917_ACEOF
19918
19919fi
19920
19921done
19922
19923
19924for ac_func in getpagesize
19925do
19926as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19927{ echo "$as_me:$LINENO: checking for $ac_func" >&5
19928echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19929if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19930  echo $ECHO_N "(cached) $ECHO_C" >&6
19931else
19932  cat >conftest.$ac_ext <<_ACEOF
19933/* confdefs.h.  */
19934_ACEOF
19935cat confdefs.h >>conftest.$ac_ext
19936cat >>conftest.$ac_ext <<_ACEOF
19937/* end confdefs.h.  */
19938/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19939   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19940#define $ac_func innocuous_$ac_func
19941
19942/* System header to define __stub macros and hopefully few prototypes,
19943    which can conflict with char $ac_func (); below.
19944    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19945    <limits.h> exists even on freestanding compilers.  */
19946
19947#ifdef __STDC__
19948# include <limits.h>
19949#else
19950# include <assert.h>
19951#endif
19952
19953#undef $ac_func
19954
19955/* Override any GCC internal prototype to avoid an error.
19956   Use char because int might match the return type of a GCC
19957   builtin and then its argument prototype would still apply.  */
19958#ifdef __cplusplus
19959extern "C"
19960#endif
19961char $ac_func ();
19962/* The GNU C library defines this for functions which it implements
19963    to always fail with ENOSYS.  Some functions are actually named
19964    something starting with __ and the normal name is an alias.  */
19965#if defined __stub_$ac_func || defined __stub___$ac_func
19966choke me
19967#endif
19968
19969int
19970main ()
19971{
19972return $ac_func ();
19973  ;
19974  return 0;
19975}
19976_ACEOF
19977rm -f conftest.$ac_objext conftest$ac_exeext
19978if { (ac_try="$ac_link"
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_link") 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_exeext'
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  eval "$as_ac_var=yes"
20012else
20013  echo "$as_me: failed program was:" >&5
20014sed 's/^/| /' conftest.$ac_ext >&5
20015
20016	eval "$as_ac_var=no"
20017fi
20018
20019rm -f core conftest.err conftest.$ac_objext \
20020      conftest$ac_exeext conftest.$ac_ext
20021fi
20022ac_res=`eval echo '${'$as_ac_var'}'`
20023	       { echo "$as_me:$LINENO: result: $ac_res" >&5
20024echo "${ECHO_T}$ac_res" >&6; }
20025if test `eval echo '${'$as_ac_var'}'` = yes; then
20026  cat >>confdefs.h <<_ACEOF
20027#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20028_ACEOF
20029
20030fi
20031done
20032
20033{ echo "$as_me:$LINENO: checking for working mmap" >&5
20034echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
20035if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
20036  echo $ECHO_N "(cached) $ECHO_C" >&6
20037else
20038  if test "$cross_compiling" = yes; then
20039  ac_cv_func_mmap_fixed_mapped=no
20040else
20041  cat >conftest.$ac_ext <<_ACEOF
20042/* confdefs.h.  */
20043_ACEOF
20044cat confdefs.h >>conftest.$ac_ext
20045cat >>conftest.$ac_ext <<_ACEOF
20046/* end confdefs.h.  */
20047$ac_includes_default
20048/* malloc might have been renamed as rpl_malloc. */
20049#undef malloc
20050
20051/* Thanks to Mike Haertel and Jim Avera for this test.
20052   Here is a matrix of mmap possibilities:
20053	mmap private not fixed
20054	mmap private fixed at somewhere currently unmapped
20055	mmap private fixed at somewhere already mapped
20056	mmap shared not fixed
20057	mmap shared fixed at somewhere currently unmapped
20058	mmap shared fixed at somewhere already mapped
20059   For private mappings, we should verify that changes cannot be read()
20060   back from the file, nor mmap's back from the file at a different
20061   address.  (There have been systems where private was not correctly
20062   implemented like the infamous i386 svr4.0, and systems where the
20063   VM page cache was not coherent with the file system buffer cache
20064   like early versions of FreeBSD and possibly contemporary NetBSD.)
20065   For shared mappings, we should conversely verify that changes get
20066   propagated back to all the places they're supposed to be.
20067
20068   Grep wants private fixed already mapped.
20069   The main things grep needs to know about mmap are:
20070   * does it exist and is it safe to write into the mmap'd area
20071   * how to use it (BSD variants)  */
20072
20073#include <fcntl.h>
20074#include <sys/mman.h>
20075
20076#if !STDC_HEADERS && !HAVE_STDLIB_H
20077char *malloc ();
20078#endif
20079
20080/* This mess was copied from the GNU getpagesize.h.  */
20081#if !HAVE_GETPAGESIZE
20082/* Assume that all systems that can run configure have sys/param.h.  */
20083# if !HAVE_SYS_PARAM_H
20084#  define HAVE_SYS_PARAM_H 1
20085# endif
20086
20087# ifdef _SC_PAGESIZE
20088#  define getpagesize() sysconf(_SC_PAGESIZE)
20089# else /* no _SC_PAGESIZE */
20090#  if HAVE_SYS_PARAM_H
20091#   include <sys/param.h>
20092#   ifdef EXEC_PAGESIZE
20093#    define getpagesize() EXEC_PAGESIZE
20094#   else /* no EXEC_PAGESIZE */
20095#    ifdef NBPG
20096#     define getpagesize() NBPG * CLSIZE
20097#     ifndef CLSIZE
20098#      define CLSIZE 1
20099#     endif /* no CLSIZE */
20100#    else /* no NBPG */
20101#     ifdef NBPC
20102#      define getpagesize() NBPC
20103#     else /* no NBPC */
20104#      ifdef PAGESIZE
20105#       define getpagesize() PAGESIZE
20106#      endif /* PAGESIZE */
20107#     endif /* no NBPC */
20108#    endif /* no NBPG */
20109#   endif /* no EXEC_PAGESIZE */
20110#  else /* no HAVE_SYS_PARAM_H */
20111#   define getpagesize() 8192	/* punt totally */
20112#  endif /* no HAVE_SYS_PARAM_H */
20113# endif /* no _SC_PAGESIZE */
20114
20115#endif /* no HAVE_GETPAGESIZE */
20116
20117int
20118main ()
20119{
20120  char *data, *data2, *data3;
20121  int i, pagesize;
20122  int fd;
20123
20124  pagesize = getpagesize ();
20125
20126  /* First, make a file with some known garbage in it. */
20127  data = (char *) malloc (pagesize);
20128  if (!data)
20129    return 1;
20130  for (i = 0; i < pagesize; ++i)
20131    *(data + i) = rand ();
20132  umask (0);
20133  fd = creat ("conftest.mmap", 0600);
20134  if (fd < 0)
20135    return 1;
20136  if (write (fd, data, pagesize) != pagesize)
20137    return 1;
20138  close (fd);
20139
20140  /* Next, try to mmap the file at a fixed address which already has
20141     something else allocated at it.  If we can, also make sure that
20142     we see the same garbage.  */
20143  fd = open ("conftest.mmap", O_RDWR);
20144  if (fd < 0)
20145    return 1;
20146  data2 = (char *) malloc (2 * pagesize);
20147  if (!data2)
20148    return 1;
20149  data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
20150  if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
20151		     MAP_PRIVATE | MAP_FIXED, fd, 0L))
20152    return 1;
20153  for (i = 0; i < pagesize; ++i)
20154    if (*(data + i) != *(data2 + i))
20155      return 1;
20156
20157  /* Finally, make sure that changes to the mapped area do not
20158     percolate back to the file as seen by read().  (This is a bug on
20159     some variants of i386 svr4.0.)  */
20160  for (i = 0; i < pagesize; ++i)
20161    *(data2 + i) = *(data2 + i) + 1;
20162  data3 = (char *) malloc (pagesize);
20163  if (!data3)
20164    return 1;
20165  if (read (fd, data3, pagesize) != pagesize)
20166    return 1;
20167  for (i = 0; i < pagesize; ++i)
20168    if (*(data + i) != *(data3 + i))
20169      return 1;
20170  close (fd);
20171  return 0;
20172}
20173_ACEOF
20174rm -f 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>&5
20182  ac_status=$?
20183  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20184  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20185  { (case "(($ac_try" in
20186  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20187  *) ac_try_echo=$ac_try;;
20188esac
20189eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20190  (eval "$ac_try") 2>&5
20191  ac_status=$?
20192  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20193  (exit $ac_status); }; }; then
20194  ac_cv_func_mmap_fixed_mapped=yes
20195else
20196  echo "$as_me: program exited with status $ac_status" >&5
20197echo "$as_me: failed program was:" >&5
20198sed 's/^/| /' conftest.$ac_ext >&5
20199
20200( exit $ac_status )
20201ac_cv_func_mmap_fixed_mapped=no
20202fi
20203rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20204fi
20205
20206
20207fi
20208{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
20209echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
20210if test $ac_cv_func_mmap_fixed_mapped = yes; then
20211
20212cat >>confdefs.h <<\_ACEOF
20213#define HAVE_MMAP 1
20214_ACEOF
20215
20216fi
20217rm -f conftest.mmap
20218
20219  { echo "$as_me:$LINENO: checking for mmap of files" >&5
20220echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
20221if test "${ac_cv_func_mmap_file+set}" = set; then
20222  echo $ECHO_N "(cached) $ECHO_C" >&6
20223else
20224   ac_ext=c
20225ac_cpp='$CPP $CPPFLAGS'
20226ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20227ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20228ac_compiler_gnu=$ac_cv_c_compiler_gnu
20229
20230  if test "$cross_compiling" = yes; then
20231  ac_cv_func_mmap_file=no
20232else
20233  cat >conftest.$ac_ext <<_ACEOF
20234
20235    /* confdefs.h.  */
20236_ACEOF
20237cat confdefs.h >>conftest.$ac_ext
20238cat >>conftest.$ac_ext <<_ACEOF
20239/* end confdefs.h.  */
20240
20241#include <sys/types.h>
20242#include <sys/mman.h>
20243#include <fcntl.h>
20244
20245int
20246main ()
20247{
20248
20249  int fd;
20250  fd = creat ("foo",0777);
20251  fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
20252  unlink ("foo");
20253  return (fd != (int) MAP_FAILED);
20254  ;
20255  return 0;
20256}
20257_ACEOF
20258rm -f conftest$ac_exeext
20259if { (ac_try="$ac_link"
20260case "(($ac_try" in
20261  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20262  *) ac_try_echo=$ac_try;;
20263esac
20264eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20265  (eval "$ac_link") 2>&5
20266  ac_status=$?
20267  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20268  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20269  { (case "(($ac_try" in
20270  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20271  *) ac_try_echo=$ac_try;;
20272esac
20273eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20274  (eval "$ac_try") 2>&5
20275  ac_status=$?
20276  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20277  (exit $ac_status); }; }; then
20278  ac_cv_func_mmap_file=yes
20279else
20280  echo "$as_me: program exited with status $ac_status" >&5
20281echo "$as_me: failed program was:" >&5
20282sed 's/^/| /' conftest.$ac_ext >&5
20283
20284( exit $ac_status )
20285ac_cv_func_mmap_file=no
20286fi
20287rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20288fi
20289
20290
20291  ac_ext=c
20292ac_cpp='$CPP $CPPFLAGS'
20293ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20294ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20295ac_compiler_gnu=$ac_cv_c_compiler_gnu
20296
20297
20298fi
20299{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
20300echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
20301if test "$ac_cv_func_mmap_file" = yes; then
20302
20303cat >>confdefs.h <<\_ACEOF
20304#define HAVE_MMAP_FILE
20305_ACEOF
20306
20307   MMAP_FILE=yes
20308
20309fi
20310
20311  { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
20312echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
20313if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
20314  echo $ECHO_N "(cached) $ECHO_C" >&6
20315else
20316  if test "$llvm_cv_os_type" = "Interix" ; then
20317   ac_cv_need_dev_zero_for_mmap=yes
20318 else
20319   ac_cv_need_dev_zero_for_mmap=no
20320 fi
20321
20322fi
20323{ echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
20324echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
20325if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
20326
20327cat >>confdefs.h <<\_ACEOF
20328#define NEED_DEV_ZERO_FOR_MMAP 1
20329_ACEOF
20330
20331fi
20332
20333  if test "$ac_cv_func_mmap_fixed_mapped" = "no"
20334  then
20335    { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
20336echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
20337  fi
20338  if test "$ac_cv_func_mmap_file" = "no"
20339  then
20340    { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
20341echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
20342  fi
20343fi
20344
20345{ echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
20346echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
20347ac_ext=cpp
20348ac_cpp='$CXXCPP $CPPFLAGS'
20349ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20350ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20351ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20352
20353cat >conftest.$ac_ext <<_ACEOF
20354/* confdefs.h.  */
20355_ACEOF
20356cat confdefs.h >>conftest.$ac_ext
20357cat >>conftest.$ac_ext <<_ACEOF
20358/* end confdefs.h.  */
20359int main() {
20360        volatile unsigned long val = 1;
20361        __sync_synchronize();
20362        __sync_val_compare_and_swap(&val, 1, 0);
20363        __sync_add_and_fetch(&val, 1);
20364        __sync_sub_and_fetch(&val, 1);
20365        return 0;
20366      }
20367
20368_ACEOF
20369rm -f conftest.$ac_objext conftest$ac_exeext
20370if { (ac_try="$ac_link"
20371case "(($ac_try" in
20372  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20373  *) ac_try_echo=$ac_try;;
20374esac
20375eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20376  (eval "$ac_link") 2>conftest.er1
20377  ac_status=$?
20378  grep -v '^ *+' conftest.er1 >conftest.err
20379  rm -f conftest.er1
20380  cat conftest.err >&5
20381  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20382  (exit $ac_status); } &&
20383	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20384  { (case "(($ac_try" in
20385  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20386  *) ac_try_echo=$ac_try;;
20387esac
20388eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20389  (eval "$ac_try") 2>&5
20390  ac_status=$?
20391  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20392  (exit $ac_status); }; } &&
20393	 { ac_try='test -s conftest$ac_exeext'
20394  { (case "(($ac_try" in
20395  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20396  *) ac_try_echo=$ac_try;;
20397esac
20398eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20399  (eval "$ac_try") 2>&5
20400  ac_status=$?
20401  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20402  (exit $ac_status); }; }; then
20403  ac_ext=c
20404ac_cpp='$CPP $CPPFLAGS'
20405ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20406ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20407ac_compiler_gnu=$ac_cv_c_compiler_gnu
20408
20409  { echo "$as_me:$LINENO: result: yes" >&5
20410echo "${ECHO_T}yes" >&6; }
20411
20412cat >>confdefs.h <<\_ACEOF
20413#define LLVM_HAS_ATOMICS 1
20414_ACEOF
20415
20416else
20417  echo "$as_me: failed program was:" >&5
20418sed 's/^/| /' conftest.$ac_ext >&5
20419
20420	{ echo "$as_me:$LINENO: result: no" >&5
20421echo "${ECHO_T}no" >&6; }
20422
20423cat >>confdefs.h <<\_ACEOF
20424#define LLVM_HAS_ATOMICS 0
20425_ACEOF
20426
20427  { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
20428echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
20429fi
20430
20431rm -f core conftest.err conftest.$ac_objext \
20432      conftest$ac_exeext conftest.$ac_ext
20433
20434
20435if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
20436  { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
20437echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
20438if test "${llvm_cv_linux_mixed+set}" = set; then
20439  echo $ECHO_N "(cached) $ECHO_C" >&6
20440else
20441   ac_ext=c
20442ac_cpp='$CPP $CPPFLAGS'
20443ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20444ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20445ac_compiler_gnu=$ac_cv_c_compiler_gnu
20446
20447  cat >conftest.$ac_ext <<_ACEOF
20448/* confdefs.h.  */
20449_ACEOF
20450cat confdefs.h >>conftest.$ac_ext
20451cat >>conftest.$ac_ext <<_ACEOF
20452/* end confdefs.h.  */
20453#ifndef __x86_64__
20454       error: Not x86-64 even if uname says so!
20455      #endif
20456
20457int
20458main ()
20459{
20460
20461  ;
20462  return 0;
20463}
20464_ACEOF
20465rm -f conftest.$ac_objext
20466if { (ac_try="$ac_compile"
20467case "(($ac_try" in
20468  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20469  *) ac_try_echo=$ac_try;;
20470esac
20471eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20472  (eval "$ac_compile") 2>conftest.er1
20473  ac_status=$?
20474  grep -v '^ *+' conftest.er1 >conftest.err
20475  rm -f conftest.er1
20476  cat conftest.err >&5
20477  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20478  (exit $ac_status); } &&
20479	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20480  { (case "(($ac_try" in
20481  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20482  *) ac_try_echo=$ac_try;;
20483esac
20484eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20485  (eval "$ac_try") 2>&5
20486  ac_status=$?
20487  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20488  (exit $ac_status); }; } &&
20489	 { ac_try='test -s conftest.$ac_objext'
20490  { (case "(($ac_try" in
20491  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20492  *) ac_try_echo=$ac_try;;
20493esac
20494eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20495  (eval "$ac_try") 2>&5
20496  ac_status=$?
20497  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20498  (exit $ac_status); }; }; then
20499  llvm_cv_linux_mixed=no
20500else
20501  echo "$as_me: failed program was:" >&5
20502sed 's/^/| /' conftest.$ac_ext >&5
20503
20504	llvm_cv_linux_mixed=yes
20505fi
20506
20507rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20508  ac_ext=c
20509ac_cpp='$CPP $CPPFLAGS'
20510ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20511ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20512ac_compiler_gnu=$ac_cv_c_compiler_gnu
20513
20514
20515fi
20516{ echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
20517echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
20518
20519  if test "$llvm_cv_linux_mixed" = "yes"; then
20520    llvm_cv_target_arch="x86"
20521    ARCH="x86"
20522  fi
20523fi
20524
20525
20526for ac_func in __dso_handle
20527do
20528as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20529{ echo "$as_me:$LINENO: checking for $ac_func" >&5
20530echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20531if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20532  echo $ECHO_N "(cached) $ECHO_C" >&6
20533else
20534  cat >conftest.$ac_ext <<_ACEOF
20535/* confdefs.h.  */
20536_ACEOF
20537cat confdefs.h >>conftest.$ac_ext
20538cat >>conftest.$ac_ext <<_ACEOF
20539/* end confdefs.h.  */
20540/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20541   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20542#define $ac_func innocuous_$ac_func
20543
20544/* System header to define __stub macros and hopefully few prototypes,
20545    which can conflict with char $ac_func (); below.
20546    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20547    <limits.h> exists even on freestanding compilers.  */
20548
20549#ifdef __STDC__
20550# include <limits.h>
20551#else
20552# include <assert.h>
20553#endif
20554
20555#undef $ac_func
20556
20557/* Override any GCC internal prototype to avoid an error.
20558   Use char because int might match the return type of a GCC
20559   builtin and then its argument prototype would still apply.  */
20560#ifdef __cplusplus
20561extern "C"
20562#endif
20563char $ac_func ();
20564/* The GNU C library defines this for functions which it implements
20565    to always fail with ENOSYS.  Some functions are actually named
20566    something starting with __ and the normal name is an alias.  */
20567#if defined __stub_$ac_func || defined __stub___$ac_func
20568choke me
20569#endif
20570
20571int
20572main ()
20573{
20574return $ac_func ();
20575  ;
20576  return 0;
20577}
20578_ACEOF
20579rm -f conftest.$ac_objext conftest$ac_exeext
20580if { (ac_try="$ac_link"
20581case "(($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_link") 2>conftest.er1
20587  ac_status=$?
20588  grep -v '^ *+' conftest.er1 >conftest.err
20589  rm -f conftest.er1
20590  cat conftest.err >&5
20591  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20592  (exit $ac_status); } &&
20593	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20594  { (case "(($ac_try" in
20595  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20596  *) ac_try_echo=$ac_try;;
20597esac
20598eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20599  (eval "$ac_try") 2>&5
20600  ac_status=$?
20601  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20602  (exit $ac_status); }; } &&
20603	 { ac_try='test -s conftest$ac_exeext'
20604  { (case "(($ac_try" in
20605  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20606  *) ac_try_echo=$ac_try;;
20607esac
20608eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20609  (eval "$ac_try") 2>&5
20610  ac_status=$?
20611  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20612  (exit $ac_status); }; }; then
20613  eval "$as_ac_var=yes"
20614else
20615  echo "$as_me: failed program was:" >&5
20616sed 's/^/| /' conftest.$ac_ext >&5
20617
20618	eval "$as_ac_var=no"
20619fi
20620
20621rm -f core conftest.err conftest.$ac_objext \
20622      conftest$ac_exeext conftest.$ac_ext
20623fi
20624ac_res=`eval echo '${'$as_ac_var'}'`
20625	       { echo "$as_me:$LINENO: result: $ac_res" >&5
20626echo "${ECHO_T}$ac_res" >&6; }
20627if test `eval echo '${'$as_ac_var'}'` = yes; then
20628  cat >>confdefs.h <<_ACEOF
20629#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20630_ACEOF
20631
20632fi
20633done
20634
20635
20636SHLIBEXT=$libltdl_cv_shlibext
20637
20638
20639SHLIBPATH_VAR=$libltdl_cv_shlibpath_var
20640
20641
20642# Translate the various configuration directories and other basic
20643# information into substitutions that will end up in Makefile.config.in
20644# that these configured values can be used by the makefiles
20645if test "${prefix}" = "NONE" ; then
20646  prefix="/usr/local"
20647fi
20648eval LLVM_PREFIX="${prefix}";
20649eval LLVM_BINDIR="${prefix}/bin";
20650eval LLVM_LIBDIR="${prefix}/lib";
20651eval LLVM_DATADIR="${prefix}/share/llvm";
20652eval LLVM_DOCSDIR="${prefix}/share/doc/llvm";
20653eval LLVM_ETCDIR="${prefix}/etc/llvm";
20654eval LLVM_INCLUDEDIR="${prefix}/include";
20655eval LLVM_INFODIR="${prefix}/info";
20656eval LLVM_MANDIR="${prefix}/man";
20657LLVM_CONFIGTIME=`date`
20658
20659
20660
20661
20662
20663
20664
20665
20666
20667
20668
20669# Place the various directores into the config.h file as #defines so that we
20670# can know about the installation paths within LLVM.
20671
20672cat >>confdefs.h <<_ACEOF
20673#define LLVM_PREFIX "$LLVM_PREFIX"
20674_ACEOF
20675
20676
20677cat >>confdefs.h <<_ACEOF
20678#define LLVM_BINDIR "$LLVM_BINDIR"
20679_ACEOF
20680
20681
20682cat >>confdefs.h <<_ACEOF
20683#define LLVM_LIBDIR "$LLVM_LIBDIR"
20684_ACEOF
20685
20686
20687cat >>confdefs.h <<_ACEOF
20688#define LLVM_DATADIR "$LLVM_DATADIR"
20689_ACEOF
20690
20691
20692cat >>confdefs.h <<_ACEOF
20693#define LLVM_DOCSDIR "$LLVM_DOCSDIR"
20694_ACEOF
20695
20696
20697cat >>confdefs.h <<_ACEOF
20698#define LLVM_ETCDIR "$LLVM_ETCDIR"
20699_ACEOF
20700
20701
20702cat >>confdefs.h <<_ACEOF
20703#define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
20704_ACEOF
20705
20706
20707cat >>confdefs.h <<_ACEOF
20708#define LLVM_INFODIR "$LLVM_INFODIR"
20709_ACEOF
20710
20711
20712cat >>confdefs.h <<_ACEOF
20713#define LLVM_MANDIR "$LLVM_MANDIR"
20714_ACEOF
20715
20716
20717cat >>confdefs.h <<_ACEOF
20718#define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
20719_ACEOF
20720
20721
20722cat >>confdefs.h <<_ACEOF
20723#define LLVM_DEFAULT_TARGET_TRIPLE "$target"
20724_ACEOF
20725
20726
20727# Determine which bindings to build.
20728if test "$BINDINGS_TO_BUILD" = auto ; then
20729  BINDINGS_TO_BUILD=""
20730  if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
20731    BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
20732  fi
20733fi
20734BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
20735
20736
20737# This isn't really configurey, but it avoids having to repeat the list in
20738# other files.
20739ALL_BINDINGS=ocaml
20740
20741
20742# Do any work necessary to ensure that bindings have what they need.
20743binding_prereqs_failed=0
20744for a_binding in $BINDINGS_TO_BUILD ; do
20745  case "$a_binding" in
20746  ocaml)
20747    if test "x$OCAMLC" = x ; then
20748      { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
20749echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
20750      binding_prereqs_failed=1
20751    fi
20752    if test "x$OCAMLDEP" = x ; then
20753      { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
20754echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
20755      binding_prereqs_failed=1
20756    fi
20757    if test "x$OCAMLOPT" = x ; then
20758      { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
20759echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
20760          fi
20761    if test "x$with_ocaml_libdir" != xauto ; then
20762      OCAML_LIBDIR=$with_ocaml_libdir
20763
20764    else
20765      ocaml_stdlib="`"$OCAMLC" -where`"
20766      if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
20767      then
20768        # ocaml stdlib is beneath our prefix; use stdlib
20769        OCAML_LIBDIR=$ocaml_stdlib
20770
20771      else
20772        # ocaml stdlib is outside our prefix; use libdir/ocaml
20773        OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
20774
20775      fi
20776    fi
20777    ;;
20778  esac
20779done
20780if test "$binding_prereqs_failed" = 1 ; then
20781  { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
20782echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
20783   { (exit 1); exit 1; }; }
20784fi
20785
20786{ echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
20787echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
20788if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
20789  echo $ECHO_N "(cached) $ECHO_C" >&6
20790else
20791   ac_ext=cpp
20792ac_cpp='$CXXCPP $CPPFLAGS'
20793ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20794ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20795ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20796
20797  oldcxxflags="$CXXFLAGS"
20798  CXXFLAGS="$CXXFLAGS -O0 -fvisibility-inlines-hidden -Werror"
20799  cat >conftest.$ac_ext <<_ACEOF
20800/* confdefs.h.  */
20801_ACEOF
20802cat confdefs.h >>conftest.$ac_ext
20803cat >>conftest.$ac_ext <<_ACEOF
20804/* end confdefs.h.  */
20805template <typename T> struct X { void __attribute__((noinline)) f() {} };
20806int
20807main ()
20808{
20809X<int>().f();
20810  ;
20811  return 0;
20812}
20813_ACEOF
20814rm -f conftest.$ac_objext
20815if { (ac_try="$ac_compile"
20816case "(($ac_try" in
20817  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20818  *) ac_try_echo=$ac_try;;
20819esac
20820eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20821  (eval "$ac_compile") 2>conftest.er1
20822  ac_status=$?
20823  grep -v '^ *+' conftest.er1 >conftest.err
20824  rm -f conftest.er1
20825  cat conftest.err >&5
20826  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20827  (exit $ac_status); } &&
20828	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20829  { (case "(($ac_try" in
20830  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20831  *) ac_try_echo=$ac_try;;
20832esac
20833eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20834  (eval "$ac_try") 2>&5
20835  ac_status=$?
20836  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20837  (exit $ac_status); }; } &&
20838	 { ac_try='test -s conftest.$ac_objext'
20839  { (case "(($ac_try" in
20840  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20841  *) ac_try_echo=$ac_try;;
20842esac
20843eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20844  (eval "$ac_try") 2>&5
20845  ac_status=$?
20846  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20847  (exit $ac_status); }; }; then
20848  llvm_cv_cxx_visibility_inlines_hidden=yes
20849else
20850  echo "$as_me: failed program was:" >&5
20851sed 's/^/| /' conftest.$ac_ext >&5
20852
20853	llvm_cv_cxx_visibility_inlines_hidden=no
20854fi
20855
20856rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20857  CXXFLAGS="$oldcxxflags"
20858  ac_ext=c
20859ac_cpp='$CPP $CPPFLAGS'
20860ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20861ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20862ac_compiler_gnu=$ac_cv_c_compiler_gnu
20863
20864
20865fi
20866{ echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
20867echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
20868if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
20869  ENABLE_VISIBILITY_INLINES_HIDDEN=1
20870
20871else
20872  ENABLE_VISIBILITY_INLINES_HIDDEN=0
20873
20874fi
20875
20876
20877if test "$llvm_cv_link_use_r" = "yes" ; then
20878  RPATH="-Wl,-R"
20879else
20880  RPATH="-Wl,-rpath"
20881fi
20882
20883
20884if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
20885  RDYNAMIC="-Wl,-export-dynamic"
20886else
20887  RDYNAMIC=""
20888fi
20889
20890
20891
20892
20893ac_config_files="$ac_config_files Makefile.common"
20894
20895ac_config_files="$ac_config_files Makefile.llvm.config"
20896
20897
20898ac_config_commands="$ac_config_commands Makefile"
20899
20900
20901ac_config_commands="$ac_config_commands lib/Makefile"
20902
20903
20904ac_config_commands="$ac_config_commands lib/sample/Makefile"
20905
20906
20907ac_config_commands="$ac_config_commands tools/Makefile"
20908
20909
20910ac_config_commands="$ac_config_commands tools/sample/Makefile"
20911
20912
20913
20914cat >confcache <<\_ACEOF
20915# This file is a shell script that caches the results of configure
20916# tests run on this system so they can be shared between configure
20917# scripts and configure runs, see configure's option --config-cache.
20918# It is not useful on other systems.  If it contains results you don't
20919# want to keep, you may remove or edit it.
20920#
20921# config.status only pays attention to the cache file if you give it
20922# the --recheck option to rerun configure.
20923#
20924# `ac_cv_env_foo' variables (set or unset) will be overridden when
20925# loading this file, other *unset* `ac_cv_foo' will be assigned the
20926# following values.
20927
20928_ACEOF
20929
20930# The following way of writing the cache mishandles newlines in values,
20931# but we know of no workaround that is simple, portable, and efficient.
20932# So, we kill variables containing newlines.
20933# Ultrix sh set writes to stderr and can't be redirected directly,
20934# and sets the high bit in the cache file unless we assign to the vars.
20935(
20936  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
20937    eval ac_val=\$$ac_var
20938    case $ac_val in #(
20939    *${as_nl}*)
20940      case $ac_var in #(
20941      *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
20942echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
20943      esac
20944      case $ac_var in #(
20945      _ | IFS | as_nl) ;; #(
20946      *) $as_unset $ac_var ;;
20947      esac ;;
20948    esac
20949  done
20950
20951  (set) 2>&1 |
20952    case $as_nl`(ac_space=' '; set) 2>&1` in #(
20953    *${as_nl}ac_space=\ *)
20954      # `set' does not quote correctly, so add quotes (double-quote
20955      # substitution turns \\\\ into \\, and sed turns \\ into \).
20956      sed -n \
20957	"s/'/'\\\\''/g;
20958	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20959      ;; #(
20960    *)
20961      # `set' quotes correctly as required by POSIX, so do not add quotes.
20962      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
20963      ;;
20964    esac |
20965    sort
20966) |
20967  sed '
20968     /^ac_cv_env_/b end
20969     t clear
20970     :clear
20971     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20972     t end
20973     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20974     :end' >>confcache
20975if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
20976  if test -w "$cache_file"; then
20977    test "x$cache_file" != "x/dev/null" &&
20978      { echo "$as_me:$LINENO: updating cache $cache_file" >&5
20979echo "$as_me: updating cache $cache_file" >&6;}
20980    cat confcache >$cache_file
20981  else
20982    { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
20983echo "$as_me: not updating unwritable cache $cache_file" >&6;}
20984  fi
20985fi
20986rm -f confcache
20987
20988test "x$prefix" = xNONE && prefix=$ac_default_prefix
20989# Let make expand exec_prefix.
20990test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20991
20992# Transform confdefs.h into DEFS.
20993# Protect against shell expansion while executing Makefile rules.
20994# Protect against Makefile macro expansion.
20995#
20996# If the first sed substitution is executed (which looks for macros that
20997# take arguments), then branch to the quote section.  Otherwise,
20998# look for a macro that doesn't take arguments.
20999ac_script='
21000t clear
21001:clear
21002s/^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 (][^	 (]*([^)]*)\)[	 ]*\(.*\)/-D\1=\2/g
21003t quote
21004s/^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 ][^	 ]*\)[	 ]*\(.*\)/-D\1=\2/g
21005t quote
21006b any
21007:quote
21008s/[	 `~#$^&*(){}\\|;'\''"<>?]/\\&/g
21009s/\[/\\&/g
21010s/\]/\\&/g
21011s/\$/$$/g
21012H
21013:any
21014${
21015	g
21016	s/^\n//
21017	s/\n/ /g
21018	p
21019}
21020'
21021DEFS=`sed -n "$ac_script" confdefs.h`
21022
21023
21024ac_libobjs=
21025ac_ltlibobjs=
21026for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21027  # 1. Remove the extension, and $U if already installed.
21028  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
21029  ac_i=`echo "$ac_i" | sed "$ac_script"`
21030  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
21031  #    will be set to the directory where LIBOBJS objects are built.
21032  ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
21033  ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
21034done
21035LIBOBJS=$ac_libobjs
21036
21037LTLIBOBJS=$ac_ltlibobjs
21038
21039
21040if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
21041  { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
21042Usually this means the macro was only invoked conditionally." >&5
21043echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
21044Usually this means the macro was only invoked conditionally." >&2;}
21045   { (exit 1); exit 1; }; }
21046fi
21047if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
21048  { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
21049Usually this means the macro was only invoked conditionally." >&5
21050echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
21051Usually this means the macro was only invoked conditionally." >&2;}
21052   { (exit 1); exit 1; }; }
21053fi
21054
21055: ${CONFIG_STATUS=./config.status}
21056ac_clean_files_save=$ac_clean_files
21057ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21058{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21059echo "$as_me: creating $CONFIG_STATUS" >&6;}
21060cat >$CONFIG_STATUS <<_ACEOF
21061#! $SHELL
21062# Generated by $as_me.
21063# Run this file to recreate the current configuration.
21064# Compiler output produced by configure, useful for debugging
21065# configure, is in config.log if it exists.
21066
21067debug=false
21068ac_cs_recheck=false
21069ac_cs_silent=false
21070SHELL=\${CONFIG_SHELL-$SHELL}
21071_ACEOF
21072
21073cat >>$CONFIG_STATUS <<\_ACEOF
21074## --------------------- ##
21075## M4sh Initialization.  ##
21076## --------------------- ##
21077
21078# Be Bourne compatible
21079if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21080  emulate sh
21081  NULLCMD=:
21082  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21083  # is contrary to our usage.  Disable this feature.
21084  alias -g '${1+"$@"}'='"$@"'
21085  setopt NO_GLOB_SUBST
21086else
21087  case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
21088fi
21089BIN_SH=xpg4; export BIN_SH # for Tru64
21090DUALCASE=1; export DUALCASE # for MKS sh
21091
21092
21093# PATH needs CR
21094# Avoid depending upon Character Ranges.
21095as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21096as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21097as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21098as_cr_digits='0123456789'
21099as_cr_alnum=$as_cr_Letters$as_cr_digits
21100
21101# The user is always right.
21102if test "${PATH_SEPARATOR+set}" != set; then
21103  echo "#! /bin/sh" >conf$$.sh
21104  echo  "exit 0"   >>conf$$.sh
21105  chmod +x conf$$.sh
21106  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21107    PATH_SEPARATOR=';'
21108  else
21109    PATH_SEPARATOR=:
21110  fi
21111  rm -f conf$$.sh
21112fi
21113
21114# Support unset when possible.
21115if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21116  as_unset=unset
21117else
21118  as_unset=false
21119fi
21120
21121
21122# IFS
21123# We need space, tab and new line, in precisely that order.  Quoting is
21124# there to prevent editors from complaining about space-tab.
21125# (If _AS_PATH_WALK were called with IFS unset, it would disable word
21126# splitting by setting IFS to empty value.)
21127as_nl='
21128'
21129IFS=" ""	$as_nl"
21130
21131# Find who we are.  Look in the path if we contain no directory separator.
21132case $0 in
21133  *[\\/]* ) as_myself=$0 ;;
21134  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21135for as_dir in $PATH
21136do
21137  IFS=$as_save_IFS
21138  test -z "$as_dir" && as_dir=.
21139  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21140done
21141IFS=$as_save_IFS
21142
21143     ;;
21144esac
21145# We did not find ourselves, most probably we were run as `sh COMMAND'
21146# in which case we are not to be found in the path.
21147if test "x$as_myself" = x; then
21148  as_myself=$0
21149fi
21150if test ! -f "$as_myself"; then
21151  echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21152  { (exit 1); exit 1; }
21153fi
21154
21155# Work around bugs in pre-3.0 UWIN ksh.
21156for as_var in ENV MAIL MAILPATH
21157do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21158done
21159PS1='$ '
21160PS2='> '
21161PS4='+ '
21162
21163# NLS nuisances.
21164for as_var in \
21165  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21166  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21167  LC_TELEPHONE LC_TIME
21168do
21169  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21170    eval $as_var=C; export $as_var
21171  else
21172    ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21173  fi
21174done
21175
21176# Required to use basename.
21177if expr a : '\(a\)' >/dev/null 2>&1 &&
21178   test "X`expr 00001 : '.*\(...\)'`" = X001; then
21179  as_expr=expr
21180else
21181  as_expr=false
21182fi
21183
21184if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21185  as_basename=basename
21186else
21187  as_basename=false
21188fi
21189
21190
21191# Name of the executable.
21192as_me=`$as_basename -- "$0" ||
21193$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21194	 X"$0" : 'X\(//\)$' \| \
21195	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
21196echo X/"$0" |
21197    sed '/^.*\/\([^/][^/]*\)\/*$/{
21198	    s//\1/
21199	    q
21200	  }
21201	  /^X\/\(\/\/\)$/{
21202	    s//\1/
21203	    q
21204	  }
21205	  /^X\/\(\/\).*/{
21206	    s//\1/
21207	    q
21208	  }
21209	  s/.*/./; q'`
21210
21211# CDPATH.
21212$as_unset CDPATH
21213
21214
21215
21216  as_lineno_1=$LINENO
21217  as_lineno_2=$LINENO
21218  test "x$as_lineno_1" != "x$as_lineno_2" &&
21219  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
21220
21221  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21222  # uniformly replaced by the line number.  The first 'sed' inserts a
21223  # line-number line after each line using $LINENO; the second 'sed'
21224  # does the real work.  The second script uses 'N' to pair each
21225  # line-number line with the line containing $LINENO, and appends
21226  # trailing '-' during substitution so that $LINENO is not a special
21227  # case at line end.
21228  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21229  # scripts with optimization help from Paolo Bonzini.  Blame Lee
21230  # E. McMahon (1931-1989) for sed's syntax.  :-)
21231  sed -n '
21232    p
21233    /[$]LINENO/=
21234  ' <$as_myself |
21235    sed '
21236      s/[$]LINENO.*/&-/
21237      t lineno
21238      b
21239      :lineno
21240      N
21241      :loop
21242      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
21243      t loop
21244      s/-\n.*//
21245    ' >$as_me.lineno &&
21246  chmod +x "$as_me.lineno" ||
21247    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
21248   { (exit 1); exit 1; }; }
21249
21250  # Don't try to exec as it changes $[0], causing all sort of problems
21251  # (the dirname of $[0] is not the place where we might find the
21252  # original and so on.  Autoconf is especially sensitive to this).
21253  . "./$as_me.lineno"
21254  # Exit status is that of the last command.
21255  exit
21256}
21257
21258
21259if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21260  as_dirname=dirname
21261else
21262  as_dirname=false
21263fi
21264
21265ECHO_C= ECHO_N= ECHO_T=
21266case `echo -n x` in
21267-n*)
21268  case `echo 'x\c'` in
21269  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
21270  *)   ECHO_C='\c';;
21271  esac;;
21272*)
21273  ECHO_N='-n';;
21274esac
21275
21276if expr a : '\(a\)' >/dev/null 2>&1 &&
21277   test "X`expr 00001 : '.*\(...\)'`" = X001; then
21278  as_expr=expr
21279else
21280  as_expr=false
21281fi
21282
21283rm -f conf$$ conf$$.exe conf$$.file
21284if test -d conf$$.dir; then
21285  rm -f conf$$.dir/conf$$.file
21286else
21287  rm -f conf$$.dir
21288  mkdir conf$$.dir
21289fi
21290echo >conf$$.file
21291if ln -s conf$$.file conf$$ 2>/dev/null; then
21292  as_ln_s='ln -s'
21293  # ... but there are two gotchas:
21294  # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21295  # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
21296  # In both cases, we have to default to `cp -p'.
21297  ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
21298    as_ln_s='cp -p'
21299elif ln conf$$.file conf$$ 2>/dev/null; then
21300  as_ln_s=ln
21301else
21302  as_ln_s='cp -p'
21303fi
21304rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21305rmdir conf$$.dir 2>/dev/null
21306
21307if mkdir -p . 2>/dev/null; then
21308  as_mkdir_p=:
21309else
21310  test -d ./-p && rmdir ./-p
21311  as_mkdir_p=false
21312fi
21313
21314# Find out whether ``test -x'' works.  Don't use a zero-byte file, as
21315# systems may use methods other than mode bits to determine executability.
21316cat >conf$$.file <<_ASEOF
21317#! /bin/sh
21318exit 0
21319_ASEOF
21320chmod +x conf$$.file
21321if test -x conf$$.file >/dev/null 2>&1; then
21322  as_executable_p="test -x"
21323else
21324  as_executable_p=:
21325fi
21326rm -f conf$$.file
21327
21328# Sed expression to map a string onto a valid CPP name.
21329as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21330
21331# Sed expression to map a string onto a valid variable name.
21332as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21333
21334
21335exec 6>&1
21336
21337# Save the log message, to keep $[0] and so on meaningful, and to
21338# report actual input values of CONFIG_FILES etc. instead of their
21339# values after options handling.
21340ac_log="
21341This file was extended by [SAMPLE] $as_me [x.xx], which was
21342generated by GNU Autoconf 2.60.  Invocation command line was
21343
21344  CONFIG_FILES    = $CONFIG_FILES
21345  CONFIG_HEADERS  = $CONFIG_HEADERS
21346  CONFIG_LINKS    = $CONFIG_LINKS
21347  CONFIG_COMMANDS = $CONFIG_COMMANDS
21348  $ $0 $@
21349
21350on `(hostname || uname -n) 2>/dev/null | sed 1q`
21351"
21352
21353_ACEOF
21354
21355cat >>$CONFIG_STATUS <<_ACEOF
21356# Files that config.status was made for.
21357config_files="$ac_config_files"
21358config_commands="$ac_config_commands"
21359
21360_ACEOF
21361
21362cat >>$CONFIG_STATUS <<\_ACEOF
21363ac_cs_usage="\
21364\`$as_me' instantiates files from templates according to the
21365current configuration.
21366
21367Usage: $0 [OPTIONS] [FILE]...
21368
21369  -h, --help       print this help, then exit
21370  -V, --version    print version number, then exit
21371  -q, --quiet      do not print progress messages
21372  -d, --debug      don't remove temporary files
21373      --recheck    update $as_me by reconfiguring in the same conditions
21374  --file=FILE[:TEMPLATE]
21375		   instantiate the configuration file FILE
21376
21377Configuration files:
21378$config_files
21379
21380Configuration commands:
21381$config_commands
21382
21383Report bugs to <bug-autoconf@gnu.org>."
21384
21385_ACEOF
21386cat >>$CONFIG_STATUS <<_ACEOF
21387ac_cs_version="\\
21388[SAMPLE] config.status [x.xx]
21389configured by $0, generated by GNU Autoconf 2.60,
21390  with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
21391
21392Copyright (C) 2006 Free Software Foundation, Inc.
21393This config.status script is free software; the Free Software Foundation
21394gives unlimited permission to copy, distribute and modify it."
21395
21396ac_pwd='$ac_pwd'
21397srcdir='$srcdir'
21398INSTALL='$INSTALL'
21399_ACEOF
21400
21401cat >>$CONFIG_STATUS <<\_ACEOF
21402# If no file are specified by the user, then we need to provide default
21403# value.  By we need to know if files were specified by the user.
21404ac_need_defaults=:
21405while test $# != 0
21406do
21407  case $1 in
21408  --*=*)
21409    ac_option=`expr "X$1" : 'X\([^=]*\)='`
21410    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
21411    ac_shift=:
21412    ;;
21413  *)
21414    ac_option=$1
21415    ac_optarg=$2
21416    ac_shift=shift
21417    ;;
21418  esac
21419
21420  case $ac_option in
21421  # Handling of the options.
21422  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21423    ac_cs_recheck=: ;;
21424  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
21425    echo "$ac_cs_version"; exit ;;
21426  --debug | --debu | --deb | --de | --d | -d )
21427    debug=: ;;
21428  --file | --fil | --fi | --f )
21429    $ac_shift
21430    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
21431    ac_need_defaults=false;;
21432  --he | --h |  --help | --hel | -h )
21433    echo "$ac_cs_usage"; exit ;;
21434  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21435  | -silent | --silent | --silen | --sile | --sil | --si | --s)
21436    ac_cs_silent=: ;;
21437
21438  # This is an error.
21439  -*) { echo "$as_me: error: unrecognized option: $1
21440Try \`$0 --help' for more information." >&2
21441   { (exit 1); exit 1; }; } ;;
21442
21443  *) ac_config_targets="$ac_config_targets $1"
21444     ac_need_defaults=false ;;
21445
21446  esac
21447  shift
21448done
21449
21450ac_configure_extra_args=
21451
21452if $ac_cs_silent; then
21453  exec 6>/dev/null
21454  ac_configure_extra_args="$ac_configure_extra_args --silent"
21455fi
21456
21457_ACEOF
21458cat >>$CONFIG_STATUS <<_ACEOF
21459if \$ac_cs_recheck; then
21460  echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21461  CONFIG_SHELL=$SHELL
21462  export CONFIG_SHELL
21463  exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21464fi
21465
21466_ACEOF
21467cat >>$CONFIG_STATUS <<\_ACEOF
21468exec 5>>config.log
21469{
21470  echo
21471  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21472## Running $as_me. ##
21473_ASBOX
21474  echo "$ac_log"
21475} >&5
21476
21477_ACEOF
21478cat >>$CONFIG_STATUS <<_ACEOF
21479#
21480# INIT-COMMANDS
21481#
21482llvm_src="${LLVM_SRC}"
21483
21484_ACEOF
21485
21486cat >>$CONFIG_STATUS <<\_ACEOF
21487
21488# Handling of arguments.
21489for ac_config_target in $ac_config_targets
21490do
21491  case $ac_config_target in
21492    "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
21493    "Makefile.common") CONFIG_FILES="$CONFIG_FILES Makefile.common" ;;
21494    "Makefile.llvm.config") CONFIG_FILES="$CONFIG_FILES Makefile.llvm.config" ;;
21495    "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
21496    "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
21497    "lib/sample/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/sample/Makefile" ;;
21498    "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
21499    "tools/sample/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/sample/Makefile" ;;
21500
21501  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21502echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21503   { (exit 1); exit 1; }; };;
21504  esac
21505done
21506
21507
21508# If the user did not use the arguments to specify the items to instantiate,
21509# then the envvar interface is used.  Set only those that are not.
21510# We use the long form for the default assignment because of an extremely
21511# bizarre bug on SunOS 4.1.3.
21512if $ac_need_defaults; then
21513  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21514  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21515fi
21516
21517# Have a temporary directory for convenience.  Make it in the build tree
21518# simply because there is no reason against having it here, and in addition,
21519# creating and moving files from /tmp can sometimes cause problems.
21520# Hook for its removal unless debugging.
21521# Note that there is a small window in which the directory will not be cleaned:
21522# after its creation but before its name has been assigned to `$tmp'.
21523$debug ||
21524{
21525  tmp=
21526  trap 'exit_status=$?
21527  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
21528' 0
21529  trap '{ (exit 1); exit 1; }' 1 2 13 15
21530}
21531# Create a (secure) tmp directory for tmp files.
21532
21533{
21534  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
21535  test -n "$tmp" && test -d "$tmp"
21536}  ||
21537{
21538  tmp=./conf$$-$RANDOM
21539  (umask 077 && mkdir "$tmp")
21540} ||
21541{
21542   echo "$me: cannot create a temporary directory in ." >&2
21543   { (exit 1); exit 1; }
21544}
21545
21546#
21547# Set up the sed scripts for CONFIG_FILES section.
21548#
21549
21550# No need to generate the scripts if there are no CONFIG_FILES.
21551# This happens for instance when ./config.status config.h
21552if test -n "$CONFIG_FILES"; then
21553
21554_ACEOF
21555
21556
21557
21558ac_delim='%!_!# '
21559for ac_last_try in false false false false false :; do
21560  cat >conf$$subs.sed <<_ACEOF
21561SHELL!$SHELL$ac_delim
21562PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
21563PACKAGE_NAME!$PACKAGE_NAME$ac_delim
21564PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
21565PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
21566PACKAGE_STRING!$PACKAGE_STRING$ac_delim
21567PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
21568exec_prefix!$exec_prefix$ac_delim
21569prefix!$prefix$ac_delim
21570program_transform_name!$program_transform_name$ac_delim
21571bindir!$bindir$ac_delim
21572sbindir!$sbindir$ac_delim
21573libexecdir!$libexecdir$ac_delim
21574datarootdir!$datarootdir$ac_delim
21575datadir!$datadir$ac_delim
21576sysconfdir!$sysconfdir$ac_delim
21577sharedstatedir!$sharedstatedir$ac_delim
21578localstatedir!$localstatedir$ac_delim
21579includedir!$includedir$ac_delim
21580oldincludedir!$oldincludedir$ac_delim
21581docdir!$docdir$ac_delim
21582infodir!$infodir$ac_delim
21583htmldir!$htmldir$ac_delim
21584dvidir!$dvidir$ac_delim
21585pdfdir!$pdfdir$ac_delim
21586psdir!$psdir$ac_delim
21587libdir!$libdir$ac_delim
21588localedir!$localedir$ac_delim
21589mandir!$mandir$ac_delim
21590DEFS!$DEFS$ac_delim
21591ECHO_C!$ECHO_C$ac_delim
21592ECHO_N!$ECHO_N$ac_delim
21593ECHO_T!$ECHO_T$ac_delim
21594LIBS!$LIBS$ac_delim
21595build_alias!$build_alias$ac_delim
21596host_alias!$host_alias$ac_delim
21597target_alias!$target_alias$ac_delim
21598LLVM_SRC!$LLVM_SRC$ac_delim
21599LLVM_OBJ!$LLVM_OBJ$ac_delim
21600LLVM_VERSION!$LLVM_VERSION$ac_delim
21601CC!$CC$ac_delim
21602CFLAGS!$CFLAGS$ac_delim
21603LDFLAGS!$LDFLAGS$ac_delim
21604CPPFLAGS!$CPPFLAGS$ac_delim
21605ac_ct_CC!$ac_ct_CC$ac_delim
21606EXEEXT!$EXEEXT$ac_delim
21607OBJEXT!$OBJEXT$ac_delim
21608CXX!$CXX$ac_delim
21609CXXFLAGS!$CXXFLAGS$ac_delim
21610ac_ct_CXX!$ac_ct_CXX$ac_delim
21611CPP!$CPP$ac_delim
21612ENABLE_POLLY!$ENABLE_POLLY$ac_delim
21613LLVM_HAS_POLLY!$LLVM_HAS_POLLY$ac_delim
21614subdirs!$subdirs$ac_delim
21615build!$build$ac_delim
21616build_cpu!$build_cpu$ac_delim
21617build_vendor!$build_vendor$ac_delim
21618build_os!$build_os$ac_delim
21619host!$host$ac_delim
21620host_cpu!$host_cpu$ac_delim
21621host_vendor!$host_vendor$ac_delim
21622host_os!$host_os$ac_delim
21623target!$target$ac_delim
21624target_cpu!$target_cpu$ac_delim
21625target_vendor!$target_vendor$ac_delim
21626target_os!$target_os$ac_delim
21627OS!$OS$ac_delim
21628HOST_OS!$HOST_OS$ac_delim
21629TARGET_OS!$TARGET_OS$ac_delim
21630LINKALL!$LINKALL$ac_delim
21631NOLINKALL!$NOLINKALL$ac_delim
21632LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
21633LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
21634ARCH!$ARCH$ac_delim
21635ENDIAN!$ENDIAN$ac_delim
21636GREP!$GREP$ac_delim
21637EGREP!$EGREP$ac_delim
21638LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
21639BUILD_CC!$BUILD_CC$ac_delim
21640BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
21641BUILD_CXX!$BUILD_CXX$ac_delim
21642CVSBUILD!$CVSBUILD$ac_delim
21643ENABLE_LIBCPP!$ENABLE_LIBCPP$ac_delim
21644ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
21645ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
21646DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
21647ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
21648EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
21649DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
21650DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
21651JIT!$JIT$ac_delim
21652TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
21653ENABLE_DOCS!$ENABLE_DOCS$ac_delim
21654ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
21655ENABLE_THREADS!$ENABLE_THREADS$ac_delim
21656ENABLE_PTHREADS!$ENABLE_PTHREADS$ac_delim
21657ENABLE_PIC!$ENABLE_PIC$ac_delim
21658_ACEOF
21659
21660  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
21661    break
21662  elif $ac_last_try; then
21663    { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21664echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21665   { (exit 1); exit 1; }; }
21666  else
21667    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21668  fi
21669done
21670
21671ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21672if test -n "$ac_eof"; then
21673  ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21674  ac_eof=`expr $ac_eof + 1`
21675fi
21676
21677cat >>$CONFIG_STATUS <<_ACEOF
21678cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
21679/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21680_ACEOF
21681sed '
21682s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21683s/^/s,@/; s/!/@,|#_!!_#|/
21684:n
21685t n
21686s/'"$ac_delim"'$/,g/; t
21687s/$/\\/; p
21688N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21689' >>$CONFIG_STATUS <conf$$subs.sed
21690rm -f conf$$subs.sed
21691cat >>$CONFIG_STATUS <<_ACEOF
21692CEOF$ac_eof
21693_ACEOF
21694
21695
21696ac_delim='%!_!# '
21697for ac_last_try in false false false false false :; do
21698  cat >conf$$subs.sed <<_ACEOF
21699ENABLE_SHARED!$ENABLE_SHARED$ac_delim
21700ENABLE_EMBED_STDCXX!$ENABLE_EMBED_STDCXX$ac_delim
21701ENABLE_TIMESTAMPS!$ENABLE_TIMESTAMPS$ac_delim
21702TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
21703LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
21704LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
21705LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
21706LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
21707OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
21708EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
21709EXTRA_LD_OPTIONS!$EXTRA_LD_OPTIONS$ac_delim
21710BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
21711NM!$NM$ac_delim
21712ifGNUmake!$ifGNUmake$ac_delim
21713LN_S!$LN_S$ac_delim
21714CMP!$CMP$ac_delim
21715CP!$CP$ac_delim
21716DATE!$DATE$ac_delim
21717FIND!$FIND$ac_delim
21718MKDIR!$MKDIR$ac_delim
21719MV!$MV$ac_delim
21720RANLIB!$RANLIB$ac_delim
21721AR!$AR$ac_delim
21722RM!$RM$ac_delim
21723SED!$SED$ac_delim
21724TAR!$TAR$ac_delim
21725BINPWD!$BINPWD$ac_delim
21726GRAPHVIZ!$GRAPHVIZ$ac_delim
21727DOT!$DOT$ac_delim
21728FDP!$FDP$ac_delim
21729NEATO!$NEATO$ac_delim
21730TWOPI!$TWOPI$ac_delim
21731CIRCO!$CIRCO$ac_delim
21732GV!$GV$ac_delim
21733DOTTY!$DOTTY$ac_delim
21734XDOT_PY!$XDOT_PY$ac_delim
21735INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
21736INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
21737INSTALL_DATA!$INSTALL_DATA$ac_delim
21738BZIP2!$BZIP2$ac_delim
21739CAT!$CAT$ac_delim
21740DOXYGEN!$DOXYGEN$ac_delim
21741GROFF!$GROFF$ac_delim
21742GZIPBIN!$GZIPBIN$ac_delim
21743POD2HTML!$POD2HTML$ac_delim
21744POD2MAN!$POD2MAN$ac_delim
21745PDFROFF!$PDFROFF$ac_delim
21746RUNTEST!$RUNTEST$ac_delim
21747TCLSH!$TCLSH$ac_delim
21748ZIP!$ZIP$ac_delim
21749OCAMLC!$OCAMLC$ac_delim
21750OCAMLOPT!$OCAMLOPT$ac_delim
21751OCAMLDEP!$OCAMLDEP$ac_delim
21752OCAMLDOC!$OCAMLDOC$ac_delim
21753GAS!$GAS$ac_delim
21754HAVE_LINK_VERSION_SCRIPT!$HAVE_LINK_VERSION_SCRIPT$ac_delim
21755INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
21756INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
21757CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
21758CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
21759LIBADD_DL!$LIBADD_DL$ac_delim
21760NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
21761NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
21762COVERED_SWITCH_DEFAULT!$COVERED_SWITCH_DEFAULT$ac_delim
21763USE_UDIS86!$USE_UDIS86$ac_delim
21764USE_OPROFILE!$USE_OPROFILE$ac_delim
21765HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
21766HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
21767MMAP_FILE!$MMAP_FILE$ac_delim
21768SHLIBEXT!$SHLIBEXT$ac_delim
21769SHLIBPATH_VAR!$SHLIBPATH_VAR$ac_delim
21770LLVM_PREFIX!$LLVM_PREFIX$ac_delim
21771LLVM_BINDIR!$LLVM_BINDIR$ac_delim
21772LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
21773LLVM_DATADIR!$LLVM_DATADIR$ac_delim
21774LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
21775LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
21776LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
21777LLVM_INFODIR!$LLVM_INFODIR$ac_delim
21778LLVM_MANDIR!$LLVM_MANDIR$ac_delim
21779LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
21780BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
21781ALL_BINDINGS!$ALL_BINDINGS$ac_delim
21782OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
21783ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
21784RPATH!$RPATH$ac_delim
21785RDYNAMIC!$RDYNAMIC$ac_delim
21786LIBOBJS!$LIBOBJS$ac_delim
21787LTLIBOBJS!$LTLIBOBJS$ac_delim
21788_ACEOF
21789
21790  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 89; then
21791    break
21792  elif $ac_last_try; then
21793    { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21794echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21795   { (exit 1); exit 1; }; }
21796  else
21797    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21798  fi
21799done
21800
21801ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21802if test -n "$ac_eof"; then
21803  ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21804  ac_eof=`expr $ac_eof + 1`
21805fi
21806
21807cat >>$CONFIG_STATUS <<_ACEOF
21808cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
21809/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
21810_ACEOF
21811sed '
21812s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21813s/^/s,@/; s/!/@,|#_!!_#|/
21814:n
21815t n
21816s/'"$ac_delim"'$/,g/; t
21817s/$/\\/; p
21818N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21819' >>$CONFIG_STATUS <conf$$subs.sed
21820rm -f conf$$subs.sed
21821cat >>$CONFIG_STATUS <<_ACEOF
21822:end
21823s/|#_!!_#|//g
21824CEOF$ac_eof
21825_ACEOF
21826
21827
21828# VPATH may cause trouble with some makes, so we remove $(srcdir),
21829# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
21830# trailing colons and then remove the whole line if VPATH becomes empty
21831# (actually we leave an empty line to preserve line numbers).
21832if test "x$srcdir" = x.; then
21833  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
21834s/:*\$(srcdir):*/:/
21835s/:*\${srcdir}:*/:/
21836s/:*@srcdir@:*/:/
21837s/^\([^=]*=[	 ]*\):*/\1/
21838s/:*$//
21839s/^[^=]*=[	 ]*$//
21840}'
21841fi
21842
21843cat >>$CONFIG_STATUS <<\_ACEOF
21844fi # test -n "$CONFIG_FILES"
21845
21846
21847for ac_tag in  :F $CONFIG_FILES      :C $CONFIG_COMMANDS
21848do
21849  case $ac_tag in
21850  :[FHLC]) ac_mode=$ac_tag; continue;;
21851  esac
21852  case $ac_mode$ac_tag in
21853  :[FHL]*:*);;
21854  :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
21855echo "$as_me: error: Invalid tag $ac_tag." >&2;}
21856   { (exit 1); exit 1; }; };;
21857  :[FH]-) ac_tag=-:-;;
21858  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
21859  esac
21860  ac_save_IFS=$IFS
21861  IFS=:
21862  set x $ac_tag
21863  IFS=$ac_save_IFS
21864  shift
21865  ac_file=$1
21866  shift
21867
21868  case $ac_mode in
21869  :L) ac_source=$1;;
21870  :[FH])
21871    ac_file_inputs=
21872    for ac_f
21873    do
21874      case $ac_f in
21875      -) ac_f="$tmp/stdin";;
21876      *) # Look for the file first in the build tree, then in the source tree
21877	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
21878	 # because $ac_f cannot contain `:'.
21879	 test -f "$ac_f" ||
21880	   case $ac_f in
21881	   [\\/$]*) false;;
21882	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
21883	   esac ||
21884	   { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
21885echo "$as_me: error: cannot find input file: $ac_f" >&2;}
21886   { (exit 1); exit 1; }; };;
21887      esac
21888      ac_file_inputs="$ac_file_inputs $ac_f"
21889    done
21890
21891    # Let's still pretend it is `configure' which instantiates (i.e., don't
21892    # use $as_me), people would be surprised to read:
21893    #    /* config.h.  Generated by config.status.  */
21894    configure_input="Generated from "`IFS=:
21895	  echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
21896    if test x"$ac_file" != x-; then
21897      configure_input="$ac_file.  $configure_input"
21898      { echo "$as_me:$LINENO: creating $ac_file" >&5
21899echo "$as_me: creating $ac_file" >&6;}
21900    fi
21901
21902    case $ac_tag in
21903    *:-:* | *:-) cat >"$tmp/stdin";;
21904    esac
21905    ;;
21906  esac
21907
21908  ac_dir=`$as_dirname -- "$ac_file" ||
21909$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21910	 X"$ac_file" : 'X\(//\)[^/]' \| \
21911	 X"$ac_file" : 'X\(//\)$' \| \
21912	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
21913echo X"$ac_file" |
21914    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21915	    s//\1/
21916	    q
21917	  }
21918	  /^X\(\/\/\)[^/].*/{
21919	    s//\1/
21920	    q
21921	  }
21922	  /^X\(\/\/\)$/{
21923	    s//\1/
21924	    q
21925	  }
21926	  /^X\(\/\).*/{
21927	    s//\1/
21928	    q
21929	  }
21930	  s/.*/./; q'`
21931  { as_dir="$ac_dir"
21932  case $as_dir in #(
21933  -*) as_dir=./$as_dir;;
21934  esac
21935  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
21936    as_dirs=
21937    while :; do
21938      case $as_dir in #(
21939      *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
21940      *) as_qdir=$as_dir;;
21941      esac
21942      as_dirs="'$as_qdir' $as_dirs"
21943      as_dir=`$as_dirname -- "$as_dir" ||
21944$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21945	 X"$as_dir" : 'X\(//\)[^/]' \| \
21946	 X"$as_dir" : 'X\(//\)$' \| \
21947	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21948echo X"$as_dir" |
21949    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21950	    s//\1/
21951	    q
21952	  }
21953	  /^X\(\/\/\)[^/].*/{
21954	    s//\1/
21955	    q
21956	  }
21957	  /^X\(\/\/\)$/{
21958	    s//\1/
21959	    q
21960	  }
21961	  /^X\(\/\).*/{
21962	    s//\1/
21963	    q
21964	  }
21965	  s/.*/./; q'`
21966      test -d "$as_dir" && break
21967    done
21968    test -z "$as_dirs" || eval "mkdir $as_dirs"
21969  } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
21970echo "$as_me: error: cannot create directory $as_dir" >&2;}
21971   { (exit 1); exit 1; }; }; }
21972  ac_builddir=.
21973
21974case "$ac_dir" in
21975.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21976*)
21977  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21978  # A ".." for each directory in $ac_dir_suffix.
21979  ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
21980  case $ac_top_builddir_sub in
21981  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21982  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21983  esac ;;
21984esac
21985ac_abs_top_builddir=$ac_pwd
21986ac_abs_builddir=$ac_pwd$ac_dir_suffix
21987# for backward compatibility:
21988ac_top_builddir=$ac_top_build_prefix
21989
21990case $srcdir in
21991  .)  # We are building in place.
21992    ac_srcdir=.
21993    ac_top_srcdir=$ac_top_builddir_sub
21994    ac_abs_top_srcdir=$ac_pwd ;;
21995  [\\/]* | ?:[\\/]* )  # Absolute name.
21996    ac_srcdir=$srcdir$ac_dir_suffix;
21997    ac_top_srcdir=$srcdir
21998    ac_abs_top_srcdir=$srcdir ;;
21999  *) # Relative name.
22000    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22001    ac_top_srcdir=$ac_top_build_prefix$srcdir
22002    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22003esac
22004ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22005
22006
22007  case $ac_mode in
22008  :F)
22009  #
22010  # CONFIG_FILE
22011  #
22012
22013  case $INSTALL in
22014  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22015  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
22016  esac
22017_ACEOF
22018
22019cat >>$CONFIG_STATUS <<\_ACEOF
22020# If the template does not know about datarootdir, expand it.
22021# FIXME: This hack should be removed a few years after 2.60.
22022ac_datarootdir_hack=; ac_datarootdir_seen=
22023
22024case `sed -n '/datarootdir/ {
22025  p
22026  q
22027}
22028/@datadir@/p
22029/@docdir@/p
22030/@infodir@/p
22031/@localedir@/p
22032/@mandir@/p
22033' $ac_file_inputs` in
22034*datarootdir*) ac_datarootdir_seen=yes;;
22035*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
22036  { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22037echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
22038_ACEOF
22039cat >>$CONFIG_STATUS <<_ACEOF
22040  ac_datarootdir_hack='
22041  s&@datadir@&$datadir&g
22042  s&@docdir@&$docdir&g
22043  s&@infodir@&$infodir&g
22044  s&@localedir@&$localedir&g
22045  s&@mandir@&$mandir&g
22046    s&\\\${datarootdir}&$datarootdir&g' ;;
22047esac
22048_ACEOF
22049
22050# Neutralize VPATH when `$srcdir' = `.'.
22051# Shell code in configure.ac might set extrasub.
22052# FIXME: do we really want to maintain this feature?
22053cat >>$CONFIG_STATUS <<_ACEOF
22054  sed "$ac_vpsub
22055$extrasub
22056_ACEOF
22057cat >>$CONFIG_STATUS <<\_ACEOF
22058:t
22059/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22060s&@configure_input@&$configure_input&;t t
22061s&@top_builddir@&$ac_top_builddir_sub&;t t
22062s&@srcdir@&$ac_srcdir&;t t
22063s&@abs_srcdir@&$ac_abs_srcdir&;t t
22064s&@top_srcdir@&$ac_top_srcdir&;t t
22065s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22066s&@builddir@&$ac_builddir&;t t
22067s&@abs_builddir@&$ac_abs_builddir&;t t
22068s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22069s&@INSTALL@&$ac_INSTALL&;t t
22070$ac_datarootdir_hack
22071" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
22072
22073test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22074  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
22075  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
22076  { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22077which seems to be undefined.  Please make sure it is defined." >&5
22078echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22079which seems to be undefined.  Please make sure it is defined." >&2;}
22080
22081  rm -f "$tmp/stdin"
22082  case $ac_file in
22083  -) cat "$tmp/out"; rm -f "$tmp/out";;
22084  *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
22085  esac
22086 ;;
22087
22088
22089  :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
22090echo "$as_me: executing $ac_file commands" >&6;}
22091 ;;
22092  esac
22093
22094
22095  case $ac_file$ac_mode in
22096    "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
22097   ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
22098    "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
22099   ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
22100    "lib/sample/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/sample/Makefile`
22101   ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/sample/Makefile lib/sample/Makefile ;;
22102    "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
22103   ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
22104    "tools/sample/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/sample/Makefile`
22105   ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/sample/Makefile tools/sample/Makefile ;;
22106
22107  esac
22108done # for ac_tag
22109
22110
22111{ (exit 0); exit 0; }
22112_ACEOF
22113chmod +x $CONFIG_STATUS
22114ac_clean_files=$ac_clean_files_save
22115
22116
22117# configure is writing to config.log, and then calls config.status.
22118# config.status does its own redirection, appending to config.log.
22119# Unfortunately, on DOS this fails, as config.log is still kept open
22120# by configure, so config.status won't be able to write to it; its
22121# output is simply discarded.  So we exec the FD to /dev/null,
22122# effectively closing config.log, so it can be properly (re)opened and
22123# appended to by config.status.  When coming back to configure, we
22124# need to make the FD available again.
22125if test "$no_create" != yes; then
22126  ac_cs_success=:
22127  ac_config_status_args=
22128  test "$silent" = yes &&
22129    ac_config_status_args="$ac_config_status_args --quiet"
22130  exec 5>/dev/null
22131  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22132  exec 5>>config.log
22133  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22134  # would make configure fail if this is the last instruction.
22135  $ac_cs_success || { (exit 1); exit 1; }
22136fi
22137
22138#
22139# CONFIG_SUBDIRS section.
22140#
22141if test "$no_recursion" != yes; then
22142
22143  # Remove --cache-file and --srcdir arguments so they do not pile up.
22144  ac_sub_configure_args=
22145  ac_prev=
22146  eval "set x $ac_configure_args"
22147  shift
22148  for ac_arg
22149  do
22150    if test -n "$ac_prev"; then
22151      ac_prev=
22152      continue
22153    fi
22154    case $ac_arg in
22155    -cache-file | --cache-file | --cache-fil | --cache-fi \
22156    | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
22157      ac_prev=cache_file ;;
22158    -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
22159    | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
22160    | --c=*)
22161      ;;
22162    --config-cache | -C)
22163      ;;
22164    -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
22165      ac_prev=srcdir ;;
22166    -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
22167      ;;
22168    -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
22169      ac_prev=prefix ;;
22170    -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
22171      ;;
22172    *)
22173      case $ac_arg in
22174      *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
22175      esac
22176      ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
22177    esac
22178  done
22179
22180  # Always prepend --prefix to ensure using the same prefix
22181  # in subdir configurations.
22182  ac_arg="--prefix=$prefix"
22183  case $ac_arg in
22184  *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
22185  esac
22186  ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
22187
22188  ac_popdir=`pwd`
22189  for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
22190
22191    # Do not complain, so a configure script can configure whichever
22192    # parts of a large source tree are present.
22193    test -d "$srcdir/$ac_dir" || continue
22194
22195    ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
22196    echo "$as_me:$LINENO: $ac_msg" >&5
22197    echo "$ac_msg" >&6
22198    { as_dir="$ac_dir"
22199  case $as_dir in #(
22200  -*) as_dir=./$as_dir;;
22201  esac
22202  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22203    as_dirs=
22204    while :; do
22205      case $as_dir in #(
22206      *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22207      *) as_qdir=$as_dir;;
22208      esac
22209      as_dirs="'$as_qdir' $as_dirs"
22210      as_dir=`$as_dirname -- "$as_dir" ||
22211$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22212	 X"$as_dir" : 'X\(//\)[^/]' \| \
22213	 X"$as_dir" : 'X\(//\)$' \| \
22214	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22215echo X"$as_dir" |
22216    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22217	    s//\1/
22218	    q
22219	  }
22220	  /^X\(\/\/\)[^/].*/{
22221	    s//\1/
22222	    q
22223	  }
22224	  /^X\(\/\/\)$/{
22225	    s//\1/
22226	    q
22227	  }
22228	  /^X\(\/\).*/{
22229	    s//\1/
22230	    q
22231	  }
22232	  s/.*/./; q'`
22233      test -d "$as_dir" && break
22234    done
22235    test -z "$as_dirs" || eval "mkdir $as_dirs"
22236  } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22237echo "$as_me: error: cannot create directory $as_dir" >&2;}
22238   { (exit 1); exit 1; }; }; }
22239    ac_builddir=.
22240
22241case "$ac_dir" in
22242.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22243*)
22244  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22245  # A ".." for each directory in $ac_dir_suffix.
22246  ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
22247  case $ac_top_builddir_sub in
22248  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22249  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22250  esac ;;
22251esac
22252ac_abs_top_builddir=$ac_pwd
22253ac_abs_builddir=$ac_pwd$ac_dir_suffix
22254# for backward compatibility:
22255ac_top_builddir=$ac_top_build_prefix
22256
22257case $srcdir in
22258  .)  # We are building in place.
22259    ac_srcdir=.
22260    ac_top_srcdir=$ac_top_builddir_sub
22261    ac_abs_top_srcdir=$ac_pwd ;;
22262  [\\/]* | ?:[\\/]* )  # Absolute name.
22263    ac_srcdir=$srcdir$ac_dir_suffix;
22264    ac_top_srcdir=$srcdir
22265    ac_abs_top_srcdir=$srcdir ;;
22266  *) # Relative name.
22267    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22268    ac_top_srcdir=$ac_top_build_prefix$srcdir
22269    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22270esac
22271ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22272
22273
22274    cd "$ac_dir"
22275
22276    # Check for guested configure; otherwise get Cygnus style configure.
22277    if test -f "$ac_srcdir/configure.gnu"; then
22278      ac_sub_configure=$ac_srcdir/configure.gnu
22279    elif test -f "$ac_srcdir/configure"; then
22280      ac_sub_configure=$ac_srcdir/configure
22281    elif test -f "$ac_srcdir/configure.in"; then
22282      # This should be Cygnus configure.
22283      ac_sub_configure=$ac_aux_dir/configure
22284    else
22285      { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
22286echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
22287      ac_sub_configure=
22288    fi
22289
22290    # The recursion is here.
22291    if test -n "$ac_sub_configure"; then
22292      # Make the cache file name correct relative to the subdirectory.
22293      case $cache_file in
22294      [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
22295      *) # Relative name.
22296	ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
22297      esac
22298
22299      { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
22300echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
22301      # The eval makes quoting arguments work.
22302      eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
22303	   --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
22304	{ { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
22305echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
22306   { (exit 1); exit 1; }; }
22307    fi
22308
22309    cd "$ac_popdir"
22310  done
22311fi
22312
22313