1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.61 for QuickTimeTcl 3.2.
4#
5# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6# 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
7# This configure script is free software; the Free Software Foundation
8# gives unlimited permission to copy, distribute and modify it.
9## --------------------- ##
10## M4sh Initialization.  ##
11## --------------------- ##
12
13# Be more Bourne compatible
14DUALCASE=1; export DUALCASE # for MKS sh
15if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16  emulate sh
17  NULLCMD=:
18  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19  # is contrary to our usage.  Disable this feature.
20  alias -g '${1+"$@"}'='"$@"'
21  setopt NO_GLOB_SUBST
22else
23  case `(set -o) 2>/dev/null` in
24  *posix*) set -o posix ;;
25esac
26
27fi
28
29
30
31
32# PATH needs CR
33# Avoid depending upon Character Ranges.
34as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37as_cr_digits='0123456789'
38as_cr_alnum=$as_cr_Letters$as_cr_digits
39
40# The user is always right.
41if test "${PATH_SEPARATOR+set}" != set; then
42  echo "#! /bin/sh" >conf$$.sh
43  echo  "exit 0"   >>conf$$.sh
44  chmod +x conf$$.sh
45  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
46    PATH_SEPARATOR=';'
47  else
48    PATH_SEPARATOR=:
49  fi
50  rm -f conf$$.sh
51fi
52
53# Support unset when possible.
54if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
55  as_unset=unset
56else
57  as_unset=false
58fi
59
60
61# IFS
62# We need space, tab and new line, in precisely that order.  Quoting is
63# there to prevent editors from complaining about space-tab.
64# (If _AS_PATH_WALK were called with IFS unset, it would disable word
65# splitting by setting IFS to empty value.)
66as_nl='
67'
68IFS=" ""	$as_nl"
69
70# Find who we are.  Look in the path if we contain no directory separator.
71case $0 in
72  *[\\/]* ) as_myself=$0 ;;
73  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
74for as_dir in $PATH
75do
76  IFS=$as_save_IFS
77  test -z "$as_dir" && as_dir=.
78  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
79done
80IFS=$as_save_IFS
81
82     ;;
83esac
84# We did not find ourselves, most probably we were run as `sh COMMAND'
85# in which case we are not to be found in the path.
86if test "x$as_myself" = x; then
87  as_myself=$0
88fi
89if test ! -f "$as_myself"; then
90  echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
91  { (exit 1); exit 1; }
92fi
93
94# Work around bugs in pre-3.0 UWIN ksh.
95for as_var in ENV MAIL MAILPATH
96do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
97done
98PS1='$ '
99PS2='> '
100PS4='+ '
101
102# NLS nuisances.
103for as_var in \
104  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
106  LC_TELEPHONE LC_TIME
107do
108  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109    eval $as_var=C; export $as_var
110  else
111    ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
112  fi
113done
114
115# Required to use basename.
116if expr a : '\(a\)' >/dev/null 2>&1 &&
117   test "X`expr 00001 : '.*\(...\)'`" = X001; then
118  as_expr=expr
119else
120  as_expr=false
121fi
122
123if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
124  as_basename=basename
125else
126  as_basename=false
127fi
128
129
130# Name of the executable.
131as_me=`$as_basename -- "$0" ||
132$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133	 X"$0" : 'X\(//\)$' \| \
134	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
135echo X/"$0" |
136    sed '/^.*\/\([^/][^/]*\)\/*$/{
137	    s//\1/
138	    q
139	  }
140	  /^X\/\(\/\/\)$/{
141	    s//\1/
142	    q
143	  }
144	  /^X\/\(\/\).*/{
145	    s//\1/
146	    q
147	  }
148	  s/.*/./; q'`
149
150# CDPATH.
151$as_unset CDPATH
152
153
154if test "x$CONFIG_SHELL" = x; then
155  if (eval ":") 2>/dev/null; then
156  as_have_required=yes
157else
158  as_have_required=no
159fi
160
161  if test $as_have_required = yes && 	 (eval ":
162(as_func_return () {
163  (exit \$1)
164}
165as_func_success () {
166  as_func_return 0
167}
168as_func_failure () {
169  as_func_return 1
170}
171as_func_ret_success () {
172  return 0
173}
174as_func_ret_failure () {
175  return 1
176}
177
178exitcode=0
179if as_func_success; then
180  :
181else
182  exitcode=1
183  echo as_func_success failed.
184fi
185
186if as_func_failure; then
187  exitcode=1
188  echo as_func_failure succeeded.
189fi
190
191if as_func_ret_success; then
192  :
193else
194  exitcode=1
195  echo as_func_ret_success failed.
196fi
197
198if as_func_ret_failure; then
199  exitcode=1
200  echo as_func_ret_failure succeeded.
201fi
202
203if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
204  :
205else
206  exitcode=1
207  echo positional parameters were not saved.
208fi
209
210test \$exitcode = 0) || { (exit 1); exit 1; }
211
212(
213  as_lineno_1=\$LINENO
214  as_lineno_2=\$LINENO
215  test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216  test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217") 2> /dev/null; then
218  :
219else
220  as_candidate_shells=
221    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
223do
224  IFS=$as_save_IFS
225  test -z "$as_dir" && as_dir=.
226  case $as_dir in
227	 /*)
228	   for as_base in sh bash ksh sh5; do
229	     as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
230	   done;;
231       esac
232done
233IFS=$as_save_IFS
234
235
236      for as_shell in $as_candidate_shells $SHELL; do
237	 # Try only shells that exist, to save several forks.
238	 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239		{ ("$as_shell") 2> /dev/null <<\_ASEOF
240if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
241  emulate sh
242  NULLCMD=:
243  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
244  # is contrary to our usage.  Disable this feature.
245  alias -g '${1+"$@"}'='"$@"'
246  setopt NO_GLOB_SUBST
247else
248  case `(set -o) 2>/dev/null` in
249  *posix*) set -o posix ;;
250esac
251
252fi
253
254
255:
256_ASEOF
257}; then
258  CONFIG_SHELL=$as_shell
259	       as_have_required=yes
260	       if { "$as_shell" 2> /dev/null <<\_ASEOF
261if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262  emulate sh
263  NULLCMD=:
264  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265  # is contrary to our usage.  Disable this feature.
266  alias -g '${1+"$@"}'='"$@"'
267  setopt NO_GLOB_SUBST
268else
269  case `(set -o) 2>/dev/null` in
270  *posix*) set -o posix ;;
271esac
272
273fi
274
275
276:
277(as_func_return () {
278  (exit $1)
279}
280as_func_success () {
281  as_func_return 0
282}
283as_func_failure () {
284  as_func_return 1
285}
286as_func_ret_success () {
287  return 0
288}
289as_func_ret_failure () {
290  return 1
291}
292
293exitcode=0
294if as_func_success; then
295  :
296else
297  exitcode=1
298  echo as_func_success failed.
299fi
300
301if as_func_failure; then
302  exitcode=1
303  echo as_func_failure succeeded.
304fi
305
306if as_func_ret_success; then
307  :
308else
309  exitcode=1
310  echo as_func_ret_success failed.
311fi
312
313if as_func_ret_failure; then
314  exitcode=1
315  echo as_func_ret_failure succeeded.
316fi
317
318if ( set x; as_func_ret_success y && test x = "$1" ); then
319  :
320else
321  exitcode=1
322  echo positional parameters were not saved.
323fi
324
325test $exitcode = 0) || { (exit 1); exit 1; }
326
327(
328  as_lineno_1=$LINENO
329  as_lineno_2=$LINENO
330  test "x$as_lineno_1" != "x$as_lineno_2" &&
331  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
332
333_ASEOF
334}; then
335  break
336fi
337
338fi
339
340      done
341
342      if test "x$CONFIG_SHELL" != x; then
343  for as_var in BASH_ENV ENV
344        do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
345        done
346        export CONFIG_SHELL
347        exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
348fi
349
350
351    if test $as_have_required = no; then
352  echo This script requires a shell more modern than all the
353      echo shells that I found on your system.  Please install a
354      echo modern shell, or manually run the script under such a
355      echo shell if you do have one.
356      { (exit 1); exit 1; }
357fi
358
359
360fi
361
362fi
363
364
365
366(eval "as_func_return () {
367  (exit \$1)
368}
369as_func_success () {
370  as_func_return 0
371}
372as_func_failure () {
373  as_func_return 1
374}
375as_func_ret_success () {
376  return 0
377}
378as_func_ret_failure () {
379  return 1
380}
381
382exitcode=0
383if as_func_success; then
384  :
385else
386  exitcode=1
387  echo as_func_success failed.
388fi
389
390if as_func_failure; then
391  exitcode=1
392  echo as_func_failure succeeded.
393fi
394
395if as_func_ret_success; then
396  :
397else
398  exitcode=1
399  echo as_func_ret_success failed.
400fi
401
402if as_func_ret_failure; then
403  exitcode=1
404  echo as_func_ret_failure succeeded.
405fi
406
407if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
408  :
409else
410  exitcode=1
411  echo positional parameters were not saved.
412fi
413
414test \$exitcode = 0") || {
415  echo No shell found that supports shell functions.
416  echo Please tell autoconf@gnu.org about your system,
417  echo including any error possibly output before this
418  echo message
419}
420
421
422
423  as_lineno_1=$LINENO
424  as_lineno_2=$LINENO
425  test "x$as_lineno_1" != "x$as_lineno_2" &&
426  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
427
428  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
429  # uniformly replaced by the line number.  The first 'sed' inserts a
430  # line-number line after each line using $LINENO; the second 'sed'
431  # does the real work.  The second script uses 'N' to pair each
432  # line-number line with the line containing $LINENO, and appends
433  # trailing '-' during substitution so that $LINENO is not a special
434  # case at line end.
435  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
436  # scripts with optimization help from Paolo Bonzini.  Blame Lee
437  # E. McMahon (1931-1989) for sed's syntax.  :-)
438  sed -n '
439    p
440    /[$]LINENO/=
441  ' <$as_myself |
442    sed '
443      s/[$]LINENO.*/&-/
444      t lineno
445      b
446      :lineno
447      N
448      :loop
449      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
450      t loop
451      s/-\n.*//
452    ' >$as_me.lineno &&
453  chmod +x "$as_me.lineno" ||
454    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
455   { (exit 1); exit 1; }; }
456
457  # Don't try to exec as it changes $[0], causing all sort of problems
458  # (the dirname of $[0] is not the place where we might find the
459  # original and so on.  Autoconf is especially sensitive to this).
460  . "./$as_me.lineno"
461  # Exit status is that of the last command.
462  exit
463}
464
465
466if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
467  as_dirname=dirname
468else
469  as_dirname=false
470fi
471
472ECHO_C= ECHO_N= ECHO_T=
473case `echo -n x` in
474-n*)
475  case `echo 'x\c'` in
476  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
477  *)   ECHO_C='\c';;
478  esac;;
479*)
480  ECHO_N='-n';;
481esac
482
483if expr a : '\(a\)' >/dev/null 2>&1 &&
484   test "X`expr 00001 : '.*\(...\)'`" = X001; then
485  as_expr=expr
486else
487  as_expr=false
488fi
489
490rm -f conf$$ conf$$.exe conf$$.file
491if test -d conf$$.dir; then
492  rm -f conf$$.dir/conf$$.file
493else
494  rm -f conf$$.dir
495  mkdir conf$$.dir
496fi
497echo >conf$$.file
498if ln -s conf$$.file conf$$ 2>/dev/null; then
499  as_ln_s='ln -s'
500  # ... but there are two gotchas:
501  # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
502  # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
503  # In both cases, we have to default to `cp -p'.
504  ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
505    as_ln_s='cp -p'
506elif ln conf$$.file conf$$ 2>/dev/null; then
507  as_ln_s=ln
508else
509  as_ln_s='cp -p'
510fi
511rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
512rmdir conf$$.dir 2>/dev/null
513
514if mkdir -p . 2>/dev/null; then
515  as_mkdir_p=:
516else
517  test -d ./-p && rmdir ./-p
518  as_mkdir_p=false
519fi
520
521if test -x / >/dev/null 2>&1; then
522  as_test_x='test -x'
523else
524  if ls -dL / >/dev/null 2>&1; then
525    as_ls_L_option=L
526  else
527    as_ls_L_option=
528  fi
529  as_test_x='
530    eval sh -c '\''
531      if test -d "$1"; then
532        test -d "$1/.";
533      else
534	case $1 in
535        -*)set "./$1";;
536	esac;
537	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
538	???[sx]*):;;*)false;;esac;fi
539    '\'' sh
540  '
541fi
542as_executable_p=$as_test_x
543
544# Sed expression to map a string onto a valid CPP name.
545as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
546
547# Sed expression to map a string onto a valid variable name.
548as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
549
550
551
552exec 7<&0 </dev/null 6>&1
553
554# Name of the host.
555# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
556# so uname gets run too.
557ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
558
559#
560# Initializations.
561#
562ac_default_prefix=/usr/local
563ac_clean_files=
564ac_config_libobj_dir=.
565LIBOBJS=
566cross_compiling=no
567subdirs=
568MFLAGS=
569MAKEFLAGS=
570SHELL=${CONFIG_SHELL-/bin/sh}
571
572# Identity of this package.
573PACKAGE_NAME='QuickTimeTcl'
574PACKAGE_TARNAME='quicktimetcl'
575PACKAGE_VERSION='3.2'
576PACKAGE_STRING='QuickTimeTcl 3.2'
577PACKAGE_BUGREPORT=''
578
579# Factoring default headers for most tests.
580ac_includes_default="\
581#include <stdio.h>
582#ifdef HAVE_SYS_TYPES_H
583# include <sys/types.h>
584#endif
585#ifdef HAVE_SYS_STAT_H
586# include <sys/stat.h>
587#endif
588#ifdef STDC_HEADERS
589# include <stdlib.h>
590# include <stddef.h>
591#else
592# ifdef HAVE_STDLIB_H
593#  include <stdlib.h>
594# endif
595#endif
596#ifdef HAVE_STRING_H
597# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
598#  include <memory.h>
599# endif
600# include <string.h>
601#endif
602#ifdef HAVE_STRINGS_H
603# include <strings.h>
604#endif
605#ifdef HAVE_INTTYPES_H
606# include <inttypes.h>
607#endif
608#ifdef HAVE_STDINT_H
609# include <stdint.h>
610#endif
611#ifdef HAVE_UNISTD_H
612# include <unistd.h>
613#endif"
614
615ac_subst_vars='SHELL
616PATH_SEPARATOR
617PACKAGE_NAME
618PACKAGE_TARNAME
619PACKAGE_VERSION
620PACKAGE_STRING
621PACKAGE_BUGREPORT
622exec_prefix
623prefix
624program_transform_name
625bindir
626sbindir
627libexecdir
628datarootdir
629datadir
630sysconfdir
631sharedstatedir
632localstatedir
633includedir
634oldincludedir
635docdir
636infodir
637htmldir
638dvidir
639pdfdir
640psdir
641libdir
642localedir
643mandir
644DEFS
645ECHO_C
646ECHO_N
647ECHO_T
648LIBS
649build_alias
650host_alias
651target_alias
652CYGPATH
653EXEEXT
654PKG_LIB_FILE
655PKG_STUB_LIB_FILE
656PKG_STUB_SOURCES
657PKG_STUB_OBJECTS
658PKG_TCL_SOURCES
659PKG_HEADERS
660PKG_INCLUDES
661PKG_LIBS
662PKG_CFLAGS
663TCL_VERSION
664TCL_PATCH_LEVEL
665TCL_BIN_DIR
666TCL_SRC_DIR
667TCL_LIB_FILE
668TCL_LIB_FLAG
669TCL_LIB_SPEC
670TCL_STUB_LIB_FILE
671TCL_STUB_LIB_FLAG
672TCL_STUB_LIB_SPEC
673CLEANFILES
674TCL_LIBS
675TCL_DEFS
676TCL_EXTRA_CFLAGS
677TCL_LD_FLAGS
678TCL_SHLIB_LD_LIBS
679TK_VERSION
680TK_BIN_DIR
681TK_SRC_DIR
682TK_LIB_FILE
683TK_LIB_FLAG
684TK_LIB_SPEC
685TK_STUB_LIB_FILE
686TK_STUB_LIB_FLAG
687TK_STUB_LIB_SPEC
688TK_LIBS
689TK_XINCLUDES
690CC
691CFLAGS
692LDFLAGS
693CPPFLAGS
694ac_ct_CC
695OBJEXT
696CPP
697INSTALL_PROGRAM
698INSTALL_SCRIPT
699INSTALL_DATA
700SET_MAKE
701RANLIB
702GREP
703EGREP
704MATH_LIBS
705PKG_SOURCES
706PKG_OBJECTS
707TCL_INCLUDES
708TK_INCLUDES
709TK_TOP_DIR_NATIVE
710TK_XLIB_DIR_NATIVE
711XMKMF
712TCL_THREADS
713SHARED_BUILD
714AR
715CELIB_DIR
716CFLAGS_DEBUG
717CFLAGS_OPTIMIZE
718CFLAGS_WARNING
719STLIB_LD
720SHLIB_LD
721SHLIB_LD_LIBS
722SHLIB_CFLAGS
723LD_LIBRARY_PATH_VAR
724CFLAGS_DEFAULT
725LDFLAGS_DEFAULT
726TCL_DBGX
727MAKE_LIB
728MAKE_SHARED_LIB
729MAKE_STATIC_LIB
730MAKE_STUB_LIB
731RANLIB_STUB
732VC_MANIFEST_EMBED_DLL
733VC_MANIFEST_EMBED_EXE
734TCLSH_PROG
735WISH_PROG
736LIBOBJS
737LTLIBOBJS'
738ac_subst_files=''
739      ac_precious_vars='build_alias
740host_alias
741target_alias
742CC
743CFLAGS
744LDFLAGS
745LIBS
746CPPFLAGS
747CPP
748XMKMF'
749
750
751# Initialize some variables set by options.
752ac_init_help=
753ac_init_version=false
754# The variables have the same names as the options, with
755# dashes changed to underlines.
756cache_file=/dev/null
757exec_prefix=NONE
758no_create=
759no_recursion=
760prefix=NONE
761program_prefix=NONE
762program_suffix=NONE
763program_transform_name=s,x,x,
764silent=
765site=
766srcdir=
767verbose=
768x_includes=NONE
769x_libraries=NONE
770
771# Installation directory options.
772# These are left unexpanded so users can "make install exec_prefix=/foo"
773# and all the variables that are supposed to be based on exec_prefix
774# by default will actually change.
775# Use braces instead of parens because sh, perl, etc. also accept them.
776# (The list follows the same order as the GNU Coding Standards.)
777bindir='${exec_prefix}/bin'
778sbindir='${exec_prefix}/sbin'
779libexecdir='${exec_prefix}/libexec'
780datarootdir='${prefix}/share'
781datadir='${datarootdir}'
782sysconfdir='${prefix}/etc'
783sharedstatedir='${prefix}/com'
784localstatedir='${prefix}/var'
785includedir='${prefix}/include'
786oldincludedir='/usr/include'
787docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
788infodir='${datarootdir}/info'
789htmldir='${docdir}'
790dvidir='${docdir}'
791pdfdir='${docdir}'
792psdir='${docdir}'
793libdir='${exec_prefix}/lib'
794localedir='${datarootdir}/locale'
795mandir='${datarootdir}/man'
796
797ac_prev=
798ac_dashdash=
799for ac_option
800do
801  # If the previous option needs an argument, assign it.
802  if test -n "$ac_prev"; then
803    eval $ac_prev=\$ac_option
804    ac_prev=
805    continue
806  fi
807
808  case $ac_option in
809  *=*)	ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
810  *)	ac_optarg=yes ;;
811  esac
812
813  # Accept the important Cygnus configure options, so we can diagnose typos.
814
815  case $ac_dashdash$ac_option in
816  --)
817    ac_dashdash=yes ;;
818
819  -bindir | --bindir | --bindi | --bind | --bin | --bi)
820    ac_prev=bindir ;;
821  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
822    bindir=$ac_optarg ;;
823
824  -build | --build | --buil | --bui | --bu)
825    ac_prev=build_alias ;;
826  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
827    build_alias=$ac_optarg ;;
828
829  -cache-file | --cache-file | --cache-fil | --cache-fi \
830  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
831    ac_prev=cache_file ;;
832  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
833  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
834    cache_file=$ac_optarg ;;
835
836  --config-cache | -C)
837    cache_file=config.cache ;;
838
839  -datadir | --datadir | --datadi | --datad)
840    ac_prev=datadir ;;
841  -datadir=* | --datadir=* | --datadi=* | --datad=*)
842    datadir=$ac_optarg ;;
843
844  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
845  | --dataroo | --dataro | --datar)
846    ac_prev=datarootdir ;;
847  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
848  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
849    datarootdir=$ac_optarg ;;
850
851  -disable-* | --disable-*)
852    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
853    # Reject names that are not valid shell variable names.
854    expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
855      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
856   { (exit 1); exit 1; }; }
857    ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
858    eval enable_$ac_feature=no ;;
859
860  -docdir | --docdir | --docdi | --doc | --do)
861    ac_prev=docdir ;;
862  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
863    docdir=$ac_optarg ;;
864
865  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
866    ac_prev=dvidir ;;
867  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
868    dvidir=$ac_optarg ;;
869
870  -enable-* | --enable-*)
871    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
872    # Reject names that are not valid shell variable names.
873    expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
874      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
875   { (exit 1); exit 1; }; }
876    ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
877    eval enable_$ac_feature=\$ac_optarg ;;
878
879  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
880  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
881  | --exec | --exe | --ex)
882    ac_prev=exec_prefix ;;
883  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
884  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
885  | --exec=* | --exe=* | --ex=*)
886    exec_prefix=$ac_optarg ;;
887
888  -gas | --gas | --ga | --g)
889    # Obsolete; use --with-gas.
890    with_gas=yes ;;
891
892  -help | --help | --hel | --he | -h)
893    ac_init_help=long ;;
894  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
895    ac_init_help=recursive ;;
896  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
897    ac_init_help=short ;;
898
899  -host | --host | --hos | --ho)
900    ac_prev=host_alias ;;
901  -host=* | --host=* | --hos=* | --ho=*)
902    host_alias=$ac_optarg ;;
903
904  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
905    ac_prev=htmldir ;;
906  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
907  | --ht=*)
908    htmldir=$ac_optarg ;;
909
910  -includedir | --includedir | --includedi | --included | --include \
911  | --includ | --inclu | --incl | --inc)
912    ac_prev=includedir ;;
913  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
914  | --includ=* | --inclu=* | --incl=* | --inc=*)
915    includedir=$ac_optarg ;;
916
917  -infodir | --infodir | --infodi | --infod | --info | --inf)
918    ac_prev=infodir ;;
919  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
920    infodir=$ac_optarg ;;
921
922  -libdir | --libdir | --libdi | --libd)
923    ac_prev=libdir ;;
924  -libdir=* | --libdir=* | --libdi=* | --libd=*)
925    libdir=$ac_optarg ;;
926
927  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
928  | --libexe | --libex | --libe)
929    ac_prev=libexecdir ;;
930  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
931  | --libexe=* | --libex=* | --libe=*)
932    libexecdir=$ac_optarg ;;
933
934  -localedir | --localedir | --localedi | --localed | --locale)
935    ac_prev=localedir ;;
936  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
937    localedir=$ac_optarg ;;
938
939  -localstatedir | --localstatedir | --localstatedi | --localstated \
940  | --localstate | --localstat | --localsta | --localst | --locals)
941    ac_prev=localstatedir ;;
942  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
943  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
944    localstatedir=$ac_optarg ;;
945
946  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
947    ac_prev=mandir ;;
948  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
949    mandir=$ac_optarg ;;
950
951  -nfp | --nfp | --nf)
952    # Obsolete; use --without-fp.
953    with_fp=no ;;
954
955  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
956  | --no-cr | --no-c | -n)
957    no_create=yes ;;
958
959  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
960  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
961    no_recursion=yes ;;
962
963  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
964  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
965  | --oldin | --oldi | --old | --ol | --o)
966    ac_prev=oldincludedir ;;
967  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
968  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
969  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
970    oldincludedir=$ac_optarg ;;
971
972  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
973    ac_prev=prefix ;;
974  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
975    prefix=$ac_optarg ;;
976
977  -program-prefix | --program-prefix | --program-prefi | --program-pref \
978  | --program-pre | --program-pr | --program-p)
979    ac_prev=program_prefix ;;
980  -program-prefix=* | --program-prefix=* | --program-prefi=* \
981  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
982    program_prefix=$ac_optarg ;;
983
984  -program-suffix | --program-suffix | --program-suffi | --program-suff \
985  | --program-suf | --program-su | --program-s)
986    ac_prev=program_suffix ;;
987  -program-suffix=* | --program-suffix=* | --program-suffi=* \
988  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
989    program_suffix=$ac_optarg ;;
990
991  -program-transform-name | --program-transform-name \
992  | --program-transform-nam | --program-transform-na \
993  | --program-transform-n | --program-transform- \
994  | --program-transform | --program-transfor \
995  | --program-transfo | --program-transf \
996  | --program-trans | --program-tran \
997  | --progr-tra | --program-tr | --program-t)
998    ac_prev=program_transform_name ;;
999  -program-transform-name=* | --program-transform-name=* \
1000  | --program-transform-nam=* | --program-transform-na=* \
1001  | --program-transform-n=* | --program-transform-=* \
1002  | --program-transform=* | --program-transfor=* \
1003  | --program-transfo=* | --program-transf=* \
1004  | --program-trans=* | --program-tran=* \
1005  | --progr-tra=* | --program-tr=* | --program-t=*)
1006    program_transform_name=$ac_optarg ;;
1007
1008  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1009    ac_prev=pdfdir ;;
1010  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1011    pdfdir=$ac_optarg ;;
1012
1013  -psdir | --psdir | --psdi | --psd | --ps)
1014    ac_prev=psdir ;;
1015  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1016    psdir=$ac_optarg ;;
1017
1018  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1019  | -silent | --silent | --silen | --sile | --sil)
1020    silent=yes ;;
1021
1022  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1023    ac_prev=sbindir ;;
1024  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1025  | --sbi=* | --sb=*)
1026    sbindir=$ac_optarg ;;
1027
1028  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1029  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1030  | --sharedst | --shareds | --shared | --share | --shar \
1031  | --sha | --sh)
1032    ac_prev=sharedstatedir ;;
1033  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1034  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1035  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1036  | --sha=* | --sh=*)
1037    sharedstatedir=$ac_optarg ;;
1038
1039  -site | --site | --sit)
1040    ac_prev=site ;;
1041  -site=* | --site=* | --sit=*)
1042    site=$ac_optarg ;;
1043
1044  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1045    ac_prev=srcdir ;;
1046  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1047    srcdir=$ac_optarg ;;
1048
1049  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1050  | --syscon | --sysco | --sysc | --sys | --sy)
1051    ac_prev=sysconfdir ;;
1052  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1053  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1054    sysconfdir=$ac_optarg ;;
1055
1056  -target | --target | --targe | --targ | --tar | --ta | --t)
1057    ac_prev=target_alias ;;
1058  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1059    target_alias=$ac_optarg ;;
1060
1061  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1062    verbose=yes ;;
1063
1064  -version | --version | --versio | --versi | --vers | -V)
1065    ac_init_version=: ;;
1066
1067  -with-* | --with-*)
1068    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1069    # Reject names that are not valid shell variable names.
1070    expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1071      { echo "$as_me: error: invalid package name: $ac_package" >&2
1072   { (exit 1); exit 1; }; }
1073    ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1074    eval with_$ac_package=\$ac_optarg ;;
1075
1076  -without-* | --without-*)
1077    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1078    # Reject names that are not valid shell variable names.
1079    expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1080      { echo "$as_me: error: invalid package name: $ac_package" >&2
1081   { (exit 1); exit 1; }; }
1082    ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1083    eval with_$ac_package=no ;;
1084
1085  --x)
1086    # Obsolete; use --with-x.
1087    with_x=yes ;;
1088
1089  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1090  | --x-incl | --x-inc | --x-in | --x-i)
1091    ac_prev=x_includes ;;
1092  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1093  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1094    x_includes=$ac_optarg ;;
1095
1096  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1097  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1098    ac_prev=x_libraries ;;
1099  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1100  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1101    x_libraries=$ac_optarg ;;
1102
1103  -*) { echo "$as_me: error: unrecognized option: $ac_option
1104Try \`$0 --help' for more information." >&2
1105   { (exit 1); exit 1; }; }
1106    ;;
1107
1108  *=*)
1109    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1110    # Reject names that are not valid shell variable names.
1111    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1112      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1113   { (exit 1); exit 1; }; }
1114    eval $ac_envvar=\$ac_optarg
1115    export $ac_envvar ;;
1116
1117  *)
1118    # FIXME: should be removed in autoconf 3.0.
1119    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1120    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1121      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1122    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1123    ;;
1124
1125  esac
1126done
1127
1128if test -n "$ac_prev"; then
1129  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1130  { echo "$as_me: error: missing argument to $ac_option" >&2
1131   { (exit 1); exit 1; }; }
1132fi
1133
1134# Be sure to have absolute directory names.
1135for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1136		datadir sysconfdir sharedstatedir localstatedir includedir \
1137		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1138		libdir localedir mandir
1139do
1140  eval ac_val=\$$ac_var
1141  case $ac_val in
1142    [\\/$]* | ?:[\\/]* )  continue;;
1143    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1144  esac
1145  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1146   { (exit 1); exit 1; }; }
1147done
1148
1149# There might be people who depend on the old broken behavior: `$host'
1150# used to hold the argument of --host etc.
1151# FIXME: To remove some day.
1152build=$build_alias
1153host=$host_alias
1154target=$target_alias
1155
1156# FIXME: To remove some day.
1157if test "x$host_alias" != x; then
1158  if test "x$build_alias" = x; then
1159    cross_compiling=maybe
1160    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1161    If a cross compiler is detected then cross compile mode will be used." >&2
1162  elif test "x$build_alias" != "x$host_alias"; then
1163    cross_compiling=yes
1164  fi
1165fi
1166
1167ac_tool_prefix=
1168test -n "$host_alias" && ac_tool_prefix=$host_alias-
1169
1170test "$silent" = yes && exec 6>/dev/null
1171
1172
1173ac_pwd=`pwd` && test -n "$ac_pwd" &&
1174ac_ls_di=`ls -di .` &&
1175ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1176  { echo "$as_me: error: Working directory cannot be determined" >&2
1177   { (exit 1); exit 1; }; }
1178test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1179  { echo "$as_me: error: pwd does not report name of working directory" >&2
1180   { (exit 1); exit 1; }; }
1181
1182
1183# Find the source files, if location was not specified.
1184if test -z "$srcdir"; then
1185  ac_srcdir_defaulted=yes
1186  # Try the directory containing this script, then the parent directory.
1187  ac_confdir=`$as_dirname -- "$0" ||
1188$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1189	 X"$0" : 'X\(//\)[^/]' \| \
1190	 X"$0" : 'X\(//\)$' \| \
1191	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1192echo X"$0" |
1193    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1194	    s//\1/
1195	    q
1196	  }
1197	  /^X\(\/\/\)[^/].*/{
1198	    s//\1/
1199	    q
1200	  }
1201	  /^X\(\/\/\)$/{
1202	    s//\1/
1203	    q
1204	  }
1205	  /^X\(\/\).*/{
1206	    s//\1/
1207	    q
1208	  }
1209	  s/.*/./; q'`
1210  srcdir=$ac_confdir
1211  if test ! -r "$srcdir/$ac_unique_file"; then
1212    srcdir=..
1213  fi
1214else
1215  ac_srcdir_defaulted=no
1216fi
1217if test ! -r "$srcdir/$ac_unique_file"; then
1218  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1219  { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1220   { (exit 1); exit 1; }; }
1221fi
1222ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1223ac_abs_confdir=`(
1224	cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1225   { (exit 1); exit 1; }; }
1226	pwd)`
1227# When building in place, set srcdir=.
1228if test "$ac_abs_confdir" = "$ac_pwd"; then
1229  srcdir=.
1230fi
1231# Remove unnecessary trailing slashes from srcdir.
1232# Double slashes in file names in object file debugging info
1233# mess up M-x gdb in Emacs.
1234case $srcdir in
1235*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1236esac
1237for ac_var in $ac_precious_vars; do
1238  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1239  eval ac_env_${ac_var}_value=\$${ac_var}
1240  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1241  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1242done
1243
1244#
1245# Report the --help message.
1246#
1247if test "$ac_init_help" = "long"; then
1248  # Omit some internal or obsolete options to make the list less imposing.
1249  # This message is too long to be a string in the A/UX 3.1 sh.
1250  cat <<_ACEOF
1251\`configure' configures QuickTimeTcl 3.2 to adapt to many kinds of systems.
1252
1253Usage: $0 [OPTION]... [VAR=VALUE]...
1254
1255To assign environment variables (e.g., CC, CFLAGS...), specify them as
1256VAR=VALUE.  See below for descriptions of some of the useful variables.
1257
1258Defaults for the options are specified in brackets.
1259
1260Configuration:
1261  -h, --help              display this help and exit
1262      --help=short        display options specific to this package
1263      --help=recursive    display the short help of all the included packages
1264  -V, --version           display version information and exit
1265  -q, --quiet, --silent   do not print \`checking...' messages
1266      --cache-file=FILE   cache test results in FILE [disabled]
1267  -C, --config-cache      alias for \`--cache-file=config.cache'
1268  -n, --no-create         do not create output files
1269      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1270
1271Installation directories:
1272  --prefix=PREFIX         install architecture-independent files in PREFIX
1273			  [$ac_default_prefix]
1274  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1275			  [PREFIX]
1276
1277By default, \`make install' will install all the files in
1278\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1279an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1280for instance \`--prefix=\$HOME'.
1281
1282For better control, use the options below.
1283
1284Fine tuning of the installation directories:
1285  --bindir=DIR           user executables [EPREFIX/bin]
1286  --sbindir=DIR          system admin executables [EPREFIX/sbin]
1287  --libexecdir=DIR       program executables [EPREFIX/libexec]
1288  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1289  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1290  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1291  --libdir=DIR           object code libraries [EPREFIX/lib]
1292  --includedir=DIR       C header files [PREFIX/include]
1293  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1294  --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1295  --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1296  --infodir=DIR          info documentation [DATAROOTDIR/info]
1297  --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1298  --mandir=DIR           man documentation [DATAROOTDIR/man]
1299  --docdir=DIR           documentation root [DATAROOTDIR/doc/quicktimetcl]
1300  --htmldir=DIR          html documentation [DOCDIR]
1301  --dvidir=DIR           dvi documentation [DOCDIR]
1302  --pdfdir=DIR           pdf documentation [DOCDIR]
1303  --psdir=DIR            ps documentation [DOCDIR]
1304_ACEOF
1305
1306  cat <<\_ACEOF
1307
1308X features:
1309  --x-includes=DIR    X include files are in DIR
1310  --x-libraries=DIR   X library files are in DIR
1311_ACEOF
1312fi
1313
1314if test -n "$ac_init_help"; then
1315  case $ac_init_help in
1316     short | recursive ) echo "Configuration of QuickTimeTcl 3.2:";;
1317   esac
1318  cat <<\_ACEOF
1319
1320Optional Features:
1321  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1322  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1323  --enable-threads        build with threads
1324  --enable-shared         build and link with shared libraries (default: on)
1325  --enable-64bit          enable 64bit support (default: off)
1326  --enable-64bit-vis      enable 64bit Sparc VIS support (default: off)
1327  --disable-rpath         disable rpath support (default: on)
1328  --enable-wince          enable Win/CE support (where applicable)
1329  --enable-symbols        build with debugging symbols (default: off)
1330
1331Optional Packages:
1332  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1333  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1334  --with-tcl              directory containing tcl configuration
1335                          (tclConfig.sh)
1336  --with-tk               directory containing tk configuration (tkConfig.sh)
1337  --with-tclinclude       directory containing the public Tcl header files
1338  --with-tkinclude        directory containing the public Tk header files
1339  --with-x                use the X Window System
1340  --with-celib=DIR        use Windows/CE support library from DIR
1341
1342Some influential environment variables:
1343  CC          C compiler command
1344  CFLAGS      C compiler flags
1345  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1346              nonstandard directory <lib dir>
1347  LIBS        libraries to pass to the linker, e.g. -l<library>
1348  CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1349              you have headers in a nonstandard directory <include dir>
1350  CPP         C preprocessor
1351  XMKMF       Path to xmkmf, Makefile generator for X Window System
1352
1353Use these variables to override the choices made by `configure' or to help
1354it to find libraries and programs with nonstandard names/locations.
1355
1356_ACEOF
1357ac_status=$?
1358fi
1359
1360if test "$ac_init_help" = "recursive"; then
1361  # If there are subdirs, report their specific --help.
1362  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1363    test -d "$ac_dir" || continue
1364    ac_builddir=.
1365
1366case "$ac_dir" in
1367.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1368*)
1369  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1370  # A ".." for each directory in $ac_dir_suffix.
1371  ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1372  case $ac_top_builddir_sub in
1373  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1374  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1375  esac ;;
1376esac
1377ac_abs_top_builddir=$ac_pwd
1378ac_abs_builddir=$ac_pwd$ac_dir_suffix
1379# for backward compatibility:
1380ac_top_builddir=$ac_top_build_prefix
1381
1382case $srcdir in
1383  .)  # We are building in place.
1384    ac_srcdir=.
1385    ac_top_srcdir=$ac_top_builddir_sub
1386    ac_abs_top_srcdir=$ac_pwd ;;
1387  [\\/]* | ?:[\\/]* )  # Absolute name.
1388    ac_srcdir=$srcdir$ac_dir_suffix;
1389    ac_top_srcdir=$srcdir
1390    ac_abs_top_srcdir=$srcdir ;;
1391  *) # Relative name.
1392    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1393    ac_top_srcdir=$ac_top_build_prefix$srcdir
1394    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1395esac
1396ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1397
1398    cd "$ac_dir" || { ac_status=$?; continue; }
1399    # Check for guested configure.
1400    if test -f "$ac_srcdir/configure.gnu"; then
1401      echo &&
1402      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1403    elif test -f "$ac_srcdir/configure"; then
1404      echo &&
1405      $SHELL "$ac_srcdir/configure" --help=recursive
1406    else
1407      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1408    fi || ac_status=$?
1409    cd "$ac_pwd" || { ac_status=$?; break; }
1410  done
1411fi
1412
1413test -n "$ac_init_help" && exit $ac_status
1414if $ac_init_version; then
1415  cat <<\_ACEOF
1416QuickTimeTcl configure 3.2
1417generated by GNU Autoconf 2.61
1418
1419Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
14202002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1421This configure script is free software; the Free Software Foundation
1422gives unlimited permission to copy, distribute and modify it.
1423_ACEOF
1424  exit
1425fi
1426cat >config.log <<_ACEOF
1427This file contains any messages produced by compilers while
1428running configure, to aid debugging if configure makes a mistake.
1429
1430It was created by QuickTimeTcl $as_me 3.2, which was
1431generated by GNU Autoconf 2.61.  Invocation command line was
1432
1433  $ $0 $@
1434
1435_ACEOF
1436exec 5>>config.log
1437{
1438cat <<_ASUNAME
1439## --------- ##
1440## Platform. ##
1441## --------- ##
1442
1443hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1444uname -m = `(uname -m) 2>/dev/null || echo unknown`
1445uname -r = `(uname -r) 2>/dev/null || echo unknown`
1446uname -s = `(uname -s) 2>/dev/null || echo unknown`
1447uname -v = `(uname -v) 2>/dev/null || echo unknown`
1448
1449/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1450/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1451
1452/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1453/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1454/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1455/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1456/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1457/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1458/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1459
1460_ASUNAME
1461
1462as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1463for as_dir in $PATH
1464do
1465  IFS=$as_save_IFS
1466  test -z "$as_dir" && as_dir=.
1467  echo "PATH: $as_dir"
1468done
1469IFS=$as_save_IFS
1470
1471} >&5
1472
1473cat >&5 <<_ACEOF
1474
1475
1476## ----------- ##
1477## Core tests. ##
1478## ----------- ##
1479
1480_ACEOF
1481
1482
1483# Keep a trace of the command line.
1484# Strip out --no-create and --no-recursion so they do not pile up.
1485# Strip out --silent because we don't want to record it for future runs.
1486# Also quote any args containing shell meta-characters.
1487# Make two passes to allow for proper duplicate-argument suppression.
1488ac_configure_args=
1489ac_configure_args0=
1490ac_configure_args1=
1491ac_must_keep_next=false
1492for ac_pass in 1 2
1493do
1494  for ac_arg
1495  do
1496    case $ac_arg in
1497    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1498    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1499    | -silent | --silent | --silen | --sile | --sil)
1500      continue ;;
1501    *\'*)
1502      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1503    esac
1504    case $ac_pass in
1505    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1506    2)
1507      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1508      if test $ac_must_keep_next = true; then
1509	ac_must_keep_next=false # Got value, back to normal.
1510      else
1511	case $ac_arg in
1512	  *=* | --config-cache | -C | -disable-* | --disable-* \
1513	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1514	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1515	  | -with-* | --with-* | -without-* | --without-* | --x)
1516	    case "$ac_configure_args0 " in
1517	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1518	    esac
1519	    ;;
1520	  -* ) ac_must_keep_next=true ;;
1521	esac
1522      fi
1523      ac_configure_args="$ac_configure_args '$ac_arg'"
1524      ;;
1525    esac
1526  done
1527done
1528$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1529$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1530
1531# When interrupted or exit'd, cleanup temporary files, and complete
1532# config.log.  We remove comments because anyway the quotes in there
1533# would cause problems or look ugly.
1534# WARNING: Use '\'' to represent an apostrophe within the trap.
1535# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1536trap 'exit_status=$?
1537  # Save into config.log some information that might help in debugging.
1538  {
1539    echo
1540
1541    cat <<\_ASBOX
1542## ---------------- ##
1543## Cache variables. ##
1544## ---------------- ##
1545_ASBOX
1546    echo
1547    # The following way of writing the cache mishandles newlines in values,
1548(
1549  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1550    eval ac_val=\$$ac_var
1551    case $ac_val in #(
1552    *${as_nl}*)
1553      case $ac_var in #(
1554      *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1555echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1556      esac
1557      case $ac_var in #(
1558      _ | IFS | as_nl) ;; #(
1559      *) $as_unset $ac_var ;;
1560      esac ;;
1561    esac
1562  done
1563  (set) 2>&1 |
1564    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1565    *${as_nl}ac_space=\ *)
1566      sed -n \
1567	"s/'\''/'\''\\\\'\'''\''/g;
1568	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1569      ;; #(
1570    *)
1571      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1572      ;;
1573    esac |
1574    sort
1575)
1576    echo
1577
1578    cat <<\_ASBOX
1579## ----------------- ##
1580## Output variables. ##
1581## ----------------- ##
1582_ASBOX
1583    echo
1584    for ac_var in $ac_subst_vars
1585    do
1586      eval ac_val=\$$ac_var
1587      case $ac_val in
1588      *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1589      esac
1590      echo "$ac_var='\''$ac_val'\''"
1591    done | sort
1592    echo
1593
1594    if test -n "$ac_subst_files"; then
1595      cat <<\_ASBOX
1596## ------------------- ##
1597## File substitutions. ##
1598## ------------------- ##
1599_ASBOX
1600      echo
1601      for ac_var in $ac_subst_files
1602      do
1603	eval ac_val=\$$ac_var
1604	case $ac_val in
1605	*\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1606	esac
1607	echo "$ac_var='\''$ac_val'\''"
1608      done | sort
1609      echo
1610    fi
1611
1612    if test -s confdefs.h; then
1613      cat <<\_ASBOX
1614## ----------- ##
1615## confdefs.h. ##
1616## ----------- ##
1617_ASBOX
1618      echo
1619      cat confdefs.h
1620      echo
1621    fi
1622    test "$ac_signal" != 0 &&
1623      echo "$as_me: caught signal $ac_signal"
1624    echo "$as_me: exit $exit_status"
1625  } >&5
1626  rm -f core *.core core.conftest.* &&
1627    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1628    exit $exit_status
1629' 0
1630for ac_signal in 1 2 13 15; do
1631  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1632done
1633ac_signal=0
1634
1635# confdefs.h avoids OS command line length limits that DEFS can exceed.
1636rm -f -r conftest* confdefs.h
1637
1638# Predefined preprocessor variables.
1639
1640cat >>confdefs.h <<_ACEOF
1641#define PACKAGE_NAME "$PACKAGE_NAME"
1642_ACEOF
1643
1644
1645cat >>confdefs.h <<_ACEOF
1646#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1647_ACEOF
1648
1649
1650cat >>confdefs.h <<_ACEOF
1651#define PACKAGE_VERSION "$PACKAGE_VERSION"
1652_ACEOF
1653
1654
1655cat >>confdefs.h <<_ACEOF
1656#define PACKAGE_STRING "$PACKAGE_STRING"
1657_ACEOF
1658
1659
1660cat >>confdefs.h <<_ACEOF
1661#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1662_ACEOF
1663
1664
1665# Let the site file select an alternate cache file if it wants to.
1666# Prefer explicitly selected file to automatically selected ones.
1667if test -n "$CONFIG_SITE"; then
1668  set x "$CONFIG_SITE"
1669elif test "x$prefix" != xNONE; then
1670  set x "$prefix/share/config.site" "$prefix/etc/config.site"
1671else
1672  set x "$ac_default_prefix/share/config.site" \
1673	"$ac_default_prefix/etc/config.site"
1674fi
1675shift
1676for ac_site_file
1677do
1678  if test -r "$ac_site_file"; then
1679    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1680echo "$as_me: loading site script $ac_site_file" >&6;}
1681    sed 's/^/| /' "$ac_site_file" >&5
1682    . "$ac_site_file"
1683  fi
1684done
1685
1686if test -r "$cache_file"; then
1687  # Some versions of bash will fail to source /dev/null (special
1688  # files actually), so we avoid doing that.
1689  if test -f "$cache_file"; then
1690    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1691echo "$as_me: loading cache $cache_file" >&6;}
1692    case $cache_file in
1693      [\\/]* | ?:[\\/]* ) . "$cache_file";;
1694      *)                      . "./$cache_file";;
1695    esac
1696  fi
1697else
1698  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1699echo "$as_me: creating cache $cache_file" >&6;}
1700  >$cache_file
1701fi
1702
1703# Check that the precious variables saved in the cache have kept the same
1704# value.
1705ac_cache_corrupted=false
1706for ac_var in $ac_precious_vars; do
1707  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1708  eval ac_new_set=\$ac_env_${ac_var}_set
1709  eval ac_old_val=\$ac_cv_env_${ac_var}_value
1710  eval ac_new_val=\$ac_env_${ac_var}_value
1711  case $ac_old_set,$ac_new_set in
1712    set,)
1713      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1714echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1715      ac_cache_corrupted=: ;;
1716    ,set)
1717      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1718echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1719      ac_cache_corrupted=: ;;
1720    ,);;
1721    *)
1722      if test "x$ac_old_val" != "x$ac_new_val"; then
1723	{ echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1724echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1725	{ echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1726echo "$as_me:   former value:  $ac_old_val" >&2;}
1727	{ echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1728echo "$as_me:   current value: $ac_new_val" >&2;}
1729	ac_cache_corrupted=:
1730      fi;;
1731  esac
1732  # Pass precious variables to config.status.
1733  if test "$ac_new_set" = set; then
1734    case $ac_new_val in
1735    *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1736    *) ac_arg=$ac_var=$ac_new_val ;;
1737    esac
1738    case " $ac_configure_args " in
1739      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1740      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1741    esac
1742  fi
1743done
1744if $ac_cache_corrupted; then
1745  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1746echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1747  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1748echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1749   { (exit 1); exit 1; }; }
1750fi
1751
1752
1753
1754
1755
1756
1757
1758
1759
1760
1761
1762
1763
1764
1765
1766
1767
1768
1769
1770
1771
1772
1773
1774
1775
1776ac_ext=c
1777ac_cpp='$CPP $CPPFLAGS'
1778ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1779ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1780ac_compiler_gnu=$ac_cv_c_compiler_gnu
1781
1782
1783
1784if test ! -d /System/Library/Frameworks/Carbon.framework; then
1785    { { echo "$as_me:$LINENO: error: Mac OS X with Carbon required!" >&5
1786echo "$as_me: error: Mac OS X with Carbon required!" >&2;}
1787   { (exit 1); exit 1; }; }
1788fi
1789
1790#--------------------------------------------------------------------
1791# Call TEA_INIT as the first TEA_ macro to set up initial vars.
1792# This will define a ${TEA_PLATFORM} variable == "unix" or "windows"
1793# as well as PKG_LIB_FILE and PKG_STUB_LIB_FILE.
1794#--------------------------------------------------------------------
1795
1796
1797    # TEA extensions pass this us the version of TEA they think they
1798    # are compatible with.
1799    TEA_VERSION="3.9"
1800
1801    { echo "$as_me:$LINENO: checking for correct TEA configuration" >&5
1802echo $ECHO_N "checking for correct TEA configuration... $ECHO_C" >&6; }
1803    if test x"${PACKAGE_NAME}" = x ; then
1804	{ { echo "$as_me:$LINENO: error:
1805The PACKAGE_NAME variable must be defined by your TEA configure.in" >&5
1806echo "$as_me: error:
1807The PACKAGE_NAME variable must be defined by your TEA configure.in" >&2;}
1808   { (exit 1); exit 1; }; }
1809    fi
1810    if test x"3.9" = x ; then
1811	{ { echo "$as_me:$LINENO: error:
1812TEA version not specified." >&5
1813echo "$as_me: error:
1814TEA version not specified." >&2;}
1815   { (exit 1); exit 1; }; }
1816    elif test "3.9" != "${TEA_VERSION}" ; then
1817	{ echo "$as_me:$LINENO: result: warning: requested TEA version \"3.9\", have \"${TEA_VERSION}\"" >&5
1818echo "${ECHO_T}warning: requested TEA version \"3.9\", have \"${TEA_VERSION}\"" >&6; }
1819    else
1820	{ echo "$as_me:$LINENO: result: ok (TEA ${TEA_VERSION})" >&5
1821echo "${ECHO_T}ok (TEA ${TEA_VERSION})" >&6; }
1822    fi
1823    case "`uname -s`" in
1824	*win32*|*WIN32*|*MINGW32_*)
1825	    # Extract the first word of "cygpath", so it can be a program name with args.
1826set dummy cygpath; ac_word=$2
1827{ echo "$as_me:$LINENO: checking for $ac_word" >&5
1828echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1829if test "${ac_cv_prog_CYGPATH+set}" = set; then
1830  echo $ECHO_N "(cached) $ECHO_C" >&6
1831else
1832  if test -n "$CYGPATH"; then
1833  ac_cv_prog_CYGPATH="$CYGPATH" # Let the user override the test.
1834else
1835as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1836for as_dir in $PATH
1837do
1838  IFS=$as_save_IFS
1839  test -z "$as_dir" && as_dir=.
1840  for ac_exec_ext in '' $ac_executable_extensions; do
1841  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1842    ac_cv_prog_CYGPATH="cygpath -w"
1843    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1844    break 2
1845  fi
1846done
1847done
1848IFS=$as_save_IFS
1849
1850  test -z "$ac_cv_prog_CYGPATH" && ac_cv_prog_CYGPATH="echo"
1851fi
1852fi
1853CYGPATH=$ac_cv_prog_CYGPATH
1854if test -n "$CYGPATH"; then
1855  { echo "$as_me:$LINENO: result: $CYGPATH" >&5
1856echo "${ECHO_T}$CYGPATH" >&6; }
1857else
1858  { echo "$as_me:$LINENO: result: no" >&5
1859echo "${ECHO_T}no" >&6; }
1860fi
1861
1862
1863	    EXEEXT=".exe"
1864	    TEA_PLATFORM="windows"
1865	    ;;
1866	*CYGWIN_*)
1867	    CYGPATH=echo
1868	    EXEEXT=".exe"
1869	    # TEA_PLATFORM is determined later in LOAD_TCLCONFIG
1870	    ;;
1871	*)
1872	    CYGPATH=echo
1873	    EXEEXT=""
1874	    TEA_PLATFORM="unix"
1875	    ;;
1876    esac
1877
1878    # Check if exec_prefix is set. If not use fall back to prefix.
1879    # Note when adjusted, so that TEA_PREFIX can correct for this.
1880    # This is needed for recursive configures, since autoconf propagates
1881    # $prefix, but not $exec_prefix (doh!).
1882    if test x$exec_prefix = xNONE ; then
1883	exec_prefix_default=yes
1884	exec_prefix=$prefix
1885    fi
1886
1887
1888
1889
1890    # This package name must be replaced statically for AC_SUBST to work
1891
1892    # Substitute STUB_LIB_FILE in case package creates a stub library too.
1893
1894
1895    # We AC_SUBST these here to ensure they are subst'ed,
1896    # in case the user doesn't call TEA_ADD_...
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906ac_aux_dir=
1907for ac_dir in tclconfig "$srcdir"/tclconfig; do
1908  if test -f "$ac_dir/install-sh"; then
1909    ac_aux_dir=$ac_dir
1910    ac_install_sh="$ac_aux_dir/install-sh -c"
1911    break
1912  elif test -f "$ac_dir/install.sh"; then
1913    ac_aux_dir=$ac_dir
1914    ac_install_sh="$ac_aux_dir/install.sh -c"
1915    break
1916  elif test -f "$ac_dir/shtool"; then
1917    ac_aux_dir=$ac_dir
1918    ac_install_sh="$ac_aux_dir/shtool install -c"
1919    break
1920  fi
1921done
1922if test -z "$ac_aux_dir"; then
1923  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in tclconfig \"$srcdir\"/tclconfig" >&5
1924echo "$as_me: error: cannot find install-sh or install.sh in tclconfig \"$srcdir\"/tclconfig" >&2;}
1925   { (exit 1); exit 1; }; }
1926fi
1927
1928# These three variables are undocumented and unsupported,
1929# and are intended to be withdrawn in a future Autoconf release.
1930# They can cause serious problems if a builder's source tree is in a directory
1931# whose full name contains unusual characters.
1932ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
1933ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
1934ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
1935
1936
1937
1938#--------------------------------------------------------------------
1939# Load the tclConfig.sh file
1940#--------------------------------------------------------------------
1941
1942
1943
1944    #
1945    # Ok, lets find the tcl configuration
1946    # First, look for one uninstalled.
1947    # the alternative search directory is invoked by --with-tcl
1948    #
1949
1950    if test x"${no_tcl}" = x ; then
1951	# we reset no_tcl in case something fails here
1952	no_tcl=true
1953
1954# Check whether --with-tcl was given.
1955if test "${with_tcl+set}" = set; then
1956  withval=$with_tcl; with_tclconfig="${withval}"
1957fi
1958
1959	{ echo "$as_me:$LINENO: checking for Tcl configuration" >&5
1960echo $ECHO_N "checking for Tcl configuration... $ECHO_C" >&6; }
1961	if test "${ac_cv_c_tclconfig+set}" = set; then
1962  echo $ECHO_N "(cached) $ECHO_C" >&6
1963else
1964
1965
1966	    # First check to see if --with-tcl was specified.
1967	    if test x"${with_tclconfig}" != x ; then
1968		case "${with_tclconfig}" in
1969		    */tclConfig.sh )
1970			if test -f "${with_tclconfig}"; then
1971			    { echo "$as_me:$LINENO: WARNING: --with-tcl argument should refer to directory containing tclConfig.sh, not to tclConfig.sh itself" >&5
1972echo "$as_me: WARNING: --with-tcl argument should refer to directory containing tclConfig.sh, not to tclConfig.sh itself" >&2;}
1973			    with_tclconfig="`echo "${with_tclconfig}" | sed 's!/tclConfig\.sh$!!'`"
1974			fi ;;
1975		esac
1976		if test -f "${with_tclconfig}/tclConfig.sh" ; then
1977		    ac_cv_c_tclconfig="`(cd "${with_tclconfig}"; pwd)`"
1978		else
1979		    { { echo "$as_me:$LINENO: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" >&5
1980echo "$as_me: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" >&2;}
1981   { (exit 1); exit 1; }; }
1982		fi
1983	    fi
1984
1985	    # then check for a private Tcl installation
1986	    if test x"${ac_cv_c_tclconfig}" = x ; then
1987		for i in \
1988			../tcl \
1989			`ls -dr ../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
1990			`ls -dr ../tcl[8-9].[0-9] 2>/dev/null` \
1991			`ls -dr ../tcl[8-9].[0-9]* 2>/dev/null` \
1992			../../tcl \
1993			`ls -dr ../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
1994			`ls -dr ../../tcl[8-9].[0-9] 2>/dev/null` \
1995			`ls -dr ../../tcl[8-9].[0-9]* 2>/dev/null` \
1996			../../../tcl \
1997			`ls -dr ../../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
1998			`ls -dr ../../../tcl[8-9].[0-9] 2>/dev/null` \
1999			`ls -dr ../../../tcl[8-9].[0-9]* 2>/dev/null` ; do
2000		    if test "${TEA_PLATFORM}" = "windows" \
2001			    -a -f "$i/win/tclConfig.sh" ; then
2002			ac_cv_c_tclconfig="`(cd $i/win; pwd)`"
2003			break
2004		    fi
2005		    if test -f "$i/unix/tclConfig.sh" ; then
2006			ac_cv_c_tclconfig="`(cd $i/unix; pwd)`"
2007			break
2008		    fi
2009		done
2010	    fi
2011
2012	    # on Darwin, check in Framework installation locations
2013	    if test "`uname -s`" = "Darwin" -a x"${ac_cv_c_tclconfig}" = x ; then
2014		for i in `ls -d ~/Library/Frameworks 2>/dev/null` \
2015			`ls -d /Library/Frameworks 2>/dev/null` \
2016			`ls -d /Network/Library/Frameworks 2>/dev/null` \
2017			`ls -d /System/Library/Frameworks 2>/dev/null` \
2018			; do
2019		    if test -f "$i/Tcl.framework/tclConfig.sh" ; then
2020			ac_cv_c_tclconfig="`(cd $i/Tcl.framework; pwd)`"
2021			break
2022		    fi
2023		done
2024	    fi
2025
2026	    # TEA specific: on Windows, check in common installation locations
2027	    if test "${TEA_PLATFORM}" = "windows" \
2028		-a x"${ac_cv_c_tclconfig}" = x ; then
2029		for i in `ls -d C:/Tcl/lib 2>/dev/null` \
2030			`ls -d C:/Progra~1/Tcl/lib 2>/dev/null` \
2031			; do
2032		    if test -f "$i/tclConfig.sh" ; then
2033			ac_cv_c_tclconfig="`(cd $i; pwd)`"
2034			break
2035		    fi
2036		done
2037	    fi
2038
2039	    # check in a few common install locations
2040	    if test x"${ac_cv_c_tclconfig}" = x ; then
2041		for i in `ls -d ${libdir} 2>/dev/null` \
2042			`ls -d ${exec_prefix}/lib 2>/dev/null` \
2043			`ls -d ${prefix}/lib 2>/dev/null` \
2044			`ls -d /usr/local/lib 2>/dev/null` \
2045			`ls -d /usr/contrib/lib 2>/dev/null` \
2046			`ls -d /usr/lib 2>/dev/null` \
2047			`ls -d /usr/lib64 2>/dev/null` \
2048			; do
2049		    if test -f "$i/tclConfig.sh" ; then
2050			ac_cv_c_tclconfig="`(cd $i; pwd)`"
2051			break
2052		    fi
2053		done
2054	    fi
2055
2056	    # check in a few other private locations
2057	    if test x"${ac_cv_c_tclconfig}" = x ; then
2058		for i in \
2059			${srcdir}/../tcl \
2060			`ls -dr ${srcdir}/../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
2061			`ls -dr ${srcdir}/../tcl[8-9].[0-9] 2>/dev/null` \
2062			`ls -dr ${srcdir}/../tcl[8-9].[0-9]* 2>/dev/null` ; do
2063		    if test "${TEA_PLATFORM}" = "windows" \
2064			    -a -f "$i/win/tclConfig.sh" ; then
2065			ac_cv_c_tclconfig="`(cd $i/win; pwd)`"
2066			break
2067		    fi
2068		    if test -f "$i/unix/tclConfig.sh" ; then
2069			ac_cv_c_tclconfig="`(cd $i/unix; pwd)`"
2070			break
2071		    fi
2072		done
2073	    fi
2074
2075fi
2076
2077
2078	if test x"${ac_cv_c_tclconfig}" = x ; then
2079	    TCL_BIN_DIR="# no Tcl configs found"
2080	    { { echo "$as_me:$LINENO: error: Can't find Tcl configuration definitions" >&5
2081echo "$as_me: error: Can't find Tcl configuration definitions" >&2;}
2082   { (exit 1); exit 1; }; }
2083	else
2084	    no_tcl=
2085	    TCL_BIN_DIR="${ac_cv_c_tclconfig}"
2086	    { echo "$as_me:$LINENO: result: found ${TCL_BIN_DIR}/tclConfig.sh" >&5
2087echo "${ECHO_T}found ${TCL_BIN_DIR}/tclConfig.sh" >&6; }
2088	fi
2089    fi
2090
2091
2092    { echo "$as_me:$LINENO: checking for existence of ${TCL_BIN_DIR}/tclConfig.sh" >&5
2093echo $ECHO_N "checking for existence of ${TCL_BIN_DIR}/tclConfig.sh... $ECHO_C" >&6; }
2094
2095    if test -f "${TCL_BIN_DIR}/tclConfig.sh" ; then
2096        { echo "$as_me:$LINENO: result: loading" >&5
2097echo "${ECHO_T}loading" >&6; }
2098	. "${TCL_BIN_DIR}/tclConfig.sh"
2099    else
2100        { echo "$as_me:$LINENO: result: could not find ${TCL_BIN_DIR}/tclConfig.sh" >&5
2101echo "${ECHO_T}could not find ${TCL_BIN_DIR}/tclConfig.sh" >&6; }
2102    fi
2103
2104    # eval is required to do the TCL_DBGX substitution
2105    eval "TCL_LIB_FILE=\"${TCL_LIB_FILE}\""
2106    eval "TCL_STUB_LIB_FILE=\"${TCL_STUB_LIB_FILE}\""
2107
2108    # If the TCL_BIN_DIR is the build directory (not the install directory),
2109    # then set the common variable name to the value of the build variables.
2110    # For example, the variable TCL_LIB_SPEC will be set to the value
2111    # of TCL_BUILD_LIB_SPEC. An extension should make use of TCL_LIB_SPEC
2112    # instead of TCL_BUILD_LIB_SPEC since it will work with both an
2113    # installed and uninstalled version of Tcl.
2114    if test -f "${TCL_BIN_DIR}/Makefile" ; then
2115        TCL_LIB_SPEC="${TCL_BUILD_LIB_SPEC}"
2116        TCL_STUB_LIB_SPEC="${TCL_BUILD_STUB_LIB_SPEC}"
2117        TCL_STUB_LIB_PATH="${TCL_BUILD_STUB_LIB_PATH}"
2118    elif test "`uname -s`" = "Darwin"; then
2119	# If Tcl was built as a framework, attempt to use the libraries
2120	# from the framework at the given location so that linking works
2121	# against Tcl.framework installed in an arbitrary location.
2122	case ${TCL_DEFS} in
2123	    *TCL_FRAMEWORK*)
2124		if test -f "${TCL_BIN_DIR}/${TCL_LIB_FILE}"; then
2125		    for i in "`cd "${TCL_BIN_DIR}"; pwd`" \
2126			     "`cd "${TCL_BIN_DIR}"/../..; pwd`"; do
2127			if test "`basename "$i"`" = "${TCL_LIB_FILE}.framework"; then
2128			    TCL_LIB_SPEC="-F`dirname "$i" | sed -e 's/ /\\\\ /g'` -framework ${TCL_LIB_FILE}"
2129			    break
2130			fi
2131		    done
2132		fi
2133		if test -f "${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}"; then
2134		    TCL_STUB_LIB_SPEC="-L`echo "${TCL_BIN_DIR}"  | sed -e 's/ /\\\\ /g'` ${TCL_STUB_LIB_FLAG}"
2135		    TCL_STUB_LIB_PATH="${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}"
2136		fi
2137		;;
2138	esac
2139    fi
2140
2141    # eval is required to do the TCL_DBGX substitution
2142    eval "TCL_LIB_FLAG=\"${TCL_LIB_FLAG}\""
2143    eval "TCL_LIB_SPEC=\"${TCL_LIB_SPEC}\""
2144    eval "TCL_STUB_LIB_FLAG=\"${TCL_STUB_LIB_FLAG}\""
2145    eval "TCL_STUB_LIB_SPEC=\"${TCL_STUB_LIB_SPEC}\""
2146
2147
2148
2149
2150
2151
2152
2153
2154
2155
2156
2157
2158
2159
2160    case "`uname -s`" in
2161	*CYGWIN_*)
2162	    { echo "$as_me:$LINENO: checking for cygwin variant" >&5
2163echo $ECHO_N "checking for cygwin variant... $ECHO_C" >&6; }
2164	    case ${TCL_EXTRA_CFLAGS} in
2165		*-mwin32*|*-mno-cygwin*)
2166		    TEA_PLATFORM="windows"
2167		    CFLAGS="$CFLAGS -mwin32"
2168		    { echo "$as_me:$LINENO: result: win32" >&5
2169echo "${ECHO_T}win32" >&6; }
2170		    ;;
2171		*)
2172		    TEA_PLATFORM="unix"
2173		    { echo "$as_me:$LINENO: result: unix" >&5
2174echo "${ECHO_T}unix" >&6; }
2175		    ;;
2176	    esac
2177	    EXEEXT=".exe"
2178	    ;;
2179	*)
2180	    ;;
2181    esac
2182
2183    # Do this here as we have fully defined TEA_PLATFORM now
2184    if test "${TEA_PLATFORM}" = "windows" ; then
2185	# The BUILD_$pkg is to define the correct extern storage class
2186	# handling when making this package
2187
2188cat >>confdefs.h <<_ACEOF
2189#define BUILD_${PACKAGE_NAME}
2190_ACEOF
2191
2192	CLEANFILES="$CLEANFILES *.lib *.dll *.pdb *.exp"
2193    fi
2194
2195    # TEA specific:
2196
2197
2198
2199
2200
2201
2202
2203
2204#--------------------------------------------------------------------
2205# Load the tkConfig.sh file if necessary (Tk extension)
2206#--------------------------------------------------------------------
2207
2208
2209    #
2210    # Ok, lets find the tk configuration
2211    # First, look for one uninstalled.
2212    # the alternative search directory is invoked by --with-tk
2213    #
2214
2215    if test x"${no_tk}" = x ; then
2216	# we reset no_tk in case something fails here
2217	no_tk=true
2218
2219# Check whether --with-tk was given.
2220if test "${with_tk+set}" = set; then
2221  withval=$with_tk; with_tkconfig="${withval}"
2222fi
2223
2224	{ echo "$as_me:$LINENO: checking for Tk configuration" >&5
2225echo $ECHO_N "checking for Tk configuration... $ECHO_C" >&6; }
2226	if test "${ac_cv_c_tkconfig+set}" = set; then
2227  echo $ECHO_N "(cached) $ECHO_C" >&6
2228else
2229
2230
2231	    # First check to see if --with-tkconfig was specified.
2232	    if test x"${with_tkconfig}" != x ; then
2233		case "${with_tkconfig}" in
2234		    */tkConfig.sh )
2235			if test -f "${with_tkconfig}"; then
2236			    { echo "$as_me:$LINENO: WARNING: --with-tk argument should refer to directory containing tkConfig.sh, not to tkConfig.sh itself" >&5
2237echo "$as_me: WARNING: --with-tk argument should refer to directory containing tkConfig.sh, not to tkConfig.sh itself" >&2;}
2238			    with_tkconfig="`echo "${with_tkconfig}" | sed 's!/tkConfig\.sh$!!'`"
2239			fi ;;
2240		esac
2241		if test -f "${with_tkconfig}/tkConfig.sh" ; then
2242		    ac_cv_c_tkconfig="`(cd "${with_tkconfig}"; pwd)`"
2243		else
2244		    { { echo "$as_me:$LINENO: error: ${with_tkconfig} directory doesn't contain tkConfig.sh" >&5
2245echo "$as_me: error: ${with_tkconfig} directory doesn't contain tkConfig.sh" >&2;}
2246   { (exit 1); exit 1; }; }
2247		fi
2248	    fi
2249
2250	    # then check for a private Tk library
2251	    if test x"${ac_cv_c_tkconfig}" = x ; then
2252		for i in \
2253			../tk \
2254			`ls -dr ../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
2255			`ls -dr ../tk[8-9].[0-9] 2>/dev/null` \
2256			`ls -dr ../tk[8-9].[0-9]* 2>/dev/null` \
2257			../../tk \
2258			`ls -dr ../../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
2259			`ls -dr ../../tk[8-9].[0-9] 2>/dev/null` \
2260			`ls -dr ../../tk[8-9].[0-9]* 2>/dev/null` \
2261			../../../tk \
2262			`ls -dr ../../../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
2263			`ls -dr ../../../tk[8-9].[0-9] 2>/dev/null` \
2264			`ls -dr ../../../tk[8-9].[0-9]* 2>/dev/null` ; do
2265		    if test "${TEA_PLATFORM}" = "windows" \
2266			    -a -f "$i/win/tkConfig.sh" ; then
2267			ac_cv_c_tkconfig="`(cd $i/win; pwd)`"
2268			break
2269		    fi
2270		    if test -f "$i/unix/tkConfig.sh" ; then
2271			ac_cv_c_tkconfig="`(cd $i/unix; pwd)`"
2272			break
2273		    fi
2274		done
2275	    fi
2276
2277	    # on Darwin, check in Framework installation locations
2278	    if test "`uname -s`" = "Darwin" -a x"${ac_cv_c_tkconfig}" = x ; then
2279		for i in `ls -d ~/Library/Frameworks 2>/dev/null` \
2280			`ls -d /Library/Frameworks 2>/dev/null` \
2281			`ls -d /Network/Library/Frameworks 2>/dev/null` \
2282			`ls -d /System/Library/Frameworks 2>/dev/null` \
2283			; do
2284		    if test -f "$i/Tk.framework/tkConfig.sh" ; then
2285			ac_cv_c_tkconfig="`(cd $i/Tk.framework; pwd)`"
2286			break
2287		    fi
2288		done
2289	    fi
2290
2291	    # check in a few common install locations
2292	    if test x"${ac_cv_c_tkconfig}" = x ; then
2293		for i in `ls -d ${libdir} 2>/dev/null` \
2294			`ls -d ${exec_prefix}/lib 2>/dev/null` \
2295			`ls -d ${prefix}/lib 2>/dev/null` \
2296			`ls -d /usr/local/lib 2>/dev/null` \
2297			`ls -d /usr/contrib/lib 2>/dev/null` \
2298			`ls -d /usr/lib 2>/dev/null` \
2299			`ls -d /usr/lib64 2>/dev/null` \
2300			; do
2301		    if test -f "$i/tkConfig.sh" ; then
2302			ac_cv_c_tkconfig="`(cd $i; pwd)`"
2303			break
2304		    fi
2305		done
2306	    fi
2307
2308	    # TEA specific: on Windows, check in common installation locations
2309	    if test "${TEA_PLATFORM}" = "windows" \
2310		-a x"${ac_cv_c_tkconfig}" = x ; then
2311		for i in `ls -d C:/Tcl/lib 2>/dev/null` \
2312			`ls -d C:/Progra~1/Tcl/lib 2>/dev/null` \
2313			; do
2314		    if test -f "$i/tkConfig.sh" ; then
2315			ac_cv_c_tkconfig="`(cd $i; pwd)`"
2316			break
2317		    fi
2318		done
2319	    fi
2320
2321	    # check in a few other private locations
2322	    if test x"${ac_cv_c_tkconfig}" = x ; then
2323		for i in \
2324			${srcdir}/../tk \
2325			`ls -dr ${srcdir}/../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
2326			`ls -dr ${srcdir}/../tk[8-9].[0-9] 2>/dev/null` \
2327			`ls -dr ${srcdir}/../tk[8-9].[0-9]* 2>/dev/null` ; do
2328		    if test "${TEA_PLATFORM}" = "windows" \
2329			    -a -f "$i/win/tkConfig.sh" ; then
2330			ac_cv_c_tkconfig="`(cd $i/win; pwd)`"
2331			break
2332		    fi
2333		    if test -f "$i/unix/tkConfig.sh" ; then
2334			ac_cv_c_tkconfig="`(cd $i/unix; pwd)`"
2335			break
2336		    fi
2337		done
2338	    fi
2339
2340fi
2341
2342
2343	if test x"${ac_cv_c_tkconfig}" = x ; then
2344	    TK_BIN_DIR="# no Tk configs found"
2345	    { { echo "$as_me:$LINENO: error: Can't find Tk configuration definitions" >&5
2346echo "$as_me: error: Can't find Tk configuration definitions" >&2;}
2347   { (exit 1); exit 1; }; }
2348	else
2349	    no_tk=
2350	    TK_BIN_DIR="${ac_cv_c_tkconfig}"
2351	    { echo "$as_me:$LINENO: result: found ${TK_BIN_DIR}/tkConfig.sh" >&5
2352echo "${ECHO_T}found ${TK_BIN_DIR}/tkConfig.sh" >&6; }
2353	fi
2354    fi
2355
2356
2357    { echo "$as_me:$LINENO: checking for existence of ${TK_BIN_DIR}/tkConfig.sh" >&5
2358echo $ECHO_N "checking for existence of ${TK_BIN_DIR}/tkConfig.sh... $ECHO_C" >&6; }
2359
2360    if test -f "${TK_BIN_DIR}/tkConfig.sh" ; then
2361        { echo "$as_me:$LINENO: result: loading" >&5
2362echo "${ECHO_T}loading" >&6; }
2363	. "${TK_BIN_DIR}/tkConfig.sh"
2364    else
2365        { echo "$as_me:$LINENO: result: could not find ${TK_BIN_DIR}/tkConfig.sh" >&5
2366echo "${ECHO_T}could not find ${TK_BIN_DIR}/tkConfig.sh" >&6; }
2367    fi
2368
2369    # eval is required to do the TK_DBGX substitution
2370    eval "TK_LIB_FILE=\"${TK_LIB_FILE}\""
2371    eval "TK_STUB_LIB_FILE=\"${TK_STUB_LIB_FILE}\""
2372
2373    # If the TK_BIN_DIR is the build directory (not the install directory),
2374    # then set the common variable name to the value of the build variables.
2375    # For example, the variable TK_LIB_SPEC will be set to the value
2376    # of TK_BUILD_LIB_SPEC. An extension should make use of TK_LIB_SPEC
2377    # instead of TK_BUILD_LIB_SPEC since it will work with both an
2378    # installed and uninstalled version of Tcl.
2379    if test -f "${TK_BIN_DIR}/Makefile" ; then
2380        TK_LIB_SPEC="${TK_BUILD_LIB_SPEC}"
2381        TK_STUB_LIB_SPEC="${TK_BUILD_STUB_LIB_SPEC}"
2382        TK_STUB_LIB_PATH="${TK_BUILD_STUB_LIB_PATH}"
2383    elif test "`uname -s`" = "Darwin"; then
2384	# If Tk was built as a framework, attempt to use the libraries
2385	# from the framework at the given location so that linking works
2386	# against Tk.framework installed in an arbitrary location.
2387	case ${TK_DEFS} in
2388	    *TK_FRAMEWORK*)
2389		if test -f "${TK_BIN_DIR}/${TK_LIB_FILE}"; then
2390		    for i in "`cd "${TK_BIN_DIR}"; pwd`" \
2391			     "`cd "${TK_BIN_DIR}"/../..; pwd`"; do
2392			if test "`basename "$i"`" = "${TK_LIB_FILE}.framework"; then
2393			    TK_LIB_SPEC="-F`dirname "$i" | sed -e 's/ /\\\\ /g'` -framework ${TK_LIB_FILE}"
2394			    break
2395			fi
2396		    done
2397		fi
2398		if test -f "${TK_BIN_DIR}/${TK_STUB_LIB_FILE}"; then
2399		    TK_STUB_LIB_SPEC="-L` echo "${TK_BIN_DIR}"  | sed -e 's/ /\\\\ /g'` ${TK_STUB_LIB_FLAG}"
2400		    TK_STUB_LIB_PATH="${TK_BIN_DIR}/${TK_STUB_LIB_FILE}"
2401		fi
2402		;;
2403	esac
2404    fi
2405
2406    # eval is required to do the TK_DBGX substitution
2407    eval "TK_LIB_FLAG=\"${TK_LIB_FLAG}\""
2408    eval "TK_LIB_SPEC=\"${TK_LIB_SPEC}\""
2409    eval "TK_STUB_LIB_FLAG=\"${TK_STUB_LIB_FLAG}\""
2410    eval "TK_STUB_LIB_SPEC=\"${TK_STUB_LIB_SPEC}\""
2411
2412    # TEA specific: Ensure windowingsystem is defined
2413    if test "${TEA_PLATFORM}" = "unix" ; then
2414	case ${TK_DEFS} in
2415	    *MAC_OSX_TK*)
2416
2417cat >>confdefs.h <<\_ACEOF
2418#define MAC_OSX_TK 1
2419_ACEOF
2420
2421		TEA_WINDOWINGSYSTEM="aqua"
2422		;;
2423	    *)
2424		TEA_WINDOWINGSYSTEM="x11"
2425		;;
2426	esac
2427    elif test "${TEA_PLATFORM}" = "windows" ; then
2428	TEA_WINDOWINGSYSTEM="win32"
2429    fi
2430
2431
2432
2433
2434
2435
2436
2437
2438
2439
2440
2441
2442
2443    # TEA specific:
2444
2445
2446
2447
2448#-----------------------------------------------------------------------
2449# Handle the --prefix=... option by defaulting to what Tcl gave.
2450# Must be called after TEA_LOAD_TCLCONFIG and before TEA_SETUP_COMPILER.
2451#-----------------------------------------------------------------------
2452
2453
2454    if test "${prefix}" = "NONE"; then
2455	prefix_default=yes
2456	if test x"${TCL_PREFIX}" != x; then
2457	    { echo "$as_me:$LINENO: --prefix defaulting to TCL_PREFIX ${TCL_PREFIX}" >&5
2458echo "$as_me: --prefix defaulting to TCL_PREFIX ${TCL_PREFIX}" >&6;}
2459	    prefix=${TCL_PREFIX}
2460	else
2461	    { echo "$as_me:$LINENO: --prefix defaulting to /usr/local" >&5
2462echo "$as_me: --prefix defaulting to /usr/local" >&6;}
2463	    prefix=/usr/local
2464	fi
2465    fi
2466    if test "${exec_prefix}" = "NONE" -a x"${prefix_default}" = x"yes" \
2467	-o x"${exec_prefix_default}" = x"yes" ; then
2468	if test x"${TCL_EXEC_PREFIX}" != x; then
2469	    { echo "$as_me:$LINENO: --exec-prefix defaulting to TCL_EXEC_PREFIX ${TCL_EXEC_PREFIX}" >&5
2470echo "$as_me: --exec-prefix defaulting to TCL_EXEC_PREFIX ${TCL_EXEC_PREFIX}" >&6;}
2471	    exec_prefix=${TCL_EXEC_PREFIX}
2472	else
2473	    { echo "$as_me:$LINENO: --exec-prefix defaulting to ${prefix}" >&5
2474echo "$as_me: --exec-prefix defaulting to ${prefix}" >&6;}
2475	    exec_prefix=$prefix
2476	fi
2477    fi
2478
2479
2480#-----------------------------------------------------------------------
2481# Standard compiler checks.
2482# This sets up CC by using the CC env var, or looks for gcc otherwise.
2483# This also calls AC_PROG_CC, AC_PROG_INSTALL and a few others to create
2484# the basic setup necessary to compile executables.
2485#-----------------------------------------------------------------------
2486
2487
2488    # Don't put any macros that use the compiler (e.g. AC_TRY_COMPILE)
2489    # in this macro, they need to go into TEA_SETUP_COMPILER instead.
2490
2491    # If the user did not set CFLAGS, set it now to keep
2492    # the AC_PROG_CC macro from adding "-g -O2".
2493    if test "${CFLAGS+set}" != "set" ; then
2494	CFLAGS=""
2495    fi
2496
2497    ac_ext=c
2498ac_cpp='$CPP $CPPFLAGS'
2499ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2500ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2501ac_compiler_gnu=$ac_cv_c_compiler_gnu
2502if test -n "$ac_tool_prefix"; then
2503  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2504set dummy ${ac_tool_prefix}gcc; ac_word=$2
2505{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2506echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2507if test "${ac_cv_prog_CC+set}" = set; then
2508  echo $ECHO_N "(cached) $ECHO_C" >&6
2509else
2510  if test -n "$CC"; then
2511  ac_cv_prog_CC="$CC" # Let the user override the test.
2512else
2513as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2514for as_dir in $PATH
2515do
2516  IFS=$as_save_IFS
2517  test -z "$as_dir" && as_dir=.
2518  for ac_exec_ext in '' $ac_executable_extensions; do
2519  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2520    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2521    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2522    break 2
2523  fi
2524done
2525done
2526IFS=$as_save_IFS
2527
2528fi
2529fi
2530CC=$ac_cv_prog_CC
2531if test -n "$CC"; then
2532  { echo "$as_me:$LINENO: result: $CC" >&5
2533echo "${ECHO_T}$CC" >&6; }
2534else
2535  { echo "$as_me:$LINENO: result: no" >&5
2536echo "${ECHO_T}no" >&6; }
2537fi
2538
2539
2540fi
2541if test -z "$ac_cv_prog_CC"; then
2542  ac_ct_CC=$CC
2543  # Extract the first word of "gcc", so it can be a program name with args.
2544set dummy gcc; ac_word=$2
2545{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2546echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2547if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2548  echo $ECHO_N "(cached) $ECHO_C" >&6
2549else
2550  if test -n "$ac_ct_CC"; then
2551  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2552else
2553as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2554for as_dir in $PATH
2555do
2556  IFS=$as_save_IFS
2557  test -z "$as_dir" && as_dir=.
2558  for ac_exec_ext in '' $ac_executable_extensions; do
2559  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2560    ac_cv_prog_ac_ct_CC="gcc"
2561    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2562    break 2
2563  fi
2564done
2565done
2566IFS=$as_save_IFS
2567
2568fi
2569fi
2570ac_ct_CC=$ac_cv_prog_ac_ct_CC
2571if test -n "$ac_ct_CC"; then
2572  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2573echo "${ECHO_T}$ac_ct_CC" >&6; }
2574else
2575  { echo "$as_me:$LINENO: result: no" >&5
2576echo "${ECHO_T}no" >&6; }
2577fi
2578
2579  if test "x$ac_ct_CC" = x; then
2580    CC=""
2581  else
2582    case $cross_compiling:$ac_tool_warned in
2583yes:)
2584{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2585whose name does not start with the host triplet.  If you think this
2586configuration is useful to you, please write to autoconf@gnu.org." >&5
2587echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2588whose name does not start with the host triplet.  If you think this
2589configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2590ac_tool_warned=yes ;;
2591esac
2592    CC=$ac_ct_CC
2593  fi
2594else
2595  CC="$ac_cv_prog_CC"
2596fi
2597
2598if test -z "$CC"; then
2599          if test -n "$ac_tool_prefix"; then
2600    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2601set dummy ${ac_tool_prefix}cc; ac_word=$2
2602{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2603echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2604if test "${ac_cv_prog_CC+set}" = set; then
2605  echo $ECHO_N "(cached) $ECHO_C" >&6
2606else
2607  if test -n "$CC"; then
2608  ac_cv_prog_CC="$CC" # Let the user override the test.
2609else
2610as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2611for as_dir in $PATH
2612do
2613  IFS=$as_save_IFS
2614  test -z "$as_dir" && as_dir=.
2615  for ac_exec_ext in '' $ac_executable_extensions; do
2616  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2617    ac_cv_prog_CC="${ac_tool_prefix}cc"
2618    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2619    break 2
2620  fi
2621done
2622done
2623IFS=$as_save_IFS
2624
2625fi
2626fi
2627CC=$ac_cv_prog_CC
2628if test -n "$CC"; then
2629  { echo "$as_me:$LINENO: result: $CC" >&5
2630echo "${ECHO_T}$CC" >&6; }
2631else
2632  { echo "$as_me:$LINENO: result: no" >&5
2633echo "${ECHO_T}no" >&6; }
2634fi
2635
2636
2637  fi
2638fi
2639if test -z "$CC"; then
2640  # Extract the first word of "cc", so it can be a program name with args.
2641set dummy cc; ac_word=$2
2642{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2643echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2644if test "${ac_cv_prog_CC+set}" = set; then
2645  echo $ECHO_N "(cached) $ECHO_C" >&6
2646else
2647  if test -n "$CC"; then
2648  ac_cv_prog_CC="$CC" # Let the user override the test.
2649else
2650  ac_prog_rejected=no
2651as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2652for as_dir in $PATH
2653do
2654  IFS=$as_save_IFS
2655  test -z "$as_dir" && as_dir=.
2656  for ac_exec_ext in '' $ac_executable_extensions; do
2657  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2658    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2659       ac_prog_rejected=yes
2660       continue
2661     fi
2662    ac_cv_prog_CC="cc"
2663    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2664    break 2
2665  fi
2666done
2667done
2668IFS=$as_save_IFS
2669
2670if test $ac_prog_rejected = yes; then
2671  # We found a bogon in the path, so make sure we never use it.
2672  set dummy $ac_cv_prog_CC
2673  shift
2674  if test $# != 0; then
2675    # We chose a different compiler from the bogus one.
2676    # However, it has the same basename, so the bogon will be chosen
2677    # first if we set CC to just the basename; use the full file name.
2678    shift
2679    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2680  fi
2681fi
2682fi
2683fi
2684CC=$ac_cv_prog_CC
2685if test -n "$CC"; then
2686  { echo "$as_me:$LINENO: result: $CC" >&5
2687echo "${ECHO_T}$CC" >&6; }
2688else
2689  { echo "$as_me:$LINENO: result: no" >&5
2690echo "${ECHO_T}no" >&6; }
2691fi
2692
2693
2694fi
2695if test -z "$CC"; then
2696  if test -n "$ac_tool_prefix"; then
2697  for ac_prog in cl.exe
2698  do
2699    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2700set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2701{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2702echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2703if test "${ac_cv_prog_CC+set}" = set; then
2704  echo $ECHO_N "(cached) $ECHO_C" >&6
2705else
2706  if test -n "$CC"; then
2707  ac_cv_prog_CC="$CC" # Let the user override the test.
2708else
2709as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2710for as_dir in $PATH
2711do
2712  IFS=$as_save_IFS
2713  test -z "$as_dir" && as_dir=.
2714  for ac_exec_ext in '' $ac_executable_extensions; do
2715  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2716    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2717    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2718    break 2
2719  fi
2720done
2721done
2722IFS=$as_save_IFS
2723
2724fi
2725fi
2726CC=$ac_cv_prog_CC
2727if test -n "$CC"; then
2728  { echo "$as_me:$LINENO: result: $CC" >&5
2729echo "${ECHO_T}$CC" >&6; }
2730else
2731  { echo "$as_me:$LINENO: result: no" >&5
2732echo "${ECHO_T}no" >&6; }
2733fi
2734
2735
2736    test -n "$CC" && break
2737  done
2738fi
2739if test -z "$CC"; then
2740  ac_ct_CC=$CC
2741  for ac_prog in cl.exe
2742do
2743  # Extract the first word of "$ac_prog", so it can be a program name with args.
2744set dummy $ac_prog; ac_word=$2
2745{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2746echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2747if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2748  echo $ECHO_N "(cached) $ECHO_C" >&6
2749else
2750  if test -n "$ac_ct_CC"; then
2751  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2752else
2753as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2754for as_dir in $PATH
2755do
2756  IFS=$as_save_IFS
2757  test -z "$as_dir" && as_dir=.
2758  for ac_exec_ext in '' $ac_executable_extensions; do
2759  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2760    ac_cv_prog_ac_ct_CC="$ac_prog"
2761    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2762    break 2
2763  fi
2764done
2765done
2766IFS=$as_save_IFS
2767
2768fi
2769fi
2770ac_ct_CC=$ac_cv_prog_ac_ct_CC
2771if test -n "$ac_ct_CC"; then
2772  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2773echo "${ECHO_T}$ac_ct_CC" >&6; }
2774else
2775  { echo "$as_me:$LINENO: result: no" >&5
2776echo "${ECHO_T}no" >&6; }
2777fi
2778
2779
2780  test -n "$ac_ct_CC" && break
2781done
2782
2783  if test "x$ac_ct_CC" = x; then
2784    CC=""
2785  else
2786    case $cross_compiling:$ac_tool_warned in
2787yes:)
2788{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2789whose name does not start with the host triplet.  If you think this
2790configuration is useful to you, please write to autoconf@gnu.org." >&5
2791echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2792whose name does not start with the host triplet.  If you think this
2793configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2794ac_tool_warned=yes ;;
2795esac
2796    CC=$ac_ct_CC
2797  fi
2798fi
2799
2800fi
2801
2802
2803test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2804See \`config.log' for more details." >&5
2805echo "$as_me: error: no acceptable C compiler found in \$PATH
2806See \`config.log' for more details." >&2;}
2807   { (exit 1); exit 1; }; }
2808
2809# Provide some information about the compiler.
2810echo "$as_me:$LINENO: checking for C compiler version" >&5
2811ac_compiler=`set X $ac_compile; echo $2`
2812{ (ac_try="$ac_compiler --version >&5"
2813case "(($ac_try" in
2814  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2815  *) ac_try_echo=$ac_try;;
2816esac
2817eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2818  (eval "$ac_compiler --version >&5") 2>&5
2819  ac_status=$?
2820  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2821  (exit $ac_status); }
2822{ (ac_try="$ac_compiler -v >&5"
2823case "(($ac_try" in
2824  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2825  *) ac_try_echo=$ac_try;;
2826esac
2827eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2828  (eval "$ac_compiler -v >&5") 2>&5
2829  ac_status=$?
2830  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2831  (exit $ac_status); }
2832{ (ac_try="$ac_compiler -V >&5"
2833case "(($ac_try" in
2834  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2835  *) ac_try_echo=$ac_try;;
2836esac
2837eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2838  (eval "$ac_compiler -V >&5") 2>&5
2839  ac_status=$?
2840  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2841  (exit $ac_status); }
2842
2843cat >conftest.$ac_ext <<_ACEOF
2844/* confdefs.h.  */
2845_ACEOF
2846cat confdefs.h >>conftest.$ac_ext
2847cat >>conftest.$ac_ext <<_ACEOF
2848/* end confdefs.h.  */
2849
2850int
2851main ()
2852{
2853
2854  ;
2855  return 0;
2856}
2857_ACEOF
2858ac_clean_files_save=$ac_clean_files
2859ac_clean_files="$ac_clean_files a.out a.exe b.out"
2860# Try to create an executable without -o first, disregard a.out.
2861# It will help us diagnose broken compilers, and finding out an intuition
2862# of exeext.
2863{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2864echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2865ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2866#
2867# List of possible output files, starting from the most likely.
2868# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2869# only as a last resort.  b.out is created by i960 compilers.
2870ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2871#
2872# The IRIX 6 linker writes into existing files which may not be
2873# executable, retaining their permissions.  Remove them first so a
2874# subsequent execution test works.
2875ac_rmfiles=
2876for ac_file in $ac_files
2877do
2878  case $ac_file in
2879    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2880    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2881  esac
2882done
2883rm -f $ac_rmfiles
2884
2885if { (ac_try="$ac_link_default"
2886case "(($ac_try" in
2887  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2888  *) ac_try_echo=$ac_try;;
2889esac
2890eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2891  (eval "$ac_link_default") 2>&5
2892  ac_status=$?
2893  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2894  (exit $ac_status); }; then
2895  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2896# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2897# in a Makefile.  We should not override ac_cv_exeext if it was cached,
2898# so that the user can short-circuit this test for compilers unknown to
2899# Autoconf.
2900for ac_file in $ac_files ''
2901do
2902  test -f "$ac_file" || continue
2903  case $ac_file in
2904    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2905	;;
2906    [ab].out )
2907	# We found the default executable, but exeext='' is most
2908	# certainly right.
2909	break;;
2910    *.* )
2911        if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2912	then :; else
2913	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2914	fi
2915	# We set ac_cv_exeext here because the later test for it is not
2916	# safe: cross compilers may not add the suffix if given an `-o'
2917	# argument, so we may need to know it at that point already.
2918	# Even if this section looks crufty: it has the advantage of
2919	# actually working.
2920	break;;
2921    * )
2922	break;;
2923  esac
2924done
2925test "$ac_cv_exeext" = no && ac_cv_exeext=
2926
2927else
2928  ac_file=''
2929fi
2930
2931{ echo "$as_me:$LINENO: result: $ac_file" >&5
2932echo "${ECHO_T}$ac_file" >&6; }
2933if test -z "$ac_file"; then
2934  echo "$as_me: failed program was:" >&5
2935sed 's/^/| /' conftest.$ac_ext >&5
2936
2937{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2938See \`config.log' for more details." >&5
2939echo "$as_me: error: C compiler cannot create executables
2940See \`config.log' for more details." >&2;}
2941   { (exit 77); exit 77; }; }
2942fi
2943
2944ac_exeext=$ac_cv_exeext
2945
2946# Check that the compiler produces executables we can run.  If not, either
2947# the compiler is broken, or we cross compile.
2948{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2949echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2950# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2951# If not cross compiling, check that we can run a simple program.
2952if test "$cross_compiling" != yes; then
2953  if { ac_try='./$ac_file'
2954  { (case "(($ac_try" in
2955  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2956  *) ac_try_echo=$ac_try;;
2957esac
2958eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2959  (eval "$ac_try") 2>&5
2960  ac_status=$?
2961  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2962  (exit $ac_status); }; }; then
2963    cross_compiling=no
2964  else
2965    if test "$cross_compiling" = maybe; then
2966	cross_compiling=yes
2967    else
2968	{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2969If you meant to cross compile, use \`--host'.
2970See \`config.log' for more details." >&5
2971echo "$as_me: error: cannot run C compiled programs.
2972If you meant to cross compile, use \`--host'.
2973See \`config.log' for more details." >&2;}
2974   { (exit 1); exit 1; }; }
2975    fi
2976  fi
2977fi
2978{ echo "$as_me:$LINENO: result: yes" >&5
2979echo "${ECHO_T}yes" >&6; }
2980
2981rm -f a.out a.exe conftest$ac_cv_exeext b.out
2982ac_clean_files=$ac_clean_files_save
2983# Check that the compiler produces executables we can run.  If not, either
2984# the compiler is broken, or we cross compile.
2985{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2986echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2987{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
2988echo "${ECHO_T}$cross_compiling" >&6; }
2989
2990{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
2991echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2992if { (ac_try="$ac_link"
2993case "(($ac_try" in
2994  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2995  *) ac_try_echo=$ac_try;;
2996esac
2997eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2998  (eval "$ac_link") 2>&5
2999  ac_status=$?
3000  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3001  (exit $ac_status); }; then
3002  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3003# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3004# work properly (i.e., refer to `conftest.exe'), while it won't with
3005# `rm'.
3006for ac_file in conftest.exe conftest conftest.*; do
3007  test -f "$ac_file" || continue
3008  case $ac_file in
3009    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3010    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3011	  break;;
3012    * ) break;;
3013  esac
3014done
3015else
3016  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3017See \`config.log' for more details." >&5
3018echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3019See \`config.log' for more details." >&2;}
3020   { (exit 1); exit 1; }; }
3021fi
3022
3023rm -f conftest$ac_cv_exeext
3024{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3025echo "${ECHO_T}$ac_cv_exeext" >&6; }
3026
3027rm -f conftest.$ac_ext
3028EXEEXT=$ac_cv_exeext
3029ac_exeext=$EXEEXT
3030{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
3031echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3032if test "${ac_cv_objext+set}" = set; then
3033  echo $ECHO_N "(cached) $ECHO_C" >&6
3034else
3035  cat >conftest.$ac_ext <<_ACEOF
3036/* confdefs.h.  */
3037_ACEOF
3038cat confdefs.h >>conftest.$ac_ext
3039cat >>conftest.$ac_ext <<_ACEOF
3040/* end confdefs.h.  */
3041
3042int
3043main ()
3044{
3045
3046  ;
3047  return 0;
3048}
3049_ACEOF
3050rm -f conftest.o conftest.obj
3051if { (ac_try="$ac_compile"
3052case "(($ac_try" in
3053  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3054  *) ac_try_echo=$ac_try;;
3055esac
3056eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3057  (eval "$ac_compile") 2>&5
3058  ac_status=$?
3059  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3060  (exit $ac_status); }; then
3061  for ac_file in conftest.o conftest.obj conftest.*; do
3062  test -f "$ac_file" || continue;
3063  case $ac_file in
3064    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3065    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3066       break;;
3067  esac
3068done
3069else
3070  echo "$as_me: failed program was:" >&5
3071sed 's/^/| /' conftest.$ac_ext >&5
3072
3073{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3074See \`config.log' for more details." >&5
3075echo "$as_me: error: cannot compute suffix of object files: cannot compile
3076See \`config.log' for more details." >&2;}
3077   { (exit 1); exit 1; }; }
3078fi
3079
3080rm -f conftest.$ac_cv_objext conftest.$ac_ext
3081fi
3082{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3083echo "${ECHO_T}$ac_cv_objext" >&6; }
3084OBJEXT=$ac_cv_objext
3085ac_objext=$OBJEXT
3086{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3087echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3088if test "${ac_cv_c_compiler_gnu+set}" = set; then
3089  echo $ECHO_N "(cached) $ECHO_C" >&6
3090else
3091  cat >conftest.$ac_ext <<_ACEOF
3092/* confdefs.h.  */
3093_ACEOF
3094cat confdefs.h >>conftest.$ac_ext
3095cat >>conftest.$ac_ext <<_ACEOF
3096/* end confdefs.h.  */
3097
3098int
3099main ()
3100{
3101#ifndef __GNUC__
3102       choke me
3103#endif
3104
3105  ;
3106  return 0;
3107}
3108_ACEOF
3109rm -f conftest.$ac_objext
3110if { (ac_try="$ac_compile"
3111case "(($ac_try" in
3112  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3113  *) ac_try_echo=$ac_try;;
3114esac
3115eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3116  (eval "$ac_compile") 2>conftest.er1
3117  ac_status=$?
3118  grep -v '^ *+' conftest.er1 >conftest.err
3119  rm -f conftest.er1
3120  cat conftest.err >&5
3121  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3122  (exit $ac_status); } && {
3123	 test -z "$ac_c_werror_flag" ||
3124	 test ! -s conftest.err
3125       } && test -s conftest.$ac_objext; then
3126  ac_compiler_gnu=yes
3127else
3128  echo "$as_me: failed program was:" >&5
3129sed 's/^/| /' conftest.$ac_ext >&5
3130
3131	ac_compiler_gnu=no
3132fi
3133
3134rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3135ac_cv_c_compiler_gnu=$ac_compiler_gnu
3136
3137fi
3138{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3139echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3140GCC=`test $ac_compiler_gnu = yes && echo yes`
3141ac_test_CFLAGS=${CFLAGS+set}
3142ac_save_CFLAGS=$CFLAGS
3143{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3144echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3145if test "${ac_cv_prog_cc_g+set}" = set; then
3146  echo $ECHO_N "(cached) $ECHO_C" >&6
3147else
3148  ac_save_c_werror_flag=$ac_c_werror_flag
3149   ac_c_werror_flag=yes
3150   ac_cv_prog_cc_g=no
3151   CFLAGS="-g"
3152   cat >conftest.$ac_ext <<_ACEOF
3153/* confdefs.h.  */
3154_ACEOF
3155cat confdefs.h >>conftest.$ac_ext
3156cat >>conftest.$ac_ext <<_ACEOF
3157/* end confdefs.h.  */
3158
3159int
3160main ()
3161{
3162
3163  ;
3164  return 0;
3165}
3166_ACEOF
3167rm -f conftest.$ac_objext
3168if { (ac_try="$ac_compile"
3169case "(($ac_try" in
3170  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3171  *) ac_try_echo=$ac_try;;
3172esac
3173eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3174  (eval "$ac_compile") 2>conftest.er1
3175  ac_status=$?
3176  grep -v '^ *+' conftest.er1 >conftest.err
3177  rm -f conftest.er1
3178  cat conftest.err >&5
3179  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3180  (exit $ac_status); } && {
3181	 test -z "$ac_c_werror_flag" ||
3182	 test ! -s conftest.err
3183       } && test -s conftest.$ac_objext; then
3184  ac_cv_prog_cc_g=yes
3185else
3186  echo "$as_me: failed program was:" >&5
3187sed 's/^/| /' conftest.$ac_ext >&5
3188
3189	CFLAGS=""
3190      cat >conftest.$ac_ext <<_ACEOF
3191/* confdefs.h.  */
3192_ACEOF
3193cat confdefs.h >>conftest.$ac_ext
3194cat >>conftest.$ac_ext <<_ACEOF
3195/* end confdefs.h.  */
3196
3197int
3198main ()
3199{
3200
3201  ;
3202  return 0;
3203}
3204_ACEOF
3205rm -f conftest.$ac_objext
3206if { (ac_try="$ac_compile"
3207case "(($ac_try" in
3208  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3209  *) ac_try_echo=$ac_try;;
3210esac
3211eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3212  (eval "$ac_compile") 2>conftest.er1
3213  ac_status=$?
3214  grep -v '^ *+' conftest.er1 >conftest.err
3215  rm -f conftest.er1
3216  cat conftest.err >&5
3217  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3218  (exit $ac_status); } && {
3219	 test -z "$ac_c_werror_flag" ||
3220	 test ! -s conftest.err
3221       } && test -s conftest.$ac_objext; then
3222  :
3223else
3224  echo "$as_me: failed program was:" >&5
3225sed 's/^/| /' conftest.$ac_ext >&5
3226
3227	ac_c_werror_flag=$ac_save_c_werror_flag
3228	 CFLAGS="-g"
3229	 cat >conftest.$ac_ext <<_ACEOF
3230/* confdefs.h.  */
3231_ACEOF
3232cat confdefs.h >>conftest.$ac_ext
3233cat >>conftest.$ac_ext <<_ACEOF
3234/* end confdefs.h.  */
3235
3236int
3237main ()
3238{
3239
3240  ;
3241  return 0;
3242}
3243_ACEOF
3244rm -f conftest.$ac_objext
3245if { (ac_try="$ac_compile"
3246case "(($ac_try" in
3247  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3248  *) ac_try_echo=$ac_try;;
3249esac
3250eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3251  (eval "$ac_compile") 2>conftest.er1
3252  ac_status=$?
3253  grep -v '^ *+' conftest.er1 >conftest.err
3254  rm -f conftest.er1
3255  cat conftest.err >&5
3256  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3257  (exit $ac_status); } && {
3258	 test -z "$ac_c_werror_flag" ||
3259	 test ! -s conftest.err
3260       } && test -s conftest.$ac_objext; then
3261  ac_cv_prog_cc_g=yes
3262else
3263  echo "$as_me: failed program was:" >&5
3264sed 's/^/| /' conftest.$ac_ext >&5
3265
3266
3267fi
3268
3269rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3270fi
3271
3272rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3273fi
3274
3275rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3276   ac_c_werror_flag=$ac_save_c_werror_flag
3277fi
3278{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3279echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3280if test "$ac_test_CFLAGS" = set; then
3281  CFLAGS=$ac_save_CFLAGS
3282elif test $ac_cv_prog_cc_g = yes; then
3283  if test "$GCC" = yes; then
3284    CFLAGS="-g -O2"
3285  else
3286    CFLAGS="-g"
3287  fi
3288else
3289  if test "$GCC" = yes; then
3290    CFLAGS="-O2"
3291  else
3292    CFLAGS=
3293  fi
3294fi
3295{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3296echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3297if test "${ac_cv_prog_cc_c89+set}" = set; then
3298  echo $ECHO_N "(cached) $ECHO_C" >&6
3299else
3300  ac_cv_prog_cc_c89=no
3301ac_save_CC=$CC
3302cat >conftest.$ac_ext <<_ACEOF
3303/* confdefs.h.  */
3304_ACEOF
3305cat confdefs.h >>conftest.$ac_ext
3306cat >>conftest.$ac_ext <<_ACEOF
3307/* end confdefs.h.  */
3308#include <stdarg.h>
3309#include <stdio.h>
3310#include <sys/types.h>
3311#include <sys/stat.h>
3312/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3313struct buf { int x; };
3314FILE * (*rcsopen) (struct buf *, struct stat *, int);
3315static char *e (p, i)
3316     char **p;
3317     int i;
3318{
3319  return p[i];
3320}
3321static char *f (char * (*g) (char **, int), char **p, ...)
3322{
3323  char *s;
3324  va_list v;
3325  va_start (v,p);
3326  s = g (p, va_arg (v,int));
3327  va_end (v);
3328  return s;
3329}
3330
3331/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3332   function prototypes and stuff, but not '\xHH' hex character constants.
3333   These don't provoke an error unfortunately, instead are silently treated
3334   as 'x'.  The following induces an error, until -std is added to get
3335   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3336   array size at least.  It's necessary to write '\x00'==0 to get something
3337   that's true only with -std.  */
3338int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3339
3340/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3341   inside strings and character constants.  */
3342#define FOO(x) 'x'
3343int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3344
3345int test (int i, double x);
3346struct s1 {int (*f) (int a);};
3347struct s2 {int (*f) (double a);};
3348int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3349int argc;
3350char **argv;
3351int
3352main ()
3353{
3354return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3355  ;
3356  return 0;
3357}
3358_ACEOF
3359for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3360	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3361do
3362  CC="$ac_save_CC $ac_arg"
3363  rm -f conftest.$ac_objext
3364if { (ac_try="$ac_compile"
3365case "(($ac_try" in
3366  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3367  *) ac_try_echo=$ac_try;;
3368esac
3369eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3370  (eval "$ac_compile") 2>conftest.er1
3371  ac_status=$?
3372  grep -v '^ *+' conftest.er1 >conftest.err
3373  rm -f conftest.er1
3374  cat conftest.err >&5
3375  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3376  (exit $ac_status); } && {
3377	 test -z "$ac_c_werror_flag" ||
3378	 test ! -s conftest.err
3379       } && test -s conftest.$ac_objext; then
3380  ac_cv_prog_cc_c89=$ac_arg
3381else
3382  echo "$as_me: failed program was:" >&5
3383sed 's/^/| /' conftest.$ac_ext >&5
3384
3385
3386fi
3387
3388rm -f core conftest.err conftest.$ac_objext
3389  test "x$ac_cv_prog_cc_c89" != "xno" && break
3390done
3391rm -f conftest.$ac_ext
3392CC=$ac_save_CC
3393
3394fi
3395# AC_CACHE_VAL
3396case "x$ac_cv_prog_cc_c89" in
3397  x)
3398    { echo "$as_me:$LINENO: result: none needed" >&5
3399echo "${ECHO_T}none needed" >&6; } ;;
3400  xno)
3401    { echo "$as_me:$LINENO: result: unsupported" >&5
3402echo "${ECHO_T}unsupported" >&6; } ;;
3403  *)
3404    CC="$CC $ac_cv_prog_cc_c89"
3405    { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3406echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3407esac
3408
3409
3410ac_ext=c
3411ac_cpp='$CPP $CPPFLAGS'
3412ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3413ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3414ac_compiler_gnu=$ac_cv_c_compiler_gnu
3415
3416    ac_ext=c
3417ac_cpp='$CPP $CPPFLAGS'
3418ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3419ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3420ac_compiler_gnu=$ac_cv_c_compiler_gnu
3421{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3422echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3423# On Suns, sometimes $CPP names a directory.
3424if test -n "$CPP" && test -d "$CPP"; then
3425  CPP=
3426fi
3427if test -z "$CPP"; then
3428  if test "${ac_cv_prog_CPP+set}" = set; then
3429  echo $ECHO_N "(cached) $ECHO_C" >&6
3430else
3431      # Double quotes because CPP needs to be expanded
3432    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3433    do
3434      ac_preproc_ok=false
3435for ac_c_preproc_warn_flag in '' yes
3436do
3437  # Use a header file that comes with gcc, so configuring glibc
3438  # with a fresh cross-compiler works.
3439  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3440  # <limits.h> exists even on freestanding compilers.
3441  # On the NeXT, cc -E runs the code through the compiler's parser,
3442  # not just through cpp. "Syntax error" is here to catch this case.
3443  cat >conftest.$ac_ext <<_ACEOF
3444/* confdefs.h.  */
3445_ACEOF
3446cat confdefs.h >>conftest.$ac_ext
3447cat >>conftest.$ac_ext <<_ACEOF
3448/* end confdefs.h.  */
3449#ifdef __STDC__
3450# include <limits.h>
3451#else
3452# include <assert.h>
3453#endif
3454		     Syntax error
3455_ACEOF
3456if { (ac_try="$ac_cpp conftest.$ac_ext"
3457case "(($ac_try" in
3458  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3459  *) ac_try_echo=$ac_try;;
3460esac
3461eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3462  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3463  ac_status=$?
3464  grep -v '^ *+' conftest.er1 >conftest.err
3465  rm -f conftest.er1
3466  cat conftest.err >&5
3467  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3468  (exit $ac_status); } >/dev/null && {
3469	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3470	 test ! -s conftest.err
3471       }; then
3472  :
3473else
3474  echo "$as_me: failed program was:" >&5
3475sed 's/^/| /' conftest.$ac_ext >&5
3476
3477  # Broken: fails on valid input.
3478continue
3479fi
3480
3481rm -f conftest.err conftest.$ac_ext
3482
3483  # OK, works on sane cases.  Now check whether nonexistent headers
3484  # can be detected and how.
3485  cat >conftest.$ac_ext <<_ACEOF
3486/* confdefs.h.  */
3487_ACEOF
3488cat confdefs.h >>conftest.$ac_ext
3489cat >>conftest.$ac_ext <<_ACEOF
3490/* end confdefs.h.  */
3491#include <ac_nonexistent.h>
3492_ACEOF
3493if { (ac_try="$ac_cpp conftest.$ac_ext"
3494case "(($ac_try" in
3495  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3496  *) ac_try_echo=$ac_try;;
3497esac
3498eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3499  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3500  ac_status=$?
3501  grep -v '^ *+' conftest.er1 >conftest.err
3502  rm -f conftest.er1
3503  cat conftest.err >&5
3504  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3505  (exit $ac_status); } >/dev/null && {
3506	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3507	 test ! -s conftest.err
3508       }; then
3509  # Broken: success on invalid input.
3510continue
3511else
3512  echo "$as_me: failed program was:" >&5
3513sed 's/^/| /' conftest.$ac_ext >&5
3514
3515  # Passes both tests.
3516ac_preproc_ok=:
3517break
3518fi
3519
3520rm -f conftest.err conftest.$ac_ext
3521
3522done
3523# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3524rm -f conftest.err conftest.$ac_ext
3525if $ac_preproc_ok; then
3526  break
3527fi
3528
3529    done
3530    ac_cv_prog_CPP=$CPP
3531
3532fi
3533  CPP=$ac_cv_prog_CPP
3534else
3535  ac_cv_prog_CPP=$CPP
3536fi
3537{ echo "$as_me:$LINENO: result: $CPP" >&5
3538echo "${ECHO_T}$CPP" >&6; }
3539ac_preproc_ok=false
3540for ac_c_preproc_warn_flag in '' yes
3541do
3542  # Use a header file that comes with gcc, so configuring glibc
3543  # with a fresh cross-compiler works.
3544  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3545  # <limits.h> exists even on freestanding compilers.
3546  # On the NeXT, cc -E runs the code through the compiler's parser,
3547  # not just through cpp. "Syntax error" is here to catch this case.
3548  cat >conftest.$ac_ext <<_ACEOF
3549/* confdefs.h.  */
3550_ACEOF
3551cat confdefs.h >>conftest.$ac_ext
3552cat >>conftest.$ac_ext <<_ACEOF
3553/* end confdefs.h.  */
3554#ifdef __STDC__
3555# include <limits.h>
3556#else
3557# include <assert.h>
3558#endif
3559		     Syntax error
3560_ACEOF
3561if { (ac_try="$ac_cpp conftest.$ac_ext"
3562case "(($ac_try" in
3563  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3564  *) ac_try_echo=$ac_try;;
3565esac
3566eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3567  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3568  ac_status=$?
3569  grep -v '^ *+' conftest.er1 >conftest.err
3570  rm -f conftest.er1
3571  cat conftest.err >&5
3572  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3573  (exit $ac_status); } >/dev/null && {
3574	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3575	 test ! -s conftest.err
3576       }; then
3577  :
3578else
3579  echo "$as_me: failed program was:" >&5
3580sed 's/^/| /' conftest.$ac_ext >&5
3581
3582  # Broken: fails on valid input.
3583continue
3584fi
3585
3586rm -f conftest.err conftest.$ac_ext
3587
3588  # OK, works on sane cases.  Now check whether nonexistent headers
3589  # can be detected and how.
3590  cat >conftest.$ac_ext <<_ACEOF
3591/* confdefs.h.  */
3592_ACEOF
3593cat confdefs.h >>conftest.$ac_ext
3594cat >>conftest.$ac_ext <<_ACEOF
3595/* end confdefs.h.  */
3596#include <ac_nonexistent.h>
3597_ACEOF
3598if { (ac_try="$ac_cpp conftest.$ac_ext"
3599case "(($ac_try" in
3600  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3601  *) ac_try_echo=$ac_try;;
3602esac
3603eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3604  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3605  ac_status=$?
3606  grep -v '^ *+' conftest.er1 >conftest.err
3607  rm -f conftest.er1
3608  cat conftest.err >&5
3609  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3610  (exit $ac_status); } >/dev/null && {
3611	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3612	 test ! -s conftest.err
3613       }; then
3614  # Broken: success on invalid input.
3615continue
3616else
3617  echo "$as_me: failed program was:" >&5
3618sed 's/^/| /' conftest.$ac_ext >&5
3619
3620  # Passes both tests.
3621ac_preproc_ok=:
3622break
3623fi
3624
3625rm -f conftest.err conftest.$ac_ext
3626
3627done
3628# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3629rm -f conftest.err conftest.$ac_ext
3630if $ac_preproc_ok; then
3631  :
3632else
3633  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3634See \`config.log' for more details." >&5
3635echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3636See \`config.log' for more details." >&2;}
3637   { (exit 1); exit 1; }; }
3638fi
3639
3640ac_ext=c
3641ac_cpp='$CPP $CPPFLAGS'
3642ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3643ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3644ac_compiler_gnu=$ac_cv_c_compiler_gnu
3645
3646
3647    # Find a good install program.  We prefer a C program (faster),
3648# so one script is as good as another.  But avoid the broken or
3649# incompatible versions:
3650# SysV /etc/install, /usr/sbin/install
3651# SunOS /usr/etc/install
3652# IRIX /sbin/install
3653# AIX /bin/install
3654# AmigaOS /C/install, which installs bootblocks on floppy discs
3655# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3656# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3657# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3658# OS/2's system install, which has a completely different semantic
3659# ./install, which can be erroneously created by make from ./install.sh.
3660{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3661echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
3662if test -z "$INSTALL"; then
3663if test "${ac_cv_path_install+set}" = set; then
3664  echo $ECHO_N "(cached) $ECHO_C" >&6
3665else
3666  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3667for as_dir in $PATH
3668do
3669  IFS=$as_save_IFS
3670  test -z "$as_dir" && as_dir=.
3671  # Account for people who put trailing slashes in PATH elements.
3672case $as_dir/ in
3673  ./ | .// | /cC/* | \
3674  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3675  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3676  /usr/ucb/* ) ;;
3677  *)
3678    # OSF1 and SCO ODT 3.0 have their own names for install.
3679    # Don't use installbsd from OSF since it installs stuff as root
3680    # by default.
3681    for ac_prog in ginstall scoinst install; do
3682      for ac_exec_ext in '' $ac_executable_extensions; do
3683	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3684	  if test $ac_prog = install &&
3685	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3686	    # AIX install.  It has an incompatible calling convention.
3687	    :
3688	  elif test $ac_prog = install &&
3689	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3690	    # program-specific install script used by HP pwplus--don't use.
3691	    :
3692	  else
3693	    ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3694	    break 3
3695	  fi
3696	fi
3697      done
3698    done
3699    ;;
3700esac
3701done
3702IFS=$as_save_IFS
3703
3704
3705fi
3706  if test "${ac_cv_path_install+set}" = set; then
3707    INSTALL=$ac_cv_path_install
3708  else
3709    # As a last resort, use the slow shell script.  Don't cache a
3710    # value for INSTALL within a source directory, because that will
3711    # break other packages using the cache if that directory is
3712    # removed, or if the value is a relative name.
3713    INSTALL=$ac_install_sh
3714  fi
3715fi
3716{ echo "$as_me:$LINENO: result: $INSTALL" >&5
3717echo "${ECHO_T}$INSTALL" >&6; }
3718
3719# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3720# It thinks the first close brace ends the variable substitution.
3721test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3722
3723test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3724
3725test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3726
3727
3728    #--------------------------------------------------------------------
3729    # Checks to see if the make program sets the $MAKE variable.
3730    #--------------------------------------------------------------------
3731
3732    { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3733echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
3734set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3735if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
3736  echo $ECHO_N "(cached) $ECHO_C" >&6
3737else
3738  cat >conftest.make <<\_ACEOF
3739SHELL = /bin/sh
3740all:
3741	@echo '@@@%%%=$(MAKE)=@@@%%%'
3742_ACEOF
3743# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3744case `${MAKE-make} -f conftest.make 2>/dev/null` in
3745  *@@@%%%=?*=@@@%%%*)
3746    eval ac_cv_prog_make_${ac_make}_set=yes;;
3747  *)
3748    eval ac_cv_prog_make_${ac_make}_set=no;;
3749esac
3750rm -f conftest.make
3751fi
3752if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3753  { echo "$as_me:$LINENO: result: yes" >&5
3754echo "${ECHO_T}yes" >&6; }
3755  SET_MAKE=
3756else
3757  { echo "$as_me:$LINENO: result: no" >&5
3758echo "${ECHO_T}no" >&6; }
3759  SET_MAKE="MAKE=${MAKE-make}"
3760fi
3761
3762
3763    #--------------------------------------------------------------------
3764    # Find ranlib
3765    #--------------------------------------------------------------------
3766
3767    if test -n "$ac_tool_prefix"; then
3768  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3769set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3770{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3771echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3772if test "${ac_cv_prog_RANLIB+set}" = set; then
3773  echo $ECHO_N "(cached) $ECHO_C" >&6
3774else
3775  if test -n "$RANLIB"; then
3776  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3777else
3778as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3779for as_dir in $PATH
3780do
3781  IFS=$as_save_IFS
3782  test -z "$as_dir" && as_dir=.
3783  for ac_exec_ext in '' $ac_executable_extensions; do
3784  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3785    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3786    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3787    break 2
3788  fi
3789done
3790done
3791IFS=$as_save_IFS
3792
3793fi
3794fi
3795RANLIB=$ac_cv_prog_RANLIB
3796if test -n "$RANLIB"; then
3797  { echo "$as_me:$LINENO: result: $RANLIB" >&5
3798echo "${ECHO_T}$RANLIB" >&6; }
3799else
3800  { echo "$as_me:$LINENO: result: no" >&5
3801echo "${ECHO_T}no" >&6; }
3802fi
3803
3804
3805fi
3806if test -z "$ac_cv_prog_RANLIB"; then
3807  ac_ct_RANLIB=$RANLIB
3808  # Extract the first word of "ranlib", so it can be a program name with args.
3809set dummy ranlib; ac_word=$2
3810{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3811echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3812if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3813  echo $ECHO_N "(cached) $ECHO_C" >&6
3814else
3815  if test -n "$ac_ct_RANLIB"; then
3816  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3817else
3818as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3819for as_dir in $PATH
3820do
3821  IFS=$as_save_IFS
3822  test -z "$as_dir" && as_dir=.
3823  for ac_exec_ext in '' $ac_executable_extensions; do
3824  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3825    ac_cv_prog_ac_ct_RANLIB="ranlib"
3826    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3827    break 2
3828  fi
3829done
3830done
3831IFS=$as_save_IFS
3832
3833fi
3834fi
3835ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3836if test -n "$ac_ct_RANLIB"; then
3837  { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3838echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
3839else
3840  { echo "$as_me:$LINENO: result: no" >&5
3841echo "${ECHO_T}no" >&6; }
3842fi
3843
3844  if test "x$ac_ct_RANLIB" = x; then
3845    RANLIB=":"
3846  else
3847    case $cross_compiling:$ac_tool_warned in
3848yes:)
3849{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3850whose name does not start with the host triplet.  If you think this
3851configuration is useful to you, please write to autoconf@gnu.org." >&5
3852echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3853whose name does not start with the host triplet.  If you think this
3854configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3855ac_tool_warned=yes ;;
3856esac
3857    RANLIB=$ac_ct_RANLIB
3858  fi
3859else
3860  RANLIB="$ac_cv_prog_RANLIB"
3861fi
3862
3863
3864    #--------------------------------------------------------------------
3865    # Determines the correct binary file extension (.o, .obj, .exe etc.)
3866    #--------------------------------------------------------------------
3867
3868
3869
3870
3871
3872
3873{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3874echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3875if test "${ac_cv_path_GREP+set}" = set; then
3876  echo $ECHO_N "(cached) $ECHO_C" >&6
3877else
3878  # Extract the first word of "grep ggrep" to use in msg output
3879if test -z "$GREP"; then
3880set dummy grep ggrep; ac_prog_name=$2
3881if test "${ac_cv_path_GREP+set}" = set; then
3882  echo $ECHO_N "(cached) $ECHO_C" >&6
3883else
3884  ac_path_GREP_found=false
3885# Loop through the user's path and test for each of PROGNAME-LIST
3886as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3887for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3888do
3889  IFS=$as_save_IFS
3890  test -z "$as_dir" && as_dir=.
3891  for ac_prog in grep ggrep; do
3892  for ac_exec_ext in '' $ac_executable_extensions; do
3893    ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3894    { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3895    # Check for GNU ac_path_GREP and select it if it is found.
3896  # Check for GNU $ac_path_GREP
3897case `"$ac_path_GREP" --version 2>&1` in
3898*GNU*)
3899  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3900*)
3901  ac_count=0
3902  echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3903  while :
3904  do
3905    cat "conftest.in" "conftest.in" >"conftest.tmp"
3906    mv "conftest.tmp" "conftest.in"
3907    cp "conftest.in" "conftest.nl"
3908    echo 'GREP' >> "conftest.nl"
3909    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3910    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3911    ac_count=`expr $ac_count + 1`
3912    if test $ac_count -gt ${ac_path_GREP_max-0}; then
3913      # Best one so far, save it but keep looking for a better one
3914      ac_cv_path_GREP="$ac_path_GREP"
3915      ac_path_GREP_max=$ac_count
3916    fi
3917    # 10*(2^10) chars as input seems more than enough
3918    test $ac_count -gt 10 && break
3919  done
3920  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3921esac
3922
3923
3924    $ac_path_GREP_found && break 3
3925  done
3926done
3927
3928done
3929IFS=$as_save_IFS
3930
3931
3932fi
3933
3934GREP="$ac_cv_path_GREP"
3935if test -z "$GREP"; then
3936  { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3937echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3938   { (exit 1); exit 1; }; }
3939fi
3940
3941else
3942  ac_cv_path_GREP=$GREP
3943fi
3944
3945
3946fi
3947{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3948echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3949 GREP="$ac_cv_path_GREP"
3950
3951
3952{ echo "$as_me:$LINENO: checking for egrep" >&5
3953echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3954if test "${ac_cv_path_EGREP+set}" = set; then
3955  echo $ECHO_N "(cached) $ECHO_C" >&6
3956else
3957  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3958   then ac_cv_path_EGREP="$GREP -E"
3959   else
3960     # Extract the first word of "egrep" to use in msg output
3961if test -z "$EGREP"; then
3962set dummy egrep; ac_prog_name=$2
3963if test "${ac_cv_path_EGREP+set}" = set; then
3964  echo $ECHO_N "(cached) $ECHO_C" >&6
3965else
3966  ac_path_EGREP_found=false
3967# Loop through the user's path and test for each of PROGNAME-LIST
3968as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3969for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3970do
3971  IFS=$as_save_IFS
3972  test -z "$as_dir" && as_dir=.
3973  for ac_prog in egrep; do
3974  for ac_exec_ext in '' $ac_executable_extensions; do
3975    ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3976    { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3977    # Check for GNU ac_path_EGREP and select it if it is found.
3978  # Check for GNU $ac_path_EGREP
3979case `"$ac_path_EGREP" --version 2>&1` in
3980*GNU*)
3981  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3982*)
3983  ac_count=0
3984  echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3985  while :
3986  do
3987    cat "conftest.in" "conftest.in" >"conftest.tmp"
3988    mv "conftest.tmp" "conftest.in"
3989    cp "conftest.in" "conftest.nl"
3990    echo 'EGREP' >> "conftest.nl"
3991    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3992    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3993    ac_count=`expr $ac_count + 1`
3994    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3995      # Best one so far, save it but keep looking for a better one
3996      ac_cv_path_EGREP="$ac_path_EGREP"
3997      ac_path_EGREP_max=$ac_count
3998    fi
3999    # 10*(2^10) chars as input seems more than enough
4000    test $ac_count -gt 10 && break
4001  done
4002  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4003esac
4004
4005
4006    $ac_path_EGREP_found && break 3
4007  done
4008done
4009
4010done
4011IFS=$as_save_IFS
4012
4013
4014fi
4015
4016EGREP="$ac_cv_path_EGREP"
4017if test -z "$EGREP"; then
4018  { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4019echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4020   { (exit 1); exit 1; }; }
4021fi
4022
4023else
4024  ac_cv_path_EGREP=$EGREP
4025fi
4026
4027
4028   fi
4029fi
4030{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4031echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4032 EGREP="$ac_cv_path_EGREP"
4033
4034
4035{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4036echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4037if test "${ac_cv_header_stdc+set}" = set; then
4038  echo $ECHO_N "(cached) $ECHO_C" >&6
4039else
4040  cat >conftest.$ac_ext <<_ACEOF
4041/* confdefs.h.  */
4042_ACEOF
4043cat confdefs.h >>conftest.$ac_ext
4044cat >>conftest.$ac_ext <<_ACEOF
4045/* end confdefs.h.  */
4046#include <stdlib.h>
4047#include <stdarg.h>
4048#include <string.h>
4049#include <float.h>
4050
4051int
4052main ()
4053{
4054
4055  ;
4056  return 0;
4057}
4058_ACEOF
4059rm -f conftest.$ac_objext
4060if { (ac_try="$ac_compile"
4061case "(($ac_try" in
4062  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4063  *) ac_try_echo=$ac_try;;
4064esac
4065eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4066  (eval "$ac_compile") 2>conftest.er1
4067  ac_status=$?
4068  grep -v '^ *+' conftest.er1 >conftest.err
4069  rm -f conftest.er1
4070  cat conftest.err >&5
4071  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4072  (exit $ac_status); } && {
4073	 test -z "$ac_c_werror_flag" ||
4074	 test ! -s conftest.err
4075       } && test -s conftest.$ac_objext; then
4076  ac_cv_header_stdc=yes
4077else
4078  echo "$as_me: failed program was:" >&5
4079sed 's/^/| /' conftest.$ac_ext >&5
4080
4081	ac_cv_header_stdc=no
4082fi
4083
4084rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4085
4086if test $ac_cv_header_stdc = yes; then
4087  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4088  cat >conftest.$ac_ext <<_ACEOF
4089/* confdefs.h.  */
4090_ACEOF
4091cat confdefs.h >>conftest.$ac_ext
4092cat >>conftest.$ac_ext <<_ACEOF
4093/* end confdefs.h.  */
4094#include <string.h>
4095
4096_ACEOF
4097if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4098  $EGREP "memchr" >/dev/null 2>&1; then
4099  :
4100else
4101  ac_cv_header_stdc=no
4102fi
4103rm -f -r conftest*
4104
4105fi
4106
4107if test $ac_cv_header_stdc = yes; then
4108  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4109  cat >conftest.$ac_ext <<_ACEOF
4110/* confdefs.h.  */
4111_ACEOF
4112cat confdefs.h >>conftest.$ac_ext
4113cat >>conftest.$ac_ext <<_ACEOF
4114/* end confdefs.h.  */
4115#include <stdlib.h>
4116
4117_ACEOF
4118if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4119  $EGREP "free" >/dev/null 2>&1; then
4120  :
4121else
4122  ac_cv_header_stdc=no
4123fi
4124rm -f -r conftest*
4125
4126fi
4127
4128if test $ac_cv_header_stdc = yes; then
4129  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4130  if test "$cross_compiling" = yes; then
4131  :
4132else
4133  cat >conftest.$ac_ext <<_ACEOF
4134/* confdefs.h.  */
4135_ACEOF
4136cat confdefs.h >>conftest.$ac_ext
4137cat >>conftest.$ac_ext <<_ACEOF
4138/* end confdefs.h.  */
4139#include <ctype.h>
4140#include <stdlib.h>
4141#if ((' ' & 0x0FF) == 0x020)
4142# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4143# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4144#else
4145# define ISLOWER(c) \
4146		   (('a' <= (c) && (c) <= 'i') \
4147		     || ('j' <= (c) && (c) <= 'r') \
4148		     || ('s' <= (c) && (c) <= 'z'))
4149# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4150#endif
4151
4152#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4153int
4154main ()
4155{
4156  int i;
4157  for (i = 0; i < 256; i++)
4158    if (XOR (islower (i), ISLOWER (i))
4159	|| toupper (i) != TOUPPER (i))
4160      return 2;
4161  return 0;
4162}
4163_ACEOF
4164rm -f conftest$ac_exeext
4165if { (ac_try="$ac_link"
4166case "(($ac_try" in
4167  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4168  *) ac_try_echo=$ac_try;;
4169esac
4170eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4171  (eval "$ac_link") 2>&5
4172  ac_status=$?
4173  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4174  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4175  { (case "(($ac_try" in
4176  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4177  *) ac_try_echo=$ac_try;;
4178esac
4179eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4180  (eval "$ac_try") 2>&5
4181  ac_status=$?
4182  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4183  (exit $ac_status); }; }; then
4184  :
4185else
4186  echo "$as_me: program exited with status $ac_status" >&5
4187echo "$as_me: failed program was:" >&5
4188sed 's/^/| /' conftest.$ac_ext >&5
4189
4190( exit $ac_status )
4191ac_cv_header_stdc=no
4192fi
4193rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4194fi
4195
4196
4197fi
4198fi
4199{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4200echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4201if test $ac_cv_header_stdc = yes; then
4202
4203cat >>confdefs.h <<\_ACEOF
4204#define STDC_HEADERS 1
4205_ACEOF
4206
4207fi
4208
4209# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4210
4211
4212
4213
4214
4215
4216
4217
4218
4219for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4220		  inttypes.h stdint.h unistd.h
4221do
4222as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4223{ echo "$as_me:$LINENO: checking for $ac_header" >&5
4224echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4225if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4226  echo $ECHO_N "(cached) $ECHO_C" >&6
4227else
4228  cat >conftest.$ac_ext <<_ACEOF
4229/* confdefs.h.  */
4230_ACEOF
4231cat confdefs.h >>conftest.$ac_ext
4232cat >>conftest.$ac_ext <<_ACEOF
4233/* end confdefs.h.  */
4234$ac_includes_default
4235
4236#include <$ac_header>
4237_ACEOF
4238rm -f conftest.$ac_objext
4239if { (ac_try="$ac_compile"
4240case "(($ac_try" in
4241  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4242  *) ac_try_echo=$ac_try;;
4243esac
4244eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4245  (eval "$ac_compile") 2>conftest.er1
4246  ac_status=$?
4247  grep -v '^ *+' conftest.er1 >conftest.err
4248  rm -f conftest.er1
4249  cat conftest.err >&5
4250  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4251  (exit $ac_status); } && {
4252	 test -z "$ac_c_werror_flag" ||
4253	 test ! -s conftest.err
4254       } && test -s conftest.$ac_objext; then
4255  eval "$as_ac_Header=yes"
4256else
4257  echo "$as_me: failed program was:" >&5
4258sed 's/^/| /' conftest.$ac_ext >&5
4259
4260	eval "$as_ac_Header=no"
4261fi
4262
4263rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4264fi
4265ac_res=`eval echo '${'$as_ac_Header'}'`
4266	       { echo "$as_me:$LINENO: result: $ac_res" >&5
4267echo "${ECHO_T}$ac_res" >&6; }
4268if test `eval echo '${'$as_ac_Header'}'` = yes; then
4269  cat >>confdefs.h <<_ACEOF
4270#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4271_ACEOF
4272
4273fi
4274
4275done
4276
4277
4278
4279    # Any macros that use the compiler (e.g. AC_TRY_COMPILE) have to go here.
4280
4281
4282    #------------------------------------------------------------------------
4283    # If we're using GCC, see if the compiler understands -pipe. If so, use it.
4284    # It makes compiling go faster.  (This is only a performance feature.)
4285    #------------------------------------------------------------------------
4286
4287    if test -z "$no_pipe" -a -n "$GCC"; then
4288	{ echo "$as_me:$LINENO: checking if the compiler understands -pipe" >&5
4289echo $ECHO_N "checking if the compiler understands -pipe... $ECHO_C" >&6; }
4290if test "${tcl_cv_cc_pipe+set}" = set; then
4291  echo $ECHO_N "(cached) $ECHO_C" >&6
4292else
4293
4294	    hold_cflags=$CFLAGS; CFLAGS="$CFLAGS -pipe"
4295	    cat >conftest.$ac_ext <<_ACEOF
4296/* confdefs.h.  */
4297_ACEOF
4298cat confdefs.h >>conftest.$ac_ext
4299cat >>conftest.$ac_ext <<_ACEOF
4300/* end confdefs.h.  */
4301
4302int
4303main ()
4304{
4305
4306  ;
4307  return 0;
4308}
4309_ACEOF
4310rm -f conftest.$ac_objext
4311if { (ac_try="$ac_compile"
4312case "(($ac_try" in
4313  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4314  *) ac_try_echo=$ac_try;;
4315esac
4316eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4317  (eval "$ac_compile") 2>conftest.er1
4318  ac_status=$?
4319  grep -v '^ *+' conftest.er1 >conftest.err
4320  rm -f conftest.er1
4321  cat conftest.err >&5
4322  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4323  (exit $ac_status); } && {
4324	 test -z "$ac_c_werror_flag" ||
4325	 test ! -s conftest.err
4326       } && test -s conftest.$ac_objext; then
4327  tcl_cv_cc_pipe=yes
4328else
4329  echo "$as_me: failed program was:" >&5
4330sed 's/^/| /' conftest.$ac_ext >&5
4331
4332	tcl_cv_cc_pipe=no
4333fi
4334
4335rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4336	    CFLAGS=$hold_cflags
4337fi
4338{ echo "$as_me:$LINENO: result: $tcl_cv_cc_pipe" >&5
4339echo "${ECHO_T}$tcl_cv_cc_pipe" >&6; }
4340	if test $tcl_cv_cc_pipe = yes; then
4341	    CFLAGS="$CFLAGS -pipe"
4342	fi
4343    fi
4344
4345    #--------------------------------------------------------------------
4346    # Common compiler flag setup
4347    #--------------------------------------------------------------------
4348
4349    { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4350echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4351if test "${ac_cv_c_bigendian+set}" = set; then
4352  echo $ECHO_N "(cached) $ECHO_C" >&6
4353else
4354  # See if sys/param.h defines the BYTE_ORDER macro.
4355cat >conftest.$ac_ext <<_ACEOF
4356/* confdefs.h.  */
4357_ACEOF
4358cat confdefs.h >>conftest.$ac_ext
4359cat >>conftest.$ac_ext <<_ACEOF
4360/* end confdefs.h.  */
4361#include <sys/types.h>
4362#include <sys/param.h>
4363
4364int
4365main ()
4366{
4367#if  ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
4368	&& BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
4369 bogus endian macros
4370#endif
4371
4372  ;
4373  return 0;
4374}
4375_ACEOF
4376rm -f conftest.$ac_objext
4377if { (ac_try="$ac_compile"
4378case "(($ac_try" in
4379  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4380  *) ac_try_echo=$ac_try;;
4381esac
4382eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4383  (eval "$ac_compile") 2>conftest.er1
4384  ac_status=$?
4385  grep -v '^ *+' conftest.er1 >conftest.err
4386  rm -f conftest.er1
4387  cat conftest.err >&5
4388  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4389  (exit $ac_status); } && {
4390	 test -z "$ac_c_werror_flag" ||
4391	 test ! -s conftest.err
4392       } && test -s conftest.$ac_objext; then
4393  # It does; now see whether it defined to BIG_ENDIAN or not.
4394cat >conftest.$ac_ext <<_ACEOF
4395/* confdefs.h.  */
4396_ACEOF
4397cat confdefs.h >>conftest.$ac_ext
4398cat >>conftest.$ac_ext <<_ACEOF
4399/* end confdefs.h.  */
4400#include <sys/types.h>
4401#include <sys/param.h>
4402
4403int
4404main ()
4405{
4406#if BYTE_ORDER != BIG_ENDIAN
4407 not big endian
4408#endif
4409
4410  ;
4411  return 0;
4412}
4413_ACEOF
4414rm -f conftest.$ac_objext
4415if { (ac_try="$ac_compile"
4416case "(($ac_try" in
4417  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4418  *) ac_try_echo=$ac_try;;
4419esac
4420eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4421  (eval "$ac_compile") 2>conftest.er1
4422  ac_status=$?
4423  grep -v '^ *+' conftest.er1 >conftest.err
4424  rm -f conftest.er1
4425  cat conftest.err >&5
4426  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4427  (exit $ac_status); } && {
4428	 test -z "$ac_c_werror_flag" ||
4429	 test ! -s conftest.err
4430       } && test -s conftest.$ac_objext; then
4431  ac_cv_c_bigendian=yes
4432else
4433  echo "$as_me: failed program was:" >&5
4434sed 's/^/| /' conftest.$ac_ext >&5
4435
4436	ac_cv_c_bigendian=no
4437fi
4438
4439rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4440else
4441  echo "$as_me: failed program was:" >&5
4442sed 's/^/| /' conftest.$ac_ext >&5
4443
4444	# It does not; compile a test program.
4445if test "$cross_compiling" = yes; then
4446  # try to guess the endianness by grepping values into an object file
4447  ac_cv_c_bigendian=unknown
4448  cat >conftest.$ac_ext <<_ACEOF
4449/* confdefs.h.  */
4450_ACEOF
4451cat confdefs.h >>conftest.$ac_ext
4452cat >>conftest.$ac_ext <<_ACEOF
4453/* end confdefs.h.  */
4454short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4455short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4456void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4457short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4458short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4459void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4460int
4461main ()
4462{
4463 _ascii (); _ebcdic ();
4464  ;
4465  return 0;
4466}
4467_ACEOF
4468rm -f conftest.$ac_objext
4469if { (ac_try="$ac_compile"
4470case "(($ac_try" in
4471  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4472  *) ac_try_echo=$ac_try;;
4473esac
4474eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4475  (eval "$ac_compile") 2>conftest.er1
4476  ac_status=$?
4477  grep -v '^ *+' conftest.er1 >conftest.err
4478  rm -f conftest.er1
4479  cat conftest.err >&5
4480  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4481  (exit $ac_status); } && {
4482	 test -z "$ac_c_werror_flag" ||
4483	 test ! -s conftest.err
4484       } && test -s conftest.$ac_objext; then
4485  if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4486  ac_cv_c_bigendian=yes
4487fi
4488if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4489  if test "$ac_cv_c_bigendian" = unknown; then
4490    ac_cv_c_bigendian=no
4491  else
4492    # finding both strings is unlikely to happen, but who knows?
4493    ac_cv_c_bigendian=unknown
4494  fi
4495fi
4496else
4497  echo "$as_me: failed program was:" >&5
4498sed 's/^/| /' conftest.$ac_ext >&5
4499
4500
4501fi
4502
4503rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4504else
4505  cat >conftest.$ac_ext <<_ACEOF
4506/* confdefs.h.  */
4507_ACEOF
4508cat confdefs.h >>conftest.$ac_ext
4509cat >>conftest.$ac_ext <<_ACEOF
4510/* end confdefs.h.  */
4511$ac_includes_default
4512int
4513main ()
4514{
4515
4516  /* Are we little or big endian?  From Harbison&Steele.  */
4517  union
4518  {
4519    long int l;
4520    char c[sizeof (long int)];
4521  } u;
4522  u.l = 1;
4523  return u.c[sizeof (long int) - 1] == 1;
4524
4525  ;
4526  return 0;
4527}
4528_ACEOF
4529rm -f conftest$ac_exeext
4530if { (ac_try="$ac_link"
4531case "(($ac_try" in
4532  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4533  *) ac_try_echo=$ac_try;;
4534esac
4535eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4536  (eval "$ac_link") 2>&5
4537  ac_status=$?
4538  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4539  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4540  { (case "(($ac_try" in
4541  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4542  *) ac_try_echo=$ac_try;;
4543esac
4544eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4545  (eval "$ac_try") 2>&5
4546  ac_status=$?
4547  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4548  (exit $ac_status); }; }; then
4549  ac_cv_c_bigendian=no
4550else
4551  echo "$as_me: program exited with status $ac_status" >&5
4552echo "$as_me: failed program was:" >&5
4553sed 's/^/| /' conftest.$ac_ext >&5
4554
4555( exit $ac_status )
4556ac_cv_c_bigendian=yes
4557fi
4558rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4559fi
4560
4561
4562fi
4563
4564rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4565fi
4566{ echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4567echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4568case $ac_cv_c_bigendian in
4569  yes)
4570
4571cat >>confdefs.h <<\_ACEOF
4572#define WORDS_BIGENDIAN 1
4573_ACEOF
4574 ;;
4575  no)
4576     ;;
4577  *)
4578    { { echo "$as_me:$LINENO: error: unknown endianness
4579presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4580echo "$as_me: error: unknown endianness
4581presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4582   { (exit 1); exit 1; }; } ;;
4583esac
4584
4585    if test "${TEA_PLATFORM}" = "unix" ; then
4586
4587    #--------------------------------------------------------------------
4588    # On a few very rare systems, all of the libm.a stuff is
4589    # already in libc.a.  Set compiler flags accordingly.
4590    # Also, Linux requires the "ieee" library for math to work
4591    # right (and it must appear before "-lm").
4592    #--------------------------------------------------------------------
4593
4594    { echo "$as_me:$LINENO: checking for sin" >&5
4595echo $ECHO_N "checking for sin... $ECHO_C" >&6; }
4596if test "${ac_cv_func_sin+set}" = set; then
4597  echo $ECHO_N "(cached) $ECHO_C" >&6
4598else
4599  cat >conftest.$ac_ext <<_ACEOF
4600/* confdefs.h.  */
4601_ACEOF
4602cat confdefs.h >>conftest.$ac_ext
4603cat >>conftest.$ac_ext <<_ACEOF
4604/* end confdefs.h.  */
4605/* Define sin to an innocuous variant, in case <limits.h> declares sin.
4606   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
4607#define sin innocuous_sin
4608
4609/* System header to define __stub macros and hopefully few prototypes,
4610    which can conflict with char sin (); below.
4611    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4612    <limits.h> exists even on freestanding compilers.  */
4613
4614#ifdef __STDC__
4615# include <limits.h>
4616#else
4617# include <assert.h>
4618#endif
4619
4620#undef sin
4621
4622/* Override any GCC internal prototype to avoid an error.
4623   Use char because int might match the return type of a GCC
4624   builtin and then its argument prototype would still apply.  */
4625#ifdef __cplusplus
4626extern "C"
4627#endif
4628char sin ();
4629/* The GNU C library defines this for functions which it implements
4630    to always fail with ENOSYS.  Some functions are actually named
4631    something starting with __ and the normal name is an alias.  */
4632#if defined __stub_sin || defined __stub___sin
4633choke me
4634#endif
4635
4636int
4637main ()
4638{
4639return sin ();
4640  ;
4641  return 0;
4642}
4643_ACEOF
4644rm -f conftest.$ac_objext conftest$ac_exeext
4645if { (ac_try="$ac_link"
4646case "(($ac_try" in
4647  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4648  *) ac_try_echo=$ac_try;;
4649esac
4650eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4651  (eval "$ac_link") 2>conftest.er1
4652  ac_status=$?
4653  grep -v '^ *+' conftest.er1 >conftest.err
4654  rm -f conftest.er1
4655  cat conftest.err >&5
4656  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4657  (exit $ac_status); } && {
4658	 test -z "$ac_c_werror_flag" ||
4659	 test ! -s conftest.err
4660       } && test -s conftest$ac_exeext &&
4661       $as_test_x conftest$ac_exeext; then
4662  ac_cv_func_sin=yes
4663else
4664  echo "$as_me: failed program was:" >&5
4665sed 's/^/| /' conftest.$ac_ext >&5
4666
4667	ac_cv_func_sin=no
4668fi
4669
4670rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4671      conftest$ac_exeext conftest.$ac_ext
4672fi
4673{ echo "$as_me:$LINENO: result: $ac_cv_func_sin" >&5
4674echo "${ECHO_T}$ac_cv_func_sin" >&6; }
4675if test $ac_cv_func_sin = yes; then
4676  MATH_LIBS=""
4677else
4678  MATH_LIBS="-lm"
4679fi
4680
4681    { echo "$as_me:$LINENO: checking for main in -lieee" >&5
4682echo $ECHO_N "checking for main in -lieee... $ECHO_C" >&6; }
4683if test "${ac_cv_lib_ieee_main+set}" = set; then
4684  echo $ECHO_N "(cached) $ECHO_C" >&6
4685else
4686  ac_check_lib_save_LIBS=$LIBS
4687LIBS="-lieee  $LIBS"
4688cat >conftest.$ac_ext <<_ACEOF
4689/* confdefs.h.  */
4690_ACEOF
4691cat confdefs.h >>conftest.$ac_ext
4692cat >>conftest.$ac_ext <<_ACEOF
4693/* end confdefs.h.  */
4694
4695
4696int
4697main ()
4698{
4699return main ();
4700  ;
4701  return 0;
4702}
4703_ACEOF
4704rm -f conftest.$ac_objext conftest$ac_exeext
4705if { (ac_try="$ac_link"
4706case "(($ac_try" in
4707  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4708  *) ac_try_echo=$ac_try;;
4709esac
4710eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4711  (eval "$ac_link") 2>conftest.er1
4712  ac_status=$?
4713  grep -v '^ *+' conftest.er1 >conftest.err
4714  rm -f conftest.er1
4715  cat conftest.err >&5
4716  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4717  (exit $ac_status); } && {
4718	 test -z "$ac_c_werror_flag" ||
4719	 test ! -s conftest.err
4720       } && test -s conftest$ac_exeext &&
4721       $as_test_x conftest$ac_exeext; then
4722  ac_cv_lib_ieee_main=yes
4723else
4724  echo "$as_me: failed program was:" >&5
4725sed 's/^/| /' conftest.$ac_ext >&5
4726
4727	ac_cv_lib_ieee_main=no
4728fi
4729
4730rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4731      conftest$ac_exeext conftest.$ac_ext
4732LIBS=$ac_check_lib_save_LIBS
4733fi
4734{ echo "$as_me:$LINENO: result: $ac_cv_lib_ieee_main" >&5
4735echo "${ECHO_T}$ac_cv_lib_ieee_main" >&6; }
4736if test $ac_cv_lib_ieee_main = yes; then
4737  MATH_LIBS="-lieee $MATH_LIBS"
4738fi
4739
4740
4741    #--------------------------------------------------------------------
4742    # Interactive UNIX requires -linet instead of -lsocket, plus it
4743    # needs net/errno.h to define the socket-related error codes.
4744    #--------------------------------------------------------------------
4745
4746    { echo "$as_me:$LINENO: checking for main in -linet" >&5
4747echo $ECHO_N "checking for main in -linet... $ECHO_C" >&6; }
4748if test "${ac_cv_lib_inet_main+set}" = set; then
4749  echo $ECHO_N "(cached) $ECHO_C" >&6
4750else
4751  ac_check_lib_save_LIBS=$LIBS
4752LIBS="-linet  $LIBS"
4753cat >conftest.$ac_ext <<_ACEOF
4754/* confdefs.h.  */
4755_ACEOF
4756cat confdefs.h >>conftest.$ac_ext
4757cat >>conftest.$ac_ext <<_ACEOF
4758/* end confdefs.h.  */
4759
4760
4761int
4762main ()
4763{
4764return main ();
4765  ;
4766  return 0;
4767}
4768_ACEOF
4769rm -f conftest.$ac_objext conftest$ac_exeext
4770if { (ac_try="$ac_link"
4771case "(($ac_try" in
4772  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4773  *) ac_try_echo=$ac_try;;
4774esac
4775eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4776  (eval "$ac_link") 2>conftest.er1
4777  ac_status=$?
4778  grep -v '^ *+' conftest.er1 >conftest.err
4779  rm -f conftest.er1
4780  cat conftest.err >&5
4781  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4782  (exit $ac_status); } && {
4783	 test -z "$ac_c_werror_flag" ||
4784	 test ! -s conftest.err
4785       } && test -s conftest$ac_exeext &&
4786       $as_test_x conftest$ac_exeext; then
4787  ac_cv_lib_inet_main=yes
4788else
4789  echo "$as_me: failed program was:" >&5
4790sed 's/^/| /' conftest.$ac_ext >&5
4791
4792	ac_cv_lib_inet_main=no
4793fi
4794
4795rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4796      conftest$ac_exeext conftest.$ac_ext
4797LIBS=$ac_check_lib_save_LIBS
4798fi
4799{ echo "$as_me:$LINENO: result: $ac_cv_lib_inet_main" >&5
4800echo "${ECHO_T}$ac_cv_lib_inet_main" >&6; }
4801if test $ac_cv_lib_inet_main = yes; then
4802  LIBS="$LIBS -linet"
4803fi
4804
4805    if test "${ac_cv_header_net_errno_h+set}" = set; then
4806  { echo "$as_me:$LINENO: checking for net/errno.h" >&5
4807echo $ECHO_N "checking for net/errno.h... $ECHO_C" >&6; }
4808if test "${ac_cv_header_net_errno_h+set}" = set; then
4809  echo $ECHO_N "(cached) $ECHO_C" >&6
4810fi
4811{ echo "$as_me:$LINENO: result: $ac_cv_header_net_errno_h" >&5
4812echo "${ECHO_T}$ac_cv_header_net_errno_h" >&6; }
4813else
4814  # Is the header compilable?
4815{ echo "$as_me:$LINENO: checking net/errno.h usability" >&5
4816echo $ECHO_N "checking net/errno.h usability... $ECHO_C" >&6; }
4817cat >conftest.$ac_ext <<_ACEOF
4818/* confdefs.h.  */
4819_ACEOF
4820cat confdefs.h >>conftest.$ac_ext
4821cat >>conftest.$ac_ext <<_ACEOF
4822/* end confdefs.h.  */
4823$ac_includes_default
4824#include <net/errno.h>
4825_ACEOF
4826rm -f conftest.$ac_objext
4827if { (ac_try="$ac_compile"
4828case "(($ac_try" in
4829  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4830  *) ac_try_echo=$ac_try;;
4831esac
4832eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4833  (eval "$ac_compile") 2>conftest.er1
4834  ac_status=$?
4835  grep -v '^ *+' conftest.er1 >conftest.err
4836  rm -f conftest.er1
4837  cat conftest.err >&5
4838  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4839  (exit $ac_status); } && {
4840	 test -z "$ac_c_werror_flag" ||
4841	 test ! -s conftest.err
4842       } && test -s conftest.$ac_objext; then
4843  ac_header_compiler=yes
4844else
4845  echo "$as_me: failed program was:" >&5
4846sed 's/^/| /' conftest.$ac_ext >&5
4847
4848	ac_header_compiler=no
4849fi
4850
4851rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4852{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4853echo "${ECHO_T}$ac_header_compiler" >&6; }
4854
4855# Is the header present?
4856{ echo "$as_me:$LINENO: checking net/errno.h presence" >&5
4857echo $ECHO_N "checking net/errno.h presence... $ECHO_C" >&6; }
4858cat >conftest.$ac_ext <<_ACEOF
4859/* confdefs.h.  */
4860_ACEOF
4861cat confdefs.h >>conftest.$ac_ext
4862cat >>conftest.$ac_ext <<_ACEOF
4863/* end confdefs.h.  */
4864#include <net/errno.h>
4865_ACEOF
4866if { (ac_try="$ac_cpp conftest.$ac_ext"
4867case "(($ac_try" in
4868  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4869  *) ac_try_echo=$ac_try;;
4870esac
4871eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4872  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4873  ac_status=$?
4874  grep -v '^ *+' conftest.er1 >conftest.err
4875  rm -f conftest.er1
4876  cat conftest.err >&5
4877  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4878  (exit $ac_status); } >/dev/null && {
4879	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4880	 test ! -s conftest.err
4881       }; then
4882  ac_header_preproc=yes
4883else
4884  echo "$as_me: failed program was:" >&5
4885sed 's/^/| /' conftest.$ac_ext >&5
4886
4887  ac_header_preproc=no
4888fi
4889
4890rm -f conftest.err conftest.$ac_ext
4891{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4892echo "${ECHO_T}$ac_header_preproc" >&6; }
4893
4894# So?  What about this header?
4895case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4896  yes:no: )
4897    { echo "$as_me:$LINENO: WARNING: net/errno.h: accepted by the compiler, rejected by the preprocessor!" >&5
4898echo "$as_me: WARNING: net/errno.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4899    { echo "$as_me:$LINENO: WARNING: net/errno.h: proceeding with the compiler's result" >&5
4900echo "$as_me: WARNING: net/errno.h: proceeding with the compiler's result" >&2;}
4901    ac_header_preproc=yes
4902    ;;
4903  no:yes:* )
4904    { echo "$as_me:$LINENO: WARNING: net/errno.h: present but cannot be compiled" >&5
4905echo "$as_me: WARNING: net/errno.h: present but cannot be compiled" >&2;}
4906    { echo "$as_me:$LINENO: WARNING: net/errno.h:     check for missing prerequisite headers?" >&5
4907echo "$as_me: WARNING: net/errno.h:     check for missing prerequisite headers?" >&2;}
4908    { echo "$as_me:$LINENO: WARNING: net/errno.h: see the Autoconf documentation" >&5
4909echo "$as_me: WARNING: net/errno.h: see the Autoconf documentation" >&2;}
4910    { echo "$as_me:$LINENO: WARNING: net/errno.h:     section \"Present But Cannot Be Compiled\"" >&5
4911echo "$as_me: WARNING: net/errno.h:     section \"Present But Cannot Be Compiled\"" >&2;}
4912    { echo "$as_me:$LINENO: WARNING: net/errno.h: proceeding with the preprocessor's result" >&5
4913echo "$as_me: WARNING: net/errno.h: proceeding with the preprocessor's result" >&2;}
4914    { echo "$as_me:$LINENO: WARNING: net/errno.h: in the future, the compiler will take precedence" >&5
4915echo "$as_me: WARNING: net/errno.h: in the future, the compiler will take precedence" >&2;}
4916
4917    ;;
4918esac
4919{ echo "$as_me:$LINENO: checking for net/errno.h" >&5
4920echo $ECHO_N "checking for net/errno.h... $ECHO_C" >&6; }
4921if test "${ac_cv_header_net_errno_h+set}" = set; then
4922  echo $ECHO_N "(cached) $ECHO_C" >&6
4923else
4924  ac_cv_header_net_errno_h=$ac_header_preproc
4925fi
4926{ echo "$as_me:$LINENO: result: $ac_cv_header_net_errno_h" >&5
4927echo "${ECHO_T}$ac_cv_header_net_errno_h" >&6; }
4928
4929fi
4930if test $ac_cv_header_net_errno_h = yes; then
4931
4932
4933cat >>confdefs.h <<\_ACEOF
4934#define HAVE_NET_ERRNO_H 1
4935_ACEOF
4936
4937fi
4938
4939
4940
4941    #--------------------------------------------------------------------
4942    #	Check for the existence of the -lsocket and -lnsl libraries.
4943    #	The order here is important, so that they end up in the right
4944    #	order in the command line generated by make.  Here are some
4945    #	special considerations:
4946    #	1. Use "connect" and "accept" to check for -lsocket, and
4947    #	   "gethostbyname" to check for -lnsl.
4948    #	2. Use each function name only once:  can't redo a check because
4949    #	   autoconf caches the results of the last check and won't redo it.
4950    #	3. Use -lnsl and -lsocket only if they supply procedures that
4951    #	   aren't already present in the normal libraries.  This is because
4952    #	   IRIX 5.2 has libraries, but they aren't needed and they're
4953    #	   bogus:  they goof up name resolution if used.
4954    #	4. On some SVR4 systems, can't use -lsocket without -lnsl too.
4955    #	   To get around this problem, check for both libraries together
4956    #	   if -lsocket doesn't work by itself.
4957    #--------------------------------------------------------------------
4958
4959    tcl_checkBoth=0
4960    { echo "$as_me:$LINENO: checking for connect" >&5
4961echo $ECHO_N "checking for connect... $ECHO_C" >&6; }
4962if test "${ac_cv_func_connect+set}" = set; then
4963  echo $ECHO_N "(cached) $ECHO_C" >&6
4964else
4965  cat >conftest.$ac_ext <<_ACEOF
4966/* confdefs.h.  */
4967_ACEOF
4968cat confdefs.h >>conftest.$ac_ext
4969cat >>conftest.$ac_ext <<_ACEOF
4970/* end confdefs.h.  */
4971/* Define connect to an innocuous variant, in case <limits.h> declares connect.
4972   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
4973#define connect innocuous_connect
4974
4975/* System header to define __stub macros and hopefully few prototypes,
4976    which can conflict with char connect (); below.
4977    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4978    <limits.h> exists even on freestanding compilers.  */
4979
4980#ifdef __STDC__
4981# include <limits.h>
4982#else
4983# include <assert.h>
4984#endif
4985
4986#undef connect
4987
4988/* Override any GCC internal prototype to avoid an error.
4989   Use char because int might match the return type of a GCC
4990   builtin and then its argument prototype would still apply.  */
4991#ifdef __cplusplus
4992extern "C"
4993#endif
4994char connect ();
4995/* The GNU C library defines this for functions which it implements
4996    to always fail with ENOSYS.  Some functions are actually named
4997    something starting with __ and the normal name is an alias.  */
4998#if defined __stub_connect || defined __stub___connect
4999choke me
5000#endif
5001
5002int
5003main ()
5004{
5005return connect ();
5006  ;
5007  return 0;
5008}
5009_ACEOF
5010rm -f conftest.$ac_objext conftest$ac_exeext
5011if { (ac_try="$ac_link"
5012case "(($ac_try" in
5013  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5014  *) ac_try_echo=$ac_try;;
5015esac
5016eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5017  (eval "$ac_link") 2>conftest.er1
5018  ac_status=$?
5019  grep -v '^ *+' conftest.er1 >conftest.err
5020  rm -f conftest.er1
5021  cat conftest.err >&5
5022  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5023  (exit $ac_status); } && {
5024	 test -z "$ac_c_werror_flag" ||
5025	 test ! -s conftest.err
5026       } && test -s conftest$ac_exeext &&
5027       $as_test_x conftest$ac_exeext; then
5028  ac_cv_func_connect=yes
5029else
5030  echo "$as_me: failed program was:" >&5
5031sed 's/^/| /' conftest.$ac_ext >&5
5032
5033	ac_cv_func_connect=no
5034fi
5035
5036rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5037      conftest$ac_exeext conftest.$ac_ext
5038fi
5039{ echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
5040echo "${ECHO_T}$ac_cv_func_connect" >&6; }
5041if test $ac_cv_func_connect = yes; then
5042  tcl_checkSocket=0
5043else
5044  tcl_checkSocket=1
5045fi
5046
5047    if test "$tcl_checkSocket" = 1; then
5048	{ echo "$as_me:$LINENO: checking for setsockopt" >&5
5049echo $ECHO_N "checking for setsockopt... $ECHO_C" >&6; }
5050if test "${ac_cv_func_setsockopt+set}" = set; then
5051  echo $ECHO_N "(cached) $ECHO_C" >&6
5052else
5053  cat >conftest.$ac_ext <<_ACEOF
5054/* confdefs.h.  */
5055_ACEOF
5056cat confdefs.h >>conftest.$ac_ext
5057cat >>conftest.$ac_ext <<_ACEOF
5058/* end confdefs.h.  */
5059/* Define setsockopt to an innocuous variant, in case <limits.h> declares setsockopt.
5060   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
5061#define setsockopt innocuous_setsockopt
5062
5063/* System header to define __stub macros and hopefully few prototypes,
5064    which can conflict with char setsockopt (); below.
5065    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5066    <limits.h> exists even on freestanding compilers.  */
5067
5068#ifdef __STDC__
5069# include <limits.h>
5070#else
5071# include <assert.h>
5072#endif
5073
5074#undef setsockopt
5075
5076/* Override any GCC internal prototype to avoid an error.
5077   Use char because int might match the return type of a GCC
5078   builtin and then its argument prototype would still apply.  */
5079#ifdef __cplusplus
5080extern "C"
5081#endif
5082char setsockopt ();
5083/* The GNU C library defines this for functions which it implements
5084    to always fail with ENOSYS.  Some functions are actually named
5085    something starting with __ and the normal name is an alias.  */
5086#if defined __stub_setsockopt || defined __stub___setsockopt
5087choke me
5088#endif
5089
5090int
5091main ()
5092{
5093return setsockopt ();
5094  ;
5095  return 0;
5096}
5097_ACEOF
5098rm -f conftest.$ac_objext conftest$ac_exeext
5099if { (ac_try="$ac_link"
5100case "(($ac_try" in
5101  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5102  *) ac_try_echo=$ac_try;;
5103esac
5104eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5105  (eval "$ac_link") 2>conftest.er1
5106  ac_status=$?
5107  grep -v '^ *+' conftest.er1 >conftest.err
5108  rm -f conftest.er1
5109  cat conftest.err >&5
5110  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5111  (exit $ac_status); } && {
5112	 test -z "$ac_c_werror_flag" ||
5113	 test ! -s conftest.err
5114       } && test -s conftest$ac_exeext &&
5115       $as_test_x conftest$ac_exeext; then
5116  ac_cv_func_setsockopt=yes
5117else
5118  echo "$as_me: failed program was:" >&5
5119sed 's/^/| /' conftest.$ac_ext >&5
5120
5121	ac_cv_func_setsockopt=no
5122fi
5123
5124rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5125      conftest$ac_exeext conftest.$ac_ext
5126fi
5127{ echo "$as_me:$LINENO: result: $ac_cv_func_setsockopt" >&5
5128echo "${ECHO_T}$ac_cv_func_setsockopt" >&6; }
5129if test $ac_cv_func_setsockopt = yes; then
5130  :
5131else
5132  { echo "$as_me:$LINENO: checking for setsockopt in -lsocket" >&5
5133echo $ECHO_N "checking for setsockopt in -lsocket... $ECHO_C" >&6; }
5134if test "${ac_cv_lib_socket_setsockopt+set}" = set; then
5135  echo $ECHO_N "(cached) $ECHO_C" >&6
5136else
5137  ac_check_lib_save_LIBS=$LIBS
5138LIBS="-lsocket  $LIBS"
5139cat >conftest.$ac_ext <<_ACEOF
5140/* confdefs.h.  */
5141_ACEOF
5142cat confdefs.h >>conftest.$ac_ext
5143cat >>conftest.$ac_ext <<_ACEOF
5144/* end confdefs.h.  */
5145
5146/* Override any GCC internal prototype to avoid an error.
5147   Use char because int might match the return type of a GCC
5148   builtin and then its argument prototype would still apply.  */
5149#ifdef __cplusplus
5150extern "C"
5151#endif
5152char setsockopt ();
5153int
5154main ()
5155{
5156return setsockopt ();
5157  ;
5158  return 0;
5159}
5160_ACEOF
5161rm -f conftest.$ac_objext conftest$ac_exeext
5162if { (ac_try="$ac_link"
5163case "(($ac_try" in
5164  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5165  *) ac_try_echo=$ac_try;;
5166esac
5167eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5168  (eval "$ac_link") 2>conftest.er1
5169  ac_status=$?
5170  grep -v '^ *+' conftest.er1 >conftest.err
5171  rm -f conftest.er1
5172  cat conftest.err >&5
5173  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5174  (exit $ac_status); } && {
5175	 test -z "$ac_c_werror_flag" ||
5176	 test ! -s conftest.err
5177       } && test -s conftest$ac_exeext &&
5178       $as_test_x conftest$ac_exeext; then
5179  ac_cv_lib_socket_setsockopt=yes
5180else
5181  echo "$as_me: failed program was:" >&5
5182sed 's/^/| /' conftest.$ac_ext >&5
5183
5184	ac_cv_lib_socket_setsockopt=no
5185fi
5186
5187rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5188      conftest$ac_exeext conftest.$ac_ext
5189LIBS=$ac_check_lib_save_LIBS
5190fi
5191{ echo "$as_me:$LINENO: result: $ac_cv_lib_socket_setsockopt" >&5
5192echo "${ECHO_T}$ac_cv_lib_socket_setsockopt" >&6; }
5193if test $ac_cv_lib_socket_setsockopt = yes; then
5194  LIBS="$LIBS -lsocket"
5195else
5196  tcl_checkBoth=1
5197fi
5198
5199fi
5200
5201    fi
5202    if test "$tcl_checkBoth" = 1; then
5203	tk_oldLibs=$LIBS
5204	LIBS="$LIBS -lsocket -lnsl"
5205	{ echo "$as_me:$LINENO: checking for accept" >&5
5206echo $ECHO_N "checking for accept... $ECHO_C" >&6; }
5207if test "${ac_cv_func_accept+set}" = set; then
5208  echo $ECHO_N "(cached) $ECHO_C" >&6
5209else
5210  cat >conftest.$ac_ext <<_ACEOF
5211/* confdefs.h.  */
5212_ACEOF
5213cat confdefs.h >>conftest.$ac_ext
5214cat >>conftest.$ac_ext <<_ACEOF
5215/* end confdefs.h.  */
5216/* Define accept to an innocuous variant, in case <limits.h> declares accept.
5217   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
5218#define accept innocuous_accept
5219
5220/* System header to define __stub macros and hopefully few prototypes,
5221    which can conflict with char accept (); below.
5222    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5223    <limits.h> exists even on freestanding compilers.  */
5224
5225#ifdef __STDC__
5226# include <limits.h>
5227#else
5228# include <assert.h>
5229#endif
5230
5231#undef accept
5232
5233/* Override any GCC internal prototype to avoid an error.
5234   Use char because int might match the return type of a GCC
5235   builtin and then its argument prototype would still apply.  */
5236#ifdef __cplusplus
5237extern "C"
5238#endif
5239char accept ();
5240/* The GNU C library defines this for functions which it implements
5241    to always fail with ENOSYS.  Some functions are actually named
5242    something starting with __ and the normal name is an alias.  */
5243#if defined __stub_accept || defined __stub___accept
5244choke me
5245#endif
5246
5247int
5248main ()
5249{
5250return accept ();
5251  ;
5252  return 0;
5253}
5254_ACEOF
5255rm -f conftest.$ac_objext conftest$ac_exeext
5256if { (ac_try="$ac_link"
5257case "(($ac_try" in
5258  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5259  *) ac_try_echo=$ac_try;;
5260esac
5261eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5262  (eval "$ac_link") 2>conftest.er1
5263  ac_status=$?
5264  grep -v '^ *+' conftest.er1 >conftest.err
5265  rm -f conftest.er1
5266  cat conftest.err >&5
5267  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5268  (exit $ac_status); } && {
5269	 test -z "$ac_c_werror_flag" ||
5270	 test ! -s conftest.err
5271       } && test -s conftest$ac_exeext &&
5272       $as_test_x conftest$ac_exeext; then
5273  ac_cv_func_accept=yes
5274else
5275  echo "$as_me: failed program was:" >&5
5276sed 's/^/| /' conftest.$ac_ext >&5
5277
5278	ac_cv_func_accept=no
5279fi
5280
5281rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5282      conftest$ac_exeext conftest.$ac_ext
5283fi
5284{ echo "$as_me:$LINENO: result: $ac_cv_func_accept" >&5
5285echo "${ECHO_T}$ac_cv_func_accept" >&6; }
5286if test $ac_cv_func_accept = yes; then
5287  tcl_checkNsl=0
5288else
5289  LIBS=$tk_oldLibs
5290fi
5291
5292    fi
5293    { echo "$as_me:$LINENO: checking for gethostbyname" >&5
5294echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; }
5295if test "${ac_cv_func_gethostbyname+set}" = set; then
5296  echo $ECHO_N "(cached) $ECHO_C" >&6
5297else
5298  cat >conftest.$ac_ext <<_ACEOF
5299/* confdefs.h.  */
5300_ACEOF
5301cat confdefs.h >>conftest.$ac_ext
5302cat >>conftest.$ac_ext <<_ACEOF
5303/* end confdefs.h.  */
5304/* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
5305   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
5306#define gethostbyname innocuous_gethostbyname
5307
5308/* System header to define __stub macros and hopefully few prototypes,
5309    which can conflict with char gethostbyname (); below.
5310    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5311    <limits.h> exists even on freestanding compilers.  */
5312
5313#ifdef __STDC__
5314# include <limits.h>
5315#else
5316# include <assert.h>
5317#endif
5318
5319#undef gethostbyname
5320
5321/* Override any GCC internal prototype to avoid an error.
5322   Use char because int might match the return type of a GCC
5323   builtin and then its argument prototype would still apply.  */
5324#ifdef __cplusplus
5325extern "C"
5326#endif
5327char gethostbyname ();
5328/* The GNU C library defines this for functions which it implements
5329    to always fail with ENOSYS.  Some functions are actually named
5330    something starting with __ and the normal name is an alias.  */
5331#if defined __stub_gethostbyname || defined __stub___gethostbyname
5332choke me
5333#endif
5334
5335int
5336main ()
5337{
5338return gethostbyname ();
5339  ;
5340  return 0;
5341}
5342_ACEOF
5343rm -f conftest.$ac_objext conftest$ac_exeext
5344if { (ac_try="$ac_link"
5345case "(($ac_try" in
5346  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5347  *) ac_try_echo=$ac_try;;
5348esac
5349eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5350  (eval "$ac_link") 2>conftest.er1
5351  ac_status=$?
5352  grep -v '^ *+' conftest.er1 >conftest.err
5353  rm -f conftest.er1
5354  cat conftest.err >&5
5355  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5356  (exit $ac_status); } && {
5357	 test -z "$ac_c_werror_flag" ||
5358	 test ! -s conftest.err
5359       } && test -s conftest$ac_exeext &&
5360       $as_test_x conftest$ac_exeext; then
5361  ac_cv_func_gethostbyname=yes
5362else
5363  echo "$as_me: failed program was:" >&5
5364sed 's/^/| /' conftest.$ac_ext >&5
5365
5366	ac_cv_func_gethostbyname=no
5367fi
5368
5369rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5370      conftest$ac_exeext conftest.$ac_ext
5371fi
5372{ echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
5373echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; }
5374if test $ac_cv_func_gethostbyname = yes; then
5375  :
5376else
5377  { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
5378echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
5379if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
5380  echo $ECHO_N "(cached) $ECHO_C" >&6
5381else
5382  ac_check_lib_save_LIBS=$LIBS
5383LIBS="-lnsl  $LIBS"
5384cat >conftest.$ac_ext <<_ACEOF
5385/* confdefs.h.  */
5386_ACEOF
5387cat confdefs.h >>conftest.$ac_ext
5388cat >>conftest.$ac_ext <<_ACEOF
5389/* end confdefs.h.  */
5390
5391/* Override any GCC internal prototype to avoid an error.
5392   Use char because int might match the return type of a GCC
5393   builtin and then its argument prototype would still apply.  */
5394#ifdef __cplusplus
5395extern "C"
5396#endif
5397char gethostbyname ();
5398int
5399main ()
5400{
5401return gethostbyname ();
5402  ;
5403  return 0;
5404}
5405_ACEOF
5406rm -f conftest.$ac_objext conftest$ac_exeext
5407if { (ac_try="$ac_link"
5408case "(($ac_try" in
5409  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5410  *) ac_try_echo=$ac_try;;
5411esac
5412eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5413  (eval "$ac_link") 2>conftest.er1
5414  ac_status=$?
5415  grep -v '^ *+' conftest.er1 >conftest.err
5416  rm -f conftest.er1
5417  cat conftest.err >&5
5418  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5419  (exit $ac_status); } && {
5420	 test -z "$ac_c_werror_flag" ||
5421	 test ! -s conftest.err
5422       } && test -s conftest$ac_exeext &&
5423       $as_test_x conftest$ac_exeext; then
5424  ac_cv_lib_nsl_gethostbyname=yes
5425else
5426  echo "$as_me: failed program was:" >&5
5427sed 's/^/| /' conftest.$ac_ext >&5
5428
5429	ac_cv_lib_nsl_gethostbyname=no
5430fi
5431
5432rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5433      conftest$ac_exeext conftest.$ac_ext
5434LIBS=$ac_check_lib_save_LIBS
5435fi
5436{ echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
5437echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
5438if test $ac_cv_lib_nsl_gethostbyname = yes; then
5439  LIBS="$LIBS -lnsl"
5440fi
5441
5442fi
5443
5444
5445    # TEA specific: Don't perform the eval of the libraries here because
5446    # DL_LIBS won't be set until we call TEA_CONFIG_CFLAGS
5447
5448    TCL_LIBS='${DL_LIBS} ${LIBS} ${MATH_LIBS}'
5449
5450
5451
5452
5453    { echo "$as_me:$LINENO: checking dirent.h" >&5
5454echo $ECHO_N "checking dirent.h... $ECHO_C" >&6; }
5455if test "${tcl_cv_dirent_h+set}" = set; then
5456  echo $ECHO_N "(cached) $ECHO_C" >&6
5457else
5458
5459    cat >conftest.$ac_ext <<_ACEOF
5460/* confdefs.h.  */
5461_ACEOF
5462cat confdefs.h >>conftest.$ac_ext
5463cat >>conftest.$ac_ext <<_ACEOF
5464/* end confdefs.h.  */
5465#include <sys/types.h>
5466#include <dirent.h>
5467int
5468main ()
5469{
5470
5471#ifndef _POSIX_SOURCE
5472#   ifdef __Lynx__
5473	/*
5474	 * Generate compilation error to make the test fail:  Lynx headers
5475	 * are only valid if really in the POSIX environment.
5476	 */
5477
5478	missing_procedure();
5479#   endif
5480#endif
5481DIR *d;
5482struct dirent *entryPtr;
5483char *p;
5484d = opendir("foobar");
5485entryPtr = readdir(d);
5486p = entryPtr->d_name;
5487closedir(d);
5488
5489  ;
5490  return 0;
5491}
5492_ACEOF
5493rm -f conftest.$ac_objext conftest$ac_exeext
5494if { (ac_try="$ac_link"
5495case "(($ac_try" in
5496  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5497  *) ac_try_echo=$ac_try;;
5498esac
5499eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5500  (eval "$ac_link") 2>conftest.er1
5501  ac_status=$?
5502  grep -v '^ *+' conftest.er1 >conftest.err
5503  rm -f conftest.er1
5504  cat conftest.err >&5
5505  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5506  (exit $ac_status); } && {
5507	 test -z "$ac_c_werror_flag" ||
5508	 test ! -s conftest.err
5509       } && test -s conftest$ac_exeext &&
5510       $as_test_x conftest$ac_exeext; then
5511  tcl_cv_dirent_h=yes
5512else
5513  echo "$as_me: failed program was:" >&5
5514sed 's/^/| /' conftest.$ac_ext >&5
5515
5516	tcl_cv_dirent_h=no
5517fi
5518
5519rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5520      conftest$ac_exeext conftest.$ac_ext
5521fi
5522{ echo "$as_me:$LINENO: result: $tcl_cv_dirent_h" >&5
5523echo "${ECHO_T}$tcl_cv_dirent_h" >&6; }
5524
5525    if test $tcl_cv_dirent_h = no; then
5526
5527cat >>confdefs.h <<\_ACEOF
5528#define NO_DIRENT_H 1
5529_ACEOF
5530
5531    fi
5532
5533    # TEA specific:
5534    if test "${ac_cv_header_errno_h+set}" = set; then
5535  { echo "$as_me:$LINENO: checking for errno.h" >&5
5536echo $ECHO_N "checking for errno.h... $ECHO_C" >&6; }
5537if test "${ac_cv_header_errno_h+set}" = set; then
5538  echo $ECHO_N "(cached) $ECHO_C" >&6
5539fi
5540{ echo "$as_me:$LINENO: result: $ac_cv_header_errno_h" >&5
5541echo "${ECHO_T}$ac_cv_header_errno_h" >&6; }
5542else
5543  # Is the header compilable?
5544{ echo "$as_me:$LINENO: checking errno.h usability" >&5
5545echo $ECHO_N "checking errno.h usability... $ECHO_C" >&6; }
5546cat >conftest.$ac_ext <<_ACEOF
5547/* confdefs.h.  */
5548_ACEOF
5549cat confdefs.h >>conftest.$ac_ext
5550cat >>conftest.$ac_ext <<_ACEOF
5551/* end confdefs.h.  */
5552$ac_includes_default
5553#include <errno.h>
5554_ACEOF
5555rm -f conftest.$ac_objext
5556if { (ac_try="$ac_compile"
5557case "(($ac_try" in
5558  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5559  *) ac_try_echo=$ac_try;;
5560esac
5561eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5562  (eval "$ac_compile") 2>conftest.er1
5563  ac_status=$?
5564  grep -v '^ *+' conftest.er1 >conftest.err
5565  rm -f conftest.er1
5566  cat conftest.err >&5
5567  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5568  (exit $ac_status); } && {
5569	 test -z "$ac_c_werror_flag" ||
5570	 test ! -s conftest.err
5571       } && test -s conftest.$ac_objext; then
5572  ac_header_compiler=yes
5573else
5574  echo "$as_me: failed program was:" >&5
5575sed 's/^/| /' conftest.$ac_ext >&5
5576
5577	ac_header_compiler=no
5578fi
5579
5580rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5581{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5582echo "${ECHO_T}$ac_header_compiler" >&6; }
5583
5584# Is the header present?
5585{ echo "$as_me:$LINENO: checking errno.h presence" >&5
5586echo $ECHO_N "checking errno.h presence... $ECHO_C" >&6; }
5587cat >conftest.$ac_ext <<_ACEOF
5588/* confdefs.h.  */
5589_ACEOF
5590cat confdefs.h >>conftest.$ac_ext
5591cat >>conftest.$ac_ext <<_ACEOF
5592/* end confdefs.h.  */
5593#include <errno.h>
5594_ACEOF
5595if { (ac_try="$ac_cpp conftest.$ac_ext"
5596case "(($ac_try" in
5597  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5598  *) ac_try_echo=$ac_try;;
5599esac
5600eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5601  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5602  ac_status=$?
5603  grep -v '^ *+' conftest.er1 >conftest.err
5604  rm -f conftest.er1
5605  cat conftest.err >&5
5606  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5607  (exit $ac_status); } >/dev/null && {
5608	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5609	 test ! -s conftest.err
5610       }; then
5611  ac_header_preproc=yes
5612else
5613  echo "$as_me: failed program was:" >&5
5614sed 's/^/| /' conftest.$ac_ext >&5
5615
5616  ac_header_preproc=no
5617fi
5618
5619rm -f conftest.err conftest.$ac_ext
5620{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5621echo "${ECHO_T}$ac_header_preproc" >&6; }
5622
5623# So?  What about this header?
5624case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5625  yes:no: )
5626    { echo "$as_me:$LINENO: WARNING: errno.h: accepted by the compiler, rejected by the preprocessor!" >&5
5627echo "$as_me: WARNING: errno.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5628    { echo "$as_me:$LINENO: WARNING: errno.h: proceeding with the compiler's result" >&5
5629echo "$as_me: WARNING: errno.h: proceeding with the compiler's result" >&2;}
5630    ac_header_preproc=yes
5631    ;;
5632  no:yes:* )
5633    { echo "$as_me:$LINENO: WARNING: errno.h: present but cannot be compiled" >&5
5634echo "$as_me: WARNING: errno.h: present but cannot be compiled" >&2;}
5635    { echo "$as_me:$LINENO: WARNING: errno.h:     check for missing prerequisite headers?" >&5
5636echo "$as_me: WARNING: errno.h:     check for missing prerequisite headers?" >&2;}
5637    { echo "$as_me:$LINENO: WARNING: errno.h: see the Autoconf documentation" >&5
5638echo "$as_me: WARNING: errno.h: see the Autoconf documentation" >&2;}
5639    { echo "$as_me:$LINENO: WARNING: errno.h:     section \"Present But Cannot Be Compiled\"" >&5
5640echo "$as_me: WARNING: errno.h:     section \"Present But Cannot Be Compiled\"" >&2;}
5641    { echo "$as_me:$LINENO: WARNING: errno.h: proceeding with the preprocessor's result" >&5
5642echo "$as_me: WARNING: errno.h: proceeding with the preprocessor's result" >&2;}
5643    { echo "$as_me:$LINENO: WARNING: errno.h: in the future, the compiler will take precedence" >&5
5644echo "$as_me: WARNING: errno.h: in the future, the compiler will take precedence" >&2;}
5645
5646    ;;
5647esac
5648{ echo "$as_me:$LINENO: checking for errno.h" >&5
5649echo $ECHO_N "checking for errno.h... $ECHO_C" >&6; }
5650if test "${ac_cv_header_errno_h+set}" = set; then
5651  echo $ECHO_N "(cached) $ECHO_C" >&6
5652else
5653  ac_cv_header_errno_h=$ac_header_preproc
5654fi
5655{ echo "$as_me:$LINENO: result: $ac_cv_header_errno_h" >&5
5656echo "${ECHO_T}$ac_cv_header_errno_h" >&6; }
5657
5658fi
5659if test $ac_cv_header_errno_h = yes; then
5660  :
5661else
5662
5663cat >>confdefs.h <<\_ACEOF
5664#define NO_ERRNO_H 1
5665_ACEOF
5666
5667fi
5668
5669
5670    if test "${ac_cv_header_float_h+set}" = set; then
5671  { echo "$as_me:$LINENO: checking for float.h" >&5
5672echo $ECHO_N "checking for float.h... $ECHO_C" >&6; }
5673if test "${ac_cv_header_float_h+set}" = set; then
5674  echo $ECHO_N "(cached) $ECHO_C" >&6
5675fi
5676{ echo "$as_me:$LINENO: result: $ac_cv_header_float_h" >&5
5677echo "${ECHO_T}$ac_cv_header_float_h" >&6; }
5678else
5679  # Is the header compilable?
5680{ echo "$as_me:$LINENO: checking float.h usability" >&5
5681echo $ECHO_N "checking float.h usability... $ECHO_C" >&6; }
5682cat >conftest.$ac_ext <<_ACEOF
5683/* confdefs.h.  */
5684_ACEOF
5685cat confdefs.h >>conftest.$ac_ext
5686cat >>conftest.$ac_ext <<_ACEOF
5687/* end confdefs.h.  */
5688$ac_includes_default
5689#include <float.h>
5690_ACEOF
5691rm -f conftest.$ac_objext
5692if { (ac_try="$ac_compile"
5693case "(($ac_try" in
5694  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5695  *) ac_try_echo=$ac_try;;
5696esac
5697eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5698  (eval "$ac_compile") 2>conftest.er1
5699  ac_status=$?
5700  grep -v '^ *+' conftest.er1 >conftest.err
5701  rm -f conftest.er1
5702  cat conftest.err >&5
5703  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5704  (exit $ac_status); } && {
5705	 test -z "$ac_c_werror_flag" ||
5706	 test ! -s conftest.err
5707       } && test -s conftest.$ac_objext; then
5708  ac_header_compiler=yes
5709else
5710  echo "$as_me: failed program was:" >&5
5711sed 's/^/| /' conftest.$ac_ext >&5
5712
5713	ac_header_compiler=no
5714fi
5715
5716rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5717{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5718echo "${ECHO_T}$ac_header_compiler" >&6; }
5719
5720# Is the header present?
5721{ echo "$as_me:$LINENO: checking float.h presence" >&5
5722echo $ECHO_N "checking float.h presence... $ECHO_C" >&6; }
5723cat >conftest.$ac_ext <<_ACEOF
5724/* confdefs.h.  */
5725_ACEOF
5726cat confdefs.h >>conftest.$ac_ext
5727cat >>conftest.$ac_ext <<_ACEOF
5728/* end confdefs.h.  */
5729#include <float.h>
5730_ACEOF
5731if { (ac_try="$ac_cpp conftest.$ac_ext"
5732case "(($ac_try" in
5733  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5734  *) ac_try_echo=$ac_try;;
5735esac
5736eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5737  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5738  ac_status=$?
5739  grep -v '^ *+' conftest.er1 >conftest.err
5740  rm -f conftest.er1
5741  cat conftest.err >&5
5742  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5743  (exit $ac_status); } >/dev/null && {
5744	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5745	 test ! -s conftest.err
5746       }; then
5747  ac_header_preproc=yes
5748else
5749  echo "$as_me: failed program was:" >&5
5750sed 's/^/| /' conftest.$ac_ext >&5
5751
5752  ac_header_preproc=no
5753fi
5754
5755rm -f conftest.err conftest.$ac_ext
5756{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5757echo "${ECHO_T}$ac_header_preproc" >&6; }
5758
5759# So?  What about this header?
5760case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5761  yes:no: )
5762    { echo "$as_me:$LINENO: WARNING: float.h: accepted by the compiler, rejected by the preprocessor!" >&5
5763echo "$as_me: WARNING: float.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5764    { echo "$as_me:$LINENO: WARNING: float.h: proceeding with the compiler's result" >&5
5765echo "$as_me: WARNING: float.h: proceeding with the compiler's result" >&2;}
5766    ac_header_preproc=yes
5767    ;;
5768  no:yes:* )
5769    { echo "$as_me:$LINENO: WARNING: float.h: present but cannot be compiled" >&5
5770echo "$as_me: WARNING: float.h: present but cannot be compiled" >&2;}
5771    { echo "$as_me:$LINENO: WARNING: float.h:     check for missing prerequisite headers?" >&5
5772echo "$as_me: WARNING: float.h:     check for missing prerequisite headers?" >&2;}
5773    { echo "$as_me:$LINENO: WARNING: float.h: see the Autoconf documentation" >&5
5774echo "$as_me: WARNING: float.h: see the Autoconf documentation" >&2;}
5775    { echo "$as_me:$LINENO: WARNING: float.h:     section \"Present But Cannot Be Compiled\"" >&5
5776echo "$as_me: WARNING: float.h:     section \"Present But Cannot Be Compiled\"" >&2;}
5777    { echo "$as_me:$LINENO: WARNING: float.h: proceeding with the preprocessor's result" >&5
5778echo "$as_me: WARNING: float.h: proceeding with the preprocessor's result" >&2;}
5779    { echo "$as_me:$LINENO: WARNING: float.h: in the future, the compiler will take precedence" >&5
5780echo "$as_me: WARNING: float.h: in the future, the compiler will take precedence" >&2;}
5781
5782    ;;
5783esac
5784{ echo "$as_me:$LINENO: checking for float.h" >&5
5785echo $ECHO_N "checking for float.h... $ECHO_C" >&6; }
5786if test "${ac_cv_header_float_h+set}" = set; then
5787  echo $ECHO_N "(cached) $ECHO_C" >&6
5788else
5789  ac_cv_header_float_h=$ac_header_preproc
5790fi
5791{ echo "$as_me:$LINENO: result: $ac_cv_header_float_h" >&5
5792echo "${ECHO_T}$ac_cv_header_float_h" >&6; }
5793
5794fi
5795if test $ac_cv_header_float_h = yes; then
5796  :
5797else
5798
5799cat >>confdefs.h <<\_ACEOF
5800#define NO_FLOAT_H 1
5801_ACEOF
5802
5803fi
5804
5805
5806    if test "${ac_cv_header_values_h+set}" = set; then
5807  { echo "$as_me:$LINENO: checking for values.h" >&5
5808echo $ECHO_N "checking for values.h... $ECHO_C" >&6; }
5809if test "${ac_cv_header_values_h+set}" = set; then
5810  echo $ECHO_N "(cached) $ECHO_C" >&6
5811fi
5812{ echo "$as_me:$LINENO: result: $ac_cv_header_values_h" >&5
5813echo "${ECHO_T}$ac_cv_header_values_h" >&6; }
5814else
5815  # Is the header compilable?
5816{ echo "$as_me:$LINENO: checking values.h usability" >&5
5817echo $ECHO_N "checking values.h usability... $ECHO_C" >&6; }
5818cat >conftest.$ac_ext <<_ACEOF
5819/* confdefs.h.  */
5820_ACEOF
5821cat confdefs.h >>conftest.$ac_ext
5822cat >>conftest.$ac_ext <<_ACEOF
5823/* end confdefs.h.  */
5824$ac_includes_default
5825#include <values.h>
5826_ACEOF
5827rm -f conftest.$ac_objext
5828if { (ac_try="$ac_compile"
5829case "(($ac_try" in
5830  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5831  *) ac_try_echo=$ac_try;;
5832esac
5833eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5834  (eval "$ac_compile") 2>conftest.er1
5835  ac_status=$?
5836  grep -v '^ *+' conftest.er1 >conftest.err
5837  rm -f conftest.er1
5838  cat conftest.err >&5
5839  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5840  (exit $ac_status); } && {
5841	 test -z "$ac_c_werror_flag" ||
5842	 test ! -s conftest.err
5843       } && test -s conftest.$ac_objext; then
5844  ac_header_compiler=yes
5845else
5846  echo "$as_me: failed program was:" >&5
5847sed 's/^/| /' conftest.$ac_ext >&5
5848
5849	ac_header_compiler=no
5850fi
5851
5852rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5853{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5854echo "${ECHO_T}$ac_header_compiler" >&6; }
5855
5856# Is the header present?
5857{ echo "$as_me:$LINENO: checking values.h presence" >&5
5858echo $ECHO_N "checking values.h presence... $ECHO_C" >&6; }
5859cat >conftest.$ac_ext <<_ACEOF
5860/* confdefs.h.  */
5861_ACEOF
5862cat confdefs.h >>conftest.$ac_ext
5863cat >>conftest.$ac_ext <<_ACEOF
5864/* end confdefs.h.  */
5865#include <values.h>
5866_ACEOF
5867if { (ac_try="$ac_cpp conftest.$ac_ext"
5868case "(($ac_try" in
5869  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5870  *) ac_try_echo=$ac_try;;
5871esac
5872eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5873  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5874  ac_status=$?
5875  grep -v '^ *+' conftest.er1 >conftest.err
5876  rm -f conftest.er1
5877  cat conftest.err >&5
5878  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5879  (exit $ac_status); } >/dev/null && {
5880	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5881	 test ! -s conftest.err
5882       }; then
5883  ac_header_preproc=yes
5884else
5885  echo "$as_me: failed program was:" >&5
5886sed 's/^/| /' conftest.$ac_ext >&5
5887
5888  ac_header_preproc=no
5889fi
5890
5891rm -f conftest.err conftest.$ac_ext
5892{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5893echo "${ECHO_T}$ac_header_preproc" >&6; }
5894
5895# So?  What about this header?
5896case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5897  yes:no: )
5898    { echo "$as_me:$LINENO: WARNING: values.h: accepted by the compiler, rejected by the preprocessor!" >&5
5899echo "$as_me: WARNING: values.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5900    { echo "$as_me:$LINENO: WARNING: values.h: proceeding with the compiler's result" >&5
5901echo "$as_me: WARNING: values.h: proceeding with the compiler's result" >&2;}
5902    ac_header_preproc=yes
5903    ;;
5904  no:yes:* )
5905    { echo "$as_me:$LINENO: WARNING: values.h: present but cannot be compiled" >&5
5906echo "$as_me: WARNING: values.h: present but cannot be compiled" >&2;}
5907    { echo "$as_me:$LINENO: WARNING: values.h:     check for missing prerequisite headers?" >&5
5908echo "$as_me: WARNING: values.h:     check for missing prerequisite headers?" >&2;}
5909    { echo "$as_me:$LINENO: WARNING: values.h: see the Autoconf documentation" >&5
5910echo "$as_me: WARNING: values.h: see the Autoconf documentation" >&2;}
5911    { echo "$as_me:$LINENO: WARNING: values.h:     section \"Present But Cannot Be Compiled\"" >&5
5912echo "$as_me: WARNING: values.h:     section \"Present But Cannot Be Compiled\"" >&2;}
5913    { echo "$as_me:$LINENO: WARNING: values.h: proceeding with the preprocessor's result" >&5
5914echo "$as_me: WARNING: values.h: proceeding with the preprocessor's result" >&2;}
5915    { echo "$as_me:$LINENO: WARNING: values.h: in the future, the compiler will take precedence" >&5
5916echo "$as_me: WARNING: values.h: in the future, the compiler will take precedence" >&2;}
5917
5918    ;;
5919esac
5920{ echo "$as_me:$LINENO: checking for values.h" >&5
5921echo $ECHO_N "checking for values.h... $ECHO_C" >&6; }
5922if test "${ac_cv_header_values_h+set}" = set; then
5923  echo $ECHO_N "(cached) $ECHO_C" >&6
5924else
5925  ac_cv_header_values_h=$ac_header_preproc
5926fi
5927{ echo "$as_me:$LINENO: result: $ac_cv_header_values_h" >&5
5928echo "${ECHO_T}$ac_cv_header_values_h" >&6; }
5929
5930fi
5931if test $ac_cv_header_values_h = yes; then
5932  :
5933else
5934
5935cat >>confdefs.h <<\_ACEOF
5936#define NO_VALUES_H 1
5937_ACEOF
5938
5939fi
5940
5941
5942    if test "${ac_cv_header_limits_h+set}" = set; then
5943  { echo "$as_me:$LINENO: checking for limits.h" >&5
5944echo $ECHO_N "checking for limits.h... $ECHO_C" >&6; }
5945if test "${ac_cv_header_limits_h+set}" = set; then
5946  echo $ECHO_N "(cached) $ECHO_C" >&6
5947fi
5948{ echo "$as_me:$LINENO: result: $ac_cv_header_limits_h" >&5
5949echo "${ECHO_T}$ac_cv_header_limits_h" >&6; }
5950else
5951  # Is the header compilable?
5952{ echo "$as_me:$LINENO: checking limits.h usability" >&5
5953echo $ECHO_N "checking limits.h usability... $ECHO_C" >&6; }
5954cat >conftest.$ac_ext <<_ACEOF
5955/* confdefs.h.  */
5956_ACEOF
5957cat confdefs.h >>conftest.$ac_ext
5958cat >>conftest.$ac_ext <<_ACEOF
5959/* end confdefs.h.  */
5960$ac_includes_default
5961#include <limits.h>
5962_ACEOF
5963rm -f conftest.$ac_objext
5964if { (ac_try="$ac_compile"
5965case "(($ac_try" in
5966  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5967  *) ac_try_echo=$ac_try;;
5968esac
5969eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5970  (eval "$ac_compile") 2>conftest.er1
5971  ac_status=$?
5972  grep -v '^ *+' conftest.er1 >conftest.err
5973  rm -f conftest.er1
5974  cat conftest.err >&5
5975  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5976  (exit $ac_status); } && {
5977	 test -z "$ac_c_werror_flag" ||
5978	 test ! -s conftest.err
5979       } && test -s conftest.$ac_objext; then
5980  ac_header_compiler=yes
5981else
5982  echo "$as_me: failed program was:" >&5
5983sed 's/^/| /' conftest.$ac_ext >&5
5984
5985	ac_header_compiler=no
5986fi
5987
5988rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5989{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5990echo "${ECHO_T}$ac_header_compiler" >&6; }
5991
5992# Is the header present?
5993{ echo "$as_me:$LINENO: checking limits.h presence" >&5
5994echo $ECHO_N "checking limits.h presence... $ECHO_C" >&6; }
5995cat >conftest.$ac_ext <<_ACEOF
5996/* confdefs.h.  */
5997_ACEOF
5998cat confdefs.h >>conftest.$ac_ext
5999cat >>conftest.$ac_ext <<_ACEOF
6000/* end confdefs.h.  */
6001#include <limits.h>
6002_ACEOF
6003if { (ac_try="$ac_cpp conftest.$ac_ext"
6004case "(($ac_try" in
6005  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6006  *) ac_try_echo=$ac_try;;
6007esac
6008eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6009  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6010  ac_status=$?
6011  grep -v '^ *+' conftest.er1 >conftest.err
6012  rm -f conftest.er1
6013  cat conftest.err >&5
6014  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6015  (exit $ac_status); } >/dev/null && {
6016	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6017	 test ! -s conftest.err
6018       }; then
6019  ac_header_preproc=yes
6020else
6021  echo "$as_me: failed program was:" >&5
6022sed 's/^/| /' conftest.$ac_ext >&5
6023
6024  ac_header_preproc=no
6025fi
6026
6027rm -f conftest.err conftest.$ac_ext
6028{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6029echo "${ECHO_T}$ac_header_preproc" >&6; }
6030
6031# So?  What about this header?
6032case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6033  yes:no: )
6034    { echo "$as_me:$LINENO: WARNING: limits.h: accepted by the compiler, rejected by the preprocessor!" >&5
6035echo "$as_me: WARNING: limits.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6036    { echo "$as_me:$LINENO: WARNING: limits.h: proceeding with the compiler's result" >&5
6037echo "$as_me: WARNING: limits.h: proceeding with the compiler's result" >&2;}
6038    ac_header_preproc=yes
6039    ;;
6040  no:yes:* )
6041    { echo "$as_me:$LINENO: WARNING: limits.h: present but cannot be compiled" >&5
6042echo "$as_me: WARNING: limits.h: present but cannot be compiled" >&2;}
6043    { echo "$as_me:$LINENO: WARNING: limits.h:     check for missing prerequisite headers?" >&5
6044echo "$as_me: WARNING: limits.h:     check for missing prerequisite headers?" >&2;}
6045    { echo "$as_me:$LINENO: WARNING: limits.h: see the Autoconf documentation" >&5
6046echo "$as_me: WARNING: limits.h: see the Autoconf documentation" >&2;}
6047    { echo "$as_me:$LINENO: WARNING: limits.h:     section \"Present But Cannot Be Compiled\"" >&5
6048echo "$as_me: WARNING: limits.h:     section \"Present But Cannot Be Compiled\"" >&2;}
6049    { echo "$as_me:$LINENO: WARNING: limits.h: proceeding with the preprocessor's result" >&5
6050echo "$as_me: WARNING: limits.h: proceeding with the preprocessor's result" >&2;}
6051    { echo "$as_me:$LINENO: WARNING: limits.h: in the future, the compiler will take precedence" >&5
6052echo "$as_me: WARNING: limits.h: in the future, the compiler will take precedence" >&2;}
6053
6054    ;;
6055esac
6056{ echo "$as_me:$LINENO: checking for limits.h" >&5
6057echo $ECHO_N "checking for limits.h... $ECHO_C" >&6; }
6058if test "${ac_cv_header_limits_h+set}" = set; then
6059  echo $ECHO_N "(cached) $ECHO_C" >&6
6060else
6061  ac_cv_header_limits_h=$ac_header_preproc
6062fi
6063{ echo "$as_me:$LINENO: result: $ac_cv_header_limits_h" >&5
6064echo "${ECHO_T}$ac_cv_header_limits_h" >&6; }
6065
6066fi
6067if test $ac_cv_header_limits_h = yes; then
6068
6069cat >>confdefs.h <<\_ACEOF
6070#define HAVE_LIMITS_H 1
6071_ACEOF
6072
6073else
6074
6075cat >>confdefs.h <<\_ACEOF
6076#define NO_LIMITS_H 1
6077_ACEOF
6078
6079fi
6080
6081
6082    if test "${ac_cv_header_stdlib_h+set}" = set; then
6083  { echo "$as_me:$LINENO: checking for stdlib.h" >&5
6084echo $ECHO_N "checking for stdlib.h... $ECHO_C" >&6; }
6085if test "${ac_cv_header_stdlib_h+set}" = set; then
6086  echo $ECHO_N "(cached) $ECHO_C" >&6
6087fi
6088{ echo "$as_me:$LINENO: result: $ac_cv_header_stdlib_h" >&5
6089echo "${ECHO_T}$ac_cv_header_stdlib_h" >&6; }
6090else
6091  # Is the header compilable?
6092{ echo "$as_me:$LINENO: checking stdlib.h usability" >&5
6093echo $ECHO_N "checking stdlib.h usability... $ECHO_C" >&6; }
6094cat >conftest.$ac_ext <<_ACEOF
6095/* confdefs.h.  */
6096_ACEOF
6097cat confdefs.h >>conftest.$ac_ext
6098cat >>conftest.$ac_ext <<_ACEOF
6099/* end confdefs.h.  */
6100$ac_includes_default
6101#include <stdlib.h>
6102_ACEOF
6103rm -f conftest.$ac_objext
6104if { (ac_try="$ac_compile"
6105case "(($ac_try" in
6106  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6107  *) ac_try_echo=$ac_try;;
6108esac
6109eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6110  (eval "$ac_compile") 2>conftest.er1
6111  ac_status=$?
6112  grep -v '^ *+' conftest.er1 >conftest.err
6113  rm -f conftest.er1
6114  cat conftest.err >&5
6115  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6116  (exit $ac_status); } && {
6117	 test -z "$ac_c_werror_flag" ||
6118	 test ! -s conftest.err
6119       } && test -s conftest.$ac_objext; then
6120  ac_header_compiler=yes
6121else
6122  echo "$as_me: failed program was:" >&5
6123sed 's/^/| /' conftest.$ac_ext >&5
6124
6125	ac_header_compiler=no
6126fi
6127
6128rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6129{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6130echo "${ECHO_T}$ac_header_compiler" >&6; }
6131
6132# Is the header present?
6133{ echo "$as_me:$LINENO: checking stdlib.h presence" >&5
6134echo $ECHO_N "checking stdlib.h presence... $ECHO_C" >&6; }
6135cat >conftest.$ac_ext <<_ACEOF
6136/* confdefs.h.  */
6137_ACEOF
6138cat confdefs.h >>conftest.$ac_ext
6139cat >>conftest.$ac_ext <<_ACEOF
6140/* end confdefs.h.  */
6141#include <stdlib.h>
6142_ACEOF
6143if { (ac_try="$ac_cpp conftest.$ac_ext"
6144case "(($ac_try" in
6145  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6146  *) ac_try_echo=$ac_try;;
6147esac
6148eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6149  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6150  ac_status=$?
6151  grep -v '^ *+' conftest.er1 >conftest.err
6152  rm -f conftest.er1
6153  cat conftest.err >&5
6154  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6155  (exit $ac_status); } >/dev/null && {
6156	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6157	 test ! -s conftest.err
6158       }; then
6159  ac_header_preproc=yes
6160else
6161  echo "$as_me: failed program was:" >&5
6162sed 's/^/| /' conftest.$ac_ext >&5
6163
6164  ac_header_preproc=no
6165fi
6166
6167rm -f conftest.err conftest.$ac_ext
6168{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6169echo "${ECHO_T}$ac_header_preproc" >&6; }
6170
6171# So?  What about this header?
6172case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6173  yes:no: )
6174    { echo "$as_me:$LINENO: WARNING: stdlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
6175echo "$as_me: WARNING: stdlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6176    { echo "$as_me:$LINENO: WARNING: stdlib.h: proceeding with the compiler's result" >&5
6177echo "$as_me: WARNING: stdlib.h: proceeding with the compiler's result" >&2;}
6178    ac_header_preproc=yes
6179    ;;
6180  no:yes:* )
6181    { echo "$as_me:$LINENO: WARNING: stdlib.h: present but cannot be compiled" >&5
6182echo "$as_me: WARNING: stdlib.h: present but cannot be compiled" >&2;}
6183    { echo "$as_me:$LINENO: WARNING: stdlib.h:     check for missing prerequisite headers?" >&5
6184echo "$as_me: WARNING: stdlib.h:     check for missing prerequisite headers?" >&2;}
6185    { echo "$as_me:$LINENO: WARNING: stdlib.h: see the Autoconf documentation" >&5
6186echo "$as_me: WARNING: stdlib.h: see the Autoconf documentation" >&2;}
6187    { echo "$as_me:$LINENO: WARNING: stdlib.h:     section \"Present But Cannot Be Compiled\"" >&5
6188echo "$as_me: WARNING: stdlib.h:     section \"Present But Cannot Be Compiled\"" >&2;}
6189    { echo "$as_me:$LINENO: WARNING: stdlib.h: proceeding with the preprocessor's result" >&5
6190echo "$as_me: WARNING: stdlib.h: proceeding with the preprocessor's result" >&2;}
6191    { echo "$as_me:$LINENO: WARNING: stdlib.h: in the future, the compiler will take precedence" >&5
6192echo "$as_me: WARNING: stdlib.h: in the future, the compiler will take precedence" >&2;}
6193
6194    ;;
6195esac
6196{ echo "$as_me:$LINENO: checking for stdlib.h" >&5
6197echo $ECHO_N "checking for stdlib.h... $ECHO_C" >&6; }
6198if test "${ac_cv_header_stdlib_h+set}" = set; then
6199  echo $ECHO_N "(cached) $ECHO_C" >&6
6200else
6201  ac_cv_header_stdlib_h=$ac_header_preproc
6202fi
6203{ echo "$as_me:$LINENO: result: $ac_cv_header_stdlib_h" >&5
6204echo "${ECHO_T}$ac_cv_header_stdlib_h" >&6; }
6205
6206fi
6207if test $ac_cv_header_stdlib_h = yes; then
6208  tcl_ok=1
6209else
6210  tcl_ok=0
6211fi
6212
6213
6214    cat >conftest.$ac_ext <<_ACEOF
6215/* confdefs.h.  */
6216_ACEOF
6217cat confdefs.h >>conftest.$ac_ext
6218cat >>conftest.$ac_ext <<_ACEOF
6219/* end confdefs.h.  */
6220#include <stdlib.h>
6221
6222_ACEOF
6223if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6224  $EGREP "strtol" >/dev/null 2>&1; then
6225  :
6226else
6227  tcl_ok=0
6228fi
6229rm -f -r conftest*
6230
6231    cat >conftest.$ac_ext <<_ACEOF
6232/* confdefs.h.  */
6233_ACEOF
6234cat confdefs.h >>conftest.$ac_ext
6235cat >>conftest.$ac_ext <<_ACEOF
6236/* end confdefs.h.  */
6237#include <stdlib.h>
6238
6239_ACEOF
6240if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6241  $EGREP "strtoul" >/dev/null 2>&1; then
6242  :
6243else
6244  tcl_ok=0
6245fi
6246rm -f -r conftest*
6247
6248    cat >conftest.$ac_ext <<_ACEOF
6249/* confdefs.h.  */
6250_ACEOF
6251cat confdefs.h >>conftest.$ac_ext
6252cat >>conftest.$ac_ext <<_ACEOF
6253/* end confdefs.h.  */
6254#include <stdlib.h>
6255
6256_ACEOF
6257if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6258  $EGREP "strtod" >/dev/null 2>&1; then
6259  :
6260else
6261  tcl_ok=0
6262fi
6263rm -f -r conftest*
6264
6265    if test $tcl_ok = 0; then
6266
6267cat >>confdefs.h <<\_ACEOF
6268#define NO_STDLIB_H 1
6269_ACEOF
6270
6271    fi
6272    if test "${ac_cv_header_string_h+set}" = set; then
6273  { echo "$as_me:$LINENO: checking for string.h" >&5
6274echo $ECHO_N "checking for string.h... $ECHO_C" >&6; }
6275if test "${ac_cv_header_string_h+set}" = set; then
6276  echo $ECHO_N "(cached) $ECHO_C" >&6
6277fi
6278{ echo "$as_me:$LINENO: result: $ac_cv_header_string_h" >&5
6279echo "${ECHO_T}$ac_cv_header_string_h" >&6; }
6280else
6281  # Is the header compilable?
6282{ echo "$as_me:$LINENO: checking string.h usability" >&5
6283echo $ECHO_N "checking string.h usability... $ECHO_C" >&6; }
6284cat >conftest.$ac_ext <<_ACEOF
6285/* confdefs.h.  */
6286_ACEOF
6287cat confdefs.h >>conftest.$ac_ext
6288cat >>conftest.$ac_ext <<_ACEOF
6289/* end confdefs.h.  */
6290$ac_includes_default
6291#include <string.h>
6292_ACEOF
6293rm -f conftest.$ac_objext
6294if { (ac_try="$ac_compile"
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_compile") 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); } && {
6307	 test -z "$ac_c_werror_flag" ||
6308	 test ! -s conftest.err
6309       } && test -s conftest.$ac_objext; then
6310  ac_header_compiler=yes
6311else
6312  echo "$as_me: failed program was:" >&5
6313sed 's/^/| /' conftest.$ac_ext >&5
6314
6315	ac_header_compiler=no
6316fi
6317
6318rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6319{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6320echo "${ECHO_T}$ac_header_compiler" >&6; }
6321
6322# Is the header present?
6323{ echo "$as_me:$LINENO: checking string.h presence" >&5
6324echo $ECHO_N "checking string.h presence... $ECHO_C" >&6; }
6325cat >conftest.$ac_ext <<_ACEOF
6326/* confdefs.h.  */
6327_ACEOF
6328cat confdefs.h >>conftest.$ac_ext
6329cat >>conftest.$ac_ext <<_ACEOF
6330/* end confdefs.h.  */
6331#include <string.h>
6332_ACEOF
6333if { (ac_try="$ac_cpp conftest.$ac_ext"
6334case "(($ac_try" in
6335  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6336  *) ac_try_echo=$ac_try;;
6337esac
6338eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6339  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6340  ac_status=$?
6341  grep -v '^ *+' conftest.er1 >conftest.err
6342  rm -f conftest.er1
6343  cat conftest.err >&5
6344  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6345  (exit $ac_status); } >/dev/null && {
6346	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6347	 test ! -s conftest.err
6348       }; then
6349  ac_header_preproc=yes
6350else
6351  echo "$as_me: failed program was:" >&5
6352sed 's/^/| /' conftest.$ac_ext >&5
6353
6354  ac_header_preproc=no
6355fi
6356
6357rm -f conftest.err conftest.$ac_ext
6358{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6359echo "${ECHO_T}$ac_header_preproc" >&6; }
6360
6361# So?  What about this header?
6362case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6363  yes:no: )
6364    { echo "$as_me:$LINENO: WARNING: string.h: accepted by the compiler, rejected by the preprocessor!" >&5
6365echo "$as_me: WARNING: string.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6366    { echo "$as_me:$LINENO: WARNING: string.h: proceeding with the compiler's result" >&5
6367echo "$as_me: WARNING: string.h: proceeding with the compiler's result" >&2;}
6368    ac_header_preproc=yes
6369    ;;
6370  no:yes:* )
6371    { echo "$as_me:$LINENO: WARNING: string.h: present but cannot be compiled" >&5
6372echo "$as_me: WARNING: string.h: present but cannot be compiled" >&2;}
6373    { echo "$as_me:$LINENO: WARNING: string.h:     check for missing prerequisite headers?" >&5
6374echo "$as_me: WARNING: string.h:     check for missing prerequisite headers?" >&2;}
6375    { echo "$as_me:$LINENO: WARNING: string.h: see the Autoconf documentation" >&5
6376echo "$as_me: WARNING: string.h: see the Autoconf documentation" >&2;}
6377    { echo "$as_me:$LINENO: WARNING: string.h:     section \"Present But Cannot Be Compiled\"" >&5
6378echo "$as_me: WARNING: string.h:     section \"Present But Cannot Be Compiled\"" >&2;}
6379    { echo "$as_me:$LINENO: WARNING: string.h: proceeding with the preprocessor's result" >&5
6380echo "$as_me: WARNING: string.h: proceeding with the preprocessor's result" >&2;}
6381    { echo "$as_me:$LINENO: WARNING: string.h: in the future, the compiler will take precedence" >&5
6382echo "$as_me: WARNING: string.h: in the future, the compiler will take precedence" >&2;}
6383
6384    ;;
6385esac
6386{ echo "$as_me:$LINENO: checking for string.h" >&5
6387echo $ECHO_N "checking for string.h... $ECHO_C" >&6; }
6388if test "${ac_cv_header_string_h+set}" = set; then
6389  echo $ECHO_N "(cached) $ECHO_C" >&6
6390else
6391  ac_cv_header_string_h=$ac_header_preproc
6392fi
6393{ echo "$as_me:$LINENO: result: $ac_cv_header_string_h" >&5
6394echo "${ECHO_T}$ac_cv_header_string_h" >&6; }
6395
6396fi
6397if test $ac_cv_header_string_h = yes; then
6398  tcl_ok=1
6399else
6400  tcl_ok=0
6401fi
6402
6403
6404    cat >conftest.$ac_ext <<_ACEOF
6405/* confdefs.h.  */
6406_ACEOF
6407cat confdefs.h >>conftest.$ac_ext
6408cat >>conftest.$ac_ext <<_ACEOF
6409/* end confdefs.h.  */
6410#include <string.h>
6411
6412_ACEOF
6413if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6414  $EGREP "strstr" >/dev/null 2>&1; then
6415  :
6416else
6417  tcl_ok=0
6418fi
6419rm -f -r conftest*
6420
6421    cat >conftest.$ac_ext <<_ACEOF
6422/* confdefs.h.  */
6423_ACEOF
6424cat confdefs.h >>conftest.$ac_ext
6425cat >>conftest.$ac_ext <<_ACEOF
6426/* end confdefs.h.  */
6427#include <string.h>
6428
6429_ACEOF
6430if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6431  $EGREP "strerror" >/dev/null 2>&1; then
6432  :
6433else
6434  tcl_ok=0
6435fi
6436rm -f -r conftest*
6437
6438
6439    # See also memmove check below for a place where NO_STRING_H can be
6440    # set and why.
6441
6442    if test $tcl_ok = 0; then
6443
6444cat >>confdefs.h <<\_ACEOF
6445#define NO_STRING_H 1
6446_ACEOF
6447
6448    fi
6449
6450    if test "${ac_cv_header_sys_wait_h+set}" = set; then
6451  { echo "$as_me:$LINENO: checking for sys/wait.h" >&5
6452echo $ECHO_N "checking for sys/wait.h... $ECHO_C" >&6; }
6453if test "${ac_cv_header_sys_wait_h+set}" = set; then
6454  echo $ECHO_N "(cached) $ECHO_C" >&6
6455fi
6456{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
6457echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
6458else
6459  # Is the header compilable?
6460{ echo "$as_me:$LINENO: checking sys/wait.h usability" >&5
6461echo $ECHO_N "checking sys/wait.h usability... $ECHO_C" >&6; }
6462cat >conftest.$ac_ext <<_ACEOF
6463/* confdefs.h.  */
6464_ACEOF
6465cat confdefs.h >>conftest.$ac_ext
6466cat >>conftest.$ac_ext <<_ACEOF
6467/* end confdefs.h.  */
6468$ac_includes_default
6469#include <sys/wait.h>
6470_ACEOF
6471rm -f conftest.$ac_objext
6472if { (ac_try="$ac_compile"
6473case "(($ac_try" in
6474  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6475  *) ac_try_echo=$ac_try;;
6476esac
6477eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6478  (eval "$ac_compile") 2>conftest.er1
6479  ac_status=$?
6480  grep -v '^ *+' conftest.er1 >conftest.err
6481  rm -f conftest.er1
6482  cat conftest.err >&5
6483  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6484  (exit $ac_status); } && {
6485	 test -z "$ac_c_werror_flag" ||
6486	 test ! -s conftest.err
6487       } && test -s conftest.$ac_objext; then
6488  ac_header_compiler=yes
6489else
6490  echo "$as_me: failed program was:" >&5
6491sed 's/^/| /' conftest.$ac_ext >&5
6492
6493	ac_header_compiler=no
6494fi
6495
6496rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6497{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6498echo "${ECHO_T}$ac_header_compiler" >&6; }
6499
6500# Is the header present?
6501{ echo "$as_me:$LINENO: checking sys/wait.h presence" >&5
6502echo $ECHO_N "checking sys/wait.h presence... $ECHO_C" >&6; }
6503cat >conftest.$ac_ext <<_ACEOF
6504/* confdefs.h.  */
6505_ACEOF
6506cat confdefs.h >>conftest.$ac_ext
6507cat >>conftest.$ac_ext <<_ACEOF
6508/* end confdefs.h.  */
6509#include <sys/wait.h>
6510_ACEOF
6511if { (ac_try="$ac_cpp conftest.$ac_ext"
6512case "(($ac_try" in
6513  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6514  *) ac_try_echo=$ac_try;;
6515esac
6516eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6517  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6518  ac_status=$?
6519  grep -v '^ *+' conftest.er1 >conftest.err
6520  rm -f conftest.er1
6521  cat conftest.err >&5
6522  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6523  (exit $ac_status); } >/dev/null && {
6524	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6525	 test ! -s conftest.err
6526       }; then
6527  ac_header_preproc=yes
6528else
6529  echo "$as_me: failed program was:" >&5
6530sed 's/^/| /' conftest.$ac_ext >&5
6531
6532  ac_header_preproc=no
6533fi
6534
6535rm -f conftest.err conftest.$ac_ext
6536{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6537echo "${ECHO_T}$ac_header_preproc" >&6; }
6538
6539# So?  What about this header?
6540case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6541  yes:no: )
6542    { echo "$as_me:$LINENO: WARNING: sys/wait.h: accepted by the compiler, rejected by the preprocessor!" >&5
6543echo "$as_me: WARNING: sys/wait.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6544    { echo "$as_me:$LINENO: WARNING: sys/wait.h: proceeding with the compiler's result" >&5
6545echo "$as_me: WARNING: sys/wait.h: proceeding with the compiler's result" >&2;}
6546    ac_header_preproc=yes
6547    ;;
6548  no:yes:* )
6549    { echo "$as_me:$LINENO: WARNING: sys/wait.h: present but cannot be compiled" >&5
6550echo "$as_me: WARNING: sys/wait.h: present but cannot be compiled" >&2;}
6551    { echo "$as_me:$LINENO: WARNING: sys/wait.h:     check for missing prerequisite headers?" >&5
6552echo "$as_me: WARNING: sys/wait.h:     check for missing prerequisite headers?" >&2;}
6553    { echo "$as_me:$LINENO: WARNING: sys/wait.h: see the Autoconf documentation" >&5
6554echo "$as_me: WARNING: sys/wait.h: see the Autoconf documentation" >&2;}
6555    { echo "$as_me:$LINENO: WARNING: sys/wait.h:     section \"Present But Cannot Be Compiled\"" >&5
6556echo "$as_me: WARNING: sys/wait.h:     section \"Present But Cannot Be Compiled\"" >&2;}
6557    { echo "$as_me:$LINENO: WARNING: sys/wait.h: proceeding with the preprocessor's result" >&5
6558echo "$as_me: WARNING: sys/wait.h: proceeding with the preprocessor's result" >&2;}
6559    { echo "$as_me:$LINENO: WARNING: sys/wait.h: in the future, the compiler will take precedence" >&5
6560echo "$as_me: WARNING: sys/wait.h: in the future, the compiler will take precedence" >&2;}
6561
6562    ;;
6563esac
6564{ echo "$as_me:$LINENO: checking for sys/wait.h" >&5
6565echo $ECHO_N "checking for sys/wait.h... $ECHO_C" >&6; }
6566if test "${ac_cv_header_sys_wait_h+set}" = set; then
6567  echo $ECHO_N "(cached) $ECHO_C" >&6
6568else
6569  ac_cv_header_sys_wait_h=$ac_header_preproc
6570fi
6571{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
6572echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
6573
6574fi
6575if test $ac_cv_header_sys_wait_h = yes; then
6576  :
6577else
6578
6579cat >>confdefs.h <<\_ACEOF
6580#define NO_SYS_WAIT_H 1
6581_ACEOF
6582
6583fi
6584
6585
6586    if test "${ac_cv_header_dlfcn_h+set}" = set; then
6587  { echo "$as_me:$LINENO: checking for dlfcn.h" >&5
6588echo $ECHO_N "checking for dlfcn.h... $ECHO_C" >&6; }
6589if test "${ac_cv_header_dlfcn_h+set}" = set; then
6590  echo $ECHO_N "(cached) $ECHO_C" >&6
6591fi
6592{ echo "$as_me:$LINENO: result: $ac_cv_header_dlfcn_h" >&5
6593echo "${ECHO_T}$ac_cv_header_dlfcn_h" >&6; }
6594else
6595  # Is the header compilable?
6596{ echo "$as_me:$LINENO: checking dlfcn.h usability" >&5
6597echo $ECHO_N "checking dlfcn.h usability... $ECHO_C" >&6; }
6598cat >conftest.$ac_ext <<_ACEOF
6599/* confdefs.h.  */
6600_ACEOF
6601cat confdefs.h >>conftest.$ac_ext
6602cat >>conftest.$ac_ext <<_ACEOF
6603/* end confdefs.h.  */
6604$ac_includes_default
6605#include <dlfcn.h>
6606_ACEOF
6607rm -f conftest.$ac_objext
6608if { (ac_try="$ac_compile"
6609case "(($ac_try" in
6610  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6611  *) ac_try_echo=$ac_try;;
6612esac
6613eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6614  (eval "$ac_compile") 2>conftest.er1
6615  ac_status=$?
6616  grep -v '^ *+' conftest.er1 >conftest.err
6617  rm -f conftest.er1
6618  cat conftest.err >&5
6619  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6620  (exit $ac_status); } && {
6621	 test -z "$ac_c_werror_flag" ||
6622	 test ! -s conftest.err
6623       } && test -s conftest.$ac_objext; then
6624  ac_header_compiler=yes
6625else
6626  echo "$as_me: failed program was:" >&5
6627sed 's/^/| /' conftest.$ac_ext >&5
6628
6629	ac_header_compiler=no
6630fi
6631
6632rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6633{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6634echo "${ECHO_T}$ac_header_compiler" >&6; }
6635
6636# Is the header present?
6637{ echo "$as_me:$LINENO: checking dlfcn.h presence" >&5
6638echo $ECHO_N "checking dlfcn.h presence... $ECHO_C" >&6; }
6639cat >conftest.$ac_ext <<_ACEOF
6640/* confdefs.h.  */
6641_ACEOF
6642cat confdefs.h >>conftest.$ac_ext
6643cat >>conftest.$ac_ext <<_ACEOF
6644/* end confdefs.h.  */
6645#include <dlfcn.h>
6646_ACEOF
6647if { (ac_try="$ac_cpp conftest.$ac_ext"
6648case "(($ac_try" in
6649  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6650  *) ac_try_echo=$ac_try;;
6651esac
6652eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6653  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6654  ac_status=$?
6655  grep -v '^ *+' conftest.er1 >conftest.err
6656  rm -f conftest.er1
6657  cat conftest.err >&5
6658  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6659  (exit $ac_status); } >/dev/null && {
6660	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6661	 test ! -s conftest.err
6662       }; then
6663  ac_header_preproc=yes
6664else
6665  echo "$as_me: failed program was:" >&5
6666sed 's/^/| /' conftest.$ac_ext >&5
6667
6668  ac_header_preproc=no
6669fi
6670
6671rm -f conftest.err conftest.$ac_ext
6672{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6673echo "${ECHO_T}$ac_header_preproc" >&6; }
6674
6675# So?  What about this header?
6676case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6677  yes:no: )
6678    { echo "$as_me:$LINENO: WARNING: dlfcn.h: accepted by the compiler, rejected by the preprocessor!" >&5
6679echo "$as_me: WARNING: dlfcn.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6680    { echo "$as_me:$LINENO: WARNING: dlfcn.h: proceeding with the compiler's result" >&5
6681echo "$as_me: WARNING: dlfcn.h: proceeding with the compiler's result" >&2;}
6682    ac_header_preproc=yes
6683    ;;
6684  no:yes:* )
6685    { echo "$as_me:$LINENO: WARNING: dlfcn.h: present but cannot be compiled" >&5
6686echo "$as_me: WARNING: dlfcn.h: present but cannot be compiled" >&2;}
6687    { echo "$as_me:$LINENO: WARNING: dlfcn.h:     check for missing prerequisite headers?" >&5
6688echo "$as_me: WARNING: dlfcn.h:     check for missing prerequisite headers?" >&2;}
6689    { echo "$as_me:$LINENO: WARNING: dlfcn.h: see the Autoconf documentation" >&5
6690echo "$as_me: WARNING: dlfcn.h: see the Autoconf documentation" >&2;}
6691    { echo "$as_me:$LINENO: WARNING: dlfcn.h:     section \"Present But Cannot Be Compiled\"" >&5
6692echo "$as_me: WARNING: dlfcn.h:     section \"Present But Cannot Be Compiled\"" >&2;}
6693    { echo "$as_me:$LINENO: WARNING: dlfcn.h: proceeding with the preprocessor's result" >&5
6694echo "$as_me: WARNING: dlfcn.h: proceeding with the preprocessor's result" >&2;}
6695    { echo "$as_me:$LINENO: WARNING: dlfcn.h: in the future, the compiler will take precedence" >&5
6696echo "$as_me: WARNING: dlfcn.h: in the future, the compiler will take precedence" >&2;}
6697
6698    ;;
6699esac
6700{ echo "$as_me:$LINENO: checking for dlfcn.h" >&5
6701echo $ECHO_N "checking for dlfcn.h... $ECHO_C" >&6; }
6702if test "${ac_cv_header_dlfcn_h+set}" = set; then
6703  echo $ECHO_N "(cached) $ECHO_C" >&6
6704else
6705  ac_cv_header_dlfcn_h=$ac_header_preproc
6706fi
6707{ echo "$as_me:$LINENO: result: $ac_cv_header_dlfcn_h" >&5
6708echo "${ECHO_T}$ac_cv_header_dlfcn_h" >&6; }
6709
6710fi
6711if test $ac_cv_header_dlfcn_h = yes; then
6712  :
6713else
6714
6715cat >>confdefs.h <<\_ACEOF
6716#define NO_DLFCN_H 1
6717_ACEOF
6718
6719fi
6720
6721
6722
6723    # OS/390 lacks sys/param.h (and doesn't need it, by chance).
6724
6725for ac_header in sys/param.h
6726do
6727as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6728if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6729  { echo "$as_me:$LINENO: checking for $ac_header" >&5
6730echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6731if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6732  echo $ECHO_N "(cached) $ECHO_C" >&6
6733fi
6734ac_res=`eval echo '${'$as_ac_Header'}'`
6735	       { echo "$as_me:$LINENO: result: $ac_res" >&5
6736echo "${ECHO_T}$ac_res" >&6; }
6737else
6738  # Is the header compilable?
6739{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
6740echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6741cat >conftest.$ac_ext <<_ACEOF
6742/* confdefs.h.  */
6743_ACEOF
6744cat confdefs.h >>conftest.$ac_ext
6745cat >>conftest.$ac_ext <<_ACEOF
6746/* end confdefs.h.  */
6747$ac_includes_default
6748#include <$ac_header>
6749_ACEOF
6750rm -f conftest.$ac_objext
6751if { (ac_try="$ac_compile"
6752case "(($ac_try" in
6753  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6754  *) ac_try_echo=$ac_try;;
6755esac
6756eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6757  (eval "$ac_compile") 2>conftest.er1
6758  ac_status=$?
6759  grep -v '^ *+' conftest.er1 >conftest.err
6760  rm -f conftest.er1
6761  cat conftest.err >&5
6762  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6763  (exit $ac_status); } && {
6764	 test -z "$ac_c_werror_flag" ||
6765	 test ! -s conftest.err
6766       } && test -s conftest.$ac_objext; then
6767  ac_header_compiler=yes
6768else
6769  echo "$as_me: failed program was:" >&5
6770sed 's/^/| /' conftest.$ac_ext >&5
6771
6772	ac_header_compiler=no
6773fi
6774
6775rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6776{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6777echo "${ECHO_T}$ac_header_compiler" >&6; }
6778
6779# Is the header present?
6780{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
6781echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6782cat >conftest.$ac_ext <<_ACEOF
6783/* confdefs.h.  */
6784_ACEOF
6785cat confdefs.h >>conftest.$ac_ext
6786cat >>conftest.$ac_ext <<_ACEOF
6787/* end confdefs.h.  */
6788#include <$ac_header>
6789_ACEOF
6790if { (ac_try="$ac_cpp conftest.$ac_ext"
6791case "(($ac_try" in
6792  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6793  *) ac_try_echo=$ac_try;;
6794esac
6795eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6796  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6797  ac_status=$?
6798  grep -v '^ *+' conftest.er1 >conftest.err
6799  rm -f conftest.er1
6800  cat conftest.err >&5
6801  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6802  (exit $ac_status); } >/dev/null && {
6803	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6804	 test ! -s conftest.err
6805       }; then
6806  ac_header_preproc=yes
6807else
6808  echo "$as_me: failed program was:" >&5
6809sed 's/^/| /' conftest.$ac_ext >&5
6810
6811  ac_header_preproc=no
6812fi
6813
6814rm -f conftest.err conftest.$ac_ext
6815{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6816echo "${ECHO_T}$ac_header_preproc" >&6; }
6817
6818# So?  What about this header?
6819case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6820  yes:no: )
6821    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6822echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6823    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6824echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6825    ac_header_preproc=yes
6826    ;;
6827  no:yes:* )
6828    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6829echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6830    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6831echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6832    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6833echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6834    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6835echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6836    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6837echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6838    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6839echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6840
6841    ;;
6842esac
6843{ echo "$as_me:$LINENO: checking for $ac_header" >&5
6844echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6845if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6846  echo $ECHO_N "(cached) $ECHO_C" >&6
6847else
6848  eval "$as_ac_Header=\$ac_header_preproc"
6849fi
6850ac_res=`eval echo '${'$as_ac_Header'}'`
6851	       { echo "$as_me:$LINENO: result: $ac_res" >&5
6852echo "${ECHO_T}$ac_res" >&6; }
6853
6854fi
6855if test `eval echo '${'$as_ac_Header'}'` = yes; then
6856  cat >>confdefs.h <<_ACEOF
6857#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6858_ACEOF
6859
6860fi
6861
6862done
6863
6864
6865	# Let the user call this, because if it triggers, they will
6866	# need a compat/strtod.c that is correct.  Users can also
6867	# use Tcl_GetDouble(FromObj) instead.
6868	#TEA_BUGGY_STRTOD
6869    fi
6870
6871
6872#-----------------------------------------------------------------------
6873# Specify the C source files to compile in TEA_ADD_SOURCES,
6874# public headers that need to be installed in TEA_ADD_HEADERS,
6875# stub library C source files to compile in TEA_ADD_STUB_SOURCES,
6876# and runtime Tcl library files in TEA_ADD_TCL_SOURCES.
6877# This defines PKG(_STUB)_SOURCES, PKG(_STUB)_OBJECTS, PKG_HEADERS
6878# and PKG_TCL_SOURCES.
6879#-----------------------------------------------------------------------
6880
6881
6882    vars="MoviePlayer.c MovieQTVRUtils.c QuickTimeTcl.c SeqGrabber.c
6883    Tfp_Arrays.c TimeCode.c UserData.c EffectCommand.c ExportCommand.c
6884    MovieCallBack.c MovieUtils.c TracksCommand.c Utils.c osxMacTcl.c
6885    Broadcast.c NavigationGetFile.c SystemUI.c"
6886    for i in $vars; do
6887	case $i in
6888	    \$*)
6889		# allow $-var names
6890		PKG_SOURCES="$PKG_SOURCES $i"
6891		PKG_OBJECTS="$PKG_OBJECTS $i"
6892		;;
6893	    *)
6894		# check for existence - allows for generic/win/unix VPATH
6895		# To add more dirs here (like 'src'), you have to update VPATH
6896		# in Makefile.in as well
6897		if test ! -f "${srcdir}/$i" -a ! -f "${srcdir}/generic/$i" \
6898		    -a ! -f "${srcdir}/win/$i" -a ! -f "${srcdir}/unix/$i" \
6899		    -a ! -f "${srcdir}/macosx/$i" \
6900		    ; then
6901		    { { echo "$as_me:$LINENO: error: could not find source file '$i'" >&5
6902echo "$as_me: error: could not find source file '$i'" >&2;}
6903   { (exit 1); exit 1; }; }
6904		fi
6905		PKG_SOURCES="$PKG_SOURCES $i"
6906		# this assumes it is in a VPATH dir
6907		i=`basename $i`
6908		# handle user calling this before or after TEA_SETUP_COMPILER
6909		if test x"${OBJEXT}" != x ; then
6910		    j="`echo $i | sed -e 's/\.[^.]*$//'`.${OBJEXT}"
6911		else
6912		    j="`echo $i | sed -e 's/\.[^.]*$//'`.\${OBJEXT}"
6913		fi
6914		PKG_OBJECTS="$PKG_OBJECTS $j"
6915		;;
6916	esac
6917    done
6918
6919
6920
6921
6922    vars=""
6923    for i in $vars; do
6924	# check for existence, be strict because it is installed
6925	if test ! -f "${srcdir}/$i" ; then
6926	    { { echo "$as_me:$LINENO: error: could not find header file '${srcdir}/$i'" >&5
6927echo "$as_me: error: could not find header file '${srcdir}/$i'" >&2;}
6928   { (exit 1); exit 1; }; }
6929	fi
6930	PKG_HEADERS="$PKG_HEADERS $i"
6931    done
6932
6933
6934
6935    vars=""
6936    for i in $vars; do
6937	PKG_INCLUDES="$PKG_INCLUDES $i"
6938    done
6939
6940
6941
6942    vars="-framework Carbon -framework QuickTime"
6943    for i in $vars; do
6944	if test "${TEA_PLATFORM}" = "windows" -a "$GCC" = "yes" ; then
6945	    # Convert foo.lib to -lfoo for GCC.  No-op if not *.lib
6946	    i=`echo "$i" | sed -e 's/^\([^-].*\)\.lib$/-l\1/i'`
6947	fi
6948	PKG_LIBS="$PKG_LIBS $i"
6949    done
6950
6951
6952
6953    PKG_CFLAGS="$PKG_CFLAGS -fpascal-strings -DTARGET_OS_MAC=1 -DTARGET_API_MAC_CARBON=1"
6954
6955
6956
6957    vars=""
6958    for i in $vars; do
6959	# check for existence - allows for generic/win/unix VPATH
6960	if test ! -f "${srcdir}/$i" -a ! -f "${srcdir}/generic/$i" \
6961	    -a ! -f "${srcdir}/win/$i" -a ! -f "${srcdir}/unix/$i" \
6962	    -a ! -f "${srcdir}/macosx/$i" \
6963	    ; then
6964	    { { echo "$as_me:$LINENO: error: could not find stub source file '$i'" >&5
6965echo "$as_me: error: could not find stub source file '$i'" >&2;}
6966   { (exit 1); exit 1; }; }
6967	fi
6968	PKG_STUB_SOURCES="$PKG_STUB_SOURCES $i"
6969	# this assumes it is in a VPATH dir
6970	i=`basename $i`
6971	# handle user calling this before or after TEA_SETUP_COMPILER
6972	if test x"${OBJEXT}" != x ; then
6973	    j="`echo $i | sed -e 's/\.[^.]*$//'`.${OBJEXT}"
6974	else
6975	    j="`echo $i | sed -e 's/\.[^.]*$//'`.\${OBJEXT}"
6976	fi
6977	PKG_STUB_OBJECTS="$PKG_STUB_OBJECTS $j"
6978    done
6979
6980
6981
6982
6983    vars="movie.tcl"
6984    for i in $vars; do
6985	# check for existence, be strict because it is installed
6986	if test ! -f "${srcdir}/$i" ; then
6987	    { { echo "$as_me:$LINENO: error: could not find tcl source file '${srcdir}/$i'" >&5
6988echo "$as_me: error: could not find tcl source file '${srcdir}/$i'" >&2;}
6989   { (exit 1); exit 1; }; }
6990	fi
6991	PKG_TCL_SOURCES="$PKG_TCL_SOURCES $i"
6992    done
6993
6994
6995
6996
6997
6998#--------------------------------------------------------------------
6999# Choose which headers you need.  Extension authors should try very
7000# hard to only rely on the Tcl public header files.  Internal headers
7001# contain private data structures and are subject to change without
7002# notice.
7003# This MUST be called after TEA_LOAD_TCLCONFIG / TEA_LOAD_TKCONFIG
7004#--------------------------------------------------------------------
7005
7006
7007    { echo "$as_me:$LINENO: checking for Tcl public headers" >&5
7008echo $ECHO_N "checking for Tcl public headers... $ECHO_C" >&6; }
7009
7010
7011# Check whether --with-tclinclude was given.
7012if test "${with_tclinclude+set}" = set; then
7013  withval=$with_tclinclude; with_tclinclude=${withval}
7014fi
7015
7016
7017    if test "${ac_cv_c_tclh+set}" = set; then
7018  echo $ECHO_N "(cached) $ECHO_C" >&6
7019else
7020
7021	# Use the value from --with-tclinclude, if it was given
7022
7023	if test x"${with_tclinclude}" != x ; then
7024	    if test -f "${with_tclinclude}/tcl.h" ; then
7025		ac_cv_c_tclh=${with_tclinclude}
7026	    else
7027		{ { echo "$as_me:$LINENO: error: ${with_tclinclude} directory does not contain tcl.h" >&5
7028echo "$as_me: error: ${with_tclinclude} directory does not contain tcl.h" >&2;}
7029   { (exit 1); exit 1; }; }
7030	    fi
7031	else
7032	    list=""
7033	    if test "`uname -s`" = "Darwin"; then
7034		# If Tcl was built as a framework, attempt to use
7035		# the framework's Headers directory
7036		case ${TCL_DEFS} in
7037		    *TCL_FRAMEWORK*)
7038			list="`ls -d ${TCL_BIN_DIR}/Headers 2>/dev/null`"
7039			;;
7040		esac
7041	    fi
7042
7043	    # Look in the source dir only if Tcl is not installed,
7044	    # and in that situation, look there before installed locations.
7045	    if test -f "${TCL_BIN_DIR}/Makefile" ; then
7046		list="$list `ls -d ${TCL_SRC_DIR}/generic 2>/dev/null`"
7047	    fi
7048
7049	    # Check order: pkg --prefix location, Tcl's --prefix location,
7050	    # relative to directory of tclConfig.sh.
7051
7052	    eval "temp_includedir=${includedir}"
7053	    list="$list \
7054		`ls -d ${temp_includedir}        2>/dev/null` \
7055		`ls -d ${TCL_PREFIX}/include     2>/dev/null` \
7056		`ls -d ${TCL_BIN_DIR}/../include 2>/dev/null`"
7057	    if test "${TEA_PLATFORM}" != "windows" -o "$GCC" = "yes"; then
7058		list="$list /usr/local/include /usr/include"
7059		if test x"${TCL_INCLUDE_SPEC}" != x ; then
7060		    d=`echo "${TCL_INCLUDE_SPEC}" | sed -e 's/^-I//'`
7061		    list="$list `ls -d ${d} 2>/dev/null`"
7062		fi
7063	    fi
7064	    for i in $list ; do
7065		if test -f "$i/tcl.h" ; then
7066		    ac_cv_c_tclh=$i
7067		    break
7068		fi
7069	    done
7070	fi
7071
7072fi
7073
7074
7075    # Print a message based on how we determined the include path
7076
7077    if test x"${ac_cv_c_tclh}" = x ; then
7078	{ { echo "$as_me:$LINENO: error: tcl.h not found.  Please specify its location with --with-tclinclude" >&5
7079echo "$as_me: error: tcl.h not found.  Please specify its location with --with-tclinclude" >&2;}
7080   { (exit 1); exit 1; }; }
7081    else
7082	{ echo "$as_me:$LINENO: result: ${ac_cv_c_tclh}" >&5
7083echo "${ECHO_T}${ac_cv_c_tclh}" >&6; }
7084    fi
7085
7086    # Convert to a native path and substitute into the output files.
7087
7088    INCLUDE_DIR_NATIVE=`${CYGPATH} ${ac_cv_c_tclh}`
7089
7090    TCL_INCLUDES=-I\"${INCLUDE_DIR_NATIVE}\"
7091
7092
7093
7094#TEA_PRIVATE_TCL_HEADERS
7095
7096
7097    { echo "$as_me:$LINENO: checking for Tk public headers" >&5
7098echo $ECHO_N "checking for Tk public headers... $ECHO_C" >&6; }
7099
7100
7101# Check whether --with-tkinclude was given.
7102if test "${with_tkinclude+set}" = set; then
7103  withval=$with_tkinclude; with_tkinclude=${withval}
7104fi
7105
7106
7107    if test "${ac_cv_c_tkh+set}" = set; then
7108  echo $ECHO_N "(cached) $ECHO_C" >&6
7109else
7110
7111	# Use the value from --with-tkinclude, if it was given
7112
7113	if test x"${with_tkinclude}" != x ; then
7114	    if test -f "${with_tkinclude}/tk.h" ; then
7115		ac_cv_c_tkh=${with_tkinclude}
7116	    else
7117		{ { echo "$as_me:$LINENO: error: ${with_tkinclude} directory does not contain tk.h" >&5
7118echo "$as_me: error: ${with_tkinclude} directory does not contain tk.h" >&2;}
7119   { (exit 1); exit 1; }; }
7120	    fi
7121	else
7122	    list=""
7123	    if test "`uname -s`" = "Darwin"; then
7124		# If Tk was built as a framework, attempt to use
7125		# the framework's Headers directory.
7126		case ${TK_DEFS} in
7127		    *TK_FRAMEWORK*)
7128			list="`ls -d ${TK_BIN_DIR}/Headers 2>/dev/null`"
7129			;;
7130		esac
7131	    fi
7132
7133	    # Look in the source dir only if Tk is not installed,
7134	    # and in that situation, look there before installed locations.
7135	    if test -f "${TK_BIN_DIR}/Makefile" ; then
7136		list="$list `ls -d ${TK_SRC_DIR}/generic 2>/dev/null`"
7137	    fi
7138
7139	    # Check order: pkg --prefix location, Tk's --prefix location,
7140	    # relative to directory of tkConfig.sh, Tcl's --prefix location,
7141	    # relative to directory of tclConfig.sh.
7142
7143	    eval "temp_includedir=${includedir}"
7144	    list="$list \
7145		`ls -d ${temp_includedir}        2>/dev/null` \
7146		`ls -d ${TK_PREFIX}/include      2>/dev/null` \
7147		`ls -d ${TK_BIN_DIR}/../include  2>/dev/null` \
7148		`ls -d ${TCL_PREFIX}/include     2>/dev/null` \
7149		`ls -d ${TCL_BIN_DIR}/../include 2>/dev/null`"
7150	    if test "${TEA_PLATFORM}" != "windows" -o "$GCC" = "yes"; then
7151		list="$list /usr/local/include /usr/include"
7152		if test x"${TK_INCLUDE_SPEC}" != x ; then
7153		    d=`echo "${TK_INCLUDE_SPEC}" | sed -e 's/^-I//'`
7154		    list="$list `ls -d ${d} 2>/dev/null`"
7155		fi
7156	    fi
7157	    for i in $list ; do
7158		if test -f "$i/tk.h" ; then
7159		    ac_cv_c_tkh=$i
7160		    break
7161		fi
7162	    done
7163	fi
7164
7165fi
7166
7167
7168    # Print a message based on how we determined the include path
7169
7170    if test x"${ac_cv_c_tkh}" = x ; then
7171	{ { echo "$as_me:$LINENO: error: tk.h not found.  Please specify its location with --with-tkinclude" >&5
7172echo "$as_me: error: tk.h not found.  Please specify its location with --with-tkinclude" >&2;}
7173   { (exit 1); exit 1; }; }
7174    else
7175	{ echo "$as_me:$LINENO: result: ${ac_cv_c_tkh}" >&5
7176echo "${ECHO_T}${ac_cv_c_tkh}" >&6; }
7177    fi
7178
7179    # Convert to a native path and substitute into the output files.
7180
7181    INCLUDE_DIR_NATIVE=`${CYGPATH} ${ac_cv_c_tkh}`
7182
7183    TK_INCLUDES=-I\"${INCLUDE_DIR_NATIVE}\"
7184
7185
7186
7187    if test "${TEA_WINDOWINGSYSTEM}" != "x11"; then
7188	# On Windows and Aqua, we need the X compat headers
7189	{ echo "$as_me:$LINENO: checking for X11 header files" >&5
7190echo $ECHO_N "checking for X11 header files... $ECHO_C" >&6; }
7191	if test ! -r "${INCLUDE_DIR_NATIVE}/X11/Xlib.h"; then
7192	    INCLUDE_DIR_NATIVE="`${CYGPATH} ${TK_SRC_DIR}/xlib`"
7193	    TK_XINCLUDES=-I\"${INCLUDE_DIR_NATIVE}\"
7194
7195	fi
7196	{ echo "$as_me:$LINENO: result: ${INCLUDE_DIR_NATIVE}" >&5
7197echo "${ECHO_T}${INCLUDE_DIR_NATIVE}" >&6; }
7198    fi
7199
7200
7201    # Allow for --with-tkinclude to take effect and define ${ac_cv_c_tkh}
7202
7203    { echo "$as_me:$LINENO: checking for Tk private include files" >&5
7204echo $ECHO_N "checking for Tk private include files... $ECHO_C" >&6; }
7205
7206    TK_SRC_DIR_NATIVE=`${CYGPATH} ${TK_SRC_DIR}`
7207    TK_TOP_DIR_NATIVE=\"${TK_SRC_DIR_NATIVE}\"
7208
7209    # Check to see if tk<Plat>Port.h isn't already with the public headers
7210    # Don't look for tkInt.h because that resides with tk.h in the core
7211    # sources, but the <plat>Port headers are in a different directory
7212    if test "${TEA_PLATFORM}" = "windows" -a \
7213	-f "${ac_cv_c_tkh}/tkWinPort.h"; then
7214	result="private headers found with public headers"
7215    elif test "${TEA_PLATFORM}" = "unix" -a \
7216	-f "${ac_cv_c_tkh}/tkUnixPort.h"; then
7217	result="private headers found with public headers"
7218    else
7219	TK_GENERIC_DIR_NATIVE=\"${TK_SRC_DIR_NATIVE}/generic\"
7220	TK_XLIB_DIR_NATIVE=\"${TK_SRC_DIR_NATIVE}/xlib\"
7221	if test "${TEA_PLATFORM}" = "windows"; then
7222	    TK_PLATFORM_DIR_NATIVE=\"${TK_SRC_DIR_NATIVE}/win\"
7223	else
7224	    TK_PLATFORM_DIR_NATIVE=\"${TK_SRC_DIR_NATIVE}/unix\"
7225	fi
7226	# Overwrite the previous TK_INCLUDES as this should capture both
7227	# public and private headers in the same set.
7228	# We want to ensure these are substituted so as not to require
7229	# any *_NATIVE vars be defined in the Makefile
7230	TK_INCLUDES="-I${TK_GENERIC_DIR_NATIVE} -I${TK_PLATFORM_DIR_NATIVE}"
7231	# Detect and add ttk subdir
7232	if test -d "${TK_SRC_DIR}/generic/ttk"; then
7233	   TK_INCLUDES="${TK_INCLUDES} -I\"${TK_SRC_DIR_NATIVE}/generic/ttk\""
7234	fi
7235	if test "${TEA_WINDOWINGSYSTEM}" != "x11"; then
7236	   TK_INCLUDES="${TK_INCLUDES} -I${TK_XLIB_DIR_NATIVE}"
7237	fi
7238	if test "${TEA_WINDOWINGSYSTEM}" = "aqua"; then
7239	   TK_INCLUDES="${TK_INCLUDES} -I\"${TK_SRC_DIR_NATIVE}/macosx\""
7240	fi
7241	if test "`uname -s`" = "Darwin"; then
7242	    # If Tk was built as a framework, attempt to use
7243	    # the framework's Headers and PrivateHeaders directories
7244	    case ${TK_DEFS} in
7245		*TK_FRAMEWORK*)
7246			if test -d "${TK_BIN_DIR}/Headers" -a \
7247				-d "${TK_BIN_DIR}/PrivateHeaders"; then
7248			    TK_INCLUDES="-I\"${TK_BIN_DIR}/Headers\" -I\"${TK_BIN_DIR}/PrivateHeaders\" ${TK_INCLUDES}"
7249			else
7250			    TK_INCLUDES="${TK_INCLUDES} ${TK_INCLUDE_SPEC} `echo "${TK_INCLUDE_SPEC}" | sed -e 's/Headers/PrivateHeaders/'`"
7251			fi
7252			;;
7253	    esac
7254	    result="Using ${TK_INCLUDES}"
7255	else
7256	    if test ! -f "${TK_SRC_DIR}/generic/tkInt.h" ; then
7257	       { { echo "$as_me:$LINENO: error: Cannot find private header tkInt.h in ${TK_SRC_DIR}" >&5
7258echo "$as_me: error: Cannot find private header tkInt.h in ${TK_SRC_DIR}" >&2;}
7259   { (exit 1); exit 1; }; }
7260	    fi
7261	    result="Using srcdir found in tkConfig.sh: ${TK_SRC_DIR}"
7262	fi
7263    fi
7264
7265
7266
7267
7268
7269    { echo "$as_me:$LINENO: result: ${result}" >&5
7270echo "${ECHO_T}${result}" >&6; }
7271
7272
7273    if test "${TEA_WINDOWINGSYSTEM}" = "x11" ; then
7274
7275    { echo "$as_me:$LINENO: checking for X" >&5
7276echo $ECHO_N "checking for X... $ECHO_C" >&6; }
7277
7278
7279# Check whether --with-x was given.
7280if test "${with_x+set}" = set; then
7281  withval=$with_x;
7282fi
7283
7284# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
7285if test "x$with_x" = xno; then
7286  # The user explicitly disabled X.
7287  have_x=disabled
7288else
7289  case $x_includes,$x_libraries in #(
7290    *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
7291echo "$as_me: error: Cannot use X directory names containing '" >&2;}
7292   { (exit 1); exit 1; }; };; #(
7293    *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
7294  echo $ECHO_N "(cached) $ECHO_C" >&6
7295else
7296  # One or both of the vars are not set, and there is no cached value.
7297ac_x_includes=no ac_x_libraries=no
7298rm -f -r conftest.dir
7299if mkdir conftest.dir; then
7300  cd conftest.dir
7301  cat >Imakefile <<'_ACEOF'
7302incroot:
7303	@echo incroot='${INCROOT}'
7304usrlibdir:
7305	@echo usrlibdir='${USRLIBDIR}'
7306libdir:
7307	@echo libdir='${LIBDIR}'
7308_ACEOF
7309  if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
7310    # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7311    for ac_var in incroot usrlibdir libdir; do
7312      eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
7313    done
7314    # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
7315    for ac_extension in a so sl dylib la dll; do
7316      if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
7317	 test -f "$ac_im_libdir/libX11.$ac_extension"; then
7318	ac_im_usrlibdir=$ac_im_libdir; break
7319      fi
7320    done
7321    # Screen out bogus values from the imake configuration.  They are
7322    # bogus both because they are the default anyway, and because
7323    # using them would break gcc on systems where it needs fixed includes.
7324    case $ac_im_incroot in
7325	/usr/include) ac_x_includes= ;;
7326	*) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
7327    esac
7328    case $ac_im_usrlibdir in
7329	/usr/lib | /lib) ;;
7330	*) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
7331    esac
7332  fi
7333  cd ..
7334  rm -f -r conftest.dir
7335fi
7336
7337# Standard set of common directories for X headers.
7338# Check X11 before X11Rn because it is often a symlink to the current release.
7339ac_x_header_dirs='
7340/usr/X11/include
7341/usr/X11R6/include
7342/usr/X11R5/include
7343/usr/X11R4/include
7344
7345/usr/include/X11
7346/usr/include/X11R6
7347/usr/include/X11R5
7348/usr/include/X11R4
7349
7350/usr/local/X11/include
7351/usr/local/X11R6/include
7352/usr/local/X11R5/include
7353/usr/local/X11R4/include
7354
7355/usr/local/include/X11
7356/usr/local/include/X11R6
7357/usr/local/include/X11R5
7358/usr/local/include/X11R4
7359
7360/usr/X386/include
7361/usr/x386/include
7362/usr/XFree86/include/X11
7363
7364/usr/include
7365/usr/local/include
7366/usr/unsupported/include
7367/usr/athena/include
7368/usr/local/x11r5/include
7369/usr/lpp/Xamples/include
7370
7371/usr/openwin/include
7372/usr/openwin/share/include'
7373
7374if test "$ac_x_includes" = no; then
7375  # Guess where to find include files, by looking for Xlib.h.
7376  # First, try using that file with no special directory specified.
7377  cat >conftest.$ac_ext <<_ACEOF
7378/* confdefs.h.  */
7379_ACEOF
7380cat confdefs.h >>conftest.$ac_ext
7381cat >>conftest.$ac_ext <<_ACEOF
7382/* end confdefs.h.  */
7383#include <X11/Xlib.h>
7384_ACEOF
7385if { (ac_try="$ac_cpp conftest.$ac_ext"
7386case "(($ac_try" in
7387  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7388  *) ac_try_echo=$ac_try;;
7389esac
7390eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7391  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7392  ac_status=$?
7393  grep -v '^ *+' conftest.er1 >conftest.err
7394  rm -f conftest.er1
7395  cat conftest.err >&5
7396  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7397  (exit $ac_status); } >/dev/null && {
7398	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7399	 test ! -s conftest.err
7400       }; then
7401  # We can compile using X headers with no special include directory.
7402ac_x_includes=
7403else
7404  echo "$as_me: failed program was:" >&5
7405sed 's/^/| /' conftest.$ac_ext >&5
7406
7407  for ac_dir in $ac_x_header_dirs; do
7408  if test -r "$ac_dir/X11/Xlib.h"; then
7409    ac_x_includes=$ac_dir
7410    break
7411  fi
7412done
7413fi
7414
7415rm -f conftest.err conftest.$ac_ext
7416fi # $ac_x_includes = no
7417
7418if test "$ac_x_libraries" = no; then
7419  # Check for the libraries.
7420  # See if we find them without any special options.
7421  # Don't add to $LIBS permanently.
7422  ac_save_LIBS=$LIBS
7423  LIBS="-lX11 $LIBS"
7424  cat >conftest.$ac_ext <<_ACEOF
7425/* confdefs.h.  */
7426_ACEOF
7427cat confdefs.h >>conftest.$ac_ext
7428cat >>conftest.$ac_ext <<_ACEOF
7429/* end confdefs.h.  */
7430#include <X11/Xlib.h>
7431int
7432main ()
7433{
7434XrmInitialize ()
7435  ;
7436  return 0;
7437}
7438_ACEOF
7439rm -f conftest.$ac_objext conftest$ac_exeext
7440if { (ac_try="$ac_link"
7441case "(($ac_try" in
7442  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7443  *) ac_try_echo=$ac_try;;
7444esac
7445eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7446  (eval "$ac_link") 2>conftest.er1
7447  ac_status=$?
7448  grep -v '^ *+' conftest.er1 >conftest.err
7449  rm -f conftest.er1
7450  cat conftest.err >&5
7451  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7452  (exit $ac_status); } && {
7453	 test -z "$ac_c_werror_flag" ||
7454	 test ! -s conftest.err
7455       } && test -s conftest$ac_exeext &&
7456       $as_test_x conftest$ac_exeext; then
7457  LIBS=$ac_save_LIBS
7458# We can link X programs with no special library path.
7459ac_x_libraries=
7460else
7461  echo "$as_me: failed program was:" >&5
7462sed 's/^/| /' conftest.$ac_ext >&5
7463
7464	LIBS=$ac_save_LIBS
7465for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
7466do
7467  # Don't even attempt the hair of trying to link an X program!
7468  for ac_extension in a so sl dylib la dll; do
7469    if test -r "$ac_dir/libX11.$ac_extension"; then
7470      ac_x_libraries=$ac_dir
7471      break 2
7472    fi
7473  done
7474done
7475fi
7476
7477rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7478      conftest$ac_exeext conftest.$ac_ext
7479fi # $ac_x_libraries = no
7480
7481case $ac_x_includes,$ac_x_libraries in #(
7482  no,* | *,no | *\'*)
7483    # Didn't find X, or a directory has "'" in its name.
7484    ac_cv_have_x="have_x=no";; #(
7485  *)
7486    # Record where we found X for the cache.
7487    ac_cv_have_x="have_x=yes\
7488	ac_x_includes='$ac_x_includes'\
7489	ac_x_libraries='$ac_x_libraries'"
7490esac
7491fi
7492;; #(
7493    *) have_x=yes;;
7494  esac
7495  eval "$ac_cv_have_x"
7496fi # $with_x != no
7497
7498if test "$have_x" != yes; then
7499  { echo "$as_me:$LINENO: result: $have_x" >&5
7500echo "${ECHO_T}$have_x" >&6; }
7501  no_x=yes
7502else
7503  # If each of the values was on the command line, it overrides each guess.
7504  test "x$x_includes" = xNONE && x_includes=$ac_x_includes
7505  test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
7506  # Update the cache value to reflect the command line values.
7507  ac_cv_have_x="have_x=yes\
7508	ac_x_includes='$x_includes'\
7509	ac_x_libraries='$x_libraries'"
7510  { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
7511echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
7512fi
7513
7514    not_really_there=""
7515    if test "$no_x" = ""; then
7516	if test "$x_includes" = ""; then
7517	    cat >conftest.$ac_ext <<_ACEOF
7518/* confdefs.h.  */
7519_ACEOF
7520cat confdefs.h >>conftest.$ac_ext
7521cat >>conftest.$ac_ext <<_ACEOF
7522/* end confdefs.h.  */
7523#include <X11/XIntrinsic.h>
7524_ACEOF
7525if { (ac_try="$ac_cpp conftest.$ac_ext"
7526case "(($ac_try" in
7527  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7528  *) ac_try_echo=$ac_try;;
7529esac
7530eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7531  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7532  ac_status=$?
7533  grep -v '^ *+' conftest.er1 >conftest.err
7534  rm -f conftest.er1
7535  cat conftest.err >&5
7536  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7537  (exit $ac_status); } >/dev/null && {
7538	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7539	 test ! -s conftest.err
7540       }; then
7541  :
7542else
7543  echo "$as_me: failed program was:" >&5
7544sed 's/^/| /' conftest.$ac_ext >&5
7545
7546  not_really_there="yes"
7547fi
7548
7549rm -f conftest.err conftest.$ac_ext
7550	else
7551	    if test ! -r $x_includes/X11/Intrinsic.h; then
7552		not_really_there="yes"
7553	    fi
7554	fi
7555    fi
7556    if test "$no_x" = "yes" -o "$not_really_there" = "yes"; then
7557	{ echo "$as_me:$LINENO: checking for X11 header files" >&5
7558echo $ECHO_N "checking for X11 header files... $ECHO_C" >&6; }
7559	found_xincludes="no"
7560	cat >conftest.$ac_ext <<_ACEOF
7561/* confdefs.h.  */
7562_ACEOF
7563cat confdefs.h >>conftest.$ac_ext
7564cat >>conftest.$ac_ext <<_ACEOF
7565/* end confdefs.h.  */
7566#include <X11/Intrinsic.h>
7567_ACEOF
7568if { (ac_try="$ac_cpp conftest.$ac_ext"
7569case "(($ac_try" in
7570  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7571  *) ac_try_echo=$ac_try;;
7572esac
7573eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7574  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7575  ac_status=$?
7576  grep -v '^ *+' conftest.er1 >conftest.err
7577  rm -f conftest.er1
7578  cat conftest.err >&5
7579  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7580  (exit $ac_status); } >/dev/null && {
7581	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7582	 test ! -s conftest.err
7583       }; then
7584  found_xincludes="yes"
7585else
7586  echo "$as_me: failed program was:" >&5
7587sed 's/^/| /' conftest.$ac_ext >&5
7588
7589  found_xincludes="no"
7590fi
7591
7592rm -f conftest.err conftest.$ac_ext
7593	if test "$found_xincludes" = "no"; then
7594	    dirs="/usr/unsupported/include /usr/local/include /usr/X386/include /usr/X11R6/include /usr/X11R5/include /usr/include/X11R5 /usr/include/X11R4 /usr/openwin/include /usr/X11/include /usr/sww/include"
7595	    for i in $dirs ; do
7596		if test -r $i/X11/Intrinsic.h; then
7597		    { echo "$as_me:$LINENO: result: $i" >&5
7598echo "${ECHO_T}$i" >&6; }
7599		    XINCLUDES=" -I$i"
7600		    found_xincludes="yes"
7601		    break
7602		fi
7603	    done
7604	fi
7605    else
7606	if test "$x_includes" != ""; then
7607	    XINCLUDES="-I$x_includes"
7608	    found_xincludes="yes"
7609	fi
7610    fi
7611    if test "$found_xincludes" = "no"; then
7612	{ echo "$as_me:$LINENO: result: couldn't find any!" >&5
7613echo "${ECHO_T}couldn't find any!" >&6; }
7614    fi
7615
7616    if test "$no_x" = yes; then
7617	{ echo "$as_me:$LINENO: checking for X11 libraries" >&5
7618echo $ECHO_N "checking for X11 libraries... $ECHO_C" >&6; }
7619	XLIBSW=nope
7620	dirs="/usr/unsupported/lib /usr/local/lib /usr/X386/lib /usr/X11R6/lib /usr/X11R5/lib /usr/lib/X11R5 /usr/lib/X11R4 /usr/openwin/lib /usr/X11/lib /usr/sww/X11/lib"
7621	for i in $dirs ; do
7622	    if test -r $i/libX11.a -o -r $i/libX11.so -o -r $i/libX11.sl -o -r $i/libX11.dylib; then
7623		{ echo "$as_me:$LINENO: result: $i" >&5
7624echo "${ECHO_T}$i" >&6; }
7625		XLIBSW="-L$i -lX11"
7626		x_libraries="$i"
7627		break
7628	    fi
7629	done
7630    else
7631	if test "$x_libraries" = ""; then
7632	    XLIBSW=-lX11
7633	else
7634	    XLIBSW="-L$x_libraries -lX11"
7635	fi
7636    fi
7637    if test "$XLIBSW" = nope ; then
7638	{ echo "$as_me:$LINENO: checking for XCreateWindow in -lXwindow" >&5
7639echo $ECHO_N "checking for XCreateWindow in -lXwindow... $ECHO_C" >&6; }
7640if test "${ac_cv_lib_Xwindow_XCreateWindow+set}" = set; then
7641  echo $ECHO_N "(cached) $ECHO_C" >&6
7642else
7643  ac_check_lib_save_LIBS=$LIBS
7644LIBS="-lXwindow  $LIBS"
7645cat >conftest.$ac_ext <<_ACEOF
7646/* confdefs.h.  */
7647_ACEOF
7648cat confdefs.h >>conftest.$ac_ext
7649cat >>conftest.$ac_ext <<_ACEOF
7650/* end confdefs.h.  */
7651
7652/* Override any GCC internal prototype to avoid an error.
7653   Use char because int might match the return type of a GCC
7654   builtin and then its argument prototype would still apply.  */
7655#ifdef __cplusplus
7656extern "C"
7657#endif
7658char XCreateWindow ();
7659int
7660main ()
7661{
7662return XCreateWindow ();
7663  ;
7664  return 0;
7665}
7666_ACEOF
7667rm -f conftest.$ac_objext conftest$ac_exeext
7668if { (ac_try="$ac_link"
7669case "(($ac_try" in
7670  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7671  *) ac_try_echo=$ac_try;;
7672esac
7673eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7674  (eval "$ac_link") 2>conftest.er1
7675  ac_status=$?
7676  grep -v '^ *+' conftest.er1 >conftest.err
7677  rm -f conftest.er1
7678  cat conftest.err >&5
7679  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7680  (exit $ac_status); } && {
7681	 test -z "$ac_c_werror_flag" ||
7682	 test ! -s conftest.err
7683       } && test -s conftest$ac_exeext &&
7684       $as_test_x conftest$ac_exeext; then
7685  ac_cv_lib_Xwindow_XCreateWindow=yes
7686else
7687  echo "$as_me: failed program was:" >&5
7688sed 's/^/| /' conftest.$ac_ext >&5
7689
7690	ac_cv_lib_Xwindow_XCreateWindow=no
7691fi
7692
7693rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7694      conftest$ac_exeext conftest.$ac_ext
7695LIBS=$ac_check_lib_save_LIBS
7696fi
7697{ echo "$as_me:$LINENO: result: $ac_cv_lib_Xwindow_XCreateWindow" >&5
7698echo "${ECHO_T}$ac_cv_lib_Xwindow_XCreateWindow" >&6; }
7699if test $ac_cv_lib_Xwindow_XCreateWindow = yes; then
7700  XLIBSW=-lXwindow
7701fi
7702
7703    fi
7704    if test "$XLIBSW" = nope ; then
7705	{ echo "$as_me:$LINENO: result: could not find any!  Using -lX11." >&5
7706echo "${ECHO_T}could not find any!  Using -lX11." >&6; }
7707	XLIBSW=-lX11
7708    fi
7709    # TEA specific:
7710    if test x"${XLIBSW}" != x ; then
7711	PKG_LIBS="${PKG_LIBS} ${XLIBSW}"
7712    fi
7713
7714    fi
7715
7716
7717#--------------------------------------------------------------------
7718# Check whether --enable-threads or --disable-threads was given.
7719# This auto-enables if Tcl was compiled threaded.
7720#--------------------------------------------------------------------
7721
7722
7723    # Check whether --enable-threads was given.
7724if test "${enable_threads+set}" = set; then
7725  enableval=$enable_threads; tcl_ok=$enableval
7726else
7727  tcl_ok=yes
7728fi
7729
7730
7731    if test "${enable_threads+set}" = set; then
7732	enableval="$enable_threads"
7733	tcl_ok=$enableval
7734    else
7735	tcl_ok=yes
7736    fi
7737
7738    if test "$tcl_ok" = "yes" -o "${TCL_THREADS}" = 1; then
7739	TCL_THREADS=1
7740
7741	if test "${TEA_PLATFORM}" != "windows" ; then
7742	    # We are always OK on Windows, so check what this platform wants:
7743
7744	    # USE_THREAD_ALLOC tells us to try the special thread-based
7745	    # allocator that significantly reduces lock contention
7746
7747cat >>confdefs.h <<\_ACEOF
7748#define USE_THREAD_ALLOC 1
7749_ACEOF
7750
7751
7752cat >>confdefs.h <<\_ACEOF
7753#define _REENTRANT 1
7754_ACEOF
7755
7756	    if test "`uname -s`" = "SunOS" ; then
7757
7758cat >>confdefs.h <<\_ACEOF
7759#define _POSIX_PTHREAD_SEMANTICS 1
7760_ACEOF
7761
7762	    fi
7763
7764cat >>confdefs.h <<\_ACEOF
7765#define _THREAD_SAFE 1
7766_ACEOF
7767
7768	    { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
7769echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
7770if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
7771  echo $ECHO_N "(cached) $ECHO_C" >&6
7772else
7773  ac_check_lib_save_LIBS=$LIBS
7774LIBS="-lpthread  $LIBS"
7775cat >conftest.$ac_ext <<_ACEOF
7776/* confdefs.h.  */
7777_ACEOF
7778cat confdefs.h >>conftest.$ac_ext
7779cat >>conftest.$ac_ext <<_ACEOF
7780/* end confdefs.h.  */
7781
7782/* Override any GCC internal prototype to avoid an error.
7783   Use char because int might match the return type of a GCC
7784   builtin and then its argument prototype would still apply.  */
7785#ifdef __cplusplus
7786extern "C"
7787#endif
7788char pthread_mutex_init ();
7789int
7790main ()
7791{
7792return pthread_mutex_init ();
7793  ;
7794  return 0;
7795}
7796_ACEOF
7797rm -f conftest.$ac_objext conftest$ac_exeext
7798if { (ac_try="$ac_link"
7799case "(($ac_try" in
7800  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7801  *) ac_try_echo=$ac_try;;
7802esac
7803eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7804  (eval "$ac_link") 2>conftest.er1
7805  ac_status=$?
7806  grep -v '^ *+' conftest.er1 >conftest.err
7807  rm -f conftest.er1
7808  cat conftest.err >&5
7809  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7810  (exit $ac_status); } && {
7811	 test -z "$ac_c_werror_flag" ||
7812	 test ! -s conftest.err
7813       } && test -s conftest$ac_exeext &&
7814       $as_test_x conftest$ac_exeext; then
7815  ac_cv_lib_pthread_pthread_mutex_init=yes
7816else
7817  echo "$as_me: failed program was:" >&5
7818sed 's/^/| /' conftest.$ac_ext >&5
7819
7820	ac_cv_lib_pthread_pthread_mutex_init=no
7821fi
7822
7823rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7824      conftest$ac_exeext conftest.$ac_ext
7825LIBS=$ac_check_lib_save_LIBS
7826fi
7827{ echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
7828echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
7829if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
7830  tcl_ok=yes
7831else
7832  tcl_ok=no
7833fi
7834
7835	    if test "$tcl_ok" = "no"; then
7836		# Check a little harder for __pthread_mutex_init in the same
7837		# library, as some systems hide it there until pthread.h is
7838		# defined.  We could alternatively do an AC_TRY_COMPILE with
7839		# pthread.h, but that will work with libpthread really doesn't
7840		# exist, like AIX 4.2.  [Bug: 4359]
7841		{ echo "$as_me:$LINENO: checking for __pthread_mutex_init in -lpthread" >&5
7842echo $ECHO_N "checking for __pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
7843if test "${ac_cv_lib_pthread___pthread_mutex_init+set}" = set; then
7844  echo $ECHO_N "(cached) $ECHO_C" >&6
7845else
7846  ac_check_lib_save_LIBS=$LIBS
7847LIBS="-lpthread  $LIBS"
7848cat >conftest.$ac_ext <<_ACEOF
7849/* confdefs.h.  */
7850_ACEOF
7851cat confdefs.h >>conftest.$ac_ext
7852cat >>conftest.$ac_ext <<_ACEOF
7853/* end confdefs.h.  */
7854
7855/* Override any GCC internal prototype to avoid an error.
7856   Use char because int might match the return type of a GCC
7857   builtin and then its argument prototype would still apply.  */
7858#ifdef __cplusplus
7859extern "C"
7860#endif
7861char __pthread_mutex_init ();
7862int
7863main ()
7864{
7865return __pthread_mutex_init ();
7866  ;
7867  return 0;
7868}
7869_ACEOF
7870rm -f conftest.$ac_objext conftest$ac_exeext
7871if { (ac_try="$ac_link"
7872case "(($ac_try" in
7873  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7874  *) ac_try_echo=$ac_try;;
7875esac
7876eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7877  (eval "$ac_link") 2>conftest.er1
7878  ac_status=$?
7879  grep -v '^ *+' conftest.er1 >conftest.err
7880  rm -f conftest.er1
7881  cat conftest.err >&5
7882  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7883  (exit $ac_status); } && {
7884	 test -z "$ac_c_werror_flag" ||
7885	 test ! -s conftest.err
7886       } && test -s conftest$ac_exeext &&
7887       $as_test_x conftest$ac_exeext; then
7888  ac_cv_lib_pthread___pthread_mutex_init=yes
7889else
7890  echo "$as_me: failed program was:" >&5
7891sed 's/^/| /' conftest.$ac_ext >&5
7892
7893	ac_cv_lib_pthread___pthread_mutex_init=no
7894fi
7895
7896rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7897      conftest$ac_exeext conftest.$ac_ext
7898LIBS=$ac_check_lib_save_LIBS
7899fi
7900{ echo "$as_me:$LINENO: result: $ac_cv_lib_pthread___pthread_mutex_init" >&5
7901echo "${ECHO_T}$ac_cv_lib_pthread___pthread_mutex_init" >&6; }
7902if test $ac_cv_lib_pthread___pthread_mutex_init = yes; then
7903  tcl_ok=yes
7904else
7905  tcl_ok=no
7906fi
7907
7908	    fi
7909
7910	    if test "$tcl_ok" = "yes"; then
7911		# The space is needed
7912		THREADS_LIBS=" -lpthread"
7913	    else
7914		{ echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthreads" >&5
7915echo $ECHO_N "checking for pthread_mutex_init in -lpthreads... $ECHO_C" >&6; }
7916if test "${ac_cv_lib_pthreads_pthread_mutex_init+set}" = set; then
7917  echo $ECHO_N "(cached) $ECHO_C" >&6
7918else
7919  ac_check_lib_save_LIBS=$LIBS
7920LIBS="-lpthreads  $LIBS"
7921cat >conftest.$ac_ext <<_ACEOF
7922/* confdefs.h.  */
7923_ACEOF
7924cat confdefs.h >>conftest.$ac_ext
7925cat >>conftest.$ac_ext <<_ACEOF
7926/* end confdefs.h.  */
7927
7928/* Override any GCC internal prototype to avoid an error.
7929   Use char because int might match the return type of a GCC
7930   builtin and then its argument prototype would still apply.  */
7931#ifdef __cplusplus
7932extern "C"
7933#endif
7934char pthread_mutex_init ();
7935int
7936main ()
7937{
7938return pthread_mutex_init ();
7939  ;
7940  return 0;
7941}
7942_ACEOF
7943rm -f conftest.$ac_objext conftest$ac_exeext
7944if { (ac_try="$ac_link"
7945case "(($ac_try" in
7946  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7947  *) ac_try_echo=$ac_try;;
7948esac
7949eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7950  (eval "$ac_link") 2>conftest.er1
7951  ac_status=$?
7952  grep -v '^ *+' conftest.er1 >conftest.err
7953  rm -f conftest.er1
7954  cat conftest.err >&5
7955  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7956  (exit $ac_status); } && {
7957	 test -z "$ac_c_werror_flag" ||
7958	 test ! -s conftest.err
7959       } && test -s conftest$ac_exeext &&
7960       $as_test_x conftest$ac_exeext; then
7961  ac_cv_lib_pthreads_pthread_mutex_init=yes
7962else
7963  echo "$as_me: failed program was:" >&5
7964sed 's/^/| /' conftest.$ac_ext >&5
7965
7966	ac_cv_lib_pthreads_pthread_mutex_init=no
7967fi
7968
7969rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7970      conftest$ac_exeext conftest.$ac_ext
7971LIBS=$ac_check_lib_save_LIBS
7972fi
7973{ echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_mutex_init" >&5
7974echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_mutex_init" >&6; }
7975if test $ac_cv_lib_pthreads_pthread_mutex_init = yes; then
7976  tcl_ok=yes
7977else
7978  tcl_ok=no
7979fi
7980
7981		if test "$tcl_ok" = "yes"; then
7982		    # The space is needed
7983		    THREADS_LIBS=" -lpthreads"
7984		else
7985		    { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lc" >&5
7986echo $ECHO_N "checking for pthread_mutex_init in -lc... $ECHO_C" >&6; }
7987if test "${ac_cv_lib_c_pthread_mutex_init+set}" = set; then
7988  echo $ECHO_N "(cached) $ECHO_C" >&6
7989else
7990  ac_check_lib_save_LIBS=$LIBS
7991LIBS="-lc  $LIBS"
7992cat >conftest.$ac_ext <<_ACEOF
7993/* confdefs.h.  */
7994_ACEOF
7995cat confdefs.h >>conftest.$ac_ext
7996cat >>conftest.$ac_ext <<_ACEOF
7997/* end confdefs.h.  */
7998
7999/* Override any GCC internal prototype to avoid an error.
8000   Use char because int might match the return type of a GCC
8001   builtin and then its argument prototype would still apply.  */
8002#ifdef __cplusplus
8003extern "C"
8004#endif
8005char pthread_mutex_init ();
8006int
8007main ()
8008{
8009return pthread_mutex_init ();
8010  ;
8011  return 0;
8012}
8013_ACEOF
8014rm -f conftest.$ac_objext conftest$ac_exeext
8015if { (ac_try="$ac_link"
8016case "(($ac_try" in
8017  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8018  *) ac_try_echo=$ac_try;;
8019esac
8020eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8021  (eval "$ac_link") 2>conftest.er1
8022  ac_status=$?
8023  grep -v '^ *+' conftest.er1 >conftest.err
8024  rm -f conftest.er1
8025  cat conftest.err >&5
8026  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8027  (exit $ac_status); } && {
8028	 test -z "$ac_c_werror_flag" ||
8029	 test ! -s conftest.err
8030       } && test -s conftest$ac_exeext &&
8031       $as_test_x conftest$ac_exeext; then
8032  ac_cv_lib_c_pthread_mutex_init=yes
8033else
8034  echo "$as_me: failed program was:" >&5
8035sed 's/^/| /' conftest.$ac_ext >&5
8036
8037	ac_cv_lib_c_pthread_mutex_init=no
8038fi
8039
8040rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8041      conftest$ac_exeext conftest.$ac_ext
8042LIBS=$ac_check_lib_save_LIBS
8043fi
8044{ echo "$as_me:$LINENO: result: $ac_cv_lib_c_pthread_mutex_init" >&5
8045echo "${ECHO_T}$ac_cv_lib_c_pthread_mutex_init" >&6; }
8046if test $ac_cv_lib_c_pthread_mutex_init = yes; then
8047  tcl_ok=yes
8048else
8049  tcl_ok=no
8050fi
8051
8052		    if test "$tcl_ok" = "no"; then
8053			{ echo "$as_me:$LINENO: checking for pthread_mutex_init in -lc_r" >&5
8054echo $ECHO_N "checking for pthread_mutex_init in -lc_r... $ECHO_C" >&6; }
8055if test "${ac_cv_lib_c_r_pthread_mutex_init+set}" = set; then
8056  echo $ECHO_N "(cached) $ECHO_C" >&6
8057else
8058  ac_check_lib_save_LIBS=$LIBS
8059LIBS="-lc_r  $LIBS"
8060cat >conftest.$ac_ext <<_ACEOF
8061/* confdefs.h.  */
8062_ACEOF
8063cat confdefs.h >>conftest.$ac_ext
8064cat >>conftest.$ac_ext <<_ACEOF
8065/* end confdefs.h.  */
8066
8067/* Override any GCC internal prototype to avoid an error.
8068   Use char because int might match the return type of a GCC
8069   builtin and then its argument prototype would still apply.  */
8070#ifdef __cplusplus
8071extern "C"
8072#endif
8073char pthread_mutex_init ();
8074int
8075main ()
8076{
8077return pthread_mutex_init ();
8078  ;
8079  return 0;
8080}
8081_ACEOF
8082rm -f conftest.$ac_objext conftest$ac_exeext
8083if { (ac_try="$ac_link"
8084case "(($ac_try" in
8085  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8086  *) ac_try_echo=$ac_try;;
8087esac
8088eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8089  (eval "$ac_link") 2>conftest.er1
8090  ac_status=$?
8091  grep -v '^ *+' conftest.er1 >conftest.err
8092  rm -f conftest.er1
8093  cat conftest.err >&5
8094  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8095  (exit $ac_status); } && {
8096	 test -z "$ac_c_werror_flag" ||
8097	 test ! -s conftest.err
8098       } && test -s conftest$ac_exeext &&
8099       $as_test_x conftest$ac_exeext; then
8100  ac_cv_lib_c_r_pthread_mutex_init=yes
8101else
8102  echo "$as_me: failed program was:" >&5
8103sed 's/^/| /' conftest.$ac_ext >&5
8104
8105	ac_cv_lib_c_r_pthread_mutex_init=no
8106fi
8107
8108rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8109      conftest$ac_exeext conftest.$ac_ext
8110LIBS=$ac_check_lib_save_LIBS
8111fi
8112{ echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_mutex_init" >&5
8113echo "${ECHO_T}$ac_cv_lib_c_r_pthread_mutex_init" >&6; }
8114if test $ac_cv_lib_c_r_pthread_mutex_init = yes; then
8115  tcl_ok=yes
8116else
8117  tcl_ok=no
8118fi
8119
8120			if test "$tcl_ok" = "yes"; then
8121			    # The space is needed
8122			    THREADS_LIBS=" -pthread"
8123			else
8124			    TCL_THREADS=0
8125			    { echo "$as_me:$LINENO: WARNING: Do not know how to find pthread lib on your system - thread support disabled" >&5
8126echo "$as_me: WARNING: Do not know how to find pthread lib on your system - thread support disabled" >&2;}
8127			fi
8128		    fi
8129		fi
8130	    fi
8131	fi
8132    else
8133	TCL_THREADS=0
8134    fi
8135    # Do checking message here to not mess up interleaved configure output
8136    { echo "$as_me:$LINENO: checking for building with threads" >&5
8137echo $ECHO_N "checking for building with threads... $ECHO_C" >&6; }
8138    if test "${TCL_THREADS}" = 1; then
8139
8140cat >>confdefs.h <<\_ACEOF
8141#define TCL_THREADS 1
8142_ACEOF
8143
8144	{ echo "$as_me:$LINENO: result: yes (default)" >&5
8145echo "${ECHO_T}yes (default)" >&6; }
8146    else
8147	{ echo "$as_me:$LINENO: result: no" >&5
8148echo "${ECHO_T}no" >&6; }
8149    fi
8150    # TCL_THREADS sanity checking.  See if our request for building with
8151    # threads is the same as the way Tcl was built.  If not, warn the user.
8152    case ${TCL_DEFS} in
8153	*THREADS=1*)
8154	    if test "${TCL_THREADS}" = "0"; then
8155		{ echo "$as_me:$LINENO: WARNING:
8156    Building ${PACKAGE_NAME} without threads enabled, but building against Tcl
8157    that IS thread-enabled.  It is recommended to use --enable-threads." >&5
8158echo "$as_me: WARNING:
8159    Building ${PACKAGE_NAME} without threads enabled, but building against Tcl
8160    that IS thread-enabled.  It is recommended to use --enable-threads." >&2;}
8161	    fi
8162	    ;;
8163	*)
8164	    if test "${TCL_THREADS}" = "1"; then
8165		{ echo "$as_me:$LINENO: WARNING:
8166    --enable-threads requested, but building against a Tcl that is NOT
8167    thread-enabled.  This is an OK configuration that will also run in
8168    a thread-enabled core." >&5
8169echo "$as_me: WARNING:
8170    --enable-threads requested, but building against a Tcl that is NOT
8171    thread-enabled.  This is an OK configuration that will also run in
8172    a thread-enabled core." >&2;}
8173	    fi
8174	    ;;
8175    esac
8176
8177
8178
8179#--------------------------------------------------------------------
8180# The statement below defines a collection of symbols related to
8181# building as a shared library instead of a static library.
8182#--------------------------------------------------------------------
8183
8184
8185    { echo "$as_me:$LINENO: checking how to build libraries" >&5
8186echo $ECHO_N "checking how to build libraries... $ECHO_C" >&6; }
8187    # Check whether --enable-shared was given.
8188if test "${enable_shared+set}" = set; then
8189  enableval=$enable_shared; tcl_ok=$enableval
8190else
8191  tcl_ok=yes
8192fi
8193
8194
8195    if test "${enable_shared+set}" = set; then
8196	enableval="$enable_shared"
8197	tcl_ok=$enableval
8198    else
8199	tcl_ok=yes
8200    fi
8201
8202    if test "$tcl_ok" = "yes" ; then
8203	{ echo "$as_me:$LINENO: result: shared" >&5
8204echo "${ECHO_T}shared" >&6; }
8205	SHARED_BUILD=1
8206    else
8207	{ echo "$as_me:$LINENO: result: static" >&5
8208echo "${ECHO_T}static" >&6; }
8209	SHARED_BUILD=0
8210
8211cat >>confdefs.h <<\_ACEOF
8212#define STATIC_BUILD 1
8213_ACEOF
8214
8215    fi
8216
8217
8218
8219#--------------------------------------------------------------------
8220# This macro figures out what flags to use with the compiler/linker
8221# when building shared/static debug/optimized objects.  This information
8222# can be taken from the tclConfig.sh file, but this figures it all out.
8223#--------------------------------------------------------------------
8224
8225
8226
8227
8228    # Step 0.a: Enable 64 bit support?
8229
8230    { echo "$as_me:$LINENO: checking if 64bit support is requested" >&5
8231echo $ECHO_N "checking if 64bit support is requested... $ECHO_C" >&6; }
8232    # Check whether --enable-64bit was given.
8233if test "${enable_64bit+set}" = set; then
8234  enableval=$enable_64bit; do64bit=$enableval
8235else
8236  do64bit=no
8237fi
8238
8239    { echo "$as_me:$LINENO: result: $do64bit" >&5
8240echo "${ECHO_T}$do64bit" >&6; }
8241
8242    # Step 0.b: Enable Solaris 64 bit VIS support?
8243
8244    { echo "$as_me:$LINENO: checking if 64bit Sparc VIS support is requested" >&5
8245echo $ECHO_N "checking if 64bit Sparc VIS support is requested... $ECHO_C" >&6; }
8246    # Check whether --enable-64bit-vis was given.
8247if test "${enable_64bit_vis+set}" = set; then
8248  enableval=$enable_64bit_vis; do64bitVIS=$enableval
8249else
8250  do64bitVIS=no
8251fi
8252
8253    { echo "$as_me:$LINENO: result: $do64bitVIS" >&5
8254echo "${ECHO_T}$do64bitVIS" >&6; }
8255    # Force 64bit on with VIS
8256    if test "$do64bitVIS" = "yes"; then
8257  do64bit=yes
8258fi
8259
8260
8261    # Step 0.c: Check if visibility support is available. Do this here so
8262    # that platform specific alternatives can be used below if this fails.
8263
8264    { echo "$as_me:$LINENO: checking if compiler supports visibility \"hidden\"" >&5
8265echo $ECHO_N "checking if compiler supports visibility \"hidden\"... $ECHO_C" >&6; }
8266if test "${tcl_cv_cc_visibility_hidden+set}" = set; then
8267  echo $ECHO_N "(cached) $ECHO_C" >&6
8268else
8269
8270	hold_cflags=$CFLAGS; CFLAGS="$CFLAGS -Werror"
8271	cat >conftest.$ac_ext <<_ACEOF
8272/* confdefs.h.  */
8273_ACEOF
8274cat confdefs.h >>conftest.$ac_ext
8275cat >>conftest.$ac_ext <<_ACEOF
8276/* end confdefs.h.  */
8277
8278	    extern __attribute__((__visibility__("hidden"))) void f(void);
8279	    void f(void) {}
8280int
8281main ()
8282{
8283f();
8284  ;
8285  return 0;
8286}
8287_ACEOF
8288rm -f conftest.$ac_objext conftest$ac_exeext
8289if { (ac_try="$ac_link"
8290case "(($ac_try" in
8291  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8292  *) ac_try_echo=$ac_try;;
8293esac
8294eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8295  (eval "$ac_link") 2>conftest.er1
8296  ac_status=$?
8297  grep -v '^ *+' conftest.er1 >conftest.err
8298  rm -f conftest.er1
8299  cat conftest.err >&5
8300  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8301  (exit $ac_status); } && {
8302	 test -z "$ac_c_werror_flag" ||
8303	 test ! -s conftest.err
8304       } && test -s conftest$ac_exeext &&
8305       $as_test_x conftest$ac_exeext; then
8306  tcl_cv_cc_visibility_hidden=yes
8307else
8308  echo "$as_me: failed program was:" >&5
8309sed 's/^/| /' conftest.$ac_ext >&5
8310
8311	tcl_cv_cc_visibility_hidden=no
8312fi
8313
8314rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8315      conftest$ac_exeext conftest.$ac_ext
8316	CFLAGS=$hold_cflags
8317fi
8318{ echo "$as_me:$LINENO: result: $tcl_cv_cc_visibility_hidden" >&5
8319echo "${ECHO_T}$tcl_cv_cc_visibility_hidden" >&6; }
8320    if test $tcl_cv_cc_visibility_hidden = yes; then
8321
8322
8323cat >>confdefs.h <<\_ACEOF
8324#define MODULE_SCOPE extern __attribute__((__visibility__("hidden")))
8325_ACEOF
8326
8327
8328fi
8329
8330
8331    # Step 0.d: Disable -rpath support?
8332
8333    { echo "$as_me:$LINENO: checking if rpath support is requested" >&5
8334echo $ECHO_N "checking if rpath support is requested... $ECHO_C" >&6; }
8335    # Check whether --enable-rpath was given.
8336if test "${enable_rpath+set}" = set; then
8337  enableval=$enable_rpath; doRpath=$enableval
8338else
8339  doRpath=yes
8340fi
8341
8342    { echo "$as_me:$LINENO: result: $doRpath" >&5
8343echo "${ECHO_T}$doRpath" >&6; }
8344
8345    # TEA specific: Cross-compiling options for Windows/CE builds?
8346
8347    if test "${TEA_PLATFORM}" = windows; then
8348
8349	{ echo "$as_me:$LINENO: checking if Windows/CE build is requested" >&5
8350echo $ECHO_N "checking if Windows/CE build is requested... $ECHO_C" >&6; }
8351	# Check whether --enable-wince was given.
8352if test "${enable_wince+set}" = set; then
8353  enableval=$enable_wince; doWince=$enableval
8354else
8355  doWince=no
8356fi
8357
8358	{ echo "$as_me:$LINENO: result: $doWince" >&5
8359echo "${ECHO_T}$doWince" >&6; }
8360
8361fi
8362
8363
8364    # Set the variable "system" to hold the name and version number
8365    # for the system.
8366
8367
8368    { echo "$as_me:$LINENO: checking system version" >&5
8369echo $ECHO_N "checking system version... $ECHO_C" >&6; }
8370if test "${tcl_cv_sys_version+set}" = set; then
8371  echo $ECHO_N "(cached) $ECHO_C" >&6
8372else
8373
8374	# TEA specific:
8375	if test "${TEA_PLATFORM}" = "windows" ; then
8376	    tcl_cv_sys_version=windows
8377	else
8378	    tcl_cv_sys_version=`uname -s`-`uname -r`
8379	    if test "$?" -ne 0 ; then
8380		{ echo "$as_me:$LINENO: WARNING: can't find uname command" >&5
8381echo "$as_me: WARNING: can't find uname command" >&2;}
8382		tcl_cv_sys_version=unknown
8383	    else
8384		if test "`uname -s`" = "AIX" ; then
8385		    tcl_cv_sys_version=AIX-`uname -v`.`uname -r`
8386		fi
8387	    fi
8388	fi
8389
8390fi
8391{ echo "$as_me:$LINENO: result: $tcl_cv_sys_version" >&5
8392echo "${ECHO_T}$tcl_cv_sys_version" >&6; }
8393    system=$tcl_cv_sys_version
8394
8395
8396    # Require ranlib early so we can override it in special cases below.
8397
8398
8399
8400    # Set configuration options based on system name and version.
8401    # This is similar to Tcl's unix/tcl.m4 except that we've added a
8402    # "windows" case and removed some core-only vars.
8403
8404    do64bit_ok=no
8405    # default to '{$LIBS}' and set to "" on per-platform necessary basis
8406    SHLIB_LD_LIBS='${LIBS}'
8407    # When ld needs options to work in 64-bit mode, put them in
8408    # LDFLAGS_ARCH so they eventually end up in LDFLAGS even if [load]
8409    # is disabled by the user. [Bug 1016796]
8410    LDFLAGS_ARCH=""
8411    UNSHARED_LIB_SUFFIX=""
8412    # TEA specific: use PACKAGE_VERSION instead of VERSION
8413    TCL_TRIM_DOTS='`echo ${PACKAGE_VERSION} | tr -d .`'
8414    ECHO_VERSION='`echo ${PACKAGE_VERSION}`'
8415    TCL_LIB_VERSIONS_OK=ok
8416    CFLAGS_DEBUG=-g
8417    CFLAGS_OPTIMIZE=-O
8418    if test "$GCC" = yes; then
8419
8420	# TEA specific:
8421	CFLAGS_OPTIMIZE=-O2
8422	CFLAGS_WARNING="-Wall"
8423
8424else
8425  CFLAGS_WARNING=""
8426fi
8427
8428    # Extract the first word of "ar", so it can be a program name with args.
8429set dummy ar; ac_word=$2
8430{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8431echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8432if test "${ac_cv_prog_AR+set}" = set; then
8433  echo $ECHO_N "(cached) $ECHO_C" >&6
8434else
8435  if test -n "$AR"; then
8436  ac_cv_prog_AR="$AR" # Let the user override the test.
8437else
8438as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8439for as_dir in $PATH
8440do
8441  IFS=$as_save_IFS
8442  test -z "$as_dir" && as_dir=.
8443  for ac_exec_ext in '' $ac_executable_extensions; do
8444  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8445    ac_cv_prog_AR="ar"
8446    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8447    break 2
8448  fi
8449done
8450done
8451IFS=$as_save_IFS
8452
8453fi
8454fi
8455AR=$ac_cv_prog_AR
8456if test -n "$AR"; then
8457  { echo "$as_me:$LINENO: result: $AR" >&5
8458echo "${ECHO_T}$AR" >&6; }
8459else
8460  { echo "$as_me:$LINENO: result: no" >&5
8461echo "${ECHO_T}no" >&6; }
8462fi
8463
8464
8465    STLIB_LD='${AR} cr'
8466    LD_LIBRARY_PATH_VAR="LD_LIBRARY_PATH"
8467    if test "x$SHLIB_VERSION" = x; then
8468  SHLIB_VERSION="1.0"
8469fi
8470
8471    case $system in
8472	# TEA specific:
8473	windows)
8474	    # This is a 2-stage check to make sure we have the 64-bit SDK
8475	    # We have to know where the SDK is installed.
8476	    # This magic is based on MS Platform SDK for Win2003 SP1 - hobbs
8477	    # MACHINE is IX86 for LINK, but this is used by the manifest,
8478	    # which requires x86|amd64|ia64.
8479	    MACHINE="X86"
8480	    if test "$do64bit" != "no" ; then
8481		if test "x${MSSDK}x" = "xx" ; then
8482		    MSSDK="C:/Progra~1/Microsoft Platform SDK"
8483		fi
8484		MSSDK=`echo "$MSSDK" | sed -e  's!\\\!/!g'`
8485		PATH64=""
8486		case "$do64bit" in
8487		    amd64|x64|yes)
8488			MACHINE="AMD64" ; # default to AMD64 64-bit build
8489			PATH64="${MSSDK}/Bin/Win64/x86/AMD64"
8490			;;
8491		    ia64)
8492			MACHINE="IA64"
8493			PATH64="${MSSDK}/Bin/Win64"
8494			;;
8495		esac
8496		if test ! -d "${PATH64}" ; then
8497		    { echo "$as_me:$LINENO: WARNING: Could not find 64-bit $MACHINE SDK to enable 64bit mode" >&5
8498echo "$as_me: WARNING: Could not find 64-bit $MACHINE SDK to enable 64bit mode" >&2;}
8499		    { echo "$as_me:$LINENO: WARNING: Ensure latest Platform SDK is installed" >&5
8500echo "$as_me: WARNING: Ensure latest Platform SDK is installed" >&2;}
8501		    do64bit="no"
8502		else
8503		    { echo "$as_me:$LINENO: result:    Using 64-bit $MACHINE mode" >&5
8504echo "${ECHO_T}   Using 64-bit $MACHINE mode" >&6; }
8505		    do64bit_ok="yes"
8506		fi
8507	    fi
8508
8509	    if test "$doWince" != "no" ; then
8510		if test "$do64bit" != "no" ; then
8511		    { { echo "$as_me:$LINENO: error: Windows/CE and 64-bit builds incompatible" >&5
8512echo "$as_me: error: Windows/CE and 64-bit builds incompatible" >&2;}
8513   { (exit 1); exit 1; }; }
8514		fi
8515		if test "$GCC" = "yes" ; then
8516		    { { echo "$as_me:$LINENO: error: Windows/CE and GCC builds incompatible" >&5
8517echo "$as_me: error: Windows/CE and GCC builds incompatible" >&2;}
8518   { (exit 1); exit 1; }; }
8519		fi
8520
8521    # First, look for one uninstalled.
8522    # the alternative search directory is invoked by --with-celib
8523
8524    if test x"${no_celib}" = x ; then
8525	# we reset no_celib in case something fails here
8526	no_celib=true
8527
8528# Check whether --with-celib was given.
8529if test "${with_celib+set}" = set; then
8530  withval=$with_celib; with_celibconfig=${withval}
8531fi
8532
8533	{ echo "$as_me:$LINENO: checking for Windows/CE celib directory" >&5
8534echo $ECHO_N "checking for Windows/CE celib directory... $ECHO_C" >&6; }
8535	if test "${ac_cv_c_celibconfig+set}" = set; then
8536  echo $ECHO_N "(cached) $ECHO_C" >&6
8537else
8538
8539	    # First check to see if --with-celibconfig was specified.
8540	    if test x"${with_celibconfig}" != x ; then
8541		if test -d "${with_celibconfig}/inc" ; then
8542		    ac_cv_c_celibconfig=`(cd ${with_celibconfig}; pwd)`
8543		else
8544		    { { echo "$as_me:$LINENO: error: ${with_celibconfig} directory doesn't contain inc directory" >&5
8545echo "$as_me: error: ${with_celibconfig} directory doesn't contain inc directory" >&2;}
8546   { (exit 1); exit 1; }; }
8547		fi
8548	    fi
8549
8550	    # then check for a celib library
8551	    if test x"${ac_cv_c_celibconfig}" = x ; then
8552		for i in \
8553			../celib-palm-3.0 \
8554			../celib \
8555			../../celib-palm-3.0 \
8556			../../celib \
8557			`ls -dr ../celib-*3.[0-9]* 2>/dev/null` \
8558			${srcdir}/../celib-palm-3.0 \
8559			${srcdir}/../celib \
8560			`ls -dr ${srcdir}/../celib-*3.[0-9]* 2>/dev/null` \
8561			; do
8562		    if test -d "$i/inc" ; then
8563			ac_cv_c_celibconfig=`(cd $i; pwd)`
8564			break
8565		    fi
8566		done
8567	    fi
8568
8569fi
8570
8571	if test x"${ac_cv_c_celibconfig}" = x ; then
8572	    { { echo "$as_me:$LINENO: error: Cannot find celib support library directory" >&5
8573echo "$as_me: error: Cannot find celib support library directory" >&2;}
8574   { (exit 1); exit 1; }; }
8575	else
8576	    no_celib=
8577	    CELIB_DIR=${ac_cv_c_celibconfig}
8578	    CELIB_DIR=`echo "$CELIB_DIR" | sed -e 's!\\\!/!g'`
8579	    { echo "$as_me:$LINENO: result: found $CELIB_DIR" >&5
8580echo "${ECHO_T}found $CELIB_DIR" >&6; }
8581	fi
8582    fi
8583
8584		# Set defaults for common evc4/PPC2003 setup
8585		# Currently Tcl requires 300+, possibly 420+ for sockets
8586		CEVERSION=420; 		# could be 211 300 301 400 420 ...
8587		TARGETCPU=ARMV4;	# could be ARMV4 ARM MIPS SH3 X86 ...
8588		ARCH=ARM;		# could be ARM MIPS X86EM ...
8589		PLATFORM="Pocket PC 2003"; # or "Pocket PC 2002"
8590		if test "$doWince" != "yes"; then
8591		    # If !yes then the user specified something
8592		    # Reset ARCH to allow user to skip specifying it
8593		    ARCH=
8594		    eval `echo $doWince | awk -F, '{ \
8595	    if (length($1)) { printf "CEVERSION=\"%s\"\n", $1; \
8596	    if ($1 < 400)   { printf "PLATFORM=\"Pocket PC 2002\"\n" } }; \
8597	    if (length($2)) { printf "TARGETCPU=\"%s\"\n", toupper($2) }; \
8598	    if (length($3)) { printf "ARCH=\"%s\"\n", toupper($3) }; \
8599	    if (length($4)) { printf "PLATFORM=\"%s\"\n", $4 }; \
8600		    }'`
8601		    if test "x${ARCH}" = "x" ; then
8602			ARCH=$TARGETCPU;
8603		    fi
8604		fi
8605		OSVERSION=WCE$CEVERSION;
8606	    	if test "x${WCEROOT}" = "x" ; then
8607			WCEROOT="C:/Program Files/Microsoft eMbedded C++ 4.0"
8608		    if test ! -d "${WCEROOT}" ; then
8609			WCEROOT="C:/Program Files/Microsoft eMbedded Tools"
8610		    fi
8611		fi
8612		if test "x${SDKROOT}" = "x" ; then
8613		    SDKROOT="C:/Program Files/Windows CE Tools"
8614		    if test ! -d "${SDKROOT}" ; then
8615			SDKROOT="C:/Windows CE Tools"
8616		    fi
8617		fi
8618		WCEROOT=`echo "$WCEROOT" | sed -e 's!\\\!/!g'`
8619		SDKROOT=`echo "$SDKROOT" | sed -e 's!\\\!/!g'`
8620		if test ! -d "${SDKROOT}/${OSVERSION}/${PLATFORM}/Lib/${TARGETCPU}" \
8621		    -o ! -d "${WCEROOT}/EVC/${OSVERSION}/bin"; then
8622		    { { echo "$as_me:$LINENO: error: could not find PocketPC SDK or target compiler to enable WinCE mode $CEVERSION,$TARGETCPU,$ARCH,$PLATFORM" >&5
8623echo "$as_me: error: could not find PocketPC SDK or target compiler to enable WinCE mode $CEVERSION,$TARGETCPU,$ARCH,$PLATFORM" >&2;}
8624   { (exit 1); exit 1; }; }
8625		    doWince="no"
8626		else
8627		    # We could PATH_NOSPACE these, but that's not important,
8628		    # as long as we quote them when used.
8629		    CEINCLUDE="${SDKROOT}/${OSVERSION}/${PLATFORM}/include"
8630		    if test -d "${CEINCLUDE}/${TARGETCPU}" ; then
8631			CEINCLUDE="${CEINCLUDE}/${TARGETCPU}"
8632		    fi
8633		    CELIBPATH="${SDKROOT}/${OSVERSION}/${PLATFORM}/Lib/${TARGETCPU}"
8634    		fi
8635	    fi
8636
8637	    if test "$GCC" != "yes" ; then
8638	        if test "${SHARED_BUILD}" = "0" ; then
8639		    runtime=-MT
8640	        else
8641		    runtime=-MD
8642	        fi
8643
8644                if test "$do64bit" != "no" ; then
8645		    # All this magic is necessary for the Win64 SDK RC1 - hobbs
8646		    CC="\"${PATH64}/cl.exe\""
8647		    CFLAGS="${CFLAGS} -I\"${MSSDK}/Include\" -I\"${MSSDK}/Include/crt\" -I\"${MSSDK}/Include/crt/sys\""
8648		    RC="\"${MSSDK}/bin/rc.exe\""
8649		    lflags="-nologo -MACHINE:${MACHINE} -LIBPATH:\"${MSSDK}/Lib/${MACHINE}\""
8650		    LINKBIN="\"${PATH64}/link.exe\""
8651		    CFLAGS_DEBUG="-nologo -Zi -Od -W3 ${runtime}d"
8652		    CFLAGS_OPTIMIZE="-nologo -O2 -W2 ${runtime}"
8653		    # Avoid 'unresolved external symbol __security_cookie'
8654		    # errors, c.f. http://support.microsoft.com/?id=894573
8655
8656    vars="bufferoverflowU.lib"
8657    for i in $vars; do
8658	if test "${TEA_PLATFORM}" = "windows" -a "$GCC" = "yes" ; then
8659	    # Convert foo.lib to -lfoo for GCC.  No-op if not *.lib
8660	    i=`echo "$i" | sed -e 's/^\([^-].*\)\.lib$/-l\1/i'`
8661	fi
8662	PKG_LIBS="$PKG_LIBS $i"
8663    done
8664
8665
8666		elif test "$doWince" != "no" ; then
8667		    CEBINROOT="${WCEROOT}/EVC/${OSVERSION}/bin"
8668		    if test "${TARGETCPU}" = "X86"; then
8669			CC="\"${CEBINROOT}/cl.exe\""
8670		    else
8671			CC="\"${CEBINROOT}/cl${ARCH}.exe\""
8672		    fi
8673		    CFLAGS="$CFLAGS -I\"${CELIB_DIR}/inc\" -I\"${CEINCLUDE}\""
8674		    RC="\"${WCEROOT}/Common/EVC/bin/rc.exe\""
8675		    arch=`echo ${ARCH} | awk '{print tolower($0)}'`
8676		    defs="${ARCH} _${ARCH}_ ${arch} PALM_SIZE _MT _WINDOWS"
8677		    if test "${SHARED_BUILD}" = "1" ; then
8678			# Static CE builds require static celib as well
8679		    	defs="${defs} _DLL"
8680		    fi
8681		    for i in $defs ; do
8682
8683cat >>confdefs.h <<_ACEOF
8684#define $i 1
8685_ACEOF
8686
8687		    done
8688
8689cat >>confdefs.h <<_ACEOF
8690#define _WIN32_WCE $CEVERSION
8691_ACEOF
8692
8693
8694cat >>confdefs.h <<_ACEOF
8695#define UNDER_CE $CEVERSION
8696_ACEOF
8697
8698		    CFLAGS_DEBUG="-nologo -Zi -Od"
8699		    CFLAGS_OPTIMIZE="-nologo -Ox"
8700		    lversion=`echo ${CEVERSION} | sed -e 's/\(.\)\(..\)/\1\.\2/'`
8701		    lflags="-MACHINE:${ARCH} -LIBPATH:\"${CELIBPATH}\" -subsystem:windowsce,${lversion} -nologo"
8702		    LINKBIN="\"${CEBINROOT}/link.exe\""
8703
8704		else
8705		    RC="rc"
8706		    lflags="-nologo"
8707    		    LINKBIN="link"
8708		    CFLAGS_DEBUG="-nologo -Z7 -Od -W3 -WX ${runtime}d"
8709		    CFLAGS_OPTIMIZE="-nologo -O2 -W2 ${runtime}"
8710		fi
8711	    fi
8712
8713	    if test "$GCC" = "yes"; then
8714		# mingw gcc mode
8715		RC="windres"
8716		CFLAGS_DEBUG="-g"
8717		CFLAGS_OPTIMIZE="-O2 -fomit-frame-pointer"
8718		SHLIB_LD="$CC -shared"
8719		UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.a'
8720		LDFLAGS_CONSOLE="-wl,--subsystem,console ${lflags}"
8721		LDFLAGS_WINDOW="-wl,--subsystem,windows ${lflags}"
8722	    else
8723		SHLIB_LD="${LINKBIN} -dll ${lflags}"
8724		# link -lib only works when -lib is the first arg
8725		STLIB_LD="${LINKBIN} -lib ${lflags}"
8726		UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.lib'
8727		PATHTYPE=-w
8728		# For information on what debugtype is most useful, see:
8729		# http://msdn.microsoft.com/library/en-us/dnvc60/html/gendepdebug.asp
8730		# and also
8731		# http://msdn2.microsoft.com/en-us/library/y0zzbyt4%28VS.80%29.aspx
8732		# This essentially turns it all on.
8733		LDFLAGS_DEBUG="-debug -debugtype:cv"
8734		LDFLAGS_OPTIMIZE="-release"
8735		if test "$doWince" != "no" ; then
8736		    LDFLAGS_CONSOLE="-link ${lflags}"
8737		    LDFLAGS_WINDOW=${LDFLAGS_CONSOLE}
8738		else
8739		    LDFLAGS_CONSOLE="-link -subsystem:console ${lflags}"
8740		    LDFLAGS_WINDOW="-link -subsystem:windows ${lflags}"
8741		fi
8742	    fi
8743
8744	    SHLIB_SUFFIX=".dll"
8745	    SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.dll'
8746
8747	    TCL_LIB_VERSIONS_OK=nodots
8748    	    ;;
8749	AIX-*)
8750	    if test "${TCL_THREADS}" = "1" -a "$GCC" != "yes"; then
8751
8752		# AIX requires the _r compiler when gcc isn't being used
8753		case "${CC}" in
8754		    *_r|*_r\ *)
8755			# ok ...
8756			;;
8757		    *)
8758			# Make sure only first arg gets _r
8759		    	CC=`echo "$CC" | sed -e 's/^\([^ ]*\)/\1_r/'`
8760			;;
8761		esac
8762		{ echo "$as_me:$LINENO: result: Using $CC for compiling with threads" >&5
8763echo "${ECHO_T}Using $CC for compiling with threads" >&6; }
8764
8765fi
8766
8767	    LIBS="$LIBS -lc"
8768	    SHLIB_CFLAGS=""
8769	    SHLIB_SUFFIX=".so"
8770
8771	    LD_LIBRARY_PATH_VAR="LIBPATH"
8772
8773	    # Check to enable 64-bit flags for compiler/linker
8774	    if test "$do64bit" = yes; then
8775
8776		if test "$GCC" = yes; then
8777
8778		    { echo "$as_me:$LINENO: WARNING: 64bit mode not supported with GCC on $system" >&5
8779echo "$as_me: WARNING: 64bit mode not supported with GCC on $system" >&2;}
8780
8781else
8782
8783		    do64bit_ok=yes
8784		    CFLAGS="$CFLAGS -q64"
8785		    LDFLAGS_ARCH="-q64"
8786		    RANLIB="${RANLIB} -X64"
8787		    AR="${AR} -X64"
8788		    SHLIB_LD_FLAGS="-b64"
8789
8790fi
8791
8792
8793fi
8794
8795
8796	    if test "`uname -m`" = ia64; then
8797
8798		# AIX-5 uses ELF style dynamic libraries on IA-64, but not PPC
8799		SHLIB_LD="/usr/ccs/bin/ld -G -z text"
8800		if test "$GCC" = yes; then
8801
8802		    CC_SEARCH_FLAGS='-Wl,-R,${LIB_RUNTIME_DIR}'
8803
8804else
8805
8806		    CC_SEARCH_FLAGS='-R${LIB_RUNTIME_DIR}'
8807
8808fi
8809
8810		LD_SEARCH_FLAGS='-R ${LIB_RUNTIME_DIR}'
8811
8812else
8813
8814		if test "$GCC" = yes; then
8815
8816		    SHLIB_LD='${CC} -shared -Wl,-bexpall'
8817
8818else
8819
8820		    SHLIB_LD="/bin/ld -bhalt:4 -bM:SRE -bexpall -H512 -T512 -bnoentry"
8821		    LDFLAGS="$LDFLAGS -brtl"
8822
8823fi
8824
8825		SHLIB_LD="${SHLIB_LD} ${SHLIB_LD_FLAGS}"
8826		CC_SEARCH_FLAGS='-L${LIB_RUNTIME_DIR}'
8827		LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
8828
8829fi
8830
8831	    ;;
8832	BeOS*)
8833	    SHLIB_CFLAGS="-fPIC"
8834	    SHLIB_LD='${CC} -nostart'
8835	    SHLIB_SUFFIX=".so"
8836
8837	    #-----------------------------------------------------------
8838	    # Check for inet_ntoa in -lbind, for BeOS (which also needs
8839	    # -lsocket, even if the network functions are in -lnet which
8840	    # is always linked to, for compatibility.
8841	    #-----------------------------------------------------------
8842	    { echo "$as_me:$LINENO: checking for inet_ntoa in -lbind" >&5
8843echo $ECHO_N "checking for inet_ntoa in -lbind... $ECHO_C" >&6; }
8844if test "${ac_cv_lib_bind_inet_ntoa+set}" = set; then
8845  echo $ECHO_N "(cached) $ECHO_C" >&6
8846else
8847  ac_check_lib_save_LIBS=$LIBS
8848LIBS="-lbind  $LIBS"
8849cat >conftest.$ac_ext <<_ACEOF
8850/* confdefs.h.  */
8851_ACEOF
8852cat confdefs.h >>conftest.$ac_ext
8853cat >>conftest.$ac_ext <<_ACEOF
8854/* end confdefs.h.  */
8855
8856/* Override any GCC internal prototype to avoid an error.
8857   Use char because int might match the return type of a GCC
8858   builtin and then its argument prototype would still apply.  */
8859#ifdef __cplusplus
8860extern "C"
8861#endif
8862char inet_ntoa ();
8863int
8864main ()
8865{
8866return inet_ntoa ();
8867  ;
8868  return 0;
8869}
8870_ACEOF
8871rm -f conftest.$ac_objext conftest$ac_exeext
8872if { (ac_try="$ac_link"
8873case "(($ac_try" in
8874  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8875  *) ac_try_echo=$ac_try;;
8876esac
8877eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8878  (eval "$ac_link") 2>conftest.er1
8879  ac_status=$?
8880  grep -v '^ *+' conftest.er1 >conftest.err
8881  rm -f conftest.er1
8882  cat conftest.err >&5
8883  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8884  (exit $ac_status); } && {
8885	 test -z "$ac_c_werror_flag" ||
8886	 test ! -s conftest.err
8887       } && test -s conftest$ac_exeext &&
8888       $as_test_x conftest$ac_exeext; then
8889  ac_cv_lib_bind_inet_ntoa=yes
8890else
8891  echo "$as_me: failed program was:" >&5
8892sed 's/^/| /' conftest.$ac_ext >&5
8893
8894	ac_cv_lib_bind_inet_ntoa=no
8895fi
8896
8897rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8898      conftest$ac_exeext conftest.$ac_ext
8899LIBS=$ac_check_lib_save_LIBS
8900fi
8901{ echo "$as_me:$LINENO: result: $ac_cv_lib_bind_inet_ntoa" >&5
8902echo "${ECHO_T}$ac_cv_lib_bind_inet_ntoa" >&6; }
8903if test $ac_cv_lib_bind_inet_ntoa = yes; then
8904  LIBS="$LIBS -lbind -lsocket"
8905fi
8906
8907	    ;;
8908	BSD/OS-4.*)
8909	    SHLIB_CFLAGS="-export-dynamic -fPIC"
8910	    SHLIB_LD='${CC} -shared'
8911	    SHLIB_SUFFIX=".so"
8912	    LDFLAGS="$LDFLAGS -export-dynamic"
8913	    CC_SEARCH_FLAGS=""
8914	    LD_SEARCH_FLAGS=""
8915	    ;;
8916	CYGWIN_*)
8917	    SHLIB_CFLAGS=""
8918	    SHLIB_LD='${CC} -shared'
8919	    SHLIB_SUFFIX=".dll"
8920	    EXE_SUFFIX=".exe"
8921	    CC_SEARCH_FLAGS=""
8922	    LD_SEARCH_FLAGS=""
8923	    ;;
8924	Haiku*)
8925	    LDFLAGS="$LDFLAGS -Wl,--export-dynamic"
8926	    SHLIB_CFLAGS="-fPIC"
8927	    SHLIB_SUFFIX=".so"
8928	    SHLIB_LD='${CC} -shared ${CFLAGS} ${LDFLAGS}'
8929	    { echo "$as_me:$LINENO: checking for inet_ntoa in -lnetwork" >&5
8930echo $ECHO_N "checking for inet_ntoa in -lnetwork... $ECHO_C" >&6; }
8931if test "${ac_cv_lib_network_inet_ntoa+set}" = set; then
8932  echo $ECHO_N "(cached) $ECHO_C" >&6
8933else
8934  ac_check_lib_save_LIBS=$LIBS
8935LIBS="-lnetwork  $LIBS"
8936cat >conftest.$ac_ext <<_ACEOF
8937/* confdefs.h.  */
8938_ACEOF
8939cat confdefs.h >>conftest.$ac_ext
8940cat >>conftest.$ac_ext <<_ACEOF
8941/* end confdefs.h.  */
8942
8943/* Override any GCC internal prototype to avoid an error.
8944   Use char because int might match the return type of a GCC
8945   builtin and then its argument prototype would still apply.  */
8946#ifdef __cplusplus
8947extern "C"
8948#endif
8949char inet_ntoa ();
8950int
8951main ()
8952{
8953return inet_ntoa ();
8954  ;
8955  return 0;
8956}
8957_ACEOF
8958rm -f conftest.$ac_objext conftest$ac_exeext
8959if { (ac_try="$ac_link"
8960case "(($ac_try" in
8961  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8962  *) ac_try_echo=$ac_try;;
8963esac
8964eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8965  (eval "$ac_link") 2>conftest.er1
8966  ac_status=$?
8967  grep -v '^ *+' conftest.er1 >conftest.err
8968  rm -f conftest.er1
8969  cat conftest.err >&5
8970  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8971  (exit $ac_status); } && {
8972	 test -z "$ac_c_werror_flag" ||
8973	 test ! -s conftest.err
8974       } && test -s conftest$ac_exeext &&
8975       $as_test_x conftest$ac_exeext; then
8976  ac_cv_lib_network_inet_ntoa=yes
8977else
8978  echo "$as_me: failed program was:" >&5
8979sed 's/^/| /' conftest.$ac_ext >&5
8980
8981	ac_cv_lib_network_inet_ntoa=no
8982fi
8983
8984rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8985      conftest$ac_exeext conftest.$ac_ext
8986LIBS=$ac_check_lib_save_LIBS
8987fi
8988{ echo "$as_me:$LINENO: result: $ac_cv_lib_network_inet_ntoa" >&5
8989echo "${ECHO_T}$ac_cv_lib_network_inet_ntoa" >&6; }
8990if test $ac_cv_lib_network_inet_ntoa = yes; then
8991  LIBS="$LIBS -lnetwork"
8992fi
8993
8994	    ;;
8995	HP-UX-*.11.*)
8996	    # Use updated header definitions where possible
8997
8998cat >>confdefs.h <<\_ACEOF
8999#define _XOPEN_SOURCE_EXTENDED 1
9000_ACEOF
9001
9002	    # TEA specific: Needed by Tcl, but not most extensions
9003	    #AC_DEFINE(_XOPEN_SOURCE, 1, [Do we want to use the XOPEN network library?])
9004	    #LIBS="$LIBS -lxnet"               # Use the XOPEN network library
9005
9006	    if test "`uname -m`" = ia64; then
9007
9008		SHLIB_SUFFIX=".so"
9009		# Use newer C++ library for C++ extensions
9010		#if test "$GCC" != "yes" ; then
9011		#   CPPFLAGS="-AA"
9012		#fi
9013
9014else
9015
9016		SHLIB_SUFFIX=".sl"
9017
9018fi
9019
9020	    { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9021echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9022if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9023  echo $ECHO_N "(cached) $ECHO_C" >&6
9024else
9025  ac_check_lib_save_LIBS=$LIBS
9026LIBS="-ldld  $LIBS"
9027cat >conftest.$ac_ext <<_ACEOF
9028/* confdefs.h.  */
9029_ACEOF
9030cat confdefs.h >>conftest.$ac_ext
9031cat >>conftest.$ac_ext <<_ACEOF
9032/* end confdefs.h.  */
9033
9034/* Override any GCC internal prototype to avoid an error.
9035   Use char because int might match the return type of a GCC
9036   builtin and then its argument prototype would still apply.  */
9037#ifdef __cplusplus
9038extern "C"
9039#endif
9040char shl_load ();
9041int
9042main ()
9043{
9044return shl_load ();
9045  ;
9046  return 0;
9047}
9048_ACEOF
9049rm -f conftest.$ac_objext conftest$ac_exeext
9050if { (ac_try="$ac_link"
9051case "(($ac_try" in
9052  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9053  *) ac_try_echo=$ac_try;;
9054esac
9055eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9056  (eval "$ac_link") 2>conftest.er1
9057  ac_status=$?
9058  grep -v '^ *+' conftest.er1 >conftest.err
9059  rm -f conftest.er1
9060  cat conftest.err >&5
9061  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9062  (exit $ac_status); } && {
9063	 test -z "$ac_c_werror_flag" ||
9064	 test ! -s conftest.err
9065       } && test -s conftest$ac_exeext &&
9066       $as_test_x conftest$ac_exeext; then
9067  ac_cv_lib_dld_shl_load=yes
9068else
9069  echo "$as_me: failed program was:" >&5
9070sed 's/^/| /' conftest.$ac_ext >&5
9071
9072	ac_cv_lib_dld_shl_load=no
9073fi
9074
9075rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9076      conftest$ac_exeext conftest.$ac_ext
9077LIBS=$ac_check_lib_save_LIBS
9078fi
9079{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9080echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9081if test $ac_cv_lib_dld_shl_load = yes; then
9082  tcl_ok=yes
9083else
9084  tcl_ok=no
9085fi
9086
9087	    if test "$tcl_ok" = yes; then
9088
9089		LDFLAGS="$LDFLAGS -E"
9090		CC_SEARCH_FLAGS='-Wl,+s,+b,${LIB_RUNTIME_DIR}:.'
9091		LD_SEARCH_FLAGS='+s +b ${LIB_RUNTIME_DIR}:.'
9092		LD_LIBRARY_PATH_VAR="SHLIB_PATH"
9093
9094fi
9095
9096	    if test "$GCC" = yes; then
9097
9098		SHLIB_LD='${CC} -shared'
9099		LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
9100
9101else
9102
9103		CFLAGS="$CFLAGS -z"
9104		# Users may want PA-RISC 1.1/2.0 portable code - needs HP cc
9105		#CFLAGS="$CFLAGS +DAportable"
9106		SHLIB_CFLAGS="+z"
9107		SHLIB_LD="ld -b"
9108
9109fi
9110
9111
9112	    # Check to enable 64-bit flags for compiler/linker
9113	    if test "$do64bit" = "yes"; then
9114
9115		if test "$GCC" = yes; then
9116
9117		    case `${CC} -dumpmachine` in
9118			hppa64*)
9119			    # 64-bit gcc in use.  Fix flags for GNU ld.
9120			    do64bit_ok=yes
9121			    SHLIB_LD='${CC} -shared'
9122			    if test $doRpath = yes; then
9123
9124				CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}'
9125fi
9126
9127			    LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
9128			    ;;
9129			*)
9130			    { echo "$as_me:$LINENO: WARNING: 64bit mode not supported with GCC on $system" >&5
9131echo "$as_me: WARNING: 64bit mode not supported with GCC on $system" >&2;}
9132			    ;;
9133		    esac
9134
9135else
9136
9137		    do64bit_ok=yes
9138		    CFLAGS="$CFLAGS +DD64"
9139		    LDFLAGS_ARCH="+DD64"
9140
9141fi
9142
9143
9144fi
9145 ;;
9146	IRIX-6.*)
9147	    SHLIB_CFLAGS=""
9148	    SHLIB_LD="ld -n32 -shared -rdata_shared"
9149	    SHLIB_SUFFIX=".so"
9150	    if test $doRpath = yes; then
9151
9152		CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}'
9153		LD_SEARCH_FLAGS='-rpath ${LIB_RUNTIME_DIR}'
9154fi
9155
9156	    if test "$GCC" = yes; then
9157
9158		CFLAGS="$CFLAGS -mabi=n32"
9159		LDFLAGS="$LDFLAGS -mabi=n32"
9160
9161else
9162
9163		case $system in
9164		    IRIX-6.3)
9165			# Use to build 6.2 compatible binaries on 6.3.
9166			CFLAGS="$CFLAGS -n32 -D_OLD_TERMIOS"
9167			;;
9168		    *)
9169			CFLAGS="$CFLAGS -n32"
9170			;;
9171		esac
9172		LDFLAGS="$LDFLAGS -n32"
9173
9174fi
9175
9176	    ;;
9177	IRIX64-6.*)
9178	    SHLIB_CFLAGS=""
9179	    SHLIB_LD="ld -n32 -shared -rdata_shared"
9180	    SHLIB_SUFFIX=".so"
9181	    if test $doRpath = yes; then
9182
9183		CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}'
9184		LD_SEARCH_FLAGS='-rpath ${LIB_RUNTIME_DIR}'
9185fi
9186
9187
9188	    # Check to enable 64-bit flags for compiler/linker
9189
9190	    if test "$do64bit" = yes; then
9191
9192	        if test "$GCC" = yes; then
9193
9194	            { echo "$as_me:$LINENO: WARNING: 64bit mode not supported by gcc" >&5
9195echo "$as_me: WARNING: 64bit mode not supported by gcc" >&2;}
9196
9197else
9198
9199	            do64bit_ok=yes
9200	            SHLIB_LD="ld -64 -shared -rdata_shared"
9201	            CFLAGS="$CFLAGS -64"
9202	            LDFLAGS_ARCH="-64"
9203
9204fi
9205
9206
9207fi
9208
9209	    ;;
9210	Linux*)
9211	    SHLIB_CFLAGS="-fPIC"
9212	    SHLIB_SUFFIX=".so"
9213
9214	    # TEA specific:
9215	    CFLAGS_OPTIMIZE="-O2 -fomit-frame-pointer"
9216
9217	    # TEA specific: use LDFLAGS_DEFAULT instead of LDFLAGS
9218	    SHLIB_LD='${CC} -shared ${CFLAGS} ${LDFLAGS_DEFAULT}'
9219	    LDFLAGS="$LDFLAGS -Wl,--export-dynamic"
9220	    if test $doRpath = yes; then
9221
9222		CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}'
9223fi
9224
9225	    LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
9226	    if test "`uname -m`" = "alpha"; then
9227  CFLAGS="$CFLAGS -mieee"
9228fi
9229
9230	    if test $do64bit = yes; then
9231
9232		{ echo "$as_me:$LINENO: checking if compiler accepts -m64 flag" >&5
9233echo $ECHO_N "checking if compiler accepts -m64 flag... $ECHO_C" >&6; }
9234if test "${tcl_cv_cc_m64+set}" = set; then
9235  echo $ECHO_N "(cached) $ECHO_C" >&6
9236else
9237
9238		    hold_cflags=$CFLAGS
9239		    CFLAGS="$CFLAGS -m64"
9240		    cat >conftest.$ac_ext <<_ACEOF
9241/* confdefs.h.  */
9242_ACEOF
9243cat confdefs.h >>conftest.$ac_ext
9244cat >>conftest.$ac_ext <<_ACEOF
9245/* end confdefs.h.  */
9246
9247int
9248main ()
9249{
9250
9251  ;
9252  return 0;
9253}
9254_ACEOF
9255rm -f conftest.$ac_objext conftest$ac_exeext
9256if { (ac_try="$ac_link"
9257case "(($ac_try" in
9258  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9259  *) ac_try_echo=$ac_try;;
9260esac
9261eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9262  (eval "$ac_link") 2>conftest.er1
9263  ac_status=$?
9264  grep -v '^ *+' conftest.er1 >conftest.err
9265  rm -f conftest.er1
9266  cat conftest.err >&5
9267  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9268  (exit $ac_status); } && {
9269	 test -z "$ac_c_werror_flag" ||
9270	 test ! -s conftest.err
9271       } && test -s conftest$ac_exeext &&
9272       $as_test_x conftest$ac_exeext; then
9273  tcl_cv_cc_m64=yes
9274else
9275  echo "$as_me: failed program was:" >&5
9276sed 's/^/| /' conftest.$ac_ext >&5
9277
9278	tcl_cv_cc_m64=no
9279fi
9280
9281rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9282      conftest$ac_exeext conftest.$ac_ext
9283		    CFLAGS=$hold_cflags
9284fi
9285{ echo "$as_me:$LINENO: result: $tcl_cv_cc_m64" >&5
9286echo "${ECHO_T}$tcl_cv_cc_m64" >&6; }
9287		if test $tcl_cv_cc_m64 = yes; then
9288
9289		    CFLAGS="$CFLAGS -m64"
9290		    do64bit_ok=yes
9291
9292fi
9293
9294
9295fi
9296
9297
9298	    # The combo of gcc + glibc has a bug related to inlining of
9299	    # functions like strtod(). The -fno-builtin flag should address
9300	    # this problem but it does not work. The -fno-inline flag is kind
9301	    # of overkill but it works. Disable inlining only when one of the
9302	    # files in compat/*.c is being linked in.
9303
9304	    if test x"${USE_COMPAT}" != x; then
9305  CFLAGS="$CFLAGS -fno-inline"
9306fi
9307
9308
9309	    ;;
9310	GNU*)
9311	    SHLIB_CFLAGS="-fPIC"
9312	    SHLIB_SUFFIX=".so"
9313
9314	    SHLIB_LD='${CC} -shared'
9315	    LDFLAGS="$LDFLAGS -Wl,--export-dynamic"
9316	    CC_SEARCH_FLAGS=""
9317	    LD_SEARCH_FLAGS=""
9318	    if test "`uname -m`" = "alpha"; then
9319  CFLAGS="$CFLAGS -mieee"
9320fi
9321
9322	    ;;
9323	Lynx*)
9324	    SHLIB_CFLAGS="-fPIC"
9325	    SHLIB_SUFFIX=".so"
9326	    CFLAGS_OPTIMIZE=-02
9327	    SHLIB_LD='${CC} -shared'
9328	    LD_FLAGS="-Wl,--export-dynamic"
9329	    if test $doRpath = yes; then
9330
9331		CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}'
9332		LD_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}'
9333fi
9334
9335	    ;;
9336	OpenBSD-*)
9337	    SHLIB_CFLAGS="-fPIC"
9338	    SHLIB_LD='${CC} -shared ${SHLIB_CFLAGS}'
9339	    SHLIB_SUFFIX=".so"
9340	    if test $doRpath = yes; then
9341
9342		CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}'
9343fi
9344
9345	    LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
9346	    SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.so.${SHLIB_VERSION}'
9347	    { echo "$as_me:$LINENO: checking for ELF" >&5
9348echo $ECHO_N "checking for ELF... $ECHO_C" >&6; }
9349if test "${tcl_cv_ld_elf+set}" = set; then
9350  echo $ECHO_N "(cached) $ECHO_C" >&6
9351else
9352
9353		cat >conftest.$ac_ext <<_ACEOF
9354/* confdefs.h.  */
9355_ACEOF
9356cat confdefs.h >>conftest.$ac_ext
9357cat >>conftest.$ac_ext <<_ACEOF
9358/* end confdefs.h.  */
9359
9360#ifdef __ELF__
9361	yes
9362#endif
9363
9364_ACEOF
9365if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9366  $EGREP "yes" >/dev/null 2>&1; then
9367  tcl_cv_ld_elf=yes
9368else
9369  tcl_cv_ld_elf=no
9370fi
9371rm -f -r conftest*
9372
9373fi
9374{ echo "$as_me:$LINENO: result: $tcl_cv_ld_elf" >&5
9375echo "${ECHO_T}$tcl_cv_ld_elf" >&6; }
9376	    if test $tcl_cv_ld_elf = yes; then
9377
9378		LDFLAGS=-Wl,-export-dynamic
9379
9380else
9381  LDFLAGS=""
9382fi
9383
9384	    if test "${TCL_THREADS}" = "1"; then
9385
9386		# OpenBSD builds and links with -pthread, never -lpthread.
9387		LIBS=`echo $LIBS | sed s/-lpthread//`
9388		CFLAGS="$CFLAGS -pthread"
9389		SHLIB_CFLAGS="$SHLIB_CFLAGS -pthread"
9390
9391fi
9392
9393	    # OpenBSD doesn't do version numbers with dots.
9394	    UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.a'
9395	    TCL_LIB_VERSIONS_OK=nodots
9396	    ;;
9397	NetBSD-*|FreeBSD-[3-4].*)
9398	    # FreeBSD 3.* and greater have ELF.
9399	    # NetBSD 2.* has ELF and can use 'cc -shared' to build shared libs
9400	    SHLIB_CFLAGS="-fPIC"
9401	    SHLIB_LD='${CC} -shared ${SHLIB_CFLAGS}'
9402	    SHLIB_SUFFIX=".so"
9403	    LDFLAGS="$LDFLAGS -export-dynamic"
9404	    if test $doRpath = yes; then
9405
9406		CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}'
9407fi
9408
9409	    LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
9410	    if test "${TCL_THREADS}" = "1"; then
9411
9412		# The -pthread needs to go in the CFLAGS, not LIBS
9413		LIBS=`echo $LIBS | sed s/-pthread//`
9414		CFLAGS="$CFLAGS -pthread"
9415	    	LDFLAGS="$LDFLAGS -pthread"
9416
9417fi
9418
9419	    case $system in
9420	    FreeBSD-3.*)
9421	    	# FreeBSD-3 doesn't handle version numbers with dots.
9422	    	UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.a'
9423	    	SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.so'
9424	    	TCL_LIB_VERSIONS_OK=nodots
9425		;;
9426	    esac
9427	    ;;
9428	FreeBSD-*)
9429	    # This configuration from FreeBSD Ports.
9430	    SHLIB_CFLAGS="-fPIC"
9431	    SHLIB_LD="${CC} -shared"
9432	    TCL_SHLIB_LD_EXTRAS="-soname \$@"
9433	    SHLIB_SUFFIX=".so"
9434	    LDFLAGS=""
9435	    if test $doRpath = yes; then
9436
9437		CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}'
9438		LD_SEARCH_FLAGS='-rpath ${LIB_RUNTIME_DIR}'
9439fi
9440
9441	    if test "${TCL_THREADS}" = "1"; then
9442
9443		# The -pthread needs to go in the LDFLAGS, not LIBS
9444		LIBS=`echo $LIBS | sed s/-pthread//`
9445		CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
9446		LDFLAGS="$LDFLAGS $PTHREAD_LIBS"
9447fi
9448
9449	    # Version numbers are dot-stripped by system policy.
9450	    TCL_TRIM_DOTS=`echo ${VERSION} | tr -d .`
9451	    UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.a'
9452	    SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}\$\{DBGX\}.so.1'
9453	    TCL_LIB_VERSIONS_OK=nodots
9454	    ;;
9455	Darwin-*)
9456	    CFLAGS_OPTIMIZE="-Os"
9457	    SHLIB_CFLAGS="-fno-common"
9458	    # To avoid discrepancies between what headers configure sees during
9459	    # preprocessing tests and compiling tests, move any -isysroot and
9460	    # -mmacosx-version-min flags from CFLAGS to CPPFLAGS:
9461	    CPPFLAGS="${CPPFLAGS} `echo " ${CFLAGS}" | \
9462		awk 'BEGIN {FS=" +-";ORS=" "}; {for (i=2;i<=NF;i++) \
9463		if ($i~/^(isysroot|mmacosx-version-min)/) print "-"$i}'`"
9464	    CFLAGS="`echo " ${CFLAGS}" | \
9465		awk 'BEGIN {FS=" +-";ORS=" "}; {for (i=2;i<=NF;i++) \
9466		if (!($i~/^(isysroot|mmacosx-version-min)/)) print "-"$i}'`"
9467	    if test $do64bit = yes; then
9468
9469		case `arch` in
9470		    ppc)
9471			{ echo "$as_me:$LINENO: checking if compiler accepts -arch ppc64 flag" >&5
9472echo $ECHO_N "checking if compiler accepts -arch ppc64 flag... $ECHO_C" >&6; }
9473if test "${tcl_cv_cc_arch_ppc64+set}" = set; then
9474  echo $ECHO_N "(cached) $ECHO_C" >&6
9475else
9476
9477			    hold_cflags=$CFLAGS
9478			    CFLAGS="$CFLAGS -arch ppc64 -mpowerpc64 -mcpu=G5"
9479			    cat >conftest.$ac_ext <<_ACEOF
9480/* confdefs.h.  */
9481_ACEOF
9482cat confdefs.h >>conftest.$ac_ext
9483cat >>conftest.$ac_ext <<_ACEOF
9484/* end confdefs.h.  */
9485
9486int
9487main ()
9488{
9489
9490  ;
9491  return 0;
9492}
9493_ACEOF
9494rm -f conftest.$ac_objext conftest$ac_exeext
9495if { (ac_try="$ac_link"
9496case "(($ac_try" in
9497  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9498  *) ac_try_echo=$ac_try;;
9499esac
9500eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9501  (eval "$ac_link") 2>conftest.er1
9502  ac_status=$?
9503  grep -v '^ *+' conftest.er1 >conftest.err
9504  rm -f conftest.er1
9505  cat conftest.err >&5
9506  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9507  (exit $ac_status); } && {
9508	 test -z "$ac_c_werror_flag" ||
9509	 test ! -s conftest.err
9510       } && test -s conftest$ac_exeext &&
9511       $as_test_x conftest$ac_exeext; then
9512  tcl_cv_cc_arch_ppc64=yes
9513else
9514  echo "$as_me: failed program was:" >&5
9515sed 's/^/| /' conftest.$ac_ext >&5
9516
9517	tcl_cv_cc_arch_ppc64=no
9518fi
9519
9520rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9521      conftest$ac_exeext conftest.$ac_ext
9522			    CFLAGS=$hold_cflags
9523fi
9524{ echo "$as_me:$LINENO: result: $tcl_cv_cc_arch_ppc64" >&5
9525echo "${ECHO_T}$tcl_cv_cc_arch_ppc64" >&6; }
9526			if test $tcl_cv_cc_arch_ppc64 = yes; then
9527
9528			    CFLAGS="$CFLAGS -arch ppc64 -mpowerpc64 -mcpu=G5"
9529			    do64bit_ok=yes
9530
9531fi
9532;;
9533		    i386)
9534			{ echo "$as_me:$LINENO: checking if compiler accepts -arch x86_64 flag" >&5
9535echo $ECHO_N "checking if compiler accepts -arch x86_64 flag... $ECHO_C" >&6; }
9536if test "${tcl_cv_cc_arch_x86_64+set}" = set; then
9537  echo $ECHO_N "(cached) $ECHO_C" >&6
9538else
9539
9540			    hold_cflags=$CFLAGS
9541			    CFLAGS="$CFLAGS -arch x86_64"
9542			    cat >conftest.$ac_ext <<_ACEOF
9543/* confdefs.h.  */
9544_ACEOF
9545cat confdefs.h >>conftest.$ac_ext
9546cat >>conftest.$ac_ext <<_ACEOF
9547/* end confdefs.h.  */
9548
9549int
9550main ()
9551{
9552
9553  ;
9554  return 0;
9555}
9556_ACEOF
9557rm -f conftest.$ac_objext conftest$ac_exeext
9558if { (ac_try="$ac_link"
9559case "(($ac_try" in
9560  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9561  *) ac_try_echo=$ac_try;;
9562esac
9563eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9564  (eval "$ac_link") 2>conftest.er1
9565  ac_status=$?
9566  grep -v '^ *+' conftest.er1 >conftest.err
9567  rm -f conftest.er1
9568  cat conftest.err >&5
9569  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9570  (exit $ac_status); } && {
9571	 test -z "$ac_c_werror_flag" ||
9572	 test ! -s conftest.err
9573       } && test -s conftest$ac_exeext &&
9574       $as_test_x conftest$ac_exeext; then
9575  tcl_cv_cc_arch_x86_64=yes
9576else
9577  echo "$as_me: failed program was:" >&5
9578sed 's/^/| /' conftest.$ac_ext >&5
9579
9580	tcl_cv_cc_arch_x86_64=no
9581fi
9582
9583rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9584      conftest$ac_exeext conftest.$ac_ext
9585			    CFLAGS=$hold_cflags
9586fi
9587{ echo "$as_me:$LINENO: result: $tcl_cv_cc_arch_x86_64" >&5
9588echo "${ECHO_T}$tcl_cv_cc_arch_x86_64" >&6; }
9589			if test $tcl_cv_cc_arch_x86_64 = yes; then
9590
9591			    CFLAGS="$CFLAGS -arch x86_64"
9592			    do64bit_ok=yes
9593
9594fi
9595;;
9596		    *)
9597			{ echo "$as_me:$LINENO: WARNING: Don't know how enable 64-bit on architecture \`arch\`" >&5
9598echo "$as_me: WARNING: Don't know how enable 64-bit on architecture \`arch\`" >&2;};;
9599		esac
9600
9601else
9602
9603		# Check for combined 32-bit and 64-bit fat build
9604		if echo "$CFLAGS " |grep -E -q -- '-arch (ppc64|x86_64) ' \
9605		    && echo "$CFLAGS " |grep -E -q -- '-arch (ppc|i386) '; then
9606
9607		    fat_32_64=yes
9608fi
9609
9610
9611fi
9612
9613	    # TEA specific: use LDFLAGS_DEFAULT instead of LDFLAGS
9614	    SHLIB_LD='${CC} -dynamiclib ${CFLAGS} ${LDFLAGS_DEFAULT}'
9615	    { echo "$as_me:$LINENO: checking if ld accepts -single_module flag" >&5
9616echo $ECHO_N "checking if ld accepts -single_module flag... $ECHO_C" >&6; }
9617if test "${tcl_cv_ld_single_module+set}" = set; then
9618  echo $ECHO_N "(cached) $ECHO_C" >&6
9619else
9620
9621		hold_ldflags=$LDFLAGS
9622		LDFLAGS="$LDFLAGS -dynamiclib -Wl,-single_module"
9623		cat >conftest.$ac_ext <<_ACEOF
9624/* confdefs.h.  */
9625_ACEOF
9626cat confdefs.h >>conftest.$ac_ext
9627cat >>conftest.$ac_ext <<_ACEOF
9628/* end confdefs.h.  */
9629
9630int
9631main ()
9632{
9633int i;
9634  ;
9635  return 0;
9636}
9637_ACEOF
9638rm -f conftest.$ac_objext conftest$ac_exeext
9639if { (ac_try="$ac_link"
9640case "(($ac_try" in
9641  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9642  *) ac_try_echo=$ac_try;;
9643esac
9644eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9645  (eval "$ac_link") 2>conftest.er1
9646  ac_status=$?
9647  grep -v '^ *+' conftest.er1 >conftest.err
9648  rm -f conftest.er1
9649  cat conftest.err >&5
9650  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9651  (exit $ac_status); } && {
9652	 test -z "$ac_c_werror_flag" ||
9653	 test ! -s conftest.err
9654       } && test -s conftest$ac_exeext &&
9655       $as_test_x conftest$ac_exeext; then
9656  tcl_cv_ld_single_module=yes
9657else
9658  echo "$as_me: failed program was:" >&5
9659sed 's/^/| /' conftest.$ac_ext >&5
9660
9661	tcl_cv_ld_single_module=no
9662fi
9663
9664rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9665      conftest$ac_exeext conftest.$ac_ext
9666		LDFLAGS=$hold_ldflags
9667fi
9668{ echo "$as_me:$LINENO: result: $tcl_cv_ld_single_module" >&5
9669echo "${ECHO_T}$tcl_cv_ld_single_module" >&6; }
9670	    if test $tcl_cv_ld_single_module = yes; then
9671
9672		SHLIB_LD="${SHLIB_LD} -Wl,-single_module"
9673
9674fi
9675
9676	    # TEA specific: link shlib with current and compatiblity version flags
9677	    vers=`echo ${PACKAGE_VERSION} | sed -e 's/^\([0-9]\{1,5\}\)\(\(\.[0-9]\{1,3\}\)\{0,2\}\).*$/\1\2/p' -e d`
9678	    SHLIB_LD="${SHLIB_LD} -current_version ${vers:-0} -compatibility_version ${vers:-0}"
9679	    SHLIB_SUFFIX=".dylib"
9680	    # Don't use -prebind when building for Mac OS X 10.4 or later only:
9681	    if test "`echo "${MACOSX_DEPLOYMENT_TARGET}" | awk -F '10\\.' '{print int($2)}'`" -lt 4 -a \
9682		"`echo "${CPPFLAGS}" | awk -F '-mmacosx-version-min=10\\.' '{print int($2)}'`" -lt 4; then
9683
9684		LDFLAGS="$LDFLAGS -prebind"
9685fi
9686
9687	    LDFLAGS="$LDFLAGS -headerpad_max_install_names"
9688	    { echo "$as_me:$LINENO: checking if ld accepts -search_paths_first flag" >&5
9689echo $ECHO_N "checking if ld accepts -search_paths_first flag... $ECHO_C" >&6; }
9690if test "${tcl_cv_ld_search_paths_first+set}" = set; then
9691  echo $ECHO_N "(cached) $ECHO_C" >&6
9692else
9693
9694		hold_ldflags=$LDFLAGS
9695		LDFLAGS="$LDFLAGS -Wl,-search_paths_first"
9696		cat >conftest.$ac_ext <<_ACEOF
9697/* confdefs.h.  */
9698_ACEOF
9699cat confdefs.h >>conftest.$ac_ext
9700cat >>conftest.$ac_ext <<_ACEOF
9701/* end confdefs.h.  */
9702
9703int
9704main ()
9705{
9706int i;
9707  ;
9708  return 0;
9709}
9710_ACEOF
9711rm -f conftest.$ac_objext conftest$ac_exeext
9712if { (ac_try="$ac_link"
9713case "(($ac_try" in
9714  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9715  *) ac_try_echo=$ac_try;;
9716esac
9717eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9718  (eval "$ac_link") 2>conftest.er1
9719  ac_status=$?
9720  grep -v '^ *+' conftest.er1 >conftest.err
9721  rm -f conftest.er1
9722  cat conftest.err >&5
9723  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9724  (exit $ac_status); } && {
9725	 test -z "$ac_c_werror_flag" ||
9726	 test ! -s conftest.err
9727       } && test -s conftest$ac_exeext &&
9728       $as_test_x conftest$ac_exeext; then
9729  tcl_cv_ld_search_paths_first=yes
9730else
9731  echo "$as_me: failed program was:" >&5
9732sed 's/^/| /' conftest.$ac_ext >&5
9733
9734	tcl_cv_ld_search_paths_first=no
9735fi
9736
9737rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9738      conftest$ac_exeext conftest.$ac_ext
9739		LDFLAGS=$hold_ldflags
9740fi
9741{ echo "$as_me:$LINENO: result: $tcl_cv_ld_search_paths_first" >&5
9742echo "${ECHO_T}$tcl_cv_ld_search_paths_first" >&6; }
9743	    if test $tcl_cv_ld_search_paths_first = yes; then
9744
9745		LDFLAGS="$LDFLAGS -Wl,-search_paths_first"
9746
9747fi
9748
9749	    if test "$tcl_cv_cc_visibility_hidden" != yes; then
9750
9751
9752cat >>confdefs.h <<\_ACEOF
9753#define MODULE_SCOPE __private_extern__
9754_ACEOF
9755
9756		tcl_cv_cc_visibility_hidden=yes
9757
9758fi
9759
9760	    CC_SEARCH_FLAGS=""
9761	    LD_SEARCH_FLAGS=""
9762	    LD_LIBRARY_PATH_VAR="DYLD_LIBRARY_PATH"
9763	    # TEA specific: for combined 32 & 64 bit fat builds of Tk
9764	    # extensions, verify that 64-bit build is possible.
9765	    if test "$fat_32_64" = yes && test -n "${TK_BIN_DIR}"; then
9766
9767		if test "${TEA_WINDOWINGSYSTEM}" = x11; then
9768
9769		    { echo "$as_me:$LINENO: checking for 64-bit X11" >&5
9770echo $ECHO_N "checking for 64-bit X11... $ECHO_C" >&6; }
9771if test "${tcl_cv_lib_x11_64+set}" = set; then
9772  echo $ECHO_N "(cached) $ECHO_C" >&6
9773else
9774
9775			for v in CFLAGS CPPFLAGS LDFLAGS; do
9776			    eval 'hold_'$v'="$'$v'";'$v'="`echo "$'$v' "|sed -e "s/-arch ppc / /g" -e "s/-arch i386 / /g"`"'
9777			done
9778			CPPFLAGS="$CPPFLAGS -I/usr/X11R6/include"
9779			LDFLAGS="$LDFLAGS -L/usr/X11R6/lib -lX11"
9780			cat >conftest.$ac_ext <<_ACEOF
9781/* confdefs.h.  */
9782_ACEOF
9783cat confdefs.h >>conftest.$ac_ext
9784cat >>conftest.$ac_ext <<_ACEOF
9785/* end confdefs.h.  */
9786#include <X11/Xlib.h>
9787int
9788main ()
9789{
9790XrmInitialize();
9791  ;
9792  return 0;
9793}
9794_ACEOF
9795rm -f conftest.$ac_objext conftest$ac_exeext
9796if { (ac_try="$ac_link"
9797case "(($ac_try" in
9798  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9799  *) ac_try_echo=$ac_try;;
9800esac
9801eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9802  (eval "$ac_link") 2>conftest.er1
9803  ac_status=$?
9804  grep -v '^ *+' conftest.er1 >conftest.err
9805  rm -f conftest.er1
9806  cat conftest.err >&5
9807  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9808  (exit $ac_status); } && {
9809	 test -z "$ac_c_werror_flag" ||
9810	 test ! -s conftest.err
9811       } && test -s conftest$ac_exeext &&
9812       $as_test_x conftest$ac_exeext; then
9813  tcl_cv_lib_x11_64=yes
9814else
9815  echo "$as_me: failed program was:" >&5
9816sed 's/^/| /' conftest.$ac_ext >&5
9817
9818	tcl_cv_lib_x11_64=no
9819fi
9820
9821rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9822      conftest$ac_exeext conftest.$ac_ext
9823			for v in CFLAGS CPPFLAGS LDFLAGS; do
9824			    eval $v'="$hold_'$v'"'
9825			done
9826fi
9827{ echo "$as_me:$LINENO: result: $tcl_cv_lib_x11_64" >&5
9828echo "${ECHO_T}$tcl_cv_lib_x11_64" >&6; }
9829
9830fi
9831
9832		if test "${TEA_WINDOWINGSYSTEM}" = aqua; then
9833
9834		    { echo "$as_me:$LINENO: checking for 64-bit Tk" >&5
9835echo $ECHO_N "checking for 64-bit Tk... $ECHO_C" >&6; }
9836if test "${tcl_cv_lib_tk_64+set}" = set; then
9837  echo $ECHO_N "(cached) $ECHO_C" >&6
9838else
9839
9840			for v in CFLAGS CPPFLAGS LDFLAGS; do
9841			    eval 'hold_'$v'="$'$v'";'$v'="`echo "$'$v' "|sed -e "s/-arch ppc / /g" -e "s/-arch i386 / /g"`"'
9842			done
9843			CPPFLAGS="$CPPFLAGS -DUSE_TCL_STUBS=1 -DUSE_TK_STUBS=1 `eval "echo ${TCL_INCLUDES} ${TK_INCLUDES}"`"
9844			LDFLAGS="$LDFLAGS ${TCL_STUB_LIB_SPEC} ${TK_STUB_LIB_SPEC}"
9845			cat >conftest.$ac_ext <<_ACEOF
9846/* confdefs.h.  */
9847_ACEOF
9848cat confdefs.h >>conftest.$ac_ext
9849cat >>conftest.$ac_ext <<_ACEOF
9850/* end confdefs.h.  */
9851#include <tk.h>
9852int
9853main ()
9854{
9855Tk_InitStubs(NULL, "", 0);
9856  ;
9857  return 0;
9858}
9859_ACEOF
9860rm -f conftest.$ac_objext conftest$ac_exeext
9861if { (ac_try="$ac_link"
9862case "(($ac_try" in
9863  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9864  *) ac_try_echo=$ac_try;;
9865esac
9866eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9867  (eval "$ac_link") 2>conftest.er1
9868  ac_status=$?
9869  grep -v '^ *+' conftest.er1 >conftest.err
9870  rm -f conftest.er1
9871  cat conftest.err >&5
9872  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9873  (exit $ac_status); } && {
9874	 test -z "$ac_c_werror_flag" ||
9875	 test ! -s conftest.err
9876       } && test -s conftest$ac_exeext &&
9877       $as_test_x conftest$ac_exeext; then
9878  tcl_cv_lib_tk_64=yes
9879else
9880  echo "$as_me: failed program was:" >&5
9881sed 's/^/| /' conftest.$ac_ext >&5
9882
9883	tcl_cv_lib_tk_64=no
9884fi
9885
9886rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9887      conftest$ac_exeext conftest.$ac_ext
9888			for v in CFLAGS CPPFLAGS LDFLAGS; do
9889			    eval $v'="$hold_'$v'"'
9890			done
9891fi
9892{ echo "$as_me:$LINENO: result: $tcl_cv_lib_tk_64" >&5
9893echo "${ECHO_T}$tcl_cv_lib_tk_64" >&6; }
9894
9895fi
9896
9897		# remove 64-bit arch flags from CFLAGS et al. if configuration
9898		# does not support 64-bit.
9899		if test "$tcl_cv_lib_tk_64" = no -o "$tcl_cv_lib_x11_64" = no; then
9900
9901		    { echo "$as_me:$LINENO: Removing 64-bit architectures from compiler & linker flags" >&5
9902echo "$as_me: Removing 64-bit architectures from compiler & linker flags" >&6;}
9903		    for v in CFLAGS CPPFLAGS LDFLAGS; do
9904			eval $v'="`echo "$'$v' "|sed -e "s/-arch ppc64 / /g" -e "s/-arch x86_64 / /g"`"'
9905		    done
9906fi
9907
9908
9909fi
9910
9911	    ;;
9912	OS/390-*)
9913	    CFLAGS_OPTIMIZE=""		# Optimizer is buggy
9914
9915cat >>confdefs.h <<\_ACEOF
9916#define _OE_SOCKETS 1
9917_ACEOF
9918
9919	    ;;
9920	OSF1-V*)
9921	    # Digital OSF/1
9922	    SHLIB_CFLAGS=""
9923	    if test "$SHARED_BUILD" = 1; then
9924
9925	        SHLIB_LD='ld -shared -expect_unresolved "*"'
9926
9927else
9928
9929	        SHLIB_LD='ld -non_shared -expect_unresolved "*"'
9930
9931fi
9932
9933	    SHLIB_SUFFIX=".so"
9934	    if test $doRpath = yes; then
9935
9936		CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}'
9937		LD_SEARCH_FLAGS='-rpath ${LIB_RUNTIME_DIR}'
9938fi
9939
9940	    if test "$GCC" = yes; then
9941  CFLAGS="$CFLAGS -mieee"
9942else
9943
9944		CFLAGS="$CFLAGS -DHAVE_TZSET -std1 -ieee"
9945fi
9946
9947	    # see pthread_intro(3) for pthread support on osf1, k.furukawa
9948	    if test "${TCL_THREADS}" = 1; then
9949
9950		CFLAGS="$CFLAGS -DHAVE_PTHREAD_ATTR_SETSTACKSIZE"
9951		CFLAGS="$CFLAGS -DTCL_THREAD_STACK_MIN=PTHREAD_STACK_MIN*64"
9952		LIBS=`echo $LIBS | sed s/-lpthreads//`
9953		if test "$GCC" = yes; then
9954
9955		    LIBS="$LIBS -lpthread -lmach -lexc"
9956
9957else
9958
9959		    CFLAGS="$CFLAGS -pthread"
9960		    LDFLAGS="$LDFLAGS -pthread"
9961
9962fi
9963
9964
9965fi
9966
9967	    ;;
9968	QNX-6*)
9969	    # QNX RTP
9970	    # This may work for all QNX, but it was only reported for v6.
9971	    SHLIB_CFLAGS="-fPIC"
9972	    SHLIB_LD="ld -Bshareable -x"
9973	    SHLIB_LD_LIBS=""
9974	    SHLIB_SUFFIX=".so"
9975	    CC_SEARCH_FLAGS=""
9976	    LD_SEARCH_FLAGS=""
9977	    ;;
9978	SCO_SV-3.2*)
9979	    if test "$GCC" = yes; then
9980
9981		SHLIB_CFLAGS="-fPIC -melf"
9982		LDFLAGS="$LDFLAGS -melf -Wl,-Bexport"
9983
9984else
9985
9986	       SHLIB_CFLAGS="-Kpic -belf"
9987	       LDFLAGS="$LDFLAGS -belf -Wl,-Bexport"
9988
9989fi
9990
9991	    SHLIB_LD="ld -G"
9992	    SHLIB_LD_LIBS=""
9993	    SHLIB_SUFFIX=".so"
9994	    CC_SEARCH_FLAGS=""
9995	    LD_SEARCH_FLAGS=""
9996	    ;;
9997	SunOS-5.[0-6])
9998	    # Careful to not let 5.10+ fall into this case
9999
10000	    # Note: If _REENTRANT isn't defined, then Solaris
10001	    # won't define thread-safe library routines.
10002
10003
10004cat >>confdefs.h <<\_ACEOF
10005#define _REENTRANT 1
10006_ACEOF
10007
10008
10009cat >>confdefs.h <<\_ACEOF
10010#define _POSIX_PTHREAD_SEMANTICS 1
10011_ACEOF
10012
10013
10014	    SHLIB_CFLAGS="-KPIC"
10015	    SHLIB_SUFFIX=".so"
10016	    if test "$GCC" = yes; then
10017
10018		SHLIB_LD='${CC} -shared'
10019		CC_SEARCH_FLAGS='-Wl,-R,${LIB_RUNTIME_DIR}'
10020		LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
10021
10022else
10023
10024		SHLIB_LD="/usr/ccs/bin/ld -G -z text"
10025		CC_SEARCH_FLAGS='-R ${LIB_RUNTIME_DIR}'
10026		LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
10027
10028fi
10029
10030	    ;;
10031	SunOS-5*)
10032	    # Note: If _REENTRANT isn't defined, then Solaris
10033	    # won't define thread-safe library routines.
10034
10035
10036cat >>confdefs.h <<\_ACEOF
10037#define _REENTRANT 1
10038_ACEOF
10039
10040
10041cat >>confdefs.h <<\_ACEOF
10042#define _POSIX_PTHREAD_SEMANTICS 1
10043_ACEOF
10044
10045
10046	    SHLIB_CFLAGS="-KPIC"
10047
10048	    # Check to enable 64-bit flags for compiler/linker
10049	    if test "$do64bit" = yes; then
10050
10051		arch=`isainfo`
10052		if test "$arch" = "sparcv9 sparc"; then
10053
10054		    if test "$GCC" = yes; then
10055
10056			if test "`${CC} -dumpversion | awk -F. '{print $1}'`" -lt 3; then
10057
10058			    { echo "$as_me:$LINENO: WARNING: 64bit mode not supported with GCC < 3.2 on $system" >&5
10059echo "$as_me: WARNING: 64bit mode not supported with GCC < 3.2 on $system" >&2;}
10060
10061else
10062
10063			    do64bit_ok=yes
10064			    CFLAGS="$CFLAGS -m64 -mcpu=v9"
10065			    LDFLAGS="$LDFLAGS -m64 -mcpu=v9"
10066			    SHLIB_CFLAGS="-fPIC"
10067
10068fi
10069
10070
10071else
10072
10073			do64bit_ok=yes
10074			if test "$do64bitVIS" = yes; then
10075
10076			    CFLAGS="$CFLAGS -xarch=v9a"
10077			    LDFLAGS_ARCH="-xarch=v9a"
10078
10079else
10080
10081			    CFLAGS="$CFLAGS -xarch=v9"
10082			    LDFLAGS_ARCH="-xarch=v9"
10083
10084fi
10085
10086			# Solaris 64 uses this as well
10087			#LD_LIBRARY_PATH_VAR="LD_LIBRARY_PATH_64"
10088
10089fi
10090
10091
10092else
10093  if test "$arch" = "amd64 i386"; then
10094
10095		    if test "$GCC" = yes; then
10096
10097			case $system in
10098			    SunOS-5.1[1-9]*|SunOS-5.[2-9][0-9]*)
10099				do64bit_ok=yes
10100				CFLAGS="$CFLAGS -m64"
10101				LDFLAGS="$LDFLAGS -m64";;
10102			    *)
10103				{ echo "$as_me:$LINENO: WARNING: 64bit mode not supported with GCC on $system" >&5
10104echo "$as_me: WARNING: 64bit mode not supported with GCC on $system" >&2;};;
10105			esac
10106
10107else
10108
10109			do64bit_ok=yes
10110			case $system in
10111			    SunOS-5.1[1-9]*|SunOS-5.[2-9][0-9]*)
10112				CFLAGS="$CFLAGS -m64"
10113				LDFLAGS="$LDFLAGS -m64";;
10114			    *)
10115				CFLAGS="$CFLAGS -xarch=amd64"
10116				LDFLAGS="$LDFLAGS -xarch=amd64";;
10117			esac
10118
10119fi
10120
10121
10122else
10123  { echo "$as_me:$LINENO: WARNING: 64bit mode not supported for $arch" >&5
10124echo "$as_me: WARNING: 64bit mode not supported for $arch" >&2;}
10125fi
10126
10127fi
10128
10129
10130fi
10131
10132
10133	    SHLIB_SUFFIX=".so"
10134	    if test "$GCC" = yes; then
10135
10136		SHLIB_LD='${CC} -shared'
10137		CC_SEARCH_FLAGS='-Wl,-R,${LIB_RUNTIME_DIR}'
10138		LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
10139		if test "$do64bit_ok" = yes; then
10140
10141		    if test "$arch" = "sparcv9 sparc"; then
10142
10143			# We need to specify -static-libgcc or we need to
10144			# add the path to the sparv9 libgcc.
10145			# JH: static-libgcc is necessary for core Tcl, but may
10146			# not be necessary for extensions.
10147			SHLIB_LD="$SHLIB_LD -m64 -mcpu=v9 -static-libgcc"
10148			# for finding sparcv9 libgcc, get the regular libgcc
10149			# path, remove so name and append 'sparcv9'
10150			#v9gcclibdir="`gcc -print-file-name=libgcc_s.so` | ..."
10151			#CC_SEARCH_FLAGS="${CC_SEARCH_FLAGS},-R,$v9gcclibdir"
10152
10153else
10154  if test "$arch" = "amd64 i386"; then
10155
10156			# JH: static-libgcc is necessary for core Tcl, but may
10157			# not be necessary for extensions.
10158			SHLIB_LD="$SHLIB_LD -m64 -static-libgcc"
10159
10160fi
10161
10162fi
10163
10164
10165fi
10166
10167
10168else
10169
10170		case $system in
10171		    SunOS-5.[1-9][0-9]*)
10172			# TEA specific: use LDFLAGS_DEFAULT instead of LDFLAGS
10173			SHLIB_LD='${CC} -G -z text ${LDFLAGS_DEFAULT}';;
10174		    *)
10175			SHLIB_LD='/usr/ccs/bin/ld -G -z text';;
10176		esac
10177		CC_SEARCH_FLAGS='-Wl,-R,${LIB_RUNTIME_DIR}'
10178		LD_SEARCH_FLAGS='-R ${LIB_RUNTIME_DIR}'
10179
10180fi
10181
10182	    ;;
10183    esac
10184
10185    if test "$do64bit" = yes -a "$do64bit_ok" = no; then
10186
10187	{ echo "$as_me:$LINENO: WARNING: 64bit support being disabled -- don't know magic for this platform" >&5
10188echo "$as_me: WARNING: 64bit support being disabled -- don't know magic for this platform" >&2;}
10189
10190fi
10191
10192
10193
10194
10195    # Add in the arch flags late to ensure it wasn't removed.
10196    # Not necessary in TEA, but this is aligned with core
10197    LDFLAGS="$LDFLAGS $LDFLAGS_ARCH"
10198
10199    # If we're running gcc, then change the C flags for compiling shared
10200    # libraries to the right flags for gcc, instead of those for the
10201    # standard manufacturer compiler.
10202
10203    if test "$GCC" = yes; then
10204
10205	case $system in
10206	    AIX-*) ;;
10207	    BSD/OS*) ;;
10208	    CYGWIN_*) ;;
10209	    IRIX*) ;;
10210	    NetBSD-*|FreeBSD-*|OpenBSD-*) ;;
10211	    Darwin-*) ;;
10212	    SCO_SV-3.2*) ;;
10213	    windows) ;;
10214	    *) SHLIB_CFLAGS="-fPIC" ;;
10215	esac
10216fi
10217
10218
10219    if test "$tcl_cv_cc_visibility_hidden" != yes; then
10220
10221
10222cat >>confdefs.h <<\_ACEOF
10223#define MODULE_SCOPE extern
10224_ACEOF
10225
10226
10227cat >>confdefs.h <<\_ACEOF
10228#define NO_VIZ
10229_ACEOF
10230
10231
10232fi
10233
10234
10235    if test "$SHARED_LIB_SUFFIX" = ""; then
10236
10237	# TEA specific: use PACKAGE_VERSION instead of VERSION
10238	SHARED_LIB_SUFFIX='${PACKAGE_VERSION}${SHLIB_SUFFIX}'
10239fi
10240
10241    if test "$UNSHARED_LIB_SUFFIX" = ""; then
10242
10243	# TEA specific: use PACKAGE_VERSION instead of VERSION
10244	UNSHARED_LIB_SUFFIX='${PACKAGE_VERSION}.a'
10245fi
10246
10247
10248
10249
10250
10251
10252
10253
10254
10255
10256
10257
10258
10259
10260    # These must be called after we do the basic CFLAGS checks and
10261    # verify any possible 64-bit or similar switches are necessary
10262
10263    { echo "$as_me:$LINENO: checking for required early compiler flags" >&5
10264echo $ECHO_N "checking for required early compiler flags... $ECHO_C" >&6; }
10265    tcl_flags=""
10266
10267    if test "${tcl_cv_flag__isoc99_source+set}" = set; then
10268  echo $ECHO_N "(cached) $ECHO_C" >&6
10269else
10270  cat >conftest.$ac_ext <<_ACEOF
10271/* confdefs.h.  */
10272_ACEOF
10273cat confdefs.h >>conftest.$ac_ext
10274cat >>conftest.$ac_ext <<_ACEOF
10275/* end confdefs.h.  */
10276#include <stdlib.h>
10277int
10278main ()
10279{
10280char *p = (char *)strtoll; char *q = (char *)strtoull;
10281  ;
10282  return 0;
10283}
10284_ACEOF
10285rm -f conftest.$ac_objext
10286if { (ac_try="$ac_compile"
10287case "(($ac_try" in
10288  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10289  *) ac_try_echo=$ac_try;;
10290esac
10291eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10292  (eval "$ac_compile") 2>conftest.er1
10293  ac_status=$?
10294  grep -v '^ *+' conftest.er1 >conftest.err
10295  rm -f conftest.er1
10296  cat conftest.err >&5
10297  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10298  (exit $ac_status); } && {
10299	 test -z "$ac_c_werror_flag" ||
10300	 test ! -s conftest.err
10301       } && test -s conftest.$ac_objext; then
10302  tcl_cv_flag__isoc99_source=no
10303else
10304  echo "$as_me: failed program was:" >&5
10305sed 's/^/| /' conftest.$ac_ext >&5
10306
10307	cat >conftest.$ac_ext <<_ACEOF
10308/* confdefs.h.  */
10309_ACEOF
10310cat confdefs.h >>conftest.$ac_ext
10311cat >>conftest.$ac_ext <<_ACEOF
10312/* end confdefs.h.  */
10313#define _ISOC99_SOURCE 1
10314#include <stdlib.h>
10315int
10316main ()
10317{
10318char *p = (char *)strtoll; char *q = (char *)strtoull;
10319  ;
10320  return 0;
10321}
10322_ACEOF
10323rm -f conftest.$ac_objext
10324if { (ac_try="$ac_compile"
10325case "(($ac_try" in
10326  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10327  *) ac_try_echo=$ac_try;;
10328esac
10329eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10330  (eval "$ac_compile") 2>conftest.er1
10331  ac_status=$?
10332  grep -v '^ *+' conftest.er1 >conftest.err
10333  rm -f conftest.er1
10334  cat conftest.err >&5
10335  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10336  (exit $ac_status); } && {
10337	 test -z "$ac_c_werror_flag" ||
10338	 test ! -s conftest.err
10339       } && test -s conftest.$ac_objext; then
10340  tcl_cv_flag__isoc99_source=yes
10341else
10342  echo "$as_me: failed program was:" >&5
10343sed 's/^/| /' conftest.$ac_ext >&5
10344
10345	tcl_cv_flag__isoc99_source=no
10346fi
10347
10348rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10349fi
10350
10351rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10352fi
10353
10354    if test "x${tcl_cv_flag__isoc99_source}" = "xyes" ; then
10355
10356cat >>confdefs.h <<\_ACEOF
10357#define _ISOC99_SOURCE 1
10358_ACEOF
10359
10360	tcl_flags="$tcl_flags _ISOC99_SOURCE"
10361    fi
10362
10363
10364    if test "${tcl_cv_flag__largefile64_source+set}" = set; then
10365  echo $ECHO_N "(cached) $ECHO_C" >&6
10366else
10367  cat >conftest.$ac_ext <<_ACEOF
10368/* confdefs.h.  */
10369_ACEOF
10370cat confdefs.h >>conftest.$ac_ext
10371cat >>conftest.$ac_ext <<_ACEOF
10372/* end confdefs.h.  */
10373#include <sys/stat.h>
10374int
10375main ()
10376{
10377struct stat64 buf; int i = stat64("/", &buf);
10378  ;
10379  return 0;
10380}
10381_ACEOF
10382rm -f conftest.$ac_objext
10383if { (ac_try="$ac_compile"
10384case "(($ac_try" in
10385  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10386  *) ac_try_echo=$ac_try;;
10387esac
10388eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10389  (eval "$ac_compile") 2>conftest.er1
10390  ac_status=$?
10391  grep -v '^ *+' conftest.er1 >conftest.err
10392  rm -f conftest.er1
10393  cat conftest.err >&5
10394  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10395  (exit $ac_status); } && {
10396	 test -z "$ac_c_werror_flag" ||
10397	 test ! -s conftest.err
10398       } && test -s conftest.$ac_objext; then
10399  tcl_cv_flag__largefile64_source=no
10400else
10401  echo "$as_me: failed program was:" >&5
10402sed 's/^/| /' conftest.$ac_ext >&5
10403
10404	cat >conftest.$ac_ext <<_ACEOF
10405/* confdefs.h.  */
10406_ACEOF
10407cat confdefs.h >>conftest.$ac_ext
10408cat >>conftest.$ac_ext <<_ACEOF
10409/* end confdefs.h.  */
10410#define _LARGEFILE64_SOURCE 1
10411#include <sys/stat.h>
10412int
10413main ()
10414{
10415struct stat64 buf; int i = stat64("/", &buf);
10416  ;
10417  return 0;
10418}
10419_ACEOF
10420rm -f conftest.$ac_objext
10421if { (ac_try="$ac_compile"
10422case "(($ac_try" in
10423  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10424  *) ac_try_echo=$ac_try;;
10425esac
10426eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10427  (eval "$ac_compile") 2>conftest.er1
10428  ac_status=$?
10429  grep -v '^ *+' conftest.er1 >conftest.err
10430  rm -f conftest.er1
10431  cat conftest.err >&5
10432  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10433  (exit $ac_status); } && {
10434	 test -z "$ac_c_werror_flag" ||
10435	 test ! -s conftest.err
10436       } && test -s conftest.$ac_objext; then
10437  tcl_cv_flag__largefile64_source=yes
10438else
10439  echo "$as_me: failed program was:" >&5
10440sed 's/^/| /' conftest.$ac_ext >&5
10441
10442	tcl_cv_flag__largefile64_source=no
10443fi
10444
10445rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10446fi
10447
10448rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10449fi
10450
10451    if test "x${tcl_cv_flag__largefile64_source}" = "xyes" ; then
10452
10453cat >>confdefs.h <<\_ACEOF
10454#define _LARGEFILE64_SOURCE 1
10455_ACEOF
10456
10457	tcl_flags="$tcl_flags _LARGEFILE64_SOURCE"
10458    fi
10459
10460
10461    if test "${tcl_cv_flag__largefile_source64+set}" = set; then
10462  echo $ECHO_N "(cached) $ECHO_C" >&6
10463else
10464  cat >conftest.$ac_ext <<_ACEOF
10465/* confdefs.h.  */
10466_ACEOF
10467cat confdefs.h >>conftest.$ac_ext
10468cat >>conftest.$ac_ext <<_ACEOF
10469/* end confdefs.h.  */
10470#include <sys/stat.h>
10471int
10472main ()
10473{
10474char *p = (char *)open64;
10475  ;
10476  return 0;
10477}
10478_ACEOF
10479rm -f conftest.$ac_objext
10480if { (ac_try="$ac_compile"
10481case "(($ac_try" in
10482  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10483  *) ac_try_echo=$ac_try;;
10484esac
10485eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10486  (eval "$ac_compile") 2>conftest.er1
10487  ac_status=$?
10488  grep -v '^ *+' conftest.er1 >conftest.err
10489  rm -f conftest.er1
10490  cat conftest.err >&5
10491  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10492  (exit $ac_status); } && {
10493	 test -z "$ac_c_werror_flag" ||
10494	 test ! -s conftest.err
10495       } && test -s conftest.$ac_objext; then
10496  tcl_cv_flag__largefile_source64=no
10497else
10498  echo "$as_me: failed program was:" >&5
10499sed 's/^/| /' conftest.$ac_ext >&5
10500
10501	cat >conftest.$ac_ext <<_ACEOF
10502/* confdefs.h.  */
10503_ACEOF
10504cat confdefs.h >>conftest.$ac_ext
10505cat >>conftest.$ac_ext <<_ACEOF
10506/* end confdefs.h.  */
10507#define _LARGEFILE_SOURCE64 1
10508#include <sys/stat.h>
10509int
10510main ()
10511{
10512char *p = (char *)open64;
10513  ;
10514  return 0;
10515}
10516_ACEOF
10517rm -f conftest.$ac_objext
10518if { (ac_try="$ac_compile"
10519case "(($ac_try" in
10520  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10521  *) ac_try_echo=$ac_try;;
10522esac
10523eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10524  (eval "$ac_compile") 2>conftest.er1
10525  ac_status=$?
10526  grep -v '^ *+' conftest.er1 >conftest.err
10527  rm -f conftest.er1
10528  cat conftest.err >&5
10529  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10530  (exit $ac_status); } && {
10531	 test -z "$ac_c_werror_flag" ||
10532	 test ! -s conftest.err
10533       } && test -s conftest.$ac_objext; then
10534  tcl_cv_flag__largefile_source64=yes
10535else
10536  echo "$as_me: failed program was:" >&5
10537sed 's/^/| /' conftest.$ac_ext >&5
10538
10539	tcl_cv_flag__largefile_source64=no
10540fi
10541
10542rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10543fi
10544
10545rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10546fi
10547
10548    if test "x${tcl_cv_flag__largefile_source64}" = "xyes" ; then
10549
10550cat >>confdefs.h <<\_ACEOF
10551#define _LARGEFILE_SOURCE64 1
10552_ACEOF
10553
10554	tcl_flags="$tcl_flags _LARGEFILE_SOURCE64"
10555    fi
10556
10557    if test "x${tcl_flags}" = "x" ; then
10558	{ echo "$as_me:$LINENO: result: none" >&5
10559echo "${ECHO_T}none" >&6; }
10560    else
10561	{ echo "$as_me:$LINENO: result: ${tcl_flags}" >&5
10562echo "${ECHO_T}${tcl_flags}" >&6; }
10563    fi
10564
10565
10566    { echo "$as_me:$LINENO: checking for 64-bit integer type" >&5
10567echo $ECHO_N "checking for 64-bit integer type... $ECHO_C" >&6; }
10568    if test "${tcl_cv_type_64bit+set}" = set; then
10569  echo $ECHO_N "(cached) $ECHO_C" >&6
10570else
10571
10572	tcl_cv_type_64bit=none
10573	# See if the compiler knows natively about __int64
10574	cat >conftest.$ac_ext <<_ACEOF
10575/* confdefs.h.  */
10576_ACEOF
10577cat confdefs.h >>conftest.$ac_ext
10578cat >>conftest.$ac_ext <<_ACEOF
10579/* end confdefs.h.  */
10580
10581int
10582main ()
10583{
10584__int64 value = (__int64) 0;
10585  ;
10586  return 0;
10587}
10588_ACEOF
10589rm -f conftest.$ac_objext
10590if { (ac_try="$ac_compile"
10591case "(($ac_try" in
10592  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10593  *) ac_try_echo=$ac_try;;
10594esac
10595eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10596  (eval "$ac_compile") 2>conftest.er1
10597  ac_status=$?
10598  grep -v '^ *+' conftest.er1 >conftest.err
10599  rm -f conftest.er1
10600  cat conftest.err >&5
10601  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10602  (exit $ac_status); } && {
10603	 test -z "$ac_c_werror_flag" ||
10604	 test ! -s conftest.err
10605       } && test -s conftest.$ac_objext; then
10606  tcl_type_64bit=__int64
10607else
10608  echo "$as_me: failed program was:" >&5
10609sed 's/^/| /' conftest.$ac_ext >&5
10610
10611	tcl_type_64bit="long long"
10612fi
10613
10614rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10615	# See if we should use long anyway  Note that we substitute in the
10616	# type that is our current guess for a 64-bit type inside this check
10617	# program, so it should be modified only carefully...
10618        cat >conftest.$ac_ext <<_ACEOF
10619/* confdefs.h.  */
10620_ACEOF
10621cat confdefs.h >>conftest.$ac_ext
10622cat >>conftest.$ac_ext <<_ACEOF
10623/* end confdefs.h.  */
10624
10625int
10626main ()
10627{
10628switch (0) {
10629            case 1: case (sizeof(${tcl_type_64bit})==sizeof(long)): ;
10630        }
10631  ;
10632  return 0;
10633}
10634_ACEOF
10635rm -f conftest.$ac_objext
10636if { (ac_try="$ac_compile"
10637case "(($ac_try" in
10638  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10639  *) ac_try_echo=$ac_try;;
10640esac
10641eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10642  (eval "$ac_compile") 2>conftest.er1
10643  ac_status=$?
10644  grep -v '^ *+' conftest.er1 >conftest.err
10645  rm -f conftest.er1
10646  cat conftest.err >&5
10647  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10648  (exit $ac_status); } && {
10649	 test -z "$ac_c_werror_flag" ||
10650	 test ! -s conftest.err
10651       } && test -s conftest.$ac_objext; then
10652  tcl_cv_type_64bit=${tcl_type_64bit}
10653else
10654  echo "$as_me: failed program was:" >&5
10655sed 's/^/| /' conftest.$ac_ext >&5
10656
10657
10658fi
10659
10660rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10661fi
10662
10663    if test "${tcl_cv_type_64bit}" = none ; then
10664
10665cat >>confdefs.h <<\_ACEOF
10666#define TCL_WIDE_INT_IS_LONG 1
10667_ACEOF
10668
10669	{ echo "$as_me:$LINENO: result: using long" >&5
10670echo "${ECHO_T}using long" >&6; }
10671    elif test "${tcl_cv_type_64bit}" = "__int64" \
10672		-a "${TEA_PLATFORM}" = "windows" ; then
10673	# TEA specific: We actually want to use the default tcl.h checks in
10674	# this case to handle both TCL_WIDE_INT_TYPE and TCL_LL_MODIFIER*
10675	{ echo "$as_me:$LINENO: result: using Tcl header defaults" >&5
10676echo "${ECHO_T}using Tcl header defaults" >&6; }
10677    else
10678
10679cat >>confdefs.h <<_ACEOF
10680#define TCL_WIDE_INT_TYPE ${tcl_cv_type_64bit}
10681_ACEOF
10682
10683	{ echo "$as_me:$LINENO: result: ${tcl_cv_type_64bit}" >&5
10684echo "${ECHO_T}${tcl_cv_type_64bit}" >&6; }
10685
10686	# Now check for auxiliary declarations
10687	{ echo "$as_me:$LINENO: checking for struct dirent64" >&5
10688echo $ECHO_N "checking for struct dirent64... $ECHO_C" >&6; }
10689if test "${tcl_cv_struct_dirent64+set}" = set; then
10690  echo $ECHO_N "(cached) $ECHO_C" >&6
10691else
10692
10693	    cat >conftest.$ac_ext <<_ACEOF
10694/* confdefs.h.  */
10695_ACEOF
10696cat confdefs.h >>conftest.$ac_ext
10697cat >>conftest.$ac_ext <<_ACEOF
10698/* end confdefs.h.  */
10699#include <sys/types.h>
10700#include <sys/dirent.h>
10701int
10702main ()
10703{
10704struct dirent64 p;
10705  ;
10706  return 0;
10707}
10708_ACEOF
10709rm -f conftest.$ac_objext
10710if { (ac_try="$ac_compile"
10711case "(($ac_try" in
10712  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10713  *) ac_try_echo=$ac_try;;
10714esac
10715eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10716  (eval "$ac_compile") 2>conftest.er1
10717  ac_status=$?
10718  grep -v '^ *+' conftest.er1 >conftest.err
10719  rm -f conftest.er1
10720  cat conftest.err >&5
10721  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10722  (exit $ac_status); } && {
10723	 test -z "$ac_c_werror_flag" ||
10724	 test ! -s conftest.err
10725       } && test -s conftest.$ac_objext; then
10726  tcl_cv_struct_dirent64=yes
10727else
10728  echo "$as_me: failed program was:" >&5
10729sed 's/^/| /' conftest.$ac_ext >&5
10730
10731	tcl_cv_struct_dirent64=no
10732fi
10733
10734rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10735fi
10736{ echo "$as_me:$LINENO: result: $tcl_cv_struct_dirent64" >&5
10737echo "${ECHO_T}$tcl_cv_struct_dirent64" >&6; }
10738	if test "x${tcl_cv_struct_dirent64}" = "xyes" ; then
10739
10740cat >>confdefs.h <<\_ACEOF
10741#define HAVE_STRUCT_DIRENT64 1
10742_ACEOF
10743
10744	fi
10745
10746	{ echo "$as_me:$LINENO: checking for struct stat64" >&5
10747echo $ECHO_N "checking for struct stat64... $ECHO_C" >&6; }
10748if test "${tcl_cv_struct_stat64+set}" = set; then
10749  echo $ECHO_N "(cached) $ECHO_C" >&6
10750else
10751
10752	    cat >conftest.$ac_ext <<_ACEOF
10753/* confdefs.h.  */
10754_ACEOF
10755cat confdefs.h >>conftest.$ac_ext
10756cat >>conftest.$ac_ext <<_ACEOF
10757/* end confdefs.h.  */
10758#include <sys/stat.h>
10759int
10760main ()
10761{
10762struct stat64 p;
10763
10764  ;
10765  return 0;
10766}
10767_ACEOF
10768rm -f conftest.$ac_objext
10769if { (ac_try="$ac_compile"
10770case "(($ac_try" in
10771  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10772  *) ac_try_echo=$ac_try;;
10773esac
10774eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10775  (eval "$ac_compile") 2>conftest.er1
10776  ac_status=$?
10777  grep -v '^ *+' conftest.er1 >conftest.err
10778  rm -f conftest.er1
10779  cat conftest.err >&5
10780  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10781  (exit $ac_status); } && {
10782	 test -z "$ac_c_werror_flag" ||
10783	 test ! -s conftest.err
10784       } && test -s conftest.$ac_objext; then
10785  tcl_cv_struct_stat64=yes
10786else
10787  echo "$as_me: failed program was:" >&5
10788sed 's/^/| /' conftest.$ac_ext >&5
10789
10790	tcl_cv_struct_stat64=no
10791fi
10792
10793rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10794fi
10795{ echo "$as_me:$LINENO: result: $tcl_cv_struct_stat64" >&5
10796echo "${ECHO_T}$tcl_cv_struct_stat64" >&6; }
10797	if test "x${tcl_cv_struct_stat64}" = "xyes" ; then
10798
10799cat >>confdefs.h <<\_ACEOF
10800#define HAVE_STRUCT_STAT64 1
10801_ACEOF
10802
10803	fi
10804
10805
10806
10807for ac_func in open64 lseek64
10808do
10809as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10810{ echo "$as_me:$LINENO: checking for $ac_func" >&5
10811echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10812if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10813  echo $ECHO_N "(cached) $ECHO_C" >&6
10814else
10815  cat >conftest.$ac_ext <<_ACEOF
10816/* confdefs.h.  */
10817_ACEOF
10818cat confdefs.h >>conftest.$ac_ext
10819cat >>conftest.$ac_ext <<_ACEOF
10820/* end confdefs.h.  */
10821/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10822   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10823#define $ac_func innocuous_$ac_func
10824
10825/* System header to define __stub macros and hopefully few prototypes,
10826    which can conflict with char $ac_func (); below.
10827    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10828    <limits.h> exists even on freestanding compilers.  */
10829
10830#ifdef __STDC__
10831# include <limits.h>
10832#else
10833# include <assert.h>
10834#endif
10835
10836#undef $ac_func
10837
10838/* Override any GCC internal prototype to avoid an error.
10839   Use char because int might match the return type of a GCC
10840   builtin and then its argument prototype would still apply.  */
10841#ifdef __cplusplus
10842extern "C"
10843#endif
10844char $ac_func ();
10845/* The GNU C library defines this for functions which it implements
10846    to always fail with ENOSYS.  Some functions are actually named
10847    something starting with __ and the normal name is an alias.  */
10848#if defined __stub_$ac_func || defined __stub___$ac_func
10849choke me
10850#endif
10851
10852int
10853main ()
10854{
10855return $ac_func ();
10856  ;
10857  return 0;
10858}
10859_ACEOF
10860rm -f conftest.$ac_objext conftest$ac_exeext
10861if { (ac_try="$ac_link"
10862case "(($ac_try" in
10863  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10864  *) ac_try_echo=$ac_try;;
10865esac
10866eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10867  (eval "$ac_link") 2>conftest.er1
10868  ac_status=$?
10869  grep -v '^ *+' conftest.er1 >conftest.err
10870  rm -f conftest.er1
10871  cat conftest.err >&5
10872  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10873  (exit $ac_status); } && {
10874	 test -z "$ac_c_werror_flag" ||
10875	 test ! -s conftest.err
10876       } && test -s conftest$ac_exeext &&
10877       $as_test_x conftest$ac_exeext; then
10878  eval "$as_ac_var=yes"
10879else
10880  echo "$as_me: failed program was:" >&5
10881sed 's/^/| /' conftest.$ac_ext >&5
10882
10883	eval "$as_ac_var=no"
10884fi
10885
10886rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10887      conftest$ac_exeext conftest.$ac_ext
10888fi
10889ac_res=`eval echo '${'$as_ac_var'}'`
10890	       { echo "$as_me:$LINENO: result: $ac_res" >&5
10891echo "${ECHO_T}$ac_res" >&6; }
10892if test `eval echo '${'$as_ac_var'}'` = yes; then
10893  cat >>confdefs.h <<_ACEOF
10894#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10895_ACEOF
10896
10897fi
10898done
10899
10900	{ echo "$as_me:$LINENO: checking for off64_t" >&5
10901echo $ECHO_N "checking for off64_t... $ECHO_C" >&6; }
10902	if test "${tcl_cv_type_off64_t+set}" = set; then
10903  echo $ECHO_N "(cached) $ECHO_C" >&6
10904else
10905
10906	    cat >conftest.$ac_ext <<_ACEOF
10907/* confdefs.h.  */
10908_ACEOF
10909cat confdefs.h >>conftest.$ac_ext
10910cat >>conftest.$ac_ext <<_ACEOF
10911/* end confdefs.h.  */
10912#include <sys/types.h>
10913int
10914main ()
10915{
10916off64_t offset;
10917
10918  ;
10919  return 0;
10920}
10921_ACEOF
10922rm -f conftest.$ac_objext
10923if { (ac_try="$ac_compile"
10924case "(($ac_try" in
10925  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10926  *) ac_try_echo=$ac_try;;
10927esac
10928eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10929  (eval "$ac_compile") 2>conftest.er1
10930  ac_status=$?
10931  grep -v '^ *+' conftest.er1 >conftest.err
10932  rm -f conftest.er1
10933  cat conftest.err >&5
10934  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10935  (exit $ac_status); } && {
10936	 test -z "$ac_c_werror_flag" ||
10937	 test ! -s conftest.err
10938       } && test -s conftest.$ac_objext; then
10939  tcl_cv_type_off64_t=yes
10940else
10941  echo "$as_me: failed program was:" >&5
10942sed 's/^/| /' conftest.$ac_ext >&5
10943
10944	tcl_cv_type_off64_t=no
10945fi
10946
10947rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10948fi
10949
10950			if test "x${tcl_cv_type_off64_t}" = "xyes" && \
10951	        test "x${ac_cv_func_lseek64}" = "xyes" && \
10952	        test "x${ac_cv_func_open64}" = "xyes" ; then
10953
10954cat >>confdefs.h <<\_ACEOF
10955#define HAVE_TYPE_OFF64_T 1
10956_ACEOF
10957
10958	    { echo "$as_me:$LINENO: result: yes" >&5
10959echo "${ECHO_T}yes" >&6; }
10960	else
10961	    { echo "$as_me:$LINENO: result: no" >&5
10962echo "${ECHO_T}no" >&6; }
10963	fi
10964    fi
10965
10966
10967
10968#--------------------------------------------------------------------
10969# Set the default compiler switches based on the --enable-symbols option.
10970#--------------------------------------------------------------------
10971
10972
10973
10974    { echo "$as_me:$LINENO: checking for build with symbols" >&5
10975echo $ECHO_N "checking for build with symbols... $ECHO_C" >&6; }
10976    # Check whether --enable-symbols was given.
10977if test "${enable_symbols+set}" = set; then
10978  enableval=$enable_symbols; tcl_ok=$enableval
10979else
10980  tcl_ok=no
10981fi
10982
10983    DBGX=""
10984    if test "$tcl_ok" = "no"; then
10985	CFLAGS_DEFAULT="${CFLAGS_OPTIMIZE}"
10986	LDFLAGS_DEFAULT="${LDFLAGS_OPTIMIZE}"
10987	{ echo "$as_me:$LINENO: result: no" >&5
10988echo "${ECHO_T}no" >&6; }
10989    else
10990	CFLAGS_DEFAULT="${CFLAGS_DEBUG}"
10991	LDFLAGS_DEFAULT="${LDFLAGS_DEBUG}"
10992	if test "$tcl_ok" = "yes"; then
10993	    { echo "$as_me:$LINENO: result: yes (standard debugging)" >&5
10994echo "${ECHO_T}yes (standard debugging)" >&6; }
10995	fi
10996    fi
10997    # TEA specific:
10998    if test "${TEA_PLATFORM}" != "windows" ; then
10999	LDFLAGS_DEFAULT="${LDFLAGS}"
11000    fi
11001
11002
11003
11004
11005    if test "$tcl_ok" = "mem" -o "$tcl_ok" = "all"; then
11006
11007cat >>confdefs.h <<\_ACEOF
11008#define TCL_MEM_DEBUG 1
11009_ACEOF
11010
11011    fi
11012
11013    if test "$tcl_ok" != "yes" -a "$tcl_ok" != "no"; then
11014	if test "$tcl_ok" = "all"; then
11015	    { echo "$as_me:$LINENO: result: enabled symbols mem debugging" >&5
11016echo "${ECHO_T}enabled symbols mem debugging" >&6; }
11017	else
11018	    { echo "$as_me:$LINENO: result: enabled $tcl_ok debugging" >&5
11019echo "${ECHO_T}enabled $tcl_ok debugging" >&6; }
11020	fi
11021    fi
11022
11023
11024#--------------------------------------------------------------------
11025# Everyone should be linking against the Tcl stub library.  If you
11026# can't for some reason, remove this definition.  If you aren't using
11027# stubs, you also need to modify the SHLIB_LD_LIBS setting below to
11028# link against the non-stubbed Tcl library.  Add Tk too if necessary.
11029#--------------------------------------------------------------------
11030
11031
11032cat >>confdefs.h <<\_ACEOF
11033#define USE_TCL_STUBS 1
11034_ACEOF
11035
11036
11037cat >>confdefs.h <<\_ACEOF
11038#define USE_TK_STUBS 1
11039_ACEOF
11040
11041
11042#--------------------------------------------------------------------
11043# This macro generates a line to use when building a library.  It
11044# depends on values set by the TEA_ENABLE_SHARED, TEA_ENABLE_SYMBOLS,
11045# and TEA_LOAD_TCLCONFIG macros above.
11046#--------------------------------------------------------------------
11047
11048
11049    if test "${TEA_PLATFORM}" = "windows" -a "$GCC" != "yes"; then
11050	MAKE_STATIC_LIB="\${STLIB_LD} -out:\$@ \$(PKG_OBJECTS)"
11051	MAKE_SHARED_LIB="\${SHLIB_LD} \${SHLIB_LD_LIBS} \${LDFLAGS_DEFAULT} -out:\$@ \$(PKG_OBJECTS)"
11052	cat >conftest.$ac_ext <<_ACEOF
11053/* confdefs.h.  */
11054_ACEOF
11055cat confdefs.h >>conftest.$ac_ext
11056cat >>conftest.$ac_ext <<_ACEOF
11057/* end confdefs.h.  */
11058
11059#if defined(_MSC_VER) && _MSC_VER >= 1400
11060print("manifest needed")
11061#endif
11062
11063_ACEOF
11064if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11065  $EGREP "manifest needed" >/dev/null 2>&1; then
11066
11067	# Could do a CHECK_PROG for mt, but should always be with MSVC8+
11068	VC_MANIFEST_EMBED_DLL="mt.exe -nologo -manifest \$@.manifest -outputresource:\$@\;2"
11069	VC_MANIFEST_EMBED_EXE="mt.exe -nologo -manifest \$@.manifest -outputresource:\$@\;1"
11070	MAKE_SHARED_LIB="${MAKE_SHARED_LIB} ; ${VC_MANIFEST_EMBED_DLL}"
11071
11072    CLEANFILES="$CLEANFILES *.manifest"
11073
11074
11075fi
11076rm -f -r conftest*
11077
11078	MAKE_STUB_LIB="\${STLIB_LD} -out:\$@ \$(PKG_STUB_OBJECTS)"
11079    else
11080	MAKE_STATIC_LIB="\${STLIB_LD} \$@ \$(PKG_OBJECTS)"
11081	MAKE_SHARED_LIB="\${SHLIB_LD} -o \$@ \$(PKG_OBJECTS) \${SHLIB_LD_LIBS}"
11082	MAKE_STUB_LIB="\${STLIB_LD} \$@ \$(PKG_STUB_OBJECTS)"
11083    fi
11084
11085    if test "${SHARED_BUILD}" = "1" ; then
11086	MAKE_LIB="${MAKE_SHARED_LIB} "
11087    else
11088	MAKE_LIB="${MAKE_STATIC_LIB} "
11089    fi
11090
11091    #--------------------------------------------------------------------
11092    # Shared libraries and static libraries have different names.
11093    # Use the double eval to make sure any variables in the suffix is
11094    # substituted. (@@@ Might not be necessary anymore)
11095    #--------------------------------------------------------------------
11096
11097    if test "${TEA_PLATFORM}" = "windows" ; then
11098	if test "${SHARED_BUILD}" = "1" ; then
11099	    # We force the unresolved linking of symbols that are really in
11100	    # the private libraries of Tcl and Tk.
11101	    SHLIB_LD_LIBS="${SHLIB_LD_LIBS} \"`${CYGPATH} ${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}`\""
11102	    if test x"${TK_BIN_DIR}" != x ; then
11103		SHLIB_LD_LIBS="${SHLIB_LD_LIBS} \"`${CYGPATH} ${TK_BIN_DIR}/${TK_STUB_LIB_FILE}`\""
11104	    fi
11105	    eval eval "PKG_LIB_FILE=${PACKAGE_NAME}${SHARED_LIB_SUFFIX}"
11106	else
11107	    eval eval "PKG_LIB_FILE=${PACKAGE_NAME}${UNSHARED_LIB_SUFFIX}"
11108	fi
11109	# Some packages build their own stubs libraries
11110	eval eval "PKG_STUB_LIB_FILE=${PACKAGE_NAME}stub${UNSHARED_LIB_SUFFIX}"
11111	if test "$GCC" = "yes"; then
11112	    PKG_STUB_LIB_FILE=lib${PKG_STUB_LIB_FILE}
11113	fi
11114	# These aren't needed on Windows (either MSVC or gcc)
11115	RANLIB=:
11116	RANLIB_STUB=:
11117    else
11118	RANLIB_STUB="${RANLIB}"
11119	if test "${SHARED_BUILD}" = "1" ; then
11120	    SHLIB_LD_LIBS="${SHLIB_LD_LIBS} ${TCL_STUB_LIB_SPEC}"
11121	    if test x"${TK_BIN_DIR}" != x ; then
11122		SHLIB_LD_LIBS="${SHLIB_LD_LIBS} ${TK_STUB_LIB_SPEC}"
11123	    fi
11124	    eval eval "PKG_LIB_FILE=lib${PACKAGE_NAME}${SHARED_LIB_SUFFIX}"
11125	    RANLIB=:
11126	else
11127	    eval eval "PKG_LIB_FILE=lib${PACKAGE_NAME}${UNSHARED_LIB_SUFFIX}"
11128	fi
11129	# Some packages build their own stubs libraries
11130	eval eval "PKG_STUB_LIB_FILE=lib${PACKAGE_NAME}stub${UNSHARED_LIB_SUFFIX}"
11131    fi
11132
11133    # These are escaped so that only CFLAGS is picked up at configure time.
11134    # The other values will be substituted at make time.
11135    CFLAGS="${CFLAGS} \${CFLAGS_DEFAULT} \${CFLAGS_WARNING}"
11136    if test "${SHARED_BUILD}" = "1" ; then
11137	CFLAGS="${CFLAGS} \${SHLIB_CFLAGS}"
11138    fi
11139
11140
11141
11142
11143
11144
11145
11146
11147
11148
11149#--------------------------------------------------------------------
11150# Determine the name of the tclsh and/or wish executables in the
11151# Tcl and Tk build directories or the location they were installed
11152# into. These paths are used to support running test cases only,
11153# the Makefile should not be making use of these paths to generate
11154# a pkgIndex.tcl file or anything else at extension build time.
11155#--------------------------------------------------------------------
11156
11157
11158    { echo "$as_me:$LINENO: checking for tclsh" >&5
11159echo $ECHO_N "checking for tclsh... $ECHO_C" >&6; }
11160    if test -f "${TCL_BIN_DIR}/Makefile" ; then
11161        # tclConfig.sh is in Tcl build directory
11162        if test "${TEA_PLATFORM}" = "windows"; then
11163            TCLSH_PROG="${TCL_BIN_DIR}/tclsh${TCL_MAJOR_VERSION}${TCL_MINOR_VERSION}${TCL_DBGX}${EXEEXT}"
11164        else
11165            TCLSH_PROG="${TCL_BIN_DIR}/tclsh"
11166        fi
11167    else
11168        # tclConfig.sh is in install location
11169        if test "${TEA_PLATFORM}" = "windows"; then
11170            TCLSH_PROG="tclsh${TCL_MAJOR_VERSION}${TCL_MINOR_VERSION}${TCL_DBGX}${EXEEXT}"
11171        else
11172            TCLSH_PROG="tclsh${TCL_MAJOR_VERSION}.${TCL_MINOR_VERSION}${TCL_DBGX}"
11173        fi
11174        list="`ls -d ${TCL_BIN_DIR}/../bin 2>/dev/null` \
11175              `ls -d ${TCL_BIN_DIR}/..     2>/dev/null` \
11176              `ls -d ${TCL_PREFIX}/bin     2>/dev/null`"
11177        for i in $list ; do
11178            if test -f "$i/${TCLSH_PROG}" ; then
11179                REAL_TCL_BIN_DIR="`cd "$i"; pwd`/"
11180                break
11181            fi
11182        done
11183        TCLSH_PROG="${REAL_TCL_BIN_DIR}${TCLSH_PROG}"
11184    fi
11185    { echo "$as_me:$LINENO: result: ${TCLSH_PROG}" >&5
11186echo "${ECHO_T}${TCLSH_PROG}" >&6; }
11187
11188
11189
11190    { echo "$as_me:$LINENO: checking for wish" >&5
11191echo $ECHO_N "checking for wish... $ECHO_C" >&6; }
11192    if test -f "${TK_BIN_DIR}/Makefile" ; then
11193        # tkConfig.sh is in Tk build directory
11194        if test "${TEA_PLATFORM}" = "windows"; then
11195            WISH_PROG="${TK_BIN_DIR}/wish${TK_MAJOR_VERSION}${TK_MINOR_VERSION}${TK_DBGX}${EXEEXT}"
11196        else
11197            WISH_PROG="${TK_BIN_DIR}/wish"
11198        fi
11199    else
11200        # tkConfig.sh is in install location
11201        if test "${TEA_PLATFORM}" = "windows"; then
11202            WISH_PROG="wish${TK_MAJOR_VERSION}${TK_MINOR_VERSION}${TK_DBGX}${EXEEXT}"
11203        else
11204            WISH_PROG="wish${TK_MAJOR_VERSION}.${TK_MINOR_VERSION}${TK_DBGX}"
11205        fi
11206        list="`ls -d ${TK_BIN_DIR}/../bin 2>/dev/null` \
11207              `ls -d ${TK_BIN_DIR}/..     2>/dev/null` \
11208              `ls -d ${TK_PREFIX}/bin     2>/dev/null`"
11209        for i in $list ; do
11210            if test -f "$i/${WISH_PROG}" ; then
11211                REAL_TK_BIN_DIR="`cd "$i"; pwd`/"
11212                break
11213            fi
11214        done
11215        WISH_PROG="${REAL_TK_BIN_DIR}${WISH_PROG}"
11216    fi
11217    { echo "$as_me:$LINENO: result: ${WISH_PROG}" >&5
11218echo "${ECHO_T}${WISH_PROG}" >&6; }
11219
11220
11221
11222#--------------------------------------------------------------------
11223# Finally, substitute all of the various values into the Makefile.
11224# You may alternatively have a special pkgIndex.tcl.in or other files
11225# which require substituting th AC variables in.  Include these here.
11226#--------------------------------------------------------------------
11227
11228ac_config_files="$ac_config_files Makefile pkgIndex.tcl"
11229
11230cat >confcache <<\_ACEOF
11231# This file is a shell script that caches the results of configure
11232# tests run on this system so they can be shared between configure
11233# scripts and configure runs, see configure's option --config-cache.
11234# It is not useful on other systems.  If it contains results you don't
11235# want to keep, you may remove or edit it.
11236#
11237# config.status only pays attention to the cache file if you give it
11238# the --recheck option to rerun configure.
11239#
11240# `ac_cv_env_foo' variables (set or unset) will be overridden when
11241# loading this file, other *unset* `ac_cv_foo' will be assigned the
11242# following values.
11243
11244_ACEOF
11245
11246# The following way of writing the cache mishandles newlines in values,
11247# but we know of no workaround that is simple, portable, and efficient.
11248# So, we kill variables containing newlines.
11249# Ultrix sh set writes to stderr and can't be redirected directly,
11250# and sets the high bit in the cache file unless we assign to the vars.
11251(
11252  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11253    eval ac_val=\$$ac_var
11254    case $ac_val in #(
11255    *${as_nl}*)
11256      case $ac_var in #(
11257      *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
11258echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
11259      esac
11260      case $ac_var in #(
11261      _ | IFS | as_nl) ;; #(
11262      *) $as_unset $ac_var ;;
11263      esac ;;
11264    esac
11265  done
11266
11267  (set) 2>&1 |
11268    case $as_nl`(ac_space=' '; set) 2>&1` in #(
11269    *${as_nl}ac_space=\ *)
11270      # `set' does not quote correctly, so add quotes (double-quote
11271      # substitution turns \\\\ into \\, and sed turns \\ into \).
11272      sed -n \
11273	"s/'/'\\\\''/g;
11274	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11275      ;; #(
11276    *)
11277      # `set' quotes correctly as required by POSIX, so do not add quotes.
11278      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11279      ;;
11280    esac |
11281    sort
11282) |
11283  sed '
11284     /^ac_cv_env_/b end
11285     t clear
11286     :clear
11287     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11288     t end
11289     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11290     :end' >>confcache
11291if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11292  if test -w "$cache_file"; then
11293    test "x$cache_file" != "x/dev/null" &&
11294      { echo "$as_me:$LINENO: updating cache $cache_file" >&5
11295echo "$as_me: updating cache $cache_file" >&6;}
11296    cat confcache >$cache_file
11297  else
11298    { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
11299echo "$as_me: not updating unwritable cache $cache_file" >&6;}
11300  fi
11301fi
11302rm -f confcache
11303
11304test "x$prefix" = xNONE && prefix=$ac_default_prefix
11305# Let make expand exec_prefix.
11306test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11307
11308# Transform confdefs.h into DEFS.
11309# Protect against shell expansion while executing Makefile rules.
11310# Protect against Makefile macro expansion.
11311#
11312# If the first sed substitution is executed (which looks for macros that
11313# take arguments), then branch to the quote section.  Otherwise,
11314# look for a macro that doesn't take arguments.
11315ac_script='
11316t clear
11317:clear
11318s/^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 (][^	 (]*([^)]*)\)[	 ]*\(.*\)/-D\1=\2/g
11319t quote
11320s/^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 ][^	 ]*\)[	 ]*\(.*\)/-D\1=\2/g
11321t quote
11322b any
11323:quote
11324s/[	 `~#$^&*(){}\\|;'\''"<>?]/\\&/g
11325s/\[/\\&/g
11326s/\]/\\&/g
11327s/\$/$$/g
11328H
11329:any
11330${
11331	g
11332	s/^\n//
11333	s/\n/ /g
11334	p
11335}
11336'
11337DEFS=`sed -n "$ac_script" confdefs.h`
11338
11339
11340ac_libobjs=
11341ac_ltlibobjs=
11342for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11343  # 1. Remove the extension, and $U if already installed.
11344  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11345  ac_i=`echo "$ac_i" | sed "$ac_script"`
11346  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
11347  #    will be set to the directory where LIBOBJS objects are built.
11348  ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11349  ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
11350done
11351LIBOBJS=$ac_libobjs
11352
11353LTLIBOBJS=$ac_ltlibobjs
11354
11355
11356CFLAGS="${CFLAGS} ${CPPFLAGS}"; CPPFLAGS=""
11357
11358: ${CONFIG_STATUS=./config.status}
11359ac_clean_files_save=$ac_clean_files
11360ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11361{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
11362echo "$as_me: creating $CONFIG_STATUS" >&6;}
11363cat >$CONFIG_STATUS <<_ACEOF
11364#! $SHELL
11365# Generated by $as_me.
11366# Run this file to recreate the current configuration.
11367# Compiler output produced by configure, useful for debugging
11368# configure, is in config.log if it exists.
11369
11370debug=false
11371ac_cs_recheck=false
11372ac_cs_silent=false
11373SHELL=\${CONFIG_SHELL-$SHELL}
11374_ACEOF
11375
11376cat >>$CONFIG_STATUS <<\_ACEOF
11377## --------------------- ##
11378## M4sh Initialization.  ##
11379## --------------------- ##
11380
11381# Be more Bourne compatible
11382DUALCASE=1; export DUALCASE # for MKS sh
11383if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
11384  emulate sh
11385  NULLCMD=:
11386  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
11387  # is contrary to our usage.  Disable this feature.
11388  alias -g '${1+"$@"}'='"$@"'
11389  setopt NO_GLOB_SUBST
11390else
11391  case `(set -o) 2>/dev/null` in
11392  *posix*) set -o posix ;;
11393esac
11394
11395fi
11396
11397
11398
11399
11400# PATH needs CR
11401# Avoid depending upon Character Ranges.
11402as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11403as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11404as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11405as_cr_digits='0123456789'
11406as_cr_alnum=$as_cr_Letters$as_cr_digits
11407
11408# The user is always right.
11409if test "${PATH_SEPARATOR+set}" != set; then
11410  echo "#! /bin/sh" >conf$$.sh
11411  echo  "exit 0"   >>conf$$.sh
11412  chmod +x conf$$.sh
11413  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11414    PATH_SEPARATOR=';'
11415  else
11416    PATH_SEPARATOR=:
11417  fi
11418  rm -f conf$$.sh
11419fi
11420
11421# Support unset when possible.
11422if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
11423  as_unset=unset
11424else
11425  as_unset=false
11426fi
11427
11428
11429# IFS
11430# We need space, tab and new line, in precisely that order.  Quoting is
11431# there to prevent editors from complaining about space-tab.
11432# (If _AS_PATH_WALK were called with IFS unset, it would disable word
11433# splitting by setting IFS to empty value.)
11434as_nl='
11435'
11436IFS=" ""	$as_nl"
11437
11438# Find who we are.  Look in the path if we contain no directory separator.
11439case $0 in
11440  *[\\/]* ) as_myself=$0 ;;
11441  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11442for as_dir in $PATH
11443do
11444  IFS=$as_save_IFS
11445  test -z "$as_dir" && as_dir=.
11446  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11447done
11448IFS=$as_save_IFS
11449
11450     ;;
11451esac
11452# We did not find ourselves, most probably we were run as `sh COMMAND'
11453# in which case we are not to be found in the path.
11454if test "x$as_myself" = x; then
11455  as_myself=$0
11456fi
11457if test ! -f "$as_myself"; then
11458  echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11459  { (exit 1); exit 1; }
11460fi
11461
11462# Work around bugs in pre-3.0 UWIN ksh.
11463for as_var in ENV MAIL MAILPATH
11464do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
11465done
11466PS1='$ '
11467PS2='> '
11468PS4='+ '
11469
11470# NLS nuisances.
11471for as_var in \
11472  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
11473  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
11474  LC_TELEPHONE LC_TIME
11475do
11476  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
11477    eval $as_var=C; export $as_var
11478  else
11479    ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
11480  fi
11481done
11482
11483# Required to use basename.
11484if expr a : '\(a\)' >/dev/null 2>&1 &&
11485   test "X`expr 00001 : '.*\(...\)'`" = X001; then
11486  as_expr=expr
11487else
11488  as_expr=false
11489fi
11490
11491if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11492  as_basename=basename
11493else
11494  as_basename=false
11495fi
11496
11497
11498# Name of the executable.
11499as_me=`$as_basename -- "$0" ||
11500$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11501	 X"$0" : 'X\(//\)$' \| \
11502	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11503echo X/"$0" |
11504    sed '/^.*\/\([^/][^/]*\)\/*$/{
11505	    s//\1/
11506	    q
11507	  }
11508	  /^X\/\(\/\/\)$/{
11509	    s//\1/
11510	    q
11511	  }
11512	  /^X\/\(\/\).*/{
11513	    s//\1/
11514	    q
11515	  }
11516	  s/.*/./; q'`
11517
11518# CDPATH.
11519$as_unset CDPATH
11520
11521
11522
11523  as_lineno_1=$LINENO
11524  as_lineno_2=$LINENO
11525  test "x$as_lineno_1" != "x$as_lineno_2" &&
11526  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
11527
11528  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
11529  # uniformly replaced by the line number.  The first 'sed' inserts a
11530  # line-number line after each line using $LINENO; the second 'sed'
11531  # does the real work.  The second script uses 'N' to pair each
11532  # line-number line with the line containing $LINENO, and appends
11533  # trailing '-' during substitution so that $LINENO is not a special
11534  # case at line end.
11535  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
11536  # scripts with optimization help from Paolo Bonzini.  Blame Lee
11537  # E. McMahon (1931-1989) for sed's syntax.  :-)
11538  sed -n '
11539    p
11540    /[$]LINENO/=
11541  ' <$as_myself |
11542    sed '
11543      s/[$]LINENO.*/&-/
11544      t lineno
11545      b
11546      :lineno
11547      N
11548      :loop
11549      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
11550      t loop
11551      s/-\n.*//
11552    ' >$as_me.lineno &&
11553  chmod +x "$as_me.lineno" ||
11554    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
11555   { (exit 1); exit 1; }; }
11556
11557  # Don't try to exec as it changes $[0], causing all sort of problems
11558  # (the dirname of $[0] is not the place where we might find the
11559  # original and so on.  Autoconf is especially sensitive to this).
11560  . "./$as_me.lineno"
11561  # Exit status is that of the last command.
11562  exit
11563}
11564
11565
11566if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11567  as_dirname=dirname
11568else
11569  as_dirname=false
11570fi
11571
11572ECHO_C= ECHO_N= ECHO_T=
11573case `echo -n x` in
11574-n*)
11575  case `echo 'x\c'` in
11576  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
11577  *)   ECHO_C='\c';;
11578  esac;;
11579*)
11580  ECHO_N='-n';;
11581esac
11582
11583if expr a : '\(a\)' >/dev/null 2>&1 &&
11584   test "X`expr 00001 : '.*\(...\)'`" = X001; then
11585  as_expr=expr
11586else
11587  as_expr=false
11588fi
11589
11590rm -f conf$$ conf$$.exe conf$$.file
11591if test -d conf$$.dir; then
11592  rm -f conf$$.dir/conf$$.file
11593else
11594  rm -f conf$$.dir
11595  mkdir conf$$.dir
11596fi
11597echo >conf$$.file
11598if ln -s conf$$.file conf$$ 2>/dev/null; then
11599  as_ln_s='ln -s'
11600  # ... but there are two gotchas:
11601  # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11602  # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
11603  # In both cases, we have to default to `cp -p'.
11604  ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
11605    as_ln_s='cp -p'
11606elif ln conf$$.file conf$$ 2>/dev/null; then
11607  as_ln_s=ln
11608else
11609  as_ln_s='cp -p'
11610fi
11611rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11612rmdir conf$$.dir 2>/dev/null
11613
11614if mkdir -p . 2>/dev/null; then
11615  as_mkdir_p=:
11616else
11617  test -d ./-p && rmdir ./-p
11618  as_mkdir_p=false
11619fi
11620
11621if test -x / >/dev/null 2>&1; then
11622  as_test_x='test -x'
11623else
11624  if ls -dL / >/dev/null 2>&1; then
11625    as_ls_L_option=L
11626  else
11627    as_ls_L_option=
11628  fi
11629  as_test_x='
11630    eval sh -c '\''
11631      if test -d "$1"; then
11632        test -d "$1/.";
11633      else
11634	case $1 in
11635        -*)set "./$1";;
11636	esac;
11637	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
11638	???[sx]*):;;*)false;;esac;fi
11639    '\'' sh
11640  '
11641fi
11642as_executable_p=$as_test_x
11643
11644# Sed expression to map a string onto a valid CPP name.
11645as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11646
11647# Sed expression to map a string onto a valid variable name.
11648as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11649
11650
11651exec 6>&1
11652
11653# Save the log message, to keep $[0] and so on meaningful, and to
11654# report actual input values of CONFIG_FILES etc. instead of their
11655# values after options handling.
11656ac_log="
11657This file was extended by QuickTimeTcl $as_me 3.2, which was
11658generated by GNU Autoconf 2.61.  Invocation command line was
11659
11660  CONFIG_FILES    = $CONFIG_FILES
11661  CONFIG_HEADERS  = $CONFIG_HEADERS
11662  CONFIG_LINKS    = $CONFIG_LINKS
11663  CONFIG_COMMANDS = $CONFIG_COMMANDS
11664  $ $0 $@
11665
11666on `(hostname || uname -n) 2>/dev/null | sed 1q`
11667"
11668
11669_ACEOF
11670
11671cat >>$CONFIG_STATUS <<_ACEOF
11672# Files that config.status was made for.
11673config_files="$ac_config_files"
11674
11675_ACEOF
11676
11677cat >>$CONFIG_STATUS <<\_ACEOF
11678ac_cs_usage="\
11679\`$as_me' instantiates files from templates according to the
11680current configuration.
11681
11682Usage: $0 [OPTIONS] [FILE]...
11683
11684  -h, --help       print this help, then exit
11685  -V, --version    print version number and configuration settings, then exit
11686  -q, --quiet      do not print progress messages
11687  -d, --debug      don't remove temporary files
11688      --recheck    update $as_me by reconfiguring in the same conditions
11689  --file=FILE[:TEMPLATE]
11690		   instantiate the configuration file FILE
11691
11692Configuration files:
11693$config_files
11694
11695Report bugs to <bug-autoconf@gnu.org>."
11696
11697_ACEOF
11698cat >>$CONFIG_STATUS <<_ACEOF
11699ac_cs_version="\\
11700QuickTimeTcl config.status 3.2
11701configured by $0, generated by GNU Autoconf 2.61,
11702  with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
11703
11704Copyright (C) 2006 Free Software Foundation, Inc.
11705This config.status script is free software; the Free Software Foundation
11706gives unlimited permission to copy, distribute and modify it."
11707
11708ac_pwd='$ac_pwd'
11709srcdir='$srcdir'
11710INSTALL='$INSTALL'
11711_ACEOF
11712
11713cat >>$CONFIG_STATUS <<\_ACEOF
11714# If no file are specified by the user, then we need to provide default
11715# value.  By we need to know if files were specified by the user.
11716ac_need_defaults=:
11717while test $# != 0
11718do
11719  case $1 in
11720  --*=*)
11721    ac_option=`expr "X$1" : 'X\([^=]*\)='`
11722    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
11723    ac_shift=:
11724    ;;
11725  *)
11726    ac_option=$1
11727    ac_optarg=$2
11728    ac_shift=shift
11729    ;;
11730  esac
11731
11732  case $ac_option in
11733  # Handling of the options.
11734  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11735    ac_cs_recheck=: ;;
11736  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
11737    echo "$ac_cs_version"; exit ;;
11738  --debug | --debu | --deb | --de | --d | -d )
11739    debug=: ;;
11740  --file | --fil | --fi | --f )
11741    $ac_shift
11742    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
11743    ac_need_defaults=false;;
11744  --he | --h |  --help | --hel | -h )
11745    echo "$ac_cs_usage"; exit ;;
11746  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11747  | -silent | --silent | --silen | --sile | --sil | --si | --s)
11748    ac_cs_silent=: ;;
11749
11750  # This is an error.
11751  -*) { echo "$as_me: error: unrecognized option: $1
11752Try \`$0 --help' for more information." >&2
11753   { (exit 1); exit 1; }; } ;;
11754
11755  *) ac_config_targets="$ac_config_targets $1"
11756     ac_need_defaults=false ;;
11757
11758  esac
11759  shift
11760done
11761
11762ac_configure_extra_args=
11763
11764if $ac_cs_silent; then
11765  exec 6>/dev/null
11766  ac_configure_extra_args="$ac_configure_extra_args --silent"
11767fi
11768
11769_ACEOF
11770cat >>$CONFIG_STATUS <<_ACEOF
11771if \$ac_cs_recheck; then
11772  echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
11773  CONFIG_SHELL=$SHELL
11774  export CONFIG_SHELL
11775  exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11776fi
11777
11778_ACEOF
11779cat >>$CONFIG_STATUS <<\_ACEOF
11780exec 5>>config.log
11781{
11782  echo
11783  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11784## Running $as_me. ##
11785_ASBOX
11786  echo "$ac_log"
11787} >&5
11788
11789_ACEOF
11790cat >>$CONFIG_STATUS <<_ACEOF
11791_ACEOF
11792
11793cat >>$CONFIG_STATUS <<\_ACEOF
11794
11795# Handling of arguments.
11796for ac_config_target in $ac_config_targets
11797do
11798  case $ac_config_target in
11799    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
11800    "pkgIndex.tcl") CONFIG_FILES="$CONFIG_FILES pkgIndex.tcl" ;;
11801
11802  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
11803echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
11804   { (exit 1); exit 1; }; };;
11805  esac
11806done
11807
11808
11809# If the user did not use the arguments to specify the items to instantiate,
11810# then the envvar interface is used.  Set only those that are not.
11811# We use the long form for the default assignment because of an extremely
11812# bizarre bug on SunOS 4.1.3.
11813if $ac_need_defaults; then
11814  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
11815fi
11816
11817# Have a temporary directory for convenience.  Make it in the build tree
11818# simply because there is no reason against having it here, and in addition,
11819# creating and moving files from /tmp can sometimes cause problems.
11820# Hook for its removal unless debugging.
11821# Note that there is a small window in which the directory will not be cleaned:
11822# after its creation but before its name has been assigned to `$tmp'.
11823$debug ||
11824{
11825  tmp=
11826  trap 'exit_status=$?
11827  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
11828' 0
11829  trap '{ (exit 1); exit 1; }' 1 2 13 15
11830}
11831# Create a (secure) tmp directory for tmp files.
11832
11833{
11834  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
11835  test -n "$tmp" && test -d "$tmp"
11836}  ||
11837{
11838  tmp=./conf$$-$RANDOM
11839  (umask 077 && mkdir "$tmp")
11840} ||
11841{
11842   echo "$me: cannot create a temporary directory in ." >&2
11843   { (exit 1); exit 1; }
11844}
11845
11846#
11847# Set up the sed scripts for CONFIG_FILES section.
11848#
11849
11850# No need to generate the scripts if there are no CONFIG_FILES.
11851# This happens for instance when ./config.status config.h
11852if test -n "$CONFIG_FILES"; then
11853
11854_ACEOF
11855
11856
11857
11858ac_delim='%!_!# '
11859for ac_last_try in false false false false false :; do
11860  cat >conf$$subs.sed <<_ACEOF
11861SHELL!$SHELL$ac_delim
11862PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
11863PACKAGE_NAME!$PACKAGE_NAME$ac_delim
11864PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
11865PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
11866PACKAGE_STRING!$PACKAGE_STRING$ac_delim
11867PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
11868exec_prefix!$exec_prefix$ac_delim
11869prefix!$prefix$ac_delim
11870program_transform_name!$program_transform_name$ac_delim
11871bindir!$bindir$ac_delim
11872sbindir!$sbindir$ac_delim
11873libexecdir!$libexecdir$ac_delim
11874datarootdir!$datarootdir$ac_delim
11875datadir!$datadir$ac_delim
11876sysconfdir!$sysconfdir$ac_delim
11877sharedstatedir!$sharedstatedir$ac_delim
11878localstatedir!$localstatedir$ac_delim
11879includedir!$includedir$ac_delim
11880oldincludedir!$oldincludedir$ac_delim
11881docdir!$docdir$ac_delim
11882infodir!$infodir$ac_delim
11883htmldir!$htmldir$ac_delim
11884dvidir!$dvidir$ac_delim
11885pdfdir!$pdfdir$ac_delim
11886psdir!$psdir$ac_delim
11887libdir!$libdir$ac_delim
11888localedir!$localedir$ac_delim
11889mandir!$mandir$ac_delim
11890DEFS!$DEFS$ac_delim
11891ECHO_C!$ECHO_C$ac_delim
11892ECHO_N!$ECHO_N$ac_delim
11893ECHO_T!$ECHO_T$ac_delim
11894LIBS!$LIBS$ac_delim
11895build_alias!$build_alias$ac_delim
11896host_alias!$host_alias$ac_delim
11897target_alias!$target_alias$ac_delim
11898CYGPATH!$CYGPATH$ac_delim
11899EXEEXT!$EXEEXT$ac_delim
11900PKG_LIB_FILE!$PKG_LIB_FILE$ac_delim
11901PKG_STUB_LIB_FILE!$PKG_STUB_LIB_FILE$ac_delim
11902PKG_STUB_SOURCES!$PKG_STUB_SOURCES$ac_delim
11903PKG_STUB_OBJECTS!$PKG_STUB_OBJECTS$ac_delim
11904PKG_TCL_SOURCES!$PKG_TCL_SOURCES$ac_delim
11905PKG_HEADERS!$PKG_HEADERS$ac_delim
11906PKG_INCLUDES!$PKG_INCLUDES$ac_delim
11907PKG_LIBS!$PKG_LIBS$ac_delim
11908PKG_CFLAGS!$PKG_CFLAGS$ac_delim
11909TCL_VERSION!$TCL_VERSION$ac_delim
11910TCL_PATCH_LEVEL!$TCL_PATCH_LEVEL$ac_delim
11911TCL_BIN_DIR!$TCL_BIN_DIR$ac_delim
11912TCL_SRC_DIR!$TCL_SRC_DIR$ac_delim
11913TCL_LIB_FILE!$TCL_LIB_FILE$ac_delim
11914TCL_LIB_FLAG!$TCL_LIB_FLAG$ac_delim
11915TCL_LIB_SPEC!$TCL_LIB_SPEC$ac_delim
11916TCL_STUB_LIB_FILE!$TCL_STUB_LIB_FILE$ac_delim
11917TCL_STUB_LIB_FLAG!$TCL_STUB_LIB_FLAG$ac_delim
11918TCL_STUB_LIB_SPEC!$TCL_STUB_LIB_SPEC$ac_delim
11919CLEANFILES!$CLEANFILES$ac_delim
11920TCL_LIBS!$TCL_LIBS$ac_delim
11921TCL_DEFS!$TCL_DEFS$ac_delim
11922TCL_EXTRA_CFLAGS!$TCL_EXTRA_CFLAGS$ac_delim
11923TCL_LD_FLAGS!$TCL_LD_FLAGS$ac_delim
11924TCL_SHLIB_LD_LIBS!$TCL_SHLIB_LD_LIBS$ac_delim
11925TK_VERSION!$TK_VERSION$ac_delim
11926TK_BIN_DIR!$TK_BIN_DIR$ac_delim
11927TK_SRC_DIR!$TK_SRC_DIR$ac_delim
11928TK_LIB_FILE!$TK_LIB_FILE$ac_delim
11929TK_LIB_FLAG!$TK_LIB_FLAG$ac_delim
11930TK_LIB_SPEC!$TK_LIB_SPEC$ac_delim
11931TK_STUB_LIB_FILE!$TK_STUB_LIB_FILE$ac_delim
11932TK_STUB_LIB_FLAG!$TK_STUB_LIB_FLAG$ac_delim
11933TK_STUB_LIB_SPEC!$TK_STUB_LIB_SPEC$ac_delim
11934TK_LIBS!$TK_LIBS$ac_delim
11935TK_XINCLUDES!$TK_XINCLUDES$ac_delim
11936CC!$CC$ac_delim
11937CFLAGS!$CFLAGS$ac_delim
11938LDFLAGS!$LDFLAGS$ac_delim
11939CPPFLAGS!$CPPFLAGS$ac_delim
11940ac_ct_CC!$ac_ct_CC$ac_delim
11941OBJEXT!$OBJEXT$ac_delim
11942CPP!$CPP$ac_delim
11943INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
11944INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
11945INSTALL_DATA!$INSTALL_DATA$ac_delim
11946SET_MAKE!$SET_MAKE$ac_delim
11947RANLIB!$RANLIB$ac_delim
11948GREP!$GREP$ac_delim
11949EGREP!$EGREP$ac_delim
11950MATH_LIBS!$MATH_LIBS$ac_delim
11951PKG_SOURCES!$PKG_SOURCES$ac_delim
11952PKG_OBJECTS!$PKG_OBJECTS$ac_delim
11953TCL_INCLUDES!$TCL_INCLUDES$ac_delim
11954TK_INCLUDES!$TK_INCLUDES$ac_delim
11955TK_TOP_DIR_NATIVE!$TK_TOP_DIR_NATIVE$ac_delim
11956TK_XLIB_DIR_NATIVE!$TK_XLIB_DIR_NATIVE$ac_delim
11957XMKMF!$XMKMF$ac_delim
11958_ACEOF
11959
11960  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
11961    break
11962  elif $ac_last_try; then
11963    { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
11964echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
11965   { (exit 1); exit 1; }; }
11966  else
11967    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11968  fi
11969done
11970
11971ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
11972if test -n "$ac_eof"; then
11973  ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
11974  ac_eof=`expr $ac_eof + 1`
11975fi
11976
11977cat >>$CONFIG_STATUS <<_ACEOF
11978cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
11979/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
11980_ACEOF
11981sed '
11982s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
11983s/^/s,@/; s/!/@,|#_!!_#|/
11984:n
11985t n
11986s/'"$ac_delim"'$/,g/; t
11987s/$/\\/; p
11988N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
11989' >>$CONFIG_STATUS <conf$$subs.sed
11990rm -f conf$$subs.sed
11991cat >>$CONFIG_STATUS <<_ACEOF
11992CEOF$ac_eof
11993_ACEOF
11994
11995
11996ac_delim='%!_!# '
11997for ac_last_try in false false false false false :; do
11998  cat >conf$$subs.sed <<_ACEOF
11999TCL_THREADS!$TCL_THREADS$ac_delim
12000SHARED_BUILD!$SHARED_BUILD$ac_delim
12001AR!$AR$ac_delim
12002CELIB_DIR!$CELIB_DIR$ac_delim
12003CFLAGS_DEBUG!$CFLAGS_DEBUG$ac_delim
12004CFLAGS_OPTIMIZE!$CFLAGS_OPTIMIZE$ac_delim
12005CFLAGS_WARNING!$CFLAGS_WARNING$ac_delim
12006STLIB_LD!$STLIB_LD$ac_delim
12007SHLIB_LD!$SHLIB_LD$ac_delim
12008SHLIB_LD_LIBS!$SHLIB_LD_LIBS$ac_delim
12009SHLIB_CFLAGS!$SHLIB_CFLAGS$ac_delim
12010LD_LIBRARY_PATH_VAR!$LD_LIBRARY_PATH_VAR$ac_delim
12011CFLAGS_DEFAULT!$CFLAGS_DEFAULT$ac_delim
12012LDFLAGS_DEFAULT!$LDFLAGS_DEFAULT$ac_delim
12013TCL_DBGX!$TCL_DBGX$ac_delim
12014MAKE_LIB!$MAKE_LIB$ac_delim
12015MAKE_SHARED_LIB!$MAKE_SHARED_LIB$ac_delim
12016MAKE_STATIC_LIB!$MAKE_STATIC_LIB$ac_delim
12017MAKE_STUB_LIB!$MAKE_STUB_LIB$ac_delim
12018RANLIB_STUB!$RANLIB_STUB$ac_delim
12019VC_MANIFEST_EMBED_DLL!$VC_MANIFEST_EMBED_DLL$ac_delim
12020VC_MANIFEST_EMBED_EXE!$VC_MANIFEST_EMBED_EXE$ac_delim
12021TCLSH_PROG!$TCLSH_PROG$ac_delim
12022WISH_PROG!$WISH_PROG$ac_delim
12023LIBOBJS!$LIBOBJS$ac_delim
12024LTLIBOBJS!$LTLIBOBJS$ac_delim
12025_ACEOF
12026
12027  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 26; then
12028    break
12029  elif $ac_last_try; then
12030    { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
12031echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
12032   { (exit 1); exit 1; }; }
12033  else
12034    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12035  fi
12036done
12037
12038ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
12039if test -n "$ac_eof"; then
12040  ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
12041  ac_eof=`expr $ac_eof + 1`
12042fi
12043
12044cat >>$CONFIG_STATUS <<_ACEOF
12045cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
12046/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
12047_ACEOF
12048sed '
12049s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
12050s/^/s,@/; s/!/@,|#_!!_#|/
12051:n
12052t n
12053s/'"$ac_delim"'$/,g/; t
12054s/$/\\/; p
12055N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
12056' >>$CONFIG_STATUS <conf$$subs.sed
12057rm -f conf$$subs.sed
12058cat >>$CONFIG_STATUS <<_ACEOF
12059:end
12060s/|#_!!_#|//g
12061CEOF$ac_eof
12062_ACEOF
12063
12064
12065# VPATH may cause trouble with some makes, so we remove $(srcdir),
12066# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
12067# trailing colons and then remove the whole line if VPATH becomes empty
12068# (actually we leave an empty line to preserve line numbers).
12069if test "x$srcdir" = x.; then
12070  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
12071s/:*\$(srcdir):*/:/
12072s/:*\${srcdir}:*/:/
12073s/:*@srcdir@:*/:/
12074s/^\([^=]*=[	 ]*\):*/\1/
12075s/:*$//
12076s/^[^=]*=[	 ]*$//
12077}'
12078fi
12079
12080cat >>$CONFIG_STATUS <<\_ACEOF
12081fi # test -n "$CONFIG_FILES"
12082
12083
12084for ac_tag in  :F $CONFIG_FILES
12085do
12086  case $ac_tag in
12087  :[FHLC]) ac_mode=$ac_tag; continue;;
12088  esac
12089  case $ac_mode$ac_tag in
12090  :[FHL]*:*);;
12091  :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
12092echo "$as_me: error: Invalid tag $ac_tag." >&2;}
12093   { (exit 1); exit 1; }; };;
12094  :[FH]-) ac_tag=-:-;;
12095  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12096  esac
12097  ac_save_IFS=$IFS
12098  IFS=:
12099  set x $ac_tag
12100  IFS=$ac_save_IFS
12101  shift
12102  ac_file=$1
12103  shift
12104
12105  case $ac_mode in
12106  :L) ac_source=$1;;
12107  :[FH])
12108    ac_file_inputs=
12109    for ac_f
12110    do
12111      case $ac_f in
12112      -) ac_f="$tmp/stdin";;
12113      *) # Look for the file first in the build tree, then in the source tree
12114	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
12115	 # because $ac_f cannot contain `:'.
12116	 test -f "$ac_f" ||
12117	   case $ac_f in
12118	   [\\/$]*) false;;
12119	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12120	   esac ||
12121	   { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
12122echo "$as_me: error: cannot find input file: $ac_f" >&2;}
12123   { (exit 1); exit 1; }; };;
12124      esac
12125      ac_file_inputs="$ac_file_inputs $ac_f"
12126    done
12127
12128    # Let's still pretend it is `configure' which instantiates (i.e., don't
12129    # use $as_me), people would be surprised to read:
12130    #    /* config.h.  Generated by config.status.  */
12131    configure_input="Generated from "`IFS=:
12132	  echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
12133    if test x"$ac_file" != x-; then
12134      configure_input="$ac_file.  $configure_input"
12135      { echo "$as_me:$LINENO: creating $ac_file" >&5
12136echo "$as_me: creating $ac_file" >&6;}
12137    fi
12138
12139    case $ac_tag in
12140    *:-:* | *:-) cat >"$tmp/stdin";;
12141    esac
12142    ;;
12143  esac
12144
12145  ac_dir=`$as_dirname -- "$ac_file" ||
12146$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12147	 X"$ac_file" : 'X\(//\)[^/]' \| \
12148	 X"$ac_file" : 'X\(//\)$' \| \
12149	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12150echo X"$ac_file" |
12151    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12152	    s//\1/
12153	    q
12154	  }
12155	  /^X\(\/\/\)[^/].*/{
12156	    s//\1/
12157	    q
12158	  }
12159	  /^X\(\/\/\)$/{
12160	    s//\1/
12161	    q
12162	  }
12163	  /^X\(\/\).*/{
12164	    s//\1/
12165	    q
12166	  }
12167	  s/.*/./; q'`
12168  { as_dir="$ac_dir"
12169  case $as_dir in #(
12170  -*) as_dir=./$as_dir;;
12171  esac
12172  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
12173    as_dirs=
12174    while :; do
12175      case $as_dir in #(
12176      *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
12177      *) as_qdir=$as_dir;;
12178      esac
12179      as_dirs="'$as_qdir' $as_dirs"
12180      as_dir=`$as_dirname -- "$as_dir" ||
12181$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12182	 X"$as_dir" : 'X\(//\)[^/]' \| \
12183	 X"$as_dir" : 'X\(//\)$' \| \
12184	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12185echo X"$as_dir" |
12186    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12187	    s//\1/
12188	    q
12189	  }
12190	  /^X\(\/\/\)[^/].*/{
12191	    s//\1/
12192	    q
12193	  }
12194	  /^X\(\/\/\)$/{
12195	    s//\1/
12196	    q
12197	  }
12198	  /^X\(\/\).*/{
12199	    s//\1/
12200	    q
12201	  }
12202	  s/.*/./; q'`
12203      test -d "$as_dir" && break
12204    done
12205    test -z "$as_dirs" || eval "mkdir $as_dirs"
12206  } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
12207echo "$as_me: error: cannot create directory $as_dir" >&2;}
12208   { (exit 1); exit 1; }; }; }
12209  ac_builddir=.
12210
12211case "$ac_dir" in
12212.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12213*)
12214  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
12215  # A ".." for each directory in $ac_dir_suffix.
12216  ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
12217  case $ac_top_builddir_sub in
12218  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12219  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12220  esac ;;
12221esac
12222ac_abs_top_builddir=$ac_pwd
12223ac_abs_builddir=$ac_pwd$ac_dir_suffix
12224# for backward compatibility:
12225ac_top_builddir=$ac_top_build_prefix
12226
12227case $srcdir in
12228  .)  # We are building in place.
12229    ac_srcdir=.
12230    ac_top_srcdir=$ac_top_builddir_sub
12231    ac_abs_top_srcdir=$ac_pwd ;;
12232  [\\/]* | ?:[\\/]* )  # Absolute name.
12233    ac_srcdir=$srcdir$ac_dir_suffix;
12234    ac_top_srcdir=$srcdir
12235    ac_abs_top_srcdir=$srcdir ;;
12236  *) # Relative name.
12237    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12238    ac_top_srcdir=$ac_top_build_prefix$srcdir
12239    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
12240esac
12241ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
12242
12243
12244  case $ac_mode in
12245  :F)
12246  #
12247  # CONFIG_FILE
12248  #
12249
12250  case $INSTALL in
12251  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12252  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
12253  esac
12254_ACEOF
12255
12256cat >>$CONFIG_STATUS <<\_ACEOF
12257# If the template does not know about datarootdir, expand it.
12258# FIXME: This hack should be removed a few years after 2.60.
12259ac_datarootdir_hack=; ac_datarootdir_seen=
12260
12261case `sed -n '/datarootdir/ {
12262  p
12263  q
12264}
12265/@datadir@/p
12266/@docdir@/p
12267/@infodir@/p
12268/@localedir@/p
12269/@mandir@/p
12270' $ac_file_inputs` in
12271*datarootdir*) ac_datarootdir_seen=yes;;
12272*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
12273  { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
12274echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
12275_ACEOF
12276cat >>$CONFIG_STATUS <<_ACEOF
12277  ac_datarootdir_hack='
12278  s&@datadir@&$datadir&g
12279  s&@docdir@&$docdir&g
12280  s&@infodir@&$infodir&g
12281  s&@localedir@&$localedir&g
12282  s&@mandir@&$mandir&g
12283    s&\\\${datarootdir}&$datarootdir&g' ;;
12284esac
12285_ACEOF
12286
12287# Neutralize VPATH when `$srcdir' = `.'.
12288# Shell code in configure.ac might set extrasub.
12289# FIXME: do we really want to maintain this feature?
12290cat >>$CONFIG_STATUS <<_ACEOF
12291  sed "$ac_vpsub
12292$extrasub
12293_ACEOF
12294cat >>$CONFIG_STATUS <<\_ACEOF
12295:t
12296/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12297s&@configure_input@&$configure_input&;t t
12298s&@top_builddir@&$ac_top_builddir_sub&;t t
12299s&@srcdir@&$ac_srcdir&;t t
12300s&@abs_srcdir@&$ac_abs_srcdir&;t t
12301s&@top_srcdir@&$ac_top_srcdir&;t t
12302s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
12303s&@builddir@&$ac_builddir&;t t
12304s&@abs_builddir@&$ac_abs_builddir&;t t
12305s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
12306s&@INSTALL@&$ac_INSTALL&;t t
12307$ac_datarootdir_hack
12308" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
12309
12310test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
12311  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
12312  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
12313  { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12314which seems to be undefined.  Please make sure it is defined." >&5
12315echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12316which seems to be undefined.  Please make sure it is defined." >&2;}
12317
12318  rm -f "$tmp/stdin"
12319  case $ac_file in
12320  -) cat "$tmp/out"; rm -f "$tmp/out";;
12321  *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
12322  esac
12323 ;;
12324
12325
12326
12327  esac
12328
12329done # for ac_tag
12330
12331
12332{ (exit 0); exit 0; }
12333_ACEOF
12334chmod +x $CONFIG_STATUS
12335ac_clean_files=$ac_clean_files_save
12336
12337
12338# configure is writing to config.log, and then calls config.status.
12339# config.status does its own redirection, appending to config.log.
12340# Unfortunately, on DOS this fails, as config.log is still kept open
12341# by configure, so config.status won't be able to write to it; its
12342# output is simply discarded.  So we exec the FD to /dev/null,
12343# effectively closing config.log, so it can be properly (re)opened and
12344# appended to by config.status.  When coming back to configure, we
12345# need to make the FD available again.
12346if test "$no_create" != yes; then
12347  ac_cs_success=:
12348  ac_config_status_args=
12349  test "$silent" = yes &&
12350    ac_config_status_args="$ac_config_status_args --quiet"
12351  exec 5>/dev/null
12352  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
12353  exec 5>>config.log
12354  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12355  # would make configure fail if this is the last instruction.
12356  $ac_cs_success || { (exit 1); exit 1; }
12357fi
12358
12359