1#! /bin/sh
2# From configure.in Id: configure.in.
3# Guess values for system-dependent variables and create Makefiles.
4# Generated by GNU Autoconf 2.61 for Tclxml 2.6.
5#
6# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
7# 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
8# This configure script is free software; the Free Software Foundation
9# gives unlimited permission to copy, distribute and modify it.
10## --------------------- ##
11## M4sh Initialization.  ##
12## --------------------- ##
13
14# Be more Bourne compatible
15DUALCASE=1; export DUALCASE # for MKS sh
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
25  *posix*) set -o posix ;;
26esac
27
28fi
29
30
31
32
33# PATH needs CR
34# Avoid depending upon Character Ranges.
35as_cr_letters='abcdefghijklmnopqrstuvwxyz'
36as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
37as_cr_Letters=$as_cr_letters$as_cr_LETTERS
38as_cr_digits='0123456789'
39as_cr_alnum=$as_cr_Letters$as_cr_digits
40
41# The user is always right.
42if test "${PATH_SEPARATOR+set}" != set; then
43  echo "#! /bin/sh" >conf$$.sh
44  echo  "exit 0"   >>conf$$.sh
45  chmod +x conf$$.sh
46  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
47    PATH_SEPARATOR=';'
48  else
49    PATH_SEPARATOR=:
50  fi
51  rm -f conf$$.sh
52fi
53
54# Support unset when possible.
55if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
56  as_unset=unset
57else
58  as_unset=false
59fi
60
61
62# IFS
63# We need space, tab and new line, in precisely that order.  Quoting is
64# there to prevent editors from complaining about space-tab.
65# (If _AS_PATH_WALK were called with IFS unset, it would disable word
66# splitting by setting IFS to empty value.)
67as_nl='
68'
69IFS=" ""	$as_nl"
70
71# Find who we are.  Look in the path if we contain no directory separator.
72case $0 in
73  *[\\/]* ) as_myself=$0 ;;
74  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
75for as_dir in $PATH
76do
77  IFS=$as_save_IFS
78  test -z "$as_dir" && as_dir=.
79  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
80done
81IFS=$as_save_IFS
82
83     ;;
84esac
85# We did not find ourselves, most probably we were run as `sh COMMAND'
86# in which case we are not to be found in the path.
87if test "x$as_myself" = x; then
88  as_myself=$0
89fi
90if test ! -f "$as_myself"; then
91  echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
92  { (exit 1); exit 1; }
93fi
94
95# Work around bugs in pre-3.0 UWIN ksh.
96for as_var in ENV MAIL MAILPATH
97do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
98done
99PS1='$ '
100PS2='> '
101PS4='+ '
102
103# NLS nuisances.
104for as_var in \
105  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
106  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
107  LC_TELEPHONE LC_TIME
108do
109  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
110    eval $as_var=C; export $as_var
111  else
112    ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
113  fi
114done
115
116# Required to use basename.
117if expr a : '\(a\)' >/dev/null 2>&1 &&
118   test "X`expr 00001 : '.*\(...\)'`" = X001; then
119  as_expr=expr
120else
121  as_expr=false
122fi
123
124if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
125  as_basename=basename
126else
127  as_basename=false
128fi
129
130
131# Name of the executable.
132as_me=`$as_basename -- "$0" ||
133$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
134	 X"$0" : 'X\(//\)$' \| \
135	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
136echo X/"$0" |
137    sed '/^.*\/\([^/][^/]*\)\/*$/{
138	    s//\1/
139	    q
140	  }
141	  /^X\/\(\/\/\)$/{
142	    s//\1/
143	    q
144	  }
145	  /^X\/\(\/\).*/{
146	    s//\1/
147	    q
148	  }
149	  s/.*/./; q'`
150
151# CDPATH.
152$as_unset CDPATH
153
154
155if test "x$CONFIG_SHELL" = x; then
156  if (eval ":") 2>/dev/null; then
157  as_have_required=yes
158else
159  as_have_required=no
160fi
161
162  if test $as_have_required = yes && 	 (eval ":
163(as_func_return () {
164  (exit \$1)
165}
166as_func_success () {
167  as_func_return 0
168}
169as_func_failure () {
170  as_func_return 1
171}
172as_func_ret_success () {
173  return 0
174}
175as_func_ret_failure () {
176  return 1
177}
178
179exitcode=0
180if as_func_success; then
181  :
182else
183  exitcode=1
184  echo as_func_success failed.
185fi
186
187if as_func_failure; then
188  exitcode=1
189  echo as_func_failure succeeded.
190fi
191
192if as_func_ret_success; then
193  :
194else
195  exitcode=1
196  echo as_func_ret_success failed.
197fi
198
199if as_func_ret_failure; then
200  exitcode=1
201  echo as_func_ret_failure succeeded.
202fi
203
204if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
205  :
206else
207  exitcode=1
208  echo positional parameters were not saved.
209fi
210
211test \$exitcode = 0) || { (exit 1); exit 1; }
212
213(
214  as_lineno_1=\$LINENO
215  as_lineno_2=\$LINENO
216  test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
217  test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
218") 2> /dev/null; then
219  :
220else
221  as_candidate_shells=
222    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
223for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
224do
225  IFS=$as_save_IFS
226  test -z "$as_dir" && as_dir=.
227  case $as_dir in
228	 /*)
229	   for as_base in sh bash ksh sh5; do
230	     as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
231	   done;;
232       esac
233done
234IFS=$as_save_IFS
235
236
237      for as_shell in $as_candidate_shells $SHELL; do
238	 # Try only shells that exist, to save several forks.
239	 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
240		{ ("$as_shell") 2> /dev/null <<\_ASEOF
241if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
242  emulate sh
243  NULLCMD=:
244  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
245  # is contrary to our usage.  Disable this feature.
246  alias -g '${1+"$@"}'='"$@"'
247  setopt NO_GLOB_SUBST
248else
249  case `(set -o) 2>/dev/null` in
250  *posix*) set -o posix ;;
251esac
252
253fi
254
255
256:
257_ASEOF
258}; then
259  CONFIG_SHELL=$as_shell
260	       as_have_required=yes
261	       if { "$as_shell" 2> /dev/null <<\_ASEOF
262if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
263  emulate sh
264  NULLCMD=:
265  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
266  # is contrary to our usage.  Disable this feature.
267  alias -g '${1+"$@"}'='"$@"'
268  setopt NO_GLOB_SUBST
269else
270  case `(set -o) 2>/dev/null` in
271  *posix*) set -o posix ;;
272esac
273
274fi
275
276
277:
278(as_func_return () {
279  (exit $1)
280}
281as_func_success () {
282  as_func_return 0
283}
284as_func_failure () {
285  as_func_return 1
286}
287as_func_ret_success () {
288  return 0
289}
290as_func_ret_failure () {
291  return 1
292}
293
294exitcode=0
295if as_func_success; then
296  :
297else
298  exitcode=1
299  echo as_func_success failed.
300fi
301
302if as_func_failure; then
303  exitcode=1
304  echo as_func_failure succeeded.
305fi
306
307if as_func_ret_success; then
308  :
309else
310  exitcode=1
311  echo as_func_ret_success failed.
312fi
313
314if as_func_ret_failure; then
315  exitcode=1
316  echo as_func_ret_failure succeeded.
317fi
318
319if ( set x; as_func_ret_success y && test x = "$1" ); then
320  :
321else
322  exitcode=1
323  echo positional parameters were not saved.
324fi
325
326test $exitcode = 0) || { (exit 1); exit 1; }
327
328(
329  as_lineno_1=$LINENO
330  as_lineno_2=$LINENO
331  test "x$as_lineno_1" != "x$as_lineno_2" &&
332  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
333
334_ASEOF
335}; then
336  break
337fi
338
339fi
340
341      done
342
343      if test "x$CONFIG_SHELL" != x; then
344  for as_var in BASH_ENV ENV
345        do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
346        done
347        export CONFIG_SHELL
348        exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
349fi
350
351
352    if test $as_have_required = no; then
353  echo This script requires a shell more modern than all the
354      echo shells that I found on your system.  Please install a
355      echo modern shell, or manually run the script under such a
356      echo shell if you do have one.
357      { (exit 1); exit 1; }
358fi
359
360
361fi
362
363fi
364
365
366
367(eval "as_func_return () {
368  (exit \$1)
369}
370as_func_success () {
371  as_func_return 0
372}
373as_func_failure () {
374  as_func_return 1
375}
376as_func_ret_success () {
377  return 0
378}
379as_func_ret_failure () {
380  return 1
381}
382
383exitcode=0
384if as_func_success; then
385  :
386else
387  exitcode=1
388  echo as_func_success failed.
389fi
390
391if as_func_failure; then
392  exitcode=1
393  echo as_func_failure succeeded.
394fi
395
396if as_func_ret_success; then
397  :
398else
399  exitcode=1
400  echo as_func_ret_success failed.
401fi
402
403if as_func_ret_failure; then
404  exitcode=1
405  echo as_func_ret_failure succeeded.
406fi
407
408if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
409  :
410else
411  exitcode=1
412  echo positional parameters were not saved.
413fi
414
415test \$exitcode = 0") || {
416  echo No shell found that supports shell functions.
417  echo Please tell autoconf@gnu.org about your system,
418  echo including any error possibly output before this
419  echo message
420}
421
422
423
424  as_lineno_1=$LINENO
425  as_lineno_2=$LINENO
426  test "x$as_lineno_1" != "x$as_lineno_2" &&
427  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
428
429  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
430  # uniformly replaced by the line number.  The first 'sed' inserts a
431  # line-number line after each line using $LINENO; the second 'sed'
432  # does the real work.  The second script uses 'N' to pair each
433  # line-number line with the line containing $LINENO, and appends
434  # trailing '-' during substitution so that $LINENO is not a special
435  # case at line end.
436  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
437  # scripts with optimization help from Paolo Bonzini.  Blame Lee
438  # E. McMahon (1931-1989) for sed's syntax.  :-)
439  sed -n '
440    p
441    /[$]LINENO/=
442  ' <$as_myself |
443    sed '
444      s/[$]LINENO.*/&-/
445      t lineno
446      b
447      :lineno
448      N
449      :loop
450      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
451      t loop
452      s/-\n.*//
453    ' >$as_me.lineno &&
454  chmod +x "$as_me.lineno" ||
455    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
456   { (exit 1); exit 1; }; }
457
458  # Don't try to exec as it changes $[0], causing all sort of problems
459  # (the dirname of $[0] is not the place where we might find the
460  # original and so on.  Autoconf is especially sensitive to this).
461  . "./$as_me.lineno"
462  # Exit status is that of the last command.
463  exit
464}
465
466
467if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
468  as_dirname=dirname
469else
470  as_dirname=false
471fi
472
473ECHO_C= ECHO_N= ECHO_T=
474case `echo -n x` in
475-n*)
476  case `echo 'x\c'` in
477  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
478  *)   ECHO_C='\c';;
479  esac;;
480*)
481  ECHO_N='-n';;
482esac
483
484if expr a : '\(a\)' >/dev/null 2>&1 &&
485   test "X`expr 00001 : '.*\(...\)'`" = X001; then
486  as_expr=expr
487else
488  as_expr=false
489fi
490
491rm -f conf$$ conf$$.exe conf$$.file
492if test -d conf$$.dir; then
493  rm -f conf$$.dir/conf$$.file
494else
495  rm -f conf$$.dir
496  mkdir conf$$.dir
497fi
498echo >conf$$.file
499if ln -s conf$$.file conf$$ 2>/dev/null; then
500  as_ln_s='ln -s'
501  # ... but there are two gotchas:
502  # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
503  # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
504  # In both cases, we have to default to `cp -p'.
505  ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
506    as_ln_s='cp -p'
507elif ln conf$$.file conf$$ 2>/dev/null; then
508  as_ln_s=ln
509else
510  as_ln_s='cp -p'
511fi
512rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
513rmdir conf$$.dir 2>/dev/null
514
515if mkdir -p . 2>/dev/null; then
516  as_mkdir_p=:
517else
518  test -d ./-p && rmdir ./-p
519  as_mkdir_p=false
520fi
521
522if test -x / >/dev/null 2>&1; then
523  as_test_x='test -x'
524else
525  if ls -dL / >/dev/null 2>&1; then
526    as_ls_L_option=L
527  else
528    as_ls_L_option=
529  fi
530  as_test_x='
531    eval sh -c '\''
532      if test -d "$1"; then
533        test -d "$1/.";
534      else
535	case $1 in
536        -*)set "./$1";;
537	esac;
538	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
539	???[sx]*):;;*)false;;esac;fi
540    '\'' sh
541  '
542fi
543as_executable_p=$as_test_x
544
545# Sed expression to map a string onto a valid CPP name.
546as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
547
548# Sed expression to map a string onto a valid variable name.
549as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
550
551
552
553exec 7<&0 </dev/null 6>&1
554
555# Name of the host.
556# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
557# so uname gets run too.
558ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
559
560#
561# Initializations.
562#
563ac_default_prefix=/usr/local
564ac_clean_files=
565ac_config_libobj_dir=.
566LIBOBJS=
567cross_compiling=no
568subdirs=
569MFLAGS=
570MAKEFLAGS=
571SHELL=${CONFIG_SHELL-/bin/sh}
572
573# Identity of this package.
574PACKAGE_NAME='Tclxml'
575PACKAGE_TARNAME='tclxml'
576PACKAGE_VERSION='2.6'
577PACKAGE_STRING='Tclxml 2.6'
578PACKAGE_BUGREPORT=''
579
580# Factoring default headers for most tests.
581ac_includes_default="\
582#include <stdio.h>
583#ifdef HAVE_SYS_TYPES_H
584# include <sys/types.h>
585#endif
586#ifdef HAVE_SYS_STAT_H
587# include <sys/stat.h>
588#endif
589#ifdef STDC_HEADERS
590# include <stdlib.h>
591# include <stddef.h>
592#else
593# ifdef HAVE_STDLIB_H
594#  include <stdlib.h>
595# endif
596#endif
597#ifdef HAVE_STRING_H
598# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
599#  include <memory.h>
600# endif
601# include <string.h>
602#endif
603#ifdef HAVE_STRINGS_H
604# include <strings.h>
605#endif
606#ifdef HAVE_INTTYPES_H
607# include <inttypes.h>
608#endif
609#ifdef HAVE_STDINT_H
610# include <stdint.h>
611#endif
612#ifdef HAVE_UNISTD_H
613# include <unistd.h>
614#endif"
615
616ac_subst_vars='SHELL
617PATH_SEPARATOR
618PACKAGE_NAME
619PACKAGE_TARNAME
620PACKAGE_VERSION
621PACKAGE_STRING
622PACKAGE_BUGREPORT
623exec_prefix
624prefix
625program_transform_name
626bindir
627sbindir
628libexecdir
629datarootdir
630datadir
631sysconfdir
632sharedstatedir
633localstatedir
634includedir
635oldincludedir
636docdir
637infodir
638htmldir
639dvidir
640pdfdir
641psdir
642libdir
643localedir
644mandir
645DEFS
646ECHO_C
647ECHO_N
648ECHO_T
649LIBS
650build_alias
651host_alias
652target_alias
653CONFIGDIR
654PACKAGE
655VERSION
656TCLXML_VERSION
657Tclxml_LIB_FILE
658Tclxmlstub_LIB_FILE
659CYGPATH
660EXEEXT
661PKG_LIB_FILE
662PKG_STUB_LIB_FILE
663PKG_STUB_SOURCES
664PKG_STUB_OBJECTS
665PKG_TCL_SOURCES
666PKG_HEADERS
667PKG_INCLUDES
668PKG_LIBS
669PKG_CFLAGS
670TCL_VERSION
671TCL_PATCH_LEVEL
672TCL_BIN_DIR
673TCL_SRC_DIR
674TCL_LIB_FILE
675TCL_LIB_FLAG
676TCL_LIB_SPEC
677TCL_STUB_LIB_FILE
678TCL_STUB_LIB_FLAG
679TCL_STUB_LIB_SPEC
680CLEANFILES
681TCL_LIBS
682TCL_DEFS
683TCL_EXTRA_CFLAGS
684TCL_LD_FLAGS
685TCL_SHLIB_LD_LIBS
686CC
687CFLAGS
688LDFLAGS
689CPPFLAGS
690ac_ct_CC
691OBJEXT
692CPP
693INSTALL_PROGRAM
694INSTALL_SCRIPT
695INSTALL_DATA
696SET_MAKE
697RANLIB
698GREP
699EGREP
700MATH_LIBS
701TCL_INCLUDES
702EXTRA_SOURCES
703TCL_THREADS
704SHARED_BUILD
705AR
706CELIB_DIR
707CFLAGS_DEBUG
708CFLAGS_OPTIMIZE
709CFLAGS_WARNING
710STLIB_LD
711SHLIB_LD
712SHLIB_LD_LIBS
713SHLIB_CFLAGS
714LD_LIBRARY_PATH_VAR
715CFLAGS_DEFAULT
716LDFLAGS_DEFAULT
717TCL_DBGX
718MAKE_LIB
719MAKE_SHARED_LIB
720MAKE_STATIC_LIB
721MAKE_STUB_LIB
722RANLIB_STUB
723VC_MANIFEST_EMBED_DLL
724VC_MANIFEST_EMBED_EXE
725TCLSH_PROG
726Tclxml_BUILD_LIB_SPEC
727Tclxml_LIB_SPEC
728Tclxml_BUILD_STUB_LIB_SPEC
729Tclxml_STUB_LIB_SPEC
730Tclxml_BUILD_STUB_LIB_PATH
731Tclxml_STUB_LIB_PATH
732MAJOR_VERSION
733MINOR_VERSION
734PATCHLEVEL
735LIBOBJS
736LTLIBOBJS'
737ac_subst_files=''
738      ac_precious_vars='build_alias
739host_alias
740target_alias
741CC
742CFLAGS
743LDFLAGS
744LIBS
745CPPFLAGS
746CPP'
747
748
749# Initialize some variables set by options.
750ac_init_help=
751ac_init_version=false
752# The variables have the same names as the options, with
753# dashes changed to underlines.
754cache_file=/dev/null
755exec_prefix=NONE
756no_create=
757no_recursion=
758prefix=NONE
759program_prefix=NONE
760program_suffix=NONE
761program_transform_name=s,x,x,
762silent=
763site=
764srcdir=
765verbose=
766x_includes=NONE
767x_libraries=NONE
768
769# Installation directory options.
770# These are left unexpanded so users can "make install exec_prefix=/foo"
771# and all the variables that are supposed to be based on exec_prefix
772# by default will actually change.
773# Use braces instead of parens because sh, perl, etc. also accept them.
774# (The list follows the same order as the GNU Coding Standards.)
775bindir='${exec_prefix}/bin'
776sbindir='${exec_prefix}/sbin'
777libexecdir='${exec_prefix}/libexec'
778datarootdir='${prefix}/share'
779datadir='${datarootdir}'
780sysconfdir='${prefix}/etc'
781sharedstatedir='${prefix}/com'
782localstatedir='${prefix}/var'
783includedir='${prefix}/include'
784oldincludedir='/usr/include'
785docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
786infodir='${datarootdir}/info'
787htmldir='${docdir}'
788dvidir='${docdir}'
789pdfdir='${docdir}'
790psdir='${docdir}'
791libdir='${exec_prefix}/lib'
792localedir='${datarootdir}/locale'
793mandir='${datarootdir}/man'
794
795ac_prev=
796ac_dashdash=
797for ac_option
798do
799  # If the previous option needs an argument, assign it.
800  if test -n "$ac_prev"; then
801    eval $ac_prev=\$ac_option
802    ac_prev=
803    continue
804  fi
805
806  case $ac_option in
807  *=*)	ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
808  *)	ac_optarg=yes ;;
809  esac
810
811  # Accept the important Cygnus configure options, so we can diagnose typos.
812
813  case $ac_dashdash$ac_option in
814  --)
815    ac_dashdash=yes ;;
816
817  -bindir | --bindir | --bindi | --bind | --bin | --bi)
818    ac_prev=bindir ;;
819  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
820    bindir=$ac_optarg ;;
821
822  -build | --build | --buil | --bui | --bu)
823    ac_prev=build_alias ;;
824  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
825    build_alias=$ac_optarg ;;
826
827  -cache-file | --cache-file | --cache-fil | --cache-fi \
828  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
829    ac_prev=cache_file ;;
830  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
831  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
832    cache_file=$ac_optarg ;;
833
834  --config-cache | -C)
835    cache_file=config.cache ;;
836
837  -datadir | --datadir | --datadi | --datad)
838    ac_prev=datadir ;;
839  -datadir=* | --datadir=* | --datadi=* | --datad=*)
840    datadir=$ac_optarg ;;
841
842  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
843  | --dataroo | --dataro | --datar)
844    ac_prev=datarootdir ;;
845  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
846  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
847    datarootdir=$ac_optarg ;;
848
849  -disable-* | --disable-*)
850    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
851    # Reject names that are not valid shell variable names.
852    expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
853      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
854   { (exit 1); exit 1; }; }
855    ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
856    eval enable_$ac_feature=no ;;
857
858  -docdir | --docdir | --docdi | --doc | --do)
859    ac_prev=docdir ;;
860  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
861    docdir=$ac_optarg ;;
862
863  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
864    ac_prev=dvidir ;;
865  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
866    dvidir=$ac_optarg ;;
867
868  -enable-* | --enable-*)
869    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
870    # Reject names that are not valid shell variable names.
871    expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
872      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
873   { (exit 1); exit 1; }; }
874    ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
875    eval enable_$ac_feature=\$ac_optarg ;;
876
877  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
878  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
879  | --exec | --exe | --ex)
880    ac_prev=exec_prefix ;;
881  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
882  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
883  | --exec=* | --exe=* | --ex=*)
884    exec_prefix=$ac_optarg ;;
885
886  -gas | --gas | --ga | --g)
887    # Obsolete; use --with-gas.
888    with_gas=yes ;;
889
890  -help | --help | --hel | --he | -h)
891    ac_init_help=long ;;
892  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
893    ac_init_help=recursive ;;
894  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
895    ac_init_help=short ;;
896
897  -host | --host | --hos | --ho)
898    ac_prev=host_alias ;;
899  -host=* | --host=* | --hos=* | --ho=*)
900    host_alias=$ac_optarg ;;
901
902  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
903    ac_prev=htmldir ;;
904  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
905  | --ht=*)
906    htmldir=$ac_optarg ;;
907
908  -includedir | --includedir | --includedi | --included | --include \
909  | --includ | --inclu | --incl | --inc)
910    ac_prev=includedir ;;
911  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
912  | --includ=* | --inclu=* | --incl=* | --inc=*)
913    includedir=$ac_optarg ;;
914
915  -infodir | --infodir | --infodi | --infod | --info | --inf)
916    ac_prev=infodir ;;
917  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
918    infodir=$ac_optarg ;;
919
920  -libdir | --libdir | --libdi | --libd)
921    ac_prev=libdir ;;
922  -libdir=* | --libdir=* | --libdi=* | --libd=*)
923    libdir=$ac_optarg ;;
924
925  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
926  | --libexe | --libex | --libe)
927    ac_prev=libexecdir ;;
928  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
929  | --libexe=* | --libex=* | --libe=*)
930    libexecdir=$ac_optarg ;;
931
932  -localedir | --localedir | --localedi | --localed | --locale)
933    ac_prev=localedir ;;
934  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
935    localedir=$ac_optarg ;;
936
937  -localstatedir | --localstatedir | --localstatedi | --localstated \
938  | --localstate | --localstat | --localsta | --localst | --locals)
939    ac_prev=localstatedir ;;
940  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
941  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
942    localstatedir=$ac_optarg ;;
943
944  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
945    ac_prev=mandir ;;
946  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
947    mandir=$ac_optarg ;;
948
949  -nfp | --nfp | --nf)
950    # Obsolete; use --without-fp.
951    with_fp=no ;;
952
953  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
954  | --no-cr | --no-c | -n)
955    no_create=yes ;;
956
957  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
958  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
959    no_recursion=yes ;;
960
961  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
962  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
963  | --oldin | --oldi | --old | --ol | --o)
964    ac_prev=oldincludedir ;;
965  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
966  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
967  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
968    oldincludedir=$ac_optarg ;;
969
970  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
971    ac_prev=prefix ;;
972  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
973    prefix=$ac_optarg ;;
974
975  -program-prefix | --program-prefix | --program-prefi | --program-pref \
976  | --program-pre | --program-pr | --program-p)
977    ac_prev=program_prefix ;;
978  -program-prefix=* | --program-prefix=* | --program-prefi=* \
979  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
980    program_prefix=$ac_optarg ;;
981
982  -program-suffix | --program-suffix | --program-suffi | --program-suff \
983  | --program-suf | --program-su | --program-s)
984    ac_prev=program_suffix ;;
985  -program-suffix=* | --program-suffix=* | --program-suffi=* \
986  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
987    program_suffix=$ac_optarg ;;
988
989  -program-transform-name | --program-transform-name \
990  | --program-transform-nam | --program-transform-na \
991  | --program-transform-n | --program-transform- \
992  | --program-transform | --program-transfor \
993  | --program-transfo | --program-transf \
994  | --program-trans | --program-tran \
995  | --progr-tra | --program-tr | --program-t)
996    ac_prev=program_transform_name ;;
997  -program-transform-name=* | --program-transform-name=* \
998  | --program-transform-nam=* | --program-transform-na=* \
999  | --program-transform-n=* | --program-transform-=* \
1000  | --program-transform=* | --program-transfor=* \
1001  | --program-transfo=* | --program-transf=* \
1002  | --program-trans=* | --program-tran=* \
1003  | --progr-tra=* | --program-tr=* | --program-t=*)
1004    program_transform_name=$ac_optarg ;;
1005
1006  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1007    ac_prev=pdfdir ;;
1008  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1009    pdfdir=$ac_optarg ;;
1010
1011  -psdir | --psdir | --psdi | --psd | --ps)
1012    ac_prev=psdir ;;
1013  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1014    psdir=$ac_optarg ;;
1015
1016  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1017  | -silent | --silent | --silen | --sile | --sil)
1018    silent=yes ;;
1019
1020  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1021    ac_prev=sbindir ;;
1022  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1023  | --sbi=* | --sb=*)
1024    sbindir=$ac_optarg ;;
1025
1026  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1027  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1028  | --sharedst | --shareds | --shared | --share | --shar \
1029  | --sha | --sh)
1030    ac_prev=sharedstatedir ;;
1031  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1032  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1033  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1034  | --sha=* | --sh=*)
1035    sharedstatedir=$ac_optarg ;;
1036
1037  -site | --site | --sit)
1038    ac_prev=site ;;
1039  -site=* | --site=* | --sit=*)
1040    site=$ac_optarg ;;
1041
1042  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1043    ac_prev=srcdir ;;
1044  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1045    srcdir=$ac_optarg ;;
1046
1047  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1048  | --syscon | --sysco | --sysc | --sys | --sy)
1049    ac_prev=sysconfdir ;;
1050  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1051  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1052    sysconfdir=$ac_optarg ;;
1053
1054  -target | --target | --targe | --targ | --tar | --ta | --t)
1055    ac_prev=target_alias ;;
1056  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1057    target_alias=$ac_optarg ;;
1058
1059  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1060    verbose=yes ;;
1061
1062  -version | --version | --versio | --versi | --vers | -V)
1063    ac_init_version=: ;;
1064
1065  -with-* | --with-*)
1066    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1067    # Reject names that are not valid shell variable names.
1068    expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1069      { echo "$as_me: error: invalid package name: $ac_package" >&2
1070   { (exit 1); exit 1; }; }
1071    ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1072    eval with_$ac_package=\$ac_optarg ;;
1073
1074  -without-* | --without-*)
1075    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1076    # Reject names that are not valid shell variable names.
1077    expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1078      { echo "$as_me: error: invalid package name: $ac_package" >&2
1079   { (exit 1); exit 1; }; }
1080    ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1081    eval with_$ac_package=no ;;
1082
1083  --x)
1084    # Obsolete; use --with-x.
1085    with_x=yes ;;
1086
1087  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1088  | --x-incl | --x-inc | --x-in | --x-i)
1089    ac_prev=x_includes ;;
1090  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1091  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1092    x_includes=$ac_optarg ;;
1093
1094  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1095  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1096    ac_prev=x_libraries ;;
1097  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1098  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1099    x_libraries=$ac_optarg ;;
1100
1101  -*) { echo "$as_me: error: unrecognized option: $ac_option
1102Try \`$0 --help' for more information." >&2
1103   { (exit 1); exit 1; }; }
1104    ;;
1105
1106  *=*)
1107    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1108    # Reject names that are not valid shell variable names.
1109    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1110      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1111   { (exit 1); exit 1; }; }
1112    eval $ac_envvar=\$ac_optarg
1113    export $ac_envvar ;;
1114
1115  *)
1116    # FIXME: should be removed in autoconf 3.0.
1117    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1118    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1119      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1120    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1121    ;;
1122
1123  esac
1124done
1125
1126if test -n "$ac_prev"; then
1127  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1128  { echo "$as_me: error: missing argument to $ac_option" >&2
1129   { (exit 1); exit 1; }; }
1130fi
1131
1132# Be sure to have absolute directory names.
1133for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1134		datadir sysconfdir sharedstatedir localstatedir includedir \
1135		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1136		libdir localedir mandir
1137do
1138  eval ac_val=\$$ac_var
1139  case $ac_val in
1140    [\\/$]* | ?:[\\/]* )  continue;;
1141    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1142  esac
1143  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1144   { (exit 1); exit 1; }; }
1145done
1146
1147# There might be people who depend on the old broken behavior: `$host'
1148# used to hold the argument of --host etc.
1149# FIXME: To remove some day.
1150build=$build_alias
1151host=$host_alias
1152target=$target_alias
1153
1154# FIXME: To remove some day.
1155if test "x$host_alias" != x; then
1156  if test "x$build_alias" = x; then
1157    cross_compiling=maybe
1158    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1159    If a cross compiler is detected then cross compile mode will be used." >&2
1160  elif test "x$build_alias" != "x$host_alias"; then
1161    cross_compiling=yes
1162  fi
1163fi
1164
1165ac_tool_prefix=
1166test -n "$host_alias" && ac_tool_prefix=$host_alias-
1167
1168test "$silent" = yes && exec 6>/dev/null
1169
1170
1171ac_pwd=`pwd` && test -n "$ac_pwd" &&
1172ac_ls_di=`ls -di .` &&
1173ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1174  { echo "$as_me: error: Working directory cannot be determined" >&2
1175   { (exit 1); exit 1; }; }
1176test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1177  { echo "$as_me: error: pwd does not report name of working directory" >&2
1178   { (exit 1); exit 1; }; }
1179
1180
1181# Find the source files, if location was not specified.
1182if test -z "$srcdir"; then
1183  ac_srcdir_defaulted=yes
1184  # Try the directory containing this script, then the parent directory.
1185  ac_confdir=`$as_dirname -- "$0" ||
1186$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1187	 X"$0" : 'X\(//\)[^/]' \| \
1188	 X"$0" : 'X\(//\)$' \| \
1189	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1190echo X"$0" |
1191    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1192	    s//\1/
1193	    q
1194	  }
1195	  /^X\(\/\/\)[^/].*/{
1196	    s//\1/
1197	    q
1198	  }
1199	  /^X\(\/\/\)$/{
1200	    s//\1/
1201	    q
1202	  }
1203	  /^X\(\/\).*/{
1204	    s//\1/
1205	    q
1206	  }
1207	  s/.*/./; q'`
1208  srcdir=$ac_confdir
1209  if test ! -r "$srcdir/$ac_unique_file"; then
1210    srcdir=..
1211  fi
1212else
1213  ac_srcdir_defaulted=no
1214fi
1215if test ! -r "$srcdir/$ac_unique_file"; then
1216  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1217  { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1218   { (exit 1); exit 1; }; }
1219fi
1220ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1221ac_abs_confdir=`(
1222	cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1223   { (exit 1); exit 1; }; }
1224	pwd)`
1225# When building in place, set srcdir=.
1226if test "$ac_abs_confdir" = "$ac_pwd"; then
1227  srcdir=.
1228fi
1229# Remove unnecessary trailing slashes from srcdir.
1230# Double slashes in file names in object file debugging info
1231# mess up M-x gdb in Emacs.
1232case $srcdir in
1233*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1234esac
1235for ac_var in $ac_precious_vars; do
1236  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1237  eval ac_env_${ac_var}_value=\$${ac_var}
1238  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1239  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1240done
1241
1242#
1243# Report the --help message.
1244#
1245if test "$ac_init_help" = "long"; then
1246  # Omit some internal or obsolete options to make the list less imposing.
1247  # This message is too long to be a string in the A/UX 3.1 sh.
1248  cat <<_ACEOF
1249\`configure' configures Tclxml 2.6 to adapt to many kinds of systems.
1250
1251Usage: $0 [OPTION]... [VAR=VALUE]...
1252
1253To assign environment variables (e.g., CC, CFLAGS...), specify them as
1254VAR=VALUE.  See below for descriptions of some of the useful variables.
1255
1256Defaults for the options are specified in brackets.
1257
1258Configuration:
1259  -h, --help              display this help and exit
1260      --help=short        display options specific to this package
1261      --help=recursive    display the short help of all the included packages
1262  -V, --version           display version information and exit
1263  -q, --quiet, --silent   do not print \`checking...' messages
1264      --cache-file=FILE   cache test results in FILE [disabled]
1265  -C, --config-cache      alias for \`--cache-file=config.cache'
1266  -n, --no-create         do not create output files
1267      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1268
1269Installation directories:
1270  --prefix=PREFIX         install architecture-independent files in PREFIX
1271			  [$ac_default_prefix]
1272  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1273			  [PREFIX]
1274
1275By default, \`make install' will install all the files in
1276\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1277an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1278for instance \`--prefix=\$HOME'.
1279
1280For better control, use the options below.
1281
1282Fine tuning of the installation directories:
1283  --bindir=DIR           user executables [EPREFIX/bin]
1284  --sbindir=DIR          system admin executables [EPREFIX/sbin]
1285  --libexecdir=DIR       program executables [EPREFIX/libexec]
1286  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1287  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1288  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1289  --libdir=DIR           object code libraries [EPREFIX/lib]
1290  --includedir=DIR       C header files [PREFIX/include]
1291  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1292  --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1293  --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1294  --infodir=DIR          info documentation [DATAROOTDIR/info]
1295  --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1296  --mandir=DIR           man documentation [DATAROOTDIR/man]
1297  --docdir=DIR           documentation root [DATAROOTDIR/doc/tclxml]
1298  --htmldir=DIR          html documentation [DOCDIR]
1299  --dvidir=DIR           dvi documentation [DOCDIR]
1300  --pdfdir=DIR           pdf documentation [DOCDIR]
1301  --psdir=DIR            ps documentation [DOCDIR]
1302_ACEOF
1303
1304  cat <<\_ACEOF
1305_ACEOF
1306fi
1307
1308if test -n "$ac_init_help"; then
1309  case $ac_init_help in
1310     short | recursive ) echo "Configuration of Tclxml 2.6:";;
1311   esac
1312  cat <<\_ACEOF
1313
1314Optional Features:
1315  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1316  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1317  --enable-threads        build with threads
1318  --enable-shared         build and link with shared libraries (default: on)
1319  --enable-64bit          enable 64bit support (default: off)
1320  --enable-64bit-vis      enable 64bit Sparc VIS support (default: off)
1321  --disable-rpath         disable rpath support (default: on)
1322  --enable-wince          enable Win/CE support (where applicable)
1323  --enable-symbols        build with debugging symbols (default: off)
1324
1325Optional Packages:
1326  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1327  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1328  --with-tcl              directory containing tcl configuration
1329                          (tclConfig.sh)
1330  --with-tclinclude       directory containing the public Tcl header files
1331  --with-celib=DIR        use Windows/CE support library from DIR
1332
1333Some influential environment variables:
1334  CC          C compiler command
1335  CFLAGS      C compiler flags
1336  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1337              nonstandard directory <lib dir>
1338  LIBS        libraries to pass to the linker, e.g. -l<library>
1339  CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1340              you have headers in a nonstandard directory <include dir>
1341  CPP         C preprocessor
1342
1343Use these variables to override the choices made by `configure' or to help
1344it to find libraries and programs with nonstandard names/locations.
1345
1346_ACEOF
1347ac_status=$?
1348fi
1349
1350if test "$ac_init_help" = "recursive"; then
1351  # If there are subdirs, report their specific --help.
1352  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1353    test -d "$ac_dir" || continue
1354    ac_builddir=.
1355
1356case "$ac_dir" in
1357.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1358*)
1359  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1360  # A ".." for each directory in $ac_dir_suffix.
1361  ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1362  case $ac_top_builddir_sub in
1363  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1364  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1365  esac ;;
1366esac
1367ac_abs_top_builddir=$ac_pwd
1368ac_abs_builddir=$ac_pwd$ac_dir_suffix
1369# for backward compatibility:
1370ac_top_builddir=$ac_top_build_prefix
1371
1372case $srcdir in
1373  .)  # We are building in place.
1374    ac_srcdir=.
1375    ac_top_srcdir=$ac_top_builddir_sub
1376    ac_abs_top_srcdir=$ac_pwd ;;
1377  [\\/]* | ?:[\\/]* )  # Absolute name.
1378    ac_srcdir=$srcdir$ac_dir_suffix;
1379    ac_top_srcdir=$srcdir
1380    ac_abs_top_srcdir=$srcdir ;;
1381  *) # Relative name.
1382    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1383    ac_top_srcdir=$ac_top_build_prefix$srcdir
1384    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1385esac
1386ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1387
1388    cd "$ac_dir" || { ac_status=$?; continue; }
1389    # Check for guested configure.
1390    if test -f "$ac_srcdir/configure.gnu"; then
1391      echo &&
1392      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1393    elif test -f "$ac_srcdir/configure"; then
1394      echo &&
1395      $SHELL "$ac_srcdir/configure" --help=recursive
1396    else
1397      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1398    fi || ac_status=$?
1399    cd "$ac_pwd" || { ac_status=$?; break; }
1400  done
1401fi
1402
1403test -n "$ac_init_help" && exit $ac_status
1404if $ac_init_version; then
1405  cat <<\_ACEOF
1406Tclxml configure 2.6
1407generated by GNU Autoconf 2.61
1408
1409Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
14102002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1411This configure script is free software; the Free Software Foundation
1412gives unlimited permission to copy, distribute and modify it.
1413_ACEOF
1414  exit
1415fi
1416cat >config.log <<_ACEOF
1417This file contains any messages produced by compilers while
1418running configure, to aid debugging if configure makes a mistake.
1419
1420It was created by Tclxml $as_me 2.6, which was
1421generated by GNU Autoconf 2.61.  Invocation command line was
1422
1423  $ $0 $@
1424
1425_ACEOF
1426exec 5>>config.log
1427{
1428cat <<_ASUNAME
1429## --------- ##
1430## Platform. ##
1431## --------- ##
1432
1433hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1434uname -m = `(uname -m) 2>/dev/null || echo unknown`
1435uname -r = `(uname -r) 2>/dev/null || echo unknown`
1436uname -s = `(uname -s) 2>/dev/null || echo unknown`
1437uname -v = `(uname -v) 2>/dev/null || echo unknown`
1438
1439/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1440/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1441
1442/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1443/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1444/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1445/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1446/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1447/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1448/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1449
1450_ASUNAME
1451
1452as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1453for as_dir in $PATH
1454do
1455  IFS=$as_save_IFS
1456  test -z "$as_dir" && as_dir=.
1457  echo "PATH: $as_dir"
1458done
1459IFS=$as_save_IFS
1460
1461} >&5
1462
1463cat >&5 <<_ACEOF
1464
1465
1466## ----------- ##
1467## Core tests. ##
1468## ----------- ##
1469
1470_ACEOF
1471
1472
1473# Keep a trace of the command line.
1474# Strip out --no-create and --no-recursion so they do not pile up.
1475# Strip out --silent because we don't want to record it for future runs.
1476# Also quote any args containing shell meta-characters.
1477# Make two passes to allow for proper duplicate-argument suppression.
1478ac_configure_args=
1479ac_configure_args0=
1480ac_configure_args1=
1481ac_must_keep_next=false
1482for ac_pass in 1 2
1483do
1484  for ac_arg
1485  do
1486    case $ac_arg in
1487    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1488    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1489    | -silent | --silent | --silen | --sile | --sil)
1490      continue ;;
1491    *\'*)
1492      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1493    esac
1494    case $ac_pass in
1495    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1496    2)
1497      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1498      if test $ac_must_keep_next = true; then
1499	ac_must_keep_next=false # Got value, back to normal.
1500      else
1501	case $ac_arg in
1502	  *=* | --config-cache | -C | -disable-* | --disable-* \
1503	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1504	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1505	  | -with-* | --with-* | -without-* | --without-* | --x)
1506	    case "$ac_configure_args0 " in
1507	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1508	    esac
1509	    ;;
1510	  -* ) ac_must_keep_next=true ;;
1511	esac
1512      fi
1513      ac_configure_args="$ac_configure_args '$ac_arg'"
1514      ;;
1515    esac
1516  done
1517done
1518$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1519$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1520
1521# When interrupted or exit'd, cleanup temporary files, and complete
1522# config.log.  We remove comments because anyway the quotes in there
1523# would cause problems or look ugly.
1524# WARNING: Use '\'' to represent an apostrophe within the trap.
1525# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1526trap 'exit_status=$?
1527  # Save into config.log some information that might help in debugging.
1528  {
1529    echo
1530
1531    cat <<\_ASBOX
1532## ---------------- ##
1533## Cache variables. ##
1534## ---------------- ##
1535_ASBOX
1536    echo
1537    # The following way of writing the cache mishandles newlines in values,
1538(
1539  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1540    eval ac_val=\$$ac_var
1541    case $ac_val in #(
1542    *${as_nl}*)
1543      case $ac_var in #(
1544      *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1545echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1546      esac
1547      case $ac_var in #(
1548      _ | IFS | as_nl) ;; #(
1549      *) $as_unset $ac_var ;;
1550      esac ;;
1551    esac
1552  done
1553  (set) 2>&1 |
1554    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1555    *${as_nl}ac_space=\ *)
1556      sed -n \
1557	"s/'\''/'\''\\\\'\'''\''/g;
1558	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1559      ;; #(
1560    *)
1561      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1562      ;;
1563    esac |
1564    sort
1565)
1566    echo
1567
1568    cat <<\_ASBOX
1569## ----------------- ##
1570## Output variables. ##
1571## ----------------- ##
1572_ASBOX
1573    echo
1574    for ac_var in $ac_subst_vars
1575    do
1576      eval ac_val=\$$ac_var
1577      case $ac_val in
1578      *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1579      esac
1580      echo "$ac_var='\''$ac_val'\''"
1581    done | sort
1582    echo
1583
1584    if test -n "$ac_subst_files"; then
1585      cat <<\_ASBOX
1586## ------------------- ##
1587## File substitutions. ##
1588## ------------------- ##
1589_ASBOX
1590      echo
1591      for ac_var in $ac_subst_files
1592      do
1593	eval ac_val=\$$ac_var
1594	case $ac_val in
1595	*\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1596	esac
1597	echo "$ac_var='\''$ac_val'\''"
1598      done | sort
1599      echo
1600    fi
1601
1602    if test -s confdefs.h; then
1603      cat <<\_ASBOX
1604## ----------- ##
1605## confdefs.h. ##
1606## ----------- ##
1607_ASBOX
1608      echo
1609      cat confdefs.h
1610      echo
1611    fi
1612    test "$ac_signal" != 0 &&
1613      echo "$as_me: caught signal $ac_signal"
1614    echo "$as_me: exit $exit_status"
1615  } >&5
1616  rm -f core *.core core.conftest.* &&
1617    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1618    exit $exit_status
1619' 0
1620for ac_signal in 1 2 13 15; do
1621  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1622done
1623ac_signal=0
1624
1625# confdefs.h avoids OS command line length limits that DEFS can exceed.
1626rm -f -r conftest* confdefs.h
1627
1628# Predefined preprocessor variables.
1629
1630cat >>confdefs.h <<_ACEOF
1631#define PACKAGE_NAME "$PACKAGE_NAME"
1632_ACEOF
1633
1634
1635cat >>confdefs.h <<_ACEOF
1636#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1637_ACEOF
1638
1639
1640cat >>confdefs.h <<_ACEOF
1641#define PACKAGE_VERSION "$PACKAGE_VERSION"
1642_ACEOF
1643
1644
1645cat >>confdefs.h <<_ACEOF
1646#define PACKAGE_STRING "$PACKAGE_STRING"
1647_ACEOF
1648
1649
1650cat >>confdefs.h <<_ACEOF
1651#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1652_ACEOF
1653
1654
1655# Let the site file select an alternate cache file if it wants to.
1656# Prefer explicitly selected file to automatically selected ones.
1657if test -n "$CONFIG_SITE"; then
1658  set x "$CONFIG_SITE"
1659elif test "x$prefix" != xNONE; then
1660  set x "$prefix/share/config.site" "$prefix/etc/config.site"
1661else
1662  set x "$ac_default_prefix/share/config.site" \
1663	"$ac_default_prefix/etc/config.site"
1664fi
1665shift
1666for ac_site_file
1667do
1668  if test -r "$ac_site_file"; then
1669    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1670echo "$as_me: loading site script $ac_site_file" >&6;}
1671    sed 's/^/| /' "$ac_site_file" >&5
1672    . "$ac_site_file"
1673  fi
1674done
1675
1676if test -r "$cache_file"; then
1677  # Some versions of bash will fail to source /dev/null (special
1678  # files actually), so we avoid doing that.
1679  if test -f "$cache_file"; then
1680    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1681echo "$as_me: loading cache $cache_file" >&6;}
1682    case $cache_file in
1683      [\\/]* | ?:[\\/]* ) . "$cache_file";;
1684      *)                      . "./$cache_file";;
1685    esac
1686  fi
1687else
1688  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1689echo "$as_me: creating cache $cache_file" >&6;}
1690  >$cache_file
1691fi
1692
1693# Check that the precious variables saved in the cache have kept the same
1694# value.
1695ac_cache_corrupted=false
1696for ac_var in $ac_precious_vars; do
1697  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1698  eval ac_new_set=\$ac_env_${ac_var}_set
1699  eval ac_old_val=\$ac_cv_env_${ac_var}_value
1700  eval ac_new_val=\$ac_env_${ac_var}_value
1701  case $ac_old_set,$ac_new_set in
1702    set,)
1703      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1704echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1705      ac_cache_corrupted=: ;;
1706    ,set)
1707      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1708echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1709      ac_cache_corrupted=: ;;
1710    ,);;
1711    *)
1712      if test "x$ac_old_val" != "x$ac_new_val"; then
1713	{ echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1714echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1715	{ echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1716echo "$as_me:   former value:  $ac_old_val" >&2;}
1717	{ echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1718echo "$as_me:   current value: $ac_new_val" >&2;}
1719	ac_cache_corrupted=:
1720      fi;;
1721  esac
1722  # Pass precious variables to config.status.
1723  if test "$ac_new_set" = set; then
1724    case $ac_new_val in
1725    *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1726    *) ac_arg=$ac_var=$ac_new_val ;;
1727    esac
1728    case " $ac_configure_args " in
1729      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1730      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1731    esac
1732  fi
1733done
1734if $ac_cache_corrupted; then
1735  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1736echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1737  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1738echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1739   { (exit 1); exit 1; }; }
1740fi
1741
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753
1754
1755
1756
1757
1758
1759
1760
1761
1762
1763
1764
1765
1766ac_ext=c
1767ac_cpp='$CPP $CPPFLAGS'
1768ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1769ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1770ac_compiler_gnu=$ac_cv_c_compiler_gnu
1771
1772
1773
1774ac_aux_dir=
1775for ac_dir in tclconfig "$srcdir"/tclconfig; do
1776  if test -f "$ac_dir/install-sh"; then
1777    ac_aux_dir=$ac_dir
1778    ac_install_sh="$ac_aux_dir/install-sh -c"
1779    break
1780  elif test -f "$ac_dir/install.sh"; then
1781    ac_aux_dir=$ac_dir
1782    ac_install_sh="$ac_aux_dir/install.sh -c"
1783    break
1784  elif test -f "$ac_dir/shtool"; then
1785    ac_aux_dir=$ac_dir
1786    ac_install_sh="$ac_aux_dir/shtool install -c"
1787    break
1788  fi
1789done
1790if test -z "$ac_aux_dir"; then
1791  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in tclconfig \"$srcdir\"/tclconfig" >&5
1792echo "$as_me: error: cannot find install-sh or install.sh in tclconfig \"$srcdir\"/tclconfig" >&2;}
1793   { (exit 1); exit 1; }; }
1794fi
1795
1796# These three variables are undocumented and unsupported,
1797# and are intended to be withdrawn in a future Autoconf release.
1798# They can cause serious problems if a builder's source tree is in a directory
1799# whose full name contains unusual characters.
1800ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
1801ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
1802ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
1803
1804
1805CONFIGDIR=${srcdir}/tclconfig
1806
1807
1808#--------------------------------------------------------------------
1809# Setting our package name and version numbers.  The NODOT_VERSION is
1810# required for constructing the library name on systems that don't like
1811# dots in library names (Windows).  The VERSION variable is used on the
1812# other systems.
1813#--------------------------------------------------------------------
1814
1815PACKAGE=Tclxml
1816
1817MAJOR_VERSION=2
1818MINOR_VERSION=6
1819#MAJOR_VERSION=10
1820#MINOR_VERSION=0
1821PATCHLEVEL=
1822
1823VERSION=${MAJOR_VERSION}.${MINOR_VERSION}${PATCHLEVEL}
1824NODOT_VERSION=${MAJOR_VERSION}${MINOR_VERSION}
1825TCLXML_VERSION=${VERSION}
1826
1827
1828
1829
1830
1831# This package name must be replaced statically for AC_SUBST to work
1832
1833# Substitute stub_LIB_FILE if your package creates a stub library too.
1834
1835
1836#--------------------------------------------------------------------
1837# This was placed here so that we can compile with -DVERSION="1.2" to
1838# encode the package version directly into the source files.
1839#--------------------------------------------------------------------
1840
1841eval cat >>confdefs.h <<_ACEOF
1842#define VERSION "${VERSION}"
1843_ACEOF
1844
1845eval cat >>confdefs.h <<_ACEOF
1846#define TCLXML_VERSION "${TCLXML_VERSION}"
1847_ACEOF
1848
1849
1850#--------------------------------------------------------------------
1851# Call TEA_INIT as the first TEA_ macro to set up initial vars.
1852# This will define a ${TEA_PLATFORM} variable == "unix" or "windows".
1853#--------------------------------------------------------------------
1854
1855
1856    # TEA extensions pass this us the version of TEA they think they
1857    # are compatible with.
1858    TEA_VERSION="3.9"
1859
1860    { echo "$as_me:$LINENO: checking for correct TEA configuration" >&5
1861echo $ECHO_N "checking for correct TEA configuration... $ECHO_C" >&6; }
1862    if test x"${PACKAGE_NAME}" = x ; then
1863	{ { echo "$as_me:$LINENO: error:
1864The PACKAGE_NAME variable must be defined by your TEA configure.in" >&5
1865echo "$as_me: error:
1866The PACKAGE_NAME variable must be defined by your TEA configure.in" >&2;}
1867   { (exit 1); exit 1; }; }
1868    fi
1869    if test x"3.9" = x ; then
1870	{ { echo "$as_me:$LINENO: error:
1871TEA version not specified." >&5
1872echo "$as_me: error:
1873TEA version not specified." >&2;}
1874   { (exit 1); exit 1; }; }
1875    elif test "3.9" != "${TEA_VERSION}" ; then
1876	{ echo "$as_me:$LINENO: result: warning: requested TEA version \"3.9\", have \"${TEA_VERSION}\"" >&5
1877echo "${ECHO_T}warning: requested TEA version \"3.9\", have \"${TEA_VERSION}\"" >&6; }
1878    else
1879	{ echo "$as_me:$LINENO: result: ok (TEA ${TEA_VERSION})" >&5
1880echo "${ECHO_T}ok (TEA ${TEA_VERSION})" >&6; }
1881    fi
1882    case "`uname -s`" in
1883	*win32*|*WIN32*|*MINGW32_*)
1884	    # Extract the first word of "cygpath", so it can be a program name with args.
1885set dummy cygpath; ac_word=$2
1886{ echo "$as_me:$LINENO: checking for $ac_word" >&5
1887echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1888if test "${ac_cv_prog_CYGPATH+set}" = set; then
1889  echo $ECHO_N "(cached) $ECHO_C" >&6
1890else
1891  if test -n "$CYGPATH"; then
1892  ac_cv_prog_CYGPATH="$CYGPATH" # Let the user override the test.
1893else
1894as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1895for as_dir in $PATH
1896do
1897  IFS=$as_save_IFS
1898  test -z "$as_dir" && as_dir=.
1899  for ac_exec_ext in '' $ac_executable_extensions; do
1900  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1901    ac_cv_prog_CYGPATH="cygpath -w"
1902    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1903    break 2
1904  fi
1905done
1906done
1907IFS=$as_save_IFS
1908
1909  test -z "$ac_cv_prog_CYGPATH" && ac_cv_prog_CYGPATH="echo"
1910fi
1911fi
1912CYGPATH=$ac_cv_prog_CYGPATH
1913if test -n "$CYGPATH"; then
1914  { echo "$as_me:$LINENO: result: $CYGPATH" >&5
1915echo "${ECHO_T}$CYGPATH" >&6; }
1916else
1917  { echo "$as_me:$LINENO: result: no" >&5
1918echo "${ECHO_T}no" >&6; }
1919fi
1920
1921
1922	    EXEEXT=".exe"
1923	    TEA_PLATFORM="windows"
1924	    ;;
1925	*CYGWIN_*)
1926	    CYGPATH=echo
1927	    EXEEXT=".exe"
1928	    # TEA_PLATFORM is determined later in LOAD_TCLCONFIG
1929	    ;;
1930	*)
1931	    CYGPATH=echo
1932	    EXEEXT=""
1933	    TEA_PLATFORM="unix"
1934	    ;;
1935    esac
1936
1937    # Check if exec_prefix is set. If not use fall back to prefix.
1938    # Note when adjusted, so that TEA_PREFIX can correct for this.
1939    # This is needed for recursive configures, since autoconf propagates
1940    # $prefix, but not $exec_prefix (doh!).
1941    if test x$exec_prefix = xNONE ; then
1942	exec_prefix_default=yes
1943	exec_prefix=$prefix
1944    fi
1945
1946
1947
1948
1949    # This package name must be replaced statically for AC_SUBST to work
1950
1951    # Substitute STUB_LIB_FILE in case package creates a stub library too.
1952
1953
1954    # We AC_SUBST these here to ensure they are subst'ed,
1955    # in case the user doesn't call TEA_ADD_...
1956
1957
1958
1959
1960
1961
1962
1963
1964
1965#--------------------------------------------------------------------
1966# Load the tclConfig.sh file
1967#--------------------------------------------------------------------
1968
1969
1970
1971    #
1972    # Ok, lets find the tcl configuration
1973    # First, look for one uninstalled.
1974    # the alternative search directory is invoked by --with-tcl
1975    #
1976
1977    if test x"${no_tcl}" = x ; then
1978	# we reset no_tcl in case something fails here
1979	no_tcl=true
1980
1981# Check whether --with-tcl was given.
1982if test "${with_tcl+set}" = set; then
1983  withval=$with_tcl; with_tclconfig="${withval}"
1984fi
1985
1986	{ echo "$as_me:$LINENO: checking for Tcl configuration" >&5
1987echo $ECHO_N "checking for Tcl configuration... $ECHO_C" >&6; }
1988	if test "${ac_cv_c_tclconfig+set}" = set; then
1989  echo $ECHO_N "(cached) $ECHO_C" >&6
1990else
1991
1992
1993	    # First check to see if --with-tcl was specified.
1994	    if test x"${with_tclconfig}" != x ; then
1995		case "${with_tclconfig}" in
1996		    */tclConfig.sh )
1997			if test -f "${with_tclconfig}"; then
1998			    { echo "$as_me:$LINENO: WARNING: --with-tcl argument should refer to directory containing tclConfig.sh, not to tclConfig.sh itself" >&5
1999echo "$as_me: WARNING: --with-tcl argument should refer to directory containing tclConfig.sh, not to tclConfig.sh itself" >&2;}
2000			    with_tclconfig="`echo "${with_tclconfig}" | sed 's!/tclConfig\.sh$!!'`"
2001			fi ;;
2002		esac
2003		if test -f "${with_tclconfig}/tclConfig.sh" ; then
2004		    ac_cv_c_tclconfig="`(cd "${with_tclconfig}"; pwd)`"
2005		else
2006		    { { echo "$as_me:$LINENO: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" >&5
2007echo "$as_me: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" >&2;}
2008   { (exit 1); exit 1; }; }
2009		fi
2010	    fi
2011
2012	    # then check for a private Tcl installation
2013	    if test x"${ac_cv_c_tclconfig}" = x ; then
2014		for i in \
2015			../tcl \
2016			`ls -dr ../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
2017			`ls -dr ../tcl[8-9].[0-9] 2>/dev/null` \
2018			`ls -dr ../tcl[8-9].[0-9]* 2>/dev/null` \
2019			../../tcl \
2020			`ls -dr ../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
2021			`ls -dr ../../tcl[8-9].[0-9] 2>/dev/null` \
2022			`ls -dr ../../tcl[8-9].[0-9]* 2>/dev/null` \
2023			../../../tcl \
2024			`ls -dr ../../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
2025			`ls -dr ../../../tcl[8-9].[0-9] 2>/dev/null` \
2026			`ls -dr ../../../tcl[8-9].[0-9]* 2>/dev/null` ; do
2027		    if test "${TEA_PLATFORM}" = "windows" \
2028			    -a -f "$i/win/tclConfig.sh" ; then
2029			ac_cv_c_tclconfig="`(cd $i/win; pwd)`"
2030			break
2031		    fi
2032		    if test -f "$i/unix/tclConfig.sh" ; then
2033			ac_cv_c_tclconfig="`(cd $i/unix; pwd)`"
2034			break
2035		    fi
2036		done
2037	    fi
2038
2039	    # on Darwin, check in Framework installation locations
2040	    if test "`uname -s`" = "Darwin" -a x"${ac_cv_c_tclconfig}" = x ; then
2041		for i in `ls -d ~/Library/Frameworks 2>/dev/null` \
2042			`ls -d /Library/Frameworks 2>/dev/null` \
2043			`ls -d /Network/Library/Frameworks 2>/dev/null` \
2044			`ls -d /System/Library/Frameworks 2>/dev/null` \
2045			; do
2046		    if test -f "$i/Tcl.framework/tclConfig.sh" ; then
2047			ac_cv_c_tclconfig="`(cd $i/Tcl.framework; pwd)`"
2048			break
2049		    fi
2050		done
2051	    fi
2052
2053	    # TEA specific: on Windows, check in common installation locations
2054	    if test "${TEA_PLATFORM}" = "windows" \
2055		-a x"${ac_cv_c_tclconfig}" = x ; then
2056		for i in `ls -d C:/Tcl/lib 2>/dev/null` \
2057			`ls -d C:/Progra~1/Tcl/lib 2>/dev/null` \
2058			; do
2059		    if test -f "$i/tclConfig.sh" ; then
2060			ac_cv_c_tclconfig="`(cd $i; pwd)`"
2061			break
2062		    fi
2063		done
2064	    fi
2065
2066	    # check in a few common install locations
2067	    if test x"${ac_cv_c_tclconfig}" = x ; then
2068		for i in `ls -d ${libdir} 2>/dev/null` \
2069			`ls -d ${exec_prefix}/lib 2>/dev/null` \
2070			`ls -d ${prefix}/lib 2>/dev/null` \
2071			`ls -d /usr/local/lib 2>/dev/null` \
2072			`ls -d /usr/contrib/lib 2>/dev/null` \
2073			`ls -d /usr/lib 2>/dev/null` \
2074			`ls -d /usr/lib64 2>/dev/null` \
2075			; do
2076		    if test -f "$i/tclConfig.sh" ; then
2077			ac_cv_c_tclconfig="`(cd $i; pwd)`"
2078			break
2079		    fi
2080		done
2081	    fi
2082
2083	    # check in a few other private locations
2084	    if test x"${ac_cv_c_tclconfig}" = x ; then
2085		for i in \
2086			${srcdir}/../tcl \
2087			`ls -dr ${srcdir}/../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
2088			`ls -dr ${srcdir}/../tcl[8-9].[0-9] 2>/dev/null` \
2089			`ls -dr ${srcdir}/../tcl[8-9].[0-9]* 2>/dev/null` ; do
2090		    if test "${TEA_PLATFORM}" = "windows" \
2091			    -a -f "$i/win/tclConfig.sh" ; then
2092			ac_cv_c_tclconfig="`(cd $i/win; pwd)`"
2093			break
2094		    fi
2095		    if test -f "$i/unix/tclConfig.sh" ; then
2096			ac_cv_c_tclconfig="`(cd $i/unix; pwd)`"
2097			break
2098		    fi
2099		done
2100	    fi
2101
2102fi
2103
2104
2105	if test x"${ac_cv_c_tclconfig}" = x ; then
2106	    TCL_BIN_DIR="# no Tcl configs found"
2107	    { { echo "$as_me:$LINENO: error: Can't find Tcl configuration definitions" >&5
2108echo "$as_me: error: Can't find Tcl configuration definitions" >&2;}
2109   { (exit 1); exit 1; }; }
2110	else
2111	    no_tcl=
2112	    TCL_BIN_DIR="${ac_cv_c_tclconfig}"
2113	    { echo "$as_me:$LINENO: result: found ${TCL_BIN_DIR}/tclConfig.sh" >&5
2114echo "${ECHO_T}found ${TCL_BIN_DIR}/tclConfig.sh" >&6; }
2115	fi
2116    fi
2117
2118
2119    { echo "$as_me:$LINENO: checking for existence of ${TCL_BIN_DIR}/tclConfig.sh" >&5
2120echo $ECHO_N "checking for existence of ${TCL_BIN_DIR}/tclConfig.sh... $ECHO_C" >&6; }
2121
2122    if test -f "${TCL_BIN_DIR}/tclConfig.sh" ; then
2123        { echo "$as_me:$LINENO: result: loading" >&5
2124echo "${ECHO_T}loading" >&6; }
2125	. "${TCL_BIN_DIR}/tclConfig.sh"
2126    else
2127        { echo "$as_me:$LINENO: result: could not find ${TCL_BIN_DIR}/tclConfig.sh" >&5
2128echo "${ECHO_T}could not find ${TCL_BIN_DIR}/tclConfig.sh" >&6; }
2129    fi
2130
2131    # eval is required to do the TCL_DBGX substitution
2132    eval "TCL_LIB_FILE=\"${TCL_LIB_FILE}\""
2133    eval "TCL_STUB_LIB_FILE=\"${TCL_STUB_LIB_FILE}\""
2134
2135    # If the TCL_BIN_DIR is the build directory (not the install directory),
2136    # then set the common variable name to the value of the build variables.
2137    # For example, the variable TCL_LIB_SPEC will be set to the value
2138    # of TCL_BUILD_LIB_SPEC. An extension should make use of TCL_LIB_SPEC
2139    # instead of TCL_BUILD_LIB_SPEC since it will work with both an
2140    # installed and uninstalled version of Tcl.
2141    if test -f "${TCL_BIN_DIR}/Makefile" ; then
2142        TCL_LIB_SPEC="${TCL_BUILD_LIB_SPEC}"
2143        TCL_STUB_LIB_SPEC="${TCL_BUILD_STUB_LIB_SPEC}"
2144        TCL_STUB_LIB_PATH="${TCL_BUILD_STUB_LIB_PATH}"
2145    elif test "`uname -s`" = "Darwin"; then
2146	# If Tcl was built as a framework, attempt to use the libraries
2147	# from the framework at the given location so that linking works
2148	# against Tcl.framework installed in an arbitrary location.
2149	case ${TCL_DEFS} in
2150	    *TCL_FRAMEWORK*)
2151		if test -f "${TCL_BIN_DIR}/${TCL_LIB_FILE}"; then
2152		    for i in "`cd "${TCL_BIN_DIR}"; pwd`" \
2153			     "`cd "${TCL_BIN_DIR}"/../..; pwd`"; do
2154			if test "`basename "$i"`" = "${TCL_LIB_FILE}.framework"; then
2155			    TCL_LIB_SPEC="-F`dirname "$i" | sed -e 's/ /\\\\ /g'` -framework ${TCL_LIB_FILE}"
2156			    break
2157			fi
2158		    done
2159		fi
2160		if test -f "${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}"; then
2161		    TCL_STUB_LIB_SPEC="-L`echo "${TCL_BIN_DIR}"  | sed -e 's/ /\\\\ /g'` ${TCL_STUB_LIB_FLAG}"
2162		    TCL_STUB_LIB_PATH="${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}"
2163		fi
2164		;;
2165	esac
2166    fi
2167
2168    # eval is required to do the TCL_DBGX substitution
2169    eval "TCL_LIB_FLAG=\"${TCL_LIB_FLAG}\""
2170    eval "TCL_LIB_SPEC=\"${TCL_LIB_SPEC}\""
2171    eval "TCL_STUB_LIB_FLAG=\"${TCL_STUB_LIB_FLAG}\""
2172    eval "TCL_STUB_LIB_SPEC=\"${TCL_STUB_LIB_SPEC}\""
2173
2174
2175
2176
2177
2178
2179
2180
2181
2182
2183
2184
2185
2186
2187    case "`uname -s`" in
2188	*CYGWIN_*)
2189	    { echo "$as_me:$LINENO: checking for cygwin variant" >&5
2190echo $ECHO_N "checking for cygwin variant... $ECHO_C" >&6; }
2191	    case ${TCL_EXTRA_CFLAGS} in
2192		*-mwin32*|*-mno-cygwin*)
2193		    TEA_PLATFORM="windows"
2194		    CFLAGS="$CFLAGS -mwin32"
2195		    { echo "$as_me:$LINENO: result: win32" >&5
2196echo "${ECHO_T}win32" >&6; }
2197		    ;;
2198		*)
2199		    TEA_PLATFORM="unix"
2200		    { echo "$as_me:$LINENO: result: unix" >&5
2201echo "${ECHO_T}unix" >&6; }
2202		    ;;
2203	    esac
2204	    EXEEXT=".exe"
2205	    ;;
2206	*)
2207	    ;;
2208    esac
2209
2210    # Do this here as we have fully defined TEA_PLATFORM now
2211    if test "${TEA_PLATFORM}" = "windows" ; then
2212	# The BUILD_$pkg is to define the correct extern storage class
2213	# handling when making this package
2214
2215cat >>confdefs.h <<_ACEOF
2216#define BUILD_${PACKAGE_NAME}
2217_ACEOF
2218
2219	CLEANFILES="$CLEANFILES *.lib *.dll *.pdb *.exp"
2220    fi
2221
2222    # TEA specific:
2223
2224
2225
2226
2227
2228
2229
2230
2231#-----------------------------------------------------------------------
2232# Handle the --prefix=... option by defaulting to what Tcl gave.
2233# Must be called after TEA_LOAD_TCLCONFIG and before TEA_SETUP_COMPILER.
2234#-----------------------------------------------------------------------
2235
2236
2237    if test "${prefix}" = "NONE"; then
2238	prefix_default=yes
2239	if test x"${TCL_PREFIX}" != x; then
2240	    { echo "$as_me:$LINENO: --prefix defaulting to TCL_PREFIX ${TCL_PREFIX}" >&5
2241echo "$as_me: --prefix defaulting to TCL_PREFIX ${TCL_PREFIX}" >&6;}
2242	    prefix=${TCL_PREFIX}
2243	else
2244	    { echo "$as_me:$LINENO: --prefix defaulting to /usr/local" >&5
2245echo "$as_me: --prefix defaulting to /usr/local" >&6;}
2246	    prefix=/usr/local
2247	fi
2248    fi
2249    if test "${exec_prefix}" = "NONE" -a x"${prefix_default}" = x"yes" \
2250	-o x"${exec_prefix_default}" = x"yes" ; then
2251	if test x"${TCL_EXEC_PREFIX}" != x; then
2252	    { echo "$as_me:$LINENO: --exec-prefix defaulting to TCL_EXEC_PREFIX ${TCL_EXEC_PREFIX}" >&5
2253echo "$as_me: --exec-prefix defaulting to TCL_EXEC_PREFIX ${TCL_EXEC_PREFIX}" >&6;}
2254	    exec_prefix=${TCL_EXEC_PREFIX}
2255	else
2256	    { echo "$as_me:$LINENO: --exec-prefix defaulting to ${prefix}" >&5
2257echo "$as_me: --exec-prefix defaulting to ${prefix}" >&6;}
2258	    exec_prefix=$prefix
2259	fi
2260    fi
2261
2262
2263#-----------------------------------------------------------------------
2264# Standard compiler checks.
2265# This sets up CC by using the CC env var, or looks for gcc otherwise.
2266# This also calls AC_PROG_CC, AC_PROG_INSTALL and a few others to create
2267# the basic setup necessary to compile executables.
2268#-----------------------------------------------------------------------
2269
2270
2271    # Don't put any macros that use the compiler (e.g. AC_TRY_COMPILE)
2272    # in this macro, they need to go into TEA_SETUP_COMPILER instead.
2273
2274    # If the user did not set CFLAGS, set it now to keep
2275    # the AC_PROG_CC macro from adding "-g -O2".
2276    if test "${CFLAGS+set}" != "set" ; then
2277	CFLAGS=""
2278    fi
2279
2280    ac_ext=c
2281ac_cpp='$CPP $CPPFLAGS'
2282ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2283ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2284ac_compiler_gnu=$ac_cv_c_compiler_gnu
2285if test -n "$ac_tool_prefix"; then
2286  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2287set dummy ${ac_tool_prefix}gcc; ac_word=$2
2288{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2289echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2290if test "${ac_cv_prog_CC+set}" = set; then
2291  echo $ECHO_N "(cached) $ECHO_C" >&6
2292else
2293  if test -n "$CC"; then
2294  ac_cv_prog_CC="$CC" # Let the user override the test.
2295else
2296as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2297for as_dir in $PATH
2298do
2299  IFS=$as_save_IFS
2300  test -z "$as_dir" && as_dir=.
2301  for ac_exec_ext in '' $ac_executable_extensions; do
2302  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2303    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2304    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2305    break 2
2306  fi
2307done
2308done
2309IFS=$as_save_IFS
2310
2311fi
2312fi
2313CC=$ac_cv_prog_CC
2314if test -n "$CC"; then
2315  { echo "$as_me:$LINENO: result: $CC" >&5
2316echo "${ECHO_T}$CC" >&6; }
2317else
2318  { echo "$as_me:$LINENO: result: no" >&5
2319echo "${ECHO_T}no" >&6; }
2320fi
2321
2322
2323fi
2324if test -z "$ac_cv_prog_CC"; then
2325  ac_ct_CC=$CC
2326  # Extract the first word of "gcc", so it can be a program name with args.
2327set dummy gcc; ac_word=$2
2328{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2329echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2330if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2331  echo $ECHO_N "(cached) $ECHO_C" >&6
2332else
2333  if test -n "$ac_ct_CC"; then
2334  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2335else
2336as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2337for as_dir in $PATH
2338do
2339  IFS=$as_save_IFS
2340  test -z "$as_dir" && as_dir=.
2341  for ac_exec_ext in '' $ac_executable_extensions; do
2342  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2343    ac_cv_prog_ac_ct_CC="gcc"
2344    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2345    break 2
2346  fi
2347done
2348done
2349IFS=$as_save_IFS
2350
2351fi
2352fi
2353ac_ct_CC=$ac_cv_prog_ac_ct_CC
2354if test -n "$ac_ct_CC"; then
2355  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2356echo "${ECHO_T}$ac_ct_CC" >&6; }
2357else
2358  { echo "$as_me:$LINENO: result: no" >&5
2359echo "${ECHO_T}no" >&6; }
2360fi
2361
2362  if test "x$ac_ct_CC" = x; then
2363    CC=""
2364  else
2365    case $cross_compiling:$ac_tool_warned in
2366yes:)
2367{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2368whose name does not start with the host triplet.  If you think this
2369configuration is useful to you, please write to autoconf@gnu.org." >&5
2370echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2371whose name does not start with the host triplet.  If you think this
2372configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2373ac_tool_warned=yes ;;
2374esac
2375    CC=$ac_ct_CC
2376  fi
2377else
2378  CC="$ac_cv_prog_CC"
2379fi
2380
2381if test -z "$CC"; then
2382          if test -n "$ac_tool_prefix"; then
2383    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2384set dummy ${ac_tool_prefix}cc; ac_word=$2
2385{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2386echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2387if test "${ac_cv_prog_CC+set}" = set; then
2388  echo $ECHO_N "(cached) $ECHO_C" >&6
2389else
2390  if test -n "$CC"; then
2391  ac_cv_prog_CC="$CC" # Let the user override the test.
2392else
2393as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2394for as_dir in $PATH
2395do
2396  IFS=$as_save_IFS
2397  test -z "$as_dir" && as_dir=.
2398  for ac_exec_ext in '' $ac_executable_extensions; do
2399  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2400    ac_cv_prog_CC="${ac_tool_prefix}cc"
2401    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2402    break 2
2403  fi
2404done
2405done
2406IFS=$as_save_IFS
2407
2408fi
2409fi
2410CC=$ac_cv_prog_CC
2411if test -n "$CC"; then
2412  { echo "$as_me:$LINENO: result: $CC" >&5
2413echo "${ECHO_T}$CC" >&6; }
2414else
2415  { echo "$as_me:$LINENO: result: no" >&5
2416echo "${ECHO_T}no" >&6; }
2417fi
2418
2419
2420  fi
2421fi
2422if test -z "$CC"; then
2423  # Extract the first word of "cc", so it can be a program name with args.
2424set dummy cc; ac_word=$2
2425{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2426echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2427if test "${ac_cv_prog_CC+set}" = set; then
2428  echo $ECHO_N "(cached) $ECHO_C" >&6
2429else
2430  if test -n "$CC"; then
2431  ac_cv_prog_CC="$CC" # Let the user override the test.
2432else
2433  ac_prog_rejected=no
2434as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2435for as_dir in $PATH
2436do
2437  IFS=$as_save_IFS
2438  test -z "$as_dir" && as_dir=.
2439  for ac_exec_ext in '' $ac_executable_extensions; do
2440  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2441    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2442       ac_prog_rejected=yes
2443       continue
2444     fi
2445    ac_cv_prog_CC="cc"
2446    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2447    break 2
2448  fi
2449done
2450done
2451IFS=$as_save_IFS
2452
2453if test $ac_prog_rejected = yes; then
2454  # We found a bogon in the path, so make sure we never use it.
2455  set dummy $ac_cv_prog_CC
2456  shift
2457  if test $# != 0; then
2458    # We chose a different compiler from the bogus one.
2459    # However, it has the same basename, so the bogon will be chosen
2460    # first if we set CC to just the basename; use the full file name.
2461    shift
2462    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2463  fi
2464fi
2465fi
2466fi
2467CC=$ac_cv_prog_CC
2468if test -n "$CC"; then
2469  { echo "$as_me:$LINENO: result: $CC" >&5
2470echo "${ECHO_T}$CC" >&6; }
2471else
2472  { echo "$as_me:$LINENO: result: no" >&5
2473echo "${ECHO_T}no" >&6; }
2474fi
2475
2476
2477fi
2478if test -z "$CC"; then
2479  if test -n "$ac_tool_prefix"; then
2480  for ac_prog in cl.exe
2481  do
2482    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2483set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2484{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2485echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2486if test "${ac_cv_prog_CC+set}" = set; then
2487  echo $ECHO_N "(cached) $ECHO_C" >&6
2488else
2489  if test -n "$CC"; then
2490  ac_cv_prog_CC="$CC" # Let the user override the test.
2491else
2492as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2493for as_dir in $PATH
2494do
2495  IFS=$as_save_IFS
2496  test -z "$as_dir" && as_dir=.
2497  for ac_exec_ext in '' $ac_executable_extensions; do
2498  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2499    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2500    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2501    break 2
2502  fi
2503done
2504done
2505IFS=$as_save_IFS
2506
2507fi
2508fi
2509CC=$ac_cv_prog_CC
2510if test -n "$CC"; then
2511  { echo "$as_me:$LINENO: result: $CC" >&5
2512echo "${ECHO_T}$CC" >&6; }
2513else
2514  { echo "$as_me:$LINENO: result: no" >&5
2515echo "${ECHO_T}no" >&6; }
2516fi
2517
2518
2519    test -n "$CC" && break
2520  done
2521fi
2522if test -z "$CC"; then
2523  ac_ct_CC=$CC
2524  for ac_prog in cl.exe
2525do
2526  # Extract the first word of "$ac_prog", so it can be a program name with args.
2527set dummy $ac_prog; ac_word=$2
2528{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2529echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2530if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2531  echo $ECHO_N "(cached) $ECHO_C" >&6
2532else
2533  if test -n "$ac_ct_CC"; then
2534  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2535else
2536as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2537for as_dir in $PATH
2538do
2539  IFS=$as_save_IFS
2540  test -z "$as_dir" && as_dir=.
2541  for ac_exec_ext in '' $ac_executable_extensions; do
2542  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2543    ac_cv_prog_ac_ct_CC="$ac_prog"
2544    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2545    break 2
2546  fi
2547done
2548done
2549IFS=$as_save_IFS
2550
2551fi
2552fi
2553ac_ct_CC=$ac_cv_prog_ac_ct_CC
2554if test -n "$ac_ct_CC"; then
2555  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2556echo "${ECHO_T}$ac_ct_CC" >&6; }
2557else
2558  { echo "$as_me:$LINENO: result: no" >&5
2559echo "${ECHO_T}no" >&6; }
2560fi
2561
2562
2563  test -n "$ac_ct_CC" && break
2564done
2565
2566  if test "x$ac_ct_CC" = x; then
2567    CC=""
2568  else
2569    case $cross_compiling:$ac_tool_warned in
2570yes:)
2571{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2572whose name does not start with the host triplet.  If you think this
2573configuration is useful to you, please write to autoconf@gnu.org." >&5
2574echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2575whose name does not start with the host triplet.  If you think this
2576configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2577ac_tool_warned=yes ;;
2578esac
2579    CC=$ac_ct_CC
2580  fi
2581fi
2582
2583fi
2584
2585
2586test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2587See \`config.log' for more details." >&5
2588echo "$as_me: error: no acceptable C compiler found in \$PATH
2589See \`config.log' for more details." >&2;}
2590   { (exit 1); exit 1; }; }
2591
2592# Provide some information about the compiler.
2593echo "$as_me:$LINENO: checking for C compiler version" >&5
2594ac_compiler=`set X $ac_compile; echo $2`
2595{ (ac_try="$ac_compiler --version >&5"
2596case "(($ac_try" in
2597  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2598  *) ac_try_echo=$ac_try;;
2599esac
2600eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2601  (eval "$ac_compiler --version >&5") 2>&5
2602  ac_status=$?
2603  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2604  (exit $ac_status); }
2605{ (ac_try="$ac_compiler -v >&5"
2606case "(($ac_try" in
2607  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2608  *) ac_try_echo=$ac_try;;
2609esac
2610eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2611  (eval "$ac_compiler -v >&5") 2>&5
2612  ac_status=$?
2613  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2614  (exit $ac_status); }
2615{ (ac_try="$ac_compiler -V >&5"
2616case "(($ac_try" in
2617  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2618  *) ac_try_echo=$ac_try;;
2619esac
2620eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2621  (eval "$ac_compiler -V >&5") 2>&5
2622  ac_status=$?
2623  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2624  (exit $ac_status); }
2625
2626cat >conftest.$ac_ext <<_ACEOF
2627/* confdefs.h.  */
2628_ACEOF
2629cat confdefs.h >>conftest.$ac_ext
2630cat >>conftest.$ac_ext <<_ACEOF
2631/* end confdefs.h.  */
2632
2633int
2634main ()
2635{
2636
2637  ;
2638  return 0;
2639}
2640_ACEOF
2641ac_clean_files_save=$ac_clean_files
2642ac_clean_files="$ac_clean_files a.out a.exe b.out"
2643# Try to create an executable without -o first, disregard a.out.
2644# It will help us diagnose broken compilers, and finding out an intuition
2645# of exeext.
2646{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2647echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2648ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2649#
2650# List of possible output files, starting from the most likely.
2651# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2652# only as a last resort.  b.out is created by i960 compilers.
2653ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2654#
2655# The IRIX 6 linker writes into existing files which may not be
2656# executable, retaining their permissions.  Remove them first so a
2657# subsequent execution test works.
2658ac_rmfiles=
2659for ac_file in $ac_files
2660do
2661  case $ac_file in
2662    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2663    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2664  esac
2665done
2666rm -f $ac_rmfiles
2667
2668if { (ac_try="$ac_link_default"
2669case "(($ac_try" in
2670  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2671  *) ac_try_echo=$ac_try;;
2672esac
2673eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2674  (eval "$ac_link_default") 2>&5
2675  ac_status=$?
2676  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2677  (exit $ac_status); }; then
2678  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2679# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2680# in a Makefile.  We should not override ac_cv_exeext if it was cached,
2681# so that the user can short-circuit this test for compilers unknown to
2682# Autoconf.
2683for ac_file in $ac_files ''
2684do
2685  test -f "$ac_file" || continue
2686  case $ac_file in
2687    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2688	;;
2689    [ab].out )
2690	# We found the default executable, but exeext='' is most
2691	# certainly right.
2692	break;;
2693    *.* )
2694        if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2695	then :; else
2696	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2697	fi
2698	# We set ac_cv_exeext here because the later test for it is not
2699	# safe: cross compilers may not add the suffix if given an `-o'
2700	# argument, so we may need to know it at that point already.
2701	# Even if this section looks crufty: it has the advantage of
2702	# actually working.
2703	break;;
2704    * )
2705	break;;
2706  esac
2707done
2708test "$ac_cv_exeext" = no && ac_cv_exeext=
2709
2710else
2711  ac_file=''
2712fi
2713
2714{ echo "$as_me:$LINENO: result: $ac_file" >&5
2715echo "${ECHO_T}$ac_file" >&6; }
2716if test -z "$ac_file"; then
2717  echo "$as_me: failed program was:" >&5
2718sed 's/^/| /' conftest.$ac_ext >&5
2719
2720{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2721See \`config.log' for more details." >&5
2722echo "$as_me: error: C compiler cannot create executables
2723See \`config.log' for more details." >&2;}
2724   { (exit 77); exit 77; }; }
2725fi
2726
2727ac_exeext=$ac_cv_exeext
2728
2729# Check that the compiler produces executables we can run.  If not, either
2730# the compiler is broken, or we cross compile.
2731{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2732echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2733# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2734# If not cross compiling, check that we can run a simple program.
2735if test "$cross_compiling" != yes; then
2736  if { ac_try='./$ac_file'
2737  { (case "(($ac_try" in
2738  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2739  *) ac_try_echo=$ac_try;;
2740esac
2741eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2742  (eval "$ac_try") 2>&5
2743  ac_status=$?
2744  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2745  (exit $ac_status); }; }; then
2746    cross_compiling=no
2747  else
2748    if test "$cross_compiling" = maybe; then
2749	cross_compiling=yes
2750    else
2751	{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2752If you meant to cross compile, use \`--host'.
2753See \`config.log' for more details." >&5
2754echo "$as_me: error: cannot run C compiled programs.
2755If you meant to cross compile, use \`--host'.
2756See \`config.log' for more details." >&2;}
2757   { (exit 1); exit 1; }; }
2758    fi
2759  fi
2760fi
2761{ echo "$as_me:$LINENO: result: yes" >&5
2762echo "${ECHO_T}yes" >&6; }
2763
2764rm -f a.out a.exe conftest$ac_cv_exeext b.out
2765ac_clean_files=$ac_clean_files_save
2766# Check that the compiler produces executables we can run.  If not, either
2767# the compiler is broken, or we cross compile.
2768{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2769echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2770{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
2771echo "${ECHO_T}$cross_compiling" >&6; }
2772
2773{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
2774echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2775if { (ac_try="$ac_link"
2776case "(($ac_try" in
2777  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2778  *) ac_try_echo=$ac_try;;
2779esac
2780eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2781  (eval "$ac_link") 2>&5
2782  ac_status=$?
2783  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2784  (exit $ac_status); }; then
2785  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2786# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2787# work properly (i.e., refer to `conftest.exe'), while it won't with
2788# `rm'.
2789for ac_file in conftest.exe conftest conftest.*; do
2790  test -f "$ac_file" || continue
2791  case $ac_file in
2792    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2793    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2794	  break;;
2795    * ) break;;
2796  esac
2797done
2798else
2799  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2800See \`config.log' for more details." >&5
2801echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2802See \`config.log' for more details." >&2;}
2803   { (exit 1); exit 1; }; }
2804fi
2805
2806rm -f conftest$ac_cv_exeext
2807{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2808echo "${ECHO_T}$ac_cv_exeext" >&6; }
2809
2810rm -f conftest.$ac_ext
2811EXEEXT=$ac_cv_exeext
2812ac_exeext=$EXEEXT
2813{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
2814echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2815if test "${ac_cv_objext+set}" = set; then
2816  echo $ECHO_N "(cached) $ECHO_C" >&6
2817else
2818  cat >conftest.$ac_ext <<_ACEOF
2819/* confdefs.h.  */
2820_ACEOF
2821cat confdefs.h >>conftest.$ac_ext
2822cat >>conftest.$ac_ext <<_ACEOF
2823/* end confdefs.h.  */
2824
2825int
2826main ()
2827{
2828
2829  ;
2830  return 0;
2831}
2832_ACEOF
2833rm -f conftest.o conftest.obj
2834if { (ac_try="$ac_compile"
2835case "(($ac_try" in
2836  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2837  *) ac_try_echo=$ac_try;;
2838esac
2839eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2840  (eval "$ac_compile") 2>&5
2841  ac_status=$?
2842  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2843  (exit $ac_status); }; then
2844  for ac_file in conftest.o conftest.obj conftest.*; do
2845  test -f "$ac_file" || continue;
2846  case $ac_file in
2847    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2848    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2849       break;;
2850  esac
2851done
2852else
2853  echo "$as_me: failed program was:" >&5
2854sed 's/^/| /' conftest.$ac_ext >&5
2855
2856{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2857See \`config.log' for more details." >&5
2858echo "$as_me: error: cannot compute suffix of object files: cannot compile
2859See \`config.log' for more details." >&2;}
2860   { (exit 1); exit 1; }; }
2861fi
2862
2863rm -f conftest.$ac_cv_objext conftest.$ac_ext
2864fi
2865{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2866echo "${ECHO_T}$ac_cv_objext" >&6; }
2867OBJEXT=$ac_cv_objext
2868ac_objext=$OBJEXT
2869{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2870echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2871if test "${ac_cv_c_compiler_gnu+set}" = set; then
2872  echo $ECHO_N "(cached) $ECHO_C" >&6
2873else
2874  cat >conftest.$ac_ext <<_ACEOF
2875/* confdefs.h.  */
2876_ACEOF
2877cat confdefs.h >>conftest.$ac_ext
2878cat >>conftest.$ac_ext <<_ACEOF
2879/* end confdefs.h.  */
2880
2881int
2882main ()
2883{
2884#ifndef __GNUC__
2885       choke me
2886#endif
2887
2888  ;
2889  return 0;
2890}
2891_ACEOF
2892rm -f conftest.$ac_objext
2893if { (ac_try="$ac_compile"
2894case "(($ac_try" in
2895  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2896  *) ac_try_echo=$ac_try;;
2897esac
2898eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2899  (eval "$ac_compile") 2>conftest.er1
2900  ac_status=$?
2901  grep -v '^ *+' conftest.er1 >conftest.err
2902  rm -f conftest.er1
2903  cat conftest.err >&5
2904  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2905  (exit $ac_status); } && {
2906	 test -z "$ac_c_werror_flag" ||
2907	 test ! -s conftest.err
2908       } && test -s conftest.$ac_objext; then
2909  ac_compiler_gnu=yes
2910else
2911  echo "$as_me: failed program was:" >&5
2912sed 's/^/| /' conftest.$ac_ext >&5
2913
2914	ac_compiler_gnu=no
2915fi
2916
2917rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2918ac_cv_c_compiler_gnu=$ac_compiler_gnu
2919
2920fi
2921{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2922echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2923GCC=`test $ac_compiler_gnu = yes && echo yes`
2924ac_test_CFLAGS=${CFLAGS+set}
2925ac_save_CFLAGS=$CFLAGS
2926{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2927echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2928if test "${ac_cv_prog_cc_g+set}" = set; then
2929  echo $ECHO_N "(cached) $ECHO_C" >&6
2930else
2931  ac_save_c_werror_flag=$ac_c_werror_flag
2932   ac_c_werror_flag=yes
2933   ac_cv_prog_cc_g=no
2934   CFLAGS="-g"
2935   cat >conftest.$ac_ext <<_ACEOF
2936/* confdefs.h.  */
2937_ACEOF
2938cat confdefs.h >>conftest.$ac_ext
2939cat >>conftest.$ac_ext <<_ACEOF
2940/* end confdefs.h.  */
2941
2942int
2943main ()
2944{
2945
2946  ;
2947  return 0;
2948}
2949_ACEOF
2950rm -f conftest.$ac_objext
2951if { (ac_try="$ac_compile"
2952case "(($ac_try" in
2953  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2954  *) ac_try_echo=$ac_try;;
2955esac
2956eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2957  (eval "$ac_compile") 2>conftest.er1
2958  ac_status=$?
2959  grep -v '^ *+' conftest.er1 >conftest.err
2960  rm -f conftest.er1
2961  cat conftest.err >&5
2962  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2963  (exit $ac_status); } && {
2964	 test -z "$ac_c_werror_flag" ||
2965	 test ! -s conftest.err
2966       } && test -s conftest.$ac_objext; then
2967  ac_cv_prog_cc_g=yes
2968else
2969  echo "$as_me: failed program was:" >&5
2970sed 's/^/| /' conftest.$ac_ext >&5
2971
2972	CFLAGS=""
2973      cat >conftest.$ac_ext <<_ACEOF
2974/* confdefs.h.  */
2975_ACEOF
2976cat confdefs.h >>conftest.$ac_ext
2977cat >>conftest.$ac_ext <<_ACEOF
2978/* end confdefs.h.  */
2979
2980int
2981main ()
2982{
2983
2984  ;
2985  return 0;
2986}
2987_ACEOF
2988rm -f conftest.$ac_objext
2989if { (ac_try="$ac_compile"
2990case "(($ac_try" in
2991  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2992  *) ac_try_echo=$ac_try;;
2993esac
2994eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2995  (eval "$ac_compile") 2>conftest.er1
2996  ac_status=$?
2997  grep -v '^ *+' conftest.er1 >conftest.err
2998  rm -f conftest.er1
2999  cat conftest.err >&5
3000  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3001  (exit $ac_status); } && {
3002	 test -z "$ac_c_werror_flag" ||
3003	 test ! -s conftest.err
3004       } && test -s conftest.$ac_objext; then
3005  :
3006else
3007  echo "$as_me: failed program was:" >&5
3008sed 's/^/| /' conftest.$ac_ext >&5
3009
3010	ac_c_werror_flag=$ac_save_c_werror_flag
3011	 CFLAGS="-g"
3012	 cat >conftest.$ac_ext <<_ACEOF
3013/* confdefs.h.  */
3014_ACEOF
3015cat confdefs.h >>conftest.$ac_ext
3016cat >>conftest.$ac_ext <<_ACEOF
3017/* end confdefs.h.  */
3018
3019int
3020main ()
3021{
3022
3023  ;
3024  return 0;
3025}
3026_ACEOF
3027rm -f conftest.$ac_objext
3028if { (ac_try="$ac_compile"
3029case "(($ac_try" in
3030  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3031  *) ac_try_echo=$ac_try;;
3032esac
3033eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3034  (eval "$ac_compile") 2>conftest.er1
3035  ac_status=$?
3036  grep -v '^ *+' conftest.er1 >conftest.err
3037  rm -f conftest.er1
3038  cat conftest.err >&5
3039  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3040  (exit $ac_status); } && {
3041	 test -z "$ac_c_werror_flag" ||
3042	 test ! -s conftest.err
3043       } && test -s conftest.$ac_objext; then
3044  ac_cv_prog_cc_g=yes
3045else
3046  echo "$as_me: failed program was:" >&5
3047sed 's/^/| /' conftest.$ac_ext >&5
3048
3049
3050fi
3051
3052rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3053fi
3054
3055rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3056fi
3057
3058rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3059   ac_c_werror_flag=$ac_save_c_werror_flag
3060fi
3061{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3062echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3063if test "$ac_test_CFLAGS" = set; then
3064  CFLAGS=$ac_save_CFLAGS
3065elif test $ac_cv_prog_cc_g = yes; then
3066  if test "$GCC" = yes; then
3067    CFLAGS="-g -O2"
3068  else
3069    CFLAGS="-g"
3070  fi
3071else
3072  if test "$GCC" = yes; then
3073    CFLAGS="-O2"
3074  else
3075    CFLAGS=
3076  fi
3077fi
3078{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3079echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3080if test "${ac_cv_prog_cc_c89+set}" = set; then
3081  echo $ECHO_N "(cached) $ECHO_C" >&6
3082else
3083  ac_cv_prog_cc_c89=no
3084ac_save_CC=$CC
3085cat >conftest.$ac_ext <<_ACEOF
3086/* confdefs.h.  */
3087_ACEOF
3088cat confdefs.h >>conftest.$ac_ext
3089cat >>conftest.$ac_ext <<_ACEOF
3090/* end confdefs.h.  */
3091#include <stdarg.h>
3092#include <stdio.h>
3093#include <sys/types.h>
3094#include <sys/stat.h>
3095/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3096struct buf { int x; };
3097FILE * (*rcsopen) (struct buf *, struct stat *, int);
3098static char *e (p, i)
3099     char **p;
3100     int i;
3101{
3102  return p[i];
3103}
3104static char *f (char * (*g) (char **, int), char **p, ...)
3105{
3106  char *s;
3107  va_list v;
3108  va_start (v,p);
3109  s = g (p, va_arg (v,int));
3110  va_end (v);
3111  return s;
3112}
3113
3114/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3115   function prototypes and stuff, but not '\xHH' hex character constants.
3116   These don't provoke an error unfortunately, instead are silently treated
3117   as 'x'.  The following induces an error, until -std is added to get
3118   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3119   array size at least.  It's necessary to write '\x00'==0 to get something
3120   that's true only with -std.  */
3121int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3122
3123/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3124   inside strings and character constants.  */
3125#define FOO(x) 'x'
3126int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3127
3128int test (int i, double x);
3129struct s1 {int (*f) (int a);};
3130struct s2 {int (*f) (double a);};
3131int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3132int argc;
3133char **argv;
3134int
3135main ()
3136{
3137return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3138  ;
3139  return 0;
3140}
3141_ACEOF
3142for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3143	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3144do
3145  CC="$ac_save_CC $ac_arg"
3146  rm -f conftest.$ac_objext
3147if { (ac_try="$ac_compile"
3148case "(($ac_try" in
3149  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3150  *) ac_try_echo=$ac_try;;
3151esac
3152eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3153  (eval "$ac_compile") 2>conftest.er1
3154  ac_status=$?
3155  grep -v '^ *+' conftest.er1 >conftest.err
3156  rm -f conftest.er1
3157  cat conftest.err >&5
3158  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3159  (exit $ac_status); } && {
3160	 test -z "$ac_c_werror_flag" ||
3161	 test ! -s conftest.err
3162       } && test -s conftest.$ac_objext; then
3163  ac_cv_prog_cc_c89=$ac_arg
3164else
3165  echo "$as_me: failed program was:" >&5
3166sed 's/^/| /' conftest.$ac_ext >&5
3167
3168
3169fi
3170
3171rm -f core conftest.err conftest.$ac_objext
3172  test "x$ac_cv_prog_cc_c89" != "xno" && break
3173done
3174rm -f conftest.$ac_ext
3175CC=$ac_save_CC
3176
3177fi
3178# AC_CACHE_VAL
3179case "x$ac_cv_prog_cc_c89" in
3180  x)
3181    { echo "$as_me:$LINENO: result: none needed" >&5
3182echo "${ECHO_T}none needed" >&6; } ;;
3183  xno)
3184    { echo "$as_me:$LINENO: result: unsupported" >&5
3185echo "${ECHO_T}unsupported" >&6; } ;;
3186  *)
3187    CC="$CC $ac_cv_prog_cc_c89"
3188    { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3189echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3190esac
3191
3192
3193ac_ext=c
3194ac_cpp='$CPP $CPPFLAGS'
3195ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3196ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3197ac_compiler_gnu=$ac_cv_c_compiler_gnu
3198
3199    ac_ext=c
3200ac_cpp='$CPP $CPPFLAGS'
3201ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3202ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3203ac_compiler_gnu=$ac_cv_c_compiler_gnu
3204{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3205echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3206# On Suns, sometimes $CPP names a directory.
3207if test -n "$CPP" && test -d "$CPP"; then
3208  CPP=
3209fi
3210if test -z "$CPP"; then
3211  if test "${ac_cv_prog_CPP+set}" = set; then
3212  echo $ECHO_N "(cached) $ECHO_C" >&6
3213else
3214      # Double quotes because CPP needs to be expanded
3215    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3216    do
3217      ac_preproc_ok=false
3218for ac_c_preproc_warn_flag in '' yes
3219do
3220  # Use a header file that comes with gcc, so configuring glibc
3221  # with a fresh cross-compiler works.
3222  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3223  # <limits.h> exists even on freestanding compilers.
3224  # On the NeXT, cc -E runs the code through the compiler's parser,
3225  # not just through cpp. "Syntax error" is here to catch this case.
3226  cat >conftest.$ac_ext <<_ACEOF
3227/* confdefs.h.  */
3228_ACEOF
3229cat confdefs.h >>conftest.$ac_ext
3230cat >>conftest.$ac_ext <<_ACEOF
3231/* end confdefs.h.  */
3232#ifdef __STDC__
3233# include <limits.h>
3234#else
3235# include <assert.h>
3236#endif
3237		     Syntax error
3238_ACEOF
3239if { (ac_try="$ac_cpp conftest.$ac_ext"
3240case "(($ac_try" in
3241  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3242  *) ac_try_echo=$ac_try;;
3243esac
3244eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3245  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3246  ac_status=$?
3247  grep -v '^ *+' conftest.er1 >conftest.err
3248  rm -f conftest.er1
3249  cat conftest.err >&5
3250  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3251  (exit $ac_status); } >/dev/null && {
3252	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3253	 test ! -s conftest.err
3254       }; then
3255  :
3256else
3257  echo "$as_me: failed program was:" >&5
3258sed 's/^/| /' conftest.$ac_ext >&5
3259
3260  # Broken: fails on valid input.
3261continue
3262fi
3263
3264rm -f conftest.err conftest.$ac_ext
3265
3266  # OK, works on sane cases.  Now check whether nonexistent headers
3267  # can be detected and how.
3268  cat >conftest.$ac_ext <<_ACEOF
3269/* confdefs.h.  */
3270_ACEOF
3271cat confdefs.h >>conftest.$ac_ext
3272cat >>conftest.$ac_ext <<_ACEOF
3273/* end confdefs.h.  */
3274#include <ac_nonexistent.h>
3275_ACEOF
3276if { (ac_try="$ac_cpp conftest.$ac_ext"
3277case "(($ac_try" in
3278  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3279  *) ac_try_echo=$ac_try;;
3280esac
3281eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3282  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3283  ac_status=$?
3284  grep -v '^ *+' conftest.er1 >conftest.err
3285  rm -f conftest.er1
3286  cat conftest.err >&5
3287  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3288  (exit $ac_status); } >/dev/null && {
3289	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3290	 test ! -s conftest.err
3291       }; then
3292  # Broken: success on invalid input.
3293continue
3294else
3295  echo "$as_me: failed program was:" >&5
3296sed 's/^/| /' conftest.$ac_ext >&5
3297
3298  # Passes both tests.
3299ac_preproc_ok=:
3300break
3301fi
3302
3303rm -f conftest.err conftest.$ac_ext
3304
3305done
3306# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3307rm -f conftest.err conftest.$ac_ext
3308if $ac_preproc_ok; then
3309  break
3310fi
3311
3312    done
3313    ac_cv_prog_CPP=$CPP
3314
3315fi
3316  CPP=$ac_cv_prog_CPP
3317else
3318  ac_cv_prog_CPP=$CPP
3319fi
3320{ echo "$as_me:$LINENO: result: $CPP" >&5
3321echo "${ECHO_T}$CPP" >&6; }
3322ac_preproc_ok=false
3323for ac_c_preproc_warn_flag in '' yes
3324do
3325  # Use a header file that comes with gcc, so configuring glibc
3326  # with a fresh cross-compiler works.
3327  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3328  # <limits.h> exists even on freestanding compilers.
3329  # On the NeXT, cc -E runs the code through the compiler's parser,
3330  # not just through cpp. "Syntax error" is here to catch this case.
3331  cat >conftest.$ac_ext <<_ACEOF
3332/* confdefs.h.  */
3333_ACEOF
3334cat confdefs.h >>conftest.$ac_ext
3335cat >>conftest.$ac_ext <<_ACEOF
3336/* end confdefs.h.  */
3337#ifdef __STDC__
3338# include <limits.h>
3339#else
3340# include <assert.h>
3341#endif
3342		     Syntax error
3343_ACEOF
3344if { (ac_try="$ac_cpp conftest.$ac_ext"
3345case "(($ac_try" in
3346  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3347  *) ac_try_echo=$ac_try;;
3348esac
3349eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3350  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3351  ac_status=$?
3352  grep -v '^ *+' conftest.er1 >conftest.err
3353  rm -f conftest.er1
3354  cat conftest.err >&5
3355  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3356  (exit $ac_status); } >/dev/null && {
3357	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3358	 test ! -s conftest.err
3359       }; then
3360  :
3361else
3362  echo "$as_me: failed program was:" >&5
3363sed 's/^/| /' conftest.$ac_ext >&5
3364
3365  # Broken: fails on valid input.
3366continue
3367fi
3368
3369rm -f conftest.err conftest.$ac_ext
3370
3371  # OK, works on sane cases.  Now check whether nonexistent headers
3372  # can be detected and how.
3373  cat >conftest.$ac_ext <<_ACEOF
3374/* confdefs.h.  */
3375_ACEOF
3376cat confdefs.h >>conftest.$ac_ext
3377cat >>conftest.$ac_ext <<_ACEOF
3378/* end confdefs.h.  */
3379#include <ac_nonexistent.h>
3380_ACEOF
3381if { (ac_try="$ac_cpp conftest.$ac_ext"
3382case "(($ac_try" in
3383  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3384  *) ac_try_echo=$ac_try;;
3385esac
3386eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3387  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3388  ac_status=$?
3389  grep -v '^ *+' conftest.er1 >conftest.err
3390  rm -f conftest.er1
3391  cat conftest.err >&5
3392  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3393  (exit $ac_status); } >/dev/null && {
3394	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3395	 test ! -s conftest.err
3396       }; then
3397  # Broken: success on invalid input.
3398continue
3399else
3400  echo "$as_me: failed program was:" >&5
3401sed 's/^/| /' conftest.$ac_ext >&5
3402
3403  # Passes both tests.
3404ac_preproc_ok=:
3405break
3406fi
3407
3408rm -f conftest.err conftest.$ac_ext
3409
3410done
3411# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3412rm -f conftest.err conftest.$ac_ext
3413if $ac_preproc_ok; then
3414  :
3415else
3416  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3417See \`config.log' for more details." >&5
3418echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3419See \`config.log' for more details." >&2;}
3420   { (exit 1); exit 1; }; }
3421fi
3422
3423ac_ext=c
3424ac_cpp='$CPP $CPPFLAGS'
3425ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3426ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3427ac_compiler_gnu=$ac_cv_c_compiler_gnu
3428
3429
3430    # Find a good install program.  We prefer a C program (faster),
3431# so one script is as good as another.  But avoid the broken or
3432# incompatible versions:
3433# SysV /etc/install, /usr/sbin/install
3434# SunOS /usr/etc/install
3435# IRIX /sbin/install
3436# AIX /bin/install
3437# AmigaOS /C/install, which installs bootblocks on floppy discs
3438# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3439# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3440# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3441# OS/2's system install, which has a completely different semantic
3442# ./install, which can be erroneously created by make from ./install.sh.
3443{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3444echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
3445if test -z "$INSTALL"; then
3446if test "${ac_cv_path_install+set}" = set; then
3447  echo $ECHO_N "(cached) $ECHO_C" >&6
3448else
3449  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3450for as_dir in $PATH
3451do
3452  IFS=$as_save_IFS
3453  test -z "$as_dir" && as_dir=.
3454  # Account for people who put trailing slashes in PATH elements.
3455case $as_dir/ in
3456  ./ | .// | /cC/* | \
3457  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3458  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3459  /usr/ucb/* ) ;;
3460  *)
3461    # OSF1 and SCO ODT 3.0 have their own names for install.
3462    # Don't use installbsd from OSF since it installs stuff as root
3463    # by default.
3464    for ac_prog in ginstall scoinst install; do
3465      for ac_exec_ext in '' $ac_executable_extensions; do
3466	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3467	  if test $ac_prog = install &&
3468	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3469	    # AIX install.  It has an incompatible calling convention.
3470	    :
3471	  elif test $ac_prog = install &&
3472	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3473	    # program-specific install script used by HP pwplus--don't use.
3474	    :
3475	  else
3476	    ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3477	    break 3
3478	  fi
3479	fi
3480      done
3481    done
3482    ;;
3483esac
3484done
3485IFS=$as_save_IFS
3486
3487
3488fi
3489  if test "${ac_cv_path_install+set}" = set; then
3490    INSTALL=$ac_cv_path_install
3491  else
3492    # As a last resort, use the slow shell script.  Don't cache a
3493    # value for INSTALL within a source directory, because that will
3494    # break other packages using the cache if that directory is
3495    # removed, or if the value is a relative name.
3496    INSTALL=$ac_install_sh
3497  fi
3498fi
3499{ echo "$as_me:$LINENO: result: $INSTALL" >&5
3500echo "${ECHO_T}$INSTALL" >&6; }
3501
3502# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3503# It thinks the first close brace ends the variable substitution.
3504test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3505
3506test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3507
3508test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3509
3510
3511    #--------------------------------------------------------------------
3512    # Checks to see if the make program sets the $MAKE variable.
3513    #--------------------------------------------------------------------
3514
3515    { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3516echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
3517set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3518if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
3519  echo $ECHO_N "(cached) $ECHO_C" >&6
3520else
3521  cat >conftest.make <<\_ACEOF
3522SHELL = /bin/sh
3523all:
3524	@echo '@@@%%%=$(MAKE)=@@@%%%'
3525_ACEOF
3526# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3527case `${MAKE-make} -f conftest.make 2>/dev/null` in
3528  *@@@%%%=?*=@@@%%%*)
3529    eval ac_cv_prog_make_${ac_make}_set=yes;;
3530  *)
3531    eval ac_cv_prog_make_${ac_make}_set=no;;
3532esac
3533rm -f conftest.make
3534fi
3535if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3536  { echo "$as_me:$LINENO: result: yes" >&5
3537echo "${ECHO_T}yes" >&6; }
3538  SET_MAKE=
3539else
3540  { echo "$as_me:$LINENO: result: no" >&5
3541echo "${ECHO_T}no" >&6; }
3542  SET_MAKE="MAKE=${MAKE-make}"
3543fi
3544
3545
3546    #--------------------------------------------------------------------
3547    # Find ranlib
3548    #--------------------------------------------------------------------
3549
3550    if test -n "$ac_tool_prefix"; then
3551  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3552set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3553{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3554echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3555if test "${ac_cv_prog_RANLIB+set}" = set; then
3556  echo $ECHO_N "(cached) $ECHO_C" >&6
3557else
3558  if test -n "$RANLIB"; then
3559  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3560else
3561as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3562for as_dir in $PATH
3563do
3564  IFS=$as_save_IFS
3565  test -z "$as_dir" && as_dir=.
3566  for ac_exec_ext in '' $ac_executable_extensions; do
3567  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3568    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3569    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3570    break 2
3571  fi
3572done
3573done
3574IFS=$as_save_IFS
3575
3576fi
3577fi
3578RANLIB=$ac_cv_prog_RANLIB
3579if test -n "$RANLIB"; then
3580  { echo "$as_me:$LINENO: result: $RANLIB" >&5
3581echo "${ECHO_T}$RANLIB" >&6; }
3582else
3583  { echo "$as_me:$LINENO: result: no" >&5
3584echo "${ECHO_T}no" >&6; }
3585fi
3586
3587
3588fi
3589if test -z "$ac_cv_prog_RANLIB"; then
3590  ac_ct_RANLIB=$RANLIB
3591  # Extract the first word of "ranlib", so it can be a program name with args.
3592set dummy ranlib; ac_word=$2
3593{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3594echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3595if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3596  echo $ECHO_N "(cached) $ECHO_C" >&6
3597else
3598  if test -n "$ac_ct_RANLIB"; then
3599  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3600else
3601as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3602for as_dir in $PATH
3603do
3604  IFS=$as_save_IFS
3605  test -z "$as_dir" && as_dir=.
3606  for ac_exec_ext in '' $ac_executable_extensions; do
3607  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3608    ac_cv_prog_ac_ct_RANLIB="ranlib"
3609    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3610    break 2
3611  fi
3612done
3613done
3614IFS=$as_save_IFS
3615
3616fi
3617fi
3618ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3619if test -n "$ac_ct_RANLIB"; then
3620  { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3621echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
3622else
3623  { echo "$as_me:$LINENO: result: no" >&5
3624echo "${ECHO_T}no" >&6; }
3625fi
3626
3627  if test "x$ac_ct_RANLIB" = x; then
3628    RANLIB=":"
3629  else
3630    case $cross_compiling:$ac_tool_warned in
3631yes:)
3632{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3633whose name does not start with the host triplet.  If you think this
3634configuration is useful to you, please write to autoconf@gnu.org." >&5
3635echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3636whose name does not start with the host triplet.  If you think this
3637configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3638ac_tool_warned=yes ;;
3639esac
3640    RANLIB=$ac_ct_RANLIB
3641  fi
3642else
3643  RANLIB="$ac_cv_prog_RANLIB"
3644fi
3645
3646
3647    #--------------------------------------------------------------------
3648    # Determines the correct binary file extension (.o, .obj, .exe etc.)
3649    #--------------------------------------------------------------------
3650
3651
3652
3653
3654
3655
3656{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3657echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3658if test "${ac_cv_path_GREP+set}" = set; then
3659  echo $ECHO_N "(cached) $ECHO_C" >&6
3660else
3661  # Extract the first word of "grep ggrep" to use in msg output
3662if test -z "$GREP"; then
3663set dummy grep ggrep; ac_prog_name=$2
3664if test "${ac_cv_path_GREP+set}" = set; then
3665  echo $ECHO_N "(cached) $ECHO_C" >&6
3666else
3667  ac_path_GREP_found=false
3668# Loop through the user's path and test for each of PROGNAME-LIST
3669as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3670for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3671do
3672  IFS=$as_save_IFS
3673  test -z "$as_dir" && as_dir=.
3674  for ac_prog in grep ggrep; do
3675  for ac_exec_ext in '' $ac_executable_extensions; do
3676    ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3677    { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3678    # Check for GNU ac_path_GREP and select it if it is found.
3679  # Check for GNU $ac_path_GREP
3680case `"$ac_path_GREP" --version 2>&1` in
3681*GNU*)
3682  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3683*)
3684  ac_count=0
3685  echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3686  while :
3687  do
3688    cat "conftest.in" "conftest.in" >"conftest.tmp"
3689    mv "conftest.tmp" "conftest.in"
3690    cp "conftest.in" "conftest.nl"
3691    echo 'GREP' >> "conftest.nl"
3692    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3693    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3694    ac_count=`expr $ac_count + 1`
3695    if test $ac_count -gt ${ac_path_GREP_max-0}; then
3696      # Best one so far, save it but keep looking for a better one
3697      ac_cv_path_GREP="$ac_path_GREP"
3698      ac_path_GREP_max=$ac_count
3699    fi
3700    # 10*(2^10) chars as input seems more than enough
3701    test $ac_count -gt 10 && break
3702  done
3703  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3704esac
3705
3706
3707    $ac_path_GREP_found && break 3
3708  done
3709done
3710
3711done
3712IFS=$as_save_IFS
3713
3714
3715fi
3716
3717GREP="$ac_cv_path_GREP"
3718if test -z "$GREP"; then
3719  { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3720echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3721   { (exit 1); exit 1; }; }
3722fi
3723
3724else
3725  ac_cv_path_GREP=$GREP
3726fi
3727
3728
3729fi
3730{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3731echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3732 GREP="$ac_cv_path_GREP"
3733
3734
3735{ echo "$as_me:$LINENO: checking for egrep" >&5
3736echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3737if test "${ac_cv_path_EGREP+set}" = set; then
3738  echo $ECHO_N "(cached) $ECHO_C" >&6
3739else
3740  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3741   then ac_cv_path_EGREP="$GREP -E"
3742   else
3743     # Extract the first word of "egrep" to use in msg output
3744if test -z "$EGREP"; then
3745set dummy egrep; ac_prog_name=$2
3746if test "${ac_cv_path_EGREP+set}" = set; then
3747  echo $ECHO_N "(cached) $ECHO_C" >&6
3748else
3749  ac_path_EGREP_found=false
3750# Loop through the user's path and test for each of PROGNAME-LIST
3751as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3752for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3753do
3754  IFS=$as_save_IFS
3755  test -z "$as_dir" && as_dir=.
3756  for ac_prog in egrep; do
3757  for ac_exec_ext in '' $ac_executable_extensions; do
3758    ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3759    { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3760    # Check for GNU ac_path_EGREP and select it if it is found.
3761  # Check for GNU $ac_path_EGREP
3762case `"$ac_path_EGREP" --version 2>&1` in
3763*GNU*)
3764  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3765*)
3766  ac_count=0
3767  echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3768  while :
3769  do
3770    cat "conftest.in" "conftest.in" >"conftest.tmp"
3771    mv "conftest.tmp" "conftest.in"
3772    cp "conftest.in" "conftest.nl"
3773    echo 'EGREP' >> "conftest.nl"
3774    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3775    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3776    ac_count=`expr $ac_count + 1`
3777    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3778      # Best one so far, save it but keep looking for a better one
3779      ac_cv_path_EGREP="$ac_path_EGREP"
3780      ac_path_EGREP_max=$ac_count
3781    fi
3782    # 10*(2^10) chars as input seems more than enough
3783    test $ac_count -gt 10 && break
3784  done
3785  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3786esac
3787
3788
3789    $ac_path_EGREP_found && break 3
3790  done
3791done
3792
3793done
3794IFS=$as_save_IFS
3795
3796
3797fi
3798
3799EGREP="$ac_cv_path_EGREP"
3800if test -z "$EGREP"; then
3801  { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3802echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3803   { (exit 1); exit 1; }; }
3804fi
3805
3806else
3807  ac_cv_path_EGREP=$EGREP
3808fi
3809
3810
3811   fi
3812fi
3813{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3814echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3815 EGREP="$ac_cv_path_EGREP"
3816
3817
3818{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3819echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3820if test "${ac_cv_header_stdc+set}" = set; then
3821  echo $ECHO_N "(cached) $ECHO_C" >&6
3822else
3823  cat >conftest.$ac_ext <<_ACEOF
3824/* confdefs.h.  */
3825_ACEOF
3826cat confdefs.h >>conftest.$ac_ext
3827cat >>conftest.$ac_ext <<_ACEOF
3828/* end confdefs.h.  */
3829#include <stdlib.h>
3830#include <stdarg.h>
3831#include <string.h>
3832#include <float.h>
3833
3834int
3835main ()
3836{
3837
3838  ;
3839  return 0;
3840}
3841_ACEOF
3842rm -f conftest.$ac_objext
3843if { (ac_try="$ac_compile"
3844case "(($ac_try" in
3845  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3846  *) ac_try_echo=$ac_try;;
3847esac
3848eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3849  (eval "$ac_compile") 2>conftest.er1
3850  ac_status=$?
3851  grep -v '^ *+' conftest.er1 >conftest.err
3852  rm -f conftest.er1
3853  cat conftest.err >&5
3854  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3855  (exit $ac_status); } && {
3856	 test -z "$ac_c_werror_flag" ||
3857	 test ! -s conftest.err
3858       } && test -s conftest.$ac_objext; then
3859  ac_cv_header_stdc=yes
3860else
3861  echo "$as_me: failed program was:" >&5
3862sed 's/^/| /' conftest.$ac_ext >&5
3863
3864	ac_cv_header_stdc=no
3865fi
3866
3867rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3868
3869if test $ac_cv_header_stdc = yes; then
3870  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3871  cat >conftest.$ac_ext <<_ACEOF
3872/* confdefs.h.  */
3873_ACEOF
3874cat confdefs.h >>conftest.$ac_ext
3875cat >>conftest.$ac_ext <<_ACEOF
3876/* end confdefs.h.  */
3877#include <string.h>
3878
3879_ACEOF
3880if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3881  $EGREP "memchr" >/dev/null 2>&1; then
3882  :
3883else
3884  ac_cv_header_stdc=no
3885fi
3886rm -f -r conftest*
3887
3888fi
3889
3890if test $ac_cv_header_stdc = yes; then
3891  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3892  cat >conftest.$ac_ext <<_ACEOF
3893/* confdefs.h.  */
3894_ACEOF
3895cat confdefs.h >>conftest.$ac_ext
3896cat >>conftest.$ac_ext <<_ACEOF
3897/* end confdefs.h.  */
3898#include <stdlib.h>
3899
3900_ACEOF
3901if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3902  $EGREP "free" >/dev/null 2>&1; then
3903  :
3904else
3905  ac_cv_header_stdc=no
3906fi
3907rm -f -r conftest*
3908
3909fi
3910
3911if test $ac_cv_header_stdc = yes; then
3912  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3913  if test "$cross_compiling" = yes; then
3914  :
3915else
3916  cat >conftest.$ac_ext <<_ACEOF
3917/* confdefs.h.  */
3918_ACEOF
3919cat confdefs.h >>conftest.$ac_ext
3920cat >>conftest.$ac_ext <<_ACEOF
3921/* end confdefs.h.  */
3922#include <ctype.h>
3923#include <stdlib.h>
3924#if ((' ' & 0x0FF) == 0x020)
3925# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3926# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3927#else
3928# define ISLOWER(c) \
3929		   (('a' <= (c) && (c) <= 'i') \
3930		     || ('j' <= (c) && (c) <= 'r') \
3931		     || ('s' <= (c) && (c) <= 'z'))
3932# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3933#endif
3934
3935#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3936int
3937main ()
3938{
3939  int i;
3940  for (i = 0; i < 256; i++)
3941    if (XOR (islower (i), ISLOWER (i))
3942	|| toupper (i) != TOUPPER (i))
3943      return 2;
3944  return 0;
3945}
3946_ACEOF
3947rm -f conftest$ac_exeext
3948if { (ac_try="$ac_link"
3949case "(($ac_try" in
3950  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3951  *) ac_try_echo=$ac_try;;
3952esac
3953eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3954  (eval "$ac_link") 2>&5
3955  ac_status=$?
3956  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3957  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3958  { (case "(($ac_try" in
3959  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3960  *) ac_try_echo=$ac_try;;
3961esac
3962eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3963  (eval "$ac_try") 2>&5
3964  ac_status=$?
3965  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3966  (exit $ac_status); }; }; then
3967  :
3968else
3969  echo "$as_me: program exited with status $ac_status" >&5
3970echo "$as_me: failed program was:" >&5
3971sed 's/^/| /' conftest.$ac_ext >&5
3972
3973( exit $ac_status )
3974ac_cv_header_stdc=no
3975fi
3976rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3977fi
3978
3979
3980fi
3981fi
3982{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3983echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
3984if test $ac_cv_header_stdc = yes; then
3985
3986cat >>confdefs.h <<\_ACEOF
3987#define STDC_HEADERS 1
3988_ACEOF
3989
3990fi
3991
3992# On IRIX 5.3, sys/types and inttypes.h are conflicting.
3993
3994
3995
3996
3997
3998
3999
4000
4001
4002for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4003		  inttypes.h stdint.h unistd.h
4004do
4005as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4006{ echo "$as_me:$LINENO: checking for $ac_header" >&5
4007echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4008if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4009  echo $ECHO_N "(cached) $ECHO_C" >&6
4010else
4011  cat >conftest.$ac_ext <<_ACEOF
4012/* confdefs.h.  */
4013_ACEOF
4014cat confdefs.h >>conftest.$ac_ext
4015cat >>conftest.$ac_ext <<_ACEOF
4016/* end confdefs.h.  */
4017$ac_includes_default
4018
4019#include <$ac_header>
4020_ACEOF
4021rm -f conftest.$ac_objext
4022if { (ac_try="$ac_compile"
4023case "(($ac_try" in
4024  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4025  *) ac_try_echo=$ac_try;;
4026esac
4027eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4028  (eval "$ac_compile") 2>conftest.er1
4029  ac_status=$?
4030  grep -v '^ *+' conftest.er1 >conftest.err
4031  rm -f conftest.er1
4032  cat conftest.err >&5
4033  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4034  (exit $ac_status); } && {
4035	 test -z "$ac_c_werror_flag" ||
4036	 test ! -s conftest.err
4037       } && test -s conftest.$ac_objext; then
4038  eval "$as_ac_Header=yes"
4039else
4040  echo "$as_me: failed program was:" >&5
4041sed 's/^/| /' conftest.$ac_ext >&5
4042
4043	eval "$as_ac_Header=no"
4044fi
4045
4046rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4047fi
4048ac_res=`eval echo '${'$as_ac_Header'}'`
4049	       { echo "$as_me:$LINENO: result: $ac_res" >&5
4050echo "${ECHO_T}$ac_res" >&6; }
4051if test `eval echo '${'$as_ac_Header'}'` = yes; then
4052  cat >>confdefs.h <<_ACEOF
4053#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4054_ACEOF
4055
4056fi
4057
4058done
4059
4060
4061
4062    # Any macros that use the compiler (e.g. AC_TRY_COMPILE) have to go here.
4063
4064
4065    #------------------------------------------------------------------------
4066    # If we're using GCC, see if the compiler understands -pipe. If so, use it.
4067    # It makes compiling go faster.  (This is only a performance feature.)
4068    #------------------------------------------------------------------------
4069
4070    if test -z "$no_pipe" -a -n "$GCC"; then
4071	{ echo "$as_me:$LINENO: checking if the compiler understands -pipe" >&5
4072echo $ECHO_N "checking if the compiler understands -pipe... $ECHO_C" >&6; }
4073if test "${tcl_cv_cc_pipe+set}" = set; then
4074  echo $ECHO_N "(cached) $ECHO_C" >&6
4075else
4076
4077	    hold_cflags=$CFLAGS; CFLAGS="$CFLAGS -pipe"
4078	    cat >conftest.$ac_ext <<_ACEOF
4079/* confdefs.h.  */
4080_ACEOF
4081cat confdefs.h >>conftest.$ac_ext
4082cat >>conftest.$ac_ext <<_ACEOF
4083/* end confdefs.h.  */
4084
4085int
4086main ()
4087{
4088
4089  ;
4090  return 0;
4091}
4092_ACEOF
4093rm -f conftest.$ac_objext
4094if { (ac_try="$ac_compile"
4095case "(($ac_try" in
4096  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4097  *) ac_try_echo=$ac_try;;
4098esac
4099eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4100  (eval "$ac_compile") 2>conftest.er1
4101  ac_status=$?
4102  grep -v '^ *+' conftest.er1 >conftest.err
4103  rm -f conftest.er1
4104  cat conftest.err >&5
4105  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4106  (exit $ac_status); } && {
4107	 test -z "$ac_c_werror_flag" ||
4108	 test ! -s conftest.err
4109       } && test -s conftest.$ac_objext; then
4110  tcl_cv_cc_pipe=yes
4111else
4112  echo "$as_me: failed program was:" >&5
4113sed 's/^/| /' conftest.$ac_ext >&5
4114
4115	tcl_cv_cc_pipe=no
4116fi
4117
4118rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4119	    CFLAGS=$hold_cflags
4120fi
4121{ echo "$as_me:$LINENO: result: $tcl_cv_cc_pipe" >&5
4122echo "${ECHO_T}$tcl_cv_cc_pipe" >&6; }
4123	if test $tcl_cv_cc_pipe = yes; then
4124	    CFLAGS="$CFLAGS -pipe"
4125	fi
4126    fi
4127
4128    #--------------------------------------------------------------------
4129    # Common compiler flag setup
4130    #--------------------------------------------------------------------
4131
4132    { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4133echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4134if test "${ac_cv_c_bigendian+set}" = set; then
4135  echo $ECHO_N "(cached) $ECHO_C" >&6
4136else
4137  # See if sys/param.h defines the BYTE_ORDER macro.
4138cat >conftest.$ac_ext <<_ACEOF
4139/* confdefs.h.  */
4140_ACEOF
4141cat confdefs.h >>conftest.$ac_ext
4142cat >>conftest.$ac_ext <<_ACEOF
4143/* end confdefs.h.  */
4144#include <sys/types.h>
4145#include <sys/param.h>
4146
4147int
4148main ()
4149{
4150#if  ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
4151	&& BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
4152 bogus endian macros
4153#endif
4154
4155  ;
4156  return 0;
4157}
4158_ACEOF
4159rm -f conftest.$ac_objext
4160if { (ac_try="$ac_compile"
4161case "(($ac_try" in
4162  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4163  *) ac_try_echo=$ac_try;;
4164esac
4165eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4166  (eval "$ac_compile") 2>conftest.er1
4167  ac_status=$?
4168  grep -v '^ *+' conftest.er1 >conftest.err
4169  rm -f conftest.er1
4170  cat conftest.err >&5
4171  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4172  (exit $ac_status); } && {
4173	 test -z "$ac_c_werror_flag" ||
4174	 test ! -s conftest.err
4175       } && test -s conftest.$ac_objext; then
4176  # It does; now see whether it defined to BIG_ENDIAN or not.
4177cat >conftest.$ac_ext <<_ACEOF
4178/* confdefs.h.  */
4179_ACEOF
4180cat confdefs.h >>conftest.$ac_ext
4181cat >>conftest.$ac_ext <<_ACEOF
4182/* end confdefs.h.  */
4183#include <sys/types.h>
4184#include <sys/param.h>
4185
4186int
4187main ()
4188{
4189#if BYTE_ORDER != BIG_ENDIAN
4190 not big endian
4191#endif
4192
4193  ;
4194  return 0;
4195}
4196_ACEOF
4197rm -f conftest.$ac_objext
4198if { (ac_try="$ac_compile"
4199case "(($ac_try" in
4200  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4201  *) ac_try_echo=$ac_try;;
4202esac
4203eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4204  (eval "$ac_compile") 2>conftest.er1
4205  ac_status=$?
4206  grep -v '^ *+' conftest.er1 >conftest.err
4207  rm -f conftest.er1
4208  cat conftest.err >&5
4209  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4210  (exit $ac_status); } && {
4211	 test -z "$ac_c_werror_flag" ||
4212	 test ! -s conftest.err
4213       } && test -s conftest.$ac_objext; then
4214  ac_cv_c_bigendian=yes
4215else
4216  echo "$as_me: failed program was:" >&5
4217sed 's/^/| /' conftest.$ac_ext >&5
4218
4219	ac_cv_c_bigendian=no
4220fi
4221
4222rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4223else
4224  echo "$as_me: failed program was:" >&5
4225sed 's/^/| /' conftest.$ac_ext >&5
4226
4227	# It does not; compile a test program.
4228if test "$cross_compiling" = yes; then
4229  # try to guess the endianness by grepping values into an object file
4230  ac_cv_c_bigendian=unknown
4231  cat >conftest.$ac_ext <<_ACEOF
4232/* confdefs.h.  */
4233_ACEOF
4234cat confdefs.h >>conftest.$ac_ext
4235cat >>conftest.$ac_ext <<_ACEOF
4236/* end confdefs.h.  */
4237short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4238short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4239void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4240short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4241short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4242void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4243int
4244main ()
4245{
4246 _ascii (); _ebcdic ();
4247  ;
4248  return 0;
4249}
4250_ACEOF
4251rm -f conftest.$ac_objext
4252if { (ac_try="$ac_compile"
4253case "(($ac_try" in
4254  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4255  *) ac_try_echo=$ac_try;;
4256esac
4257eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4258  (eval "$ac_compile") 2>conftest.er1
4259  ac_status=$?
4260  grep -v '^ *+' conftest.er1 >conftest.err
4261  rm -f conftest.er1
4262  cat conftest.err >&5
4263  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4264  (exit $ac_status); } && {
4265	 test -z "$ac_c_werror_flag" ||
4266	 test ! -s conftest.err
4267       } && test -s conftest.$ac_objext; then
4268  if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4269  ac_cv_c_bigendian=yes
4270fi
4271if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4272  if test "$ac_cv_c_bigendian" = unknown; then
4273    ac_cv_c_bigendian=no
4274  else
4275    # finding both strings is unlikely to happen, but who knows?
4276    ac_cv_c_bigendian=unknown
4277  fi
4278fi
4279else
4280  echo "$as_me: failed program was:" >&5
4281sed 's/^/| /' conftest.$ac_ext >&5
4282
4283
4284fi
4285
4286rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4287else
4288  cat >conftest.$ac_ext <<_ACEOF
4289/* confdefs.h.  */
4290_ACEOF
4291cat confdefs.h >>conftest.$ac_ext
4292cat >>conftest.$ac_ext <<_ACEOF
4293/* end confdefs.h.  */
4294$ac_includes_default
4295int
4296main ()
4297{
4298
4299  /* Are we little or big endian?  From Harbison&Steele.  */
4300  union
4301  {
4302    long int l;
4303    char c[sizeof (long int)];
4304  } u;
4305  u.l = 1;
4306  return u.c[sizeof (long int) - 1] == 1;
4307
4308  ;
4309  return 0;
4310}
4311_ACEOF
4312rm -f conftest$ac_exeext
4313if { (ac_try="$ac_link"
4314case "(($ac_try" in
4315  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4316  *) ac_try_echo=$ac_try;;
4317esac
4318eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4319  (eval "$ac_link") 2>&5
4320  ac_status=$?
4321  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4322  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4323  { (case "(($ac_try" in
4324  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4325  *) ac_try_echo=$ac_try;;
4326esac
4327eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4328  (eval "$ac_try") 2>&5
4329  ac_status=$?
4330  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4331  (exit $ac_status); }; }; then
4332  ac_cv_c_bigendian=no
4333else
4334  echo "$as_me: program exited with status $ac_status" >&5
4335echo "$as_me: failed program was:" >&5
4336sed 's/^/| /' conftest.$ac_ext >&5
4337
4338( exit $ac_status )
4339ac_cv_c_bigendian=yes
4340fi
4341rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4342fi
4343
4344
4345fi
4346
4347rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4348fi
4349{ echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4350echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4351case $ac_cv_c_bigendian in
4352  yes)
4353
4354cat >>confdefs.h <<\_ACEOF
4355#define WORDS_BIGENDIAN 1
4356_ACEOF
4357 ;;
4358  no)
4359     ;;
4360  *)
4361    { { echo "$as_me:$LINENO: error: unknown endianness
4362presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4363echo "$as_me: error: unknown endianness
4364presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4365   { (exit 1); exit 1; }; } ;;
4366esac
4367
4368    if test "${TEA_PLATFORM}" = "unix" ; then
4369
4370    #--------------------------------------------------------------------
4371    # On a few very rare systems, all of the libm.a stuff is
4372    # already in libc.a.  Set compiler flags accordingly.
4373    # Also, Linux requires the "ieee" library for math to work
4374    # right (and it must appear before "-lm").
4375    #--------------------------------------------------------------------
4376
4377    { echo "$as_me:$LINENO: checking for sin" >&5
4378echo $ECHO_N "checking for sin... $ECHO_C" >&6; }
4379if test "${ac_cv_func_sin+set}" = set; then
4380  echo $ECHO_N "(cached) $ECHO_C" >&6
4381else
4382  cat >conftest.$ac_ext <<_ACEOF
4383/* confdefs.h.  */
4384_ACEOF
4385cat confdefs.h >>conftest.$ac_ext
4386cat >>conftest.$ac_ext <<_ACEOF
4387/* end confdefs.h.  */
4388/* Define sin to an innocuous variant, in case <limits.h> declares sin.
4389   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
4390#define sin innocuous_sin
4391
4392/* System header to define __stub macros and hopefully few prototypes,
4393    which can conflict with char sin (); below.
4394    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4395    <limits.h> exists even on freestanding compilers.  */
4396
4397#ifdef __STDC__
4398# include <limits.h>
4399#else
4400# include <assert.h>
4401#endif
4402
4403#undef sin
4404
4405/* Override any GCC internal prototype to avoid an error.
4406   Use char because int might match the return type of a GCC
4407   builtin and then its argument prototype would still apply.  */
4408#ifdef __cplusplus
4409extern "C"
4410#endif
4411char sin ();
4412/* The GNU C library defines this for functions which it implements
4413    to always fail with ENOSYS.  Some functions are actually named
4414    something starting with __ and the normal name is an alias.  */
4415#if defined __stub_sin || defined __stub___sin
4416choke me
4417#endif
4418
4419int
4420main ()
4421{
4422return sin ();
4423  ;
4424  return 0;
4425}
4426_ACEOF
4427rm -f conftest.$ac_objext conftest$ac_exeext
4428if { (ac_try="$ac_link"
4429case "(($ac_try" in
4430  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4431  *) ac_try_echo=$ac_try;;
4432esac
4433eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4434  (eval "$ac_link") 2>conftest.er1
4435  ac_status=$?
4436  grep -v '^ *+' conftest.er1 >conftest.err
4437  rm -f conftest.er1
4438  cat conftest.err >&5
4439  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4440  (exit $ac_status); } && {
4441	 test -z "$ac_c_werror_flag" ||
4442	 test ! -s conftest.err
4443       } && test -s conftest$ac_exeext &&
4444       $as_test_x conftest$ac_exeext; then
4445  ac_cv_func_sin=yes
4446else
4447  echo "$as_me: failed program was:" >&5
4448sed 's/^/| /' conftest.$ac_ext >&5
4449
4450	ac_cv_func_sin=no
4451fi
4452
4453rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4454      conftest$ac_exeext conftest.$ac_ext
4455fi
4456{ echo "$as_me:$LINENO: result: $ac_cv_func_sin" >&5
4457echo "${ECHO_T}$ac_cv_func_sin" >&6; }
4458if test $ac_cv_func_sin = yes; then
4459  MATH_LIBS=""
4460else
4461  MATH_LIBS="-lm"
4462fi
4463
4464    { echo "$as_me:$LINENO: checking for main in -lieee" >&5
4465echo $ECHO_N "checking for main in -lieee... $ECHO_C" >&6; }
4466if test "${ac_cv_lib_ieee_main+set}" = set; then
4467  echo $ECHO_N "(cached) $ECHO_C" >&6
4468else
4469  ac_check_lib_save_LIBS=$LIBS
4470LIBS="-lieee  $LIBS"
4471cat >conftest.$ac_ext <<_ACEOF
4472/* confdefs.h.  */
4473_ACEOF
4474cat confdefs.h >>conftest.$ac_ext
4475cat >>conftest.$ac_ext <<_ACEOF
4476/* end confdefs.h.  */
4477
4478
4479int
4480main ()
4481{
4482return main ();
4483  ;
4484  return 0;
4485}
4486_ACEOF
4487rm -f conftest.$ac_objext conftest$ac_exeext
4488if { (ac_try="$ac_link"
4489case "(($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_link") 2>conftest.er1
4495  ac_status=$?
4496  grep -v '^ *+' conftest.er1 >conftest.err
4497  rm -f conftest.er1
4498  cat conftest.err >&5
4499  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4500  (exit $ac_status); } && {
4501	 test -z "$ac_c_werror_flag" ||
4502	 test ! -s conftest.err
4503       } && test -s conftest$ac_exeext &&
4504       $as_test_x conftest$ac_exeext; then
4505  ac_cv_lib_ieee_main=yes
4506else
4507  echo "$as_me: failed program was:" >&5
4508sed 's/^/| /' conftest.$ac_ext >&5
4509
4510	ac_cv_lib_ieee_main=no
4511fi
4512
4513rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4514      conftest$ac_exeext conftest.$ac_ext
4515LIBS=$ac_check_lib_save_LIBS
4516fi
4517{ echo "$as_me:$LINENO: result: $ac_cv_lib_ieee_main" >&5
4518echo "${ECHO_T}$ac_cv_lib_ieee_main" >&6; }
4519if test $ac_cv_lib_ieee_main = yes; then
4520  MATH_LIBS="-lieee $MATH_LIBS"
4521fi
4522
4523
4524    #--------------------------------------------------------------------
4525    # Interactive UNIX requires -linet instead of -lsocket, plus it
4526    # needs net/errno.h to define the socket-related error codes.
4527    #--------------------------------------------------------------------
4528
4529    { echo "$as_me:$LINENO: checking for main in -linet" >&5
4530echo $ECHO_N "checking for main in -linet... $ECHO_C" >&6; }
4531if test "${ac_cv_lib_inet_main+set}" = set; then
4532  echo $ECHO_N "(cached) $ECHO_C" >&6
4533else
4534  ac_check_lib_save_LIBS=$LIBS
4535LIBS="-linet  $LIBS"
4536cat >conftest.$ac_ext <<_ACEOF
4537/* confdefs.h.  */
4538_ACEOF
4539cat confdefs.h >>conftest.$ac_ext
4540cat >>conftest.$ac_ext <<_ACEOF
4541/* end confdefs.h.  */
4542
4543
4544int
4545main ()
4546{
4547return main ();
4548  ;
4549  return 0;
4550}
4551_ACEOF
4552rm -f conftest.$ac_objext conftest$ac_exeext
4553if { (ac_try="$ac_link"
4554case "(($ac_try" in
4555  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4556  *) ac_try_echo=$ac_try;;
4557esac
4558eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4559  (eval "$ac_link") 2>conftest.er1
4560  ac_status=$?
4561  grep -v '^ *+' conftest.er1 >conftest.err
4562  rm -f conftest.er1
4563  cat conftest.err >&5
4564  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4565  (exit $ac_status); } && {
4566	 test -z "$ac_c_werror_flag" ||
4567	 test ! -s conftest.err
4568       } && test -s conftest$ac_exeext &&
4569       $as_test_x conftest$ac_exeext; then
4570  ac_cv_lib_inet_main=yes
4571else
4572  echo "$as_me: failed program was:" >&5
4573sed 's/^/| /' conftest.$ac_ext >&5
4574
4575	ac_cv_lib_inet_main=no
4576fi
4577
4578rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4579      conftest$ac_exeext conftest.$ac_ext
4580LIBS=$ac_check_lib_save_LIBS
4581fi
4582{ echo "$as_me:$LINENO: result: $ac_cv_lib_inet_main" >&5
4583echo "${ECHO_T}$ac_cv_lib_inet_main" >&6; }
4584if test $ac_cv_lib_inet_main = yes; then
4585  LIBS="$LIBS -linet"
4586fi
4587
4588    if test "${ac_cv_header_net_errno_h+set}" = set; then
4589  { echo "$as_me:$LINENO: checking for net/errno.h" >&5
4590echo $ECHO_N "checking for net/errno.h... $ECHO_C" >&6; }
4591if test "${ac_cv_header_net_errno_h+set}" = set; then
4592  echo $ECHO_N "(cached) $ECHO_C" >&6
4593fi
4594{ echo "$as_me:$LINENO: result: $ac_cv_header_net_errno_h" >&5
4595echo "${ECHO_T}$ac_cv_header_net_errno_h" >&6; }
4596else
4597  # Is the header compilable?
4598{ echo "$as_me:$LINENO: checking net/errno.h usability" >&5
4599echo $ECHO_N "checking net/errno.h usability... $ECHO_C" >&6; }
4600cat >conftest.$ac_ext <<_ACEOF
4601/* confdefs.h.  */
4602_ACEOF
4603cat confdefs.h >>conftest.$ac_ext
4604cat >>conftest.$ac_ext <<_ACEOF
4605/* end confdefs.h.  */
4606$ac_includes_default
4607#include <net/errno.h>
4608_ACEOF
4609rm -f conftest.$ac_objext
4610if { (ac_try="$ac_compile"
4611case "(($ac_try" in
4612  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4613  *) ac_try_echo=$ac_try;;
4614esac
4615eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4616  (eval "$ac_compile") 2>conftest.er1
4617  ac_status=$?
4618  grep -v '^ *+' conftest.er1 >conftest.err
4619  rm -f conftest.er1
4620  cat conftest.err >&5
4621  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4622  (exit $ac_status); } && {
4623	 test -z "$ac_c_werror_flag" ||
4624	 test ! -s conftest.err
4625       } && test -s conftest.$ac_objext; then
4626  ac_header_compiler=yes
4627else
4628  echo "$as_me: failed program was:" >&5
4629sed 's/^/| /' conftest.$ac_ext >&5
4630
4631	ac_header_compiler=no
4632fi
4633
4634rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4635{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4636echo "${ECHO_T}$ac_header_compiler" >&6; }
4637
4638# Is the header present?
4639{ echo "$as_me:$LINENO: checking net/errno.h presence" >&5
4640echo $ECHO_N "checking net/errno.h presence... $ECHO_C" >&6; }
4641cat >conftest.$ac_ext <<_ACEOF
4642/* confdefs.h.  */
4643_ACEOF
4644cat confdefs.h >>conftest.$ac_ext
4645cat >>conftest.$ac_ext <<_ACEOF
4646/* end confdefs.h.  */
4647#include <net/errno.h>
4648_ACEOF
4649if { (ac_try="$ac_cpp conftest.$ac_ext"
4650case "(($ac_try" in
4651  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4652  *) ac_try_echo=$ac_try;;
4653esac
4654eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4655  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4656  ac_status=$?
4657  grep -v '^ *+' conftest.er1 >conftest.err
4658  rm -f conftest.er1
4659  cat conftest.err >&5
4660  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4661  (exit $ac_status); } >/dev/null && {
4662	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4663	 test ! -s conftest.err
4664       }; then
4665  ac_header_preproc=yes
4666else
4667  echo "$as_me: failed program was:" >&5
4668sed 's/^/| /' conftest.$ac_ext >&5
4669
4670  ac_header_preproc=no
4671fi
4672
4673rm -f conftest.err conftest.$ac_ext
4674{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4675echo "${ECHO_T}$ac_header_preproc" >&6; }
4676
4677# So?  What about this header?
4678case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4679  yes:no: )
4680    { echo "$as_me:$LINENO: WARNING: net/errno.h: accepted by the compiler, rejected by the preprocessor!" >&5
4681echo "$as_me: WARNING: net/errno.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4682    { echo "$as_me:$LINENO: WARNING: net/errno.h: proceeding with the compiler's result" >&5
4683echo "$as_me: WARNING: net/errno.h: proceeding with the compiler's result" >&2;}
4684    ac_header_preproc=yes
4685    ;;
4686  no:yes:* )
4687    { echo "$as_me:$LINENO: WARNING: net/errno.h: present but cannot be compiled" >&5
4688echo "$as_me: WARNING: net/errno.h: present but cannot be compiled" >&2;}
4689    { echo "$as_me:$LINENO: WARNING: net/errno.h:     check for missing prerequisite headers?" >&5
4690echo "$as_me: WARNING: net/errno.h:     check for missing prerequisite headers?" >&2;}
4691    { echo "$as_me:$LINENO: WARNING: net/errno.h: see the Autoconf documentation" >&5
4692echo "$as_me: WARNING: net/errno.h: see the Autoconf documentation" >&2;}
4693    { echo "$as_me:$LINENO: WARNING: net/errno.h:     section \"Present But Cannot Be Compiled\"" >&5
4694echo "$as_me: WARNING: net/errno.h:     section \"Present But Cannot Be Compiled\"" >&2;}
4695    { echo "$as_me:$LINENO: WARNING: net/errno.h: proceeding with the preprocessor's result" >&5
4696echo "$as_me: WARNING: net/errno.h: proceeding with the preprocessor's result" >&2;}
4697    { echo "$as_me:$LINENO: WARNING: net/errno.h: in the future, the compiler will take precedence" >&5
4698echo "$as_me: WARNING: net/errno.h: in the future, the compiler will take precedence" >&2;}
4699
4700    ;;
4701esac
4702{ echo "$as_me:$LINENO: checking for net/errno.h" >&5
4703echo $ECHO_N "checking for net/errno.h... $ECHO_C" >&6; }
4704if test "${ac_cv_header_net_errno_h+set}" = set; then
4705  echo $ECHO_N "(cached) $ECHO_C" >&6
4706else
4707  ac_cv_header_net_errno_h=$ac_header_preproc
4708fi
4709{ echo "$as_me:$LINENO: result: $ac_cv_header_net_errno_h" >&5
4710echo "${ECHO_T}$ac_cv_header_net_errno_h" >&6; }
4711
4712fi
4713if test $ac_cv_header_net_errno_h = yes; then
4714
4715
4716cat >>confdefs.h <<\_ACEOF
4717#define HAVE_NET_ERRNO_H 1
4718_ACEOF
4719
4720fi
4721
4722
4723
4724    #--------------------------------------------------------------------
4725    #	Check for the existence of the -lsocket and -lnsl libraries.
4726    #	The order here is important, so that they end up in the right
4727    #	order in the command line generated by make.  Here are some
4728    #	special considerations:
4729    #	1. Use "connect" and "accept" to check for -lsocket, and
4730    #	   "gethostbyname" to check for -lnsl.
4731    #	2. Use each function name only once:  can't redo a check because
4732    #	   autoconf caches the results of the last check and won't redo it.
4733    #	3. Use -lnsl and -lsocket only if they supply procedures that
4734    #	   aren't already present in the normal libraries.  This is because
4735    #	   IRIX 5.2 has libraries, but they aren't needed and they're
4736    #	   bogus:  they goof up name resolution if used.
4737    #	4. On some SVR4 systems, can't use -lsocket without -lnsl too.
4738    #	   To get around this problem, check for both libraries together
4739    #	   if -lsocket doesn't work by itself.
4740    #--------------------------------------------------------------------
4741
4742    tcl_checkBoth=0
4743    { echo "$as_me:$LINENO: checking for connect" >&5
4744echo $ECHO_N "checking for connect... $ECHO_C" >&6; }
4745if test "${ac_cv_func_connect+set}" = set; then
4746  echo $ECHO_N "(cached) $ECHO_C" >&6
4747else
4748  cat >conftest.$ac_ext <<_ACEOF
4749/* confdefs.h.  */
4750_ACEOF
4751cat confdefs.h >>conftest.$ac_ext
4752cat >>conftest.$ac_ext <<_ACEOF
4753/* end confdefs.h.  */
4754/* Define connect to an innocuous variant, in case <limits.h> declares connect.
4755   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
4756#define connect innocuous_connect
4757
4758/* System header to define __stub macros and hopefully few prototypes,
4759    which can conflict with char connect (); below.
4760    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4761    <limits.h> exists even on freestanding compilers.  */
4762
4763#ifdef __STDC__
4764# include <limits.h>
4765#else
4766# include <assert.h>
4767#endif
4768
4769#undef connect
4770
4771/* Override any GCC internal prototype to avoid an error.
4772   Use char because int might match the return type of a GCC
4773   builtin and then its argument prototype would still apply.  */
4774#ifdef __cplusplus
4775extern "C"
4776#endif
4777char connect ();
4778/* The GNU C library defines this for functions which it implements
4779    to always fail with ENOSYS.  Some functions are actually named
4780    something starting with __ and the normal name is an alias.  */
4781#if defined __stub_connect || defined __stub___connect
4782choke me
4783#endif
4784
4785int
4786main ()
4787{
4788return connect ();
4789  ;
4790  return 0;
4791}
4792_ACEOF
4793rm -f conftest.$ac_objext conftest$ac_exeext
4794if { (ac_try="$ac_link"
4795case "(($ac_try" in
4796  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4797  *) ac_try_echo=$ac_try;;
4798esac
4799eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4800  (eval "$ac_link") 2>conftest.er1
4801  ac_status=$?
4802  grep -v '^ *+' conftest.er1 >conftest.err
4803  rm -f conftest.er1
4804  cat conftest.err >&5
4805  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4806  (exit $ac_status); } && {
4807	 test -z "$ac_c_werror_flag" ||
4808	 test ! -s conftest.err
4809       } && test -s conftest$ac_exeext &&
4810       $as_test_x conftest$ac_exeext; then
4811  ac_cv_func_connect=yes
4812else
4813  echo "$as_me: failed program was:" >&5
4814sed 's/^/| /' conftest.$ac_ext >&5
4815
4816	ac_cv_func_connect=no
4817fi
4818
4819rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4820      conftest$ac_exeext conftest.$ac_ext
4821fi
4822{ echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
4823echo "${ECHO_T}$ac_cv_func_connect" >&6; }
4824if test $ac_cv_func_connect = yes; then
4825  tcl_checkSocket=0
4826else
4827  tcl_checkSocket=1
4828fi
4829
4830    if test "$tcl_checkSocket" = 1; then
4831	{ echo "$as_me:$LINENO: checking for setsockopt" >&5
4832echo $ECHO_N "checking for setsockopt... $ECHO_C" >&6; }
4833if test "${ac_cv_func_setsockopt+set}" = set; then
4834  echo $ECHO_N "(cached) $ECHO_C" >&6
4835else
4836  cat >conftest.$ac_ext <<_ACEOF
4837/* confdefs.h.  */
4838_ACEOF
4839cat confdefs.h >>conftest.$ac_ext
4840cat >>conftest.$ac_ext <<_ACEOF
4841/* end confdefs.h.  */
4842/* Define setsockopt to an innocuous variant, in case <limits.h> declares setsockopt.
4843   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
4844#define setsockopt innocuous_setsockopt
4845
4846/* System header to define __stub macros and hopefully few prototypes,
4847    which can conflict with char setsockopt (); below.
4848    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4849    <limits.h> exists even on freestanding compilers.  */
4850
4851#ifdef __STDC__
4852# include <limits.h>
4853#else
4854# include <assert.h>
4855#endif
4856
4857#undef setsockopt
4858
4859/* Override any GCC internal prototype to avoid an error.
4860   Use char because int might match the return type of a GCC
4861   builtin and then its argument prototype would still apply.  */
4862#ifdef __cplusplus
4863extern "C"
4864#endif
4865char setsockopt ();
4866/* The GNU C library defines this for functions which it implements
4867    to always fail with ENOSYS.  Some functions are actually named
4868    something starting with __ and the normal name is an alias.  */
4869#if defined __stub_setsockopt || defined __stub___setsockopt
4870choke me
4871#endif
4872
4873int
4874main ()
4875{
4876return setsockopt ();
4877  ;
4878  return 0;
4879}
4880_ACEOF
4881rm -f conftest.$ac_objext conftest$ac_exeext
4882if { (ac_try="$ac_link"
4883case "(($ac_try" in
4884  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4885  *) ac_try_echo=$ac_try;;
4886esac
4887eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4888  (eval "$ac_link") 2>conftest.er1
4889  ac_status=$?
4890  grep -v '^ *+' conftest.er1 >conftest.err
4891  rm -f conftest.er1
4892  cat conftest.err >&5
4893  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4894  (exit $ac_status); } && {
4895	 test -z "$ac_c_werror_flag" ||
4896	 test ! -s conftest.err
4897       } && test -s conftest$ac_exeext &&
4898       $as_test_x conftest$ac_exeext; then
4899  ac_cv_func_setsockopt=yes
4900else
4901  echo "$as_me: failed program was:" >&5
4902sed 's/^/| /' conftest.$ac_ext >&5
4903
4904	ac_cv_func_setsockopt=no
4905fi
4906
4907rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4908      conftest$ac_exeext conftest.$ac_ext
4909fi
4910{ echo "$as_me:$LINENO: result: $ac_cv_func_setsockopt" >&5
4911echo "${ECHO_T}$ac_cv_func_setsockopt" >&6; }
4912if test $ac_cv_func_setsockopt = yes; then
4913  :
4914else
4915  { echo "$as_me:$LINENO: checking for setsockopt in -lsocket" >&5
4916echo $ECHO_N "checking for setsockopt in -lsocket... $ECHO_C" >&6; }
4917if test "${ac_cv_lib_socket_setsockopt+set}" = set; then
4918  echo $ECHO_N "(cached) $ECHO_C" >&6
4919else
4920  ac_check_lib_save_LIBS=$LIBS
4921LIBS="-lsocket  $LIBS"
4922cat >conftest.$ac_ext <<_ACEOF
4923/* confdefs.h.  */
4924_ACEOF
4925cat confdefs.h >>conftest.$ac_ext
4926cat >>conftest.$ac_ext <<_ACEOF
4927/* end confdefs.h.  */
4928
4929/* Override any GCC internal prototype to avoid an error.
4930   Use char because int might match the return type of a GCC
4931   builtin and then its argument prototype would still apply.  */
4932#ifdef __cplusplus
4933extern "C"
4934#endif
4935char setsockopt ();
4936int
4937main ()
4938{
4939return setsockopt ();
4940  ;
4941  return 0;
4942}
4943_ACEOF
4944rm -f conftest.$ac_objext conftest$ac_exeext
4945if { (ac_try="$ac_link"
4946case "(($ac_try" in
4947  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4948  *) ac_try_echo=$ac_try;;
4949esac
4950eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4951  (eval "$ac_link") 2>conftest.er1
4952  ac_status=$?
4953  grep -v '^ *+' conftest.er1 >conftest.err
4954  rm -f conftest.er1
4955  cat conftest.err >&5
4956  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4957  (exit $ac_status); } && {
4958	 test -z "$ac_c_werror_flag" ||
4959	 test ! -s conftest.err
4960       } && test -s conftest$ac_exeext &&
4961       $as_test_x conftest$ac_exeext; then
4962  ac_cv_lib_socket_setsockopt=yes
4963else
4964  echo "$as_me: failed program was:" >&5
4965sed 's/^/| /' conftest.$ac_ext >&5
4966
4967	ac_cv_lib_socket_setsockopt=no
4968fi
4969
4970rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4971      conftest$ac_exeext conftest.$ac_ext
4972LIBS=$ac_check_lib_save_LIBS
4973fi
4974{ echo "$as_me:$LINENO: result: $ac_cv_lib_socket_setsockopt" >&5
4975echo "${ECHO_T}$ac_cv_lib_socket_setsockopt" >&6; }
4976if test $ac_cv_lib_socket_setsockopt = yes; then
4977  LIBS="$LIBS -lsocket"
4978else
4979  tcl_checkBoth=1
4980fi
4981
4982fi
4983
4984    fi
4985    if test "$tcl_checkBoth" = 1; then
4986	tk_oldLibs=$LIBS
4987	LIBS="$LIBS -lsocket -lnsl"
4988	{ echo "$as_me:$LINENO: checking for accept" >&5
4989echo $ECHO_N "checking for accept... $ECHO_C" >&6; }
4990if test "${ac_cv_func_accept+set}" = set; then
4991  echo $ECHO_N "(cached) $ECHO_C" >&6
4992else
4993  cat >conftest.$ac_ext <<_ACEOF
4994/* confdefs.h.  */
4995_ACEOF
4996cat confdefs.h >>conftest.$ac_ext
4997cat >>conftest.$ac_ext <<_ACEOF
4998/* end confdefs.h.  */
4999/* Define accept to an innocuous variant, in case <limits.h> declares accept.
5000   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
5001#define accept innocuous_accept
5002
5003/* System header to define __stub macros and hopefully few prototypes,
5004    which can conflict with char accept (); below.
5005    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5006    <limits.h> exists even on freestanding compilers.  */
5007
5008#ifdef __STDC__
5009# include <limits.h>
5010#else
5011# include <assert.h>
5012#endif
5013
5014#undef accept
5015
5016/* Override any GCC internal prototype to avoid an error.
5017   Use char because int might match the return type of a GCC
5018   builtin and then its argument prototype would still apply.  */
5019#ifdef __cplusplus
5020extern "C"
5021#endif
5022char accept ();
5023/* The GNU C library defines this for functions which it implements
5024    to always fail with ENOSYS.  Some functions are actually named
5025    something starting with __ and the normal name is an alias.  */
5026#if defined __stub_accept || defined __stub___accept
5027choke me
5028#endif
5029
5030int
5031main ()
5032{
5033return accept ();
5034  ;
5035  return 0;
5036}
5037_ACEOF
5038rm -f conftest.$ac_objext conftest$ac_exeext
5039if { (ac_try="$ac_link"
5040case "(($ac_try" in
5041  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5042  *) ac_try_echo=$ac_try;;
5043esac
5044eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5045  (eval "$ac_link") 2>conftest.er1
5046  ac_status=$?
5047  grep -v '^ *+' conftest.er1 >conftest.err
5048  rm -f conftest.er1
5049  cat conftest.err >&5
5050  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5051  (exit $ac_status); } && {
5052	 test -z "$ac_c_werror_flag" ||
5053	 test ! -s conftest.err
5054       } && test -s conftest$ac_exeext &&
5055       $as_test_x conftest$ac_exeext; then
5056  ac_cv_func_accept=yes
5057else
5058  echo "$as_me: failed program was:" >&5
5059sed 's/^/| /' conftest.$ac_ext >&5
5060
5061	ac_cv_func_accept=no
5062fi
5063
5064rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5065      conftest$ac_exeext conftest.$ac_ext
5066fi
5067{ echo "$as_me:$LINENO: result: $ac_cv_func_accept" >&5
5068echo "${ECHO_T}$ac_cv_func_accept" >&6; }
5069if test $ac_cv_func_accept = yes; then
5070  tcl_checkNsl=0
5071else
5072  LIBS=$tk_oldLibs
5073fi
5074
5075    fi
5076    { echo "$as_me:$LINENO: checking for gethostbyname" >&5
5077echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; }
5078if test "${ac_cv_func_gethostbyname+set}" = set; then
5079  echo $ECHO_N "(cached) $ECHO_C" >&6
5080else
5081  cat >conftest.$ac_ext <<_ACEOF
5082/* confdefs.h.  */
5083_ACEOF
5084cat confdefs.h >>conftest.$ac_ext
5085cat >>conftest.$ac_ext <<_ACEOF
5086/* end confdefs.h.  */
5087/* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
5088   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
5089#define gethostbyname innocuous_gethostbyname
5090
5091/* System header to define __stub macros and hopefully few prototypes,
5092    which can conflict with char gethostbyname (); below.
5093    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5094    <limits.h> exists even on freestanding compilers.  */
5095
5096#ifdef __STDC__
5097# include <limits.h>
5098#else
5099# include <assert.h>
5100#endif
5101
5102#undef gethostbyname
5103
5104/* Override any GCC internal prototype to avoid an error.
5105   Use char because int might match the return type of a GCC
5106   builtin and then its argument prototype would still apply.  */
5107#ifdef __cplusplus
5108extern "C"
5109#endif
5110char gethostbyname ();
5111/* The GNU C library defines this for functions which it implements
5112    to always fail with ENOSYS.  Some functions are actually named
5113    something starting with __ and the normal name is an alias.  */
5114#if defined __stub_gethostbyname || defined __stub___gethostbyname
5115choke me
5116#endif
5117
5118int
5119main ()
5120{
5121return gethostbyname ();
5122  ;
5123  return 0;
5124}
5125_ACEOF
5126rm -f conftest.$ac_objext conftest$ac_exeext
5127if { (ac_try="$ac_link"
5128case "(($ac_try" in
5129  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5130  *) ac_try_echo=$ac_try;;
5131esac
5132eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5133  (eval "$ac_link") 2>conftest.er1
5134  ac_status=$?
5135  grep -v '^ *+' conftest.er1 >conftest.err
5136  rm -f conftest.er1
5137  cat conftest.err >&5
5138  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5139  (exit $ac_status); } && {
5140	 test -z "$ac_c_werror_flag" ||
5141	 test ! -s conftest.err
5142       } && test -s conftest$ac_exeext &&
5143       $as_test_x conftest$ac_exeext; then
5144  ac_cv_func_gethostbyname=yes
5145else
5146  echo "$as_me: failed program was:" >&5
5147sed 's/^/| /' conftest.$ac_ext >&5
5148
5149	ac_cv_func_gethostbyname=no
5150fi
5151
5152rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5153      conftest$ac_exeext conftest.$ac_ext
5154fi
5155{ echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
5156echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; }
5157if test $ac_cv_func_gethostbyname = yes; then
5158  :
5159else
5160  { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
5161echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
5162if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
5163  echo $ECHO_N "(cached) $ECHO_C" >&6
5164else
5165  ac_check_lib_save_LIBS=$LIBS
5166LIBS="-lnsl  $LIBS"
5167cat >conftest.$ac_ext <<_ACEOF
5168/* confdefs.h.  */
5169_ACEOF
5170cat confdefs.h >>conftest.$ac_ext
5171cat >>conftest.$ac_ext <<_ACEOF
5172/* end confdefs.h.  */
5173
5174/* Override any GCC internal prototype to avoid an error.
5175   Use char because int might match the return type of a GCC
5176   builtin and then its argument prototype would still apply.  */
5177#ifdef __cplusplus
5178extern "C"
5179#endif
5180char gethostbyname ();
5181int
5182main ()
5183{
5184return gethostbyname ();
5185  ;
5186  return 0;
5187}
5188_ACEOF
5189rm -f conftest.$ac_objext conftest$ac_exeext
5190if { (ac_try="$ac_link"
5191case "(($ac_try" in
5192  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5193  *) ac_try_echo=$ac_try;;
5194esac
5195eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5196  (eval "$ac_link") 2>conftest.er1
5197  ac_status=$?
5198  grep -v '^ *+' conftest.er1 >conftest.err
5199  rm -f conftest.er1
5200  cat conftest.err >&5
5201  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5202  (exit $ac_status); } && {
5203	 test -z "$ac_c_werror_flag" ||
5204	 test ! -s conftest.err
5205       } && test -s conftest$ac_exeext &&
5206       $as_test_x conftest$ac_exeext; then
5207  ac_cv_lib_nsl_gethostbyname=yes
5208else
5209  echo "$as_me: failed program was:" >&5
5210sed 's/^/| /' conftest.$ac_ext >&5
5211
5212	ac_cv_lib_nsl_gethostbyname=no
5213fi
5214
5215rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5216      conftest$ac_exeext conftest.$ac_ext
5217LIBS=$ac_check_lib_save_LIBS
5218fi
5219{ echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
5220echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
5221if test $ac_cv_lib_nsl_gethostbyname = yes; then
5222  LIBS="$LIBS -lnsl"
5223fi
5224
5225fi
5226
5227
5228    # TEA specific: Don't perform the eval of the libraries here because
5229    # DL_LIBS won't be set until we call TEA_CONFIG_CFLAGS
5230
5231    TCL_LIBS='${DL_LIBS} ${LIBS} ${MATH_LIBS}'
5232
5233
5234
5235
5236    { echo "$as_me:$LINENO: checking dirent.h" >&5
5237echo $ECHO_N "checking dirent.h... $ECHO_C" >&6; }
5238if test "${tcl_cv_dirent_h+set}" = set; then
5239  echo $ECHO_N "(cached) $ECHO_C" >&6
5240else
5241
5242    cat >conftest.$ac_ext <<_ACEOF
5243/* confdefs.h.  */
5244_ACEOF
5245cat confdefs.h >>conftest.$ac_ext
5246cat >>conftest.$ac_ext <<_ACEOF
5247/* end confdefs.h.  */
5248#include <sys/types.h>
5249#include <dirent.h>
5250int
5251main ()
5252{
5253
5254#ifndef _POSIX_SOURCE
5255#   ifdef __Lynx__
5256	/*
5257	 * Generate compilation error to make the test fail:  Lynx headers
5258	 * are only valid if really in the POSIX environment.
5259	 */
5260
5261	missing_procedure();
5262#   endif
5263#endif
5264DIR *d;
5265struct dirent *entryPtr;
5266char *p;
5267d = opendir("foobar");
5268entryPtr = readdir(d);
5269p = entryPtr->d_name;
5270closedir(d);
5271
5272  ;
5273  return 0;
5274}
5275_ACEOF
5276rm -f conftest.$ac_objext conftest$ac_exeext
5277if { (ac_try="$ac_link"
5278case "(($ac_try" in
5279  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5280  *) ac_try_echo=$ac_try;;
5281esac
5282eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5283  (eval "$ac_link") 2>conftest.er1
5284  ac_status=$?
5285  grep -v '^ *+' conftest.er1 >conftest.err
5286  rm -f conftest.er1
5287  cat conftest.err >&5
5288  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5289  (exit $ac_status); } && {
5290	 test -z "$ac_c_werror_flag" ||
5291	 test ! -s conftest.err
5292       } && test -s conftest$ac_exeext &&
5293       $as_test_x conftest$ac_exeext; then
5294  tcl_cv_dirent_h=yes
5295else
5296  echo "$as_me: failed program was:" >&5
5297sed 's/^/| /' conftest.$ac_ext >&5
5298
5299	tcl_cv_dirent_h=no
5300fi
5301
5302rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5303      conftest$ac_exeext conftest.$ac_ext
5304fi
5305{ echo "$as_me:$LINENO: result: $tcl_cv_dirent_h" >&5
5306echo "${ECHO_T}$tcl_cv_dirent_h" >&6; }
5307
5308    if test $tcl_cv_dirent_h = no; then
5309
5310cat >>confdefs.h <<\_ACEOF
5311#define NO_DIRENT_H 1
5312_ACEOF
5313
5314    fi
5315
5316    # TEA specific:
5317    if test "${ac_cv_header_errno_h+set}" = set; then
5318  { echo "$as_me:$LINENO: checking for errno.h" >&5
5319echo $ECHO_N "checking for errno.h... $ECHO_C" >&6; }
5320if test "${ac_cv_header_errno_h+set}" = set; then
5321  echo $ECHO_N "(cached) $ECHO_C" >&6
5322fi
5323{ echo "$as_me:$LINENO: result: $ac_cv_header_errno_h" >&5
5324echo "${ECHO_T}$ac_cv_header_errno_h" >&6; }
5325else
5326  # Is the header compilable?
5327{ echo "$as_me:$LINENO: checking errno.h usability" >&5
5328echo $ECHO_N "checking errno.h usability... $ECHO_C" >&6; }
5329cat >conftest.$ac_ext <<_ACEOF
5330/* confdefs.h.  */
5331_ACEOF
5332cat confdefs.h >>conftest.$ac_ext
5333cat >>conftest.$ac_ext <<_ACEOF
5334/* end confdefs.h.  */
5335$ac_includes_default
5336#include <errno.h>
5337_ACEOF
5338rm -f conftest.$ac_objext
5339if { (ac_try="$ac_compile"
5340case "(($ac_try" in
5341  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5342  *) ac_try_echo=$ac_try;;
5343esac
5344eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5345  (eval "$ac_compile") 2>conftest.er1
5346  ac_status=$?
5347  grep -v '^ *+' conftest.er1 >conftest.err
5348  rm -f conftest.er1
5349  cat conftest.err >&5
5350  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5351  (exit $ac_status); } && {
5352	 test -z "$ac_c_werror_flag" ||
5353	 test ! -s conftest.err
5354       } && test -s conftest.$ac_objext; then
5355  ac_header_compiler=yes
5356else
5357  echo "$as_me: failed program was:" >&5
5358sed 's/^/| /' conftest.$ac_ext >&5
5359
5360	ac_header_compiler=no
5361fi
5362
5363rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5364{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5365echo "${ECHO_T}$ac_header_compiler" >&6; }
5366
5367# Is the header present?
5368{ echo "$as_me:$LINENO: checking errno.h presence" >&5
5369echo $ECHO_N "checking errno.h presence... $ECHO_C" >&6; }
5370cat >conftest.$ac_ext <<_ACEOF
5371/* confdefs.h.  */
5372_ACEOF
5373cat confdefs.h >>conftest.$ac_ext
5374cat >>conftest.$ac_ext <<_ACEOF
5375/* end confdefs.h.  */
5376#include <errno.h>
5377_ACEOF
5378if { (ac_try="$ac_cpp conftest.$ac_ext"
5379case "(($ac_try" in
5380  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5381  *) ac_try_echo=$ac_try;;
5382esac
5383eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5384  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5385  ac_status=$?
5386  grep -v '^ *+' conftest.er1 >conftest.err
5387  rm -f conftest.er1
5388  cat conftest.err >&5
5389  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5390  (exit $ac_status); } >/dev/null && {
5391	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5392	 test ! -s conftest.err
5393       }; then
5394  ac_header_preproc=yes
5395else
5396  echo "$as_me: failed program was:" >&5
5397sed 's/^/| /' conftest.$ac_ext >&5
5398
5399  ac_header_preproc=no
5400fi
5401
5402rm -f conftest.err conftest.$ac_ext
5403{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5404echo "${ECHO_T}$ac_header_preproc" >&6; }
5405
5406# So?  What about this header?
5407case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5408  yes:no: )
5409    { echo "$as_me:$LINENO: WARNING: errno.h: accepted by the compiler, rejected by the preprocessor!" >&5
5410echo "$as_me: WARNING: errno.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5411    { echo "$as_me:$LINENO: WARNING: errno.h: proceeding with the compiler's result" >&5
5412echo "$as_me: WARNING: errno.h: proceeding with the compiler's result" >&2;}
5413    ac_header_preproc=yes
5414    ;;
5415  no:yes:* )
5416    { echo "$as_me:$LINENO: WARNING: errno.h: present but cannot be compiled" >&5
5417echo "$as_me: WARNING: errno.h: present but cannot be compiled" >&2;}
5418    { echo "$as_me:$LINENO: WARNING: errno.h:     check for missing prerequisite headers?" >&5
5419echo "$as_me: WARNING: errno.h:     check for missing prerequisite headers?" >&2;}
5420    { echo "$as_me:$LINENO: WARNING: errno.h: see the Autoconf documentation" >&5
5421echo "$as_me: WARNING: errno.h: see the Autoconf documentation" >&2;}
5422    { echo "$as_me:$LINENO: WARNING: errno.h:     section \"Present But Cannot Be Compiled\"" >&5
5423echo "$as_me: WARNING: errno.h:     section \"Present But Cannot Be Compiled\"" >&2;}
5424    { echo "$as_me:$LINENO: WARNING: errno.h: proceeding with the preprocessor's result" >&5
5425echo "$as_me: WARNING: errno.h: proceeding with the preprocessor's result" >&2;}
5426    { echo "$as_me:$LINENO: WARNING: errno.h: in the future, the compiler will take precedence" >&5
5427echo "$as_me: WARNING: errno.h: in the future, the compiler will take precedence" >&2;}
5428
5429    ;;
5430esac
5431{ echo "$as_me:$LINENO: checking for errno.h" >&5
5432echo $ECHO_N "checking for errno.h... $ECHO_C" >&6; }
5433if test "${ac_cv_header_errno_h+set}" = set; then
5434  echo $ECHO_N "(cached) $ECHO_C" >&6
5435else
5436  ac_cv_header_errno_h=$ac_header_preproc
5437fi
5438{ echo "$as_me:$LINENO: result: $ac_cv_header_errno_h" >&5
5439echo "${ECHO_T}$ac_cv_header_errno_h" >&6; }
5440
5441fi
5442if test $ac_cv_header_errno_h = yes; then
5443  :
5444else
5445
5446cat >>confdefs.h <<\_ACEOF
5447#define NO_ERRNO_H 1
5448_ACEOF
5449
5450fi
5451
5452
5453    if test "${ac_cv_header_float_h+set}" = set; then
5454  { echo "$as_me:$LINENO: checking for float.h" >&5
5455echo $ECHO_N "checking for float.h... $ECHO_C" >&6; }
5456if test "${ac_cv_header_float_h+set}" = set; then
5457  echo $ECHO_N "(cached) $ECHO_C" >&6
5458fi
5459{ echo "$as_me:$LINENO: result: $ac_cv_header_float_h" >&5
5460echo "${ECHO_T}$ac_cv_header_float_h" >&6; }
5461else
5462  # Is the header compilable?
5463{ echo "$as_me:$LINENO: checking float.h usability" >&5
5464echo $ECHO_N "checking float.h usability... $ECHO_C" >&6; }
5465cat >conftest.$ac_ext <<_ACEOF
5466/* confdefs.h.  */
5467_ACEOF
5468cat confdefs.h >>conftest.$ac_ext
5469cat >>conftest.$ac_ext <<_ACEOF
5470/* end confdefs.h.  */
5471$ac_includes_default
5472#include <float.h>
5473_ACEOF
5474rm -f conftest.$ac_objext
5475if { (ac_try="$ac_compile"
5476case "(($ac_try" in
5477  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5478  *) ac_try_echo=$ac_try;;
5479esac
5480eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5481  (eval "$ac_compile") 2>conftest.er1
5482  ac_status=$?
5483  grep -v '^ *+' conftest.er1 >conftest.err
5484  rm -f conftest.er1
5485  cat conftest.err >&5
5486  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5487  (exit $ac_status); } && {
5488	 test -z "$ac_c_werror_flag" ||
5489	 test ! -s conftest.err
5490       } && test -s conftest.$ac_objext; then
5491  ac_header_compiler=yes
5492else
5493  echo "$as_me: failed program was:" >&5
5494sed 's/^/| /' conftest.$ac_ext >&5
5495
5496	ac_header_compiler=no
5497fi
5498
5499rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5500{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5501echo "${ECHO_T}$ac_header_compiler" >&6; }
5502
5503# Is the header present?
5504{ echo "$as_me:$LINENO: checking float.h presence" >&5
5505echo $ECHO_N "checking float.h presence... $ECHO_C" >&6; }
5506cat >conftest.$ac_ext <<_ACEOF
5507/* confdefs.h.  */
5508_ACEOF
5509cat confdefs.h >>conftest.$ac_ext
5510cat >>conftest.$ac_ext <<_ACEOF
5511/* end confdefs.h.  */
5512#include <float.h>
5513_ACEOF
5514if { (ac_try="$ac_cpp conftest.$ac_ext"
5515case "(($ac_try" in
5516  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5517  *) ac_try_echo=$ac_try;;
5518esac
5519eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5520  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5521  ac_status=$?
5522  grep -v '^ *+' conftest.er1 >conftest.err
5523  rm -f conftest.er1
5524  cat conftest.err >&5
5525  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5526  (exit $ac_status); } >/dev/null && {
5527	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5528	 test ! -s conftest.err
5529       }; then
5530  ac_header_preproc=yes
5531else
5532  echo "$as_me: failed program was:" >&5
5533sed 's/^/| /' conftest.$ac_ext >&5
5534
5535  ac_header_preproc=no
5536fi
5537
5538rm -f conftest.err conftest.$ac_ext
5539{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5540echo "${ECHO_T}$ac_header_preproc" >&6; }
5541
5542# So?  What about this header?
5543case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5544  yes:no: )
5545    { echo "$as_me:$LINENO: WARNING: float.h: accepted by the compiler, rejected by the preprocessor!" >&5
5546echo "$as_me: WARNING: float.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5547    { echo "$as_me:$LINENO: WARNING: float.h: proceeding with the compiler's result" >&5
5548echo "$as_me: WARNING: float.h: proceeding with the compiler's result" >&2;}
5549    ac_header_preproc=yes
5550    ;;
5551  no:yes:* )
5552    { echo "$as_me:$LINENO: WARNING: float.h: present but cannot be compiled" >&5
5553echo "$as_me: WARNING: float.h: present but cannot be compiled" >&2;}
5554    { echo "$as_me:$LINENO: WARNING: float.h:     check for missing prerequisite headers?" >&5
5555echo "$as_me: WARNING: float.h:     check for missing prerequisite headers?" >&2;}
5556    { echo "$as_me:$LINENO: WARNING: float.h: see the Autoconf documentation" >&5
5557echo "$as_me: WARNING: float.h: see the Autoconf documentation" >&2;}
5558    { echo "$as_me:$LINENO: WARNING: float.h:     section \"Present But Cannot Be Compiled\"" >&5
5559echo "$as_me: WARNING: float.h:     section \"Present But Cannot Be Compiled\"" >&2;}
5560    { echo "$as_me:$LINENO: WARNING: float.h: proceeding with the preprocessor's result" >&5
5561echo "$as_me: WARNING: float.h: proceeding with the preprocessor's result" >&2;}
5562    { echo "$as_me:$LINENO: WARNING: float.h: in the future, the compiler will take precedence" >&5
5563echo "$as_me: WARNING: float.h: in the future, the compiler will take precedence" >&2;}
5564
5565    ;;
5566esac
5567{ echo "$as_me:$LINENO: checking for float.h" >&5
5568echo $ECHO_N "checking for float.h... $ECHO_C" >&6; }
5569if test "${ac_cv_header_float_h+set}" = set; then
5570  echo $ECHO_N "(cached) $ECHO_C" >&6
5571else
5572  ac_cv_header_float_h=$ac_header_preproc
5573fi
5574{ echo "$as_me:$LINENO: result: $ac_cv_header_float_h" >&5
5575echo "${ECHO_T}$ac_cv_header_float_h" >&6; }
5576
5577fi
5578if test $ac_cv_header_float_h = yes; then
5579  :
5580else
5581
5582cat >>confdefs.h <<\_ACEOF
5583#define NO_FLOAT_H 1
5584_ACEOF
5585
5586fi
5587
5588
5589    if test "${ac_cv_header_values_h+set}" = set; then
5590  { echo "$as_me:$LINENO: checking for values.h" >&5
5591echo $ECHO_N "checking for values.h... $ECHO_C" >&6; }
5592if test "${ac_cv_header_values_h+set}" = set; then
5593  echo $ECHO_N "(cached) $ECHO_C" >&6
5594fi
5595{ echo "$as_me:$LINENO: result: $ac_cv_header_values_h" >&5
5596echo "${ECHO_T}$ac_cv_header_values_h" >&6; }
5597else
5598  # Is the header compilable?
5599{ echo "$as_me:$LINENO: checking values.h usability" >&5
5600echo $ECHO_N "checking values.h usability... $ECHO_C" >&6; }
5601cat >conftest.$ac_ext <<_ACEOF
5602/* confdefs.h.  */
5603_ACEOF
5604cat confdefs.h >>conftest.$ac_ext
5605cat >>conftest.$ac_ext <<_ACEOF
5606/* end confdefs.h.  */
5607$ac_includes_default
5608#include <values.h>
5609_ACEOF
5610rm -f conftest.$ac_objext
5611if { (ac_try="$ac_compile"
5612case "(($ac_try" in
5613  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5614  *) ac_try_echo=$ac_try;;
5615esac
5616eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5617  (eval "$ac_compile") 2>conftest.er1
5618  ac_status=$?
5619  grep -v '^ *+' conftest.er1 >conftest.err
5620  rm -f conftest.er1
5621  cat conftest.err >&5
5622  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5623  (exit $ac_status); } && {
5624	 test -z "$ac_c_werror_flag" ||
5625	 test ! -s conftest.err
5626       } && test -s conftest.$ac_objext; then
5627  ac_header_compiler=yes
5628else
5629  echo "$as_me: failed program was:" >&5
5630sed 's/^/| /' conftest.$ac_ext >&5
5631
5632	ac_header_compiler=no
5633fi
5634
5635rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5636{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5637echo "${ECHO_T}$ac_header_compiler" >&6; }
5638
5639# Is the header present?
5640{ echo "$as_me:$LINENO: checking values.h presence" >&5
5641echo $ECHO_N "checking values.h presence... $ECHO_C" >&6; }
5642cat >conftest.$ac_ext <<_ACEOF
5643/* confdefs.h.  */
5644_ACEOF
5645cat confdefs.h >>conftest.$ac_ext
5646cat >>conftest.$ac_ext <<_ACEOF
5647/* end confdefs.h.  */
5648#include <values.h>
5649_ACEOF
5650if { (ac_try="$ac_cpp conftest.$ac_ext"
5651case "(($ac_try" in
5652  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5653  *) ac_try_echo=$ac_try;;
5654esac
5655eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5656  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5657  ac_status=$?
5658  grep -v '^ *+' conftest.er1 >conftest.err
5659  rm -f conftest.er1
5660  cat conftest.err >&5
5661  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5662  (exit $ac_status); } >/dev/null && {
5663	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5664	 test ! -s conftest.err
5665       }; then
5666  ac_header_preproc=yes
5667else
5668  echo "$as_me: failed program was:" >&5
5669sed 's/^/| /' conftest.$ac_ext >&5
5670
5671  ac_header_preproc=no
5672fi
5673
5674rm -f conftest.err conftest.$ac_ext
5675{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5676echo "${ECHO_T}$ac_header_preproc" >&6; }
5677
5678# So?  What about this header?
5679case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5680  yes:no: )
5681    { echo "$as_me:$LINENO: WARNING: values.h: accepted by the compiler, rejected by the preprocessor!" >&5
5682echo "$as_me: WARNING: values.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5683    { echo "$as_me:$LINENO: WARNING: values.h: proceeding with the compiler's result" >&5
5684echo "$as_me: WARNING: values.h: proceeding with the compiler's result" >&2;}
5685    ac_header_preproc=yes
5686    ;;
5687  no:yes:* )
5688    { echo "$as_me:$LINENO: WARNING: values.h: present but cannot be compiled" >&5
5689echo "$as_me: WARNING: values.h: present but cannot be compiled" >&2;}
5690    { echo "$as_me:$LINENO: WARNING: values.h:     check for missing prerequisite headers?" >&5
5691echo "$as_me: WARNING: values.h:     check for missing prerequisite headers?" >&2;}
5692    { echo "$as_me:$LINENO: WARNING: values.h: see the Autoconf documentation" >&5
5693echo "$as_me: WARNING: values.h: see the Autoconf documentation" >&2;}
5694    { echo "$as_me:$LINENO: WARNING: values.h:     section \"Present But Cannot Be Compiled\"" >&5
5695echo "$as_me: WARNING: values.h:     section \"Present But Cannot Be Compiled\"" >&2;}
5696    { echo "$as_me:$LINENO: WARNING: values.h: proceeding with the preprocessor's result" >&5
5697echo "$as_me: WARNING: values.h: proceeding with the preprocessor's result" >&2;}
5698    { echo "$as_me:$LINENO: WARNING: values.h: in the future, the compiler will take precedence" >&5
5699echo "$as_me: WARNING: values.h: in the future, the compiler will take precedence" >&2;}
5700
5701    ;;
5702esac
5703{ echo "$as_me:$LINENO: checking for values.h" >&5
5704echo $ECHO_N "checking for values.h... $ECHO_C" >&6; }
5705if test "${ac_cv_header_values_h+set}" = set; then
5706  echo $ECHO_N "(cached) $ECHO_C" >&6
5707else
5708  ac_cv_header_values_h=$ac_header_preproc
5709fi
5710{ echo "$as_me:$LINENO: result: $ac_cv_header_values_h" >&5
5711echo "${ECHO_T}$ac_cv_header_values_h" >&6; }
5712
5713fi
5714if test $ac_cv_header_values_h = yes; then
5715  :
5716else
5717
5718cat >>confdefs.h <<\_ACEOF
5719#define NO_VALUES_H 1
5720_ACEOF
5721
5722fi
5723
5724
5725    if test "${ac_cv_header_limits_h+set}" = set; then
5726  { echo "$as_me:$LINENO: checking for limits.h" >&5
5727echo $ECHO_N "checking for limits.h... $ECHO_C" >&6; }
5728if test "${ac_cv_header_limits_h+set}" = set; then
5729  echo $ECHO_N "(cached) $ECHO_C" >&6
5730fi
5731{ echo "$as_me:$LINENO: result: $ac_cv_header_limits_h" >&5
5732echo "${ECHO_T}$ac_cv_header_limits_h" >&6; }
5733else
5734  # Is the header compilable?
5735{ echo "$as_me:$LINENO: checking limits.h usability" >&5
5736echo $ECHO_N "checking limits.h usability... $ECHO_C" >&6; }
5737cat >conftest.$ac_ext <<_ACEOF
5738/* confdefs.h.  */
5739_ACEOF
5740cat confdefs.h >>conftest.$ac_ext
5741cat >>conftest.$ac_ext <<_ACEOF
5742/* end confdefs.h.  */
5743$ac_includes_default
5744#include <limits.h>
5745_ACEOF
5746rm -f conftest.$ac_objext
5747if { (ac_try="$ac_compile"
5748case "(($ac_try" in
5749  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5750  *) ac_try_echo=$ac_try;;
5751esac
5752eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5753  (eval "$ac_compile") 2>conftest.er1
5754  ac_status=$?
5755  grep -v '^ *+' conftest.er1 >conftest.err
5756  rm -f conftest.er1
5757  cat conftest.err >&5
5758  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5759  (exit $ac_status); } && {
5760	 test -z "$ac_c_werror_flag" ||
5761	 test ! -s conftest.err
5762       } && test -s conftest.$ac_objext; then
5763  ac_header_compiler=yes
5764else
5765  echo "$as_me: failed program was:" >&5
5766sed 's/^/| /' conftest.$ac_ext >&5
5767
5768	ac_header_compiler=no
5769fi
5770
5771rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5772{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5773echo "${ECHO_T}$ac_header_compiler" >&6; }
5774
5775# Is the header present?
5776{ echo "$as_me:$LINENO: checking limits.h presence" >&5
5777echo $ECHO_N "checking limits.h presence... $ECHO_C" >&6; }
5778cat >conftest.$ac_ext <<_ACEOF
5779/* confdefs.h.  */
5780_ACEOF
5781cat confdefs.h >>conftest.$ac_ext
5782cat >>conftest.$ac_ext <<_ACEOF
5783/* end confdefs.h.  */
5784#include <limits.h>
5785_ACEOF
5786if { (ac_try="$ac_cpp conftest.$ac_ext"
5787case "(($ac_try" in
5788  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5789  *) ac_try_echo=$ac_try;;
5790esac
5791eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5792  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5793  ac_status=$?
5794  grep -v '^ *+' conftest.er1 >conftest.err
5795  rm -f conftest.er1
5796  cat conftest.err >&5
5797  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5798  (exit $ac_status); } >/dev/null && {
5799	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5800	 test ! -s conftest.err
5801       }; then
5802  ac_header_preproc=yes
5803else
5804  echo "$as_me: failed program was:" >&5
5805sed 's/^/| /' conftest.$ac_ext >&5
5806
5807  ac_header_preproc=no
5808fi
5809
5810rm -f conftest.err conftest.$ac_ext
5811{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5812echo "${ECHO_T}$ac_header_preproc" >&6; }
5813
5814# So?  What about this header?
5815case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5816  yes:no: )
5817    { echo "$as_me:$LINENO: WARNING: limits.h: accepted by the compiler, rejected by the preprocessor!" >&5
5818echo "$as_me: WARNING: limits.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5819    { echo "$as_me:$LINENO: WARNING: limits.h: proceeding with the compiler's result" >&5
5820echo "$as_me: WARNING: limits.h: proceeding with the compiler's result" >&2;}
5821    ac_header_preproc=yes
5822    ;;
5823  no:yes:* )
5824    { echo "$as_me:$LINENO: WARNING: limits.h: present but cannot be compiled" >&5
5825echo "$as_me: WARNING: limits.h: present but cannot be compiled" >&2;}
5826    { echo "$as_me:$LINENO: WARNING: limits.h:     check for missing prerequisite headers?" >&5
5827echo "$as_me: WARNING: limits.h:     check for missing prerequisite headers?" >&2;}
5828    { echo "$as_me:$LINENO: WARNING: limits.h: see the Autoconf documentation" >&5
5829echo "$as_me: WARNING: limits.h: see the Autoconf documentation" >&2;}
5830    { echo "$as_me:$LINENO: WARNING: limits.h:     section \"Present But Cannot Be Compiled\"" >&5
5831echo "$as_me: WARNING: limits.h:     section \"Present But Cannot Be Compiled\"" >&2;}
5832    { echo "$as_me:$LINENO: WARNING: limits.h: proceeding with the preprocessor's result" >&5
5833echo "$as_me: WARNING: limits.h: proceeding with the preprocessor's result" >&2;}
5834    { echo "$as_me:$LINENO: WARNING: limits.h: in the future, the compiler will take precedence" >&5
5835echo "$as_me: WARNING: limits.h: in the future, the compiler will take precedence" >&2;}
5836
5837    ;;
5838esac
5839{ echo "$as_me:$LINENO: checking for limits.h" >&5
5840echo $ECHO_N "checking for limits.h... $ECHO_C" >&6; }
5841if test "${ac_cv_header_limits_h+set}" = set; then
5842  echo $ECHO_N "(cached) $ECHO_C" >&6
5843else
5844  ac_cv_header_limits_h=$ac_header_preproc
5845fi
5846{ echo "$as_me:$LINENO: result: $ac_cv_header_limits_h" >&5
5847echo "${ECHO_T}$ac_cv_header_limits_h" >&6; }
5848
5849fi
5850if test $ac_cv_header_limits_h = yes; then
5851
5852cat >>confdefs.h <<\_ACEOF
5853#define HAVE_LIMITS_H 1
5854_ACEOF
5855
5856else
5857
5858cat >>confdefs.h <<\_ACEOF
5859#define NO_LIMITS_H 1
5860_ACEOF
5861
5862fi
5863
5864
5865    if test "${ac_cv_header_stdlib_h+set}" = set; then
5866  { echo "$as_me:$LINENO: checking for stdlib.h" >&5
5867echo $ECHO_N "checking for stdlib.h... $ECHO_C" >&6; }
5868if test "${ac_cv_header_stdlib_h+set}" = set; then
5869  echo $ECHO_N "(cached) $ECHO_C" >&6
5870fi
5871{ echo "$as_me:$LINENO: result: $ac_cv_header_stdlib_h" >&5
5872echo "${ECHO_T}$ac_cv_header_stdlib_h" >&6; }
5873else
5874  # Is the header compilable?
5875{ echo "$as_me:$LINENO: checking stdlib.h usability" >&5
5876echo $ECHO_N "checking stdlib.h usability... $ECHO_C" >&6; }
5877cat >conftest.$ac_ext <<_ACEOF
5878/* confdefs.h.  */
5879_ACEOF
5880cat confdefs.h >>conftest.$ac_ext
5881cat >>conftest.$ac_ext <<_ACEOF
5882/* end confdefs.h.  */
5883$ac_includes_default
5884#include <stdlib.h>
5885_ACEOF
5886rm -f conftest.$ac_objext
5887if { (ac_try="$ac_compile"
5888case "(($ac_try" in
5889  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5890  *) ac_try_echo=$ac_try;;
5891esac
5892eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5893  (eval "$ac_compile") 2>conftest.er1
5894  ac_status=$?
5895  grep -v '^ *+' conftest.er1 >conftest.err
5896  rm -f conftest.er1
5897  cat conftest.err >&5
5898  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5899  (exit $ac_status); } && {
5900	 test -z "$ac_c_werror_flag" ||
5901	 test ! -s conftest.err
5902       } && test -s conftest.$ac_objext; then
5903  ac_header_compiler=yes
5904else
5905  echo "$as_me: failed program was:" >&5
5906sed 's/^/| /' conftest.$ac_ext >&5
5907
5908	ac_header_compiler=no
5909fi
5910
5911rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5912{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5913echo "${ECHO_T}$ac_header_compiler" >&6; }
5914
5915# Is the header present?
5916{ echo "$as_me:$LINENO: checking stdlib.h presence" >&5
5917echo $ECHO_N "checking stdlib.h presence... $ECHO_C" >&6; }
5918cat >conftest.$ac_ext <<_ACEOF
5919/* confdefs.h.  */
5920_ACEOF
5921cat confdefs.h >>conftest.$ac_ext
5922cat >>conftest.$ac_ext <<_ACEOF
5923/* end confdefs.h.  */
5924#include <stdlib.h>
5925_ACEOF
5926if { (ac_try="$ac_cpp conftest.$ac_ext"
5927case "(($ac_try" in
5928  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5929  *) ac_try_echo=$ac_try;;
5930esac
5931eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5932  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5933  ac_status=$?
5934  grep -v '^ *+' conftest.er1 >conftest.err
5935  rm -f conftest.er1
5936  cat conftest.err >&5
5937  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5938  (exit $ac_status); } >/dev/null && {
5939	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5940	 test ! -s conftest.err
5941       }; then
5942  ac_header_preproc=yes
5943else
5944  echo "$as_me: failed program was:" >&5
5945sed 's/^/| /' conftest.$ac_ext >&5
5946
5947  ac_header_preproc=no
5948fi
5949
5950rm -f conftest.err conftest.$ac_ext
5951{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5952echo "${ECHO_T}$ac_header_preproc" >&6; }
5953
5954# So?  What about this header?
5955case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5956  yes:no: )
5957    { echo "$as_me:$LINENO: WARNING: stdlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
5958echo "$as_me: WARNING: stdlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5959    { echo "$as_me:$LINENO: WARNING: stdlib.h: proceeding with the compiler's result" >&5
5960echo "$as_me: WARNING: stdlib.h: proceeding with the compiler's result" >&2;}
5961    ac_header_preproc=yes
5962    ;;
5963  no:yes:* )
5964    { echo "$as_me:$LINENO: WARNING: stdlib.h: present but cannot be compiled" >&5
5965echo "$as_me: WARNING: stdlib.h: present but cannot be compiled" >&2;}
5966    { echo "$as_me:$LINENO: WARNING: stdlib.h:     check for missing prerequisite headers?" >&5
5967echo "$as_me: WARNING: stdlib.h:     check for missing prerequisite headers?" >&2;}
5968    { echo "$as_me:$LINENO: WARNING: stdlib.h: see the Autoconf documentation" >&5
5969echo "$as_me: WARNING: stdlib.h: see the Autoconf documentation" >&2;}
5970    { echo "$as_me:$LINENO: WARNING: stdlib.h:     section \"Present But Cannot Be Compiled\"" >&5
5971echo "$as_me: WARNING: stdlib.h:     section \"Present But Cannot Be Compiled\"" >&2;}
5972    { echo "$as_me:$LINENO: WARNING: stdlib.h: proceeding with the preprocessor's result" >&5
5973echo "$as_me: WARNING: stdlib.h: proceeding with the preprocessor's result" >&2;}
5974    { echo "$as_me:$LINENO: WARNING: stdlib.h: in the future, the compiler will take precedence" >&5
5975echo "$as_me: WARNING: stdlib.h: in the future, the compiler will take precedence" >&2;}
5976
5977    ;;
5978esac
5979{ echo "$as_me:$LINENO: checking for stdlib.h" >&5
5980echo $ECHO_N "checking for stdlib.h... $ECHO_C" >&6; }
5981if test "${ac_cv_header_stdlib_h+set}" = set; then
5982  echo $ECHO_N "(cached) $ECHO_C" >&6
5983else
5984  ac_cv_header_stdlib_h=$ac_header_preproc
5985fi
5986{ echo "$as_me:$LINENO: result: $ac_cv_header_stdlib_h" >&5
5987echo "${ECHO_T}$ac_cv_header_stdlib_h" >&6; }
5988
5989fi
5990if test $ac_cv_header_stdlib_h = yes; then
5991  tcl_ok=1
5992else
5993  tcl_ok=0
5994fi
5995
5996
5997    cat >conftest.$ac_ext <<_ACEOF
5998/* confdefs.h.  */
5999_ACEOF
6000cat confdefs.h >>conftest.$ac_ext
6001cat >>conftest.$ac_ext <<_ACEOF
6002/* end confdefs.h.  */
6003#include <stdlib.h>
6004
6005_ACEOF
6006if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6007  $EGREP "strtol" >/dev/null 2>&1; then
6008  :
6009else
6010  tcl_ok=0
6011fi
6012rm -f -r conftest*
6013
6014    cat >conftest.$ac_ext <<_ACEOF
6015/* confdefs.h.  */
6016_ACEOF
6017cat confdefs.h >>conftest.$ac_ext
6018cat >>conftest.$ac_ext <<_ACEOF
6019/* end confdefs.h.  */
6020#include <stdlib.h>
6021
6022_ACEOF
6023if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6024  $EGREP "strtoul" >/dev/null 2>&1; then
6025  :
6026else
6027  tcl_ok=0
6028fi
6029rm -f -r conftest*
6030
6031    cat >conftest.$ac_ext <<_ACEOF
6032/* confdefs.h.  */
6033_ACEOF
6034cat confdefs.h >>conftest.$ac_ext
6035cat >>conftest.$ac_ext <<_ACEOF
6036/* end confdefs.h.  */
6037#include <stdlib.h>
6038
6039_ACEOF
6040if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6041  $EGREP "strtod" >/dev/null 2>&1; then
6042  :
6043else
6044  tcl_ok=0
6045fi
6046rm -f -r conftest*
6047
6048    if test $tcl_ok = 0; then
6049
6050cat >>confdefs.h <<\_ACEOF
6051#define NO_STDLIB_H 1
6052_ACEOF
6053
6054    fi
6055    if test "${ac_cv_header_string_h+set}" = set; then
6056  { echo "$as_me:$LINENO: checking for string.h" >&5
6057echo $ECHO_N "checking for string.h... $ECHO_C" >&6; }
6058if test "${ac_cv_header_string_h+set}" = set; then
6059  echo $ECHO_N "(cached) $ECHO_C" >&6
6060fi
6061{ echo "$as_me:$LINENO: result: $ac_cv_header_string_h" >&5
6062echo "${ECHO_T}$ac_cv_header_string_h" >&6; }
6063else
6064  # Is the header compilable?
6065{ echo "$as_me:$LINENO: checking string.h usability" >&5
6066echo $ECHO_N "checking string.h usability... $ECHO_C" >&6; }
6067cat >conftest.$ac_ext <<_ACEOF
6068/* confdefs.h.  */
6069_ACEOF
6070cat confdefs.h >>conftest.$ac_ext
6071cat >>conftest.$ac_ext <<_ACEOF
6072/* end confdefs.h.  */
6073$ac_includes_default
6074#include <string.h>
6075_ACEOF
6076rm -f conftest.$ac_objext
6077if { (ac_try="$ac_compile"
6078case "(($ac_try" in
6079  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6080  *) ac_try_echo=$ac_try;;
6081esac
6082eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6083  (eval "$ac_compile") 2>conftest.er1
6084  ac_status=$?
6085  grep -v '^ *+' conftest.er1 >conftest.err
6086  rm -f conftest.er1
6087  cat conftest.err >&5
6088  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6089  (exit $ac_status); } && {
6090	 test -z "$ac_c_werror_flag" ||
6091	 test ! -s conftest.err
6092       } && test -s conftest.$ac_objext; then
6093  ac_header_compiler=yes
6094else
6095  echo "$as_me: failed program was:" >&5
6096sed 's/^/| /' conftest.$ac_ext >&5
6097
6098	ac_header_compiler=no
6099fi
6100
6101rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6102{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6103echo "${ECHO_T}$ac_header_compiler" >&6; }
6104
6105# Is the header present?
6106{ echo "$as_me:$LINENO: checking string.h presence" >&5
6107echo $ECHO_N "checking string.h presence... $ECHO_C" >&6; }
6108cat >conftest.$ac_ext <<_ACEOF
6109/* confdefs.h.  */
6110_ACEOF
6111cat confdefs.h >>conftest.$ac_ext
6112cat >>conftest.$ac_ext <<_ACEOF
6113/* end confdefs.h.  */
6114#include <string.h>
6115_ACEOF
6116if { (ac_try="$ac_cpp conftest.$ac_ext"
6117case "(($ac_try" in
6118  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6119  *) ac_try_echo=$ac_try;;
6120esac
6121eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6122  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6123  ac_status=$?
6124  grep -v '^ *+' conftest.er1 >conftest.err
6125  rm -f conftest.er1
6126  cat conftest.err >&5
6127  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6128  (exit $ac_status); } >/dev/null && {
6129	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6130	 test ! -s conftest.err
6131       }; then
6132  ac_header_preproc=yes
6133else
6134  echo "$as_me: failed program was:" >&5
6135sed 's/^/| /' conftest.$ac_ext >&5
6136
6137  ac_header_preproc=no
6138fi
6139
6140rm -f conftest.err conftest.$ac_ext
6141{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6142echo "${ECHO_T}$ac_header_preproc" >&6; }
6143
6144# So?  What about this header?
6145case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6146  yes:no: )
6147    { echo "$as_me:$LINENO: WARNING: string.h: accepted by the compiler, rejected by the preprocessor!" >&5
6148echo "$as_me: WARNING: string.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6149    { echo "$as_me:$LINENO: WARNING: string.h: proceeding with the compiler's result" >&5
6150echo "$as_me: WARNING: string.h: proceeding with the compiler's result" >&2;}
6151    ac_header_preproc=yes
6152    ;;
6153  no:yes:* )
6154    { echo "$as_me:$LINENO: WARNING: string.h: present but cannot be compiled" >&5
6155echo "$as_me: WARNING: string.h: present but cannot be compiled" >&2;}
6156    { echo "$as_me:$LINENO: WARNING: string.h:     check for missing prerequisite headers?" >&5
6157echo "$as_me: WARNING: string.h:     check for missing prerequisite headers?" >&2;}
6158    { echo "$as_me:$LINENO: WARNING: string.h: see the Autoconf documentation" >&5
6159echo "$as_me: WARNING: string.h: see the Autoconf documentation" >&2;}
6160    { echo "$as_me:$LINENO: WARNING: string.h:     section \"Present But Cannot Be Compiled\"" >&5
6161echo "$as_me: WARNING: string.h:     section \"Present But Cannot Be Compiled\"" >&2;}
6162    { echo "$as_me:$LINENO: WARNING: string.h: proceeding with the preprocessor's result" >&5
6163echo "$as_me: WARNING: string.h: proceeding with the preprocessor's result" >&2;}
6164    { echo "$as_me:$LINENO: WARNING: string.h: in the future, the compiler will take precedence" >&5
6165echo "$as_me: WARNING: string.h: in the future, the compiler will take precedence" >&2;}
6166
6167    ;;
6168esac
6169{ echo "$as_me:$LINENO: checking for string.h" >&5
6170echo $ECHO_N "checking for string.h... $ECHO_C" >&6; }
6171if test "${ac_cv_header_string_h+set}" = set; then
6172  echo $ECHO_N "(cached) $ECHO_C" >&6
6173else
6174  ac_cv_header_string_h=$ac_header_preproc
6175fi
6176{ echo "$as_me:$LINENO: result: $ac_cv_header_string_h" >&5
6177echo "${ECHO_T}$ac_cv_header_string_h" >&6; }
6178
6179fi
6180if test $ac_cv_header_string_h = yes; then
6181  tcl_ok=1
6182else
6183  tcl_ok=0
6184fi
6185
6186
6187    cat >conftest.$ac_ext <<_ACEOF
6188/* confdefs.h.  */
6189_ACEOF
6190cat confdefs.h >>conftest.$ac_ext
6191cat >>conftest.$ac_ext <<_ACEOF
6192/* end confdefs.h.  */
6193#include <string.h>
6194
6195_ACEOF
6196if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6197  $EGREP "strstr" >/dev/null 2>&1; then
6198  :
6199else
6200  tcl_ok=0
6201fi
6202rm -f -r conftest*
6203
6204    cat >conftest.$ac_ext <<_ACEOF
6205/* confdefs.h.  */
6206_ACEOF
6207cat confdefs.h >>conftest.$ac_ext
6208cat >>conftest.$ac_ext <<_ACEOF
6209/* end confdefs.h.  */
6210#include <string.h>
6211
6212_ACEOF
6213if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6214  $EGREP "strerror" >/dev/null 2>&1; then
6215  :
6216else
6217  tcl_ok=0
6218fi
6219rm -f -r conftest*
6220
6221
6222    # See also memmove check below for a place where NO_STRING_H can be
6223    # set and why.
6224
6225    if test $tcl_ok = 0; then
6226
6227cat >>confdefs.h <<\_ACEOF
6228#define NO_STRING_H 1
6229_ACEOF
6230
6231    fi
6232
6233    if test "${ac_cv_header_sys_wait_h+set}" = set; then
6234  { echo "$as_me:$LINENO: checking for sys/wait.h" >&5
6235echo $ECHO_N "checking for sys/wait.h... $ECHO_C" >&6; }
6236if test "${ac_cv_header_sys_wait_h+set}" = set; then
6237  echo $ECHO_N "(cached) $ECHO_C" >&6
6238fi
6239{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
6240echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
6241else
6242  # Is the header compilable?
6243{ echo "$as_me:$LINENO: checking sys/wait.h usability" >&5
6244echo $ECHO_N "checking sys/wait.h usability... $ECHO_C" >&6; }
6245cat >conftest.$ac_ext <<_ACEOF
6246/* confdefs.h.  */
6247_ACEOF
6248cat confdefs.h >>conftest.$ac_ext
6249cat >>conftest.$ac_ext <<_ACEOF
6250/* end confdefs.h.  */
6251$ac_includes_default
6252#include <sys/wait.h>
6253_ACEOF
6254rm -f conftest.$ac_objext
6255if { (ac_try="$ac_compile"
6256case "(($ac_try" in
6257  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6258  *) ac_try_echo=$ac_try;;
6259esac
6260eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6261  (eval "$ac_compile") 2>conftest.er1
6262  ac_status=$?
6263  grep -v '^ *+' conftest.er1 >conftest.err
6264  rm -f conftest.er1
6265  cat conftest.err >&5
6266  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6267  (exit $ac_status); } && {
6268	 test -z "$ac_c_werror_flag" ||
6269	 test ! -s conftest.err
6270       } && test -s conftest.$ac_objext; then
6271  ac_header_compiler=yes
6272else
6273  echo "$as_me: failed program was:" >&5
6274sed 's/^/| /' conftest.$ac_ext >&5
6275
6276	ac_header_compiler=no
6277fi
6278
6279rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6280{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6281echo "${ECHO_T}$ac_header_compiler" >&6; }
6282
6283# Is the header present?
6284{ echo "$as_me:$LINENO: checking sys/wait.h presence" >&5
6285echo $ECHO_N "checking sys/wait.h presence... $ECHO_C" >&6; }
6286cat >conftest.$ac_ext <<_ACEOF
6287/* confdefs.h.  */
6288_ACEOF
6289cat confdefs.h >>conftest.$ac_ext
6290cat >>conftest.$ac_ext <<_ACEOF
6291/* end confdefs.h.  */
6292#include <sys/wait.h>
6293_ACEOF
6294if { (ac_try="$ac_cpp conftest.$ac_ext"
6295case "(($ac_try" in
6296  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6297  *) ac_try_echo=$ac_try;;
6298esac
6299eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6300  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6301  ac_status=$?
6302  grep -v '^ *+' conftest.er1 >conftest.err
6303  rm -f conftest.er1
6304  cat conftest.err >&5
6305  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6306  (exit $ac_status); } >/dev/null && {
6307	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6308	 test ! -s conftest.err
6309       }; then
6310  ac_header_preproc=yes
6311else
6312  echo "$as_me: failed program was:" >&5
6313sed 's/^/| /' conftest.$ac_ext >&5
6314
6315  ac_header_preproc=no
6316fi
6317
6318rm -f conftest.err conftest.$ac_ext
6319{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6320echo "${ECHO_T}$ac_header_preproc" >&6; }
6321
6322# So?  What about this header?
6323case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6324  yes:no: )
6325    { echo "$as_me:$LINENO: WARNING: sys/wait.h: accepted by the compiler, rejected by the preprocessor!" >&5
6326echo "$as_me: WARNING: sys/wait.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6327    { echo "$as_me:$LINENO: WARNING: sys/wait.h: proceeding with the compiler's result" >&5
6328echo "$as_me: WARNING: sys/wait.h: proceeding with the compiler's result" >&2;}
6329    ac_header_preproc=yes
6330    ;;
6331  no:yes:* )
6332    { echo "$as_me:$LINENO: WARNING: sys/wait.h: present but cannot be compiled" >&5
6333echo "$as_me: WARNING: sys/wait.h: present but cannot be compiled" >&2;}
6334    { echo "$as_me:$LINENO: WARNING: sys/wait.h:     check for missing prerequisite headers?" >&5
6335echo "$as_me: WARNING: sys/wait.h:     check for missing prerequisite headers?" >&2;}
6336    { echo "$as_me:$LINENO: WARNING: sys/wait.h: see the Autoconf documentation" >&5
6337echo "$as_me: WARNING: sys/wait.h: see the Autoconf documentation" >&2;}
6338    { echo "$as_me:$LINENO: WARNING: sys/wait.h:     section \"Present But Cannot Be Compiled\"" >&5
6339echo "$as_me: WARNING: sys/wait.h:     section \"Present But Cannot Be Compiled\"" >&2;}
6340    { echo "$as_me:$LINENO: WARNING: sys/wait.h: proceeding with the preprocessor's result" >&5
6341echo "$as_me: WARNING: sys/wait.h: proceeding with the preprocessor's result" >&2;}
6342    { echo "$as_me:$LINENO: WARNING: sys/wait.h: in the future, the compiler will take precedence" >&5
6343echo "$as_me: WARNING: sys/wait.h: in the future, the compiler will take precedence" >&2;}
6344
6345    ;;
6346esac
6347{ echo "$as_me:$LINENO: checking for sys/wait.h" >&5
6348echo $ECHO_N "checking for sys/wait.h... $ECHO_C" >&6; }
6349if test "${ac_cv_header_sys_wait_h+set}" = set; then
6350  echo $ECHO_N "(cached) $ECHO_C" >&6
6351else
6352  ac_cv_header_sys_wait_h=$ac_header_preproc
6353fi
6354{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
6355echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
6356
6357fi
6358if test $ac_cv_header_sys_wait_h = yes; then
6359  :
6360else
6361
6362cat >>confdefs.h <<\_ACEOF
6363#define NO_SYS_WAIT_H 1
6364_ACEOF
6365
6366fi
6367
6368
6369    if test "${ac_cv_header_dlfcn_h+set}" = set; then
6370  { echo "$as_me:$LINENO: checking for dlfcn.h" >&5
6371echo $ECHO_N "checking for dlfcn.h... $ECHO_C" >&6; }
6372if test "${ac_cv_header_dlfcn_h+set}" = set; then
6373  echo $ECHO_N "(cached) $ECHO_C" >&6
6374fi
6375{ echo "$as_me:$LINENO: result: $ac_cv_header_dlfcn_h" >&5
6376echo "${ECHO_T}$ac_cv_header_dlfcn_h" >&6; }
6377else
6378  # Is the header compilable?
6379{ echo "$as_me:$LINENO: checking dlfcn.h usability" >&5
6380echo $ECHO_N "checking dlfcn.h usability... $ECHO_C" >&6; }
6381cat >conftest.$ac_ext <<_ACEOF
6382/* confdefs.h.  */
6383_ACEOF
6384cat confdefs.h >>conftest.$ac_ext
6385cat >>conftest.$ac_ext <<_ACEOF
6386/* end confdefs.h.  */
6387$ac_includes_default
6388#include <dlfcn.h>
6389_ACEOF
6390rm -f conftest.$ac_objext
6391if { (ac_try="$ac_compile"
6392case "(($ac_try" in
6393  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6394  *) ac_try_echo=$ac_try;;
6395esac
6396eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6397  (eval "$ac_compile") 2>conftest.er1
6398  ac_status=$?
6399  grep -v '^ *+' conftest.er1 >conftest.err
6400  rm -f conftest.er1
6401  cat conftest.err >&5
6402  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6403  (exit $ac_status); } && {
6404	 test -z "$ac_c_werror_flag" ||
6405	 test ! -s conftest.err
6406       } && test -s conftest.$ac_objext; then
6407  ac_header_compiler=yes
6408else
6409  echo "$as_me: failed program was:" >&5
6410sed 's/^/| /' conftest.$ac_ext >&5
6411
6412	ac_header_compiler=no
6413fi
6414
6415rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6416{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6417echo "${ECHO_T}$ac_header_compiler" >&6; }
6418
6419# Is the header present?
6420{ echo "$as_me:$LINENO: checking dlfcn.h presence" >&5
6421echo $ECHO_N "checking dlfcn.h presence... $ECHO_C" >&6; }
6422cat >conftest.$ac_ext <<_ACEOF
6423/* confdefs.h.  */
6424_ACEOF
6425cat confdefs.h >>conftest.$ac_ext
6426cat >>conftest.$ac_ext <<_ACEOF
6427/* end confdefs.h.  */
6428#include <dlfcn.h>
6429_ACEOF
6430if { (ac_try="$ac_cpp conftest.$ac_ext"
6431case "(($ac_try" in
6432  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6433  *) ac_try_echo=$ac_try;;
6434esac
6435eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6436  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6437  ac_status=$?
6438  grep -v '^ *+' conftest.er1 >conftest.err
6439  rm -f conftest.er1
6440  cat conftest.err >&5
6441  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6442  (exit $ac_status); } >/dev/null && {
6443	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6444	 test ! -s conftest.err
6445       }; then
6446  ac_header_preproc=yes
6447else
6448  echo "$as_me: failed program was:" >&5
6449sed 's/^/| /' conftest.$ac_ext >&5
6450
6451  ac_header_preproc=no
6452fi
6453
6454rm -f conftest.err conftest.$ac_ext
6455{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6456echo "${ECHO_T}$ac_header_preproc" >&6; }
6457
6458# So?  What about this header?
6459case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6460  yes:no: )
6461    { echo "$as_me:$LINENO: WARNING: dlfcn.h: accepted by the compiler, rejected by the preprocessor!" >&5
6462echo "$as_me: WARNING: dlfcn.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6463    { echo "$as_me:$LINENO: WARNING: dlfcn.h: proceeding with the compiler's result" >&5
6464echo "$as_me: WARNING: dlfcn.h: proceeding with the compiler's result" >&2;}
6465    ac_header_preproc=yes
6466    ;;
6467  no:yes:* )
6468    { echo "$as_me:$LINENO: WARNING: dlfcn.h: present but cannot be compiled" >&5
6469echo "$as_me: WARNING: dlfcn.h: present but cannot be compiled" >&2;}
6470    { echo "$as_me:$LINENO: WARNING: dlfcn.h:     check for missing prerequisite headers?" >&5
6471echo "$as_me: WARNING: dlfcn.h:     check for missing prerequisite headers?" >&2;}
6472    { echo "$as_me:$LINENO: WARNING: dlfcn.h: see the Autoconf documentation" >&5
6473echo "$as_me: WARNING: dlfcn.h: see the Autoconf documentation" >&2;}
6474    { echo "$as_me:$LINENO: WARNING: dlfcn.h:     section \"Present But Cannot Be Compiled\"" >&5
6475echo "$as_me: WARNING: dlfcn.h:     section \"Present But Cannot Be Compiled\"" >&2;}
6476    { echo "$as_me:$LINENO: WARNING: dlfcn.h: proceeding with the preprocessor's result" >&5
6477echo "$as_me: WARNING: dlfcn.h: proceeding with the preprocessor's result" >&2;}
6478    { echo "$as_me:$LINENO: WARNING: dlfcn.h: in the future, the compiler will take precedence" >&5
6479echo "$as_me: WARNING: dlfcn.h: in the future, the compiler will take precedence" >&2;}
6480
6481    ;;
6482esac
6483{ echo "$as_me:$LINENO: checking for dlfcn.h" >&5
6484echo $ECHO_N "checking for dlfcn.h... $ECHO_C" >&6; }
6485if test "${ac_cv_header_dlfcn_h+set}" = set; then
6486  echo $ECHO_N "(cached) $ECHO_C" >&6
6487else
6488  ac_cv_header_dlfcn_h=$ac_header_preproc
6489fi
6490{ echo "$as_me:$LINENO: result: $ac_cv_header_dlfcn_h" >&5
6491echo "${ECHO_T}$ac_cv_header_dlfcn_h" >&6; }
6492
6493fi
6494if test $ac_cv_header_dlfcn_h = yes; then
6495  :
6496else
6497
6498cat >>confdefs.h <<\_ACEOF
6499#define NO_DLFCN_H 1
6500_ACEOF
6501
6502fi
6503
6504
6505
6506    # OS/390 lacks sys/param.h (and doesn't need it, by chance).
6507
6508for ac_header in sys/param.h
6509do
6510as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6511if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6512  { echo "$as_me:$LINENO: checking for $ac_header" >&5
6513echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6514if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6515  echo $ECHO_N "(cached) $ECHO_C" >&6
6516fi
6517ac_res=`eval echo '${'$as_ac_Header'}'`
6518	       { echo "$as_me:$LINENO: result: $ac_res" >&5
6519echo "${ECHO_T}$ac_res" >&6; }
6520else
6521  # Is the header compilable?
6522{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
6523echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6524cat >conftest.$ac_ext <<_ACEOF
6525/* confdefs.h.  */
6526_ACEOF
6527cat confdefs.h >>conftest.$ac_ext
6528cat >>conftest.$ac_ext <<_ACEOF
6529/* end confdefs.h.  */
6530$ac_includes_default
6531#include <$ac_header>
6532_ACEOF
6533rm -f conftest.$ac_objext
6534if { (ac_try="$ac_compile"
6535case "(($ac_try" in
6536  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6537  *) ac_try_echo=$ac_try;;
6538esac
6539eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6540  (eval "$ac_compile") 2>conftest.er1
6541  ac_status=$?
6542  grep -v '^ *+' conftest.er1 >conftest.err
6543  rm -f conftest.er1
6544  cat conftest.err >&5
6545  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6546  (exit $ac_status); } && {
6547	 test -z "$ac_c_werror_flag" ||
6548	 test ! -s conftest.err
6549       } && test -s conftest.$ac_objext; then
6550  ac_header_compiler=yes
6551else
6552  echo "$as_me: failed program was:" >&5
6553sed 's/^/| /' conftest.$ac_ext >&5
6554
6555	ac_header_compiler=no
6556fi
6557
6558rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6559{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6560echo "${ECHO_T}$ac_header_compiler" >&6; }
6561
6562# Is the header present?
6563{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
6564echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6565cat >conftest.$ac_ext <<_ACEOF
6566/* confdefs.h.  */
6567_ACEOF
6568cat confdefs.h >>conftest.$ac_ext
6569cat >>conftest.$ac_ext <<_ACEOF
6570/* end confdefs.h.  */
6571#include <$ac_header>
6572_ACEOF
6573if { (ac_try="$ac_cpp conftest.$ac_ext"
6574case "(($ac_try" in
6575  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6576  *) ac_try_echo=$ac_try;;
6577esac
6578eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6579  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6580  ac_status=$?
6581  grep -v '^ *+' conftest.er1 >conftest.err
6582  rm -f conftest.er1
6583  cat conftest.err >&5
6584  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6585  (exit $ac_status); } >/dev/null && {
6586	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6587	 test ! -s conftest.err
6588       }; then
6589  ac_header_preproc=yes
6590else
6591  echo "$as_me: failed program was:" >&5
6592sed 's/^/| /' conftest.$ac_ext >&5
6593
6594  ac_header_preproc=no
6595fi
6596
6597rm -f conftest.err conftest.$ac_ext
6598{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6599echo "${ECHO_T}$ac_header_preproc" >&6; }
6600
6601# So?  What about this header?
6602case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6603  yes:no: )
6604    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6605echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6606    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6607echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6608    ac_header_preproc=yes
6609    ;;
6610  no:yes:* )
6611    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6612echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6613    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6614echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6615    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6616echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6617    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6618echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6619    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6620echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6621    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6622echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6623
6624    ;;
6625esac
6626{ echo "$as_me:$LINENO: checking for $ac_header" >&5
6627echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6628if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6629  echo $ECHO_N "(cached) $ECHO_C" >&6
6630else
6631  eval "$as_ac_Header=\$ac_header_preproc"
6632fi
6633ac_res=`eval echo '${'$as_ac_Header'}'`
6634	       { echo "$as_me:$LINENO: result: $ac_res" >&5
6635echo "${ECHO_T}$ac_res" >&6; }
6636
6637fi
6638if test `eval echo '${'$as_ac_Header'}'` = yes; then
6639  cat >>confdefs.h <<_ACEOF
6640#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6641_ACEOF
6642
6643fi
6644
6645done
6646
6647
6648	# Let the user call this, because if it triggers, they will
6649	# need a compat/strtod.c that is correct.  Users can also
6650	# use Tcl_GetDouble(FromObj) instead.
6651	#TEA_BUGGY_STRTOD
6652    fi
6653
6654
6655#--------------------------------------------------------------------
6656# __CHANGE__
6657# Choose which headers you need.  Extension authors should try very
6658# hard to only rely on the Tcl public header files.  Internal headers
6659# contain private data structures and are subject to change without
6660# notice.
6661# This MUST be called after TEA_LOAD_TCLCONFIG / TEA_LOAD_TKCONFIG
6662#--------------------------------------------------------------------
6663
6664
6665    { echo "$as_me:$LINENO: checking for Tcl public headers" >&5
6666echo $ECHO_N "checking for Tcl public headers... $ECHO_C" >&6; }
6667
6668
6669# Check whether --with-tclinclude was given.
6670if test "${with_tclinclude+set}" = set; then
6671  withval=$with_tclinclude; with_tclinclude=${withval}
6672fi
6673
6674
6675    if test "${ac_cv_c_tclh+set}" = set; then
6676  echo $ECHO_N "(cached) $ECHO_C" >&6
6677else
6678
6679	# Use the value from --with-tclinclude, if it was given
6680
6681	if test x"${with_tclinclude}" != x ; then
6682	    if test -f "${with_tclinclude}/tcl.h" ; then
6683		ac_cv_c_tclh=${with_tclinclude}
6684	    else
6685		{ { echo "$as_me:$LINENO: error: ${with_tclinclude} directory does not contain tcl.h" >&5
6686echo "$as_me: error: ${with_tclinclude} directory does not contain tcl.h" >&2;}
6687   { (exit 1); exit 1; }; }
6688	    fi
6689	else
6690	    list=""
6691	    if test "`uname -s`" = "Darwin"; then
6692		# If Tcl was built as a framework, attempt to use
6693		# the framework's Headers directory
6694		case ${TCL_DEFS} in
6695		    *TCL_FRAMEWORK*)
6696			list="`ls -d ${TCL_BIN_DIR}/Headers 2>/dev/null`"
6697			;;
6698		esac
6699	    fi
6700
6701	    # Look in the source dir only if Tcl is not installed,
6702	    # and in that situation, look there before installed locations.
6703	    if test -f "${TCL_BIN_DIR}/Makefile" ; then
6704		list="$list `ls -d ${TCL_SRC_DIR}/generic 2>/dev/null`"
6705	    fi
6706
6707	    # Check order: pkg --prefix location, Tcl's --prefix location,
6708	    # relative to directory of tclConfig.sh.
6709
6710	    eval "temp_includedir=${includedir}"
6711	    list="$list \
6712		`ls -d ${temp_includedir}        2>/dev/null` \
6713		`ls -d ${TCL_PREFIX}/include     2>/dev/null` \
6714		`ls -d ${TCL_BIN_DIR}/../include 2>/dev/null`"
6715	    if test "${TEA_PLATFORM}" != "windows" -o "$GCC" = "yes"; then
6716		list="$list /usr/local/include /usr/include"
6717		if test x"${TCL_INCLUDE_SPEC}" != x ; then
6718		    d=`echo "${TCL_INCLUDE_SPEC}" | sed -e 's/^-I//'`
6719		    list="$list `ls -d ${d} 2>/dev/null`"
6720		fi
6721	    fi
6722	    for i in $list ; do
6723		if test -f "$i/tcl.h" ; then
6724		    ac_cv_c_tclh=$i
6725		    break
6726		fi
6727	    done
6728	fi
6729
6730fi
6731
6732
6733    # Print a message based on how we determined the include path
6734
6735    if test x"${ac_cv_c_tclh}" = x ; then
6736	{ { echo "$as_me:$LINENO: error: tcl.h not found.  Please specify its location with --with-tclinclude" >&5
6737echo "$as_me: error: tcl.h not found.  Please specify its location with --with-tclinclude" >&2;}
6738   { (exit 1); exit 1; }; }
6739    else
6740	{ echo "$as_me:$LINENO: result: ${ac_cv_c_tclh}" >&5
6741echo "${ECHO_T}${ac_cv_c_tclh}" >&6; }
6742    fi
6743
6744    # Convert to a native path and substitute into the output files.
6745
6746    INCLUDE_DIR_NATIVE=`${CYGPATH} ${ac_cv_c_tclh}`
6747
6748    TCL_INCLUDES=-I\"${INCLUDE_DIR_NATIVE}\"
6749
6750
6751
6752#TEA_PRIVATE_TCL_HEADERS
6753
6754#--------------------------------------------------------------------
6755# A few miscellaneous platform-specific items:
6756#
6757# We have to define a special symbol for Windows (BUILD_Tclxml in this
6758# case) so that we create the export library with the dll.
6759#
6760# Windows creates a few extra files that need to be cleaned up.
6761# We can add more files to clean if our extension creates any extra
6762# files in the future.
6763#
6764# Define any extra compiler flags in the PACKAGE_CFLAGS variable.
6765# These will be appended to the current set of compiler flags for
6766# your system.
6767#--------------------------------------------------------------------
6768
6769if test "${TEA_PLATFORM}" = "windows" ; then
6770    cat >>confdefs.h <<\_ACEOF
6771#define BUILD_Tclxml 1
6772_ACEOF
6773
6774    CLEANFILES="pkgIndex.tcl *.lib *.dll *.exp *.ilk *.pdb vc*.pch"
6775    EXTRA_SOURCES='$(WIN_SOURCES)'
6776else
6777    CLEANFILES="pkgIndex.tcl"
6778    EXTRA_SOURCES='$(UNIX_SOURCES)'
6779fi
6780
6781
6782
6783#--------------------------------------------------------------------
6784# Check whether --enable-threads or --disable-threads was given.
6785# So far only Tcl responds to this one.
6786#--------------------------------------------------------------------
6787
6788
6789    # Check whether --enable-threads was given.
6790if test "${enable_threads+set}" = set; then
6791  enableval=$enable_threads; tcl_ok=$enableval
6792else
6793  tcl_ok=yes
6794fi
6795
6796
6797    if test "${enable_threads+set}" = set; then
6798	enableval="$enable_threads"
6799	tcl_ok=$enableval
6800    else
6801	tcl_ok=yes
6802    fi
6803
6804    if test "$tcl_ok" = "yes" -o "${TCL_THREADS}" = 1; then
6805	TCL_THREADS=1
6806
6807	if test "${TEA_PLATFORM}" != "windows" ; then
6808	    # We are always OK on Windows, so check what this platform wants:
6809
6810	    # USE_THREAD_ALLOC tells us to try the special thread-based
6811	    # allocator that significantly reduces lock contention
6812
6813cat >>confdefs.h <<\_ACEOF
6814#define USE_THREAD_ALLOC 1
6815_ACEOF
6816
6817
6818cat >>confdefs.h <<\_ACEOF
6819#define _REENTRANT 1
6820_ACEOF
6821
6822	    if test "`uname -s`" = "SunOS" ; then
6823
6824cat >>confdefs.h <<\_ACEOF
6825#define _POSIX_PTHREAD_SEMANTICS 1
6826_ACEOF
6827
6828	    fi
6829
6830cat >>confdefs.h <<\_ACEOF
6831#define _THREAD_SAFE 1
6832_ACEOF
6833
6834	    { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
6835echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
6836if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
6837  echo $ECHO_N "(cached) $ECHO_C" >&6
6838else
6839  ac_check_lib_save_LIBS=$LIBS
6840LIBS="-lpthread  $LIBS"
6841cat >conftest.$ac_ext <<_ACEOF
6842/* confdefs.h.  */
6843_ACEOF
6844cat confdefs.h >>conftest.$ac_ext
6845cat >>conftest.$ac_ext <<_ACEOF
6846/* end confdefs.h.  */
6847
6848/* Override any GCC internal prototype to avoid an error.
6849   Use char because int might match the return type of a GCC
6850   builtin and then its argument prototype would still apply.  */
6851#ifdef __cplusplus
6852extern "C"
6853#endif
6854char pthread_mutex_init ();
6855int
6856main ()
6857{
6858return pthread_mutex_init ();
6859  ;
6860  return 0;
6861}
6862_ACEOF
6863rm -f conftest.$ac_objext conftest$ac_exeext
6864if { (ac_try="$ac_link"
6865case "(($ac_try" in
6866  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6867  *) ac_try_echo=$ac_try;;
6868esac
6869eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6870  (eval "$ac_link") 2>conftest.er1
6871  ac_status=$?
6872  grep -v '^ *+' conftest.er1 >conftest.err
6873  rm -f conftest.er1
6874  cat conftest.err >&5
6875  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6876  (exit $ac_status); } && {
6877	 test -z "$ac_c_werror_flag" ||
6878	 test ! -s conftest.err
6879       } && test -s conftest$ac_exeext &&
6880       $as_test_x conftest$ac_exeext; then
6881  ac_cv_lib_pthread_pthread_mutex_init=yes
6882else
6883  echo "$as_me: failed program was:" >&5
6884sed 's/^/| /' conftest.$ac_ext >&5
6885
6886	ac_cv_lib_pthread_pthread_mutex_init=no
6887fi
6888
6889rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6890      conftest$ac_exeext conftest.$ac_ext
6891LIBS=$ac_check_lib_save_LIBS
6892fi
6893{ echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
6894echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
6895if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
6896  tcl_ok=yes
6897else
6898  tcl_ok=no
6899fi
6900
6901	    if test "$tcl_ok" = "no"; then
6902		# Check a little harder for __pthread_mutex_init in the same
6903		# library, as some systems hide it there until pthread.h is
6904		# defined.  We could alternatively do an AC_TRY_COMPILE with
6905		# pthread.h, but that will work with libpthread really doesn't
6906		# exist, like AIX 4.2.  [Bug: 4359]
6907		{ echo "$as_me:$LINENO: checking for __pthread_mutex_init in -lpthread" >&5
6908echo $ECHO_N "checking for __pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
6909if test "${ac_cv_lib_pthread___pthread_mutex_init+set}" = set; then
6910  echo $ECHO_N "(cached) $ECHO_C" >&6
6911else
6912  ac_check_lib_save_LIBS=$LIBS
6913LIBS="-lpthread  $LIBS"
6914cat >conftest.$ac_ext <<_ACEOF
6915/* confdefs.h.  */
6916_ACEOF
6917cat confdefs.h >>conftest.$ac_ext
6918cat >>conftest.$ac_ext <<_ACEOF
6919/* end confdefs.h.  */
6920
6921/* Override any GCC internal prototype to avoid an error.
6922   Use char because int might match the return type of a GCC
6923   builtin and then its argument prototype would still apply.  */
6924#ifdef __cplusplus
6925extern "C"
6926#endif
6927char __pthread_mutex_init ();
6928int
6929main ()
6930{
6931return __pthread_mutex_init ();
6932  ;
6933  return 0;
6934}
6935_ACEOF
6936rm -f conftest.$ac_objext conftest$ac_exeext
6937if { (ac_try="$ac_link"
6938case "(($ac_try" in
6939  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6940  *) ac_try_echo=$ac_try;;
6941esac
6942eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6943  (eval "$ac_link") 2>conftest.er1
6944  ac_status=$?
6945  grep -v '^ *+' conftest.er1 >conftest.err
6946  rm -f conftest.er1
6947  cat conftest.err >&5
6948  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6949  (exit $ac_status); } && {
6950	 test -z "$ac_c_werror_flag" ||
6951	 test ! -s conftest.err
6952       } && test -s conftest$ac_exeext &&
6953       $as_test_x conftest$ac_exeext; then
6954  ac_cv_lib_pthread___pthread_mutex_init=yes
6955else
6956  echo "$as_me: failed program was:" >&5
6957sed 's/^/| /' conftest.$ac_ext >&5
6958
6959	ac_cv_lib_pthread___pthread_mutex_init=no
6960fi
6961
6962rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6963      conftest$ac_exeext conftest.$ac_ext
6964LIBS=$ac_check_lib_save_LIBS
6965fi
6966{ echo "$as_me:$LINENO: result: $ac_cv_lib_pthread___pthread_mutex_init" >&5
6967echo "${ECHO_T}$ac_cv_lib_pthread___pthread_mutex_init" >&6; }
6968if test $ac_cv_lib_pthread___pthread_mutex_init = yes; then
6969  tcl_ok=yes
6970else
6971  tcl_ok=no
6972fi
6973
6974	    fi
6975
6976	    if test "$tcl_ok" = "yes"; then
6977		# The space is needed
6978		THREADS_LIBS=" -lpthread"
6979	    else
6980		{ echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthreads" >&5
6981echo $ECHO_N "checking for pthread_mutex_init in -lpthreads... $ECHO_C" >&6; }
6982if test "${ac_cv_lib_pthreads_pthread_mutex_init+set}" = set; then
6983  echo $ECHO_N "(cached) $ECHO_C" >&6
6984else
6985  ac_check_lib_save_LIBS=$LIBS
6986LIBS="-lpthreads  $LIBS"
6987cat >conftest.$ac_ext <<_ACEOF
6988/* confdefs.h.  */
6989_ACEOF
6990cat confdefs.h >>conftest.$ac_ext
6991cat >>conftest.$ac_ext <<_ACEOF
6992/* end confdefs.h.  */
6993
6994/* Override any GCC internal prototype to avoid an error.
6995   Use char because int might match the return type of a GCC
6996   builtin and then its argument prototype would still apply.  */
6997#ifdef __cplusplus
6998extern "C"
6999#endif
7000char pthread_mutex_init ();
7001int
7002main ()
7003{
7004return pthread_mutex_init ();
7005  ;
7006  return 0;
7007}
7008_ACEOF
7009rm -f conftest.$ac_objext conftest$ac_exeext
7010if { (ac_try="$ac_link"
7011case "(($ac_try" in
7012  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7013  *) ac_try_echo=$ac_try;;
7014esac
7015eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7016  (eval "$ac_link") 2>conftest.er1
7017  ac_status=$?
7018  grep -v '^ *+' conftest.er1 >conftest.err
7019  rm -f conftest.er1
7020  cat conftest.err >&5
7021  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7022  (exit $ac_status); } && {
7023	 test -z "$ac_c_werror_flag" ||
7024	 test ! -s conftest.err
7025       } && test -s conftest$ac_exeext &&
7026       $as_test_x conftest$ac_exeext; then
7027  ac_cv_lib_pthreads_pthread_mutex_init=yes
7028else
7029  echo "$as_me: failed program was:" >&5
7030sed 's/^/| /' conftest.$ac_ext >&5
7031
7032	ac_cv_lib_pthreads_pthread_mutex_init=no
7033fi
7034
7035rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7036      conftest$ac_exeext conftest.$ac_ext
7037LIBS=$ac_check_lib_save_LIBS
7038fi
7039{ echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_mutex_init" >&5
7040echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_mutex_init" >&6; }
7041if test $ac_cv_lib_pthreads_pthread_mutex_init = yes; then
7042  tcl_ok=yes
7043else
7044  tcl_ok=no
7045fi
7046
7047		if test "$tcl_ok" = "yes"; then
7048		    # The space is needed
7049		    THREADS_LIBS=" -lpthreads"
7050		else
7051		    { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lc" >&5
7052echo $ECHO_N "checking for pthread_mutex_init in -lc... $ECHO_C" >&6; }
7053if test "${ac_cv_lib_c_pthread_mutex_init+set}" = set; then
7054  echo $ECHO_N "(cached) $ECHO_C" >&6
7055else
7056  ac_check_lib_save_LIBS=$LIBS
7057LIBS="-lc  $LIBS"
7058cat >conftest.$ac_ext <<_ACEOF
7059/* confdefs.h.  */
7060_ACEOF
7061cat confdefs.h >>conftest.$ac_ext
7062cat >>conftest.$ac_ext <<_ACEOF
7063/* end confdefs.h.  */
7064
7065/* Override any GCC internal prototype to avoid an error.
7066   Use char because int might match the return type of a GCC
7067   builtin and then its argument prototype would still apply.  */
7068#ifdef __cplusplus
7069extern "C"
7070#endif
7071char pthread_mutex_init ();
7072int
7073main ()
7074{
7075return pthread_mutex_init ();
7076  ;
7077  return 0;
7078}
7079_ACEOF
7080rm -f conftest.$ac_objext conftest$ac_exeext
7081if { (ac_try="$ac_link"
7082case "(($ac_try" in
7083  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7084  *) ac_try_echo=$ac_try;;
7085esac
7086eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7087  (eval "$ac_link") 2>conftest.er1
7088  ac_status=$?
7089  grep -v '^ *+' conftest.er1 >conftest.err
7090  rm -f conftest.er1
7091  cat conftest.err >&5
7092  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7093  (exit $ac_status); } && {
7094	 test -z "$ac_c_werror_flag" ||
7095	 test ! -s conftest.err
7096       } && test -s conftest$ac_exeext &&
7097       $as_test_x conftest$ac_exeext; then
7098  ac_cv_lib_c_pthread_mutex_init=yes
7099else
7100  echo "$as_me: failed program was:" >&5
7101sed 's/^/| /' conftest.$ac_ext >&5
7102
7103	ac_cv_lib_c_pthread_mutex_init=no
7104fi
7105
7106rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7107      conftest$ac_exeext conftest.$ac_ext
7108LIBS=$ac_check_lib_save_LIBS
7109fi
7110{ echo "$as_me:$LINENO: result: $ac_cv_lib_c_pthread_mutex_init" >&5
7111echo "${ECHO_T}$ac_cv_lib_c_pthread_mutex_init" >&6; }
7112if test $ac_cv_lib_c_pthread_mutex_init = yes; then
7113  tcl_ok=yes
7114else
7115  tcl_ok=no
7116fi
7117
7118		    if test "$tcl_ok" = "no"; then
7119			{ echo "$as_me:$LINENO: checking for pthread_mutex_init in -lc_r" >&5
7120echo $ECHO_N "checking for pthread_mutex_init in -lc_r... $ECHO_C" >&6; }
7121if test "${ac_cv_lib_c_r_pthread_mutex_init+set}" = set; then
7122  echo $ECHO_N "(cached) $ECHO_C" >&6
7123else
7124  ac_check_lib_save_LIBS=$LIBS
7125LIBS="-lc_r  $LIBS"
7126cat >conftest.$ac_ext <<_ACEOF
7127/* confdefs.h.  */
7128_ACEOF
7129cat confdefs.h >>conftest.$ac_ext
7130cat >>conftest.$ac_ext <<_ACEOF
7131/* end confdefs.h.  */
7132
7133/* Override any GCC internal prototype to avoid an error.
7134   Use char because int might match the return type of a GCC
7135   builtin and then its argument prototype would still apply.  */
7136#ifdef __cplusplus
7137extern "C"
7138#endif
7139char pthread_mutex_init ();
7140int
7141main ()
7142{
7143return pthread_mutex_init ();
7144  ;
7145  return 0;
7146}
7147_ACEOF
7148rm -f conftest.$ac_objext conftest$ac_exeext
7149if { (ac_try="$ac_link"
7150case "(($ac_try" in
7151  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7152  *) ac_try_echo=$ac_try;;
7153esac
7154eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7155  (eval "$ac_link") 2>conftest.er1
7156  ac_status=$?
7157  grep -v '^ *+' conftest.er1 >conftest.err
7158  rm -f conftest.er1
7159  cat conftest.err >&5
7160  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7161  (exit $ac_status); } && {
7162	 test -z "$ac_c_werror_flag" ||
7163	 test ! -s conftest.err
7164       } && test -s conftest$ac_exeext &&
7165       $as_test_x conftest$ac_exeext; then
7166  ac_cv_lib_c_r_pthread_mutex_init=yes
7167else
7168  echo "$as_me: failed program was:" >&5
7169sed 's/^/| /' conftest.$ac_ext >&5
7170
7171	ac_cv_lib_c_r_pthread_mutex_init=no
7172fi
7173
7174rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7175      conftest$ac_exeext conftest.$ac_ext
7176LIBS=$ac_check_lib_save_LIBS
7177fi
7178{ echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_mutex_init" >&5
7179echo "${ECHO_T}$ac_cv_lib_c_r_pthread_mutex_init" >&6; }
7180if test $ac_cv_lib_c_r_pthread_mutex_init = yes; then
7181  tcl_ok=yes
7182else
7183  tcl_ok=no
7184fi
7185
7186			if test "$tcl_ok" = "yes"; then
7187			    # The space is needed
7188			    THREADS_LIBS=" -pthread"
7189			else
7190			    TCL_THREADS=0
7191			    { echo "$as_me:$LINENO: WARNING: Do not know how to find pthread lib on your system - thread support disabled" >&5
7192echo "$as_me: WARNING: Do not know how to find pthread lib on your system - thread support disabled" >&2;}
7193			fi
7194		    fi
7195		fi
7196	    fi
7197	fi
7198    else
7199	TCL_THREADS=0
7200    fi
7201    # Do checking message here to not mess up interleaved configure output
7202    { echo "$as_me:$LINENO: checking for building with threads" >&5
7203echo $ECHO_N "checking for building with threads... $ECHO_C" >&6; }
7204    if test "${TCL_THREADS}" = 1; then
7205
7206cat >>confdefs.h <<\_ACEOF
7207#define TCL_THREADS 1
7208_ACEOF
7209
7210	{ echo "$as_me:$LINENO: result: yes (default)" >&5
7211echo "${ECHO_T}yes (default)" >&6; }
7212    else
7213	{ echo "$as_me:$LINENO: result: no" >&5
7214echo "${ECHO_T}no" >&6; }
7215    fi
7216    # TCL_THREADS sanity checking.  See if our request for building with
7217    # threads is the same as the way Tcl was built.  If not, warn the user.
7218    case ${TCL_DEFS} in
7219	*THREADS=1*)
7220	    if test "${TCL_THREADS}" = "0"; then
7221		{ echo "$as_me:$LINENO: WARNING:
7222    Building ${PACKAGE_NAME} without threads enabled, but building against Tcl
7223    that IS thread-enabled.  It is recommended to use --enable-threads." >&5
7224echo "$as_me: WARNING:
7225    Building ${PACKAGE_NAME} without threads enabled, but building against Tcl
7226    that IS thread-enabled.  It is recommended to use --enable-threads." >&2;}
7227	    fi
7228	    ;;
7229	*)
7230	    if test "${TCL_THREADS}" = "1"; then
7231		{ echo "$as_me:$LINENO: WARNING:
7232    --enable-threads requested, but building against a Tcl that is NOT
7233    thread-enabled.  This is an OK configuration that will also run in
7234    a thread-enabled core." >&5
7235echo "$as_me: WARNING:
7236    --enable-threads requested, but building against a Tcl that is NOT
7237    thread-enabled.  This is an OK configuration that will also run in
7238    a thread-enabled core." >&2;}
7239	    fi
7240	    ;;
7241    esac
7242
7243
7244
7245#--------------------------------------------------------------------
7246# The statement below defines a collection of symbols related to
7247# building as a shared library instead of a static library.
7248#--------------------------------------------------------------------
7249
7250
7251    { echo "$as_me:$LINENO: checking how to build libraries" >&5
7252echo $ECHO_N "checking how to build libraries... $ECHO_C" >&6; }
7253    # Check whether --enable-shared was given.
7254if test "${enable_shared+set}" = set; then
7255  enableval=$enable_shared; tcl_ok=$enableval
7256else
7257  tcl_ok=yes
7258fi
7259
7260
7261    if test "${enable_shared+set}" = set; then
7262	enableval="$enable_shared"
7263	tcl_ok=$enableval
7264    else
7265	tcl_ok=yes
7266    fi
7267
7268    if test "$tcl_ok" = "yes" ; then
7269	{ echo "$as_me:$LINENO: result: shared" >&5
7270echo "${ECHO_T}shared" >&6; }
7271	SHARED_BUILD=1
7272    else
7273	{ echo "$as_me:$LINENO: result: static" >&5
7274echo "${ECHO_T}static" >&6; }
7275	SHARED_BUILD=0
7276
7277cat >>confdefs.h <<\_ACEOF
7278#define STATIC_BUILD 1
7279_ACEOF
7280
7281    fi
7282
7283
7284
7285#--------------------------------------------------------------------
7286# This macro figures out what flags to use with the compiler/linker
7287# when building shared/static debug/optimized objects.  This information
7288# can be taken from the tclConfig.sh file, but this figures it all out.
7289#--------------------------------------------------------------------
7290
7291
7292
7293
7294    # Step 0.a: Enable 64 bit support?
7295
7296    { echo "$as_me:$LINENO: checking if 64bit support is requested" >&5
7297echo $ECHO_N "checking if 64bit support is requested... $ECHO_C" >&6; }
7298    # Check whether --enable-64bit was given.
7299if test "${enable_64bit+set}" = set; then
7300  enableval=$enable_64bit; do64bit=$enableval
7301else
7302  do64bit=no
7303fi
7304
7305    { echo "$as_me:$LINENO: result: $do64bit" >&5
7306echo "${ECHO_T}$do64bit" >&6; }
7307
7308    # Step 0.b: Enable Solaris 64 bit VIS support?
7309
7310    { echo "$as_me:$LINENO: checking if 64bit Sparc VIS support is requested" >&5
7311echo $ECHO_N "checking if 64bit Sparc VIS support is requested... $ECHO_C" >&6; }
7312    # Check whether --enable-64bit-vis was given.
7313if test "${enable_64bit_vis+set}" = set; then
7314  enableval=$enable_64bit_vis; do64bitVIS=$enableval
7315else
7316  do64bitVIS=no
7317fi
7318
7319    { echo "$as_me:$LINENO: result: $do64bitVIS" >&5
7320echo "${ECHO_T}$do64bitVIS" >&6; }
7321    # Force 64bit on with VIS
7322    if test "$do64bitVIS" = "yes"; then
7323  do64bit=yes
7324fi
7325
7326
7327    # Step 0.c: Check if visibility support is available. Do this here so
7328    # that platform specific alternatives can be used below if this fails.
7329
7330    { echo "$as_me:$LINENO: checking if compiler supports visibility \"hidden\"" >&5
7331echo $ECHO_N "checking if compiler supports visibility \"hidden\"... $ECHO_C" >&6; }
7332if test "${tcl_cv_cc_visibility_hidden+set}" = set; then
7333  echo $ECHO_N "(cached) $ECHO_C" >&6
7334else
7335
7336	hold_cflags=$CFLAGS; CFLAGS="$CFLAGS -Werror"
7337	cat >conftest.$ac_ext <<_ACEOF
7338/* confdefs.h.  */
7339_ACEOF
7340cat confdefs.h >>conftest.$ac_ext
7341cat >>conftest.$ac_ext <<_ACEOF
7342/* end confdefs.h.  */
7343
7344	    extern __attribute__((__visibility__("hidden"))) void f(void);
7345	    void f(void) {}
7346int
7347main ()
7348{
7349f();
7350  ;
7351  return 0;
7352}
7353_ACEOF
7354rm -f conftest.$ac_objext conftest$ac_exeext
7355if { (ac_try="$ac_link"
7356case "(($ac_try" in
7357  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7358  *) ac_try_echo=$ac_try;;
7359esac
7360eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7361  (eval "$ac_link") 2>conftest.er1
7362  ac_status=$?
7363  grep -v '^ *+' conftest.er1 >conftest.err
7364  rm -f conftest.er1
7365  cat conftest.err >&5
7366  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7367  (exit $ac_status); } && {
7368	 test -z "$ac_c_werror_flag" ||
7369	 test ! -s conftest.err
7370       } && test -s conftest$ac_exeext &&
7371       $as_test_x conftest$ac_exeext; then
7372  tcl_cv_cc_visibility_hidden=yes
7373else
7374  echo "$as_me: failed program was:" >&5
7375sed 's/^/| /' conftest.$ac_ext >&5
7376
7377	tcl_cv_cc_visibility_hidden=no
7378fi
7379
7380rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7381      conftest$ac_exeext conftest.$ac_ext
7382	CFLAGS=$hold_cflags
7383fi
7384{ echo "$as_me:$LINENO: result: $tcl_cv_cc_visibility_hidden" >&5
7385echo "${ECHO_T}$tcl_cv_cc_visibility_hidden" >&6; }
7386    if test $tcl_cv_cc_visibility_hidden = yes; then
7387
7388
7389cat >>confdefs.h <<\_ACEOF
7390#define MODULE_SCOPE extern __attribute__((__visibility__("hidden")))
7391_ACEOF
7392
7393
7394fi
7395
7396
7397    # Step 0.d: Disable -rpath support?
7398
7399    { echo "$as_me:$LINENO: checking if rpath support is requested" >&5
7400echo $ECHO_N "checking if rpath support is requested... $ECHO_C" >&6; }
7401    # Check whether --enable-rpath was given.
7402if test "${enable_rpath+set}" = set; then
7403  enableval=$enable_rpath; doRpath=$enableval
7404else
7405  doRpath=yes
7406fi
7407
7408    { echo "$as_me:$LINENO: result: $doRpath" >&5
7409echo "${ECHO_T}$doRpath" >&6; }
7410
7411    # TEA specific: Cross-compiling options for Windows/CE builds?
7412
7413    if test "${TEA_PLATFORM}" = windows; then
7414
7415	{ echo "$as_me:$LINENO: checking if Windows/CE build is requested" >&5
7416echo $ECHO_N "checking if Windows/CE build is requested... $ECHO_C" >&6; }
7417	# Check whether --enable-wince was given.
7418if test "${enable_wince+set}" = set; then
7419  enableval=$enable_wince; doWince=$enableval
7420else
7421  doWince=no
7422fi
7423
7424	{ echo "$as_me:$LINENO: result: $doWince" >&5
7425echo "${ECHO_T}$doWince" >&6; }
7426
7427fi
7428
7429
7430    # Set the variable "system" to hold the name and version number
7431    # for the system.
7432
7433
7434    { echo "$as_me:$LINENO: checking system version" >&5
7435echo $ECHO_N "checking system version... $ECHO_C" >&6; }
7436if test "${tcl_cv_sys_version+set}" = set; then
7437  echo $ECHO_N "(cached) $ECHO_C" >&6
7438else
7439
7440	# TEA specific:
7441	if test "${TEA_PLATFORM}" = "windows" ; then
7442	    tcl_cv_sys_version=windows
7443	else
7444	    tcl_cv_sys_version=`uname -s`-`uname -r`
7445	    if test "$?" -ne 0 ; then
7446		{ echo "$as_me:$LINENO: WARNING: can't find uname command" >&5
7447echo "$as_me: WARNING: can't find uname command" >&2;}
7448		tcl_cv_sys_version=unknown
7449	    else
7450		if test "`uname -s`" = "AIX" ; then
7451		    tcl_cv_sys_version=AIX-`uname -v`.`uname -r`
7452		fi
7453	    fi
7454	fi
7455
7456fi
7457{ echo "$as_me:$LINENO: result: $tcl_cv_sys_version" >&5
7458echo "${ECHO_T}$tcl_cv_sys_version" >&6; }
7459    system=$tcl_cv_sys_version
7460
7461
7462    # Require ranlib early so we can override it in special cases below.
7463
7464
7465
7466    # Set configuration options based on system name and version.
7467    # This is similar to Tcl's unix/tcl.m4 except that we've added a
7468    # "windows" case and removed some core-only vars.
7469
7470    do64bit_ok=no
7471    # default to '{$LIBS}' and set to "" on per-platform necessary basis
7472    SHLIB_LD_LIBS='${LIBS}'
7473    # When ld needs options to work in 64-bit mode, put them in
7474    # LDFLAGS_ARCH so they eventually end up in LDFLAGS even if [load]
7475    # is disabled by the user. [Bug 1016796]
7476    LDFLAGS_ARCH=""
7477    UNSHARED_LIB_SUFFIX=""
7478    # TEA specific: use PACKAGE_VERSION instead of VERSION
7479    TCL_TRIM_DOTS='`echo ${PACKAGE_VERSION} | tr -d .`'
7480    ECHO_VERSION='`echo ${PACKAGE_VERSION}`'
7481    TCL_LIB_VERSIONS_OK=ok
7482    CFLAGS_DEBUG=-g
7483    CFLAGS_OPTIMIZE=-O
7484    if test "$GCC" = yes; then
7485
7486	# TEA specific:
7487	CFLAGS_OPTIMIZE=-O2
7488	CFLAGS_WARNING="-Wall"
7489
7490else
7491  CFLAGS_WARNING=""
7492fi
7493
7494    # Extract the first word of "ar", so it can be a program name with args.
7495set dummy ar; ac_word=$2
7496{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7497echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7498if test "${ac_cv_prog_AR+set}" = set; then
7499  echo $ECHO_N "(cached) $ECHO_C" >&6
7500else
7501  if test -n "$AR"; then
7502  ac_cv_prog_AR="$AR" # Let the user override the test.
7503else
7504as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7505for as_dir in $PATH
7506do
7507  IFS=$as_save_IFS
7508  test -z "$as_dir" && as_dir=.
7509  for ac_exec_ext in '' $ac_executable_extensions; do
7510  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7511    ac_cv_prog_AR="ar"
7512    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7513    break 2
7514  fi
7515done
7516done
7517IFS=$as_save_IFS
7518
7519fi
7520fi
7521AR=$ac_cv_prog_AR
7522if test -n "$AR"; then
7523  { echo "$as_me:$LINENO: result: $AR" >&5
7524echo "${ECHO_T}$AR" >&6; }
7525else
7526  { echo "$as_me:$LINENO: result: no" >&5
7527echo "${ECHO_T}no" >&6; }
7528fi
7529
7530
7531    STLIB_LD='${AR} cr'
7532    LD_LIBRARY_PATH_VAR="LD_LIBRARY_PATH"
7533    if test "x$SHLIB_VERSION" = x; then
7534  SHLIB_VERSION="1.0"
7535fi
7536
7537    case $system in
7538	# TEA specific:
7539	windows)
7540	    # This is a 2-stage check to make sure we have the 64-bit SDK
7541	    # We have to know where the SDK is installed.
7542	    # This magic is based on MS Platform SDK for Win2003 SP1 - hobbs
7543	    # MACHINE is IX86 for LINK, but this is used by the manifest,
7544	    # which requires x86|amd64|ia64.
7545	    MACHINE="X86"
7546	    if test "$do64bit" != "no" ; then
7547		if test "x${MSSDK}x" = "xx" ; then
7548		    MSSDK="C:/Progra~1/Microsoft Platform SDK"
7549		fi
7550		MSSDK=`echo "$MSSDK" | sed -e  's!\\\!/!g'`
7551		PATH64=""
7552		case "$do64bit" in
7553		    amd64|x64|yes)
7554			MACHINE="AMD64" ; # default to AMD64 64-bit build
7555			PATH64="${MSSDK}/Bin/Win64/x86/AMD64"
7556			;;
7557		    ia64)
7558			MACHINE="IA64"
7559			PATH64="${MSSDK}/Bin/Win64"
7560			;;
7561		esac
7562		if test ! -d "${PATH64}" ; then
7563		    { echo "$as_me:$LINENO: WARNING: Could not find 64-bit $MACHINE SDK to enable 64bit mode" >&5
7564echo "$as_me: WARNING: Could not find 64-bit $MACHINE SDK to enable 64bit mode" >&2;}
7565		    { echo "$as_me:$LINENO: WARNING: Ensure latest Platform SDK is installed" >&5
7566echo "$as_me: WARNING: Ensure latest Platform SDK is installed" >&2;}
7567		    do64bit="no"
7568		else
7569		    { echo "$as_me:$LINENO: result:    Using 64-bit $MACHINE mode" >&5
7570echo "${ECHO_T}   Using 64-bit $MACHINE mode" >&6; }
7571		    do64bit_ok="yes"
7572		fi
7573	    fi
7574
7575	    if test "$doWince" != "no" ; then
7576		if test "$do64bit" != "no" ; then
7577		    { { echo "$as_me:$LINENO: error: Windows/CE and 64-bit builds incompatible" >&5
7578echo "$as_me: error: Windows/CE and 64-bit builds incompatible" >&2;}
7579   { (exit 1); exit 1; }; }
7580		fi
7581		if test "$GCC" = "yes" ; then
7582		    { { echo "$as_me:$LINENO: error: Windows/CE and GCC builds incompatible" >&5
7583echo "$as_me: error: Windows/CE and GCC builds incompatible" >&2;}
7584   { (exit 1); exit 1; }; }
7585		fi
7586
7587    # First, look for one uninstalled.
7588    # the alternative search directory is invoked by --with-celib
7589
7590    if test x"${no_celib}" = x ; then
7591	# we reset no_celib in case something fails here
7592	no_celib=true
7593
7594# Check whether --with-celib was given.
7595if test "${with_celib+set}" = set; then
7596  withval=$with_celib; with_celibconfig=${withval}
7597fi
7598
7599	{ echo "$as_me:$LINENO: checking for Windows/CE celib directory" >&5
7600echo $ECHO_N "checking for Windows/CE celib directory... $ECHO_C" >&6; }
7601	if test "${ac_cv_c_celibconfig+set}" = set; then
7602  echo $ECHO_N "(cached) $ECHO_C" >&6
7603else
7604
7605	    # First check to see if --with-celibconfig was specified.
7606	    if test x"${with_celibconfig}" != x ; then
7607		if test -d "${with_celibconfig}/inc" ; then
7608		    ac_cv_c_celibconfig=`(cd ${with_celibconfig}; pwd)`
7609		else
7610		    { { echo "$as_me:$LINENO: error: ${with_celibconfig} directory doesn't contain inc directory" >&5
7611echo "$as_me: error: ${with_celibconfig} directory doesn't contain inc directory" >&2;}
7612   { (exit 1); exit 1; }; }
7613		fi
7614	    fi
7615
7616	    # then check for a celib library
7617	    if test x"${ac_cv_c_celibconfig}" = x ; then
7618		for i in \
7619			../celib-palm-3.0 \
7620			../celib \
7621			../../celib-palm-3.0 \
7622			../../celib \
7623			`ls -dr ../celib-*3.[0-9]* 2>/dev/null` \
7624			${srcdir}/../celib-palm-3.0 \
7625			${srcdir}/../celib \
7626			`ls -dr ${srcdir}/../celib-*3.[0-9]* 2>/dev/null` \
7627			; do
7628		    if test -d "$i/inc" ; then
7629			ac_cv_c_celibconfig=`(cd $i; pwd)`
7630			break
7631		    fi
7632		done
7633	    fi
7634
7635fi
7636
7637	if test x"${ac_cv_c_celibconfig}" = x ; then
7638	    { { echo "$as_me:$LINENO: error: Cannot find celib support library directory" >&5
7639echo "$as_me: error: Cannot find celib support library directory" >&2;}
7640   { (exit 1); exit 1; }; }
7641	else
7642	    no_celib=
7643	    CELIB_DIR=${ac_cv_c_celibconfig}
7644	    CELIB_DIR=`echo "$CELIB_DIR" | sed -e 's!\\\!/!g'`
7645	    { echo "$as_me:$LINENO: result: found $CELIB_DIR" >&5
7646echo "${ECHO_T}found $CELIB_DIR" >&6; }
7647	fi
7648    fi
7649
7650		# Set defaults for common evc4/PPC2003 setup
7651		# Currently Tcl requires 300+, possibly 420+ for sockets
7652		CEVERSION=420; 		# could be 211 300 301 400 420 ...
7653		TARGETCPU=ARMV4;	# could be ARMV4 ARM MIPS SH3 X86 ...
7654		ARCH=ARM;		# could be ARM MIPS X86EM ...
7655		PLATFORM="Pocket PC 2003"; # or "Pocket PC 2002"
7656		if test "$doWince" != "yes"; then
7657		    # If !yes then the user specified something
7658		    # Reset ARCH to allow user to skip specifying it
7659		    ARCH=
7660		    eval `echo $doWince | awk -F, '{ \
7661	    if (length($1)) { printf "CEVERSION=\"%s\"\n", $1; \
7662	    if ($1 < 400)   { printf "PLATFORM=\"Pocket PC 2002\"\n" } }; \
7663	    if (length($2)) { printf "TARGETCPU=\"%s\"\n", toupper($2) }; \
7664	    if (length($3)) { printf "ARCH=\"%s\"\n", toupper($3) }; \
7665	    if (length($4)) { printf "PLATFORM=\"%s\"\n", $4 }; \
7666		    }'`
7667		    if test "x${ARCH}" = "x" ; then
7668			ARCH=$TARGETCPU;
7669		    fi
7670		fi
7671		OSVERSION=WCE$CEVERSION;
7672	    	if test "x${WCEROOT}" = "x" ; then
7673			WCEROOT="C:/Program Files/Microsoft eMbedded C++ 4.0"
7674		    if test ! -d "${WCEROOT}" ; then
7675			WCEROOT="C:/Program Files/Microsoft eMbedded Tools"
7676		    fi
7677		fi
7678		if test "x${SDKROOT}" = "x" ; then
7679		    SDKROOT="C:/Program Files/Windows CE Tools"
7680		    if test ! -d "${SDKROOT}" ; then
7681			SDKROOT="C:/Windows CE Tools"
7682		    fi
7683		fi
7684		WCEROOT=`echo "$WCEROOT" | sed -e 's!\\\!/!g'`
7685		SDKROOT=`echo "$SDKROOT" | sed -e 's!\\\!/!g'`
7686		if test ! -d "${SDKROOT}/${OSVERSION}/${PLATFORM}/Lib/${TARGETCPU}" \
7687		    -o ! -d "${WCEROOT}/EVC/${OSVERSION}/bin"; then
7688		    { { echo "$as_me:$LINENO: error: could not find PocketPC SDK or target compiler to enable WinCE mode $CEVERSION,$TARGETCPU,$ARCH,$PLATFORM" >&5
7689echo "$as_me: error: could not find PocketPC SDK or target compiler to enable WinCE mode $CEVERSION,$TARGETCPU,$ARCH,$PLATFORM" >&2;}
7690   { (exit 1); exit 1; }; }
7691		    doWince="no"
7692		else
7693		    # We could PATH_NOSPACE these, but that's not important,
7694		    # as long as we quote them when used.
7695		    CEINCLUDE="${SDKROOT}/${OSVERSION}/${PLATFORM}/include"
7696		    if test -d "${CEINCLUDE}/${TARGETCPU}" ; then
7697			CEINCLUDE="${CEINCLUDE}/${TARGETCPU}"
7698		    fi
7699		    CELIBPATH="${SDKROOT}/${OSVERSION}/${PLATFORM}/Lib/${TARGETCPU}"
7700    		fi
7701	    fi
7702
7703	    if test "$GCC" != "yes" ; then
7704	        if test "${SHARED_BUILD}" = "0" ; then
7705		    runtime=-MT
7706	        else
7707		    runtime=-MD
7708	        fi
7709
7710                if test "$do64bit" != "no" ; then
7711		    # All this magic is necessary for the Win64 SDK RC1 - hobbs
7712		    CC="\"${PATH64}/cl.exe\""
7713		    CFLAGS="${CFLAGS} -I\"${MSSDK}/Include\" -I\"${MSSDK}/Include/crt\" -I\"${MSSDK}/Include/crt/sys\""
7714		    RC="\"${MSSDK}/bin/rc.exe\""
7715		    lflags="-nologo -MACHINE:${MACHINE} -LIBPATH:\"${MSSDK}/Lib/${MACHINE}\""
7716		    LINKBIN="\"${PATH64}/link.exe\""
7717		    CFLAGS_DEBUG="-nologo -Zi -Od -W3 ${runtime}d"
7718		    CFLAGS_OPTIMIZE="-nologo -O2 -W2 ${runtime}"
7719		    # Avoid 'unresolved external symbol __security_cookie'
7720		    # errors, c.f. http://support.microsoft.com/?id=894573
7721
7722    vars="bufferoverflowU.lib"
7723    for i in $vars; do
7724	if test "${TEA_PLATFORM}" = "windows" -a "$GCC" = "yes" ; then
7725	    # Convert foo.lib to -lfoo for GCC.  No-op if not *.lib
7726	    i=`echo "$i" | sed -e 's/^\([^-].*\)\.lib$/-l\1/i'`
7727	fi
7728	PKG_LIBS="$PKG_LIBS $i"
7729    done
7730
7731
7732		elif test "$doWince" != "no" ; then
7733		    CEBINROOT="${WCEROOT}/EVC/${OSVERSION}/bin"
7734		    if test "${TARGETCPU}" = "X86"; then
7735			CC="\"${CEBINROOT}/cl.exe\""
7736		    else
7737			CC="\"${CEBINROOT}/cl${ARCH}.exe\""
7738		    fi
7739		    CFLAGS="$CFLAGS -I\"${CELIB_DIR}/inc\" -I\"${CEINCLUDE}\""
7740		    RC="\"${WCEROOT}/Common/EVC/bin/rc.exe\""
7741		    arch=`echo ${ARCH} | awk '{print tolower($0)}'`
7742		    defs="${ARCH} _${ARCH}_ ${arch} PALM_SIZE _MT _WINDOWS"
7743		    if test "${SHARED_BUILD}" = "1" ; then
7744			# Static CE builds require static celib as well
7745		    	defs="${defs} _DLL"
7746		    fi
7747		    for i in $defs ; do
7748
7749cat >>confdefs.h <<_ACEOF
7750#define $i 1
7751_ACEOF
7752
7753		    done
7754
7755cat >>confdefs.h <<_ACEOF
7756#define _WIN32_WCE $CEVERSION
7757_ACEOF
7758
7759
7760cat >>confdefs.h <<_ACEOF
7761#define UNDER_CE $CEVERSION
7762_ACEOF
7763
7764		    CFLAGS_DEBUG="-nologo -Zi -Od"
7765		    CFLAGS_OPTIMIZE="-nologo -Ox"
7766		    lversion=`echo ${CEVERSION} | sed -e 's/\(.\)\(..\)/\1\.\2/'`
7767		    lflags="-MACHINE:${ARCH} -LIBPATH:\"${CELIBPATH}\" -subsystem:windowsce,${lversion} -nologo"
7768		    LINKBIN="\"${CEBINROOT}/link.exe\""
7769
7770		else
7771		    RC="rc"
7772		    lflags="-nologo"
7773    		    LINKBIN="link"
7774		    CFLAGS_DEBUG="-nologo -Z7 -Od -W3 -WX ${runtime}d"
7775		    CFLAGS_OPTIMIZE="-nologo -O2 -W2 ${runtime}"
7776		fi
7777	    fi
7778
7779	    if test "$GCC" = "yes"; then
7780		# mingw gcc mode
7781		RC="windres"
7782		CFLAGS_DEBUG="-g"
7783		CFLAGS_OPTIMIZE="-O2 -fomit-frame-pointer"
7784		SHLIB_LD="$CC -shared"
7785		UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.a'
7786		LDFLAGS_CONSOLE="-wl,--subsystem,console ${lflags}"
7787		LDFLAGS_WINDOW="-wl,--subsystem,windows ${lflags}"
7788	    else
7789		SHLIB_LD="${LINKBIN} -dll ${lflags}"
7790		# link -lib only works when -lib is the first arg
7791		STLIB_LD="${LINKBIN} -lib ${lflags}"
7792		UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.lib'
7793		PATHTYPE=-w
7794		# For information on what debugtype is most useful, see:
7795		# http://msdn.microsoft.com/library/en-us/dnvc60/html/gendepdebug.asp
7796		# and also
7797		# http://msdn2.microsoft.com/en-us/library/y0zzbyt4%28VS.80%29.aspx
7798		# This essentially turns it all on.
7799		LDFLAGS_DEBUG="-debug -debugtype:cv"
7800		LDFLAGS_OPTIMIZE="-release"
7801		if test "$doWince" != "no" ; then
7802		    LDFLAGS_CONSOLE="-link ${lflags}"
7803		    LDFLAGS_WINDOW=${LDFLAGS_CONSOLE}
7804		else
7805		    LDFLAGS_CONSOLE="-link -subsystem:console ${lflags}"
7806		    LDFLAGS_WINDOW="-link -subsystem:windows ${lflags}"
7807		fi
7808	    fi
7809
7810	    SHLIB_SUFFIX=".dll"
7811	    SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.dll'
7812
7813	    TCL_LIB_VERSIONS_OK=nodots
7814    	    ;;
7815	AIX-*)
7816	    if test "${TCL_THREADS}" = "1" -a "$GCC" != "yes"; then
7817
7818		# AIX requires the _r compiler when gcc isn't being used
7819		case "${CC}" in
7820		    *_r|*_r\ *)
7821			# ok ...
7822			;;
7823		    *)
7824			# Make sure only first arg gets _r
7825		    	CC=`echo "$CC" | sed -e 's/^\([^ ]*\)/\1_r/'`
7826			;;
7827		esac
7828		{ echo "$as_me:$LINENO: result: Using $CC for compiling with threads" >&5
7829echo "${ECHO_T}Using $CC for compiling with threads" >&6; }
7830
7831fi
7832
7833	    LIBS="$LIBS -lc"
7834	    SHLIB_CFLAGS=""
7835	    SHLIB_SUFFIX=".so"
7836
7837	    LD_LIBRARY_PATH_VAR="LIBPATH"
7838
7839	    # Check to enable 64-bit flags for compiler/linker
7840	    if test "$do64bit" = yes; then
7841
7842		if test "$GCC" = yes; then
7843
7844		    { echo "$as_me:$LINENO: WARNING: 64bit mode not supported with GCC on $system" >&5
7845echo "$as_me: WARNING: 64bit mode not supported with GCC on $system" >&2;}
7846
7847else
7848
7849		    do64bit_ok=yes
7850		    CFLAGS="$CFLAGS -q64"
7851		    LDFLAGS_ARCH="-q64"
7852		    RANLIB="${RANLIB} -X64"
7853		    AR="${AR} -X64"
7854		    SHLIB_LD_FLAGS="-b64"
7855
7856fi
7857
7858
7859fi
7860
7861
7862	    if test "`uname -m`" = ia64; then
7863
7864		# AIX-5 uses ELF style dynamic libraries on IA-64, but not PPC
7865		SHLIB_LD="/usr/ccs/bin/ld -G -z text"
7866		if test "$GCC" = yes; then
7867
7868		    CC_SEARCH_FLAGS='-Wl,-R,${LIB_RUNTIME_DIR}'
7869
7870else
7871
7872		    CC_SEARCH_FLAGS='-R${LIB_RUNTIME_DIR}'
7873
7874fi
7875
7876		LD_SEARCH_FLAGS='-R ${LIB_RUNTIME_DIR}'
7877
7878else
7879
7880		if test "$GCC" = yes; then
7881
7882		    SHLIB_LD='${CC} -shared -Wl,-bexpall'
7883
7884else
7885
7886		    SHLIB_LD="/bin/ld -bhalt:4 -bM:SRE -bexpall -H512 -T512 -bnoentry"
7887		    LDFLAGS="$LDFLAGS -brtl"
7888
7889fi
7890
7891		SHLIB_LD="${SHLIB_LD} ${SHLIB_LD_FLAGS}"
7892		CC_SEARCH_FLAGS='-L${LIB_RUNTIME_DIR}'
7893		LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
7894
7895fi
7896
7897	    ;;
7898	BeOS*)
7899	    SHLIB_CFLAGS="-fPIC"
7900	    SHLIB_LD='${CC} -nostart'
7901	    SHLIB_SUFFIX=".so"
7902
7903	    #-----------------------------------------------------------
7904	    # Check for inet_ntoa in -lbind, for BeOS (which also needs
7905	    # -lsocket, even if the network functions are in -lnet which
7906	    # is always linked to, for compatibility.
7907	    #-----------------------------------------------------------
7908	    { echo "$as_me:$LINENO: checking for inet_ntoa in -lbind" >&5
7909echo $ECHO_N "checking for inet_ntoa in -lbind... $ECHO_C" >&6; }
7910if test "${ac_cv_lib_bind_inet_ntoa+set}" = set; then
7911  echo $ECHO_N "(cached) $ECHO_C" >&6
7912else
7913  ac_check_lib_save_LIBS=$LIBS
7914LIBS="-lbind  $LIBS"
7915cat >conftest.$ac_ext <<_ACEOF
7916/* confdefs.h.  */
7917_ACEOF
7918cat confdefs.h >>conftest.$ac_ext
7919cat >>conftest.$ac_ext <<_ACEOF
7920/* end confdefs.h.  */
7921
7922/* Override any GCC internal prototype to avoid an error.
7923   Use char because int might match the return type of a GCC
7924   builtin and then its argument prototype would still apply.  */
7925#ifdef __cplusplus
7926extern "C"
7927#endif
7928char inet_ntoa ();
7929int
7930main ()
7931{
7932return inet_ntoa ();
7933  ;
7934  return 0;
7935}
7936_ACEOF
7937rm -f conftest.$ac_objext conftest$ac_exeext
7938if { (ac_try="$ac_link"
7939case "(($ac_try" in
7940  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7941  *) ac_try_echo=$ac_try;;
7942esac
7943eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7944  (eval "$ac_link") 2>conftest.er1
7945  ac_status=$?
7946  grep -v '^ *+' conftest.er1 >conftest.err
7947  rm -f conftest.er1
7948  cat conftest.err >&5
7949  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7950  (exit $ac_status); } && {
7951	 test -z "$ac_c_werror_flag" ||
7952	 test ! -s conftest.err
7953       } && test -s conftest$ac_exeext &&
7954       $as_test_x conftest$ac_exeext; then
7955  ac_cv_lib_bind_inet_ntoa=yes
7956else
7957  echo "$as_me: failed program was:" >&5
7958sed 's/^/| /' conftest.$ac_ext >&5
7959
7960	ac_cv_lib_bind_inet_ntoa=no
7961fi
7962
7963rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7964      conftest$ac_exeext conftest.$ac_ext
7965LIBS=$ac_check_lib_save_LIBS
7966fi
7967{ echo "$as_me:$LINENO: result: $ac_cv_lib_bind_inet_ntoa" >&5
7968echo "${ECHO_T}$ac_cv_lib_bind_inet_ntoa" >&6; }
7969if test $ac_cv_lib_bind_inet_ntoa = yes; then
7970  LIBS="$LIBS -lbind -lsocket"
7971fi
7972
7973	    ;;
7974	BSD/OS-4.*)
7975	    SHLIB_CFLAGS="-export-dynamic -fPIC"
7976	    SHLIB_LD='${CC} -shared'
7977	    SHLIB_SUFFIX=".so"
7978	    LDFLAGS="$LDFLAGS -export-dynamic"
7979	    CC_SEARCH_FLAGS=""
7980	    LD_SEARCH_FLAGS=""
7981	    ;;
7982	CYGWIN_*)
7983	    SHLIB_CFLAGS=""
7984	    SHLIB_LD='${CC} -shared'
7985	    SHLIB_SUFFIX=".dll"
7986	    EXE_SUFFIX=".exe"
7987	    CC_SEARCH_FLAGS=""
7988	    LD_SEARCH_FLAGS=""
7989	    ;;
7990	Haiku*)
7991	    LDFLAGS="$LDFLAGS -Wl,--export-dynamic"
7992	    SHLIB_CFLAGS="-fPIC"
7993	    SHLIB_SUFFIX=".so"
7994	    SHLIB_LD='${CC} -shared ${CFLAGS} ${LDFLAGS}'
7995	    { echo "$as_me:$LINENO: checking for inet_ntoa in -lnetwork" >&5
7996echo $ECHO_N "checking for inet_ntoa in -lnetwork... $ECHO_C" >&6; }
7997if test "${ac_cv_lib_network_inet_ntoa+set}" = set; then
7998  echo $ECHO_N "(cached) $ECHO_C" >&6
7999else
8000  ac_check_lib_save_LIBS=$LIBS
8001LIBS="-lnetwork  $LIBS"
8002cat >conftest.$ac_ext <<_ACEOF
8003/* confdefs.h.  */
8004_ACEOF
8005cat confdefs.h >>conftest.$ac_ext
8006cat >>conftest.$ac_ext <<_ACEOF
8007/* end confdefs.h.  */
8008
8009/* Override any GCC internal prototype to avoid an error.
8010   Use char because int might match the return type of a GCC
8011   builtin and then its argument prototype would still apply.  */
8012#ifdef __cplusplus
8013extern "C"
8014#endif
8015char inet_ntoa ();
8016int
8017main ()
8018{
8019return inet_ntoa ();
8020  ;
8021  return 0;
8022}
8023_ACEOF
8024rm -f conftest.$ac_objext conftest$ac_exeext
8025if { (ac_try="$ac_link"
8026case "(($ac_try" in
8027  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8028  *) ac_try_echo=$ac_try;;
8029esac
8030eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8031  (eval "$ac_link") 2>conftest.er1
8032  ac_status=$?
8033  grep -v '^ *+' conftest.er1 >conftest.err
8034  rm -f conftest.er1
8035  cat conftest.err >&5
8036  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8037  (exit $ac_status); } && {
8038	 test -z "$ac_c_werror_flag" ||
8039	 test ! -s conftest.err
8040       } && test -s conftest$ac_exeext &&
8041       $as_test_x conftest$ac_exeext; then
8042  ac_cv_lib_network_inet_ntoa=yes
8043else
8044  echo "$as_me: failed program was:" >&5
8045sed 's/^/| /' conftest.$ac_ext >&5
8046
8047	ac_cv_lib_network_inet_ntoa=no
8048fi
8049
8050rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8051      conftest$ac_exeext conftest.$ac_ext
8052LIBS=$ac_check_lib_save_LIBS
8053fi
8054{ echo "$as_me:$LINENO: result: $ac_cv_lib_network_inet_ntoa" >&5
8055echo "${ECHO_T}$ac_cv_lib_network_inet_ntoa" >&6; }
8056if test $ac_cv_lib_network_inet_ntoa = yes; then
8057  LIBS="$LIBS -lnetwork"
8058fi
8059
8060	    ;;
8061	HP-UX-*.11.*)
8062	    # Use updated header definitions where possible
8063
8064cat >>confdefs.h <<\_ACEOF
8065#define _XOPEN_SOURCE_EXTENDED 1
8066_ACEOF
8067
8068	    # TEA specific: Needed by Tcl, but not most extensions
8069	    #AC_DEFINE(_XOPEN_SOURCE, 1, [Do we want to use the XOPEN network library?])
8070	    #LIBS="$LIBS -lxnet"               # Use the XOPEN network library
8071
8072	    if test "`uname -m`" = ia64; then
8073
8074		SHLIB_SUFFIX=".so"
8075		# Use newer C++ library for C++ extensions
8076		#if test "$GCC" != "yes" ; then
8077		#   CPPFLAGS="-AA"
8078		#fi
8079
8080else
8081
8082		SHLIB_SUFFIX=".sl"
8083
8084fi
8085
8086	    { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8087echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
8088if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8089  echo $ECHO_N "(cached) $ECHO_C" >&6
8090else
8091  ac_check_lib_save_LIBS=$LIBS
8092LIBS="-ldld  $LIBS"
8093cat >conftest.$ac_ext <<_ACEOF
8094/* confdefs.h.  */
8095_ACEOF
8096cat confdefs.h >>conftest.$ac_ext
8097cat >>conftest.$ac_ext <<_ACEOF
8098/* end confdefs.h.  */
8099
8100/* Override any GCC internal prototype to avoid an error.
8101   Use char because int might match the return type of a GCC
8102   builtin and then its argument prototype would still apply.  */
8103#ifdef __cplusplus
8104extern "C"
8105#endif
8106char shl_load ();
8107int
8108main ()
8109{
8110return shl_load ();
8111  ;
8112  return 0;
8113}
8114_ACEOF
8115rm -f conftest.$ac_objext conftest$ac_exeext
8116if { (ac_try="$ac_link"
8117case "(($ac_try" in
8118  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8119  *) ac_try_echo=$ac_try;;
8120esac
8121eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8122  (eval "$ac_link") 2>conftest.er1
8123  ac_status=$?
8124  grep -v '^ *+' conftest.er1 >conftest.err
8125  rm -f conftest.er1
8126  cat conftest.err >&5
8127  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8128  (exit $ac_status); } && {
8129	 test -z "$ac_c_werror_flag" ||
8130	 test ! -s conftest.err
8131       } && test -s conftest$ac_exeext &&
8132       $as_test_x conftest$ac_exeext; then
8133  ac_cv_lib_dld_shl_load=yes
8134else
8135  echo "$as_me: failed program was:" >&5
8136sed 's/^/| /' conftest.$ac_ext >&5
8137
8138	ac_cv_lib_dld_shl_load=no
8139fi
8140
8141rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8142      conftest$ac_exeext conftest.$ac_ext
8143LIBS=$ac_check_lib_save_LIBS
8144fi
8145{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
8146echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
8147if test $ac_cv_lib_dld_shl_load = yes; then
8148  tcl_ok=yes
8149else
8150  tcl_ok=no
8151fi
8152
8153	    if test "$tcl_ok" = yes; then
8154
8155		LDFLAGS="$LDFLAGS -E"
8156		CC_SEARCH_FLAGS='-Wl,+s,+b,${LIB_RUNTIME_DIR}:.'
8157		LD_SEARCH_FLAGS='+s +b ${LIB_RUNTIME_DIR}:.'
8158		LD_LIBRARY_PATH_VAR="SHLIB_PATH"
8159
8160fi
8161
8162	    if test "$GCC" = yes; then
8163
8164		SHLIB_LD='${CC} -shared'
8165		LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
8166
8167else
8168
8169		CFLAGS="$CFLAGS -z"
8170		# Users may want PA-RISC 1.1/2.0 portable code - needs HP cc
8171		#CFLAGS="$CFLAGS +DAportable"
8172		SHLIB_CFLAGS="+z"
8173		SHLIB_LD="ld -b"
8174
8175fi
8176
8177
8178	    # Check to enable 64-bit flags for compiler/linker
8179	    if test "$do64bit" = "yes"; then
8180
8181		if test "$GCC" = yes; then
8182
8183		    case `${CC} -dumpmachine` in
8184			hppa64*)
8185			    # 64-bit gcc in use.  Fix flags for GNU ld.
8186			    do64bit_ok=yes
8187			    SHLIB_LD='${CC} -shared'
8188			    if test $doRpath = yes; then
8189
8190				CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}'
8191fi
8192
8193			    LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
8194			    ;;
8195			*)
8196			    { echo "$as_me:$LINENO: WARNING: 64bit mode not supported with GCC on $system" >&5
8197echo "$as_me: WARNING: 64bit mode not supported with GCC on $system" >&2;}
8198			    ;;
8199		    esac
8200
8201else
8202
8203		    do64bit_ok=yes
8204		    CFLAGS="$CFLAGS +DD64"
8205		    LDFLAGS_ARCH="+DD64"
8206
8207fi
8208
8209
8210fi
8211 ;;
8212	IRIX-6.*)
8213	    SHLIB_CFLAGS=""
8214	    SHLIB_LD="ld -n32 -shared -rdata_shared"
8215	    SHLIB_SUFFIX=".so"
8216	    if test $doRpath = yes; then
8217
8218		CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}'
8219		LD_SEARCH_FLAGS='-rpath ${LIB_RUNTIME_DIR}'
8220fi
8221
8222	    if test "$GCC" = yes; then
8223
8224		CFLAGS="$CFLAGS -mabi=n32"
8225		LDFLAGS="$LDFLAGS -mabi=n32"
8226
8227else
8228
8229		case $system in
8230		    IRIX-6.3)
8231			# Use to build 6.2 compatible binaries on 6.3.
8232			CFLAGS="$CFLAGS -n32 -D_OLD_TERMIOS"
8233			;;
8234		    *)
8235			CFLAGS="$CFLAGS -n32"
8236			;;
8237		esac
8238		LDFLAGS="$LDFLAGS -n32"
8239
8240fi
8241
8242	    ;;
8243	IRIX64-6.*)
8244	    SHLIB_CFLAGS=""
8245	    SHLIB_LD="ld -n32 -shared -rdata_shared"
8246	    SHLIB_SUFFIX=".so"
8247	    if test $doRpath = yes; then
8248
8249		CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}'
8250		LD_SEARCH_FLAGS='-rpath ${LIB_RUNTIME_DIR}'
8251fi
8252
8253
8254	    # Check to enable 64-bit flags for compiler/linker
8255
8256	    if test "$do64bit" = yes; then
8257
8258	        if test "$GCC" = yes; then
8259
8260	            { echo "$as_me:$LINENO: WARNING: 64bit mode not supported by gcc" >&5
8261echo "$as_me: WARNING: 64bit mode not supported by gcc" >&2;}
8262
8263else
8264
8265	            do64bit_ok=yes
8266	            SHLIB_LD="ld -64 -shared -rdata_shared"
8267	            CFLAGS="$CFLAGS -64"
8268	            LDFLAGS_ARCH="-64"
8269
8270fi
8271
8272
8273fi
8274
8275	    ;;
8276	Linux*)
8277	    SHLIB_CFLAGS="-fPIC"
8278	    SHLIB_SUFFIX=".so"
8279
8280	    # TEA specific:
8281	    CFLAGS_OPTIMIZE="-O2 -fomit-frame-pointer"
8282
8283	    # TEA specific: use LDFLAGS_DEFAULT instead of LDFLAGS
8284	    SHLIB_LD='${CC} -shared ${CFLAGS} ${LDFLAGS_DEFAULT}'
8285	    LDFLAGS="$LDFLAGS -Wl,--export-dynamic"
8286	    if test $doRpath = yes; then
8287
8288		CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}'
8289fi
8290
8291	    LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
8292	    if test "`uname -m`" = "alpha"; then
8293  CFLAGS="$CFLAGS -mieee"
8294fi
8295
8296	    if test $do64bit = yes; then
8297
8298		{ echo "$as_me:$LINENO: checking if compiler accepts -m64 flag" >&5
8299echo $ECHO_N "checking if compiler accepts -m64 flag... $ECHO_C" >&6; }
8300if test "${tcl_cv_cc_m64+set}" = set; then
8301  echo $ECHO_N "(cached) $ECHO_C" >&6
8302else
8303
8304		    hold_cflags=$CFLAGS
8305		    CFLAGS="$CFLAGS -m64"
8306		    cat >conftest.$ac_ext <<_ACEOF
8307/* confdefs.h.  */
8308_ACEOF
8309cat confdefs.h >>conftest.$ac_ext
8310cat >>conftest.$ac_ext <<_ACEOF
8311/* end confdefs.h.  */
8312
8313int
8314main ()
8315{
8316
8317  ;
8318  return 0;
8319}
8320_ACEOF
8321rm -f conftest.$ac_objext conftest$ac_exeext
8322if { (ac_try="$ac_link"
8323case "(($ac_try" in
8324  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8325  *) ac_try_echo=$ac_try;;
8326esac
8327eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8328  (eval "$ac_link") 2>conftest.er1
8329  ac_status=$?
8330  grep -v '^ *+' conftest.er1 >conftest.err
8331  rm -f conftest.er1
8332  cat conftest.err >&5
8333  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8334  (exit $ac_status); } && {
8335	 test -z "$ac_c_werror_flag" ||
8336	 test ! -s conftest.err
8337       } && test -s conftest$ac_exeext &&
8338       $as_test_x conftest$ac_exeext; then
8339  tcl_cv_cc_m64=yes
8340else
8341  echo "$as_me: failed program was:" >&5
8342sed 's/^/| /' conftest.$ac_ext >&5
8343
8344	tcl_cv_cc_m64=no
8345fi
8346
8347rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8348      conftest$ac_exeext conftest.$ac_ext
8349		    CFLAGS=$hold_cflags
8350fi
8351{ echo "$as_me:$LINENO: result: $tcl_cv_cc_m64" >&5
8352echo "${ECHO_T}$tcl_cv_cc_m64" >&6; }
8353		if test $tcl_cv_cc_m64 = yes; then
8354
8355		    CFLAGS="$CFLAGS -m64"
8356		    do64bit_ok=yes
8357
8358fi
8359
8360
8361fi
8362
8363
8364	    # The combo of gcc + glibc has a bug related to inlining of
8365	    # functions like strtod(). The -fno-builtin flag should address
8366	    # this problem but it does not work. The -fno-inline flag is kind
8367	    # of overkill but it works. Disable inlining only when one of the
8368	    # files in compat/*.c is being linked in.
8369
8370	    if test x"${USE_COMPAT}" != x; then
8371  CFLAGS="$CFLAGS -fno-inline"
8372fi
8373
8374
8375	    ;;
8376	GNU*)
8377	    SHLIB_CFLAGS="-fPIC"
8378	    SHLIB_SUFFIX=".so"
8379
8380	    SHLIB_LD='${CC} -shared'
8381	    LDFLAGS="$LDFLAGS -Wl,--export-dynamic"
8382	    CC_SEARCH_FLAGS=""
8383	    LD_SEARCH_FLAGS=""
8384	    if test "`uname -m`" = "alpha"; then
8385  CFLAGS="$CFLAGS -mieee"
8386fi
8387
8388	    ;;
8389	Lynx*)
8390	    SHLIB_CFLAGS="-fPIC"
8391	    SHLIB_SUFFIX=".so"
8392	    CFLAGS_OPTIMIZE=-02
8393	    SHLIB_LD='${CC} -shared'
8394	    LD_FLAGS="-Wl,--export-dynamic"
8395	    if test $doRpath = yes; then
8396
8397		CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}'
8398		LD_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}'
8399fi
8400
8401	    ;;
8402	OpenBSD-*)
8403	    SHLIB_CFLAGS="-fPIC"
8404	    SHLIB_LD='${CC} -shared ${SHLIB_CFLAGS}'
8405	    SHLIB_SUFFIX=".so"
8406	    if test $doRpath = yes; then
8407
8408		CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}'
8409fi
8410
8411	    LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
8412	    SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.so.${SHLIB_VERSION}'
8413	    { echo "$as_me:$LINENO: checking for ELF" >&5
8414echo $ECHO_N "checking for ELF... $ECHO_C" >&6; }
8415if test "${tcl_cv_ld_elf+set}" = set; then
8416  echo $ECHO_N "(cached) $ECHO_C" >&6
8417else
8418
8419		cat >conftest.$ac_ext <<_ACEOF
8420/* confdefs.h.  */
8421_ACEOF
8422cat confdefs.h >>conftest.$ac_ext
8423cat >>conftest.$ac_ext <<_ACEOF
8424/* end confdefs.h.  */
8425
8426#ifdef __ELF__
8427	yes
8428#endif
8429
8430_ACEOF
8431if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8432  $EGREP "yes" >/dev/null 2>&1; then
8433  tcl_cv_ld_elf=yes
8434else
8435  tcl_cv_ld_elf=no
8436fi
8437rm -f -r conftest*
8438
8439fi
8440{ echo "$as_me:$LINENO: result: $tcl_cv_ld_elf" >&5
8441echo "${ECHO_T}$tcl_cv_ld_elf" >&6; }
8442	    if test $tcl_cv_ld_elf = yes; then
8443
8444		LDFLAGS=-Wl,-export-dynamic
8445
8446else
8447  LDFLAGS=""
8448fi
8449
8450	    if test "${TCL_THREADS}" = "1"; then
8451
8452		# OpenBSD builds and links with -pthread, never -lpthread.
8453		LIBS=`echo $LIBS | sed s/-lpthread//`
8454		CFLAGS="$CFLAGS -pthread"
8455		SHLIB_CFLAGS="$SHLIB_CFLAGS -pthread"
8456
8457fi
8458
8459	    # OpenBSD doesn't do version numbers with dots.
8460	    UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.a'
8461	    TCL_LIB_VERSIONS_OK=nodots
8462	    ;;
8463	NetBSD-*|FreeBSD-[3-4].*)
8464	    # FreeBSD 3.* and greater have ELF.
8465	    # NetBSD 2.* has ELF and can use 'cc -shared' to build shared libs
8466	    SHLIB_CFLAGS="-fPIC"
8467	    SHLIB_LD='${CC} -shared ${SHLIB_CFLAGS}'
8468	    SHLIB_SUFFIX=".so"
8469	    LDFLAGS="$LDFLAGS -export-dynamic"
8470	    if test $doRpath = yes; then
8471
8472		CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}'
8473fi
8474
8475	    LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
8476	    if test "${TCL_THREADS}" = "1"; then
8477
8478		# The -pthread needs to go in the CFLAGS, not LIBS
8479		LIBS=`echo $LIBS | sed s/-pthread//`
8480		CFLAGS="$CFLAGS -pthread"
8481	    	LDFLAGS="$LDFLAGS -pthread"
8482
8483fi
8484
8485	    case $system in
8486	    FreeBSD-3.*)
8487	    	# FreeBSD-3 doesn't handle version numbers with dots.
8488	    	UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.a'
8489	    	SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.so'
8490	    	TCL_LIB_VERSIONS_OK=nodots
8491		;;
8492	    esac
8493	    ;;
8494	FreeBSD-*)
8495	    # This configuration from FreeBSD Ports.
8496	    SHLIB_CFLAGS="-fPIC"
8497	    SHLIB_LD="${CC} -shared"
8498	    TCL_SHLIB_LD_EXTRAS="-soname \$@"
8499	    SHLIB_SUFFIX=".so"
8500	    LDFLAGS=""
8501	    if test $doRpath = yes; then
8502
8503		CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}'
8504		LD_SEARCH_FLAGS='-rpath ${LIB_RUNTIME_DIR}'
8505fi
8506
8507	    if test "${TCL_THREADS}" = "1"; then
8508
8509		# The -pthread needs to go in the LDFLAGS, not LIBS
8510		LIBS=`echo $LIBS | sed s/-pthread//`
8511		CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8512		LDFLAGS="$LDFLAGS $PTHREAD_LIBS"
8513fi
8514
8515	    # Version numbers are dot-stripped by system policy.
8516	    TCL_TRIM_DOTS=`echo ${VERSION} | tr -d .`
8517	    UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.a'
8518	    SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}\$\{DBGX\}.so.1'
8519	    TCL_LIB_VERSIONS_OK=nodots
8520	    ;;
8521	Darwin-*)
8522	    CFLAGS_OPTIMIZE="-Os"
8523	    SHLIB_CFLAGS="-fno-common"
8524	    # To avoid discrepancies between what headers configure sees during
8525	    # preprocessing tests and compiling tests, move any -isysroot and
8526	    # -mmacosx-version-min flags from CFLAGS to CPPFLAGS:
8527	    CPPFLAGS="${CPPFLAGS} `echo " ${CFLAGS}" | \
8528		awk 'BEGIN {FS=" +-";ORS=" "}; {for (i=2;i<=NF;i++) \
8529		if ($i~/^(isysroot|mmacosx-version-min)/) print "-"$i}'`"
8530	    CFLAGS="`echo " ${CFLAGS}" | \
8531		awk 'BEGIN {FS=" +-";ORS=" "}; {for (i=2;i<=NF;i++) \
8532		if (!($i~/^(isysroot|mmacosx-version-min)/)) print "-"$i}'`"
8533	    if test $do64bit = yes; then
8534
8535		case `arch` in
8536		    ppc)
8537			{ echo "$as_me:$LINENO: checking if compiler accepts -arch ppc64 flag" >&5
8538echo $ECHO_N "checking if compiler accepts -arch ppc64 flag... $ECHO_C" >&6; }
8539if test "${tcl_cv_cc_arch_ppc64+set}" = set; then
8540  echo $ECHO_N "(cached) $ECHO_C" >&6
8541else
8542
8543			    hold_cflags=$CFLAGS
8544			    CFLAGS="$CFLAGS -arch ppc64 -mpowerpc64 -mcpu=G5"
8545			    cat >conftest.$ac_ext <<_ACEOF
8546/* confdefs.h.  */
8547_ACEOF
8548cat confdefs.h >>conftest.$ac_ext
8549cat >>conftest.$ac_ext <<_ACEOF
8550/* end confdefs.h.  */
8551
8552int
8553main ()
8554{
8555
8556  ;
8557  return 0;
8558}
8559_ACEOF
8560rm -f conftest.$ac_objext conftest$ac_exeext
8561if { (ac_try="$ac_link"
8562case "(($ac_try" in
8563  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8564  *) ac_try_echo=$ac_try;;
8565esac
8566eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8567  (eval "$ac_link") 2>conftest.er1
8568  ac_status=$?
8569  grep -v '^ *+' conftest.er1 >conftest.err
8570  rm -f conftest.er1
8571  cat conftest.err >&5
8572  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8573  (exit $ac_status); } && {
8574	 test -z "$ac_c_werror_flag" ||
8575	 test ! -s conftest.err
8576       } && test -s conftest$ac_exeext &&
8577       $as_test_x conftest$ac_exeext; then
8578  tcl_cv_cc_arch_ppc64=yes
8579else
8580  echo "$as_me: failed program was:" >&5
8581sed 's/^/| /' conftest.$ac_ext >&5
8582
8583	tcl_cv_cc_arch_ppc64=no
8584fi
8585
8586rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8587      conftest$ac_exeext conftest.$ac_ext
8588			    CFLAGS=$hold_cflags
8589fi
8590{ echo "$as_me:$LINENO: result: $tcl_cv_cc_arch_ppc64" >&5
8591echo "${ECHO_T}$tcl_cv_cc_arch_ppc64" >&6; }
8592			if test $tcl_cv_cc_arch_ppc64 = yes; then
8593
8594			    CFLAGS="$CFLAGS -arch ppc64 -mpowerpc64 -mcpu=G5"
8595			    do64bit_ok=yes
8596
8597fi
8598;;
8599		    i386)
8600			{ echo "$as_me:$LINENO: checking if compiler accepts -arch x86_64 flag" >&5
8601echo $ECHO_N "checking if compiler accepts -arch x86_64 flag... $ECHO_C" >&6; }
8602if test "${tcl_cv_cc_arch_x86_64+set}" = set; then
8603  echo $ECHO_N "(cached) $ECHO_C" >&6
8604else
8605
8606			    hold_cflags=$CFLAGS
8607			    CFLAGS="$CFLAGS -arch x86_64"
8608			    cat >conftest.$ac_ext <<_ACEOF
8609/* confdefs.h.  */
8610_ACEOF
8611cat confdefs.h >>conftest.$ac_ext
8612cat >>conftest.$ac_ext <<_ACEOF
8613/* end confdefs.h.  */
8614
8615int
8616main ()
8617{
8618
8619  ;
8620  return 0;
8621}
8622_ACEOF
8623rm -f conftest.$ac_objext conftest$ac_exeext
8624if { (ac_try="$ac_link"
8625case "(($ac_try" in
8626  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8627  *) ac_try_echo=$ac_try;;
8628esac
8629eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8630  (eval "$ac_link") 2>conftest.er1
8631  ac_status=$?
8632  grep -v '^ *+' conftest.er1 >conftest.err
8633  rm -f conftest.er1
8634  cat conftest.err >&5
8635  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8636  (exit $ac_status); } && {
8637	 test -z "$ac_c_werror_flag" ||
8638	 test ! -s conftest.err
8639       } && test -s conftest$ac_exeext &&
8640       $as_test_x conftest$ac_exeext; then
8641  tcl_cv_cc_arch_x86_64=yes
8642else
8643  echo "$as_me: failed program was:" >&5
8644sed 's/^/| /' conftest.$ac_ext >&5
8645
8646	tcl_cv_cc_arch_x86_64=no
8647fi
8648
8649rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8650      conftest$ac_exeext conftest.$ac_ext
8651			    CFLAGS=$hold_cflags
8652fi
8653{ echo "$as_me:$LINENO: result: $tcl_cv_cc_arch_x86_64" >&5
8654echo "${ECHO_T}$tcl_cv_cc_arch_x86_64" >&6; }
8655			if test $tcl_cv_cc_arch_x86_64 = yes; then
8656
8657			    CFLAGS="$CFLAGS -arch x86_64"
8658			    do64bit_ok=yes
8659
8660fi
8661;;
8662		    *)
8663			{ echo "$as_me:$LINENO: WARNING: Don't know how enable 64-bit on architecture \`arch\`" >&5
8664echo "$as_me: WARNING: Don't know how enable 64-bit on architecture \`arch\`" >&2;};;
8665		esac
8666
8667else
8668
8669		# Check for combined 32-bit and 64-bit fat build
8670		if echo "$CFLAGS " |grep -E -q -- '-arch (ppc64|x86_64) ' \
8671		    && echo "$CFLAGS " |grep -E -q -- '-arch (ppc|i386) '; then
8672
8673		    fat_32_64=yes
8674fi
8675
8676
8677fi
8678
8679	    # TEA specific: use LDFLAGS_DEFAULT instead of LDFLAGS
8680	    SHLIB_LD='${CC} -dynamiclib ${CFLAGS} ${LDFLAGS_DEFAULT}'
8681	    { echo "$as_me:$LINENO: checking if ld accepts -single_module flag" >&5
8682echo $ECHO_N "checking if ld accepts -single_module flag... $ECHO_C" >&6; }
8683if test "${tcl_cv_ld_single_module+set}" = set; then
8684  echo $ECHO_N "(cached) $ECHO_C" >&6
8685else
8686
8687		hold_ldflags=$LDFLAGS
8688		LDFLAGS="$LDFLAGS -dynamiclib -Wl,-single_module"
8689		cat >conftest.$ac_ext <<_ACEOF
8690/* confdefs.h.  */
8691_ACEOF
8692cat confdefs.h >>conftest.$ac_ext
8693cat >>conftest.$ac_ext <<_ACEOF
8694/* end confdefs.h.  */
8695
8696int
8697main ()
8698{
8699int i;
8700  ;
8701  return 0;
8702}
8703_ACEOF
8704rm -f conftest.$ac_objext conftest$ac_exeext
8705if { (ac_try="$ac_link"
8706case "(($ac_try" in
8707  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8708  *) ac_try_echo=$ac_try;;
8709esac
8710eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8711  (eval "$ac_link") 2>conftest.er1
8712  ac_status=$?
8713  grep -v '^ *+' conftest.er1 >conftest.err
8714  rm -f conftest.er1
8715  cat conftest.err >&5
8716  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8717  (exit $ac_status); } && {
8718	 test -z "$ac_c_werror_flag" ||
8719	 test ! -s conftest.err
8720       } && test -s conftest$ac_exeext &&
8721       $as_test_x conftest$ac_exeext; then
8722  tcl_cv_ld_single_module=yes
8723else
8724  echo "$as_me: failed program was:" >&5
8725sed 's/^/| /' conftest.$ac_ext >&5
8726
8727	tcl_cv_ld_single_module=no
8728fi
8729
8730rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8731      conftest$ac_exeext conftest.$ac_ext
8732		LDFLAGS=$hold_ldflags
8733fi
8734{ echo "$as_me:$LINENO: result: $tcl_cv_ld_single_module" >&5
8735echo "${ECHO_T}$tcl_cv_ld_single_module" >&6; }
8736	    if test $tcl_cv_ld_single_module = yes; then
8737
8738		SHLIB_LD="${SHLIB_LD} -Wl,-single_module"
8739
8740fi
8741
8742	    # TEA specific: link shlib with current and compatiblity version flags
8743	    vers=`echo ${PACKAGE_VERSION} | sed -e 's/^\([0-9]\{1,5\}\)\(\(\.[0-9]\{1,3\}\)\{0,2\}\).*$/\1\2/p' -e d`
8744	    SHLIB_LD="${SHLIB_LD} -current_version ${vers:-0} -compatibility_version ${vers:-0}"
8745	    SHLIB_SUFFIX=".dylib"
8746	    # Don't use -prebind when building for Mac OS X 10.4 or later only:
8747	    if test "`echo "${MACOSX_DEPLOYMENT_TARGET}" | awk -F '10\\.' '{print int($2)}'`" -lt 4 -a \
8748		"`echo "${CPPFLAGS}" | awk -F '-mmacosx-version-min=10\\.' '{print int($2)}'`" -lt 4; then
8749
8750		LDFLAGS="$LDFLAGS -prebind"
8751fi
8752
8753	    LDFLAGS="$LDFLAGS -headerpad_max_install_names"
8754	    { echo "$as_me:$LINENO: checking if ld accepts -search_paths_first flag" >&5
8755echo $ECHO_N "checking if ld accepts -search_paths_first flag... $ECHO_C" >&6; }
8756if test "${tcl_cv_ld_search_paths_first+set}" = set; then
8757  echo $ECHO_N "(cached) $ECHO_C" >&6
8758else
8759
8760		hold_ldflags=$LDFLAGS
8761		LDFLAGS="$LDFLAGS -Wl,-search_paths_first"
8762		cat >conftest.$ac_ext <<_ACEOF
8763/* confdefs.h.  */
8764_ACEOF
8765cat confdefs.h >>conftest.$ac_ext
8766cat >>conftest.$ac_ext <<_ACEOF
8767/* end confdefs.h.  */
8768
8769int
8770main ()
8771{
8772int i;
8773  ;
8774  return 0;
8775}
8776_ACEOF
8777rm -f conftest.$ac_objext conftest$ac_exeext
8778if { (ac_try="$ac_link"
8779case "(($ac_try" in
8780  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8781  *) ac_try_echo=$ac_try;;
8782esac
8783eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8784  (eval "$ac_link") 2>conftest.er1
8785  ac_status=$?
8786  grep -v '^ *+' conftest.er1 >conftest.err
8787  rm -f conftest.er1
8788  cat conftest.err >&5
8789  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8790  (exit $ac_status); } && {
8791	 test -z "$ac_c_werror_flag" ||
8792	 test ! -s conftest.err
8793       } && test -s conftest$ac_exeext &&
8794       $as_test_x conftest$ac_exeext; then
8795  tcl_cv_ld_search_paths_first=yes
8796else
8797  echo "$as_me: failed program was:" >&5
8798sed 's/^/| /' conftest.$ac_ext >&5
8799
8800	tcl_cv_ld_search_paths_first=no
8801fi
8802
8803rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8804      conftest$ac_exeext conftest.$ac_ext
8805		LDFLAGS=$hold_ldflags
8806fi
8807{ echo "$as_me:$LINENO: result: $tcl_cv_ld_search_paths_first" >&5
8808echo "${ECHO_T}$tcl_cv_ld_search_paths_first" >&6; }
8809	    if test $tcl_cv_ld_search_paths_first = yes; then
8810
8811		LDFLAGS="$LDFLAGS -Wl,-search_paths_first"
8812
8813fi
8814
8815	    if test "$tcl_cv_cc_visibility_hidden" != yes; then
8816
8817
8818cat >>confdefs.h <<\_ACEOF
8819#define MODULE_SCOPE __private_extern__
8820_ACEOF
8821
8822		tcl_cv_cc_visibility_hidden=yes
8823
8824fi
8825
8826	    CC_SEARCH_FLAGS=""
8827	    LD_SEARCH_FLAGS=""
8828	    LD_LIBRARY_PATH_VAR="DYLD_LIBRARY_PATH"
8829	    # TEA specific: for combined 32 & 64 bit fat builds of Tk
8830	    # extensions, verify that 64-bit build is possible.
8831	    if test "$fat_32_64" = yes && test -n "${TK_BIN_DIR}"; then
8832
8833		if test "${TEA_WINDOWINGSYSTEM}" = x11; then
8834
8835		    { echo "$as_me:$LINENO: checking for 64-bit X11" >&5
8836echo $ECHO_N "checking for 64-bit X11... $ECHO_C" >&6; }
8837if test "${tcl_cv_lib_x11_64+set}" = set; then
8838  echo $ECHO_N "(cached) $ECHO_C" >&6
8839else
8840
8841			for v in CFLAGS CPPFLAGS LDFLAGS; do
8842			    eval 'hold_'$v'="$'$v'";'$v'="`echo "$'$v' "|sed -e "s/-arch ppc / /g" -e "s/-arch i386 / /g"`"'
8843			done
8844			CPPFLAGS="$CPPFLAGS -I/usr/X11R6/include"
8845			LDFLAGS="$LDFLAGS -L/usr/X11R6/lib -lX11"
8846			cat >conftest.$ac_ext <<_ACEOF
8847/* confdefs.h.  */
8848_ACEOF
8849cat confdefs.h >>conftest.$ac_ext
8850cat >>conftest.$ac_ext <<_ACEOF
8851/* end confdefs.h.  */
8852#include <X11/Xlib.h>
8853int
8854main ()
8855{
8856XrmInitialize();
8857  ;
8858  return 0;
8859}
8860_ACEOF
8861rm -f conftest.$ac_objext conftest$ac_exeext
8862if { (ac_try="$ac_link"
8863case "(($ac_try" in
8864  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8865  *) ac_try_echo=$ac_try;;
8866esac
8867eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8868  (eval "$ac_link") 2>conftest.er1
8869  ac_status=$?
8870  grep -v '^ *+' conftest.er1 >conftest.err
8871  rm -f conftest.er1
8872  cat conftest.err >&5
8873  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8874  (exit $ac_status); } && {
8875	 test -z "$ac_c_werror_flag" ||
8876	 test ! -s conftest.err
8877       } && test -s conftest$ac_exeext &&
8878       $as_test_x conftest$ac_exeext; then
8879  tcl_cv_lib_x11_64=yes
8880else
8881  echo "$as_me: failed program was:" >&5
8882sed 's/^/| /' conftest.$ac_ext >&5
8883
8884	tcl_cv_lib_x11_64=no
8885fi
8886
8887rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8888      conftest$ac_exeext conftest.$ac_ext
8889			for v in CFLAGS CPPFLAGS LDFLAGS; do
8890			    eval $v'="$hold_'$v'"'
8891			done
8892fi
8893{ echo "$as_me:$LINENO: result: $tcl_cv_lib_x11_64" >&5
8894echo "${ECHO_T}$tcl_cv_lib_x11_64" >&6; }
8895
8896fi
8897
8898		if test "${TEA_WINDOWINGSYSTEM}" = aqua; then
8899
8900		    { echo "$as_me:$LINENO: checking for 64-bit Tk" >&5
8901echo $ECHO_N "checking for 64-bit Tk... $ECHO_C" >&6; }
8902if test "${tcl_cv_lib_tk_64+set}" = set; then
8903  echo $ECHO_N "(cached) $ECHO_C" >&6
8904else
8905
8906			for v in CFLAGS CPPFLAGS LDFLAGS; do
8907			    eval 'hold_'$v'="$'$v'";'$v'="`echo "$'$v' "|sed -e "s/-arch ppc / /g" -e "s/-arch i386 / /g"`"'
8908			done
8909			CPPFLAGS="$CPPFLAGS -DUSE_TCL_STUBS=1 -DUSE_TK_STUBS=1 `eval "echo ${TCL_INCLUDES} ${TK_INCLUDES}"`"
8910			LDFLAGS="$LDFLAGS ${TCL_STUB_LIB_SPEC} ${TK_STUB_LIB_SPEC}"
8911			cat >conftest.$ac_ext <<_ACEOF
8912/* confdefs.h.  */
8913_ACEOF
8914cat confdefs.h >>conftest.$ac_ext
8915cat >>conftest.$ac_ext <<_ACEOF
8916/* end confdefs.h.  */
8917#include <tk.h>
8918int
8919main ()
8920{
8921Tk_InitStubs(NULL, "", 0);
8922  ;
8923  return 0;
8924}
8925_ACEOF
8926rm -f conftest.$ac_objext conftest$ac_exeext
8927if { (ac_try="$ac_link"
8928case "(($ac_try" in
8929  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8930  *) ac_try_echo=$ac_try;;
8931esac
8932eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8933  (eval "$ac_link") 2>conftest.er1
8934  ac_status=$?
8935  grep -v '^ *+' conftest.er1 >conftest.err
8936  rm -f conftest.er1
8937  cat conftest.err >&5
8938  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8939  (exit $ac_status); } && {
8940	 test -z "$ac_c_werror_flag" ||
8941	 test ! -s conftest.err
8942       } && test -s conftest$ac_exeext &&
8943       $as_test_x conftest$ac_exeext; then
8944  tcl_cv_lib_tk_64=yes
8945else
8946  echo "$as_me: failed program was:" >&5
8947sed 's/^/| /' conftest.$ac_ext >&5
8948
8949	tcl_cv_lib_tk_64=no
8950fi
8951
8952rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8953      conftest$ac_exeext conftest.$ac_ext
8954			for v in CFLAGS CPPFLAGS LDFLAGS; do
8955			    eval $v'="$hold_'$v'"'
8956			done
8957fi
8958{ echo "$as_me:$LINENO: result: $tcl_cv_lib_tk_64" >&5
8959echo "${ECHO_T}$tcl_cv_lib_tk_64" >&6; }
8960
8961fi
8962
8963		# remove 64-bit arch flags from CFLAGS et al. if configuration
8964		# does not support 64-bit.
8965		if test "$tcl_cv_lib_tk_64" = no -o "$tcl_cv_lib_x11_64" = no; then
8966
8967		    { echo "$as_me:$LINENO: Removing 64-bit architectures from compiler & linker flags" >&5
8968echo "$as_me: Removing 64-bit architectures from compiler & linker flags" >&6;}
8969		    for v in CFLAGS CPPFLAGS LDFLAGS; do
8970			eval $v'="`echo "$'$v' "|sed -e "s/-arch ppc64 / /g" -e "s/-arch x86_64 / /g"`"'
8971		    done
8972fi
8973
8974
8975fi
8976
8977	    ;;
8978	OS/390-*)
8979	    CFLAGS_OPTIMIZE=""		# Optimizer is buggy
8980
8981cat >>confdefs.h <<\_ACEOF
8982#define _OE_SOCKETS 1
8983_ACEOF
8984
8985	    ;;
8986	OSF1-V*)
8987	    # Digital OSF/1
8988	    SHLIB_CFLAGS=""
8989	    if test "$SHARED_BUILD" = 1; then
8990
8991	        SHLIB_LD='ld -shared -expect_unresolved "*"'
8992
8993else
8994
8995	        SHLIB_LD='ld -non_shared -expect_unresolved "*"'
8996
8997fi
8998
8999	    SHLIB_SUFFIX=".so"
9000	    if test $doRpath = yes; then
9001
9002		CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}'
9003		LD_SEARCH_FLAGS='-rpath ${LIB_RUNTIME_DIR}'
9004fi
9005
9006	    if test "$GCC" = yes; then
9007  CFLAGS="$CFLAGS -mieee"
9008else
9009
9010		CFLAGS="$CFLAGS -DHAVE_TZSET -std1 -ieee"
9011fi
9012
9013	    # see pthread_intro(3) for pthread support on osf1, k.furukawa
9014	    if test "${TCL_THREADS}" = 1; then
9015
9016		CFLAGS="$CFLAGS -DHAVE_PTHREAD_ATTR_SETSTACKSIZE"
9017		CFLAGS="$CFLAGS -DTCL_THREAD_STACK_MIN=PTHREAD_STACK_MIN*64"
9018		LIBS=`echo $LIBS | sed s/-lpthreads//`
9019		if test "$GCC" = yes; then
9020
9021		    LIBS="$LIBS -lpthread -lmach -lexc"
9022
9023else
9024
9025		    CFLAGS="$CFLAGS -pthread"
9026		    LDFLAGS="$LDFLAGS -pthread"
9027
9028fi
9029
9030
9031fi
9032
9033	    ;;
9034	QNX-6*)
9035	    # QNX RTP
9036	    # This may work for all QNX, but it was only reported for v6.
9037	    SHLIB_CFLAGS="-fPIC"
9038	    SHLIB_LD="ld -Bshareable -x"
9039	    SHLIB_LD_LIBS=""
9040	    SHLIB_SUFFIX=".so"
9041	    CC_SEARCH_FLAGS=""
9042	    LD_SEARCH_FLAGS=""
9043	    ;;
9044	SCO_SV-3.2*)
9045	    if test "$GCC" = yes; then
9046
9047		SHLIB_CFLAGS="-fPIC -melf"
9048		LDFLAGS="$LDFLAGS -melf -Wl,-Bexport"
9049
9050else
9051
9052	       SHLIB_CFLAGS="-Kpic -belf"
9053	       LDFLAGS="$LDFLAGS -belf -Wl,-Bexport"
9054
9055fi
9056
9057	    SHLIB_LD="ld -G"
9058	    SHLIB_LD_LIBS=""
9059	    SHLIB_SUFFIX=".so"
9060	    CC_SEARCH_FLAGS=""
9061	    LD_SEARCH_FLAGS=""
9062	    ;;
9063	SunOS-5.[0-6])
9064	    # Careful to not let 5.10+ fall into this case
9065
9066	    # Note: If _REENTRANT isn't defined, then Solaris
9067	    # won't define thread-safe library routines.
9068
9069
9070cat >>confdefs.h <<\_ACEOF
9071#define _REENTRANT 1
9072_ACEOF
9073
9074
9075cat >>confdefs.h <<\_ACEOF
9076#define _POSIX_PTHREAD_SEMANTICS 1
9077_ACEOF
9078
9079
9080	    SHLIB_CFLAGS="-KPIC"
9081	    SHLIB_SUFFIX=".so"
9082	    if test "$GCC" = yes; then
9083
9084		SHLIB_LD='${CC} -shared'
9085		CC_SEARCH_FLAGS='-Wl,-R,${LIB_RUNTIME_DIR}'
9086		LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
9087
9088else
9089
9090		SHLIB_LD="/usr/ccs/bin/ld -G -z text"
9091		CC_SEARCH_FLAGS='-R ${LIB_RUNTIME_DIR}'
9092		LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
9093
9094fi
9095
9096	    ;;
9097	SunOS-5*)
9098	    # Note: If _REENTRANT isn't defined, then Solaris
9099	    # won't define thread-safe library routines.
9100
9101
9102cat >>confdefs.h <<\_ACEOF
9103#define _REENTRANT 1
9104_ACEOF
9105
9106
9107cat >>confdefs.h <<\_ACEOF
9108#define _POSIX_PTHREAD_SEMANTICS 1
9109_ACEOF
9110
9111
9112	    SHLIB_CFLAGS="-KPIC"
9113
9114	    # Check to enable 64-bit flags for compiler/linker
9115	    if test "$do64bit" = yes; then
9116
9117		arch=`isainfo`
9118		if test "$arch" = "sparcv9 sparc"; then
9119
9120		    if test "$GCC" = yes; then
9121
9122			if test "`${CC} -dumpversion | awk -F. '{print $1}'`" -lt 3; then
9123
9124			    { echo "$as_me:$LINENO: WARNING: 64bit mode not supported with GCC < 3.2 on $system" >&5
9125echo "$as_me: WARNING: 64bit mode not supported with GCC < 3.2 on $system" >&2;}
9126
9127else
9128
9129			    do64bit_ok=yes
9130			    CFLAGS="$CFLAGS -m64 -mcpu=v9"
9131			    LDFLAGS="$LDFLAGS -m64 -mcpu=v9"
9132			    SHLIB_CFLAGS="-fPIC"
9133
9134fi
9135
9136
9137else
9138
9139			do64bit_ok=yes
9140			if test "$do64bitVIS" = yes; then
9141
9142			    CFLAGS="$CFLAGS -xarch=v9a"
9143			    LDFLAGS_ARCH="-xarch=v9a"
9144
9145else
9146
9147			    CFLAGS="$CFLAGS -xarch=v9"
9148			    LDFLAGS_ARCH="-xarch=v9"
9149
9150fi
9151
9152			# Solaris 64 uses this as well
9153			#LD_LIBRARY_PATH_VAR="LD_LIBRARY_PATH_64"
9154
9155fi
9156
9157
9158else
9159  if test "$arch" = "amd64 i386"; then
9160
9161		    if test "$GCC" = yes; then
9162
9163			case $system in
9164			    SunOS-5.1[1-9]*|SunOS-5.[2-9][0-9]*)
9165				do64bit_ok=yes
9166				CFLAGS="$CFLAGS -m64"
9167				LDFLAGS="$LDFLAGS -m64";;
9168			    *)
9169				{ echo "$as_me:$LINENO: WARNING: 64bit mode not supported with GCC on $system" >&5
9170echo "$as_me: WARNING: 64bit mode not supported with GCC on $system" >&2;};;
9171			esac
9172
9173else
9174
9175			do64bit_ok=yes
9176			case $system in
9177			    SunOS-5.1[1-9]*|SunOS-5.[2-9][0-9]*)
9178				CFLAGS="$CFLAGS -m64"
9179				LDFLAGS="$LDFLAGS -m64";;
9180			    *)
9181				CFLAGS="$CFLAGS -xarch=amd64"
9182				LDFLAGS="$LDFLAGS -xarch=amd64";;
9183			esac
9184
9185fi
9186
9187
9188else
9189  { echo "$as_me:$LINENO: WARNING: 64bit mode not supported for $arch" >&5
9190echo "$as_me: WARNING: 64bit mode not supported for $arch" >&2;}
9191fi
9192
9193fi
9194
9195
9196fi
9197
9198
9199	    SHLIB_SUFFIX=".so"
9200	    if test "$GCC" = yes; then
9201
9202		SHLIB_LD='${CC} -shared'
9203		CC_SEARCH_FLAGS='-Wl,-R,${LIB_RUNTIME_DIR}'
9204		LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
9205		if test "$do64bit_ok" = yes; then
9206
9207		    if test "$arch" = "sparcv9 sparc"; then
9208
9209			# We need to specify -static-libgcc or we need to
9210			# add the path to the sparv9 libgcc.
9211			# JH: static-libgcc is necessary for core Tcl, but may
9212			# not be necessary for extensions.
9213			SHLIB_LD="$SHLIB_LD -m64 -mcpu=v9 -static-libgcc"
9214			# for finding sparcv9 libgcc, get the regular libgcc
9215			# path, remove so name and append 'sparcv9'
9216			#v9gcclibdir="`gcc -print-file-name=libgcc_s.so` | ..."
9217			#CC_SEARCH_FLAGS="${CC_SEARCH_FLAGS},-R,$v9gcclibdir"
9218
9219else
9220  if test "$arch" = "amd64 i386"; then
9221
9222			# JH: static-libgcc is necessary for core Tcl, but may
9223			# not be necessary for extensions.
9224			SHLIB_LD="$SHLIB_LD -m64 -static-libgcc"
9225
9226fi
9227
9228fi
9229
9230
9231fi
9232
9233
9234else
9235
9236		case $system in
9237		    SunOS-5.[1-9][0-9]*)
9238			# TEA specific: use LDFLAGS_DEFAULT instead of LDFLAGS
9239			SHLIB_LD='${CC} -G -z text ${LDFLAGS_DEFAULT}';;
9240		    *)
9241			SHLIB_LD='/usr/ccs/bin/ld -G -z text';;
9242		esac
9243		CC_SEARCH_FLAGS='-Wl,-R,${LIB_RUNTIME_DIR}'
9244		LD_SEARCH_FLAGS='-R ${LIB_RUNTIME_DIR}'
9245
9246fi
9247
9248	    ;;
9249    esac
9250
9251    if test "$do64bit" = yes -a "$do64bit_ok" = no; then
9252
9253	{ echo "$as_me:$LINENO: WARNING: 64bit support being disabled -- don't know magic for this platform" >&5
9254echo "$as_me: WARNING: 64bit support being disabled -- don't know magic for this platform" >&2;}
9255
9256fi
9257
9258
9259
9260
9261    # Add in the arch flags late to ensure it wasn't removed.
9262    # Not necessary in TEA, but this is aligned with core
9263    LDFLAGS="$LDFLAGS $LDFLAGS_ARCH"
9264
9265    # If we're running gcc, then change the C flags for compiling shared
9266    # libraries to the right flags for gcc, instead of those for the
9267    # standard manufacturer compiler.
9268
9269    if test "$GCC" = yes; then
9270
9271	case $system in
9272	    AIX-*) ;;
9273	    BSD/OS*) ;;
9274	    CYGWIN_*) ;;
9275	    IRIX*) ;;
9276	    NetBSD-*|FreeBSD-*|OpenBSD-*) ;;
9277	    Darwin-*) ;;
9278	    SCO_SV-3.2*) ;;
9279	    windows) ;;
9280	    *) SHLIB_CFLAGS="-fPIC" ;;
9281	esac
9282fi
9283
9284
9285    if test "$tcl_cv_cc_visibility_hidden" != yes; then
9286
9287
9288cat >>confdefs.h <<\_ACEOF
9289#define MODULE_SCOPE extern
9290_ACEOF
9291
9292
9293cat >>confdefs.h <<\_ACEOF
9294#define NO_VIZ
9295_ACEOF
9296
9297
9298fi
9299
9300
9301    if test "$SHARED_LIB_SUFFIX" = ""; then
9302
9303	# TEA specific: use PACKAGE_VERSION instead of VERSION
9304	SHARED_LIB_SUFFIX='${PACKAGE_VERSION}${SHLIB_SUFFIX}'
9305fi
9306
9307    if test "$UNSHARED_LIB_SUFFIX" = ""; then
9308
9309	# TEA specific: use PACKAGE_VERSION instead of VERSION
9310	UNSHARED_LIB_SUFFIX='${PACKAGE_VERSION}.a'
9311fi
9312
9313
9314
9315
9316
9317
9318
9319
9320
9321
9322
9323
9324
9325
9326    # These must be called after we do the basic CFLAGS checks and
9327    # verify any possible 64-bit or similar switches are necessary
9328
9329    { echo "$as_me:$LINENO: checking for required early compiler flags" >&5
9330echo $ECHO_N "checking for required early compiler flags... $ECHO_C" >&6; }
9331    tcl_flags=""
9332
9333    if test "${tcl_cv_flag__isoc99_source+set}" = set; then
9334  echo $ECHO_N "(cached) $ECHO_C" >&6
9335else
9336  cat >conftest.$ac_ext <<_ACEOF
9337/* confdefs.h.  */
9338_ACEOF
9339cat confdefs.h >>conftest.$ac_ext
9340cat >>conftest.$ac_ext <<_ACEOF
9341/* end confdefs.h.  */
9342#include <stdlib.h>
9343int
9344main ()
9345{
9346char *p = (char *)strtoll; char *q = (char *)strtoull;
9347  ;
9348  return 0;
9349}
9350_ACEOF
9351rm -f conftest.$ac_objext
9352if { (ac_try="$ac_compile"
9353case "(($ac_try" in
9354  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9355  *) ac_try_echo=$ac_try;;
9356esac
9357eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9358  (eval "$ac_compile") 2>conftest.er1
9359  ac_status=$?
9360  grep -v '^ *+' conftest.er1 >conftest.err
9361  rm -f conftest.er1
9362  cat conftest.err >&5
9363  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9364  (exit $ac_status); } && {
9365	 test -z "$ac_c_werror_flag" ||
9366	 test ! -s conftest.err
9367       } && test -s conftest.$ac_objext; then
9368  tcl_cv_flag__isoc99_source=no
9369else
9370  echo "$as_me: failed program was:" >&5
9371sed 's/^/| /' conftest.$ac_ext >&5
9372
9373	cat >conftest.$ac_ext <<_ACEOF
9374/* confdefs.h.  */
9375_ACEOF
9376cat confdefs.h >>conftest.$ac_ext
9377cat >>conftest.$ac_ext <<_ACEOF
9378/* end confdefs.h.  */
9379#define _ISOC99_SOURCE 1
9380#include <stdlib.h>
9381int
9382main ()
9383{
9384char *p = (char *)strtoll; char *q = (char *)strtoull;
9385  ;
9386  return 0;
9387}
9388_ACEOF
9389rm -f conftest.$ac_objext
9390if { (ac_try="$ac_compile"
9391case "(($ac_try" in
9392  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9393  *) ac_try_echo=$ac_try;;
9394esac
9395eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9396  (eval "$ac_compile") 2>conftest.er1
9397  ac_status=$?
9398  grep -v '^ *+' conftest.er1 >conftest.err
9399  rm -f conftest.er1
9400  cat conftest.err >&5
9401  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9402  (exit $ac_status); } && {
9403	 test -z "$ac_c_werror_flag" ||
9404	 test ! -s conftest.err
9405       } && test -s conftest.$ac_objext; then
9406  tcl_cv_flag__isoc99_source=yes
9407else
9408  echo "$as_me: failed program was:" >&5
9409sed 's/^/| /' conftest.$ac_ext >&5
9410
9411	tcl_cv_flag__isoc99_source=no
9412fi
9413
9414rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9415fi
9416
9417rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9418fi
9419
9420    if test "x${tcl_cv_flag__isoc99_source}" = "xyes" ; then
9421
9422cat >>confdefs.h <<\_ACEOF
9423#define _ISOC99_SOURCE 1
9424_ACEOF
9425
9426	tcl_flags="$tcl_flags _ISOC99_SOURCE"
9427    fi
9428
9429
9430    if test "${tcl_cv_flag__largefile64_source+set}" = set; then
9431  echo $ECHO_N "(cached) $ECHO_C" >&6
9432else
9433  cat >conftest.$ac_ext <<_ACEOF
9434/* confdefs.h.  */
9435_ACEOF
9436cat confdefs.h >>conftest.$ac_ext
9437cat >>conftest.$ac_ext <<_ACEOF
9438/* end confdefs.h.  */
9439#include <sys/stat.h>
9440int
9441main ()
9442{
9443struct stat64 buf; int i = stat64("/", &buf);
9444  ;
9445  return 0;
9446}
9447_ACEOF
9448rm -f conftest.$ac_objext
9449if { (ac_try="$ac_compile"
9450case "(($ac_try" in
9451  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9452  *) ac_try_echo=$ac_try;;
9453esac
9454eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9455  (eval "$ac_compile") 2>conftest.er1
9456  ac_status=$?
9457  grep -v '^ *+' conftest.er1 >conftest.err
9458  rm -f conftest.er1
9459  cat conftest.err >&5
9460  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9461  (exit $ac_status); } && {
9462	 test -z "$ac_c_werror_flag" ||
9463	 test ! -s conftest.err
9464       } && test -s conftest.$ac_objext; then
9465  tcl_cv_flag__largefile64_source=no
9466else
9467  echo "$as_me: failed program was:" >&5
9468sed 's/^/| /' conftest.$ac_ext >&5
9469
9470	cat >conftest.$ac_ext <<_ACEOF
9471/* confdefs.h.  */
9472_ACEOF
9473cat confdefs.h >>conftest.$ac_ext
9474cat >>conftest.$ac_ext <<_ACEOF
9475/* end confdefs.h.  */
9476#define _LARGEFILE64_SOURCE 1
9477#include <sys/stat.h>
9478int
9479main ()
9480{
9481struct stat64 buf; int i = stat64("/", &buf);
9482  ;
9483  return 0;
9484}
9485_ACEOF
9486rm -f conftest.$ac_objext
9487if { (ac_try="$ac_compile"
9488case "(($ac_try" in
9489  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9490  *) ac_try_echo=$ac_try;;
9491esac
9492eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9493  (eval "$ac_compile") 2>conftest.er1
9494  ac_status=$?
9495  grep -v '^ *+' conftest.er1 >conftest.err
9496  rm -f conftest.er1
9497  cat conftest.err >&5
9498  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9499  (exit $ac_status); } && {
9500	 test -z "$ac_c_werror_flag" ||
9501	 test ! -s conftest.err
9502       } && test -s conftest.$ac_objext; then
9503  tcl_cv_flag__largefile64_source=yes
9504else
9505  echo "$as_me: failed program was:" >&5
9506sed 's/^/| /' conftest.$ac_ext >&5
9507
9508	tcl_cv_flag__largefile64_source=no
9509fi
9510
9511rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9512fi
9513
9514rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9515fi
9516
9517    if test "x${tcl_cv_flag__largefile64_source}" = "xyes" ; then
9518
9519cat >>confdefs.h <<\_ACEOF
9520#define _LARGEFILE64_SOURCE 1
9521_ACEOF
9522
9523	tcl_flags="$tcl_flags _LARGEFILE64_SOURCE"
9524    fi
9525
9526
9527    if test "${tcl_cv_flag__largefile_source64+set}" = set; then
9528  echo $ECHO_N "(cached) $ECHO_C" >&6
9529else
9530  cat >conftest.$ac_ext <<_ACEOF
9531/* confdefs.h.  */
9532_ACEOF
9533cat confdefs.h >>conftest.$ac_ext
9534cat >>conftest.$ac_ext <<_ACEOF
9535/* end confdefs.h.  */
9536#include <sys/stat.h>
9537int
9538main ()
9539{
9540char *p = (char *)open64;
9541  ;
9542  return 0;
9543}
9544_ACEOF
9545rm -f conftest.$ac_objext
9546if { (ac_try="$ac_compile"
9547case "(($ac_try" in
9548  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9549  *) ac_try_echo=$ac_try;;
9550esac
9551eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9552  (eval "$ac_compile") 2>conftest.er1
9553  ac_status=$?
9554  grep -v '^ *+' conftest.er1 >conftest.err
9555  rm -f conftest.er1
9556  cat conftest.err >&5
9557  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9558  (exit $ac_status); } && {
9559	 test -z "$ac_c_werror_flag" ||
9560	 test ! -s conftest.err
9561       } && test -s conftest.$ac_objext; then
9562  tcl_cv_flag__largefile_source64=no
9563else
9564  echo "$as_me: failed program was:" >&5
9565sed 's/^/| /' conftest.$ac_ext >&5
9566
9567	cat >conftest.$ac_ext <<_ACEOF
9568/* confdefs.h.  */
9569_ACEOF
9570cat confdefs.h >>conftest.$ac_ext
9571cat >>conftest.$ac_ext <<_ACEOF
9572/* end confdefs.h.  */
9573#define _LARGEFILE_SOURCE64 1
9574#include <sys/stat.h>
9575int
9576main ()
9577{
9578char *p = (char *)open64;
9579  ;
9580  return 0;
9581}
9582_ACEOF
9583rm -f conftest.$ac_objext
9584if { (ac_try="$ac_compile"
9585case "(($ac_try" in
9586  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9587  *) ac_try_echo=$ac_try;;
9588esac
9589eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9590  (eval "$ac_compile") 2>conftest.er1
9591  ac_status=$?
9592  grep -v '^ *+' conftest.er1 >conftest.err
9593  rm -f conftest.er1
9594  cat conftest.err >&5
9595  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9596  (exit $ac_status); } && {
9597	 test -z "$ac_c_werror_flag" ||
9598	 test ! -s conftest.err
9599       } && test -s conftest.$ac_objext; then
9600  tcl_cv_flag__largefile_source64=yes
9601else
9602  echo "$as_me: failed program was:" >&5
9603sed 's/^/| /' conftest.$ac_ext >&5
9604
9605	tcl_cv_flag__largefile_source64=no
9606fi
9607
9608rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9609fi
9610
9611rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9612fi
9613
9614    if test "x${tcl_cv_flag__largefile_source64}" = "xyes" ; then
9615
9616cat >>confdefs.h <<\_ACEOF
9617#define _LARGEFILE_SOURCE64 1
9618_ACEOF
9619
9620	tcl_flags="$tcl_flags _LARGEFILE_SOURCE64"
9621    fi
9622
9623    if test "x${tcl_flags}" = "x" ; then
9624	{ echo "$as_me:$LINENO: result: none" >&5
9625echo "${ECHO_T}none" >&6; }
9626    else
9627	{ echo "$as_me:$LINENO: result: ${tcl_flags}" >&5
9628echo "${ECHO_T}${tcl_flags}" >&6; }
9629    fi
9630
9631
9632    { echo "$as_me:$LINENO: checking for 64-bit integer type" >&5
9633echo $ECHO_N "checking for 64-bit integer type... $ECHO_C" >&6; }
9634    if test "${tcl_cv_type_64bit+set}" = set; then
9635  echo $ECHO_N "(cached) $ECHO_C" >&6
9636else
9637
9638	tcl_cv_type_64bit=none
9639	# See if the compiler knows natively about __int64
9640	cat >conftest.$ac_ext <<_ACEOF
9641/* confdefs.h.  */
9642_ACEOF
9643cat confdefs.h >>conftest.$ac_ext
9644cat >>conftest.$ac_ext <<_ACEOF
9645/* end confdefs.h.  */
9646
9647int
9648main ()
9649{
9650__int64 value = (__int64) 0;
9651  ;
9652  return 0;
9653}
9654_ACEOF
9655rm -f conftest.$ac_objext
9656if { (ac_try="$ac_compile"
9657case "(($ac_try" in
9658  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9659  *) ac_try_echo=$ac_try;;
9660esac
9661eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9662  (eval "$ac_compile") 2>conftest.er1
9663  ac_status=$?
9664  grep -v '^ *+' conftest.er1 >conftest.err
9665  rm -f conftest.er1
9666  cat conftest.err >&5
9667  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9668  (exit $ac_status); } && {
9669	 test -z "$ac_c_werror_flag" ||
9670	 test ! -s conftest.err
9671       } && test -s conftest.$ac_objext; then
9672  tcl_type_64bit=__int64
9673else
9674  echo "$as_me: failed program was:" >&5
9675sed 's/^/| /' conftest.$ac_ext >&5
9676
9677	tcl_type_64bit="long long"
9678fi
9679
9680rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9681	# See if we should use long anyway  Note that we substitute in the
9682	# type that is our current guess for a 64-bit type inside this check
9683	# program, so it should be modified only carefully...
9684        cat >conftest.$ac_ext <<_ACEOF
9685/* confdefs.h.  */
9686_ACEOF
9687cat confdefs.h >>conftest.$ac_ext
9688cat >>conftest.$ac_ext <<_ACEOF
9689/* end confdefs.h.  */
9690
9691int
9692main ()
9693{
9694switch (0) {
9695            case 1: case (sizeof(${tcl_type_64bit})==sizeof(long)): ;
9696        }
9697  ;
9698  return 0;
9699}
9700_ACEOF
9701rm -f conftest.$ac_objext
9702if { (ac_try="$ac_compile"
9703case "(($ac_try" in
9704  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9705  *) ac_try_echo=$ac_try;;
9706esac
9707eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9708  (eval "$ac_compile") 2>conftest.er1
9709  ac_status=$?
9710  grep -v '^ *+' conftest.er1 >conftest.err
9711  rm -f conftest.er1
9712  cat conftest.err >&5
9713  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9714  (exit $ac_status); } && {
9715	 test -z "$ac_c_werror_flag" ||
9716	 test ! -s conftest.err
9717       } && test -s conftest.$ac_objext; then
9718  tcl_cv_type_64bit=${tcl_type_64bit}
9719else
9720  echo "$as_me: failed program was:" >&5
9721sed 's/^/| /' conftest.$ac_ext >&5
9722
9723
9724fi
9725
9726rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9727fi
9728
9729    if test "${tcl_cv_type_64bit}" = none ; then
9730
9731cat >>confdefs.h <<\_ACEOF
9732#define TCL_WIDE_INT_IS_LONG 1
9733_ACEOF
9734
9735	{ echo "$as_me:$LINENO: result: using long" >&5
9736echo "${ECHO_T}using long" >&6; }
9737    elif test "${tcl_cv_type_64bit}" = "__int64" \
9738		-a "${TEA_PLATFORM}" = "windows" ; then
9739	# TEA specific: We actually want to use the default tcl.h checks in
9740	# this case to handle both TCL_WIDE_INT_TYPE and TCL_LL_MODIFIER*
9741	{ echo "$as_me:$LINENO: result: using Tcl header defaults" >&5
9742echo "${ECHO_T}using Tcl header defaults" >&6; }
9743    else
9744
9745cat >>confdefs.h <<_ACEOF
9746#define TCL_WIDE_INT_TYPE ${tcl_cv_type_64bit}
9747_ACEOF
9748
9749	{ echo "$as_me:$LINENO: result: ${tcl_cv_type_64bit}" >&5
9750echo "${ECHO_T}${tcl_cv_type_64bit}" >&6; }
9751
9752	# Now check for auxiliary declarations
9753	{ echo "$as_me:$LINENO: checking for struct dirent64" >&5
9754echo $ECHO_N "checking for struct dirent64... $ECHO_C" >&6; }
9755if test "${tcl_cv_struct_dirent64+set}" = set; then
9756  echo $ECHO_N "(cached) $ECHO_C" >&6
9757else
9758
9759	    cat >conftest.$ac_ext <<_ACEOF
9760/* confdefs.h.  */
9761_ACEOF
9762cat confdefs.h >>conftest.$ac_ext
9763cat >>conftest.$ac_ext <<_ACEOF
9764/* end confdefs.h.  */
9765#include <sys/types.h>
9766#include <sys/dirent.h>
9767int
9768main ()
9769{
9770struct dirent64 p;
9771  ;
9772  return 0;
9773}
9774_ACEOF
9775rm -f conftest.$ac_objext
9776if { (ac_try="$ac_compile"
9777case "(($ac_try" in
9778  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9779  *) ac_try_echo=$ac_try;;
9780esac
9781eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9782  (eval "$ac_compile") 2>conftest.er1
9783  ac_status=$?
9784  grep -v '^ *+' conftest.er1 >conftest.err
9785  rm -f conftest.er1
9786  cat conftest.err >&5
9787  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9788  (exit $ac_status); } && {
9789	 test -z "$ac_c_werror_flag" ||
9790	 test ! -s conftest.err
9791       } && test -s conftest.$ac_objext; then
9792  tcl_cv_struct_dirent64=yes
9793else
9794  echo "$as_me: failed program was:" >&5
9795sed 's/^/| /' conftest.$ac_ext >&5
9796
9797	tcl_cv_struct_dirent64=no
9798fi
9799
9800rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9801fi
9802{ echo "$as_me:$LINENO: result: $tcl_cv_struct_dirent64" >&5
9803echo "${ECHO_T}$tcl_cv_struct_dirent64" >&6; }
9804	if test "x${tcl_cv_struct_dirent64}" = "xyes" ; then
9805
9806cat >>confdefs.h <<\_ACEOF
9807#define HAVE_STRUCT_DIRENT64 1
9808_ACEOF
9809
9810	fi
9811
9812	{ echo "$as_me:$LINENO: checking for struct stat64" >&5
9813echo $ECHO_N "checking for struct stat64... $ECHO_C" >&6; }
9814if test "${tcl_cv_struct_stat64+set}" = set; then
9815  echo $ECHO_N "(cached) $ECHO_C" >&6
9816else
9817
9818	    cat >conftest.$ac_ext <<_ACEOF
9819/* confdefs.h.  */
9820_ACEOF
9821cat confdefs.h >>conftest.$ac_ext
9822cat >>conftest.$ac_ext <<_ACEOF
9823/* end confdefs.h.  */
9824#include <sys/stat.h>
9825int
9826main ()
9827{
9828struct stat64 p;
9829
9830  ;
9831  return 0;
9832}
9833_ACEOF
9834rm -f conftest.$ac_objext
9835if { (ac_try="$ac_compile"
9836case "(($ac_try" in
9837  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9838  *) ac_try_echo=$ac_try;;
9839esac
9840eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9841  (eval "$ac_compile") 2>conftest.er1
9842  ac_status=$?
9843  grep -v '^ *+' conftest.er1 >conftest.err
9844  rm -f conftest.er1
9845  cat conftest.err >&5
9846  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9847  (exit $ac_status); } && {
9848	 test -z "$ac_c_werror_flag" ||
9849	 test ! -s conftest.err
9850       } && test -s conftest.$ac_objext; then
9851  tcl_cv_struct_stat64=yes
9852else
9853  echo "$as_me: failed program was:" >&5
9854sed 's/^/| /' conftest.$ac_ext >&5
9855
9856	tcl_cv_struct_stat64=no
9857fi
9858
9859rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9860fi
9861{ echo "$as_me:$LINENO: result: $tcl_cv_struct_stat64" >&5
9862echo "${ECHO_T}$tcl_cv_struct_stat64" >&6; }
9863	if test "x${tcl_cv_struct_stat64}" = "xyes" ; then
9864
9865cat >>confdefs.h <<\_ACEOF
9866#define HAVE_STRUCT_STAT64 1
9867_ACEOF
9868
9869	fi
9870
9871
9872
9873for ac_func in open64 lseek64
9874do
9875as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9876{ echo "$as_me:$LINENO: checking for $ac_func" >&5
9877echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9878if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9879  echo $ECHO_N "(cached) $ECHO_C" >&6
9880else
9881  cat >conftest.$ac_ext <<_ACEOF
9882/* confdefs.h.  */
9883_ACEOF
9884cat confdefs.h >>conftest.$ac_ext
9885cat >>conftest.$ac_ext <<_ACEOF
9886/* end confdefs.h.  */
9887/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9888   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9889#define $ac_func innocuous_$ac_func
9890
9891/* System header to define __stub macros and hopefully few prototypes,
9892    which can conflict with char $ac_func (); below.
9893    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9894    <limits.h> exists even on freestanding compilers.  */
9895
9896#ifdef __STDC__
9897# include <limits.h>
9898#else
9899# include <assert.h>
9900#endif
9901
9902#undef $ac_func
9903
9904/* Override any GCC internal prototype to avoid an error.
9905   Use char because int might match the return type of a GCC
9906   builtin and then its argument prototype would still apply.  */
9907#ifdef __cplusplus
9908extern "C"
9909#endif
9910char $ac_func ();
9911/* The GNU C library defines this for functions which it implements
9912    to always fail with ENOSYS.  Some functions are actually named
9913    something starting with __ and the normal name is an alias.  */
9914#if defined __stub_$ac_func || defined __stub___$ac_func
9915choke me
9916#endif
9917
9918int
9919main ()
9920{
9921return $ac_func ();
9922  ;
9923  return 0;
9924}
9925_ACEOF
9926rm -f conftest.$ac_objext conftest$ac_exeext
9927if { (ac_try="$ac_link"
9928case "(($ac_try" in
9929  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9930  *) ac_try_echo=$ac_try;;
9931esac
9932eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9933  (eval "$ac_link") 2>conftest.er1
9934  ac_status=$?
9935  grep -v '^ *+' conftest.er1 >conftest.err
9936  rm -f conftest.er1
9937  cat conftest.err >&5
9938  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9939  (exit $ac_status); } && {
9940	 test -z "$ac_c_werror_flag" ||
9941	 test ! -s conftest.err
9942       } && test -s conftest$ac_exeext &&
9943       $as_test_x conftest$ac_exeext; then
9944  eval "$as_ac_var=yes"
9945else
9946  echo "$as_me: failed program was:" >&5
9947sed 's/^/| /' conftest.$ac_ext >&5
9948
9949	eval "$as_ac_var=no"
9950fi
9951
9952rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9953      conftest$ac_exeext conftest.$ac_ext
9954fi
9955ac_res=`eval echo '${'$as_ac_var'}'`
9956	       { echo "$as_me:$LINENO: result: $ac_res" >&5
9957echo "${ECHO_T}$ac_res" >&6; }
9958if test `eval echo '${'$as_ac_var'}'` = yes; then
9959  cat >>confdefs.h <<_ACEOF
9960#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9961_ACEOF
9962
9963fi
9964done
9965
9966	{ echo "$as_me:$LINENO: checking for off64_t" >&5
9967echo $ECHO_N "checking for off64_t... $ECHO_C" >&6; }
9968	if test "${tcl_cv_type_off64_t+set}" = set; then
9969  echo $ECHO_N "(cached) $ECHO_C" >&6
9970else
9971
9972	    cat >conftest.$ac_ext <<_ACEOF
9973/* confdefs.h.  */
9974_ACEOF
9975cat confdefs.h >>conftest.$ac_ext
9976cat >>conftest.$ac_ext <<_ACEOF
9977/* end confdefs.h.  */
9978#include <sys/types.h>
9979int
9980main ()
9981{
9982off64_t offset;
9983
9984  ;
9985  return 0;
9986}
9987_ACEOF
9988rm -f conftest.$ac_objext
9989if { (ac_try="$ac_compile"
9990case "(($ac_try" in
9991  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9992  *) ac_try_echo=$ac_try;;
9993esac
9994eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9995  (eval "$ac_compile") 2>conftest.er1
9996  ac_status=$?
9997  grep -v '^ *+' conftest.er1 >conftest.err
9998  rm -f conftest.er1
9999  cat conftest.err >&5
10000  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10001  (exit $ac_status); } && {
10002	 test -z "$ac_c_werror_flag" ||
10003	 test ! -s conftest.err
10004       } && test -s conftest.$ac_objext; then
10005  tcl_cv_type_off64_t=yes
10006else
10007  echo "$as_me: failed program was:" >&5
10008sed 's/^/| /' conftest.$ac_ext >&5
10009
10010	tcl_cv_type_off64_t=no
10011fi
10012
10013rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10014fi
10015
10016			if test "x${tcl_cv_type_off64_t}" = "xyes" && \
10017	        test "x${ac_cv_func_lseek64}" = "xyes" && \
10018	        test "x${ac_cv_func_open64}" = "xyes" ; then
10019
10020cat >>confdefs.h <<\_ACEOF
10021#define HAVE_TYPE_OFF64_T 1
10022_ACEOF
10023
10024	    { echo "$as_me:$LINENO: result: yes" >&5
10025echo "${ECHO_T}yes" >&6; }
10026	else
10027	    { echo "$as_me:$LINENO: result: no" >&5
10028echo "${ECHO_T}no" >&6; }
10029	fi
10030    fi
10031
10032
10033
10034#--------------------------------------------------------------------
10035# Set the default compiler switches based on the --enable-symbols option.
10036#--------------------------------------------------------------------
10037
10038
10039
10040    { echo "$as_me:$LINENO: checking for build with symbols" >&5
10041echo $ECHO_N "checking for build with symbols... $ECHO_C" >&6; }
10042    # Check whether --enable-symbols was given.
10043if test "${enable_symbols+set}" = set; then
10044  enableval=$enable_symbols; tcl_ok=$enableval
10045else
10046  tcl_ok=no
10047fi
10048
10049    DBGX=""
10050    if test "$tcl_ok" = "no"; then
10051	CFLAGS_DEFAULT="${CFLAGS_OPTIMIZE}"
10052	LDFLAGS_DEFAULT="${LDFLAGS_OPTIMIZE}"
10053	{ echo "$as_me:$LINENO: result: no" >&5
10054echo "${ECHO_T}no" >&6; }
10055    else
10056	CFLAGS_DEFAULT="${CFLAGS_DEBUG}"
10057	LDFLAGS_DEFAULT="${LDFLAGS_DEBUG}"
10058	if test "$tcl_ok" = "yes"; then
10059	    { echo "$as_me:$LINENO: result: yes (standard debugging)" >&5
10060echo "${ECHO_T}yes (standard debugging)" >&6; }
10061	fi
10062    fi
10063    # TEA specific:
10064    if test "${TEA_PLATFORM}" != "windows" ; then
10065	LDFLAGS_DEFAULT="${LDFLAGS}"
10066    fi
10067
10068
10069
10070
10071    if test "$tcl_ok" = "mem" -o "$tcl_ok" = "all"; then
10072
10073cat >>confdefs.h <<\_ACEOF
10074#define TCL_MEM_DEBUG 1
10075_ACEOF
10076
10077    fi
10078
10079    if test "$tcl_ok" != "yes" -a "$tcl_ok" != "no"; then
10080	if test "$tcl_ok" = "all"; then
10081	    { echo "$as_me:$LINENO: result: enabled symbols mem debugging" >&5
10082echo "${ECHO_T}enabled symbols mem debugging" >&6; }
10083	else
10084	    { echo "$as_me:$LINENO: result: enabled $tcl_ok debugging" >&5
10085echo "${ECHO_T}enabled $tcl_ok debugging" >&6; }
10086	fi
10087    fi
10088
10089
10090#--------------------------------------------------------------------
10091# Everyone should be linking against the Tcl stub library.  If you
10092# can't for some reason, remove this definition.  If you aren't using
10093# stubs, you also need to modify the SHLIB_LD_LIBS setting below to
10094# link against the non-stubbed Tcl library.
10095#--------------------------------------------------------------------
10096
10097cat >>confdefs.h <<\_ACEOF
10098#define USE_TCL_STUBS 1
10099_ACEOF
10100
10101
10102#--------------------------------------------------------------------
10103# This macro generates a line to use when building a library.  It
10104# depends on values set by the TEA_ENABLE_SHARED, TEA_ENABLE_SYMBOLS,
10105# and TEA_LOAD_TCLCONFIG macros above.
10106#--------------------------------------------------------------------
10107
10108
10109    if test "${TEA_PLATFORM}" = "windows" -a "$GCC" != "yes"; then
10110	MAKE_STATIC_LIB="\${STLIB_LD} -out:\$@ \$(PKG_OBJECTS)"
10111	MAKE_SHARED_LIB="\${SHLIB_LD} \${SHLIB_LD_LIBS} \${LDFLAGS_DEFAULT} -out:\$@ \$(PKG_OBJECTS)"
10112	cat >conftest.$ac_ext <<_ACEOF
10113/* confdefs.h.  */
10114_ACEOF
10115cat confdefs.h >>conftest.$ac_ext
10116cat >>conftest.$ac_ext <<_ACEOF
10117/* end confdefs.h.  */
10118
10119#if defined(_MSC_VER) && _MSC_VER >= 1400
10120print("manifest needed")
10121#endif
10122
10123_ACEOF
10124if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10125  $EGREP "manifest needed" >/dev/null 2>&1; then
10126
10127	# Could do a CHECK_PROG for mt, but should always be with MSVC8+
10128	VC_MANIFEST_EMBED_DLL="mt.exe -nologo -manifest \$@.manifest -outputresource:\$@\;2"
10129	VC_MANIFEST_EMBED_EXE="mt.exe -nologo -manifest \$@.manifest -outputresource:\$@\;1"
10130	MAKE_SHARED_LIB="${MAKE_SHARED_LIB} ; ${VC_MANIFEST_EMBED_DLL}"
10131
10132    CLEANFILES="$CLEANFILES *.manifest"
10133
10134
10135fi
10136rm -f -r conftest*
10137
10138	MAKE_STUB_LIB="\${STLIB_LD} -out:\$@ \$(PKG_STUB_OBJECTS)"
10139    else
10140	MAKE_STATIC_LIB="\${STLIB_LD} \$@ \$(PKG_OBJECTS)"
10141	MAKE_SHARED_LIB="\${SHLIB_LD} -o \$@ \$(PKG_OBJECTS) \${SHLIB_LD_LIBS}"
10142	MAKE_STUB_LIB="\${STLIB_LD} \$@ \$(PKG_STUB_OBJECTS)"
10143    fi
10144
10145    if test "${SHARED_BUILD}" = "1" ; then
10146	MAKE_LIB="${MAKE_SHARED_LIB} "
10147    else
10148	MAKE_LIB="${MAKE_STATIC_LIB} "
10149    fi
10150
10151    #--------------------------------------------------------------------
10152    # Shared libraries and static libraries have different names.
10153    # Use the double eval to make sure any variables in the suffix is
10154    # substituted. (@@@ Might not be necessary anymore)
10155    #--------------------------------------------------------------------
10156
10157    if test "${TEA_PLATFORM}" = "windows" ; then
10158	if test "${SHARED_BUILD}" = "1" ; then
10159	    # We force the unresolved linking of symbols that are really in
10160	    # the private libraries of Tcl and Tk.
10161	    SHLIB_LD_LIBS="${SHLIB_LD_LIBS} \"`${CYGPATH} ${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}`\""
10162	    if test x"${TK_BIN_DIR}" != x ; then
10163		SHLIB_LD_LIBS="${SHLIB_LD_LIBS} \"`${CYGPATH} ${TK_BIN_DIR}/${TK_STUB_LIB_FILE}`\""
10164	    fi
10165	    eval eval "PKG_LIB_FILE=${PACKAGE_NAME}${SHARED_LIB_SUFFIX}"
10166	else
10167	    eval eval "PKG_LIB_FILE=${PACKAGE_NAME}${UNSHARED_LIB_SUFFIX}"
10168	fi
10169	# Some packages build their own stubs libraries
10170	eval eval "PKG_STUB_LIB_FILE=${PACKAGE_NAME}stub${UNSHARED_LIB_SUFFIX}"
10171	if test "$GCC" = "yes"; then
10172	    PKG_STUB_LIB_FILE=lib${PKG_STUB_LIB_FILE}
10173	fi
10174	# These aren't needed on Windows (either MSVC or gcc)
10175	RANLIB=:
10176	RANLIB_STUB=:
10177    else
10178	RANLIB_STUB="${RANLIB}"
10179	if test "${SHARED_BUILD}" = "1" ; then
10180	    SHLIB_LD_LIBS="${SHLIB_LD_LIBS} ${TCL_STUB_LIB_SPEC}"
10181	    if test x"${TK_BIN_DIR}" != x ; then
10182		SHLIB_LD_LIBS="${SHLIB_LD_LIBS} ${TK_STUB_LIB_SPEC}"
10183	    fi
10184	    eval eval "PKG_LIB_FILE=lib${PACKAGE_NAME}${SHARED_LIB_SUFFIX}"
10185	    RANLIB=:
10186	else
10187	    eval eval "PKG_LIB_FILE=lib${PACKAGE_NAME}${UNSHARED_LIB_SUFFIX}"
10188	fi
10189	# Some packages build their own stubs libraries
10190	eval eval "PKG_STUB_LIB_FILE=lib${PACKAGE_NAME}stub${UNSHARED_LIB_SUFFIX}"
10191    fi
10192
10193    # These are escaped so that only CFLAGS is picked up at configure time.
10194    # The other values will be substituted at make time.
10195    CFLAGS="${CFLAGS} \${CFLAGS_DEFAULT} \${CFLAGS_WARNING}"
10196    if test "${SHARED_BUILD}" = "1" ; then
10197	CFLAGS="${CFLAGS} \${SHLIB_CFLAGS}"
10198    fi
10199
10200
10201
10202
10203
10204
10205
10206
10207
10208
10209#--------------------------------------------------------------------
10210# Find tclsh so that we can run pkg_mkIndex to generate the pkgIndex.tcl
10211# file during the install process.  Don't run the TCLSH_PROG through
10212# ${CYGPATH} because it's being used directly by make.
10213# Require that we use a tclsh shell version 8.2 or later since earlier
10214# versions have bugs in the pkg_mkIndex routine.
10215# Add WISH as well if this is a Tk extension.
10216#--------------------------------------------------------------------
10217
10218
10219    { echo "$as_me:$LINENO: checking for tclsh" >&5
10220echo $ECHO_N "checking for tclsh... $ECHO_C" >&6; }
10221    if test -f "${TCL_BIN_DIR}/Makefile" ; then
10222        # tclConfig.sh is in Tcl build directory
10223        if test "${TEA_PLATFORM}" = "windows"; then
10224            TCLSH_PROG="${TCL_BIN_DIR}/tclsh${TCL_MAJOR_VERSION}${TCL_MINOR_VERSION}${TCL_DBGX}${EXEEXT}"
10225        else
10226            TCLSH_PROG="${TCL_BIN_DIR}/tclsh"
10227        fi
10228    else
10229        # tclConfig.sh is in install location
10230        if test "${TEA_PLATFORM}" = "windows"; then
10231            TCLSH_PROG="tclsh${TCL_MAJOR_VERSION}${TCL_MINOR_VERSION}${TCL_DBGX}${EXEEXT}"
10232        else
10233            TCLSH_PROG="tclsh${TCL_MAJOR_VERSION}.${TCL_MINOR_VERSION}${TCL_DBGX}"
10234        fi
10235        list="`ls -d ${TCL_BIN_DIR}/../bin 2>/dev/null` \
10236              `ls -d ${TCL_BIN_DIR}/..     2>/dev/null` \
10237              `ls -d ${TCL_PREFIX}/bin     2>/dev/null`"
10238        for i in $list ; do
10239            if test -f "$i/${TCLSH_PROG}" ; then
10240                REAL_TCL_BIN_DIR="`cd "$i"; pwd`/"
10241                break
10242            fi
10243        done
10244        TCLSH_PROG="${REAL_TCL_BIN_DIR}${TCLSH_PROG}"
10245    fi
10246    { echo "$as_me:$LINENO: result: ${TCLSH_PROG}" >&5
10247echo "${ECHO_T}${TCLSH_PROG}" >&6; }
10248
10249
10250
10251#--------------------------------------------------------------------
10252# These are for tclxmlConfig.sh
10253#--------------------------------------------------------------------
10254
10255eval "${PACKAGE}_LIB_FILE=${PKG_LIB_FILE}"
10256eval "${PACKAGE}stub_LIB_FILE=${PKG_STUB_LIB_FILE}"
10257
10258# pkglibdir must be a fully qualified path and (not ${exec_prefix}/lib)
10259eval pkglibdir="${libdir}/${PACKAGE}${VERSION}"
10260if test "${TCL_LIB_VERSIONS_OK}" = "ok"; then
10261    eval Tclxml_LIB_FLAG="-lTclxml${VERSION}${DBGX}"
10262else
10263    eval Tclxml_LIB_FLAG="-lTclxml`echo ${VERSION} | tr -d .`${DBGX}"
10264fi
10265Tclxml_BUILD_LIB_SPEC="-L`pwd` ${Tclxml_LIB_FLAG}"
10266Tclxml_LIB_SPEC="-L${pkglibdir} ${Tclxml_LIB_FLAG}"
10267
10268if test "${TCL_LIB_VERSIONS_OK}" = "ok"; then
10269    eval Tclxml_STUB_LIB_FLAG="-lTclxmlstub${VERSION}${DBGX}"
10270else
10271    eval Tclxml_STUB_LIB_FLAG="-lTclxmlstub`echo ${VERSION} | tr -d .`${DBGX}"
10272fi
10273Tclxml_BUILD_STUB_LIB_SPEC="-L`pwd` ${Tclxml_STUB_LIB_FLAG}"
10274Tclxml_STUB_LIB_SPEC="-L${pkglibdir} ${Tclxml_STUB_LIB_FLAG}"
10275Tclxml_BUILD_STUB_LIB_PATH="`pwd`/${Tclxmlstub_LIB_FILE}"
10276Tclxml_STUB_LIB_PATH="${pkglibdir}/${Tclxmlstub_LIB_FILE}"
10277
10278
10279
10280
10281
10282
10283
10284
10285
10286
10287
10288
10289#--------------------------------------------------------------------
10290# Finally, substitute all of the various values into the Makefile.
10291# You may alternatively have a special pkgIndex.tcl.in or other files
10292# which require substituting th AC variables in.  Include these here.
10293#--------------------------------------------------------------------
10294
10295ac_config_files="$ac_config_files Makefile library/pkgIndex.tcl TclxmlConfig.sh"
10296
10297cat >confcache <<\_ACEOF
10298# This file is a shell script that caches the results of configure
10299# tests run on this system so they can be shared between configure
10300# scripts and configure runs, see configure's option --config-cache.
10301# It is not useful on other systems.  If it contains results you don't
10302# want to keep, you may remove or edit it.
10303#
10304# config.status only pays attention to the cache file if you give it
10305# the --recheck option to rerun configure.
10306#
10307# `ac_cv_env_foo' variables (set or unset) will be overridden when
10308# loading this file, other *unset* `ac_cv_foo' will be assigned the
10309# following values.
10310
10311_ACEOF
10312
10313# The following way of writing the cache mishandles newlines in values,
10314# but we know of no workaround that is simple, portable, and efficient.
10315# So, we kill variables containing newlines.
10316# Ultrix sh set writes to stderr and can't be redirected directly,
10317# and sets the high bit in the cache file unless we assign to the vars.
10318(
10319  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
10320    eval ac_val=\$$ac_var
10321    case $ac_val in #(
10322    *${as_nl}*)
10323      case $ac_var in #(
10324      *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
10325echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
10326      esac
10327      case $ac_var in #(
10328      _ | IFS | as_nl) ;; #(
10329      *) $as_unset $ac_var ;;
10330      esac ;;
10331    esac
10332  done
10333
10334  (set) 2>&1 |
10335    case $as_nl`(ac_space=' '; set) 2>&1` in #(
10336    *${as_nl}ac_space=\ *)
10337      # `set' does not quote correctly, so add quotes (double-quote
10338      # substitution turns \\\\ into \\, and sed turns \\ into \).
10339      sed -n \
10340	"s/'/'\\\\''/g;
10341	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
10342      ;; #(
10343    *)
10344      # `set' quotes correctly as required by POSIX, so do not add quotes.
10345      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
10346      ;;
10347    esac |
10348    sort
10349) |
10350  sed '
10351     /^ac_cv_env_/b end
10352     t clear
10353     :clear
10354     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10355     t end
10356     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10357     :end' >>confcache
10358if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
10359  if test -w "$cache_file"; then
10360    test "x$cache_file" != "x/dev/null" &&
10361      { echo "$as_me:$LINENO: updating cache $cache_file" >&5
10362echo "$as_me: updating cache $cache_file" >&6;}
10363    cat confcache >$cache_file
10364  else
10365    { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
10366echo "$as_me: not updating unwritable cache $cache_file" >&6;}
10367  fi
10368fi
10369rm -f confcache
10370
10371test "x$prefix" = xNONE && prefix=$ac_default_prefix
10372# Let make expand exec_prefix.
10373test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
10374
10375# Transform confdefs.h into DEFS.
10376# Protect against shell expansion while executing Makefile rules.
10377# Protect against Makefile macro expansion.
10378#
10379# If the first sed substitution is executed (which looks for macros that
10380# take arguments), then branch to the quote section.  Otherwise,
10381# look for a macro that doesn't take arguments.
10382ac_script='
10383t clear
10384:clear
10385s/^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 (][^	 (]*([^)]*)\)[	 ]*\(.*\)/-D\1=\2/g
10386t quote
10387s/^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 ][^	 ]*\)[	 ]*\(.*\)/-D\1=\2/g
10388t quote
10389b any
10390:quote
10391s/[	 `~#$^&*(){}\\|;'\''"<>?]/\\&/g
10392s/\[/\\&/g
10393s/\]/\\&/g
10394s/\$/$$/g
10395H
10396:any
10397${
10398	g
10399	s/^\n//
10400	s/\n/ /g
10401	p
10402}
10403'
10404DEFS=`sed -n "$ac_script" confdefs.h`
10405
10406
10407ac_libobjs=
10408ac_ltlibobjs=
10409for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
10410  # 1. Remove the extension, and $U if already installed.
10411  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
10412  ac_i=`echo "$ac_i" | sed "$ac_script"`
10413  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
10414  #    will be set to the directory where LIBOBJS objects are built.
10415  ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
10416  ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
10417done
10418LIBOBJS=$ac_libobjs
10419
10420LTLIBOBJS=$ac_ltlibobjs
10421
10422
10423CFLAGS="${CFLAGS} ${CPPFLAGS}"; CPPFLAGS=""
10424
10425: ${CONFIG_STATUS=./config.status}
10426ac_clean_files_save=$ac_clean_files
10427ac_clean_files="$ac_clean_files $CONFIG_STATUS"
10428{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
10429echo "$as_me: creating $CONFIG_STATUS" >&6;}
10430cat >$CONFIG_STATUS <<_ACEOF
10431#! $SHELL
10432# Generated by $as_me.
10433# Run this file to recreate the current configuration.
10434# Compiler output produced by configure, useful for debugging
10435# configure, is in config.log if it exists.
10436
10437debug=false
10438ac_cs_recheck=false
10439ac_cs_silent=false
10440SHELL=\${CONFIG_SHELL-$SHELL}
10441_ACEOF
10442
10443cat >>$CONFIG_STATUS <<\_ACEOF
10444## --------------------- ##
10445## M4sh Initialization.  ##
10446## --------------------- ##
10447
10448# Be more Bourne compatible
10449DUALCASE=1; export DUALCASE # for MKS sh
10450if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
10451  emulate sh
10452  NULLCMD=:
10453  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
10454  # is contrary to our usage.  Disable this feature.
10455  alias -g '${1+"$@"}'='"$@"'
10456  setopt NO_GLOB_SUBST
10457else
10458  case `(set -o) 2>/dev/null` in
10459  *posix*) set -o posix ;;
10460esac
10461
10462fi
10463
10464
10465
10466
10467# PATH needs CR
10468# Avoid depending upon Character Ranges.
10469as_cr_letters='abcdefghijklmnopqrstuvwxyz'
10470as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
10471as_cr_Letters=$as_cr_letters$as_cr_LETTERS
10472as_cr_digits='0123456789'
10473as_cr_alnum=$as_cr_Letters$as_cr_digits
10474
10475# The user is always right.
10476if test "${PATH_SEPARATOR+set}" != set; then
10477  echo "#! /bin/sh" >conf$$.sh
10478  echo  "exit 0"   >>conf$$.sh
10479  chmod +x conf$$.sh
10480  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10481    PATH_SEPARATOR=';'
10482  else
10483    PATH_SEPARATOR=:
10484  fi
10485  rm -f conf$$.sh
10486fi
10487
10488# Support unset when possible.
10489if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
10490  as_unset=unset
10491else
10492  as_unset=false
10493fi
10494
10495
10496# IFS
10497# We need space, tab and new line, in precisely that order.  Quoting is
10498# there to prevent editors from complaining about space-tab.
10499# (If _AS_PATH_WALK were called with IFS unset, it would disable word
10500# splitting by setting IFS to empty value.)
10501as_nl='
10502'
10503IFS=" ""	$as_nl"
10504
10505# Find who we are.  Look in the path if we contain no directory separator.
10506case $0 in
10507  *[\\/]* ) as_myself=$0 ;;
10508  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10509for as_dir in $PATH
10510do
10511  IFS=$as_save_IFS
10512  test -z "$as_dir" && as_dir=.
10513  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
10514done
10515IFS=$as_save_IFS
10516
10517     ;;
10518esac
10519# We did not find ourselves, most probably we were run as `sh COMMAND'
10520# in which case we are not to be found in the path.
10521if test "x$as_myself" = x; then
10522  as_myself=$0
10523fi
10524if test ! -f "$as_myself"; then
10525  echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
10526  { (exit 1); exit 1; }
10527fi
10528
10529# Work around bugs in pre-3.0 UWIN ksh.
10530for as_var in ENV MAIL MAILPATH
10531do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
10532done
10533PS1='$ '
10534PS2='> '
10535PS4='+ '
10536
10537# NLS nuisances.
10538for as_var in \
10539  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
10540  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
10541  LC_TELEPHONE LC_TIME
10542do
10543  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
10544    eval $as_var=C; export $as_var
10545  else
10546    ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
10547  fi
10548done
10549
10550# Required to use basename.
10551if expr a : '\(a\)' >/dev/null 2>&1 &&
10552   test "X`expr 00001 : '.*\(...\)'`" = X001; then
10553  as_expr=expr
10554else
10555  as_expr=false
10556fi
10557
10558if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
10559  as_basename=basename
10560else
10561  as_basename=false
10562fi
10563
10564
10565# Name of the executable.
10566as_me=`$as_basename -- "$0" ||
10567$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
10568	 X"$0" : 'X\(//\)$' \| \
10569	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
10570echo X/"$0" |
10571    sed '/^.*\/\([^/][^/]*\)\/*$/{
10572	    s//\1/
10573	    q
10574	  }
10575	  /^X\/\(\/\/\)$/{
10576	    s//\1/
10577	    q
10578	  }
10579	  /^X\/\(\/\).*/{
10580	    s//\1/
10581	    q
10582	  }
10583	  s/.*/./; q'`
10584
10585# CDPATH.
10586$as_unset CDPATH
10587
10588
10589
10590  as_lineno_1=$LINENO
10591  as_lineno_2=$LINENO
10592  test "x$as_lineno_1" != "x$as_lineno_2" &&
10593  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
10594
10595  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
10596  # uniformly replaced by the line number.  The first 'sed' inserts a
10597  # line-number line after each line using $LINENO; the second 'sed'
10598  # does the real work.  The second script uses 'N' to pair each
10599  # line-number line with the line containing $LINENO, and appends
10600  # trailing '-' during substitution so that $LINENO is not a special
10601  # case at line end.
10602  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
10603  # scripts with optimization help from Paolo Bonzini.  Blame Lee
10604  # E. McMahon (1931-1989) for sed's syntax.  :-)
10605  sed -n '
10606    p
10607    /[$]LINENO/=
10608  ' <$as_myself |
10609    sed '
10610      s/[$]LINENO.*/&-/
10611      t lineno
10612      b
10613      :lineno
10614      N
10615      :loop
10616      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
10617      t loop
10618      s/-\n.*//
10619    ' >$as_me.lineno &&
10620  chmod +x "$as_me.lineno" ||
10621    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
10622   { (exit 1); exit 1; }; }
10623
10624  # Don't try to exec as it changes $[0], causing all sort of problems
10625  # (the dirname of $[0] is not the place where we might find the
10626  # original and so on.  Autoconf is especially sensitive to this).
10627  . "./$as_me.lineno"
10628  # Exit status is that of the last command.
10629  exit
10630}
10631
10632
10633if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
10634  as_dirname=dirname
10635else
10636  as_dirname=false
10637fi
10638
10639ECHO_C= ECHO_N= ECHO_T=
10640case `echo -n x` in
10641-n*)
10642  case `echo 'x\c'` in
10643  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
10644  *)   ECHO_C='\c';;
10645  esac;;
10646*)
10647  ECHO_N='-n';;
10648esac
10649
10650if expr a : '\(a\)' >/dev/null 2>&1 &&
10651   test "X`expr 00001 : '.*\(...\)'`" = X001; then
10652  as_expr=expr
10653else
10654  as_expr=false
10655fi
10656
10657rm -f conf$$ conf$$.exe conf$$.file
10658if test -d conf$$.dir; then
10659  rm -f conf$$.dir/conf$$.file
10660else
10661  rm -f conf$$.dir
10662  mkdir conf$$.dir
10663fi
10664echo >conf$$.file
10665if ln -s conf$$.file conf$$ 2>/dev/null; then
10666  as_ln_s='ln -s'
10667  # ... but there are two gotchas:
10668  # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
10669  # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
10670  # In both cases, we have to default to `cp -p'.
10671  ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
10672    as_ln_s='cp -p'
10673elif ln conf$$.file conf$$ 2>/dev/null; then
10674  as_ln_s=ln
10675else
10676  as_ln_s='cp -p'
10677fi
10678rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
10679rmdir conf$$.dir 2>/dev/null
10680
10681if mkdir -p . 2>/dev/null; then
10682  as_mkdir_p=:
10683else
10684  test -d ./-p && rmdir ./-p
10685  as_mkdir_p=false
10686fi
10687
10688if test -x / >/dev/null 2>&1; then
10689  as_test_x='test -x'
10690else
10691  if ls -dL / >/dev/null 2>&1; then
10692    as_ls_L_option=L
10693  else
10694    as_ls_L_option=
10695  fi
10696  as_test_x='
10697    eval sh -c '\''
10698      if test -d "$1"; then
10699        test -d "$1/.";
10700      else
10701	case $1 in
10702        -*)set "./$1";;
10703	esac;
10704	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
10705	???[sx]*):;;*)false;;esac;fi
10706    '\'' sh
10707  '
10708fi
10709as_executable_p=$as_test_x
10710
10711# Sed expression to map a string onto a valid CPP name.
10712as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
10713
10714# Sed expression to map a string onto a valid variable name.
10715as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
10716
10717
10718exec 6>&1
10719
10720# Save the log message, to keep $[0] and so on meaningful, and to
10721# report actual input values of CONFIG_FILES etc. instead of their
10722# values after options handling.
10723ac_log="
10724This file was extended by Tclxml $as_me 2.6, which was
10725generated by GNU Autoconf 2.61.  Invocation command line was
10726
10727  CONFIG_FILES    = $CONFIG_FILES
10728  CONFIG_HEADERS  = $CONFIG_HEADERS
10729  CONFIG_LINKS    = $CONFIG_LINKS
10730  CONFIG_COMMANDS = $CONFIG_COMMANDS
10731  $ $0 $@
10732
10733on `(hostname || uname -n) 2>/dev/null | sed 1q`
10734"
10735
10736_ACEOF
10737
10738cat >>$CONFIG_STATUS <<_ACEOF
10739# Files that config.status was made for.
10740config_files="$ac_config_files"
10741
10742_ACEOF
10743
10744cat >>$CONFIG_STATUS <<\_ACEOF
10745ac_cs_usage="\
10746\`$as_me' instantiates files from templates according to the
10747current configuration.
10748
10749Usage: $0 [OPTIONS] [FILE]...
10750
10751  -h, --help       print this help, then exit
10752  -V, --version    print version number and configuration settings, then exit
10753  -q, --quiet      do not print progress messages
10754  -d, --debug      don't remove temporary files
10755      --recheck    update $as_me by reconfiguring in the same conditions
10756  --file=FILE[:TEMPLATE]
10757		   instantiate the configuration file FILE
10758
10759Configuration files:
10760$config_files
10761
10762Report bugs to <bug-autoconf@gnu.org>."
10763
10764_ACEOF
10765cat >>$CONFIG_STATUS <<_ACEOF
10766ac_cs_version="\\
10767Tclxml config.status 2.6
10768configured by $0, generated by GNU Autoconf 2.61,
10769  with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
10770
10771Copyright (C) 2006 Free Software Foundation, Inc.
10772This config.status script is free software; the Free Software Foundation
10773gives unlimited permission to copy, distribute and modify it."
10774
10775ac_pwd='$ac_pwd'
10776srcdir='$srcdir'
10777INSTALL='$INSTALL'
10778_ACEOF
10779
10780cat >>$CONFIG_STATUS <<\_ACEOF
10781# If no file are specified by the user, then we need to provide default
10782# value.  By we need to know if files were specified by the user.
10783ac_need_defaults=:
10784while test $# != 0
10785do
10786  case $1 in
10787  --*=*)
10788    ac_option=`expr "X$1" : 'X\([^=]*\)='`
10789    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
10790    ac_shift=:
10791    ;;
10792  *)
10793    ac_option=$1
10794    ac_optarg=$2
10795    ac_shift=shift
10796    ;;
10797  esac
10798
10799  case $ac_option in
10800  # Handling of the options.
10801  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
10802    ac_cs_recheck=: ;;
10803  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
10804    echo "$ac_cs_version"; exit ;;
10805  --debug | --debu | --deb | --de | --d | -d )
10806    debug=: ;;
10807  --file | --fil | --fi | --f )
10808    $ac_shift
10809    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
10810    ac_need_defaults=false;;
10811  --he | --h |  --help | --hel | -h )
10812    echo "$ac_cs_usage"; exit ;;
10813  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
10814  | -silent | --silent | --silen | --sile | --sil | --si | --s)
10815    ac_cs_silent=: ;;
10816
10817  # This is an error.
10818  -*) { echo "$as_me: error: unrecognized option: $1
10819Try \`$0 --help' for more information." >&2
10820   { (exit 1); exit 1; }; } ;;
10821
10822  *) ac_config_targets="$ac_config_targets $1"
10823     ac_need_defaults=false ;;
10824
10825  esac
10826  shift
10827done
10828
10829ac_configure_extra_args=
10830
10831if $ac_cs_silent; then
10832  exec 6>/dev/null
10833  ac_configure_extra_args="$ac_configure_extra_args --silent"
10834fi
10835
10836_ACEOF
10837cat >>$CONFIG_STATUS <<_ACEOF
10838if \$ac_cs_recheck; then
10839  echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
10840  CONFIG_SHELL=$SHELL
10841  export CONFIG_SHELL
10842  exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
10843fi
10844
10845_ACEOF
10846cat >>$CONFIG_STATUS <<\_ACEOF
10847exec 5>>config.log
10848{
10849  echo
10850  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
10851## Running $as_me. ##
10852_ASBOX
10853  echo "$ac_log"
10854} >&5
10855
10856_ACEOF
10857cat >>$CONFIG_STATUS <<_ACEOF
10858_ACEOF
10859
10860cat >>$CONFIG_STATUS <<\_ACEOF
10861
10862# Handling of arguments.
10863for ac_config_target in $ac_config_targets
10864do
10865  case $ac_config_target in
10866    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
10867    "library/pkgIndex.tcl") CONFIG_FILES="$CONFIG_FILES library/pkgIndex.tcl" ;;
10868    "TclxmlConfig.sh") CONFIG_FILES="$CONFIG_FILES TclxmlConfig.sh" ;;
10869
10870  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
10871echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
10872   { (exit 1); exit 1; }; };;
10873  esac
10874done
10875
10876
10877# If the user did not use the arguments to specify the items to instantiate,
10878# then the envvar interface is used.  Set only those that are not.
10879# We use the long form for the default assignment because of an extremely
10880# bizarre bug on SunOS 4.1.3.
10881if $ac_need_defaults; then
10882  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
10883fi
10884
10885# Have a temporary directory for convenience.  Make it in the build tree
10886# simply because there is no reason against having it here, and in addition,
10887# creating and moving files from /tmp can sometimes cause problems.
10888# Hook for its removal unless debugging.
10889# Note that there is a small window in which the directory will not be cleaned:
10890# after its creation but before its name has been assigned to `$tmp'.
10891$debug ||
10892{
10893  tmp=
10894  trap 'exit_status=$?
10895  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
10896' 0
10897  trap '{ (exit 1); exit 1; }' 1 2 13 15
10898}
10899# Create a (secure) tmp directory for tmp files.
10900
10901{
10902  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
10903  test -n "$tmp" && test -d "$tmp"
10904}  ||
10905{
10906  tmp=./conf$$-$RANDOM
10907  (umask 077 && mkdir "$tmp")
10908} ||
10909{
10910   echo "$me: cannot create a temporary directory in ." >&2
10911   { (exit 1); exit 1; }
10912}
10913
10914#
10915# Set up the sed scripts for CONFIG_FILES section.
10916#
10917
10918# No need to generate the scripts if there are no CONFIG_FILES.
10919# This happens for instance when ./config.status config.h
10920if test -n "$CONFIG_FILES"; then
10921
10922_ACEOF
10923
10924
10925
10926ac_delim='%!_!# '
10927for ac_last_try in false false false false false :; do
10928  cat >conf$$subs.sed <<_ACEOF
10929SHELL!$SHELL$ac_delim
10930PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
10931PACKAGE_NAME!$PACKAGE_NAME$ac_delim
10932PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
10933PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
10934PACKAGE_STRING!$PACKAGE_STRING$ac_delim
10935PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
10936exec_prefix!$exec_prefix$ac_delim
10937prefix!$prefix$ac_delim
10938program_transform_name!$program_transform_name$ac_delim
10939bindir!$bindir$ac_delim
10940sbindir!$sbindir$ac_delim
10941libexecdir!$libexecdir$ac_delim
10942datarootdir!$datarootdir$ac_delim
10943datadir!$datadir$ac_delim
10944sysconfdir!$sysconfdir$ac_delim
10945sharedstatedir!$sharedstatedir$ac_delim
10946localstatedir!$localstatedir$ac_delim
10947includedir!$includedir$ac_delim
10948oldincludedir!$oldincludedir$ac_delim
10949docdir!$docdir$ac_delim
10950infodir!$infodir$ac_delim
10951htmldir!$htmldir$ac_delim
10952dvidir!$dvidir$ac_delim
10953pdfdir!$pdfdir$ac_delim
10954psdir!$psdir$ac_delim
10955libdir!$libdir$ac_delim
10956localedir!$localedir$ac_delim
10957mandir!$mandir$ac_delim
10958DEFS!$DEFS$ac_delim
10959ECHO_C!$ECHO_C$ac_delim
10960ECHO_N!$ECHO_N$ac_delim
10961ECHO_T!$ECHO_T$ac_delim
10962LIBS!$LIBS$ac_delim
10963build_alias!$build_alias$ac_delim
10964host_alias!$host_alias$ac_delim
10965target_alias!$target_alias$ac_delim
10966CONFIGDIR!$CONFIGDIR$ac_delim
10967PACKAGE!$PACKAGE$ac_delim
10968VERSION!$VERSION$ac_delim
10969TCLXML_VERSION!$TCLXML_VERSION$ac_delim
10970Tclxml_LIB_FILE!$Tclxml_LIB_FILE$ac_delim
10971Tclxmlstub_LIB_FILE!$Tclxmlstub_LIB_FILE$ac_delim
10972CYGPATH!$CYGPATH$ac_delim
10973EXEEXT!$EXEEXT$ac_delim
10974PKG_LIB_FILE!$PKG_LIB_FILE$ac_delim
10975PKG_STUB_LIB_FILE!$PKG_STUB_LIB_FILE$ac_delim
10976PKG_STUB_SOURCES!$PKG_STUB_SOURCES$ac_delim
10977PKG_STUB_OBJECTS!$PKG_STUB_OBJECTS$ac_delim
10978PKG_TCL_SOURCES!$PKG_TCL_SOURCES$ac_delim
10979PKG_HEADERS!$PKG_HEADERS$ac_delim
10980PKG_INCLUDES!$PKG_INCLUDES$ac_delim
10981PKG_LIBS!$PKG_LIBS$ac_delim
10982PKG_CFLAGS!$PKG_CFLAGS$ac_delim
10983TCL_VERSION!$TCL_VERSION$ac_delim
10984TCL_PATCH_LEVEL!$TCL_PATCH_LEVEL$ac_delim
10985TCL_BIN_DIR!$TCL_BIN_DIR$ac_delim
10986TCL_SRC_DIR!$TCL_SRC_DIR$ac_delim
10987TCL_LIB_FILE!$TCL_LIB_FILE$ac_delim
10988TCL_LIB_FLAG!$TCL_LIB_FLAG$ac_delim
10989TCL_LIB_SPEC!$TCL_LIB_SPEC$ac_delim
10990TCL_STUB_LIB_FILE!$TCL_STUB_LIB_FILE$ac_delim
10991TCL_STUB_LIB_FLAG!$TCL_STUB_LIB_FLAG$ac_delim
10992TCL_STUB_LIB_SPEC!$TCL_STUB_LIB_SPEC$ac_delim
10993CLEANFILES!$CLEANFILES$ac_delim
10994TCL_LIBS!$TCL_LIBS$ac_delim
10995TCL_DEFS!$TCL_DEFS$ac_delim
10996TCL_EXTRA_CFLAGS!$TCL_EXTRA_CFLAGS$ac_delim
10997TCL_LD_FLAGS!$TCL_LD_FLAGS$ac_delim
10998TCL_SHLIB_LD_LIBS!$TCL_SHLIB_LD_LIBS$ac_delim
10999CC!$CC$ac_delim
11000CFLAGS!$CFLAGS$ac_delim
11001LDFLAGS!$LDFLAGS$ac_delim
11002CPPFLAGS!$CPPFLAGS$ac_delim
11003ac_ct_CC!$ac_ct_CC$ac_delim
11004OBJEXT!$OBJEXT$ac_delim
11005CPP!$CPP$ac_delim
11006INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
11007INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
11008INSTALL_DATA!$INSTALL_DATA$ac_delim
11009SET_MAKE!$SET_MAKE$ac_delim
11010RANLIB!$RANLIB$ac_delim
11011GREP!$GREP$ac_delim
11012EGREP!$EGREP$ac_delim
11013MATH_LIBS!$MATH_LIBS$ac_delim
11014TCL_INCLUDES!$TCL_INCLUDES$ac_delim
11015EXTRA_SOURCES!$EXTRA_SOURCES$ac_delim
11016TCL_THREADS!$TCL_THREADS$ac_delim
11017SHARED_BUILD!$SHARED_BUILD$ac_delim
11018AR!$AR$ac_delim
11019CELIB_DIR!$CELIB_DIR$ac_delim
11020CFLAGS_DEBUG!$CFLAGS_DEBUG$ac_delim
11021CFLAGS_OPTIMIZE!$CFLAGS_OPTIMIZE$ac_delim
11022CFLAGS_WARNING!$CFLAGS_WARNING$ac_delim
11023STLIB_LD!$STLIB_LD$ac_delim
11024SHLIB_LD!$SHLIB_LD$ac_delim
11025SHLIB_LD_LIBS!$SHLIB_LD_LIBS$ac_delim
11026_ACEOF
11027
11028  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
11029    break
11030  elif $ac_last_try; then
11031    { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
11032echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
11033   { (exit 1); exit 1; }; }
11034  else
11035    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11036  fi
11037done
11038
11039ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
11040if test -n "$ac_eof"; then
11041  ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
11042  ac_eof=`expr $ac_eof + 1`
11043fi
11044
11045cat >>$CONFIG_STATUS <<_ACEOF
11046cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
11047/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
11048_ACEOF
11049sed '
11050s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
11051s/^/s,@/; s/!/@,|#_!!_#|/
11052:n
11053t n
11054s/'"$ac_delim"'$/,g/; t
11055s/$/\\/; p
11056N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
11057' >>$CONFIG_STATUS <conf$$subs.sed
11058rm -f conf$$subs.sed
11059cat >>$CONFIG_STATUS <<_ACEOF
11060CEOF$ac_eof
11061_ACEOF
11062
11063
11064ac_delim='%!_!# '
11065for ac_last_try in false false false false false :; do
11066  cat >conf$$subs.sed <<_ACEOF
11067SHLIB_CFLAGS!$SHLIB_CFLAGS$ac_delim
11068LD_LIBRARY_PATH_VAR!$LD_LIBRARY_PATH_VAR$ac_delim
11069CFLAGS_DEFAULT!$CFLAGS_DEFAULT$ac_delim
11070LDFLAGS_DEFAULT!$LDFLAGS_DEFAULT$ac_delim
11071TCL_DBGX!$TCL_DBGX$ac_delim
11072MAKE_LIB!$MAKE_LIB$ac_delim
11073MAKE_SHARED_LIB!$MAKE_SHARED_LIB$ac_delim
11074MAKE_STATIC_LIB!$MAKE_STATIC_LIB$ac_delim
11075MAKE_STUB_LIB!$MAKE_STUB_LIB$ac_delim
11076RANLIB_STUB!$RANLIB_STUB$ac_delim
11077VC_MANIFEST_EMBED_DLL!$VC_MANIFEST_EMBED_DLL$ac_delim
11078VC_MANIFEST_EMBED_EXE!$VC_MANIFEST_EMBED_EXE$ac_delim
11079TCLSH_PROG!$TCLSH_PROG$ac_delim
11080Tclxml_BUILD_LIB_SPEC!$Tclxml_BUILD_LIB_SPEC$ac_delim
11081Tclxml_LIB_SPEC!$Tclxml_LIB_SPEC$ac_delim
11082Tclxml_BUILD_STUB_LIB_SPEC!$Tclxml_BUILD_STUB_LIB_SPEC$ac_delim
11083Tclxml_STUB_LIB_SPEC!$Tclxml_STUB_LIB_SPEC$ac_delim
11084Tclxml_BUILD_STUB_LIB_PATH!$Tclxml_BUILD_STUB_LIB_PATH$ac_delim
11085Tclxml_STUB_LIB_PATH!$Tclxml_STUB_LIB_PATH$ac_delim
11086MAJOR_VERSION!$MAJOR_VERSION$ac_delim
11087MINOR_VERSION!$MINOR_VERSION$ac_delim
11088PATCHLEVEL!$PATCHLEVEL$ac_delim
11089LIBOBJS!$LIBOBJS$ac_delim
11090LTLIBOBJS!$LTLIBOBJS$ac_delim
11091_ACEOF
11092
11093  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 24; then
11094    break
11095  elif $ac_last_try; then
11096    { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
11097echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
11098   { (exit 1); exit 1; }; }
11099  else
11100    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11101  fi
11102done
11103
11104ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
11105if test -n "$ac_eof"; then
11106  ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
11107  ac_eof=`expr $ac_eof + 1`
11108fi
11109
11110cat >>$CONFIG_STATUS <<_ACEOF
11111cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
11112/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
11113_ACEOF
11114sed '
11115s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
11116s/^/s,@/; s/!/@,|#_!!_#|/
11117:n
11118t n
11119s/'"$ac_delim"'$/,g/; t
11120s/$/\\/; p
11121N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
11122' >>$CONFIG_STATUS <conf$$subs.sed
11123rm -f conf$$subs.sed
11124cat >>$CONFIG_STATUS <<_ACEOF
11125:end
11126s/|#_!!_#|//g
11127CEOF$ac_eof
11128_ACEOF
11129
11130
11131# VPATH may cause trouble with some makes, so we remove $(srcdir),
11132# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
11133# trailing colons and then remove the whole line if VPATH becomes empty
11134# (actually we leave an empty line to preserve line numbers).
11135if test "x$srcdir" = x.; then
11136  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
11137s/:*\$(srcdir):*/:/
11138s/:*\${srcdir}:*/:/
11139s/:*@srcdir@:*/:/
11140s/^\([^=]*=[	 ]*\):*/\1/
11141s/:*$//
11142s/^[^=]*=[	 ]*$//
11143}'
11144fi
11145
11146cat >>$CONFIG_STATUS <<\_ACEOF
11147fi # test -n "$CONFIG_FILES"
11148
11149
11150for ac_tag in  :F $CONFIG_FILES
11151do
11152  case $ac_tag in
11153  :[FHLC]) ac_mode=$ac_tag; continue;;
11154  esac
11155  case $ac_mode$ac_tag in
11156  :[FHL]*:*);;
11157  :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
11158echo "$as_me: error: Invalid tag $ac_tag." >&2;}
11159   { (exit 1); exit 1; }; };;
11160  :[FH]-) ac_tag=-:-;;
11161  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
11162  esac
11163  ac_save_IFS=$IFS
11164  IFS=:
11165  set x $ac_tag
11166  IFS=$ac_save_IFS
11167  shift
11168  ac_file=$1
11169  shift
11170
11171  case $ac_mode in
11172  :L) ac_source=$1;;
11173  :[FH])
11174    ac_file_inputs=
11175    for ac_f
11176    do
11177      case $ac_f in
11178      -) ac_f="$tmp/stdin";;
11179      *) # Look for the file first in the build tree, then in the source tree
11180	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
11181	 # because $ac_f cannot contain `:'.
11182	 test -f "$ac_f" ||
11183	   case $ac_f in
11184	   [\\/$]*) false;;
11185	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
11186	   esac ||
11187	   { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
11188echo "$as_me: error: cannot find input file: $ac_f" >&2;}
11189   { (exit 1); exit 1; }; };;
11190      esac
11191      ac_file_inputs="$ac_file_inputs $ac_f"
11192    done
11193
11194    # Let's still pretend it is `configure' which instantiates (i.e., don't
11195    # use $as_me), people would be surprised to read:
11196    #    /* config.h.  Generated by config.status.  */
11197    configure_input="Generated from "`IFS=:
11198	  echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
11199    if test x"$ac_file" != x-; then
11200      configure_input="$ac_file.  $configure_input"
11201      { echo "$as_me:$LINENO: creating $ac_file" >&5
11202echo "$as_me: creating $ac_file" >&6;}
11203    fi
11204
11205    case $ac_tag in
11206    *:-:* | *:-) cat >"$tmp/stdin";;
11207    esac
11208    ;;
11209  esac
11210
11211  ac_dir=`$as_dirname -- "$ac_file" ||
11212$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11213	 X"$ac_file" : 'X\(//\)[^/]' \| \
11214	 X"$ac_file" : 'X\(//\)$' \| \
11215	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
11216echo X"$ac_file" |
11217    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11218	    s//\1/
11219	    q
11220	  }
11221	  /^X\(\/\/\)[^/].*/{
11222	    s//\1/
11223	    q
11224	  }
11225	  /^X\(\/\/\)$/{
11226	    s//\1/
11227	    q
11228	  }
11229	  /^X\(\/\).*/{
11230	    s//\1/
11231	    q
11232	  }
11233	  s/.*/./; q'`
11234  { as_dir="$ac_dir"
11235  case $as_dir in #(
11236  -*) as_dir=./$as_dir;;
11237  esac
11238  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
11239    as_dirs=
11240    while :; do
11241      case $as_dir in #(
11242      *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
11243      *) as_qdir=$as_dir;;
11244      esac
11245      as_dirs="'$as_qdir' $as_dirs"
11246      as_dir=`$as_dirname -- "$as_dir" ||
11247$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11248	 X"$as_dir" : 'X\(//\)[^/]' \| \
11249	 X"$as_dir" : 'X\(//\)$' \| \
11250	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11251echo X"$as_dir" |
11252    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11253	    s//\1/
11254	    q
11255	  }
11256	  /^X\(\/\/\)[^/].*/{
11257	    s//\1/
11258	    q
11259	  }
11260	  /^X\(\/\/\)$/{
11261	    s//\1/
11262	    q
11263	  }
11264	  /^X\(\/\).*/{
11265	    s//\1/
11266	    q
11267	  }
11268	  s/.*/./; q'`
11269      test -d "$as_dir" && break
11270    done
11271    test -z "$as_dirs" || eval "mkdir $as_dirs"
11272  } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
11273echo "$as_me: error: cannot create directory $as_dir" >&2;}
11274   { (exit 1); exit 1; }; }; }
11275  ac_builddir=.
11276
11277case "$ac_dir" in
11278.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
11279*)
11280  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
11281  # A ".." for each directory in $ac_dir_suffix.
11282  ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
11283  case $ac_top_builddir_sub in
11284  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
11285  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
11286  esac ;;
11287esac
11288ac_abs_top_builddir=$ac_pwd
11289ac_abs_builddir=$ac_pwd$ac_dir_suffix
11290# for backward compatibility:
11291ac_top_builddir=$ac_top_build_prefix
11292
11293case $srcdir in
11294  .)  # We are building in place.
11295    ac_srcdir=.
11296    ac_top_srcdir=$ac_top_builddir_sub
11297    ac_abs_top_srcdir=$ac_pwd ;;
11298  [\\/]* | ?:[\\/]* )  # Absolute name.
11299    ac_srcdir=$srcdir$ac_dir_suffix;
11300    ac_top_srcdir=$srcdir
11301    ac_abs_top_srcdir=$srcdir ;;
11302  *) # Relative name.
11303    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
11304    ac_top_srcdir=$ac_top_build_prefix$srcdir
11305    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
11306esac
11307ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
11308
11309
11310  case $ac_mode in
11311  :F)
11312  #
11313  # CONFIG_FILE
11314  #
11315
11316  case $INSTALL in
11317  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
11318  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
11319  esac
11320_ACEOF
11321
11322cat >>$CONFIG_STATUS <<\_ACEOF
11323# If the template does not know about datarootdir, expand it.
11324# FIXME: This hack should be removed a few years after 2.60.
11325ac_datarootdir_hack=; ac_datarootdir_seen=
11326
11327case `sed -n '/datarootdir/ {
11328  p
11329  q
11330}
11331/@datadir@/p
11332/@docdir@/p
11333/@infodir@/p
11334/@localedir@/p
11335/@mandir@/p
11336' $ac_file_inputs` in
11337*datarootdir*) ac_datarootdir_seen=yes;;
11338*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
11339  { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
11340echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
11341_ACEOF
11342cat >>$CONFIG_STATUS <<_ACEOF
11343  ac_datarootdir_hack='
11344  s&@datadir@&$datadir&g
11345  s&@docdir@&$docdir&g
11346  s&@infodir@&$infodir&g
11347  s&@localedir@&$localedir&g
11348  s&@mandir@&$mandir&g
11349    s&\\\${datarootdir}&$datarootdir&g' ;;
11350esac
11351_ACEOF
11352
11353# Neutralize VPATH when `$srcdir' = `.'.
11354# Shell code in configure.ac might set extrasub.
11355# FIXME: do we really want to maintain this feature?
11356cat >>$CONFIG_STATUS <<_ACEOF
11357  sed "$ac_vpsub
11358$extrasub
11359_ACEOF
11360cat >>$CONFIG_STATUS <<\_ACEOF
11361:t
11362/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
11363s&@configure_input@&$configure_input&;t t
11364s&@top_builddir@&$ac_top_builddir_sub&;t t
11365s&@srcdir@&$ac_srcdir&;t t
11366s&@abs_srcdir@&$ac_abs_srcdir&;t t
11367s&@top_srcdir@&$ac_top_srcdir&;t t
11368s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
11369s&@builddir@&$ac_builddir&;t t
11370s&@abs_builddir@&$ac_abs_builddir&;t t
11371s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
11372s&@INSTALL@&$ac_INSTALL&;t t
11373$ac_datarootdir_hack
11374" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
11375
11376test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
11377  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
11378  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
11379  { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
11380which seems to be undefined.  Please make sure it is defined." >&5
11381echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
11382which seems to be undefined.  Please make sure it is defined." >&2;}
11383
11384  rm -f "$tmp/stdin"
11385  case $ac_file in
11386  -) cat "$tmp/out"; rm -f "$tmp/out";;
11387  *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
11388  esac
11389 ;;
11390
11391
11392
11393  esac
11394
11395done # for ac_tag
11396
11397
11398{ (exit 0); exit 0; }
11399_ACEOF
11400chmod +x $CONFIG_STATUS
11401ac_clean_files=$ac_clean_files_save
11402
11403
11404# configure is writing to config.log, and then calls config.status.
11405# config.status does its own redirection, appending to config.log.
11406# Unfortunately, on DOS this fails, as config.log is still kept open
11407# by configure, so config.status won't be able to write to it; its
11408# output is simply discarded.  So we exec the FD to /dev/null,
11409# effectively closing config.log, so it can be properly (re)opened and
11410# appended to by config.status.  When coming back to configure, we
11411# need to make the FD available again.
11412if test "$no_create" != yes; then
11413  ac_cs_success=:
11414  ac_config_status_args=
11415  test "$silent" = yes &&
11416    ac_config_status_args="$ac_config_status_args --quiet"
11417  exec 5>/dev/null
11418  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
11419  exec 5>>config.log
11420  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
11421  # would make configure fail if this is the last instruction.
11422  $ac_cs_success || { (exit 1); exit 1; }
11423fi
11424
11425
11426#--------------------------------------------------------------------
11427