1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.69 for tk 8.7.
4#
5#
6# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
7#
8#
9# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
11## -------------------- ##
12## M4sh Initialization. ##
13## -------------------- ##
14
15# Be more Bourne compatible
16DUALCASE=1; export DUALCASE # for MKS sh
17if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18  emulate sh
19  NULLCMD=:
20  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21  # is contrary to our usage.  Disable this feature.
22  alias -g '${1+"$@"}'='"$@"'
23  setopt NO_GLOB_SUBST
24else
25  case `(set -o) 2>/dev/null` in #(
26  *posix*) :
27    set -o posix ;; #(
28  *) :
29     ;;
30esac
31fi
32
33
34as_nl='
35'
36export as_nl
37# Printing a long string crashes Solaris 7 /usr/bin/printf.
38as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41# Prefer a ksh shell builtin over an external printf program on Solaris,
42# but without wasting forks for bash or zsh.
43if test -z "$BASH_VERSION$ZSH_VERSION" \
44    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45  as_echo='print -r --'
46  as_echo_n='print -rn --'
47elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48  as_echo='printf %s\n'
49  as_echo_n='printf %s'
50else
51  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53    as_echo_n='/usr/ucb/echo -n'
54  else
55    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56    as_echo_n_body='eval
57      arg=$1;
58      case $arg in #(
59      *"$as_nl"*)
60	expr "X$arg" : "X\\(.*\\)$as_nl";
61	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62      esac;
63      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64    '
65    export as_echo_n_body
66    as_echo_n='sh -c $as_echo_n_body as_echo'
67  fi
68  export as_echo_body
69  as_echo='sh -c $as_echo_body as_echo'
70fi
71
72# The user is always right.
73if test "${PATH_SEPARATOR+set}" != set; then
74  PATH_SEPARATOR=:
75  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77      PATH_SEPARATOR=';'
78  }
79fi
80
81
82# IFS
83# We need space, tab and new line, in precisely that order.  Quoting is
84# there to prevent editors from complaining about space-tab.
85# (If _AS_PATH_WALK were called with IFS unset, it would disable word
86# splitting by setting IFS to empty value.)
87IFS=" ""	$as_nl"
88
89# Find who we are.  Look in the path if we contain no directory separator.
90as_myself=
91case $0 in #((
92  *[\\/]* ) as_myself=$0 ;;
93  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94for as_dir in $PATH
95do
96  IFS=$as_save_IFS
97  test -z "$as_dir" && as_dir=.
98    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99  done
100IFS=$as_save_IFS
101
102     ;;
103esac
104# We did not find ourselves, most probably we were run as `sh COMMAND'
105# in which case we are not to be found in the path.
106if test "x$as_myself" = x; then
107  as_myself=$0
108fi
109if test ! -f "$as_myself"; then
110  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111  exit 1
112fi
113
114# Unset variables that we do not need and which cause bugs (e.g. in
115# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
116# suppresses any "Segmentation fault" message there.  '((' could
117# trigger a bug in pdksh 5.2.14.
118for as_var in BASH_ENV ENV MAIL MAILPATH
119do eval test x\${$as_var+set} = xset \
120  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121done
122PS1='$ '
123PS2='> '
124PS4='+ '
125
126# NLS nuisances.
127LC_ALL=C
128export LC_ALL
129LANGUAGE=C
130export LANGUAGE
131
132# CDPATH.
133(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134
135# Use a proper internal environment variable to ensure we don't fall
136  # into an infinite loop, continuously re-executing ourselves.
137  if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138    _as_can_reexec=no; export _as_can_reexec;
139    # We cannot yet assume a decent shell, so we have to provide a
140# neutralization value for shells without unset; and this also
141# works around shells that cannot unset nonexistent variables.
142# Preserve -v and -x to the replacement shell.
143BASH_ENV=/dev/null
144ENV=/dev/null
145(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146case $- in # ((((
147  *v*x* | *x*v* ) as_opts=-vx ;;
148  *v* ) as_opts=-v ;;
149  *x* ) as_opts=-x ;;
150  * ) as_opts= ;;
151esac
152exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153# Admittedly, this is quite paranoid, since all the known shells bail
154# out after a failed `exec'.
155$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156as_fn_exit 255
157  fi
158  # We don't want this to propagate to other subprocesses.
159          { _as_can_reexec=; unset _as_can_reexec;}
160if test "x$CONFIG_SHELL" = x; then
161  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162  emulate sh
163  NULLCMD=:
164  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165  # is contrary to our usage.  Disable this feature.
166  alias -g '\${1+\"\$@\"}'='\"\$@\"'
167  setopt NO_GLOB_SUBST
168else
169  case \`(set -o) 2>/dev/null\` in #(
170  *posix*) :
171    set -o posix ;; #(
172  *) :
173     ;;
174esac
175fi
176"
177  as_required="as_fn_return () { (exit \$1); }
178as_fn_success () { as_fn_return 0; }
179as_fn_failure () { as_fn_return 1; }
180as_fn_ret_success () { return 0; }
181as_fn_ret_failure () { return 1; }
182
183exitcode=0
184as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
189
190else
191  exitcode=1; echo positional parameters were not saved.
192fi
193test x\$exitcode = x0 || exit 1
194test -x / || exit 1"
195  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199test \$(( 1 + 1 )) = 2 || exit 1"
200  if (eval "$as_required") 2>/dev/null; then :
201  as_have_required=yes
202else
203  as_have_required=no
204fi
205  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
206
207else
208  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
209as_found=false
210for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
211do
212  IFS=$as_save_IFS
213  test -z "$as_dir" && as_dir=.
214  as_found=:
215  case $as_dir in #(
216	 /*)
217	   for as_base in sh bash ksh sh5; do
218	     # Try only shells that exist, to save several forks.
219	     as_shell=$as_dir/$as_base
220	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
221		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
222  CONFIG_SHELL=$as_shell as_have_required=yes
223		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
224  break 2
225fi
226fi
227	   done;;
228       esac
229  as_found=false
230done
231$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
232	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
233  CONFIG_SHELL=$SHELL as_have_required=yes
234fi; }
235IFS=$as_save_IFS
236
237
238      if test "x$CONFIG_SHELL" != x; then :
239  export CONFIG_SHELL
240             # We cannot yet assume a decent shell, so we have to provide a
241# neutralization value for shells without unset; and this also
242# works around shells that cannot unset nonexistent variables.
243# Preserve -v and -x to the replacement shell.
244BASH_ENV=/dev/null
245ENV=/dev/null
246(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
247case $- in # ((((
248  *v*x* | *x*v* ) as_opts=-vx ;;
249  *v* ) as_opts=-v ;;
250  *x* ) as_opts=-x ;;
251  * ) as_opts= ;;
252esac
253exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
254# Admittedly, this is quite paranoid, since all the known shells bail
255# out after a failed `exec'.
256$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
257exit 255
258fi
259
260    if test x$as_have_required = xno; then :
261  $as_echo "$0: This script requires a shell more modern than all"
262  $as_echo "$0: the shells that I found on your system."
263  if test x${ZSH_VERSION+set} = xset ; then
264    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
265    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
266  else
267    $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
268$0: including any error possibly output before this
269$0: message. Then install a modern shell, or manually run
270$0: the script under such a shell if you do have one."
271  fi
272  exit 1
273fi
274fi
275fi
276SHELL=${CONFIG_SHELL-/bin/sh}
277export SHELL
278# Unset more variables known to interfere with behavior of common tools.
279CLICOLOR_FORCE= GREP_OPTIONS=
280unset CLICOLOR_FORCE GREP_OPTIONS
281
282## --------------------- ##
283## M4sh Shell Functions. ##
284## --------------------- ##
285# as_fn_unset VAR
286# ---------------
287# Portably unset VAR.
288as_fn_unset ()
289{
290  { eval $1=; unset $1;}
291}
292as_unset=as_fn_unset
293
294# as_fn_set_status STATUS
295# -----------------------
296# Set $? to STATUS, without forking.
297as_fn_set_status ()
298{
299  return $1
300} # as_fn_set_status
301
302# as_fn_exit STATUS
303# -----------------
304# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
305as_fn_exit ()
306{
307  set +e
308  as_fn_set_status $1
309  exit $1
310} # as_fn_exit
311
312# as_fn_mkdir_p
313# -------------
314# Create "$as_dir" as a directory, including parents if necessary.
315as_fn_mkdir_p ()
316{
317
318  case $as_dir in #(
319  -*) as_dir=./$as_dir;;
320  esac
321  test -d "$as_dir" || eval $as_mkdir_p || {
322    as_dirs=
323    while :; do
324      case $as_dir in #(
325      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
326      *) as_qdir=$as_dir;;
327      esac
328      as_dirs="'$as_qdir' $as_dirs"
329      as_dir=`$as_dirname -- "$as_dir" ||
330$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
331	 X"$as_dir" : 'X\(//\)[^/]' \| \
332	 X"$as_dir" : 'X\(//\)$' \| \
333	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
334$as_echo X"$as_dir" |
335    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
336	    s//\1/
337	    q
338	  }
339	  /^X\(\/\/\)[^/].*/{
340	    s//\1/
341	    q
342	  }
343	  /^X\(\/\/\)$/{
344	    s//\1/
345	    q
346	  }
347	  /^X\(\/\).*/{
348	    s//\1/
349	    q
350	  }
351	  s/.*/./; q'`
352      test -d "$as_dir" && break
353    done
354    test -z "$as_dirs" || eval "mkdir $as_dirs"
355  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
356
357
358} # as_fn_mkdir_p
359
360# as_fn_executable_p FILE
361# -----------------------
362# Test if FILE is an executable regular file.
363as_fn_executable_p ()
364{
365  test -f "$1" && test -x "$1"
366} # as_fn_executable_p
367# as_fn_append VAR VALUE
368# ----------------------
369# Append the text in VALUE to the end of the definition contained in VAR. Take
370# advantage of any shell optimizations that allow amortized linear growth over
371# repeated appends, instead of the typical quadratic growth present in naive
372# implementations.
373if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
374  eval 'as_fn_append ()
375  {
376    eval $1+=\$2
377  }'
378else
379  as_fn_append ()
380  {
381    eval $1=\$$1\$2
382  }
383fi # as_fn_append
384
385# as_fn_arith ARG...
386# ------------------
387# Perform arithmetic evaluation on the ARGs, and store the result in the
388# global $as_val. Take advantage of shells that can avoid forks. The arguments
389# must be portable across $(()) and expr.
390if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
391  eval 'as_fn_arith ()
392  {
393    as_val=$(( $* ))
394  }'
395else
396  as_fn_arith ()
397  {
398    as_val=`expr "$@" || test $? -eq 1`
399  }
400fi # as_fn_arith
401
402
403# as_fn_error STATUS ERROR [LINENO LOG_FD]
404# ----------------------------------------
405# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
406# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
407# script with STATUS, using 1 if that was 0.
408as_fn_error ()
409{
410  as_status=$1; test $as_status -eq 0 && as_status=1
411  if test "$4"; then
412    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
413    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
414  fi
415  $as_echo "$as_me: error: $2" >&2
416  as_fn_exit $as_status
417} # as_fn_error
418
419if expr a : '\(a\)' >/dev/null 2>&1 &&
420   test "X`expr 00001 : '.*\(...\)'`" = X001; then
421  as_expr=expr
422else
423  as_expr=false
424fi
425
426if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
427  as_basename=basename
428else
429  as_basename=false
430fi
431
432if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
433  as_dirname=dirname
434else
435  as_dirname=false
436fi
437
438as_me=`$as_basename -- "$0" ||
439$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
440	 X"$0" : 'X\(//\)$' \| \
441	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
442$as_echo X/"$0" |
443    sed '/^.*\/\([^/][^/]*\)\/*$/{
444	    s//\1/
445	    q
446	  }
447	  /^X\/\(\/\/\)$/{
448	    s//\1/
449	    q
450	  }
451	  /^X\/\(\/\).*/{
452	    s//\1/
453	    q
454	  }
455	  s/.*/./; q'`
456
457# Avoid depending upon Character Ranges.
458as_cr_letters='abcdefghijklmnopqrstuvwxyz'
459as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
460as_cr_Letters=$as_cr_letters$as_cr_LETTERS
461as_cr_digits='0123456789'
462as_cr_alnum=$as_cr_Letters$as_cr_digits
463
464
465  as_lineno_1=$LINENO as_lineno_1a=$LINENO
466  as_lineno_2=$LINENO as_lineno_2a=$LINENO
467  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
468  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
469  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
470  sed -n '
471    p
472    /[$]LINENO/=
473  ' <$as_myself |
474    sed '
475      s/[$]LINENO.*/&-/
476      t lineno
477      b
478      :lineno
479      N
480      :loop
481      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
482      t loop
483      s/-\n.*//
484    ' >$as_me.lineno &&
485  chmod +x "$as_me.lineno" ||
486    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
487
488  # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
489  # already done that, so ensure we don't try to do so again and fall
490  # in an infinite loop.  This has already happened in practice.
491  _as_can_reexec=no; export _as_can_reexec
492  # Don't try to exec as it changes $[0], causing all sort of problems
493  # (the dirname of $[0] is not the place where we might find the
494  # original and so on.  Autoconf is especially sensitive to this).
495  . "./$as_me.lineno"
496  # Exit status is that of the last command.
497  exit
498}
499
500ECHO_C= ECHO_N= ECHO_T=
501case `echo -n x` in #(((((
502-n*)
503  case `echo 'xy\c'` in
504  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
505  xy)  ECHO_C='\c';;
506  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
507       ECHO_T='	';;
508  esac;;
509*)
510  ECHO_N='-n';;
511esac
512
513rm -f conf$$ conf$$.exe conf$$.file
514if test -d conf$$.dir; then
515  rm -f conf$$.dir/conf$$.file
516else
517  rm -f conf$$.dir
518  mkdir conf$$.dir 2>/dev/null
519fi
520if (echo >conf$$.file) 2>/dev/null; then
521  if ln -s conf$$.file conf$$ 2>/dev/null; then
522    as_ln_s='ln -s'
523    # ... but there are two gotchas:
524    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
525    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
526    # In both cases, we have to default to `cp -pR'.
527    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
528      as_ln_s='cp -pR'
529  elif ln conf$$.file conf$$ 2>/dev/null; then
530    as_ln_s=ln
531  else
532    as_ln_s='cp -pR'
533  fi
534else
535  as_ln_s='cp -pR'
536fi
537rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
538rmdir conf$$.dir 2>/dev/null
539
540if mkdir -p . 2>/dev/null; then
541  as_mkdir_p='mkdir -p "$as_dir"'
542else
543  test -d ./-p && rmdir ./-p
544  as_mkdir_p=false
545fi
546
547as_test_x='test -x'
548as_executable_p=as_fn_executable_p
549
550# Sed expression to map a string onto a valid CPP name.
551as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
552
553# Sed expression to map a string onto a valid variable name.
554as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
555
556
557test -n "$DJDIR" || exec 7<&0 </dev/null
558exec 6>&1
559
560# Name of the host.
561# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
562# so uname gets run too.
563ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
564
565#
566# Initializations.
567#
568ac_default_prefix=/usr/local
569ac_clean_files=
570ac_config_libobj_dir=.
571LIBOBJS=
572cross_compiling=no
573subdirs=
574MFLAGS=
575MAKEFLAGS=
576
577# Identity of this package.
578PACKAGE_NAME='tk'
579PACKAGE_TARNAME='tk'
580PACKAGE_VERSION='8.7'
581PACKAGE_STRING='tk 8.7'
582PACKAGE_BUGREPORT=''
583PACKAGE_URL=''
584
585# Factoring default headers for most tests.
586ac_includes_default="\
587#include <stdio.h>
588#ifdef HAVE_SYS_TYPES_H
589# include <sys/types.h>
590#endif
591#ifdef HAVE_SYS_STAT_H
592# include <sys/stat.h>
593#endif
594#ifdef STDC_HEADERS
595# include <stdlib.h>
596# include <stddef.h>
597#else
598# ifdef HAVE_STDLIB_H
599#  include <stdlib.h>
600# endif
601#endif
602#ifdef HAVE_STRING_H
603# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
604#  include <memory.h>
605# endif
606# include <string.h>
607#endif
608#ifdef HAVE_STRINGS_H
609# include <strings.h>
610#endif
611#ifdef HAVE_INTTYPES_H
612# include <inttypes.h>
613#endif
614#ifdef HAVE_STDINT_H
615# include <stdint.h>
616#endif
617#ifdef HAVE_UNISTD_H
618# include <unistd.h>
619#endif"
620
621ac_header_list=
622ac_subst_vars='LTLIBOBJS
623REZ_FLAGS
624REZ
625APP_RSRC_FILE
626LIB_RSRC_FILE
627WISH_RSRC_FILE
628TK_RSRC_FILE
629CFBUNDLELOCALIZATIONS
630EXTRA_WISH_LIBS
631EXTRA_BUILD_HTML
632EXTRA_INSTALL_BINARIES
633EXTRA_INSTALL
634EXTRA_APP_CC_SWITCHES
635EXTRA_CC_SWITCHES
636HTML_DIR
637PRIVATE_INCLUDE_DIR
638LIB_RUNTIME_DIR
639TK_LIBRARY
640TK_PKG_DIR
641TK_WINDOWINGSYSTEM
642LOCALES
643XLIBSW
644XINCLUDES
645TCL_STUB_FLAGS
646TK_BUILD_LIB_SPEC
647LD_LIBRARY_PATH_VAR
648TK_SHARED_BUILD
649TK_SRC_DIR
650TK_BUILD_STUB_LIB_PATH
651TK_BUILD_STUB_LIB_SPEC
652TK_INCLUDE_SPEC
653TK_STUB_LIB_PATH
654TK_STUB_LIB_SPEC
655TK_STUB_LIB_FLAG
656TK_STUB_LIB_FILE
657TK_LIB_SPEC
658TK_LIB_FLAG
659TK_LIB_FILE_TCL9
660TK_LIB_FILE_TCL8
661TK_LIB_FILE
662TK_YEAR
663TK_PATCH_LEVEL
664TK_MINOR_VERSION
665TK_MAJOR_VERSION
666TK_VERSION
667TK_DEMO_DIR
668DEMO_DIR
669INSTALL_MSGS
670INSTALL_LIBRARIES
671TK_ZIP_FILE
672ZIPFS_BUILD
673ZIP_INSTALL_OBJS
674ZIP_PROG_VFSSEARCH
675ZIP_PROG_OPTIONS
676ZIP_PROG
677MACHER_PROG
678EXEEXT_FOR_BUILD
679CC_FOR_BUILD
680UNIX_FONT_OBJS
681XFT_LIBS
682XFT_CFLAGS
683XMKMF
684LDFLAGS_DEFAULT
685CFLAGS_DEFAULT
686INSTALL_STUB_LIB
687DLL_INSTALL_DIR
688INSTALL_LIB
689MAKE_STUB_LIB
690MAKE_LIB
691SHLIB_SUFFIX
692SHLIB_CFLAGS
693SHLIB_LD_LIBS
694TK_SHLIB_LD_EXTRAS
695TCL_SHLIB_LD_EXTRAS
696SHLIB_LD
697STLIB_LD
698LD_SEARCH_FLAGS
699CC_SEARCH_FLAGS
700LDFLAGS_OPTIMIZE
701LDFLAGS_DEBUG
702CFLAGS_NOLTO
703CFLAGS_WARNING
704CFLAGS_OPTIMIZE
705CFLAGS_DEBUG
706LDAIX_SRC
707PLAT_SRCS
708PLAT_OBJS
709DL_OBJS
710DL_LIBS
711TCL_LIBS
712EGREP
713GREP
714CPP
715LIBOBJS
716AR
717RANLIB
718SHARED_BUILD
719OBJEXT
720EXEEXT
721ac_ct_CC
722CPPFLAGS
723LDFLAGS
724CFLAGS
725CC
726MAN_FLAGS
727BUILD_TCLSH
728TCLSH_PROG
729TCL_STUB_LIB_SPEC
730TCL_STUB_LIB_FLAG
731TCL_STUB_LIB_FILE
732TCL_LIB_SPEC
733TCL_LIB_FLAG
734TCL_LIB_FILE
735TCL_SRC_DIR
736TCL_BIN_DIR
737TCL_PATCH_LEVEL
738TCL_VERSION
739target_alias
740host_alias
741build_alias
742LIBS
743ECHO_T
744ECHO_N
745ECHO_C
746DEFS
747mandir
748localedir
749libdir
750psdir
751pdfdir
752dvidir
753htmldir
754infodir
755docdir
756oldincludedir
757includedir
758localstatedir
759sharedstatedir
760sysconfdir
761datadir
762datarootdir
763libexecdir
764sbindir
765bindir
766program_transform_name
767prefix
768exec_prefix
769PACKAGE_URL
770PACKAGE_BUGREPORT
771PACKAGE_STRING
772PACKAGE_VERSION
773PACKAGE_TARNAME
774PACKAGE_NAME
775PATH_SEPARATOR
776SHELL
777OBJEXT_FOR_BUILD'
778ac_subst_files=''
779ac_user_opts='
780enable_option_checking
781with_tcl
782enable_man_symlinks
783enable_man_compression
784enable_man_suffix
785with_encoding
786enable_shared
787enable_64bit
788enable_64bit_vis
789enable_rpath
790enable_corefoundation
791enable_load
792enable_symbols
793enable_aqua
794with_x
795enable_xft
796enable_xss
797enable_framework
798enable_zipfs
799'
800      ac_precious_vars='build_alias
801host_alias
802target_alias
803CC
804CFLAGS
805LDFLAGS
806LIBS
807CPPFLAGS
808CPP
809XMKMF'
810
811
812# Initialize some variables set by options.
813ac_init_help=
814ac_init_version=false
815ac_unrecognized_opts=
816ac_unrecognized_sep=
817# The variables have the same names as the options, with
818# dashes changed to underlines.
819cache_file=/dev/null
820exec_prefix=NONE
821no_create=
822no_recursion=
823prefix=NONE
824program_prefix=NONE
825program_suffix=NONE
826program_transform_name=s,x,x,
827silent=
828site=
829srcdir=
830verbose=
831x_includes=NONE
832x_libraries=NONE
833
834# Installation directory options.
835# These are left unexpanded so users can "make install exec_prefix=/foo"
836# and all the variables that are supposed to be based on exec_prefix
837# by default will actually change.
838# Use braces instead of parens because sh, perl, etc. also accept them.
839# (The list follows the same order as the GNU Coding Standards.)
840bindir='${exec_prefix}/bin'
841sbindir='${exec_prefix}/sbin'
842libexecdir='${exec_prefix}/libexec'
843datarootdir='${prefix}/share'
844datadir='${datarootdir}'
845sysconfdir='${prefix}/etc'
846sharedstatedir='${prefix}/com'
847localstatedir='${prefix}/var'
848includedir='${prefix}/include'
849oldincludedir='/usr/include'
850docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
851infodir='${datarootdir}/info'
852htmldir='${docdir}'
853dvidir='${docdir}'
854pdfdir='${docdir}'
855psdir='${docdir}'
856libdir='${exec_prefix}/lib'
857localedir='${datarootdir}/locale'
858mandir='${datarootdir}/man'
859
860ac_prev=
861ac_dashdash=
862for ac_option
863do
864  # If the previous option needs an argument, assign it.
865  if test -n "$ac_prev"; then
866    eval $ac_prev=\$ac_option
867    ac_prev=
868    continue
869  fi
870
871  case $ac_option in
872  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
873  *=)   ac_optarg= ;;
874  *)    ac_optarg=yes ;;
875  esac
876
877  # Accept the important Cygnus configure options, so we can diagnose typos.
878
879  case $ac_dashdash$ac_option in
880  --)
881    ac_dashdash=yes ;;
882
883  -bindir | --bindir | --bindi | --bind | --bin | --bi)
884    ac_prev=bindir ;;
885  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
886    bindir=$ac_optarg ;;
887
888  -build | --build | --buil | --bui | --bu)
889    ac_prev=build_alias ;;
890  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
891    build_alias=$ac_optarg ;;
892
893  -cache-file | --cache-file | --cache-fil | --cache-fi \
894  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
895    ac_prev=cache_file ;;
896  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
897  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
898    cache_file=$ac_optarg ;;
899
900  --config-cache | -C)
901    cache_file=config.cache ;;
902
903  -datadir | --datadir | --datadi | --datad)
904    ac_prev=datadir ;;
905  -datadir=* | --datadir=* | --datadi=* | --datad=*)
906    datadir=$ac_optarg ;;
907
908  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
909  | --dataroo | --dataro | --datar)
910    ac_prev=datarootdir ;;
911  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
912  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
913    datarootdir=$ac_optarg ;;
914
915  -disable-* | --disable-*)
916    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
917    # Reject names that are not valid shell variable names.
918    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
919      as_fn_error $? "invalid feature name: $ac_useropt"
920    ac_useropt_orig=$ac_useropt
921    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
922    case $ac_user_opts in
923      *"
924"enable_$ac_useropt"
925"*) ;;
926      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
927	 ac_unrecognized_sep=', ';;
928    esac
929    eval enable_$ac_useropt=no ;;
930
931  -docdir | --docdir | --docdi | --doc | --do)
932    ac_prev=docdir ;;
933  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
934    docdir=$ac_optarg ;;
935
936  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
937    ac_prev=dvidir ;;
938  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
939    dvidir=$ac_optarg ;;
940
941  -enable-* | --enable-*)
942    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
943    # Reject names that are not valid shell variable names.
944    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
945      as_fn_error $? "invalid feature name: $ac_useropt"
946    ac_useropt_orig=$ac_useropt
947    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
948    case $ac_user_opts in
949      *"
950"enable_$ac_useropt"
951"*) ;;
952      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
953	 ac_unrecognized_sep=', ';;
954    esac
955    eval enable_$ac_useropt=\$ac_optarg ;;
956
957  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
958  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
959  | --exec | --exe | --ex)
960    ac_prev=exec_prefix ;;
961  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
962  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
963  | --exec=* | --exe=* | --ex=*)
964    exec_prefix=$ac_optarg ;;
965
966  -gas | --gas | --ga | --g)
967    # Obsolete; use --with-gas.
968    with_gas=yes ;;
969
970  -help | --help | --hel | --he | -h)
971    ac_init_help=long ;;
972  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
973    ac_init_help=recursive ;;
974  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
975    ac_init_help=short ;;
976
977  -host | --host | --hos | --ho)
978    ac_prev=host_alias ;;
979  -host=* | --host=* | --hos=* | --ho=*)
980    host_alias=$ac_optarg ;;
981
982  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
983    ac_prev=htmldir ;;
984  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
985  | --ht=*)
986    htmldir=$ac_optarg ;;
987
988  -includedir | --includedir | --includedi | --included | --include \
989  | --includ | --inclu | --incl | --inc)
990    ac_prev=includedir ;;
991  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
992  | --includ=* | --inclu=* | --incl=* | --inc=*)
993    includedir=$ac_optarg ;;
994
995  -infodir | --infodir | --infodi | --infod | --info | --inf)
996    ac_prev=infodir ;;
997  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
998    infodir=$ac_optarg ;;
999
1000  -libdir | --libdir | --libdi | --libd)
1001    ac_prev=libdir ;;
1002  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1003    libdir=$ac_optarg ;;
1004
1005  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1006  | --libexe | --libex | --libe)
1007    ac_prev=libexecdir ;;
1008  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1009  | --libexe=* | --libex=* | --libe=*)
1010    libexecdir=$ac_optarg ;;
1011
1012  -localedir | --localedir | --localedi | --localed | --locale)
1013    ac_prev=localedir ;;
1014  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1015    localedir=$ac_optarg ;;
1016
1017  -localstatedir | --localstatedir | --localstatedi | --localstated \
1018  | --localstate | --localstat | --localsta | --localst | --locals)
1019    ac_prev=localstatedir ;;
1020  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1021  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1022    localstatedir=$ac_optarg ;;
1023
1024  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1025    ac_prev=mandir ;;
1026  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1027    mandir=$ac_optarg ;;
1028
1029  -nfp | --nfp | --nf)
1030    # Obsolete; use --without-fp.
1031    with_fp=no ;;
1032
1033  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1034  | --no-cr | --no-c | -n)
1035    no_create=yes ;;
1036
1037  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1038  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1039    no_recursion=yes ;;
1040
1041  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1042  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1043  | --oldin | --oldi | --old | --ol | --o)
1044    ac_prev=oldincludedir ;;
1045  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1046  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1047  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1048    oldincludedir=$ac_optarg ;;
1049
1050  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1051    ac_prev=prefix ;;
1052  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1053    prefix=$ac_optarg ;;
1054
1055  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1056  | --program-pre | --program-pr | --program-p)
1057    ac_prev=program_prefix ;;
1058  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1059  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1060    program_prefix=$ac_optarg ;;
1061
1062  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1063  | --program-suf | --program-su | --program-s)
1064    ac_prev=program_suffix ;;
1065  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1066  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1067    program_suffix=$ac_optarg ;;
1068
1069  -program-transform-name | --program-transform-name \
1070  | --program-transform-nam | --program-transform-na \
1071  | --program-transform-n | --program-transform- \
1072  | --program-transform | --program-transfor \
1073  | --program-transfo | --program-transf \
1074  | --program-trans | --program-tran \
1075  | --progr-tra | --program-tr | --program-t)
1076    ac_prev=program_transform_name ;;
1077  -program-transform-name=* | --program-transform-name=* \
1078  | --program-transform-nam=* | --program-transform-na=* \
1079  | --program-transform-n=* | --program-transform-=* \
1080  | --program-transform=* | --program-transfor=* \
1081  | --program-transfo=* | --program-transf=* \
1082  | --program-trans=* | --program-tran=* \
1083  | --progr-tra=* | --program-tr=* | --program-t=*)
1084    program_transform_name=$ac_optarg ;;
1085
1086  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1087    ac_prev=pdfdir ;;
1088  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1089    pdfdir=$ac_optarg ;;
1090
1091  -psdir | --psdir | --psdi | --psd | --ps)
1092    ac_prev=psdir ;;
1093  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1094    psdir=$ac_optarg ;;
1095
1096  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1097  | -silent | --silent | --silen | --sile | --sil)
1098    silent=yes ;;
1099
1100  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1101    ac_prev=sbindir ;;
1102  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1103  | --sbi=* | --sb=*)
1104    sbindir=$ac_optarg ;;
1105
1106  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1107  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1108  | --sharedst | --shareds | --shared | --share | --shar \
1109  | --sha | --sh)
1110    ac_prev=sharedstatedir ;;
1111  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1112  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1113  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1114  | --sha=* | --sh=*)
1115    sharedstatedir=$ac_optarg ;;
1116
1117  -site | --site | --sit)
1118    ac_prev=site ;;
1119  -site=* | --site=* | --sit=*)
1120    site=$ac_optarg ;;
1121
1122  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1123    ac_prev=srcdir ;;
1124  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1125    srcdir=$ac_optarg ;;
1126
1127  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1128  | --syscon | --sysco | --sysc | --sys | --sy)
1129    ac_prev=sysconfdir ;;
1130  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1131  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1132    sysconfdir=$ac_optarg ;;
1133
1134  -target | --target | --targe | --targ | --tar | --ta | --t)
1135    ac_prev=target_alias ;;
1136  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1137    target_alias=$ac_optarg ;;
1138
1139  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1140    verbose=yes ;;
1141
1142  -version | --version | --versio | --versi | --vers | -V)
1143    ac_init_version=: ;;
1144
1145  -with-* | --with-*)
1146    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1147    # Reject names that are not valid shell variable names.
1148    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1149      as_fn_error $? "invalid package name: $ac_useropt"
1150    ac_useropt_orig=$ac_useropt
1151    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1152    case $ac_user_opts in
1153      *"
1154"with_$ac_useropt"
1155"*) ;;
1156      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1157	 ac_unrecognized_sep=', ';;
1158    esac
1159    eval with_$ac_useropt=\$ac_optarg ;;
1160
1161  -without-* | --without-*)
1162    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1163    # Reject names that are not valid shell variable names.
1164    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1165      as_fn_error $? "invalid package name: $ac_useropt"
1166    ac_useropt_orig=$ac_useropt
1167    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1168    case $ac_user_opts in
1169      *"
1170"with_$ac_useropt"
1171"*) ;;
1172      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1173	 ac_unrecognized_sep=', ';;
1174    esac
1175    eval with_$ac_useropt=no ;;
1176
1177  --x)
1178    # Obsolete; use --with-x.
1179    with_x=yes ;;
1180
1181  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1182  | --x-incl | --x-inc | --x-in | --x-i)
1183    ac_prev=x_includes ;;
1184  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1185  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1186    x_includes=$ac_optarg ;;
1187
1188  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1189  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1190    ac_prev=x_libraries ;;
1191  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1192  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1193    x_libraries=$ac_optarg ;;
1194
1195  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1196Try \`$0 --help' for more information"
1197    ;;
1198
1199  *=*)
1200    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1201    # Reject names that are not valid shell variable names.
1202    case $ac_envvar in #(
1203      '' | [0-9]* | *[!_$as_cr_alnum]* )
1204      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1205    esac
1206    eval $ac_envvar=\$ac_optarg
1207    export $ac_envvar ;;
1208
1209  *)
1210    # FIXME: should be removed in autoconf 3.0.
1211    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1212    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1213      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1214    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1215    ;;
1216
1217  esac
1218done
1219
1220if test -n "$ac_prev"; then
1221  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1222  as_fn_error $? "missing argument to $ac_option"
1223fi
1224
1225if test -n "$ac_unrecognized_opts"; then
1226  case $enable_option_checking in
1227    no) ;;
1228    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1229    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1230  esac
1231fi
1232
1233# Check all directory arguments for consistency.
1234for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1235		datadir sysconfdir sharedstatedir localstatedir includedir \
1236		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1237		libdir localedir mandir
1238do
1239  eval ac_val=\$$ac_var
1240  # Remove trailing slashes.
1241  case $ac_val in
1242    */ )
1243      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1244      eval $ac_var=\$ac_val;;
1245  esac
1246  # Be sure to have absolute directory names.
1247  case $ac_val in
1248    [\\/$]* | ?:[\\/]* )  continue;;
1249    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1250  esac
1251  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1252done
1253
1254# There might be people who depend on the old broken behavior: `$host'
1255# used to hold the argument of --host etc.
1256# FIXME: To remove some day.
1257build=$build_alias
1258host=$host_alias
1259target=$target_alias
1260
1261# FIXME: To remove some day.
1262if test "x$host_alias" != x; then
1263  if test "x$build_alias" = x; then
1264    cross_compiling=maybe
1265  elif test "x$build_alias" != "x$host_alias"; then
1266    cross_compiling=yes
1267  fi
1268fi
1269
1270ac_tool_prefix=
1271test -n "$host_alias" && ac_tool_prefix=$host_alias-
1272
1273test "$silent" = yes && exec 6>/dev/null
1274
1275
1276ac_pwd=`pwd` && test -n "$ac_pwd" &&
1277ac_ls_di=`ls -di .` &&
1278ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1279  as_fn_error $? "working directory cannot be determined"
1280test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1281  as_fn_error $? "pwd does not report name of working directory"
1282
1283
1284# Find the source files, if location was not specified.
1285if test -z "$srcdir"; then
1286  ac_srcdir_defaulted=yes
1287  # Try the directory containing this script, then the parent directory.
1288  ac_confdir=`$as_dirname -- "$as_myself" ||
1289$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1290	 X"$as_myself" : 'X\(//\)[^/]' \| \
1291	 X"$as_myself" : 'X\(//\)$' \| \
1292	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1293$as_echo X"$as_myself" |
1294    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1295	    s//\1/
1296	    q
1297	  }
1298	  /^X\(\/\/\)[^/].*/{
1299	    s//\1/
1300	    q
1301	  }
1302	  /^X\(\/\/\)$/{
1303	    s//\1/
1304	    q
1305	  }
1306	  /^X\(\/\).*/{
1307	    s//\1/
1308	    q
1309	  }
1310	  s/.*/./; q'`
1311  srcdir=$ac_confdir
1312  if test ! -r "$srcdir/$ac_unique_file"; then
1313    srcdir=..
1314  fi
1315else
1316  ac_srcdir_defaulted=no
1317fi
1318if test ! -r "$srcdir/$ac_unique_file"; then
1319  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1320  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1321fi
1322ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1323ac_abs_confdir=`(
1324	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1325	pwd)`
1326# When building in place, set srcdir=.
1327if test "$ac_abs_confdir" = "$ac_pwd"; then
1328  srcdir=.
1329fi
1330# Remove unnecessary trailing slashes from srcdir.
1331# Double slashes in file names in object file debugging info
1332# mess up M-x gdb in Emacs.
1333case $srcdir in
1334*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1335esac
1336for ac_var in $ac_precious_vars; do
1337  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1338  eval ac_env_${ac_var}_value=\$${ac_var}
1339  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1340  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1341done
1342
1343#
1344# Report the --help message.
1345#
1346if test "$ac_init_help" = "long"; then
1347  # Omit some internal or obsolete options to make the list less imposing.
1348  # This message is too long to be a string in the A/UX 3.1 sh.
1349  cat <<_ACEOF
1350\`configure' configures tk 8.7 to adapt to many kinds of systems.
1351
1352Usage: $0 [OPTION]... [VAR=VALUE]...
1353
1354To assign environment variables (e.g., CC, CFLAGS...), specify them as
1355VAR=VALUE.  See below for descriptions of some of the useful variables.
1356
1357Defaults for the options are specified in brackets.
1358
1359Configuration:
1360  -h, --help              display this help and exit
1361      --help=short        display options specific to this package
1362      --help=recursive    display the short help of all the included packages
1363  -V, --version           display version information and exit
1364  -q, --quiet, --silent   do not print \`checking ...' messages
1365      --cache-file=FILE   cache test results in FILE [disabled]
1366  -C, --config-cache      alias for \`--cache-file=config.cache'
1367  -n, --no-create         do not create output files
1368      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1369
1370Installation directories:
1371  --prefix=PREFIX         install architecture-independent files in PREFIX
1372                          [$ac_default_prefix]
1373  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1374                          [PREFIX]
1375
1376By default, \`make install' will install all the files in
1377\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1378an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1379for instance \`--prefix=\$HOME'.
1380
1381For better control, use the options below.
1382
1383Fine tuning of the installation directories:
1384  --bindir=DIR            user executables [EPREFIX/bin]
1385  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1386  --libexecdir=DIR        program executables [EPREFIX/libexec]
1387  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1388  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1389  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1390  --libdir=DIR            object code libraries [EPREFIX/lib]
1391  --includedir=DIR        C header files [PREFIX/include]
1392  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1393  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1394  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1395  --infodir=DIR           info documentation [DATAROOTDIR/info]
1396  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1397  --mandir=DIR            man documentation [DATAROOTDIR/man]
1398  --docdir=DIR            documentation root [DATAROOTDIR/doc/tk]
1399  --htmldir=DIR           html documentation [DOCDIR]
1400  --dvidir=DIR            dvi documentation [DOCDIR]
1401  --pdfdir=DIR            pdf documentation [DOCDIR]
1402  --psdir=DIR             ps documentation [DOCDIR]
1403_ACEOF
1404
1405  cat <<\_ACEOF
1406
1407X features:
1408  --x-includes=DIR    X include files are in DIR
1409  --x-libraries=DIR   X library files are in DIR
1410_ACEOF
1411fi
1412
1413if test -n "$ac_init_help"; then
1414  case $ac_init_help in
1415     short | recursive ) echo "Configuration of tk 8.7:";;
1416   esac
1417  cat <<\_ACEOF
1418
1419Optional Features:
1420  --disable-option-checking  ignore unrecognized --enable/--with options
1421  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1422  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1423  --enable-man-symlinks   use symlinks for the manpages (default: off)
1424  --enable-man-compression=PROG
1425                          compress the manpages with PROG (default: off)
1426  --enable-man-suffix=STRING
1427                          use STRING as a suffix to manpage file names
1428                          (default: no, tk if enabled without
1429                          specifying STRING)
1430  --enable-shared         build and link with shared libraries (default: on)
1431  --enable-64bit          enable 64bit support (default: off)
1432  --enable-64bit-vis      enable 64bit Sparc VIS support (default: off)
1433  --disable-rpath         disable rpath support (default: on)
1434  --enable-corefoundation use CoreFoundation API on MacOSX (default: on)
1435  --enable-load           allow dynamic loading and "load" command (default:
1436                          on)
1437  --enable-symbols        build with debugging symbols (default: off)
1438  --enable-aqua=yes|no    use Aqua windowingsystem on Mac OS X (default: no)
1439  --enable-xft            use freetype/fontconfig/xft (default: on)
1440  --enable-xss            use XScreenSaver for activity timer (default: on)
1441  --enable-framework      package shared libraries in MacOSX frameworks
1442                          (default: off)
1443  --enable-zipfs          build with Zipfs support (default: on)
1444
1445Optional Packages:
1446  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1447  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1448  --with-tcl              directory containing tcl configuration
1449                          (tclConfig.sh)
1450  --with-encoding         encoding for configuration values (default: utf-8)
1451  --with-x                use the X Window System
1452
1453Some influential environment variables:
1454  CC          C compiler command
1455  CFLAGS      C compiler flags
1456  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1457              nonstandard directory <lib dir>
1458  LIBS        libraries to pass to the linker, e.g. -l<library>
1459  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1460              you have headers in a nonstandard directory <include dir>
1461  CPP         C preprocessor
1462  XMKMF       Path to xmkmf, Makefile generator for X Window System
1463
1464Use these variables to override the choices made by `configure' or to help
1465it to find libraries and programs with nonstandard names/locations.
1466
1467Report bugs to the package provider.
1468_ACEOF
1469ac_status=$?
1470fi
1471
1472if test "$ac_init_help" = "recursive"; then
1473  # If there are subdirs, report their specific --help.
1474  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1475    test -d "$ac_dir" ||
1476      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1477      continue
1478    ac_builddir=.
1479
1480case "$ac_dir" in
1481.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1482*)
1483  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1484  # A ".." for each directory in $ac_dir_suffix.
1485  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1486  case $ac_top_builddir_sub in
1487  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1488  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1489  esac ;;
1490esac
1491ac_abs_top_builddir=$ac_pwd
1492ac_abs_builddir=$ac_pwd$ac_dir_suffix
1493# for backward compatibility:
1494ac_top_builddir=$ac_top_build_prefix
1495
1496case $srcdir in
1497  .)  # We are building in place.
1498    ac_srcdir=.
1499    ac_top_srcdir=$ac_top_builddir_sub
1500    ac_abs_top_srcdir=$ac_pwd ;;
1501  [\\/]* | ?:[\\/]* )  # Absolute name.
1502    ac_srcdir=$srcdir$ac_dir_suffix;
1503    ac_top_srcdir=$srcdir
1504    ac_abs_top_srcdir=$srcdir ;;
1505  *) # Relative name.
1506    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1507    ac_top_srcdir=$ac_top_build_prefix$srcdir
1508    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1509esac
1510ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1511
1512    cd "$ac_dir" || { ac_status=$?; continue; }
1513    # Check for guested configure.
1514    if test -f "$ac_srcdir/configure.gnu"; then
1515      echo &&
1516      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1517    elif test -f "$ac_srcdir/configure"; then
1518      echo &&
1519      $SHELL "$ac_srcdir/configure" --help=recursive
1520    else
1521      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1522    fi || ac_status=$?
1523    cd "$ac_pwd" || { ac_status=$?; break; }
1524  done
1525fi
1526
1527test -n "$ac_init_help" && exit $ac_status
1528if $ac_init_version; then
1529  cat <<\_ACEOF
1530tk configure 8.7
1531generated by GNU Autoconf 2.69
1532
1533Copyright (C) 2012 Free Software Foundation, Inc.
1534This configure script is free software; the Free Software Foundation
1535gives unlimited permission to copy, distribute and modify it.
1536_ACEOF
1537  exit
1538fi
1539
1540## ------------------------ ##
1541## Autoconf initialization. ##
1542## ------------------------ ##
1543
1544# ac_fn_c_try_compile LINENO
1545# --------------------------
1546# Try to compile conftest.$ac_ext, and return whether this succeeded.
1547ac_fn_c_try_compile ()
1548{
1549  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1550  rm -f conftest.$ac_objext
1551  if { { ac_try="$ac_compile"
1552case "(($ac_try" in
1553  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1554  *) ac_try_echo=$ac_try;;
1555esac
1556eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1557$as_echo "$ac_try_echo"; } >&5
1558  (eval "$ac_compile") 2>conftest.err
1559  ac_status=$?
1560  if test -s conftest.err; then
1561    grep -v '^ *+' conftest.err >conftest.er1
1562    cat conftest.er1 >&5
1563    mv -f conftest.er1 conftest.err
1564  fi
1565  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1566  test $ac_status = 0; } && {
1567	 test -z "$ac_c_werror_flag" ||
1568	 test ! -s conftest.err
1569       } && test -s conftest.$ac_objext; then :
1570  ac_retval=0
1571else
1572  $as_echo "$as_me: failed program was:" >&5
1573sed 's/^/| /' conftest.$ac_ext >&5
1574
1575	ac_retval=1
1576fi
1577  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1578  as_fn_set_status $ac_retval
1579
1580} # ac_fn_c_try_compile
1581
1582# ac_fn_c_try_link LINENO
1583# -----------------------
1584# Try to link conftest.$ac_ext, and return whether this succeeded.
1585ac_fn_c_try_link ()
1586{
1587  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1588  rm -f conftest.$ac_objext conftest$ac_exeext
1589  if { { ac_try="$ac_link"
1590case "(($ac_try" in
1591  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1592  *) ac_try_echo=$ac_try;;
1593esac
1594eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1595$as_echo "$ac_try_echo"; } >&5
1596  (eval "$ac_link") 2>conftest.err
1597  ac_status=$?
1598  if test -s conftest.err; then
1599    grep -v '^ *+' conftest.err >conftest.er1
1600    cat conftest.er1 >&5
1601    mv -f conftest.er1 conftest.err
1602  fi
1603  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1604  test $ac_status = 0; } && {
1605	 test -z "$ac_c_werror_flag" ||
1606	 test ! -s conftest.err
1607       } && test -s conftest$ac_exeext && {
1608	 test "$cross_compiling" = yes ||
1609	 test -x conftest$ac_exeext
1610       }; then :
1611  ac_retval=0
1612else
1613  $as_echo "$as_me: failed program was:" >&5
1614sed 's/^/| /' conftest.$ac_ext >&5
1615
1616	ac_retval=1
1617fi
1618  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1619  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1620  # interfere with the next link command; also delete a directory that is
1621  # left behind by Apple's compiler.  We do this before executing the actions.
1622  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1623  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1624  as_fn_set_status $ac_retval
1625
1626} # ac_fn_c_try_link
1627
1628# ac_fn_c_try_cpp LINENO
1629# ----------------------
1630# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1631ac_fn_c_try_cpp ()
1632{
1633  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1634  if { { ac_try="$ac_cpp conftest.$ac_ext"
1635case "(($ac_try" in
1636  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1637  *) ac_try_echo=$ac_try;;
1638esac
1639eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1640$as_echo "$ac_try_echo"; } >&5
1641  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1642  ac_status=$?
1643  if test -s conftest.err; then
1644    grep -v '^ *+' conftest.err >conftest.er1
1645    cat conftest.er1 >&5
1646    mv -f conftest.er1 conftest.err
1647  fi
1648  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1649  test $ac_status = 0; } > conftest.i && {
1650	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1651	 test ! -s conftest.err
1652       }; then :
1653  ac_retval=0
1654else
1655  $as_echo "$as_me: failed program was:" >&5
1656sed 's/^/| /' conftest.$ac_ext >&5
1657
1658    ac_retval=1
1659fi
1660  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1661  as_fn_set_status $ac_retval
1662
1663} # ac_fn_c_try_cpp
1664
1665# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1666# -------------------------------------------------------
1667# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1668# the include files in INCLUDES and setting the cache variable VAR
1669# accordingly.
1670ac_fn_c_check_header_mongrel ()
1671{
1672  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1673  if eval \${$3+:} false; then :
1674  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1675$as_echo_n "checking for $2... " >&6; }
1676if eval \${$3+:} false; then :
1677  $as_echo_n "(cached) " >&6
1678fi
1679eval ac_res=\$$3
1680	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1681$as_echo "$ac_res" >&6; }
1682else
1683  # Is the header compilable?
1684{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1685$as_echo_n "checking $2 usability... " >&6; }
1686cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1687/* end confdefs.h.  */
1688$4
1689#include <$2>
1690_ACEOF
1691if ac_fn_c_try_compile "$LINENO"; then :
1692  ac_header_compiler=yes
1693else
1694  ac_header_compiler=no
1695fi
1696rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1697{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1698$as_echo "$ac_header_compiler" >&6; }
1699
1700# Is the header present?
1701{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1702$as_echo_n "checking $2 presence... " >&6; }
1703cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1704/* end confdefs.h.  */
1705#include <$2>
1706_ACEOF
1707if ac_fn_c_try_cpp "$LINENO"; then :
1708  ac_header_preproc=yes
1709else
1710  ac_header_preproc=no
1711fi
1712rm -f conftest.err conftest.i conftest.$ac_ext
1713{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1714$as_echo "$ac_header_preproc" >&6; }
1715
1716# So?  What about this header?
1717case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1718  yes:no: )
1719    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1720$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1721    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1722$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1723    ;;
1724  no:yes:* )
1725    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1726$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1727    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1728$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1729    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1730$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1731    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1732$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1733    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1734$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1735    ;;
1736esac
1737  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1738$as_echo_n "checking for $2... " >&6; }
1739if eval \${$3+:} false; then :
1740  $as_echo_n "(cached) " >&6
1741else
1742  eval "$3=\$ac_header_compiler"
1743fi
1744eval ac_res=\$$3
1745	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1746$as_echo "$ac_res" >&6; }
1747fi
1748  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1749
1750} # ac_fn_c_check_header_mongrel
1751
1752# ac_fn_c_try_run LINENO
1753# ----------------------
1754# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1755# that executables *can* be run.
1756ac_fn_c_try_run ()
1757{
1758  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1759  if { { ac_try="$ac_link"
1760case "(($ac_try" in
1761  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1762  *) ac_try_echo=$ac_try;;
1763esac
1764eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1765$as_echo "$ac_try_echo"; } >&5
1766  (eval "$ac_link") 2>&5
1767  ac_status=$?
1768  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1769  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1770  { { case "(($ac_try" in
1771  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1772  *) ac_try_echo=$ac_try;;
1773esac
1774eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1775$as_echo "$ac_try_echo"; } >&5
1776  (eval "$ac_try") 2>&5
1777  ac_status=$?
1778  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1779  test $ac_status = 0; }; }; then :
1780  ac_retval=0
1781else
1782  $as_echo "$as_me: program exited with status $ac_status" >&5
1783       $as_echo "$as_me: failed program was:" >&5
1784sed 's/^/| /' conftest.$ac_ext >&5
1785
1786       ac_retval=$ac_status
1787fi
1788  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1789  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1790  as_fn_set_status $ac_retval
1791
1792} # ac_fn_c_try_run
1793
1794# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1795# -------------------------------------------------------
1796# Tests whether HEADER exists and can be compiled using the include files in
1797# INCLUDES, setting the cache variable VAR accordingly.
1798ac_fn_c_check_header_compile ()
1799{
1800  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1801  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1802$as_echo_n "checking for $2... " >&6; }
1803if eval \${$3+:} false; then :
1804  $as_echo_n "(cached) " >&6
1805else
1806  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1807/* end confdefs.h.  */
1808$4
1809#include <$2>
1810_ACEOF
1811if ac_fn_c_try_compile "$LINENO"; then :
1812  eval "$3=yes"
1813else
1814  eval "$3=no"
1815fi
1816rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1817fi
1818eval ac_res=\$$3
1819	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1820$as_echo "$ac_res" >&6; }
1821  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1822
1823} # ac_fn_c_check_header_compile
1824
1825# ac_fn_c_check_func LINENO FUNC VAR
1826# ----------------------------------
1827# Tests whether FUNC exists, setting the cache variable VAR accordingly
1828ac_fn_c_check_func ()
1829{
1830  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1831  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1832$as_echo_n "checking for $2... " >&6; }
1833if eval \${$3+:} false; then :
1834  $as_echo_n "(cached) " >&6
1835else
1836  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1837/* end confdefs.h.  */
1838/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1839   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1840#define $2 innocuous_$2
1841
1842/* System header to define __stub macros and hopefully few prototypes,
1843    which can conflict with char $2 (); below.
1844    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1845    <limits.h> exists even on freestanding compilers.  */
1846
1847#ifdef __STDC__
1848# include <limits.h>
1849#else
1850# include <assert.h>
1851#endif
1852
1853#undef $2
1854
1855/* Override any GCC internal prototype to avoid an error.
1856   Use char because int might match the return type of a GCC
1857   builtin and then its argument prototype would still apply.  */
1858#ifdef __cplusplus
1859extern "C"
1860#endif
1861char $2 ();
1862/* The GNU C library defines this for functions which it implements
1863    to always fail with ENOSYS.  Some functions are actually named
1864    something starting with __ and the normal name is an alias.  */
1865#if defined __stub_$2 || defined __stub___$2
1866choke me
1867#endif
1868
1869int
1870main ()
1871{
1872return $2 ();
1873  ;
1874  return 0;
1875}
1876_ACEOF
1877if ac_fn_c_try_link "$LINENO"; then :
1878  eval "$3=yes"
1879else
1880  eval "$3=no"
1881fi
1882rm -f core conftest.err conftest.$ac_objext \
1883    conftest$ac_exeext conftest.$ac_ext
1884fi
1885eval ac_res=\$$3
1886	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1887$as_echo "$ac_res" >&6; }
1888  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1889
1890} # ac_fn_c_check_func
1891
1892# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1893# -------------------------------------------
1894# Tests whether TYPE exists after having included INCLUDES, setting cache
1895# variable VAR accordingly.
1896ac_fn_c_check_type ()
1897{
1898  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1899  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1900$as_echo_n "checking for $2... " >&6; }
1901if eval \${$3+:} false; then :
1902  $as_echo_n "(cached) " >&6
1903else
1904  eval "$3=no"
1905  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1906/* end confdefs.h.  */
1907$4
1908int
1909main ()
1910{
1911if (sizeof ($2))
1912	 return 0;
1913  ;
1914  return 0;
1915}
1916_ACEOF
1917if ac_fn_c_try_compile "$LINENO"; then :
1918  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1919/* end confdefs.h.  */
1920$4
1921int
1922main ()
1923{
1924if (sizeof (($2)))
1925	    return 0;
1926  ;
1927  return 0;
1928}
1929_ACEOF
1930if ac_fn_c_try_compile "$LINENO"; then :
1931
1932else
1933  eval "$3=yes"
1934fi
1935rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1936fi
1937rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1938fi
1939eval ac_res=\$$3
1940	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1941$as_echo "$ac_res" >&6; }
1942  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1943
1944} # ac_fn_c_check_type
1945cat >config.log <<_ACEOF
1946This file contains any messages produced by compilers while
1947running configure, to aid debugging if configure makes a mistake.
1948
1949It was created by tk $as_me 8.7, which was
1950generated by GNU Autoconf 2.69.  Invocation command line was
1951
1952  $ $0 $@
1953
1954_ACEOF
1955exec 5>>config.log
1956{
1957cat <<_ASUNAME
1958## --------- ##
1959## Platform. ##
1960## --------- ##
1961
1962hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1963uname -m = `(uname -m) 2>/dev/null || echo unknown`
1964uname -r = `(uname -r) 2>/dev/null || echo unknown`
1965uname -s = `(uname -s) 2>/dev/null || echo unknown`
1966uname -v = `(uname -v) 2>/dev/null || echo unknown`
1967
1968/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1969/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1970
1971/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1972/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1973/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1974/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1975/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1976/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1977/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1978
1979_ASUNAME
1980
1981as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1982for as_dir in $PATH
1983do
1984  IFS=$as_save_IFS
1985  test -z "$as_dir" && as_dir=.
1986    $as_echo "PATH: $as_dir"
1987  done
1988IFS=$as_save_IFS
1989
1990} >&5
1991
1992cat >&5 <<_ACEOF
1993
1994
1995## ----------- ##
1996## Core tests. ##
1997## ----------- ##
1998
1999_ACEOF
2000
2001
2002# Keep a trace of the command line.
2003# Strip out --no-create and --no-recursion so they do not pile up.
2004# Strip out --silent because we don't want to record it for future runs.
2005# Also quote any args containing shell meta-characters.
2006# Make two passes to allow for proper duplicate-argument suppression.
2007ac_configure_args=
2008ac_configure_args0=
2009ac_configure_args1=
2010ac_must_keep_next=false
2011for ac_pass in 1 2
2012do
2013  for ac_arg
2014  do
2015    case $ac_arg in
2016    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2017    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2018    | -silent | --silent | --silen | --sile | --sil)
2019      continue ;;
2020    *\'*)
2021      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2022    esac
2023    case $ac_pass in
2024    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2025    2)
2026      as_fn_append ac_configure_args1 " '$ac_arg'"
2027      if test $ac_must_keep_next = true; then
2028	ac_must_keep_next=false # Got value, back to normal.
2029      else
2030	case $ac_arg in
2031	  *=* | --config-cache | -C | -disable-* | --disable-* \
2032	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2033	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2034	  | -with-* | --with-* | -without-* | --without-* | --x)
2035	    case "$ac_configure_args0 " in
2036	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2037	    esac
2038	    ;;
2039	  -* ) ac_must_keep_next=true ;;
2040	esac
2041      fi
2042      as_fn_append ac_configure_args " '$ac_arg'"
2043      ;;
2044    esac
2045  done
2046done
2047{ ac_configure_args0=; unset ac_configure_args0;}
2048{ ac_configure_args1=; unset ac_configure_args1;}
2049
2050# When interrupted or exit'd, cleanup temporary files, and complete
2051# config.log.  We remove comments because anyway the quotes in there
2052# would cause problems or look ugly.
2053# WARNING: Use '\'' to represent an apostrophe within the trap.
2054# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2055trap 'exit_status=$?
2056  # Save into config.log some information that might help in debugging.
2057  {
2058    echo
2059
2060    $as_echo "## ---------------- ##
2061## Cache variables. ##
2062## ---------------- ##"
2063    echo
2064    # The following way of writing the cache mishandles newlines in values,
2065(
2066  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2067    eval ac_val=\$$ac_var
2068    case $ac_val in #(
2069    *${as_nl}*)
2070      case $ac_var in #(
2071      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2072$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2073      esac
2074      case $ac_var in #(
2075      _ | IFS | as_nl) ;; #(
2076      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2077      *) { eval $ac_var=; unset $ac_var;} ;;
2078      esac ;;
2079    esac
2080  done
2081  (set) 2>&1 |
2082    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2083    *${as_nl}ac_space=\ *)
2084      sed -n \
2085	"s/'\''/'\''\\\\'\'''\''/g;
2086	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2087      ;; #(
2088    *)
2089      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2090      ;;
2091    esac |
2092    sort
2093)
2094    echo
2095
2096    $as_echo "## ----------------- ##
2097## Output variables. ##
2098## ----------------- ##"
2099    echo
2100    for ac_var in $ac_subst_vars
2101    do
2102      eval ac_val=\$$ac_var
2103      case $ac_val in
2104      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2105      esac
2106      $as_echo "$ac_var='\''$ac_val'\''"
2107    done | sort
2108    echo
2109
2110    if test -n "$ac_subst_files"; then
2111      $as_echo "## ------------------- ##
2112## File substitutions. ##
2113## ------------------- ##"
2114      echo
2115      for ac_var in $ac_subst_files
2116      do
2117	eval ac_val=\$$ac_var
2118	case $ac_val in
2119	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2120	esac
2121	$as_echo "$ac_var='\''$ac_val'\''"
2122      done | sort
2123      echo
2124    fi
2125
2126    if test -s confdefs.h; then
2127      $as_echo "## ----------- ##
2128## confdefs.h. ##
2129## ----------- ##"
2130      echo
2131      cat confdefs.h
2132      echo
2133    fi
2134    test "$ac_signal" != 0 &&
2135      $as_echo "$as_me: caught signal $ac_signal"
2136    $as_echo "$as_me: exit $exit_status"
2137  } >&5
2138  rm -f core *.core core.conftest.* &&
2139    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2140    exit $exit_status
2141' 0
2142for ac_signal in 1 2 13 15; do
2143  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2144done
2145ac_signal=0
2146
2147# confdefs.h avoids OS command line length limits that DEFS can exceed.
2148rm -f -r conftest* confdefs.h
2149
2150$as_echo "/* confdefs.h */" > confdefs.h
2151
2152# Predefined preprocessor variables.
2153
2154cat >>confdefs.h <<_ACEOF
2155#define PACKAGE_NAME "$PACKAGE_NAME"
2156_ACEOF
2157
2158cat >>confdefs.h <<_ACEOF
2159#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2160_ACEOF
2161
2162cat >>confdefs.h <<_ACEOF
2163#define PACKAGE_VERSION "$PACKAGE_VERSION"
2164_ACEOF
2165
2166cat >>confdefs.h <<_ACEOF
2167#define PACKAGE_STRING "$PACKAGE_STRING"
2168_ACEOF
2169
2170cat >>confdefs.h <<_ACEOF
2171#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2172_ACEOF
2173
2174cat >>confdefs.h <<_ACEOF
2175#define PACKAGE_URL "$PACKAGE_URL"
2176_ACEOF
2177
2178
2179# Let the site file select an alternate cache file if it wants to.
2180# Prefer an explicitly selected file to automatically selected ones.
2181ac_site_file1=NONE
2182ac_site_file2=NONE
2183if test -n "$CONFIG_SITE"; then
2184  # We do not want a PATH search for config.site.
2185  case $CONFIG_SITE in #((
2186    -*)  ac_site_file1=./$CONFIG_SITE;;
2187    */*) ac_site_file1=$CONFIG_SITE;;
2188    *)   ac_site_file1=./$CONFIG_SITE;;
2189  esac
2190elif test "x$prefix" != xNONE; then
2191  ac_site_file1=$prefix/share/config.site
2192  ac_site_file2=$prefix/etc/config.site
2193else
2194  ac_site_file1=$ac_default_prefix/share/config.site
2195  ac_site_file2=$ac_default_prefix/etc/config.site
2196fi
2197for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2198do
2199  test "x$ac_site_file" = xNONE && continue
2200  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2201    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2202$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2203    sed 's/^/| /' "$ac_site_file" >&5
2204    . "$ac_site_file" \
2205      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2206$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2207as_fn_error $? "failed to load site script $ac_site_file
2208See \`config.log' for more details" "$LINENO" 5; }
2209  fi
2210done
2211
2212if test -r "$cache_file"; then
2213  # Some versions of bash will fail to source /dev/null (special files
2214  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2215  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2216    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2217$as_echo "$as_me: loading cache $cache_file" >&6;}
2218    case $cache_file in
2219      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2220      *)                      . "./$cache_file";;
2221    esac
2222  fi
2223else
2224  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2225$as_echo "$as_me: creating cache $cache_file" >&6;}
2226  >$cache_file
2227fi
2228
2229as_fn_append ac_header_list " sys/time.h"
2230# Check that the precious variables saved in the cache have kept the same
2231# value.
2232ac_cache_corrupted=false
2233for ac_var in $ac_precious_vars; do
2234  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2235  eval ac_new_set=\$ac_env_${ac_var}_set
2236  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2237  eval ac_new_val=\$ac_env_${ac_var}_value
2238  case $ac_old_set,$ac_new_set in
2239    set,)
2240      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2241$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2242      ac_cache_corrupted=: ;;
2243    ,set)
2244      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2245$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2246      ac_cache_corrupted=: ;;
2247    ,);;
2248    *)
2249      if test "x$ac_old_val" != "x$ac_new_val"; then
2250	# differences in whitespace do not lead to failure.
2251	ac_old_val_w=`echo x $ac_old_val`
2252	ac_new_val_w=`echo x $ac_new_val`
2253	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2254	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2255$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2256	  ac_cache_corrupted=:
2257	else
2258	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2259$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2260	  eval $ac_var=\$ac_old_val
2261	fi
2262	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2263$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2264	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2265$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2266      fi;;
2267  esac
2268  # Pass precious variables to config.status.
2269  if test "$ac_new_set" = set; then
2270    case $ac_new_val in
2271    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2272    *) ac_arg=$ac_var=$ac_new_val ;;
2273    esac
2274    case " $ac_configure_args " in
2275      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2276      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2277    esac
2278  fi
2279done
2280if $ac_cache_corrupted; then
2281  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2282$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2283  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2284$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2285  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2286fi
2287## -------------------- ##
2288## Main body of script. ##
2289## -------------------- ##
2290
2291ac_ext=c
2292ac_cpp='$CPP $CPPFLAGS'
2293ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2294ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2295ac_compiler_gnu=$ac_cv_c_compiler_gnu
2296
2297
2298
2299
2300
2301    ac_config_headers="$ac_config_headers tkConfig.h:../unix/tkConfig.h.in"
2302
2303
2304
2305
2306
2307
2308TK_VERSION=8.7
2309TK_MAJOR_VERSION=8
2310TK_MINOR_VERSION=7
2311TK_PATCH_LEVEL="a5"
2312VERSION=${TK_VERSION}
2313LOCALES="cs da de el en en_gb eo es fr hu it nl pl pt ru sv"
2314
2315#--------------------------------------------------------------------
2316# Find and load the tclConfig.sh file
2317#--------------------------------------------------------------------
2318
2319
2320    #
2321    # Ok, lets find the tcl configuration
2322    # First, look for one uninstalled.
2323    # the alternative search directory is invoked by --with-tcl
2324    #
2325
2326    if test x"${no_tcl}" = x ; then
2327	# we reset no_tcl in case something fails here
2328	no_tcl=true
2329
2330# Check whether --with-tcl was given.
2331if test "${with_tcl+set}" = set; then :
2332  withval=$with_tcl; with_tclconfig="${withval}"
2333fi
2334
2335	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl configuration" >&5
2336$as_echo_n "checking for Tcl configuration... " >&6; }
2337	if ${ac_cv_c_tclconfig+:} false; then :
2338  $as_echo_n "(cached) " >&6
2339else
2340
2341
2342	    # First check to see if --with-tcl was specified.
2343	    if test x"${with_tclconfig}" != x ; then
2344		case "${with_tclconfig}" in
2345		    */tclConfig.sh )
2346			if test -f "${with_tclconfig}"; then
2347			    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --with-tcl argument should refer to directory containing tclConfig.sh, not to tclConfig.sh itself" >&5
2348$as_echo "$as_me: WARNING: --with-tcl argument should refer to directory containing tclConfig.sh, not to tclConfig.sh itself" >&2;}
2349			    with_tclconfig="`echo "${with_tclconfig}" | sed 's!/tclConfig\.sh$!!'`"
2350			fi ;;
2351		esac
2352		if test -f "${with_tclconfig}/tclConfig.sh" ; then
2353		    ac_cv_c_tclconfig="`(cd "${with_tclconfig}"; pwd)`"
2354		else
2355		    as_fn_error $? "${with_tclconfig} directory doesn't contain tclConfig.sh" "$LINENO" 5
2356		fi
2357	    fi
2358
2359	    # then check for a private Tcl installation
2360	    if test x"${ac_cv_c_tclconfig}" = x ; then
2361		for i in \
2362			../tcl \
2363			`ls -dr ../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
2364			`ls -dr ../tcl[8-9].[0-9] 2>/dev/null` \
2365			`ls -dr ../tcl[8-9].[0-9]* 2>/dev/null` \
2366			../../tcl \
2367			`ls -dr ../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
2368			`ls -dr ../../tcl[8-9].[0-9] 2>/dev/null` \
2369			`ls -dr ../../tcl[8-9].[0-9]* 2>/dev/null` \
2370			../../../tcl \
2371			`ls -dr ../../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
2372			`ls -dr ../../../tcl[8-9].[0-9] 2>/dev/null` \
2373			`ls -dr ../../../tcl[8-9].[0-9]* 2>/dev/null` ; do
2374		    if test -f "$i/unix/tclConfig.sh" ; then
2375			ac_cv_c_tclconfig="`(cd $i/unix; pwd)`"
2376			break
2377		    fi
2378		done
2379	    fi
2380
2381	    # on Darwin, check in Framework installation locations
2382	    if test "`uname -s`" = "Darwin" -a x"${ac_cv_c_tclconfig}" = x ; then
2383		for i in `ls -d ~/Library/Frameworks 2>/dev/null` \
2384			`ls -d /Library/Frameworks 2>/dev/null` \
2385			`ls -d /Network/Library/Frameworks 2>/dev/null` \
2386			; do
2387		    if test -f "$i/Tcl.framework/tclConfig.sh" ; then
2388			ac_cv_c_tclconfig="`(cd $i/Tcl.framework; pwd)`"
2389			break
2390		    fi
2391		done
2392	    fi
2393
2394	    # check in a few common install locations
2395	    if test x"${ac_cv_c_tclconfig}" = x ; then
2396		for i in `ls -d ${libdir} 2>/dev/null` \
2397			`ls -d ${exec_prefix}/lib 2>/dev/null` \
2398			`ls -d ${prefix}/lib 2>/dev/null` \
2399			`ls -d /usr/local/lib 2>/dev/null` \
2400			`ls -d /usr/contrib/lib 2>/dev/null` \
2401			`ls -d /usr/pkg/lib 2>/dev/null` \
2402			`ls -d /usr/lib/tcl8.7 2>/dev/null` \
2403			`ls -d /usr/lib 2>/dev/null` \
2404			`ls -d /usr/lib64 2>/dev/null` \
2405			`ls -d /usr/local/lib/tcl8.7 2>/dev/null` \
2406			`ls -d /usr/local/lib/tcl/tcl8.7 2>/dev/null` \
2407			; do
2408		    if test -f "$i/tclConfig.sh" ; then
2409			ac_cv_c_tclconfig="`(cd $i; pwd)`"
2410			break
2411		    fi
2412		done
2413	    fi
2414
2415	    # check in a few other private locations
2416	    if test x"${ac_cv_c_tclconfig}" = x ; then
2417		for i in \
2418			${srcdir}/../tcl \
2419			`ls -dr ${srcdir}/../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
2420			`ls -dr ${srcdir}/../tcl[8-9].[0-9] 2>/dev/null` \
2421			`ls -dr ${srcdir}/../tcl[8-9].[0-9]* 2>/dev/null` ; do
2422		    if test -f "$i/unix/tclConfig.sh" ; then
2423			ac_cv_c_tclconfig="`(cd $i/unix; pwd)`"
2424			break
2425		    fi
2426		done
2427	    fi
2428
2429fi
2430
2431
2432	if test x"${ac_cv_c_tclconfig}" = x ; then
2433	    TCL_BIN_DIR="# no Tcl configs found"
2434	    as_fn_error $? "Can't find Tcl configuration definitions. Use --with-tcl to specify a directory containing tclConfig.sh" "$LINENO" 5
2435	else
2436	    no_tcl=
2437	    TCL_BIN_DIR="${ac_cv_c_tclconfig}"
2438	    { $as_echo "$as_me:${as_lineno-$LINENO}: result: found ${TCL_BIN_DIR}/tclConfig.sh" >&5
2439$as_echo "found ${TCL_BIN_DIR}/tclConfig.sh" >&6; }
2440	fi
2441    fi
2442
2443
2444    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for existence of ${TCL_BIN_DIR}/tclConfig.sh" >&5
2445$as_echo_n "checking for existence of ${TCL_BIN_DIR}/tclConfig.sh... " >&6; }
2446
2447    if test -f "${TCL_BIN_DIR}/tclConfig.sh" ; then
2448        { $as_echo "$as_me:${as_lineno-$LINENO}: result: loading" >&5
2449$as_echo "loading" >&6; }
2450	. "${TCL_BIN_DIR}/tclConfig.sh"
2451    else
2452        { $as_echo "$as_me:${as_lineno-$LINENO}: result: could not find ${TCL_BIN_DIR}/tclConfig.sh" >&5
2453$as_echo "could not find ${TCL_BIN_DIR}/tclConfig.sh" >&6; }
2454    fi
2455
2456    # If the TCL_BIN_DIR is the build directory (not the install directory),
2457    # then set the common variable name to the value of the build variables.
2458    # For example, the variable TCL_LIB_SPEC will be set to the value
2459    # of TCL_BUILD_LIB_SPEC. An extension should make use of TCL_LIB_SPEC
2460    # instead of TCL_BUILD_LIB_SPEC since it will work with both an
2461    # installed and uninstalled version of Tcl.
2462    if test -f "${TCL_BIN_DIR}/Makefile" ; then
2463        TCL_LIB_SPEC="${TCL_BUILD_LIB_SPEC}"
2464        TCL_STUB_LIB_SPEC="${TCL_BUILD_STUB_LIB_SPEC}"
2465        TCL_STUB_LIB_PATH="${TCL_BUILD_STUB_LIB_PATH}"
2466    elif test "`uname -s`" = "Darwin"; then
2467	# If Tcl was built as a framework, attempt to use the libraries
2468	# from the framework at the given location so that linking works
2469	# against Tcl.framework installed in an arbitrary location.
2470	case ${TCL_DEFS} in
2471	    *TCL_FRAMEWORK*)
2472		if test -f "${TCL_BIN_DIR}/${TCL_LIB_FILE}"; then
2473		    for i in "`cd "${TCL_BIN_DIR}"; pwd`" \
2474			     "`cd "${TCL_BIN_DIR}"/../..; pwd`"; do
2475			if test "`basename "$i"`" = "${TCL_LIB_FILE}.framework"; then
2476			    TCL_LIB_SPEC="-F`dirname "$i" | sed -e 's/ /\\\\ /g'` -framework ${TCL_LIB_FILE}"
2477			    break
2478			fi
2479		    done
2480		fi
2481		if test -f "${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}"; then
2482		    TCL_STUB_LIB_SPEC="-L`echo "${TCL_BIN_DIR}"  | sed -e 's/ /\\\\ /g'` ${TCL_STUB_LIB_FLAG}"
2483		    TCL_STUB_LIB_PATH="${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}"
2484		fi
2485		;;
2486	esac
2487    fi
2488
2489
2490
2491
2492
2493
2494
2495
2496
2497
2498
2499
2500
2501
2502
2503if test "${TCL_MAJOR_VERSION}" -lt 9 ; then
2504if test "${TCL_MAJOR_VERSION}" -ne 8 ; then
2505    as_fn_error $? "${PACKAGE_NAME} ${PACKAGE_VERSION} requires Tcl 8.6+
2506Found config for Tcl ${TCL_VERSION}" "$LINENO" 5
2507fi
2508if test "${TCL_MINOR_VERSION}" -lt 6 ; then
2509    as_fn_error $? "${PACKAGE_NAME} ${PACKAGE_VERSION} requires Tcl 8.6+
2510Found config for Tcl ${TCL_VERSION}" "$LINENO" 5
2511fi
2512fi
2513
2514
2515    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tclsh" >&5
2516$as_echo_n "checking for tclsh... " >&6; }
2517    if ${ac_cv_path_tclsh+:} false; then :
2518  $as_echo_n "(cached) " >&6
2519else
2520
2521	search_path=`echo ${PATH} | sed -e 's/:/ /g'`
2522	for dir in $search_path ; do
2523	    for j in `ls -r $dir/tclsh[8-9]* 2> /dev/null` \
2524		    `ls -r $dir/tclsh* 2> /dev/null` ; do
2525		if test x"$ac_cv_path_tclsh" = x ; then
2526		    if test -f "$j" ; then
2527			ac_cv_path_tclsh=$j
2528			break
2529		    fi
2530		fi
2531	    done
2532	done
2533
2534fi
2535
2536
2537    if test -f "$ac_cv_path_tclsh" ; then
2538	TCLSH_PROG="$ac_cv_path_tclsh"
2539	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $TCLSH_PROG" >&5
2540$as_echo "$TCLSH_PROG" >&6; }
2541    else
2542	# It is not an error if an installed version of Tcl can't be located.
2543	TCLSH_PROG=""
2544	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: No tclsh found on PATH" >&5
2545$as_echo "No tclsh found on PATH" >&6; }
2546    fi
2547
2548
2549
2550    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tclsh in Tcl build directory" >&5
2551$as_echo_n "checking for tclsh in Tcl build directory... " >&6; }
2552    BUILD_TCLSH="${TCL_BIN_DIR}"/tclsh
2553    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_TCLSH" >&5
2554$as_echo "$BUILD_TCLSH" >&6; }
2555
2556
2557
2558#------------------------------------------------------------------------
2559# Handle the --prefix=... option
2560#------------------------------------------------------------------------
2561
2562if test "${prefix}" = "NONE"; then
2563    prefix="$TCL_PREFIX"
2564fi
2565if test "${exec_prefix}" = "NONE"; then
2566    exec_prefix=$prefix
2567fi
2568# Make sure srcdir is fully qualified!
2569srcdir="`cd "$srcdir" ; pwd`"
2570TK_SRC_DIR="`cd "$srcdir"/..; pwd`"
2571
2572#------------------------------------------------------------------------
2573# Compress and/or soft link the manpages?
2574#------------------------------------------------------------------------
2575
2576
2577    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use symlinks for manpages" >&5
2578$as_echo_n "checking whether to use symlinks for manpages... " >&6; }
2579    # Check whether --enable-man-symlinks was given.
2580if test "${enable_man_symlinks+set}" = set; then :
2581  enableval=$enable_man_symlinks; test "$enableval" != "no" && MAN_FLAGS="$MAN_FLAGS --symlinks"
2582else
2583  enableval="no"
2584fi
2585
2586    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
2587$as_echo "$enableval" >&6; }
2588
2589    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to compress the manpages" >&5
2590$as_echo_n "checking whether to compress the manpages... " >&6; }
2591    # Check whether --enable-man-compression was given.
2592if test "${enable_man_compression+set}" = set; then :
2593  enableval=$enable_man_compression; case $enableval in
2594	    yes) as_fn_error $? "missing argument to --enable-man-compression" "$LINENO" 5;;
2595	    no)  ;;
2596	    *)   MAN_FLAGS="$MAN_FLAGS --compress $enableval";;
2597	esac
2598else
2599  enableval="no"
2600fi
2601
2602    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
2603$as_echo "$enableval" >&6; }
2604    if test "$enableval" != "no"; then
2605	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for compressed file suffix" >&5
2606$as_echo_n "checking for compressed file suffix... " >&6; }
2607	touch TeST
2608	$enableval TeST
2609	Z=`ls TeST* | sed 's/^....//'`
2610	rm -f TeST*
2611	MAN_FLAGS="$MAN_FLAGS --extension $Z"
2612	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $Z" >&5
2613$as_echo "$Z" >&6; }
2614    fi
2615
2616    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to add a package name suffix for the manpages" >&5
2617$as_echo_n "checking whether to add a package name suffix for the manpages... " >&6; }
2618    # Check whether --enable-man-suffix was given.
2619if test "${enable_man_suffix+set}" = set; then :
2620  enableval=$enable_man_suffix; case $enableval in
2621	    yes) enableval="tk" MAN_FLAGS="$MAN_FLAGS --suffix $enableval";;
2622	    no)  ;;
2623	    *)   MAN_FLAGS="$MAN_FLAGS --suffix $enableval";;
2624	esac
2625else
2626  enableval="no"
2627fi
2628
2629    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
2630$as_echo "$enableval" >&6; }
2631
2632
2633
2634
2635#------------------------------------------------------------------------
2636# Standard compiler checks
2637#------------------------------------------------------------------------
2638
2639# If the user did not set CFLAGS, set it now to keep
2640# the AC_PROG_CC macro from adding "-g -O2".
2641if test "${CFLAGS+set}" != "set" ; then
2642    CFLAGS=""
2643fi
2644
2645ac_ext=c
2646ac_cpp='$CPP $CPPFLAGS'
2647ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2648ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2649ac_compiler_gnu=$ac_cv_c_compiler_gnu
2650if test -n "$ac_tool_prefix"; then
2651  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2652set dummy ${ac_tool_prefix}gcc; ac_word=$2
2653{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2654$as_echo_n "checking for $ac_word... " >&6; }
2655if ${ac_cv_prog_CC+:} false; then :
2656  $as_echo_n "(cached) " >&6
2657else
2658  if test -n "$CC"; then
2659  ac_cv_prog_CC="$CC" # Let the user override the test.
2660else
2661as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2662for as_dir in $PATH
2663do
2664  IFS=$as_save_IFS
2665  test -z "$as_dir" && as_dir=.
2666    for ac_exec_ext in '' $ac_executable_extensions; do
2667  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2668    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2669    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2670    break 2
2671  fi
2672done
2673  done
2674IFS=$as_save_IFS
2675
2676fi
2677fi
2678CC=$ac_cv_prog_CC
2679if test -n "$CC"; then
2680  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2681$as_echo "$CC" >&6; }
2682else
2683  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2684$as_echo "no" >&6; }
2685fi
2686
2687
2688fi
2689if test -z "$ac_cv_prog_CC"; then
2690  ac_ct_CC=$CC
2691  # Extract the first word of "gcc", so it can be a program name with args.
2692set dummy gcc; ac_word=$2
2693{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2694$as_echo_n "checking for $ac_word... " >&6; }
2695if ${ac_cv_prog_ac_ct_CC+:} false; then :
2696  $as_echo_n "(cached) " >&6
2697else
2698  if test -n "$ac_ct_CC"; then
2699  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2700else
2701as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2702for as_dir in $PATH
2703do
2704  IFS=$as_save_IFS
2705  test -z "$as_dir" && as_dir=.
2706    for ac_exec_ext in '' $ac_executable_extensions; do
2707  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2708    ac_cv_prog_ac_ct_CC="gcc"
2709    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2710    break 2
2711  fi
2712done
2713  done
2714IFS=$as_save_IFS
2715
2716fi
2717fi
2718ac_ct_CC=$ac_cv_prog_ac_ct_CC
2719if test -n "$ac_ct_CC"; then
2720  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2721$as_echo "$ac_ct_CC" >&6; }
2722else
2723  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2724$as_echo "no" >&6; }
2725fi
2726
2727  if test "x$ac_ct_CC" = x; then
2728    CC=""
2729  else
2730    case $cross_compiling:$ac_tool_warned in
2731yes:)
2732{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2733$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2734ac_tool_warned=yes ;;
2735esac
2736    CC=$ac_ct_CC
2737  fi
2738else
2739  CC="$ac_cv_prog_CC"
2740fi
2741
2742if test -z "$CC"; then
2743          if test -n "$ac_tool_prefix"; then
2744    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2745set dummy ${ac_tool_prefix}cc; ac_word=$2
2746{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2747$as_echo_n "checking for $ac_word... " >&6; }
2748if ${ac_cv_prog_CC+:} false; then :
2749  $as_echo_n "(cached) " >&6
2750else
2751  if test -n "$CC"; then
2752  ac_cv_prog_CC="$CC" # Let the user override the test.
2753else
2754as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2755for as_dir in $PATH
2756do
2757  IFS=$as_save_IFS
2758  test -z "$as_dir" && as_dir=.
2759    for ac_exec_ext in '' $ac_executable_extensions; do
2760  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2761    ac_cv_prog_CC="${ac_tool_prefix}cc"
2762    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2763    break 2
2764  fi
2765done
2766  done
2767IFS=$as_save_IFS
2768
2769fi
2770fi
2771CC=$ac_cv_prog_CC
2772if test -n "$CC"; then
2773  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2774$as_echo "$CC" >&6; }
2775else
2776  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2777$as_echo "no" >&6; }
2778fi
2779
2780
2781  fi
2782fi
2783if test -z "$CC"; then
2784  # Extract the first word of "cc", so it can be a program name with args.
2785set dummy cc; ac_word=$2
2786{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2787$as_echo_n "checking for $ac_word... " >&6; }
2788if ${ac_cv_prog_CC+:} false; then :
2789  $as_echo_n "(cached) " >&6
2790else
2791  if test -n "$CC"; then
2792  ac_cv_prog_CC="$CC" # Let the user override the test.
2793else
2794  ac_prog_rejected=no
2795as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2796for as_dir in $PATH
2797do
2798  IFS=$as_save_IFS
2799  test -z "$as_dir" && as_dir=.
2800    for ac_exec_ext in '' $ac_executable_extensions; do
2801  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2802    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2803       ac_prog_rejected=yes
2804       continue
2805     fi
2806    ac_cv_prog_CC="cc"
2807    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2808    break 2
2809  fi
2810done
2811  done
2812IFS=$as_save_IFS
2813
2814if test $ac_prog_rejected = yes; then
2815  # We found a bogon in the path, so make sure we never use it.
2816  set dummy $ac_cv_prog_CC
2817  shift
2818  if test $# != 0; then
2819    # We chose a different compiler from the bogus one.
2820    # However, it has the same basename, so the bogon will be chosen
2821    # first if we set CC to just the basename; use the full file name.
2822    shift
2823    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2824  fi
2825fi
2826fi
2827fi
2828CC=$ac_cv_prog_CC
2829if test -n "$CC"; then
2830  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2831$as_echo "$CC" >&6; }
2832else
2833  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2834$as_echo "no" >&6; }
2835fi
2836
2837
2838fi
2839if test -z "$CC"; then
2840  if test -n "$ac_tool_prefix"; then
2841  for ac_prog in cl.exe
2842  do
2843    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2844set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2845{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2846$as_echo_n "checking for $ac_word... " >&6; }
2847if ${ac_cv_prog_CC+:} false; then :
2848  $as_echo_n "(cached) " >&6
2849else
2850  if test -n "$CC"; then
2851  ac_cv_prog_CC="$CC" # Let the user override the test.
2852else
2853as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2854for as_dir in $PATH
2855do
2856  IFS=$as_save_IFS
2857  test -z "$as_dir" && as_dir=.
2858    for ac_exec_ext in '' $ac_executable_extensions; do
2859  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2860    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2861    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2862    break 2
2863  fi
2864done
2865  done
2866IFS=$as_save_IFS
2867
2868fi
2869fi
2870CC=$ac_cv_prog_CC
2871if test -n "$CC"; then
2872  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2873$as_echo "$CC" >&6; }
2874else
2875  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2876$as_echo "no" >&6; }
2877fi
2878
2879
2880    test -n "$CC" && break
2881  done
2882fi
2883if test -z "$CC"; then
2884  ac_ct_CC=$CC
2885  for ac_prog in cl.exe
2886do
2887  # Extract the first word of "$ac_prog", so it can be a program name with args.
2888set dummy $ac_prog; ac_word=$2
2889{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2890$as_echo_n "checking for $ac_word... " >&6; }
2891if ${ac_cv_prog_ac_ct_CC+:} false; then :
2892  $as_echo_n "(cached) " >&6
2893else
2894  if test -n "$ac_ct_CC"; then
2895  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2896else
2897as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2898for as_dir in $PATH
2899do
2900  IFS=$as_save_IFS
2901  test -z "$as_dir" && as_dir=.
2902    for ac_exec_ext in '' $ac_executable_extensions; do
2903  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2904    ac_cv_prog_ac_ct_CC="$ac_prog"
2905    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2906    break 2
2907  fi
2908done
2909  done
2910IFS=$as_save_IFS
2911
2912fi
2913fi
2914ac_ct_CC=$ac_cv_prog_ac_ct_CC
2915if test -n "$ac_ct_CC"; then
2916  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2917$as_echo "$ac_ct_CC" >&6; }
2918else
2919  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2920$as_echo "no" >&6; }
2921fi
2922
2923
2924  test -n "$ac_ct_CC" && break
2925done
2926
2927  if test "x$ac_ct_CC" = x; then
2928    CC=""
2929  else
2930    case $cross_compiling:$ac_tool_warned in
2931yes:)
2932{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2933$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2934ac_tool_warned=yes ;;
2935esac
2936    CC=$ac_ct_CC
2937  fi
2938fi
2939
2940fi
2941
2942
2943test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2944$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2945as_fn_error $? "no acceptable C compiler found in \$PATH
2946See \`config.log' for more details" "$LINENO" 5; }
2947
2948# Provide some information about the compiler.
2949$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2950set X $ac_compile
2951ac_compiler=$2
2952for ac_option in --version -v -V -qversion; do
2953  { { ac_try="$ac_compiler $ac_option >&5"
2954case "(($ac_try" in
2955  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2956  *) ac_try_echo=$ac_try;;
2957esac
2958eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2959$as_echo "$ac_try_echo"; } >&5
2960  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2961  ac_status=$?
2962  if test -s conftest.err; then
2963    sed '10a\
2964... rest of stderr output deleted ...
2965         10q' conftest.err >conftest.er1
2966    cat conftest.er1 >&5
2967  fi
2968  rm -f conftest.er1 conftest.err
2969  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2970  test $ac_status = 0; }
2971done
2972
2973cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2974/* end confdefs.h.  */
2975
2976int
2977main ()
2978{
2979
2980  ;
2981  return 0;
2982}
2983_ACEOF
2984ac_clean_files_save=$ac_clean_files
2985ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2986# Try to create an executable without -o first, disregard a.out.
2987# It will help us diagnose broken compilers, and finding out an intuition
2988# of exeext.
2989{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2990$as_echo_n "checking whether the C compiler works... " >&6; }
2991ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2992
2993# The possible output files:
2994ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2995
2996ac_rmfiles=
2997for ac_file in $ac_files
2998do
2999  case $ac_file in
3000    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3001    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3002  esac
3003done
3004rm -f $ac_rmfiles
3005
3006if { { ac_try="$ac_link_default"
3007case "(($ac_try" in
3008  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3009  *) ac_try_echo=$ac_try;;
3010esac
3011eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3012$as_echo "$ac_try_echo"; } >&5
3013  (eval "$ac_link_default") 2>&5
3014  ac_status=$?
3015  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3016  test $ac_status = 0; }; then :
3017  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3018# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3019# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3020# so that the user can short-circuit this test for compilers unknown to
3021# Autoconf.
3022for ac_file in $ac_files ''
3023do
3024  test -f "$ac_file" || continue
3025  case $ac_file in
3026    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3027	;;
3028    [ab].out )
3029	# We found the default executable, but exeext='' is most
3030	# certainly right.
3031	break;;
3032    *.* )
3033	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3034	then :; else
3035	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3036	fi
3037	# We set ac_cv_exeext here because the later test for it is not
3038	# safe: cross compilers may not add the suffix if given an `-o'
3039	# argument, so we may need to know it at that point already.
3040	# Even if this section looks crufty: it has the advantage of
3041	# actually working.
3042	break;;
3043    * )
3044	break;;
3045  esac
3046done
3047test "$ac_cv_exeext" = no && ac_cv_exeext=
3048
3049else
3050  ac_file=''
3051fi
3052if test -z "$ac_file"; then :
3053  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3054$as_echo "no" >&6; }
3055$as_echo "$as_me: failed program was:" >&5
3056sed 's/^/| /' conftest.$ac_ext >&5
3057
3058{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3059$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3060as_fn_error 77 "C compiler cannot create executables
3061See \`config.log' for more details" "$LINENO" 5; }
3062else
3063  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3064$as_echo "yes" >&6; }
3065fi
3066{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3067$as_echo_n "checking for C compiler default output file name... " >&6; }
3068{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3069$as_echo "$ac_file" >&6; }
3070ac_exeext=$ac_cv_exeext
3071
3072rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3073ac_clean_files=$ac_clean_files_save
3074{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3075$as_echo_n "checking for suffix of executables... " >&6; }
3076if { { ac_try="$ac_link"
3077case "(($ac_try" in
3078  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3079  *) ac_try_echo=$ac_try;;
3080esac
3081eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3082$as_echo "$ac_try_echo"; } >&5
3083  (eval "$ac_link") 2>&5
3084  ac_status=$?
3085  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3086  test $ac_status = 0; }; then :
3087  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3088# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3089# work properly (i.e., refer to `conftest.exe'), while it won't with
3090# `rm'.
3091for ac_file in conftest.exe conftest conftest.*; do
3092  test -f "$ac_file" || continue
3093  case $ac_file in
3094    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3095    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3096	  break;;
3097    * ) break;;
3098  esac
3099done
3100else
3101  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3102$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3103as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3104See \`config.log' for more details" "$LINENO" 5; }
3105fi
3106rm -f conftest conftest$ac_cv_exeext
3107{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3108$as_echo "$ac_cv_exeext" >&6; }
3109
3110rm -f conftest.$ac_ext
3111EXEEXT=$ac_cv_exeext
3112ac_exeext=$EXEEXT
3113cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3114/* end confdefs.h.  */
3115#include <stdio.h>
3116int
3117main ()
3118{
3119FILE *f = fopen ("conftest.out", "w");
3120 return ferror (f) || fclose (f) != 0;
3121
3122  ;
3123  return 0;
3124}
3125_ACEOF
3126ac_clean_files="$ac_clean_files conftest.out"
3127# Check that the compiler produces executables we can run.  If not, either
3128# the compiler is broken, or we cross compile.
3129{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3130$as_echo_n "checking whether we are cross compiling... " >&6; }
3131if test "$cross_compiling" != yes; then
3132  { { ac_try="$ac_link"
3133case "(($ac_try" in
3134  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3135  *) ac_try_echo=$ac_try;;
3136esac
3137eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3138$as_echo "$ac_try_echo"; } >&5
3139  (eval "$ac_link") 2>&5
3140  ac_status=$?
3141  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3142  test $ac_status = 0; }
3143  if { ac_try='./conftest$ac_cv_exeext'
3144  { { case "(($ac_try" in
3145  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3146  *) ac_try_echo=$ac_try;;
3147esac
3148eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3149$as_echo "$ac_try_echo"; } >&5
3150  (eval "$ac_try") 2>&5
3151  ac_status=$?
3152  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3153  test $ac_status = 0; }; }; then
3154    cross_compiling=no
3155  else
3156    if test "$cross_compiling" = maybe; then
3157	cross_compiling=yes
3158    else
3159	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3160$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3161as_fn_error $? "cannot run C compiled programs.
3162If you meant to cross compile, use \`--host'.
3163See \`config.log' for more details" "$LINENO" 5; }
3164    fi
3165  fi
3166fi
3167{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3168$as_echo "$cross_compiling" >&6; }
3169
3170rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3171ac_clean_files=$ac_clean_files_save
3172{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3173$as_echo_n "checking for suffix of object files... " >&6; }
3174if ${ac_cv_objext+:} false; then :
3175  $as_echo_n "(cached) " >&6
3176else
3177  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3178/* end confdefs.h.  */
3179
3180int
3181main ()
3182{
3183
3184  ;
3185  return 0;
3186}
3187_ACEOF
3188rm -f conftest.o conftest.obj
3189if { { ac_try="$ac_compile"
3190case "(($ac_try" in
3191  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3192  *) ac_try_echo=$ac_try;;
3193esac
3194eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3195$as_echo "$ac_try_echo"; } >&5
3196  (eval "$ac_compile") 2>&5
3197  ac_status=$?
3198  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3199  test $ac_status = 0; }; then :
3200  for ac_file in conftest.o conftest.obj conftest.*; do
3201  test -f "$ac_file" || continue;
3202  case $ac_file in
3203    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3204    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3205       break;;
3206  esac
3207done
3208else
3209  $as_echo "$as_me: failed program was:" >&5
3210sed 's/^/| /' conftest.$ac_ext >&5
3211
3212{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3213$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3214as_fn_error $? "cannot compute suffix of object files: cannot compile
3215See \`config.log' for more details" "$LINENO" 5; }
3216fi
3217rm -f conftest.$ac_cv_objext conftest.$ac_ext
3218fi
3219{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3220$as_echo "$ac_cv_objext" >&6; }
3221OBJEXT=$ac_cv_objext
3222ac_objext=$OBJEXT
3223{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3224$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3225if ${ac_cv_c_compiler_gnu+:} false; then :
3226  $as_echo_n "(cached) " >&6
3227else
3228  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3229/* end confdefs.h.  */
3230
3231int
3232main ()
3233{
3234#ifndef __GNUC__
3235       choke me
3236#endif
3237
3238  ;
3239  return 0;
3240}
3241_ACEOF
3242if ac_fn_c_try_compile "$LINENO"; then :
3243  ac_compiler_gnu=yes
3244else
3245  ac_compiler_gnu=no
3246fi
3247rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3248ac_cv_c_compiler_gnu=$ac_compiler_gnu
3249
3250fi
3251{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3252$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3253if test $ac_compiler_gnu = yes; then
3254  GCC=yes
3255else
3256  GCC=
3257fi
3258ac_test_CFLAGS=${CFLAGS+set}
3259ac_save_CFLAGS=$CFLAGS
3260{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3261$as_echo_n "checking whether $CC accepts -g... " >&6; }
3262if ${ac_cv_prog_cc_g+:} false; then :
3263  $as_echo_n "(cached) " >&6
3264else
3265  ac_save_c_werror_flag=$ac_c_werror_flag
3266   ac_c_werror_flag=yes
3267   ac_cv_prog_cc_g=no
3268   CFLAGS="-g"
3269   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3270/* end confdefs.h.  */
3271
3272int
3273main ()
3274{
3275
3276  ;
3277  return 0;
3278}
3279_ACEOF
3280if ac_fn_c_try_compile "$LINENO"; then :
3281  ac_cv_prog_cc_g=yes
3282else
3283  CFLAGS=""
3284      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3285/* end confdefs.h.  */
3286
3287int
3288main ()
3289{
3290
3291  ;
3292  return 0;
3293}
3294_ACEOF
3295if ac_fn_c_try_compile "$LINENO"; then :
3296
3297else
3298  ac_c_werror_flag=$ac_save_c_werror_flag
3299	 CFLAGS="-g"
3300	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3301/* end confdefs.h.  */
3302
3303int
3304main ()
3305{
3306
3307  ;
3308  return 0;
3309}
3310_ACEOF
3311if ac_fn_c_try_compile "$LINENO"; then :
3312  ac_cv_prog_cc_g=yes
3313fi
3314rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3315fi
3316rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3317fi
3318rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3319   ac_c_werror_flag=$ac_save_c_werror_flag
3320fi
3321{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3322$as_echo "$ac_cv_prog_cc_g" >&6; }
3323if test "$ac_test_CFLAGS" = set; then
3324  CFLAGS=$ac_save_CFLAGS
3325elif test $ac_cv_prog_cc_g = yes; then
3326  if test "$GCC" = yes; then
3327    CFLAGS="-g -O2"
3328  else
3329    CFLAGS="-g"
3330  fi
3331else
3332  if test "$GCC" = yes; then
3333    CFLAGS="-O2"
3334  else
3335    CFLAGS=
3336  fi
3337fi
3338{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3339$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3340if ${ac_cv_prog_cc_c89+:} false; then :
3341  $as_echo_n "(cached) " >&6
3342else
3343  ac_cv_prog_cc_c89=no
3344ac_save_CC=$CC
3345cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3346/* end confdefs.h.  */
3347#include <stdarg.h>
3348#include <stdio.h>
3349struct stat;
3350/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3351struct buf { int x; };
3352FILE * (*rcsopen) (struct buf *, struct stat *, int);
3353static char *e (p, i)
3354     char **p;
3355     int i;
3356{
3357  return p[i];
3358}
3359static char *f (char * (*g) (char **, int), char **p, ...)
3360{
3361  char *s;
3362  va_list v;
3363  va_start (v,p);
3364  s = g (p, va_arg (v,int));
3365  va_end (v);
3366  return s;
3367}
3368
3369/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3370   function prototypes and stuff, but not '\xHH' hex character constants.
3371   These don't provoke an error unfortunately, instead are silently treated
3372   as 'x'.  The following induces an error, until -std is added to get
3373   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3374   array size at least.  It's necessary to write '\x00'==0 to get something
3375   that's true only with -std.  */
3376int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3377
3378/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3379   inside strings and character constants.  */
3380#define FOO(x) 'x'
3381int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3382
3383int test (int i, double x);
3384struct s1 {int (*f) (int a);};
3385struct s2 {int (*f) (double a);};
3386int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3387int argc;
3388char **argv;
3389int
3390main ()
3391{
3392return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3393  ;
3394  return 0;
3395}
3396_ACEOF
3397for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3398	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3399do
3400  CC="$ac_save_CC $ac_arg"
3401  if ac_fn_c_try_compile "$LINENO"; then :
3402  ac_cv_prog_cc_c89=$ac_arg
3403fi
3404rm -f core conftest.err conftest.$ac_objext
3405  test "x$ac_cv_prog_cc_c89" != "xno" && break
3406done
3407rm -f conftest.$ac_ext
3408CC=$ac_save_CC
3409
3410fi
3411# AC_CACHE_VAL
3412case "x$ac_cv_prog_cc_c89" in
3413  x)
3414    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3415$as_echo "none needed" >&6; } ;;
3416  xno)
3417    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3418$as_echo "unsupported" >&6; } ;;
3419  *)
3420    CC="$CC $ac_cv_prog_cc_c89"
3421    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3422$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3423esac
3424if test "x$ac_cv_prog_cc_c89" != xno; then :
3425
3426fi
3427
3428ac_ext=c
3429ac_cpp='$CPP $CPPFLAGS'
3430ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3431ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3432ac_compiler_gnu=$ac_cv_c_compiler_gnu
3433
3434
3435{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
3436$as_echo_n "checking for inline... " >&6; }
3437if ${ac_cv_c_inline+:} false; then :
3438  $as_echo_n "(cached) " >&6
3439else
3440  ac_cv_c_inline=no
3441for ac_kw in inline __inline__ __inline; do
3442  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3443/* end confdefs.h.  */
3444#ifndef __cplusplus
3445typedef int foo_t;
3446static $ac_kw foo_t static_foo () {return 0; }
3447$ac_kw foo_t foo () {return 0; }
3448#endif
3449
3450_ACEOF
3451if ac_fn_c_try_compile "$LINENO"; then :
3452  ac_cv_c_inline=$ac_kw
3453fi
3454rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3455  test "$ac_cv_c_inline" != no && break
3456done
3457
3458fi
3459{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
3460$as_echo "$ac_cv_c_inline" >&6; }
3461
3462case $ac_cv_c_inline in
3463  inline | yes) ;;
3464  *)
3465    case $ac_cv_c_inline in
3466      no) ac_val=;;
3467      *) ac_val=$ac_cv_c_inline;;
3468    esac
3469    cat >>confdefs.h <<_ACEOF
3470#ifndef __cplusplus
3471#define inline $ac_val
3472#endif
3473_ACEOF
3474    ;;
3475esac
3476
3477
3478#------------------------------------------------------------------------
3479# If we're using GCC, see if the compiler understands -pipe.  If so, use it.
3480# It makes compiling go faster.  (This is only a performance feature.)
3481#------------------------------------------------------------------------
3482
3483if test -z "$no_pipe" && test -n "$GCC"; then
3484    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the compiler understands -pipe" >&5
3485$as_echo_n "checking if the compiler understands -pipe... " >&6; }
3486if ${tcl_cv_cc_pipe+:} false; then :
3487  $as_echo_n "(cached) " >&6
3488else
3489
3490	hold_cflags=$CFLAGS; CFLAGS="$CFLAGS -pipe"
3491	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3492/* end confdefs.h.  */
3493
3494int
3495main ()
3496{
3497
3498  ;
3499  return 0;
3500}
3501_ACEOF
3502if ac_fn_c_try_compile "$LINENO"; then :
3503  tcl_cv_cc_pipe=yes
3504else
3505  tcl_cv_cc_pipe=no
3506fi
3507rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3508	CFLAGS=$hold_cflags
3509fi
3510{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_cc_pipe" >&5
3511$as_echo "$tcl_cv_cc_pipe" >&6; }
3512    if test $tcl_cv_cc_pipe = yes; then
3513	CFLAGS="$CFLAGS -pipe"
3514    fi
3515fi
3516
3517#------------------------------------------------------------------------
3518# Embedded configuration information, encoding to use for the values, TIP #59
3519#------------------------------------------------------------------------
3520
3521
3522
3523# Check whether --with-encoding was given.
3524if test "${with_encoding+set}" = set; then :
3525  withval=$with_encoding; with_tcencoding=${withval}
3526fi
3527
3528
3529    if test x"${with_tcencoding}" != x ; then
3530
3531cat >>confdefs.h <<_ACEOF
3532#define TCL_CFGVAL_ENCODING "${with_tcencoding}"
3533_ACEOF
3534
3535    else
3536
3537$as_echo "#define TCL_CFGVAL_ENCODING \"utf-8\"" >>confdefs.h
3538
3539    fi
3540
3541
3542
3543    { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to build libraries" >&5
3544$as_echo_n "checking how to build libraries... " >&6; }
3545    # Check whether --enable-shared was given.
3546if test "${enable_shared+set}" = set; then :
3547  enableval=$enable_shared; tcl_ok=$enableval
3548else
3549  tcl_ok=yes
3550fi
3551
3552    if test "$tcl_ok" = "yes" ; then
3553	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: shared" >&5
3554$as_echo "shared" >&6; }
3555	SHARED_BUILD=1
3556    else
3557	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: static" >&5
3558$as_echo "static" >&6; }
3559	SHARED_BUILD=0
3560
3561$as_echo "#define STATIC_BUILD 1" >>confdefs.h
3562
3563    fi
3564
3565
3566
3567#--------------------------------------------------------------------
3568# The statements below define a collection of compile flags.  This
3569# macro depends on the value of SHARED_BUILD, and should be called
3570# after SC_ENABLE_SHARED checks the configure switches.
3571#--------------------------------------------------------------------
3572
3573if test -n "$ac_tool_prefix"; then
3574  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3575set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3576{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3577$as_echo_n "checking for $ac_word... " >&6; }
3578if ${ac_cv_prog_RANLIB+:} false; then :
3579  $as_echo_n "(cached) " >&6
3580else
3581  if test -n "$RANLIB"; then
3582  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3583else
3584as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3585for as_dir in $PATH
3586do
3587  IFS=$as_save_IFS
3588  test -z "$as_dir" && as_dir=.
3589    for ac_exec_ext in '' $ac_executable_extensions; do
3590  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3591    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3592    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3593    break 2
3594  fi
3595done
3596  done
3597IFS=$as_save_IFS
3598
3599fi
3600fi
3601RANLIB=$ac_cv_prog_RANLIB
3602if test -n "$RANLIB"; then
3603  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
3604$as_echo "$RANLIB" >&6; }
3605else
3606  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3607$as_echo "no" >&6; }
3608fi
3609
3610
3611fi
3612if test -z "$ac_cv_prog_RANLIB"; then
3613  ac_ct_RANLIB=$RANLIB
3614  # Extract the first word of "ranlib", so it can be a program name with args.
3615set dummy ranlib; ac_word=$2
3616{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3617$as_echo_n "checking for $ac_word... " >&6; }
3618if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
3619  $as_echo_n "(cached) " >&6
3620else
3621  if test -n "$ac_ct_RANLIB"; then
3622  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3623else
3624as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3625for as_dir in $PATH
3626do
3627  IFS=$as_save_IFS
3628  test -z "$as_dir" && as_dir=.
3629    for ac_exec_ext in '' $ac_executable_extensions; do
3630  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3631    ac_cv_prog_ac_ct_RANLIB="ranlib"
3632    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3633    break 2
3634  fi
3635done
3636  done
3637IFS=$as_save_IFS
3638
3639fi
3640fi
3641ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3642if test -n "$ac_ct_RANLIB"; then
3643  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
3644$as_echo "$ac_ct_RANLIB" >&6; }
3645else
3646  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3647$as_echo "no" >&6; }
3648fi
3649
3650  if test "x$ac_ct_RANLIB" = x; then
3651    RANLIB=":"
3652  else
3653    case $cross_compiling:$ac_tool_warned in
3654yes:)
3655{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3656$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3657ac_tool_warned=yes ;;
3658esac
3659    RANLIB=$ac_ct_RANLIB
3660  fi
3661else
3662  RANLIB="$ac_cv_prog_RANLIB"
3663fi
3664
3665ac_ext=c
3666ac_cpp='$CPP $CPPFLAGS'
3667ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3668ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3669ac_compiler_gnu=$ac_cv_c_compiler_gnu
3670{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3671$as_echo_n "checking how to run the C preprocessor... " >&6; }
3672# On Suns, sometimes $CPP names a directory.
3673if test -n "$CPP" && test -d "$CPP"; then
3674  CPP=
3675fi
3676if test -z "$CPP"; then
3677  if ${ac_cv_prog_CPP+:} false; then :
3678  $as_echo_n "(cached) " >&6
3679else
3680      # Double quotes because CPP needs to be expanded
3681    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3682    do
3683      ac_preproc_ok=false
3684for ac_c_preproc_warn_flag in '' yes
3685do
3686  # Use a header file that comes with gcc, so configuring glibc
3687  # with a fresh cross-compiler works.
3688  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3689  # <limits.h> exists even on freestanding compilers.
3690  # On the NeXT, cc -E runs the code through the compiler's parser,
3691  # not just through cpp. "Syntax error" is here to catch this case.
3692  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3693/* end confdefs.h.  */
3694#ifdef __STDC__
3695# include <limits.h>
3696#else
3697# include <assert.h>
3698#endif
3699		     Syntax error
3700_ACEOF
3701if ac_fn_c_try_cpp "$LINENO"; then :
3702
3703else
3704  # Broken: fails on valid input.
3705continue
3706fi
3707rm -f conftest.err conftest.i conftest.$ac_ext
3708
3709  # OK, works on sane cases.  Now check whether nonexistent headers
3710  # can be detected and how.
3711  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3712/* end confdefs.h.  */
3713#include <ac_nonexistent.h>
3714_ACEOF
3715if ac_fn_c_try_cpp "$LINENO"; then :
3716  # Broken: success on invalid input.
3717continue
3718else
3719  # Passes both tests.
3720ac_preproc_ok=:
3721break
3722fi
3723rm -f conftest.err conftest.i conftest.$ac_ext
3724
3725done
3726# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3727rm -f conftest.i conftest.err conftest.$ac_ext
3728if $ac_preproc_ok; then :
3729  break
3730fi
3731
3732    done
3733    ac_cv_prog_CPP=$CPP
3734
3735fi
3736  CPP=$ac_cv_prog_CPP
3737else
3738  ac_cv_prog_CPP=$CPP
3739fi
3740{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3741$as_echo "$CPP" >&6; }
3742ac_preproc_ok=false
3743for ac_c_preproc_warn_flag in '' yes
3744do
3745  # Use a header file that comes with gcc, so configuring glibc
3746  # with a fresh cross-compiler works.
3747  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3748  # <limits.h> exists even on freestanding compilers.
3749  # On the NeXT, cc -E runs the code through the compiler's parser,
3750  # not just through cpp. "Syntax error" is here to catch this case.
3751  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3752/* end confdefs.h.  */
3753#ifdef __STDC__
3754# include <limits.h>
3755#else
3756# include <assert.h>
3757#endif
3758		     Syntax error
3759_ACEOF
3760if ac_fn_c_try_cpp "$LINENO"; then :
3761
3762else
3763  # Broken: fails on valid input.
3764continue
3765fi
3766rm -f conftest.err conftest.i conftest.$ac_ext
3767
3768  # OK, works on sane cases.  Now check whether nonexistent headers
3769  # can be detected and how.
3770  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3771/* end confdefs.h.  */
3772#include <ac_nonexistent.h>
3773_ACEOF
3774if ac_fn_c_try_cpp "$LINENO"; then :
3775  # Broken: success on invalid input.
3776continue
3777else
3778  # Passes both tests.
3779ac_preproc_ok=:
3780break
3781fi
3782rm -f conftest.err conftest.i conftest.$ac_ext
3783
3784done
3785# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3786rm -f conftest.i conftest.err conftest.$ac_ext
3787if $ac_preproc_ok; then :
3788
3789else
3790  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3791$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3792as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3793See \`config.log' for more details" "$LINENO" 5; }
3794fi
3795
3796ac_ext=c
3797ac_cpp='$CPP $CPPFLAGS'
3798ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3799ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3800ac_compiler_gnu=$ac_cv_c_compiler_gnu
3801
3802
3803{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3804$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3805if ${ac_cv_path_GREP+:} false; then :
3806  $as_echo_n "(cached) " >&6
3807else
3808  if test -z "$GREP"; then
3809  ac_path_GREP_found=false
3810  # Loop through the user's path and test for each of PROGNAME-LIST
3811  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3812for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3813do
3814  IFS=$as_save_IFS
3815  test -z "$as_dir" && as_dir=.
3816    for ac_prog in grep ggrep; do
3817    for ac_exec_ext in '' $ac_executable_extensions; do
3818      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3819      as_fn_executable_p "$ac_path_GREP" || continue
3820# Check for GNU ac_path_GREP and select it if it is found.
3821  # Check for GNU $ac_path_GREP
3822case `"$ac_path_GREP" --version 2>&1` in
3823*GNU*)
3824  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3825*)
3826  ac_count=0
3827  $as_echo_n 0123456789 >"conftest.in"
3828  while :
3829  do
3830    cat "conftest.in" "conftest.in" >"conftest.tmp"
3831    mv "conftest.tmp" "conftest.in"
3832    cp "conftest.in" "conftest.nl"
3833    $as_echo 'GREP' >> "conftest.nl"
3834    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3835    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3836    as_fn_arith $ac_count + 1 && ac_count=$as_val
3837    if test $ac_count -gt ${ac_path_GREP_max-0}; then
3838      # Best one so far, save it but keep looking for a better one
3839      ac_cv_path_GREP="$ac_path_GREP"
3840      ac_path_GREP_max=$ac_count
3841    fi
3842    # 10*(2^10) chars as input seems more than enough
3843    test $ac_count -gt 10 && break
3844  done
3845  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3846esac
3847
3848      $ac_path_GREP_found && break 3
3849    done
3850  done
3851  done
3852IFS=$as_save_IFS
3853  if test -z "$ac_cv_path_GREP"; then
3854    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3855  fi
3856else
3857  ac_cv_path_GREP=$GREP
3858fi
3859
3860fi
3861{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3862$as_echo "$ac_cv_path_GREP" >&6; }
3863 GREP="$ac_cv_path_GREP"
3864
3865
3866{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3867$as_echo_n "checking for egrep... " >&6; }
3868if ${ac_cv_path_EGREP+:} false; then :
3869  $as_echo_n "(cached) " >&6
3870else
3871  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3872   then ac_cv_path_EGREP="$GREP -E"
3873   else
3874     if test -z "$EGREP"; then
3875  ac_path_EGREP_found=false
3876  # Loop through the user's path and test for each of PROGNAME-LIST
3877  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3878for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3879do
3880  IFS=$as_save_IFS
3881  test -z "$as_dir" && as_dir=.
3882    for ac_prog in egrep; do
3883    for ac_exec_ext in '' $ac_executable_extensions; do
3884      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3885      as_fn_executable_p "$ac_path_EGREP" || continue
3886# Check for GNU ac_path_EGREP and select it if it is found.
3887  # Check for GNU $ac_path_EGREP
3888case `"$ac_path_EGREP" --version 2>&1` in
3889*GNU*)
3890  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3891*)
3892  ac_count=0
3893  $as_echo_n 0123456789 >"conftest.in"
3894  while :
3895  do
3896    cat "conftest.in" "conftest.in" >"conftest.tmp"
3897    mv "conftest.tmp" "conftest.in"
3898    cp "conftest.in" "conftest.nl"
3899    $as_echo 'EGREP' >> "conftest.nl"
3900    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3901    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3902    as_fn_arith $ac_count + 1 && ac_count=$as_val
3903    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3904      # Best one so far, save it but keep looking for a better one
3905      ac_cv_path_EGREP="$ac_path_EGREP"
3906      ac_path_EGREP_max=$ac_count
3907    fi
3908    # 10*(2^10) chars as input seems more than enough
3909    test $ac_count -gt 10 && break
3910  done
3911  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3912esac
3913
3914      $ac_path_EGREP_found && break 3
3915    done
3916  done
3917  done
3918IFS=$as_save_IFS
3919  if test -z "$ac_cv_path_EGREP"; then
3920    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3921  fi
3922else
3923  ac_cv_path_EGREP=$EGREP
3924fi
3925
3926   fi
3927fi
3928{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3929$as_echo "$ac_cv_path_EGREP" >&6; }
3930 EGREP="$ac_cv_path_EGREP"
3931
3932
3933{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3934$as_echo_n "checking for ANSI C header files... " >&6; }
3935if ${ac_cv_header_stdc+:} false; then :
3936  $as_echo_n "(cached) " >&6
3937else
3938  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3939/* end confdefs.h.  */
3940#include <stdlib.h>
3941#include <stdarg.h>
3942#include <string.h>
3943#include <float.h>
3944
3945int
3946main ()
3947{
3948
3949  ;
3950  return 0;
3951}
3952_ACEOF
3953if ac_fn_c_try_compile "$LINENO"; then :
3954  ac_cv_header_stdc=yes
3955else
3956  ac_cv_header_stdc=no
3957fi
3958rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3959
3960if test $ac_cv_header_stdc = yes; then
3961  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3962  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3963/* end confdefs.h.  */
3964#include <string.h>
3965
3966_ACEOF
3967if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3968  $EGREP "memchr" >/dev/null 2>&1; then :
3969
3970else
3971  ac_cv_header_stdc=no
3972fi
3973rm -f conftest*
3974
3975fi
3976
3977if test $ac_cv_header_stdc = yes; then
3978  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3979  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3980/* end confdefs.h.  */
3981#include <stdlib.h>
3982
3983_ACEOF
3984if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3985  $EGREP "free" >/dev/null 2>&1; then :
3986
3987else
3988  ac_cv_header_stdc=no
3989fi
3990rm -f conftest*
3991
3992fi
3993
3994if test $ac_cv_header_stdc = yes; then
3995  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3996  if test "$cross_compiling" = yes; then :
3997  :
3998else
3999  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4000/* end confdefs.h.  */
4001#include <ctype.h>
4002#include <stdlib.h>
4003#if ((' ' & 0x0FF) == 0x020)
4004# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4005# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4006#else
4007# define ISLOWER(c) \
4008		   (('a' <= (c) && (c) <= 'i') \
4009		     || ('j' <= (c) && (c) <= 'r') \
4010		     || ('s' <= (c) && (c) <= 'z'))
4011# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4012#endif
4013
4014#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4015int
4016main ()
4017{
4018  int i;
4019  for (i = 0; i < 256; i++)
4020    if (XOR (islower (i), ISLOWER (i))
4021	|| toupper (i) != TOUPPER (i))
4022      return 2;
4023  return 0;
4024}
4025_ACEOF
4026if ac_fn_c_try_run "$LINENO"; then :
4027
4028else
4029  ac_cv_header_stdc=no
4030fi
4031rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4032  conftest.$ac_objext conftest.beam conftest.$ac_ext
4033fi
4034
4035fi
4036fi
4037{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4038$as_echo "$ac_cv_header_stdc" >&6; }
4039if test $ac_cv_header_stdc = yes; then
4040
4041$as_echo "#define STDC_HEADERS 1" >>confdefs.h
4042
4043fi
4044
4045# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4046for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4047		  inttypes.h stdint.h unistd.h
4048do :
4049  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4050ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4051"
4052if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4053  cat >>confdefs.h <<_ACEOF
4054#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4055_ACEOF
4056
4057fi
4058
4059done
4060
4061
4062
4063
4064    # Step 0.a: Enable 64 bit support?
4065
4066    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if 64bit support is requested" >&5
4067$as_echo_n "checking if 64bit support is requested... " >&6; }
4068    # Check whether --enable-64bit was given.
4069if test "${enable_64bit+set}" = set; then :
4070  enableval=$enable_64bit; do64bit=$enableval
4071else
4072  do64bit=no
4073fi
4074
4075    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $do64bit" >&5
4076$as_echo "$do64bit" >&6; }
4077
4078    # Step 0.b: Enable Solaris 64 bit VIS support?
4079
4080    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if 64bit Sparc VIS support is requested" >&5
4081$as_echo_n "checking if 64bit Sparc VIS support is requested... " >&6; }
4082    # Check whether --enable-64bit-vis was given.
4083if test "${enable_64bit_vis+set}" = set; then :
4084  enableval=$enable_64bit_vis; do64bitVIS=$enableval
4085else
4086  do64bitVIS=no
4087fi
4088
4089    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $do64bitVIS" >&5
4090$as_echo "$do64bitVIS" >&6; }
4091    # Force 64bit on with VIS
4092    if test "$do64bitVIS" = "yes"; then :
4093  do64bit=yes
4094fi
4095
4096    # Step 0.c: Check if visibility support is available. Do this here so
4097    # that platform specific alternatives can be used below if this fails.
4098
4099    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports visibility \"hidden\"" >&5
4100$as_echo_n "checking if compiler supports visibility \"hidden\"... " >&6; }
4101if ${tcl_cv_cc_visibility_hidden+:} false; then :
4102  $as_echo_n "(cached) " >&6
4103else
4104
4105	hold_cflags=$CFLAGS; CFLAGS="$CFLAGS -Werror"
4106	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4107/* end confdefs.h.  */
4108
4109	    extern __attribute__((__visibility__("hidden"))) void f(void);
4110	    void f(void) {}
4111int
4112main ()
4113{
4114f();
4115  ;
4116  return 0;
4117}
4118_ACEOF
4119if ac_fn_c_try_link "$LINENO"; then :
4120  tcl_cv_cc_visibility_hidden=yes
4121else
4122  tcl_cv_cc_visibility_hidden=no
4123fi
4124rm -f core conftest.err conftest.$ac_objext \
4125    conftest$ac_exeext conftest.$ac_ext
4126	CFLAGS=$hold_cflags
4127fi
4128{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_cc_visibility_hidden" >&5
4129$as_echo "$tcl_cv_cc_visibility_hidden" >&6; }
4130    if test $tcl_cv_cc_visibility_hidden = yes; then :
4131
4132
4133$as_echo "#define MODULE_SCOPE extern __attribute__((__visibility__(\"hidden\")))" >>confdefs.h
4134
4135
4136$as_echo "#define HAVE_HIDDEN 1" >>confdefs.h
4137
4138
4139fi
4140
4141    # Step 0.d: Disable -rpath support?
4142
4143    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if rpath support is requested" >&5
4144$as_echo_n "checking if rpath support is requested... " >&6; }
4145    # Check whether --enable-rpath was given.
4146if test "${enable_rpath+set}" = set; then :
4147  enableval=$enable_rpath; doRpath=$enableval
4148else
4149  doRpath=yes
4150fi
4151
4152    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $doRpath" >&5
4153$as_echo "$doRpath" >&6; }
4154
4155    # Step 1: set the variable "system" to hold the name and version number
4156    # for the system.
4157
4158
4159    { $as_echo "$as_me:${as_lineno-$LINENO}: checking system version" >&5
4160$as_echo_n "checking system version... " >&6; }
4161if ${tcl_cv_sys_version+:} false; then :
4162  $as_echo_n "(cached) " >&6
4163else
4164
4165	if test "${TEA_PLATFORM}" = "windows" ; then
4166	    tcl_cv_sys_version=windows
4167	else
4168	    tcl_cv_sys_version=`uname -s`-`uname -r`
4169	    if test "$?" -ne 0 ; then
4170		{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: can't find uname command" >&5
4171$as_echo "$as_me: WARNING: can't find uname command" >&2;}
4172		tcl_cv_sys_version=unknown
4173	    else
4174		if test "`uname -s`" = "AIX" ; then
4175		    tcl_cv_sys_version=AIX-`uname -v`.`uname -r`
4176		fi
4177		if test "`uname -s`" = "NetBSD" -a -f /etc/debian_version ; then
4178		    tcl_cv_sys_version=NetBSD-Debian
4179		fi
4180	    fi
4181	fi
4182
4183fi
4184{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_sys_version" >&5
4185$as_echo "$tcl_cv_sys_version" >&6; }
4186    system=$tcl_cv_sys_version
4187
4188
4189    # Step 2: check for existence of -ldl library.  This is needed because
4190    # Linux can use either -ldl or -ldld for dynamic loading.
4191
4192    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
4193$as_echo_n "checking for dlopen in -ldl... " >&6; }
4194if ${ac_cv_lib_dl_dlopen+:} false; then :
4195  $as_echo_n "(cached) " >&6
4196else
4197  ac_check_lib_save_LIBS=$LIBS
4198LIBS="-ldl  $LIBS"
4199cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4200/* end confdefs.h.  */
4201
4202/* Override any GCC internal prototype to avoid an error.
4203   Use char because int might match the return type of a GCC
4204   builtin and then its argument prototype would still apply.  */
4205#ifdef __cplusplus
4206extern "C"
4207#endif
4208char dlopen ();
4209int
4210main ()
4211{
4212return dlopen ();
4213  ;
4214  return 0;
4215}
4216_ACEOF
4217if ac_fn_c_try_link "$LINENO"; then :
4218  ac_cv_lib_dl_dlopen=yes
4219else
4220  ac_cv_lib_dl_dlopen=no
4221fi
4222rm -f core conftest.err conftest.$ac_objext \
4223    conftest$ac_exeext conftest.$ac_ext
4224LIBS=$ac_check_lib_save_LIBS
4225fi
4226{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
4227$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
4228if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
4229  have_dl=yes
4230else
4231  have_dl=no
4232fi
4233
4234
4235    # Require ranlib early so we can override it in special cases below.
4236
4237
4238
4239    # Step 3: set configuration options based on system name and version.
4240
4241    do64bit_ok=no
4242    # default to '{$LIBS}' and set to "" on per-platform necessary basis
4243    SHLIB_LD_LIBS='${LIBS}'
4244    LDFLAGS_ORIG="$LDFLAGS"
4245    # When ld needs options to work in 64-bit mode, put them in
4246    # LDFLAGS_ARCH so they eventually end up in LDFLAGS even if [load]
4247    # is disabled by the user. [Bug 1016796]
4248    LDFLAGS_ARCH=""
4249    UNSHARED_LIB_SUFFIX=""
4250    TCL_TRIM_DOTS='`echo ${VERSION} | tr -d .`'
4251    ECHO_VERSION='`echo ${VERSION}`'
4252    TCL_LIB_VERSIONS_OK=ok
4253    CFLAGS_DEBUG=-g
4254    if test "$GCC" = yes; then :
4255
4256	CFLAGS_OPTIMIZE=-O2
4257	CFLAGS_WARNING="-Wall -Wextra -Wshadow -Wundef -Wwrite-strings -Wpointer-arith"
4258	case "${CC}" in
4259	    *++|*++-*)
4260		;;
4261	    *)
4262		CFLAGS_WARNING="${CFLAGS_WARNING} -Wc++-compat -fextended-identifiers"
4263		;;
4264	esac
4265
4266
4267else
4268
4269	CFLAGS_OPTIMIZE=-O
4270	CFLAGS_WARNING=""
4271
4272fi
4273    if test -n "$ac_tool_prefix"; then
4274  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4275set dummy ${ac_tool_prefix}ar; ac_word=$2
4276{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4277$as_echo_n "checking for $ac_word... " >&6; }
4278if ${ac_cv_prog_AR+:} false; then :
4279  $as_echo_n "(cached) " >&6
4280else
4281  if test -n "$AR"; then
4282  ac_cv_prog_AR="$AR" # Let the user override the test.
4283else
4284as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4285for as_dir in $PATH
4286do
4287  IFS=$as_save_IFS
4288  test -z "$as_dir" && as_dir=.
4289    for ac_exec_ext in '' $ac_executable_extensions; do
4290  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4291    ac_cv_prog_AR="${ac_tool_prefix}ar"
4292    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4293    break 2
4294  fi
4295done
4296  done
4297IFS=$as_save_IFS
4298
4299fi
4300fi
4301AR=$ac_cv_prog_AR
4302if test -n "$AR"; then
4303  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4304$as_echo "$AR" >&6; }
4305else
4306  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4307$as_echo "no" >&6; }
4308fi
4309
4310
4311fi
4312if test -z "$ac_cv_prog_AR"; then
4313  ac_ct_AR=$AR
4314  # Extract the first word of "ar", so it can be a program name with args.
4315set dummy ar; ac_word=$2
4316{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4317$as_echo_n "checking for $ac_word... " >&6; }
4318if ${ac_cv_prog_ac_ct_AR+:} false; then :
4319  $as_echo_n "(cached) " >&6
4320else
4321  if test -n "$ac_ct_AR"; then
4322  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4323else
4324as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4325for as_dir in $PATH
4326do
4327  IFS=$as_save_IFS
4328  test -z "$as_dir" && as_dir=.
4329    for ac_exec_ext in '' $ac_executable_extensions; do
4330  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4331    ac_cv_prog_ac_ct_AR="ar"
4332    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4333    break 2
4334  fi
4335done
4336  done
4337IFS=$as_save_IFS
4338
4339fi
4340fi
4341ac_ct_AR=$ac_cv_prog_ac_ct_AR
4342if test -n "$ac_ct_AR"; then
4343  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4344$as_echo "$ac_ct_AR" >&6; }
4345else
4346  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4347$as_echo "no" >&6; }
4348fi
4349
4350  if test "x$ac_ct_AR" = x; then
4351    AR=""
4352  else
4353    case $cross_compiling:$ac_tool_warned in
4354yes:)
4355{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4356$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4357ac_tool_warned=yes ;;
4358esac
4359    AR=$ac_ct_AR
4360  fi
4361else
4362  AR="$ac_cv_prog_AR"
4363fi
4364
4365    STLIB_LD='${AR} cr'
4366    LD_LIBRARY_PATH_VAR="LD_LIBRARY_PATH"
4367    PLAT_OBJS=""
4368    PLAT_SRCS=""
4369    LDAIX_SRC=""
4370    if test "x${SHLIB_VERSION}" = x; then :
4371  SHLIB_VERSION="1.0"
4372fi
4373    case $system in
4374	AIX-*)
4375	    if test "$GCC" != "yes"; then :
4376
4377		# AIX requires the _r compiler when gcc isn't being used
4378		case "${CC}" in
4379		    *_r|*_r\ *)
4380			# ok ...
4381			;;
4382		    *)
4383			# Make sure only first arg gets _r
4384		    	CC=`echo "$CC" | sed -e 's/^\([^ ]*\)/\1_r/'`
4385			;;
4386		esac
4387		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Using $CC for compiling with threads" >&5
4388$as_echo "Using $CC for compiling with threads" >&6; }
4389
4390fi
4391	    LIBS="$LIBS -lc"
4392	    SHLIB_CFLAGS=""
4393	    SHLIB_SUFFIX=".so"
4394
4395	    DL_OBJS="tclLoadDl.o"
4396	    LD_LIBRARY_PATH_VAR="LIBPATH"
4397
4398	    # ldAix No longer needed with use of -bexpall/-brtl
4399	    # but some extensions may still reference it
4400	    LDAIX_SRC='$(UNIX_DIR)/ldAix'
4401
4402	    # Check to enable 64-bit flags for compiler/linker
4403	    if test "$do64bit" = yes; then :
4404
4405		if test "$GCC" = yes; then :
4406
4407		    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 64bit mode not supported with GCC on $system" >&5
4408$as_echo "$as_me: WARNING: 64bit mode not supported with GCC on $system" >&2;}
4409
4410else
4411
4412		    do64bit_ok=yes
4413		    CFLAGS="$CFLAGS -q64"
4414		    LDFLAGS_ARCH="-q64"
4415		    RANLIB="${RANLIB} -X64"
4416		    AR="${AR} -X64"
4417		    SHLIB_LD_FLAGS="-b64"
4418
4419fi
4420
4421fi
4422
4423	    if test "`uname -m`" = ia64; then :
4424
4425		# AIX-5 uses ELF style dynamic libraries on IA-64, but not PPC
4426		SHLIB_LD="/usr/ccs/bin/ld -G -z text"
4427		# AIX-5 has dl* in libc.so
4428		DL_LIBS=""
4429		if test "$GCC" = yes; then :
4430
4431		    CC_SEARCH_FLAGS='-Wl,-R,${LIB_RUNTIME_DIR}'
4432
4433else
4434
4435		    CC_SEARCH_FLAGS='-R${LIB_RUNTIME_DIR}'
4436
4437fi
4438		LD_SEARCH_FLAGS='-R ${LIB_RUNTIME_DIR}'
4439
4440else
4441
4442		if test "$GCC" = yes; then :
4443
4444		    SHLIB_LD='${CC} -shared -Wl,-bexpall'
4445
4446else
4447
4448		    SHLIB_LD="/bin/ld -bhalt:4 -bM:SRE -bexpall -H512 -T512 -bnoentry"
4449		    LDFLAGS="$LDFLAGS -brtl"
4450
4451fi
4452		SHLIB_LD="${SHLIB_LD} ${SHLIB_LD_FLAGS}"
4453		DL_LIBS="-ldl"
4454		CC_SEARCH_FLAGS='-L${LIB_RUNTIME_DIR}'
4455		LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
4456
4457fi
4458	    ;;
4459	BeOS*)
4460	    SHLIB_CFLAGS="-fPIC"
4461	    SHLIB_LD='${CC} -nostart'
4462	    SHLIB_SUFFIX=".so"
4463	    DL_OBJS="tclLoadDl.o"
4464	    DL_LIBS="-ldl"
4465
4466	    #-----------------------------------------------------------
4467	    # Check for inet_ntoa in -lbind, for BeOS (which also needs
4468	    # -lsocket, even if the network functions are in -lnet which
4469	    # is always linked to, for compatibility.
4470	    #-----------------------------------------------------------
4471	    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_ntoa in -lbind" >&5
4472$as_echo_n "checking for inet_ntoa in -lbind... " >&6; }
4473if ${ac_cv_lib_bind_inet_ntoa+:} false; then :
4474  $as_echo_n "(cached) " >&6
4475else
4476  ac_check_lib_save_LIBS=$LIBS
4477LIBS="-lbind  $LIBS"
4478cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4479/* end confdefs.h.  */
4480
4481/* Override any GCC internal prototype to avoid an error.
4482   Use char because int might match the return type of a GCC
4483   builtin and then its argument prototype would still apply.  */
4484#ifdef __cplusplus
4485extern "C"
4486#endif
4487char inet_ntoa ();
4488int
4489main ()
4490{
4491return inet_ntoa ();
4492  ;
4493  return 0;
4494}
4495_ACEOF
4496if ac_fn_c_try_link "$LINENO"; then :
4497  ac_cv_lib_bind_inet_ntoa=yes
4498else
4499  ac_cv_lib_bind_inet_ntoa=no
4500fi
4501rm -f core conftest.err conftest.$ac_objext \
4502    conftest$ac_exeext conftest.$ac_ext
4503LIBS=$ac_check_lib_save_LIBS
4504fi
4505{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bind_inet_ntoa" >&5
4506$as_echo "$ac_cv_lib_bind_inet_ntoa" >&6; }
4507if test "x$ac_cv_lib_bind_inet_ntoa" = xyes; then :
4508  LIBS="$LIBS -lbind -lsocket"
4509fi
4510
4511	    ;;
4512	BSD/OS-2.1*|BSD/OS-3*)
4513	    SHLIB_CFLAGS=""
4514	    SHLIB_LD="shlicc -r"
4515	    SHLIB_SUFFIX=".so"
4516	    DL_OBJS="tclLoadDl.o"
4517	    DL_LIBS="-ldl"
4518	    CC_SEARCH_FLAGS=""
4519	    LD_SEARCH_FLAGS=""
4520	    ;;
4521	BSD/OS-4.*)
4522	    SHLIB_CFLAGS="-export-dynamic -fPIC"
4523	    SHLIB_LD='${CC} -shared'
4524	    SHLIB_SUFFIX=".so"
4525	    DL_OBJS="tclLoadDl.o"
4526	    DL_LIBS="-ldl"
4527	    LDFLAGS="$LDFLAGS -export-dynamic"
4528	    CC_SEARCH_FLAGS=""
4529	    LD_SEARCH_FLAGS=""
4530	    ;;
4531	CYGWIN_*|MINGW32_*|MSYS_*)
4532	    SHLIB_CFLAGS="-fno-common"
4533	    SHLIB_LD='${CC} -shared'
4534	    SHLIB_SUFFIX=".dll"
4535	    DL_OBJS="tclLoadDl.o"
4536	    PLAT_OBJS='${CYGWIN_OBJS}'
4537	    PLAT_SRCS='${CYGWIN_SRCS}'
4538	    DL_LIBS="-ldl"
4539	    CC_SEARCH_FLAGS=""
4540	    LD_SEARCH_FLAGS=""
4541	    TCL_NEEDS_EXP_FILE=1
4542	    TCL_EXPORT_FILE_SUFFIX='${VERSION}.dll.a'
4543	    SHLIB_LD_LIBS="${SHLIB_LD_LIBS} -Wl,--out-implib,\$@.a"
4544	    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Cygwin version of gcc" >&5
4545$as_echo_n "checking for Cygwin version of gcc... " >&6; }
4546if ${ac_cv_cygwin+:} false; then :
4547  $as_echo_n "(cached) " >&6
4548else
4549  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4550/* end confdefs.h.  */
4551
4552		#ifdef __CYGWIN__
4553		    #error cygwin
4554		#endif
4555
4556int
4557main ()
4558{
4559
4560  ;
4561  return 0;
4562}
4563_ACEOF
4564if ac_fn_c_try_compile "$LINENO"; then :
4565  ac_cv_cygwin=no
4566else
4567  ac_cv_cygwin=yes
4568fi
4569rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4570
4571fi
4572{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cygwin" >&5
4573$as_echo "$ac_cv_cygwin" >&6; }
4574	    if test "$ac_cv_cygwin" = "no"; then
4575		as_fn_error $? "${CC} is not a cygwin compiler." "$LINENO" 5
4576	    fi
4577	    do64bit_ok=yes
4578	    if test "x${SHARED_BUILD}" = "x1"; then
4579		echo "running cd ../win; ${CONFIG_SHELL-/bin/sh} ./configure $ac_configure_args"
4580		# The eval makes quoting arguments work.
4581		if cd ../win; eval ${CONFIG_SHELL-/bin/sh} ./configure $ac_configure_args; cd ../unix
4582		then :
4583		else
4584		    { echo "configure: error: configure failed for ../win" 1>&2; exit 1; }
4585		fi
4586	    fi
4587	    ;;
4588	dgux*)
4589	    SHLIB_CFLAGS="-K PIC"
4590	    SHLIB_LD='${CC} -G'
4591	    SHLIB_LD_LIBS=""
4592	    SHLIB_SUFFIX=".so"
4593	    DL_OBJS="tclLoadDl.o"
4594	    DL_LIBS="-ldl"
4595	    CC_SEARCH_FLAGS=""
4596	    LD_SEARCH_FLAGS=""
4597	    ;;
4598	Haiku*)
4599	    LDFLAGS="$LDFLAGS -Wl,--export-dynamic"
4600	    SHLIB_CFLAGS="-fPIC"
4601	    SHLIB_SUFFIX=".so"
4602	    SHLIB_LD='${CC} ${CFLAGS} ${LDFLAGS} -shared'
4603	    DL_OBJS="tclLoadDl.o"
4604	    DL_LIBS="-lroot"
4605	    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_ntoa in -lnetwork" >&5
4606$as_echo_n "checking for inet_ntoa in -lnetwork... " >&6; }
4607if ${ac_cv_lib_network_inet_ntoa+:} false; then :
4608  $as_echo_n "(cached) " >&6
4609else
4610  ac_check_lib_save_LIBS=$LIBS
4611LIBS="-lnetwork  $LIBS"
4612cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4613/* end confdefs.h.  */
4614
4615/* Override any GCC internal prototype to avoid an error.
4616   Use char because int might match the return type of a GCC
4617   builtin and then its argument prototype would still apply.  */
4618#ifdef __cplusplus
4619extern "C"
4620#endif
4621char inet_ntoa ();
4622int
4623main ()
4624{
4625return inet_ntoa ();
4626  ;
4627  return 0;
4628}
4629_ACEOF
4630if ac_fn_c_try_link "$LINENO"; then :
4631  ac_cv_lib_network_inet_ntoa=yes
4632else
4633  ac_cv_lib_network_inet_ntoa=no
4634fi
4635rm -f core conftest.err conftest.$ac_objext \
4636    conftest$ac_exeext conftest.$ac_ext
4637LIBS=$ac_check_lib_save_LIBS
4638fi
4639{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_network_inet_ntoa" >&5
4640$as_echo "$ac_cv_lib_network_inet_ntoa" >&6; }
4641if test "x$ac_cv_lib_network_inet_ntoa" = xyes; then :
4642  LIBS="$LIBS -lnetwork"
4643fi
4644
4645	    ;;
4646	HP-UX-*.11.*)
4647	    # Use updated header definitions where possible
4648
4649$as_echo "#define _XOPEN_SOURCE_EXTENDED 1" >>confdefs.h
4650
4651
4652$as_echo "#define _XOPEN_SOURCE 1" >>confdefs.h
4653
4654	    LIBS="$LIBS -lxnet"               # Use the XOPEN network library
4655
4656	    if test "`uname -m`" = ia64; then :
4657
4658		SHLIB_SUFFIX=".so"
4659
4660else
4661
4662		SHLIB_SUFFIX=".sl"
4663
4664fi
4665	    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
4666$as_echo_n "checking for shl_load in -ldld... " >&6; }
4667if ${ac_cv_lib_dld_shl_load+:} false; then :
4668  $as_echo_n "(cached) " >&6
4669else
4670  ac_check_lib_save_LIBS=$LIBS
4671LIBS="-ldld  $LIBS"
4672cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4673/* end confdefs.h.  */
4674
4675/* Override any GCC internal prototype to avoid an error.
4676   Use char because int might match the return type of a GCC
4677   builtin and then its argument prototype would still apply.  */
4678#ifdef __cplusplus
4679extern "C"
4680#endif
4681char shl_load ();
4682int
4683main ()
4684{
4685return shl_load ();
4686  ;
4687  return 0;
4688}
4689_ACEOF
4690if ac_fn_c_try_link "$LINENO"; then :
4691  ac_cv_lib_dld_shl_load=yes
4692else
4693  ac_cv_lib_dld_shl_load=no
4694fi
4695rm -f core conftest.err conftest.$ac_objext \
4696    conftest$ac_exeext conftest.$ac_ext
4697LIBS=$ac_check_lib_save_LIBS
4698fi
4699{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
4700$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
4701if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
4702  tcl_ok=yes
4703else
4704  tcl_ok=no
4705fi
4706
4707	    if test "$tcl_ok" = yes; then :
4708
4709		SHLIB_CFLAGS="+z"
4710		SHLIB_LD="ld -b"
4711		DL_OBJS="tclLoadShl.o"
4712		DL_LIBS="-ldld"
4713		LDFLAGS="$LDFLAGS -Wl,-E"
4714		CC_SEARCH_FLAGS='-Wl,+s,+b,${LIB_RUNTIME_DIR}:.'
4715		LD_SEARCH_FLAGS='+s +b ${LIB_RUNTIME_DIR}:.'
4716		LD_LIBRARY_PATH_VAR="SHLIB_PATH"
4717
4718fi
4719	    if test "$GCC" = yes; then :
4720
4721		SHLIB_LD='${CC} -shared'
4722		LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
4723
4724else
4725
4726		CFLAGS="$CFLAGS -z"
4727
4728fi
4729
4730	    # Users may want PA-RISC 1.1/2.0 portable code - needs HP cc
4731	    #CFLAGS="$CFLAGS +DAportable"
4732
4733	    # Check to enable 64-bit flags for compiler/linker
4734	    if test "$do64bit" = "yes"; then :
4735
4736		if test "$GCC" = yes; then :
4737
4738		    case `${CC} -dumpmachine` in
4739			hppa64*)
4740			    # 64-bit gcc in use.  Fix flags for GNU ld.
4741			    do64bit_ok=yes
4742			    SHLIB_LD='${CC} -shared'
4743			    if test $doRpath = yes; then :
4744
4745				CC_SEARCH_FLAGS='"-Wl,-rpath,${LIB_RUNTIME_DIR}"'
4746fi
4747			    LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
4748			    ;;
4749			*)
4750			    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 64bit mode not supported with GCC on $system" >&5
4751$as_echo "$as_me: WARNING: 64bit mode not supported with GCC on $system" >&2;}
4752			    ;;
4753		    esac
4754
4755else
4756
4757		    do64bit_ok=yes
4758		    CFLAGS="$CFLAGS +DD64"
4759		    LDFLAGS_ARCH="+DD64"
4760
4761fi
4762
4763fi ;;
4764	HP-UX-*.08.*|HP-UX-*.09.*|HP-UX-*.10.*)
4765	    SHLIB_SUFFIX=".sl"
4766	    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
4767$as_echo_n "checking for shl_load in -ldld... " >&6; }
4768if ${ac_cv_lib_dld_shl_load+:} false; then :
4769  $as_echo_n "(cached) " >&6
4770else
4771  ac_check_lib_save_LIBS=$LIBS
4772LIBS="-ldld  $LIBS"
4773cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4774/* end confdefs.h.  */
4775
4776/* Override any GCC internal prototype to avoid an error.
4777   Use char because int might match the return type of a GCC
4778   builtin and then its argument prototype would still apply.  */
4779#ifdef __cplusplus
4780extern "C"
4781#endif
4782char shl_load ();
4783int
4784main ()
4785{
4786return shl_load ();
4787  ;
4788  return 0;
4789}
4790_ACEOF
4791if ac_fn_c_try_link "$LINENO"; then :
4792  ac_cv_lib_dld_shl_load=yes
4793else
4794  ac_cv_lib_dld_shl_load=no
4795fi
4796rm -f core conftest.err conftest.$ac_objext \
4797    conftest$ac_exeext conftest.$ac_ext
4798LIBS=$ac_check_lib_save_LIBS
4799fi
4800{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
4801$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
4802if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
4803  tcl_ok=yes
4804else
4805  tcl_ok=no
4806fi
4807
4808	    if test "$tcl_ok" = yes; then :
4809
4810		SHLIB_CFLAGS="+z"
4811		SHLIB_LD="ld -b"
4812		SHLIB_LD_LIBS=""
4813		DL_OBJS="tclLoadShl.o"
4814		DL_LIBS="-ldld"
4815		LDFLAGS="$LDFLAGS -Wl,-E"
4816		CC_SEARCH_FLAGS='-Wl,+s,+b,${LIB_RUNTIME_DIR}:.'
4817		LD_SEARCH_FLAGS='+s +b ${LIB_RUNTIME_DIR}:.'
4818		LD_LIBRARY_PATH_VAR="SHLIB_PATH"
4819
4820fi ;;
4821	IRIX-5.*)
4822	    SHLIB_CFLAGS=""
4823	    SHLIB_LD="ld -shared -rdata_shared"
4824	    SHLIB_SUFFIX=".so"
4825	    DL_OBJS="tclLoadDl.o"
4826	    DL_LIBS=""
4827	    case " $LIBOBJS " in
4828  *" mkstemp.$ac_objext "* ) ;;
4829  *) LIBOBJS="$LIBOBJS mkstemp.$ac_objext"
4830 ;;
4831esac
4832
4833	    if test $doRpath = yes; then :
4834
4835		CC_SEARCH_FLAGS='"-Wl,-rpath,${LIB_RUNTIME_DIR}"'
4836		LD_SEARCH_FLAGS='-rpath ${LIB_RUNTIME_DIR}'
4837fi
4838	    ;;
4839	IRIX-6.*)
4840	    SHLIB_CFLAGS=""
4841	    SHLIB_LD="ld -n32 -shared -rdata_shared"
4842	    SHLIB_SUFFIX=".so"
4843	    DL_OBJS="tclLoadDl.o"
4844	    DL_LIBS=""
4845	    case " $LIBOBJS " in
4846  *" mkstemp.$ac_objext "* ) ;;
4847  *) LIBOBJS="$LIBOBJS mkstemp.$ac_objext"
4848 ;;
4849esac
4850
4851	    if test $doRpath = yes; then :
4852
4853		CC_SEARCH_FLAGS='"-Wl,-rpath,${LIB_RUNTIME_DIR}"'
4854		LD_SEARCH_FLAGS='-rpath ${LIB_RUNTIME_DIR}'
4855fi
4856	    if test "$GCC" = yes; then :
4857
4858		CFLAGS="$CFLAGS -mabi=n32"
4859		LDFLAGS="$LDFLAGS -mabi=n32"
4860
4861else
4862
4863		case $system in
4864		    IRIX-6.3)
4865			# Use to build 6.2 compatible binaries on 6.3.
4866			CFLAGS="$CFLAGS -n32 -D_OLD_TERMIOS"
4867			;;
4868		    *)
4869			CFLAGS="$CFLAGS -n32"
4870			;;
4871		esac
4872		LDFLAGS="$LDFLAGS -n32"
4873
4874fi
4875	    ;;
4876	IRIX64-6.*)
4877	    SHLIB_CFLAGS=""
4878	    SHLIB_LD="ld -n32 -shared -rdata_shared"
4879	    SHLIB_SUFFIX=".so"
4880	    DL_OBJS="tclLoadDl.o"
4881	    DL_LIBS=""
4882	    case " $LIBOBJS " in
4883  *" mkstemp.$ac_objext "* ) ;;
4884  *) LIBOBJS="$LIBOBJS mkstemp.$ac_objext"
4885 ;;
4886esac
4887
4888	    if test $doRpath = yes; then :
4889
4890		CC_SEARCH_FLAGS='"-Wl,-rpath,${LIB_RUNTIME_DIR}"'
4891		LD_SEARCH_FLAGS='-rpath ${LIB_RUNTIME_DIR}'
4892fi
4893
4894	    # Check to enable 64-bit flags for compiler/linker
4895
4896	    if test "$do64bit" = yes; then :
4897
4898	        if test "$GCC" = yes; then :
4899
4900	            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 64bit mode not supported by gcc" >&5
4901$as_echo "$as_me: WARNING: 64bit mode not supported by gcc" >&2;}
4902
4903else
4904
4905	            do64bit_ok=yes
4906	            SHLIB_LD="ld -64 -shared -rdata_shared"
4907	            CFLAGS="$CFLAGS -64"
4908	            LDFLAGS_ARCH="-64"
4909
4910fi
4911
4912fi
4913	    ;;
4914	Linux*|GNU*|NetBSD-Debian)
4915	    SHLIB_CFLAGS="-fPIC -fno-common"
4916	    SHLIB_SUFFIX=".so"
4917
4918	    CFLAGS_OPTIMIZE="-O2"
4919	    # egcs-2.91.66 on Redhat Linux 6.0 generates lots of warnings
4920	    # when you inline the string and math operations.  Turn this off to
4921	    # get rid of the warnings.
4922	    #CFLAGS_OPTIMIZE="${CFLAGS_OPTIMIZE} -D__NO_STRING_INLINES -D__NO_MATH_INLINES"
4923
4924	    SHLIB_LD='${CC} ${CFLAGS} ${LDFLAGS} -shared'
4925	    DL_OBJS="tclLoadDl.o"
4926	    DL_LIBS="-ldl"
4927	    LDFLAGS="$LDFLAGS -Wl,--export-dynamic"
4928	    if test $doRpath = yes; then :
4929
4930		CC_SEARCH_FLAGS='"-Wl,-rpath,${LIB_RUNTIME_DIR}"'
4931fi
4932	    LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
4933	    if test "`uname -m`" = "alpha"; then :
4934  CFLAGS="$CFLAGS -mieee"
4935fi
4936	    if test $do64bit = yes; then :
4937
4938		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler accepts -m64 flag" >&5
4939$as_echo_n "checking if compiler accepts -m64 flag... " >&6; }
4940if ${tcl_cv_cc_m64+:} false; then :
4941  $as_echo_n "(cached) " >&6
4942else
4943
4944		    hold_cflags=$CFLAGS
4945		    CFLAGS="$CFLAGS -m64"
4946		    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4947/* end confdefs.h.  */
4948
4949int
4950main ()
4951{
4952
4953  ;
4954  return 0;
4955}
4956_ACEOF
4957if ac_fn_c_try_link "$LINENO"; then :
4958  tcl_cv_cc_m64=yes
4959else
4960  tcl_cv_cc_m64=no
4961fi
4962rm -f core conftest.err conftest.$ac_objext \
4963    conftest$ac_exeext conftest.$ac_ext
4964		    CFLAGS=$hold_cflags
4965fi
4966{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_cc_m64" >&5
4967$as_echo "$tcl_cv_cc_m64" >&6; }
4968		if test $tcl_cv_cc_m64 = yes; then :
4969
4970		    CFLAGS="$CFLAGS -m64"
4971		    do64bit_ok=yes
4972
4973fi
4974
4975fi
4976
4977	    # The combo of gcc + glibc has a bug related to inlining of
4978	    # functions like strtol()/strtoul(). The -fno-builtin flag should address
4979	    # this problem but it does not work. The -fno-inline flag is kind
4980	    # of overkill but it works. Disable inlining only when one of the
4981	    # files in compat/*.c is being linked in.
4982
4983	    if test x"${USE_COMPAT}" != x; then :
4984  CFLAGS="$CFLAGS -fno-inline"
4985fi
4986	    ;;
4987	Lynx*)
4988	    SHLIB_CFLAGS="-fPIC"
4989	    SHLIB_SUFFIX=".so"
4990	    CFLAGS_OPTIMIZE=-02
4991	    SHLIB_LD='${CC} -shared'
4992	    DL_OBJS="tclLoadDl.o"
4993	    DL_LIBS="-mshared -ldl"
4994	    LD_FLAGS="-Wl,--export-dynamic"
4995	    if test $doRpath = yes; then :
4996
4997		CC_SEARCH_FLAGS='"-Wl,-rpath,${LIB_RUNTIME_DIR}"'
4998		LD_SEARCH_FLAGS='"-Wl,-rpath,${LIB_RUNTIME_DIR}"'
4999fi
5000	    ;;
5001	OpenBSD-*)
5002	    arch=`arch -s`
5003	    case "$arch" in
5004	    alpha|sparc64)
5005		SHLIB_CFLAGS="-fPIC"
5006		;;
5007	    *)
5008		SHLIB_CFLAGS="-fpic"
5009		;;
5010	    esac
5011	    SHLIB_LD='${CC} ${SHLIB_CFLAGS} -shared'
5012	    SHLIB_SUFFIX=".so"
5013	    DL_OBJS="tclLoadDl.o"
5014	    DL_LIBS=""
5015	    if test $doRpath = yes; then :
5016
5017		CC_SEARCH_FLAGS='"-Wl,-rpath,${LIB_RUNTIME_DIR}"'
5018fi
5019	    LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
5020	    SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.so.${SHLIB_VERSION}'
5021	    LDFLAGS="-Wl,-export-dynamic"
5022	    CFLAGS_OPTIMIZE="-O2"
5023	    # On OpenBSD:	Compile with -pthread
5024	    #		Don't link with -lpthread
5025	    LIBS=`echo $LIBS | sed s/-lpthread//`
5026	    CFLAGS="$CFLAGS -pthread"
5027	    # OpenBSD doesn't do version numbers with dots.
5028	    UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.a'
5029	    TCL_LIB_VERSIONS_OK=nodots
5030	    ;;
5031	NetBSD-*)
5032	    # NetBSD has ELF and can use 'cc -shared' to build shared libs
5033	    SHLIB_CFLAGS="-fPIC"
5034	    SHLIB_LD='${CC} ${SHLIB_CFLAGS} -shared'
5035	    SHLIB_SUFFIX=".so"
5036	    DL_OBJS="tclLoadDl.o"
5037	    DL_LIBS=""
5038	    LDFLAGS="$LDFLAGS -export-dynamic"
5039	    if test $doRpath = yes; then :
5040
5041		CC_SEARCH_FLAGS='"-Wl,-rpath,${LIB_RUNTIME_DIR}"'
5042fi
5043	    LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
5044	    # The -pthread needs to go in the CFLAGS, not LIBS
5045	    LIBS=`echo $LIBS | sed s/-pthread//`
5046	    CFLAGS="$CFLAGS -pthread"
5047	    LDFLAGS="$LDFLAGS -pthread"
5048	    ;;
5049	DragonFly-*|FreeBSD-*)
5050	    # This configuration from FreeBSD Ports.
5051	    SHLIB_LD="${CC} -shared"
5052	    SHLIB_LD_LIBS="${SHLIB_LD_LIBS} -Wl,-soname,\$@"
5053	    SHLIB_SUFFIX=".so"
5054	    DL_OBJS="tclLoadDl.o"
5055	    DL_LIBS=""
5056	    if test $doRpath = yes; then :
5057
5058		CC_SEARCH_FLAGS='"-Wl,-rpath,${LIB_RUNTIME_DIR}"'
5059		LD_SEARCH_FLAGS='"-Wl,-rpath,${LIB_RUNTIME_DIR}"'
5060fi
5061	    # The -pthread needs to go in the LDFLAGS, not LIBS
5062	    LIBS=`echo $LIBS | sed s/-pthread//`
5063	    CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
5064	    LDFLAGS="$LDFLAGS $PTHREAD_LIBS"
5065	    case $system in
5066	    FreeBSD-3.*)
5067		# Version numbers are dot-stripped by system policy.
5068		TCL_TRIM_DOTS=`echo ${VERSION} | tr -d .`
5069		UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.a'
5070		SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.so'
5071		TCL_LIB_VERSIONS_OK=nodots
5072		;;
5073	    esac
5074	    ;;
5075	Darwin-*)
5076	    CFLAGS_OPTIMIZE="-Os"
5077	    SHLIB_CFLAGS="-fno-common"
5078	    # To avoid discrepancies between what headers configure sees during
5079	    # preprocessing tests and compiling tests, move any -isysroot and
5080	    # -mmacosx-version-min flags from CFLAGS to CPPFLAGS:
5081	    CPPFLAGS="${CPPFLAGS} `echo " ${CFLAGS}" | \
5082		awk 'BEGIN {FS=" +-";ORS=" "}; {for (i=2;i<=NF;i++) \
5083		if ($i~/^(isysroot|mmacosx-version-min)/) print "-"$i}'`"
5084	    CFLAGS="`echo " ${CFLAGS}" | \
5085		awk 'BEGIN {FS=" +-";ORS=" "}; {for (i=2;i<=NF;i++) \
5086		if (!($i~/^(isysroot|mmacosx-version-min)/)) print "-"$i}'`"
5087	    if test $do64bit = yes; then :
5088
5089		case `arch` in
5090		    ppc)
5091			{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler accepts -arch ppc64 flag" >&5
5092$as_echo_n "checking if compiler accepts -arch ppc64 flag... " >&6; }
5093if ${tcl_cv_cc_arch_ppc64+:} false; then :
5094  $as_echo_n "(cached) " >&6
5095else
5096
5097			    hold_cflags=$CFLAGS
5098			    CFLAGS="$CFLAGS -arch ppc64 -mpowerpc64 -mcpu=G5"
5099			    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5100/* end confdefs.h.  */
5101
5102int
5103main ()
5104{
5105
5106  ;
5107  return 0;
5108}
5109_ACEOF
5110if ac_fn_c_try_link "$LINENO"; then :
5111  tcl_cv_cc_arch_ppc64=yes
5112else
5113  tcl_cv_cc_arch_ppc64=no
5114fi
5115rm -f core conftest.err conftest.$ac_objext \
5116    conftest$ac_exeext conftest.$ac_ext
5117			    CFLAGS=$hold_cflags
5118fi
5119{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_cc_arch_ppc64" >&5
5120$as_echo "$tcl_cv_cc_arch_ppc64" >&6; }
5121			if test $tcl_cv_cc_arch_ppc64 = yes; then :
5122
5123			    CFLAGS="$CFLAGS -arch ppc64 -mpowerpc64 -mcpu=G5"
5124			    do64bit_ok=yes
5125
5126fi;;
5127		    i386)
5128			{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler accepts -arch x86_64 flag" >&5
5129$as_echo_n "checking if compiler accepts -arch x86_64 flag... " >&6; }
5130if ${tcl_cv_cc_arch_x86_64+:} false; then :
5131  $as_echo_n "(cached) " >&6
5132else
5133
5134			    hold_cflags=$CFLAGS
5135			    CFLAGS="$CFLAGS -arch x86_64"
5136			    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5137/* end confdefs.h.  */
5138
5139int
5140main ()
5141{
5142
5143  ;
5144  return 0;
5145}
5146_ACEOF
5147if ac_fn_c_try_link "$LINENO"; then :
5148  tcl_cv_cc_arch_x86_64=yes
5149else
5150  tcl_cv_cc_arch_x86_64=no
5151fi
5152rm -f core conftest.err conftest.$ac_objext \
5153    conftest$ac_exeext conftest.$ac_ext
5154			    CFLAGS=$hold_cflags
5155fi
5156{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_cc_arch_x86_64" >&5
5157$as_echo "$tcl_cv_cc_arch_x86_64" >&6; }
5158			if test $tcl_cv_cc_arch_x86_64 = yes; then :
5159
5160			    CFLAGS="$CFLAGS -arch x86_64"
5161			    do64bit_ok=yes
5162
5163fi;;
5164		    *)
5165			{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Don't know how enable 64-bit on architecture \`arch\`" >&5
5166$as_echo "$as_me: WARNING: Don't know how enable 64-bit on architecture \`arch\`" >&2;};;
5167		esac
5168
5169else
5170
5171		# Check for combined 32-bit and 64-bit fat build
5172		if echo "$CFLAGS " |grep -E -q -- '-arch (ppc64|x86_64) ' \
5173		    && echo "$CFLAGS " |grep -E -q -- '-arch (ppc|i386) '; then :
5174
5175		    fat_32_64=yes
5176fi
5177
5178fi
5179	    SHLIB_LD='${CC} -dynamiclib ${CFLAGS} ${LDFLAGS}'
5180	    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ld accepts -single_module flag" >&5
5181$as_echo_n "checking if ld accepts -single_module flag... " >&6; }
5182if ${tcl_cv_ld_single_module+:} false; then :
5183  $as_echo_n "(cached) " >&6
5184else
5185
5186		hold_ldflags=$LDFLAGS
5187		LDFLAGS="$LDFLAGS -dynamiclib -Wl,-single_module"
5188		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5189/* end confdefs.h.  */
5190
5191int
5192main ()
5193{
5194int i;
5195  ;
5196  return 0;
5197}
5198_ACEOF
5199if ac_fn_c_try_link "$LINENO"; then :
5200  tcl_cv_ld_single_module=yes
5201else
5202  tcl_cv_ld_single_module=no
5203fi
5204rm -f core conftest.err conftest.$ac_objext \
5205    conftest$ac_exeext conftest.$ac_ext
5206		LDFLAGS=$hold_ldflags
5207fi
5208{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_ld_single_module" >&5
5209$as_echo "$tcl_cv_ld_single_module" >&6; }
5210	    if test $tcl_cv_ld_single_module = yes; then :
5211
5212		SHLIB_LD="${SHLIB_LD} -Wl,-single_module"
5213
5214fi
5215	    SHLIB_SUFFIX=".dylib"
5216	    DL_OBJS="tclLoadDyld.o"
5217	    DL_LIBS=""
5218	    LDFLAGS="$LDFLAGS -headerpad_max_install_names"
5219	    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ld accepts -search_paths_first flag" >&5
5220$as_echo_n "checking if ld accepts -search_paths_first flag... " >&6; }
5221if ${tcl_cv_ld_search_paths_first+:} false; then :
5222  $as_echo_n "(cached) " >&6
5223else
5224
5225		hold_ldflags=$LDFLAGS
5226		LDFLAGS="$LDFLAGS -Wl,-search_paths_first"
5227		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5228/* end confdefs.h.  */
5229
5230int
5231main ()
5232{
5233int i;
5234  ;
5235  return 0;
5236}
5237_ACEOF
5238if ac_fn_c_try_link "$LINENO"; then :
5239  tcl_cv_ld_search_paths_first=yes
5240else
5241  tcl_cv_ld_search_paths_first=no
5242fi
5243rm -f core conftest.err conftest.$ac_objext \
5244    conftest$ac_exeext conftest.$ac_ext
5245		LDFLAGS=$hold_ldflags
5246fi
5247{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_ld_search_paths_first" >&5
5248$as_echo "$tcl_cv_ld_search_paths_first" >&6; }
5249	    if test $tcl_cv_ld_search_paths_first = yes; then :
5250
5251		LDFLAGS="$LDFLAGS -Wl,-search_paths_first"
5252
5253fi
5254	    if test "$tcl_cv_cc_visibility_hidden" != yes; then :
5255
5256
5257$as_echo "#define MODULE_SCOPE __private_extern__" >>confdefs.h
5258
5259		tcl_cv_cc_visibility_hidden=yes
5260
5261fi
5262	    CC_SEARCH_FLAGS=""
5263	    LD_SEARCH_FLAGS=""
5264	    LD_LIBRARY_PATH_VAR="DYLD_LIBRARY_PATH"
5265
5266$as_echo "#define MAC_OSX_TCL 1" >>confdefs.h
5267
5268	    PLAT_OBJS='${MAC_OSX_OBJS}'
5269	    PLAT_SRCS='${MAC_OSX_SRCS}'
5270	    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use CoreFoundation" >&5
5271$as_echo_n "checking whether to use CoreFoundation... " >&6; }
5272	    # Check whether --enable-corefoundation was given.
5273if test "${enable_corefoundation+set}" = set; then :
5274  enableval=$enable_corefoundation; tcl_corefoundation=$enableval
5275else
5276  tcl_corefoundation=yes
5277fi
5278
5279	    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_corefoundation" >&5
5280$as_echo "$tcl_corefoundation" >&6; }
5281	    if test $tcl_corefoundation = yes; then :
5282
5283		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CoreFoundation.framework" >&5
5284$as_echo_n "checking for CoreFoundation.framework... " >&6; }
5285if ${tcl_cv_lib_corefoundation+:} false; then :
5286  $as_echo_n "(cached) " >&6
5287else
5288
5289		    hold_libs=$LIBS
5290		    if test "$fat_32_64" = yes; then :
5291
5292			for v in CFLAGS CPPFLAGS LDFLAGS; do
5293			    # On Tiger there is no 64-bit CF, so remove 64-bit
5294			    # archs from CFLAGS et al. while testing for
5295			    # presence of CF. 64-bit CF is disabled in
5296			    # tclUnixPort.h if necessary.
5297			    eval 'hold_'$v'="$'$v'";'$v'="`echo "$'$v' "|sed -e "s/-arch ppc64 / /g" -e "s/-arch x86_64 / /g"`"'
5298			done
5299fi
5300		    LIBS="$LIBS -framework CoreFoundation"
5301		    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5302/* end confdefs.h.  */
5303#include <CoreFoundation/CoreFoundation.h>
5304int
5305main ()
5306{
5307CFBundleRef b = CFBundleGetMainBundle();
5308  ;
5309  return 0;
5310}
5311_ACEOF
5312if ac_fn_c_try_link "$LINENO"; then :
5313  tcl_cv_lib_corefoundation=yes
5314else
5315  tcl_cv_lib_corefoundation=no
5316fi
5317rm -f core conftest.err conftest.$ac_objext \
5318    conftest$ac_exeext conftest.$ac_ext
5319		    if test "$fat_32_64" = yes; then :
5320
5321			for v in CFLAGS CPPFLAGS LDFLAGS; do
5322			    eval $v'="$hold_'$v'"'
5323		        done
5324fi
5325		    LIBS=$hold_libs
5326fi
5327{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_lib_corefoundation" >&5
5328$as_echo "$tcl_cv_lib_corefoundation" >&6; }
5329		if test $tcl_cv_lib_corefoundation = yes; then :
5330
5331		    LIBS="$LIBS -framework CoreFoundation"
5332
5333$as_echo "#define HAVE_COREFOUNDATION 1" >>confdefs.h
5334
5335
5336else
5337  tcl_corefoundation=no
5338fi
5339		if test "$fat_32_64" = yes -a $tcl_corefoundation = yes; then :
5340
5341		    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit CoreFoundation" >&5
5342$as_echo_n "checking for 64-bit CoreFoundation... " >&6; }
5343if ${tcl_cv_lib_corefoundation_64+:} false; then :
5344  $as_echo_n "(cached) " >&6
5345else
5346
5347			for v in CFLAGS CPPFLAGS LDFLAGS; do
5348			    eval 'hold_'$v'="$'$v'";'$v'="`echo "$'$v' "|sed -e "s/-arch ppc / /g" -e "s/-arch i386 / /g"`"'
5349			done
5350			cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5351/* end confdefs.h.  */
5352#include <CoreFoundation/CoreFoundation.h>
5353int
5354main ()
5355{
5356CFBundleRef b = CFBundleGetMainBundle();
5357  ;
5358  return 0;
5359}
5360_ACEOF
5361if ac_fn_c_try_link "$LINENO"; then :
5362  tcl_cv_lib_corefoundation_64=yes
5363else
5364  tcl_cv_lib_corefoundation_64=no
5365fi
5366rm -f core conftest.err conftest.$ac_objext \
5367    conftest$ac_exeext conftest.$ac_ext
5368			for v in CFLAGS CPPFLAGS LDFLAGS; do
5369			    eval $v'="$hold_'$v'"'
5370			done
5371fi
5372{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_lib_corefoundation_64" >&5
5373$as_echo "$tcl_cv_lib_corefoundation_64" >&6; }
5374		    if test $tcl_cv_lib_corefoundation_64 = no; then :
5375
5376
5377$as_echo "#define NO_COREFOUNDATION_64 1" >>confdefs.h
5378
5379                        LDFLAGS="$LDFLAGS -Wl,-no_arch_warnings"
5380
5381fi
5382
5383fi
5384
5385fi
5386	    ;;
5387	OS/390-*)
5388	    SHLIB_LD_LIBS=""
5389	    CFLAGS_OPTIMIZE=""		# Optimizer is buggy
5390
5391$as_echo "#define _OE_SOCKETS 1" >>confdefs.h
5392
5393	    ;;
5394	OSF1-V*)
5395	    # Digital OSF/1
5396	    SHLIB_CFLAGS=""
5397	    if test "$SHARED_BUILD" = 1; then :
5398
5399	        SHLIB_LD='ld -shared -expect_unresolved "*"'
5400
5401else
5402
5403	        SHLIB_LD='ld -non_shared -expect_unresolved "*"'
5404
5405fi
5406	    SHLIB_SUFFIX=".so"
5407	    DL_OBJS="tclLoadDl.o"
5408	    DL_LIBS=""
5409	    if test $doRpath = yes; then :
5410
5411		CC_SEARCH_FLAGS='"-Wl,-rpath,${LIB_RUNTIME_DIR}"'
5412		LD_SEARCH_FLAGS='-rpath ${LIB_RUNTIME_DIR}'
5413fi
5414	    if test "$GCC" = yes; then :
5415  CFLAGS="$CFLAGS -mieee"
5416else
5417
5418		CFLAGS="$CFLAGS -DHAVE_TZSET -std1 -ieee"
5419fi
5420	    # see pthread_intro(3) for pthread support on osf1, k.furukawa
5421	    CFLAGS="$CFLAGS -DHAVE_PTHREAD_ATTR_SETSTACKSIZE"
5422	    CFLAGS="$CFLAGS -DTCL_THREAD_STACK_MIN=PTHREAD_STACK_MIN*64"
5423	    LIBS=`echo $LIBS | sed s/-lpthreads//`
5424	    if test "$GCC" = yes; then :
5425
5426		LIBS="$LIBS -lpthread -lmach -lexc"
5427
5428else
5429
5430		CFLAGS="$CFLAGS -pthread"
5431		LDFLAGS="$LDFLAGS -pthread"
5432
5433fi
5434	    ;;
5435	QNX-6*)
5436	    # QNX RTP
5437	    # This may work for all QNX, but it was only reported for v6.
5438	    SHLIB_LD="ld -Bshareable -x"
5439	    SHLIB_LD_LIBS=""
5440	    SHLIB_SUFFIX=".so"
5441	    DL_OBJS="tclLoadDl.o"
5442	    # dlopen is in -lc on QNX
5443	    DL_LIBS=""
5444	    CC_SEARCH_FLAGS=""
5445	    LD_SEARCH_FLAGS=""
5446	    ;;
5447	SCO_SV-3.2*)
5448	    # Note, dlopen is available only on SCO 3.2.5 and greater. However,
5449	    # this test works, since "uname -s" was non-standard in 3.2.4 and
5450	    # below.
5451	    if test "$GCC" = yes; then :
5452
5453		SHLIB_CFLAGS="-fPIC -melf"
5454		LDFLAGS="$LDFLAGS -melf -Wl,-Bexport"
5455
5456else
5457
5458		SHLIB_CFLAGS="-Kpic -belf"
5459		LDFLAGS="$LDFLAGS -belf -Wl,-Bexport"
5460
5461fi
5462	    SHLIB_LD="ld -G"
5463	    SHLIB_LD_LIBS=""
5464	    SHLIB_SUFFIX=".so"
5465	    DL_OBJS="tclLoadDl.o"
5466	    DL_LIBS=""
5467	    CC_SEARCH_FLAGS=""
5468	    LD_SEARCH_FLAGS=""
5469	    ;;
5470	SunOS-5.[0-6])
5471	    # Careful to not let 5.10+ fall into this case
5472
5473	    # Note: If _REENTRANT isn't defined, then Solaris
5474	    # won't define thread-safe library routines.
5475
5476
5477$as_echo "#define _REENTRANT 1" >>confdefs.h
5478
5479
5480$as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5481
5482
5483	    SHLIB_CFLAGS="-KPIC"
5484	    SHLIB_SUFFIX=".so"
5485	    DL_OBJS="tclLoadDl.o"
5486	    DL_LIBS="-ldl"
5487	    if test "$GCC" = yes; then :
5488
5489		SHLIB_LD='${CC} -shared'
5490		CC_SEARCH_FLAGS='-Wl,-R,${LIB_RUNTIME_DIR}'
5491		LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
5492
5493else
5494
5495		SHLIB_LD="/usr/ccs/bin/ld -G -z text"
5496		CC_SEARCH_FLAGS='-R ${LIB_RUNTIME_DIR}'
5497		LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
5498
5499fi
5500	    ;;
5501	SunOS-5*)
5502	    # Note: If _REENTRANT isn't defined, then Solaris
5503	    # won't define thread-safe library routines.
5504
5505
5506$as_echo "#define _REENTRANT 1" >>confdefs.h
5507
5508
5509$as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5510
5511
5512	    SHLIB_CFLAGS="-KPIC"
5513
5514	    # Check to enable 64-bit flags for compiler/linker
5515	    if test "$do64bit" = yes; then :
5516
5517		arch=`isainfo`
5518		if test "$arch" = "sparcv9 sparc"; then :
5519
5520		    if test "$GCC" = yes; then :
5521
5522			if test "`${CC} -dumpversion | awk -F. '{print $1}'`" -lt 3; then :
5523
5524			    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 64bit mode not supported with GCC < 3.2 on $system" >&5
5525$as_echo "$as_me: WARNING: 64bit mode not supported with GCC < 3.2 on $system" >&2;}
5526
5527else
5528
5529			    do64bit_ok=yes
5530			    CFLAGS="$CFLAGS -m64 -mcpu=v9"
5531			    LDFLAGS="$LDFLAGS -m64 -mcpu=v9"
5532			    SHLIB_CFLAGS="-fPIC"
5533
5534fi
5535
5536else
5537
5538			do64bit_ok=yes
5539			if test "$do64bitVIS" = yes; then :
5540
5541			    CFLAGS="$CFLAGS -xarch=v9a"
5542			    LDFLAGS_ARCH="-xarch=v9a"
5543
5544else
5545
5546			    CFLAGS="$CFLAGS -xarch=v9"
5547			    LDFLAGS_ARCH="-xarch=v9"
5548
5549fi
5550			# Solaris 64 uses this as well
5551			#LD_LIBRARY_PATH_VAR="LD_LIBRARY_PATH_64"
5552
5553fi
5554
5555else
5556  if test "$arch" = "amd64 i386"; then :
5557
5558		    if test "$GCC" = yes; then :
5559
5560			case $system in
5561			    SunOS-5.1[1-9]*|SunOS-5.[2-9][0-9]*)
5562				do64bit_ok=yes
5563				CFLAGS="$CFLAGS -m64"
5564				LDFLAGS="$LDFLAGS -m64";;
5565			    *)
5566				{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 64bit mode not supported with GCC on $system" >&5
5567$as_echo "$as_me: WARNING: 64bit mode not supported with GCC on $system" >&2;};;
5568			esac
5569
5570else
5571
5572			do64bit_ok=yes
5573			case $system in
5574			    SunOS-5.1[1-9]*|SunOS-5.[2-9][0-9]*)
5575				CFLAGS="$CFLAGS -m64"
5576				LDFLAGS="$LDFLAGS -m64";;
5577			    *)
5578				CFLAGS="$CFLAGS -xarch=amd64"
5579				LDFLAGS="$LDFLAGS -xarch=amd64";;
5580			esac
5581
5582fi
5583
5584else
5585  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 64bit mode not supported for $arch" >&5
5586$as_echo "$as_me: WARNING: 64bit mode not supported for $arch" >&2;}
5587fi
5588fi
5589
5590fi
5591
5592	    #--------------------------------------------------------------------
5593	    # On Solaris 5.x i386 with the sunpro compiler we need to link
5594	    # with sunmath to get floating point rounding control
5595	    #--------------------------------------------------------------------
5596	    if test "$GCC" = yes; then :
5597  use_sunmath=no
5598else
5599
5600		arch=`isainfo`
5601		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use -lsunmath for fp rounding control" >&5
5602$as_echo_n "checking whether to use -lsunmath for fp rounding control... " >&6; }
5603		if test "$arch" = "amd64 i386" -o "$arch" = "i386"; then :
5604
5605			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5606$as_echo "yes" >&6; }
5607			MATH_LIBS="-lsunmath $MATH_LIBS"
5608			ac_fn_c_check_header_mongrel "$LINENO" "sunmath.h" "ac_cv_header_sunmath_h" "$ac_includes_default"
5609if test "x$ac_cv_header_sunmath_h" = xyes; then :
5610
5611fi
5612
5613
5614			use_sunmath=yes
5615
5616else
5617
5618			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5619$as_echo "no" >&6; }
5620			use_sunmath=no
5621
5622fi
5623
5624fi
5625	    SHLIB_SUFFIX=".so"
5626	    DL_OBJS="tclLoadDl.o"
5627	    DL_LIBS="-ldl"
5628	    if test "$GCC" = yes; then :
5629
5630		SHLIB_LD='${CC} -shared'
5631		CC_SEARCH_FLAGS='-Wl,-R,${LIB_RUNTIME_DIR}'
5632		LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
5633		if test "$do64bit_ok" = yes; then :
5634
5635		    if test "$arch" = "sparcv9 sparc"; then :
5636
5637			# We need to specify -static-libgcc or we need to
5638			# add the path to the sparv9 libgcc.
5639			SHLIB_LD="$SHLIB_LD -m64 -mcpu=v9 -static-libgcc"
5640			# for finding sparcv9 libgcc, get the regular libgcc
5641			# path, remove so name and append 'sparcv9'
5642			#v9gcclibdir="`gcc -print-file-name=libgcc_s.so` | ..."
5643			#CC_SEARCH_FLAGS="${CC_SEARCH_FLAGS},-R,$v9gcclibdir"
5644
5645else
5646  if test "$arch" = "amd64 i386"; then :
5647
5648			SHLIB_LD="$SHLIB_LD -m64 -static-libgcc"
5649
5650fi
5651fi
5652
5653fi
5654
5655else
5656
5657		if test "$use_sunmath" = yes; then :
5658  textmode=textoff
5659else
5660  textmode=text
5661fi
5662		case $system in
5663		    SunOS-5.[1-9][0-9]*|SunOS-5.[7-9])
5664			SHLIB_LD="\${CC} -G -z $textmode \${LDFLAGS}";;
5665		    *)
5666			SHLIB_LD="/usr/ccs/bin/ld -G -z $textmode";;
5667		esac
5668		CC_SEARCH_FLAGS='-Wl,-R,${LIB_RUNTIME_DIR}'
5669		LD_SEARCH_FLAGS='-R ${LIB_RUNTIME_DIR}'
5670
5671fi
5672	    ;;
5673	UNIX_SV* | UnixWare-5*)
5674	    SHLIB_CFLAGS="-KPIC"
5675	    SHLIB_LD='${CC} -G'
5676	    SHLIB_LD_LIBS=""
5677	    SHLIB_SUFFIX=".so"
5678	    DL_OBJS="tclLoadDl.o"
5679	    DL_LIBS="-ldl"
5680	    # Some UNIX_SV* systems (unixware 1.1.2 for example) have linkers
5681	    # that don't grok the -Bexport option.  Test that it does.
5682	    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld accepts -Bexport flag" >&5
5683$as_echo_n "checking for ld accepts -Bexport flag... " >&6; }
5684if ${tcl_cv_ld_Bexport+:} false; then :
5685  $as_echo_n "(cached) " >&6
5686else
5687
5688		hold_ldflags=$LDFLAGS
5689		LDFLAGS="$LDFLAGS -Wl,-Bexport"
5690		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5691/* end confdefs.h.  */
5692
5693int
5694main ()
5695{
5696int i;
5697  ;
5698  return 0;
5699}
5700_ACEOF
5701if ac_fn_c_try_link "$LINENO"; then :
5702  tcl_cv_ld_Bexport=yes
5703else
5704  tcl_cv_ld_Bexport=no
5705fi
5706rm -f core conftest.err conftest.$ac_objext \
5707    conftest$ac_exeext conftest.$ac_ext
5708	        LDFLAGS=$hold_ldflags
5709fi
5710{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_ld_Bexport" >&5
5711$as_echo "$tcl_cv_ld_Bexport" >&6; }
5712	    if test $tcl_cv_ld_Bexport = yes; then :
5713
5714		LDFLAGS="$LDFLAGS -Wl,-Bexport"
5715
5716fi
5717	    CC_SEARCH_FLAGS=""
5718	    LD_SEARCH_FLAGS=""
5719	    ;;
5720    esac
5721
5722    if test "$do64bit" = yes -a "$do64bit_ok" = no; then :
5723
5724	{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 64bit support being disabled -- don't know magic for this platform" >&5
5725$as_echo "$as_me: WARNING: 64bit support being disabled -- don't know magic for this platform" >&2;}
5726
5727fi
5728
5729    if test "$do64bit" = yes -a "$do64bit_ok" = yes; then :
5730
5731
5732$as_echo "#define TCL_CFG_DO64BIT 1" >>confdefs.h
5733
5734
5735fi
5736
5737
5738
5739    # Step 4: disable dynamic loading if requested via a command-line switch.
5740
5741    # Check whether --enable-load was given.
5742if test "${enable_load+set}" = set; then :
5743  enableval=$enable_load; tcl_ok=$enableval
5744else
5745  tcl_ok=yes
5746fi
5747
5748    if test "$tcl_ok" = no; then :
5749  DL_OBJS=""
5750fi
5751
5752    if test "x$DL_OBJS" != x; then :
5753  BUILD_DLTEST="\$(DLTEST_TARGETS)"
5754else
5755
5756	{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't figure out how to do dynamic loading or shared libraries on this system." >&5
5757$as_echo "$as_me: WARNING: Can't figure out how to do dynamic loading or shared libraries on this system." >&2;}
5758	SHLIB_CFLAGS=""
5759	SHLIB_LD=""
5760	SHLIB_SUFFIX=""
5761	DL_OBJS="tclLoadNone.o"
5762	DL_LIBS=""
5763	LDFLAGS="$LDFLAGS_ORIG"
5764	CC_SEARCH_FLAGS=""
5765	LD_SEARCH_FLAGS=""
5766	BUILD_DLTEST=""
5767
5768fi
5769    LDFLAGS="$LDFLAGS $LDFLAGS_ARCH"
5770
5771    # If we're running gcc, then change the C flags for compiling shared
5772    # libraries to the right flags for gcc, instead of those for the
5773    # standard manufacturer compiler.
5774
5775    if test "$DL_OBJS" != "tclLoadNone.o" -a "$GCC" = yes; then :
5776
5777	case $system in
5778	    AIX-*) ;;
5779	    BSD/OS*) ;;
5780	    CYGWIN_*|MINGW32_*|MSYS_*) ;;
5781	    HP-UX*) ;;
5782	    Darwin-*) ;;
5783	    IRIX*) ;;
5784	    Linux*|GNU*) ;;
5785	    NetBSD-*|OpenBSD-*) ;;
5786	    OSF1-*) ;;
5787	    SCO_SV-3.2*) ;;
5788	    *) SHLIB_CFLAGS="-fPIC" ;;
5789	esac
5790fi
5791
5792    if test "$tcl_cv_cc_visibility_hidden" != yes; then :
5793
5794
5795$as_echo "#define MODULE_SCOPE extern" >>confdefs.h
5796
5797
5798fi
5799
5800    if test "$SHARED_LIB_SUFFIX" = ""; then :
5801
5802	SHARED_LIB_SUFFIX='${VERSION}${SHLIB_SUFFIX}'
5803fi
5804    if test "$UNSHARED_LIB_SUFFIX" = ""; then :
5805
5806	UNSHARED_LIB_SUFFIX='${VERSION}.a'
5807fi
5808    DLL_INSTALL_DIR="\$(LIB_INSTALL_DIR)"
5809
5810    if test "${SHARED_BUILD}" = 1 -a "${SHLIB_SUFFIX}" != ""; then :
5811
5812        LIB_SUFFIX=${SHARED_LIB_SUFFIX}
5813        MAKE_LIB='${SHLIB_LD} -o $@ ${OBJS} ${LDFLAGS} ${SHLIB_LD_LIBS} ${TCL_SHLIB_LD_EXTRAS} ${TK_SHLIB_LD_EXTRAS} ${LD_SEARCH_FLAGS}'
5814        if test "${SHLIB_SUFFIX}" = ".dll"; then :
5815
5816            INSTALL_LIB='$(INSTALL_LIBRARY) $(LIB_FILE) "$(BIN_INSTALL_DIR)/$(LIB_FILE)";if test -f $(LIB_FILE).a; then $(INSTALL_DATA) $(LIB_FILE).a "$(LIB_INSTALL_DIR)"; fi;'
5817            DLL_INSTALL_DIR="\$(BIN_INSTALL_DIR)"
5818
5819else
5820
5821            INSTALL_LIB='$(INSTALL_LIBRARY) $(LIB_FILE) "$(LIB_INSTALL_DIR)/$(LIB_FILE)"'
5822
5823fi
5824
5825else
5826
5827        LIB_SUFFIX=${UNSHARED_LIB_SUFFIX}
5828
5829        if test "$RANLIB" = ""; then :
5830
5831            MAKE_LIB='$(STLIB_LD) $@ ${OBJS}'
5832
5833else
5834
5835            MAKE_LIB='${STLIB_LD} $@ ${OBJS} ; ${RANLIB} $@'
5836
5837fi
5838        INSTALL_LIB='$(INSTALL_LIBRARY) $(LIB_FILE) "$(LIB_INSTALL_DIR)/$(LIB_FILE)"'
5839
5840fi
5841
5842    # Stub lib does not depend on shared/static configuration
5843    if test "$RANLIB" = ""; then :
5844
5845        MAKE_STUB_LIB='${STLIB_LD} $@ ${STUB_LIB_OBJS}'
5846
5847else
5848
5849        MAKE_STUB_LIB='${STLIB_LD} $@ ${STUB_LIB_OBJS} ; ${RANLIB} $@'
5850
5851fi
5852    INSTALL_STUB_LIB='$(INSTALL_LIBRARY) $(STUB_LIB_FILE) "$(LIB_INSTALL_DIR)/$(STUB_LIB_FILE)"'
5853
5854    # Define TCL_LIBS now that we know what DL_LIBS is.
5855    # The trick here is that we don't want to change the value of TCL_LIBS if
5856    # it is already set when tclConfig.sh had been loaded by Tk.
5857    if test "x${TCL_LIBS}" = x; then :
5858
5859        TCL_LIBS="${DL_LIBS} ${LIBS} ${MATH_LIBS}"
5860fi
5861
5862
5863    # See if the compiler supports casting to a union type.
5864    # This is used to stop gcc from printing a compiler
5865    # warning when initializing a union member.
5866
5867    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cast to union support" >&5
5868$as_echo_n "checking for cast to union support... " >&6; }
5869if ${tcl_cv_cast_to_union+:} false; then :
5870  $as_echo_n "(cached) " >&6
5871else
5872  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5873/* end confdefs.h.  */
5874
5875int
5876main ()
5877{
5878
5879		union foo { int i; double d; };
5880		union foo f = (union foo) (int) 0;
5881
5882  ;
5883  return 0;
5884}
5885_ACEOF
5886if ac_fn_c_try_compile "$LINENO"; then :
5887  tcl_cv_cast_to_union=yes
5888else
5889  tcl_cv_cast_to_union=no
5890fi
5891rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5892
5893fi
5894{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_cast_to_union" >&5
5895$as_echo "$tcl_cv_cast_to_union" >&6; }
5896    if test "$tcl_cv_cast_to_union" = "yes"; then
5897
5898$as_echo "#define HAVE_CAST_TO_UNION 1" >>confdefs.h
5899
5900    fi
5901    hold_cflags=$CFLAGS; CFLAGS="$CFLAGS -fno-lto"
5902    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working -fno-lto" >&5
5903$as_echo_n "checking for working -fno-lto... " >&6; }
5904if ${ac_cv_nolto+:} false; then :
5905  $as_echo_n "(cached) " >&6
5906else
5907  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5908/* end confdefs.h.  */
5909
5910int
5911main ()
5912{
5913
5914  ;
5915  return 0;
5916}
5917_ACEOF
5918if ac_fn_c_try_compile "$LINENO"; then :
5919  ac_cv_nolto=yes
5920else
5921  ac_cv_nolto=no
5922fi
5923rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5924
5925fi
5926{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_nolto" >&5
5927$as_echo "$ac_cv_nolto" >&6; }
5928    CFLAGS=$hold_cflags
5929    if test "$ac_cv_nolto" = "yes" ; then
5930	CFLAGS_NOLTO="-fno-lto"
5931    else
5932	CFLAGS_NOLTO=""
5933    fi
5934    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the compiler understands -finput-charset" >&5
5935$as_echo_n "checking if the compiler understands -finput-charset... " >&6; }
5936if ${tcl_cv_cc_input_charset+:} false; then :
5937  $as_echo_n "(cached) " >&6
5938else
5939
5940	hold_cflags=$CFLAGS; CFLAGS="$CFLAGS -finput-charset=UTF-8"
5941	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5942/* end confdefs.h.  */
5943
5944int
5945main ()
5946{
5947
5948  ;
5949  return 0;
5950}
5951_ACEOF
5952if ac_fn_c_try_compile "$LINENO"; then :
5953  tcl_cv_cc_input_charset=yes
5954else
5955  tcl_cv_cc_input_charset=no
5956fi
5957rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5958	CFLAGS=$hold_cflags
5959fi
5960{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_cc_input_charset" >&5
5961$as_echo "$tcl_cv_cc_input_charset" >&6; }
5962    if test $tcl_cv_cc_input_charset = yes; then
5963	CFLAGS="$CFLAGS -finput-charset=UTF-8"
5964    fi
5965
5966    ac_fn_c_check_header_mongrel "$LINENO" "stdbool.h" "ac_cv_header_stdbool_h" "$ac_includes_default"
5967if test "x$ac_cv_header_stdbool_h" = xyes; then :
5968
5969$as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
5970
5971fi
5972
5973
5974
5975    # FIXME: This subst was left in only because the TCL_DL_LIBS
5976    # entry in tclConfig.sh uses it. It is not clear why someone
5977    # would use TCL_DL_LIBS instead of TCL_LIBS.
5978
5979
5980
5981
5982
5983
5984
5985
5986
5987
5988
5989
5990
5991
5992
5993
5994
5995
5996
5997
5998
5999
6000
6001
6002
6003
6004cat >>confdefs.h <<_ACEOF
6005#define TCL_SHLIB_EXT "${SHLIB_SUFFIX}"
6006_ACEOF
6007
6008
6009
6010
6011
6012
6013
6014
6015
6016
6017
6018    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for build with symbols" >&5
6019$as_echo_n "checking for build with symbols... " >&6; }
6020    # Check whether --enable-symbols was given.
6021if test "${enable_symbols+set}" = set; then :
6022  enableval=$enable_symbols; tcl_ok=$enableval
6023else
6024  tcl_ok=no
6025fi
6026
6027# FIXME: Currently, LDFLAGS_DEFAULT is not used, it should work like CFLAGS_DEFAULT.
6028    if test "$tcl_ok" = "no"; then
6029	CFLAGS_DEFAULT='$(CFLAGS_OPTIMIZE)'
6030	LDFLAGS_DEFAULT='$(LDFLAGS_OPTIMIZE)'
6031
6032$as_echo "#define NDEBUG 1" >>confdefs.h
6033
6034	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6035$as_echo "no" >&6; }
6036
6037$as_echo "#define TCL_CFG_OPTIMIZED 1" >>confdefs.h
6038
6039    else
6040	CFLAGS_DEFAULT='$(CFLAGS_DEBUG)'
6041	LDFLAGS_DEFAULT='$(LDFLAGS_DEBUG)'
6042	if test "$tcl_ok" = "yes"; then
6043	    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (standard debugging)" >&5
6044$as_echo "yes (standard debugging)" >&6; }
6045	fi
6046    fi
6047
6048
6049
6050    if test "$tcl_ok" = "mem" -o "$tcl_ok" = "all"; then
6051
6052$as_echo "#define TCL_MEM_DEBUG 1" >>confdefs.h
6053
6054    fi
6055
6056
6057
6058    if test "$tcl_ok" != "yes" -a "$tcl_ok" != "no"; then
6059	if test "$tcl_ok" = "all"; then
6060	    { $as_echo "$as_me:${as_lineno-$LINENO}: result: enabled symbols mem debugging" >&5
6061$as_echo "enabled symbols mem debugging" >&6; }
6062	else
6063	    { $as_echo "$as_me:${as_lineno-$LINENO}: result: enabled $tcl_ok debugging" >&5
6064$as_echo "enabled $tcl_ok debugging" >&6; }
6065	fi
6066    fi
6067
6068
6069#--------------------------------------------------------------------
6070#	Detect what compiler flags to set for 64-bit support.
6071#--------------------------------------------------------------------
6072
6073
6074    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for required early compiler flags" >&5
6075$as_echo_n "checking for required early compiler flags... " >&6; }
6076    tcl_flags=""
6077
6078    if ${tcl_cv_flag__isoc99_source+:} false; then :
6079  $as_echo_n "(cached) " >&6
6080else
6081  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6082/* end confdefs.h.  */
6083#include <stdlib.h>
6084int
6085main ()
6086{
6087char *p = (char *)strtoll; char *q = (char *)strtoull;
6088  ;
6089  return 0;
6090}
6091_ACEOF
6092if ac_fn_c_try_compile "$LINENO"; then :
6093  tcl_cv_flag__isoc99_source=no
6094else
6095  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6096/* end confdefs.h.  */
6097#define _ISOC99_SOURCE 1
6098#include <stdlib.h>
6099int
6100main ()
6101{
6102char *p = (char *)strtoll; char *q = (char *)strtoull;
6103  ;
6104  return 0;
6105}
6106_ACEOF
6107if ac_fn_c_try_compile "$LINENO"; then :
6108  tcl_cv_flag__isoc99_source=yes
6109else
6110  tcl_cv_flag__isoc99_source=no
6111fi
6112rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6113fi
6114rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6115fi
6116
6117    if test "x${tcl_cv_flag__isoc99_source}" = "xyes" ; then
6118
6119$as_echo "#define _ISOC99_SOURCE 1" >>confdefs.h
6120
6121	tcl_flags="$tcl_flags _ISOC99_SOURCE"
6122    fi
6123
6124
6125    if ${tcl_cv_flag__largefile64_source+:} false; then :
6126  $as_echo_n "(cached) " >&6
6127else
6128  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6129/* end confdefs.h.  */
6130#include <sys/stat.h>
6131int
6132main ()
6133{
6134struct stat64 buf; int i = stat64("/", &buf);
6135  ;
6136  return 0;
6137}
6138_ACEOF
6139if ac_fn_c_try_compile "$LINENO"; then :
6140  tcl_cv_flag__largefile64_source=no
6141else
6142  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6143/* end confdefs.h.  */
6144#define _LARGEFILE64_SOURCE 1
6145#include <sys/stat.h>
6146int
6147main ()
6148{
6149struct stat64 buf; int i = stat64("/", &buf);
6150  ;
6151  return 0;
6152}
6153_ACEOF
6154if ac_fn_c_try_compile "$LINENO"; then :
6155  tcl_cv_flag__largefile64_source=yes
6156else
6157  tcl_cv_flag__largefile64_source=no
6158fi
6159rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6160fi
6161rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6162fi
6163
6164    if test "x${tcl_cv_flag__largefile64_source}" = "xyes" ; then
6165
6166$as_echo "#define _LARGEFILE64_SOURCE 1" >>confdefs.h
6167
6168	tcl_flags="$tcl_flags _LARGEFILE64_SOURCE"
6169    fi
6170
6171
6172    if ${tcl_cv_flag__largefile_source64+:} false; then :
6173  $as_echo_n "(cached) " >&6
6174else
6175  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6176/* end confdefs.h.  */
6177#include <sys/stat.h>
6178int
6179main ()
6180{
6181char *p = (char *)open64;
6182  ;
6183  return 0;
6184}
6185_ACEOF
6186if ac_fn_c_try_compile "$LINENO"; then :
6187  tcl_cv_flag__largefile_source64=no
6188else
6189  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6190/* end confdefs.h.  */
6191#define _LARGEFILE_SOURCE64 1
6192#include <sys/stat.h>
6193int
6194main ()
6195{
6196char *p = (char *)open64;
6197  ;
6198  return 0;
6199}
6200_ACEOF
6201if ac_fn_c_try_compile "$LINENO"; then :
6202  tcl_cv_flag__largefile_source64=yes
6203else
6204  tcl_cv_flag__largefile_source64=no
6205fi
6206rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6207fi
6208rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6209fi
6210
6211    if test "x${tcl_cv_flag__largefile_source64}" = "xyes" ; then
6212
6213$as_echo "#define _LARGEFILE_SOURCE64 1" >>confdefs.h
6214
6215	tcl_flags="$tcl_flags _LARGEFILE_SOURCE64"
6216    fi
6217
6218    if test "x${tcl_flags}" = "x" ; then
6219	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6220$as_echo "none" >&6; }
6221    else
6222	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${tcl_flags}" >&5
6223$as_echo "${tcl_flags}" >&6; }
6224    fi
6225
6226
6227
6228    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit integer type" >&5
6229$as_echo_n "checking for 64-bit integer type... " >&6; }
6230    if ${tcl_cv_type_64bit+:} false; then :
6231  $as_echo_n "(cached) " >&6
6232else
6233
6234	tcl_cv_type_64bit=none
6235	# See if we could use long anyway  Note that we substitute in the
6236	# type that is our current guess for a 64-bit type inside this check
6237	# program, so it should be modified only carefully...
6238        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6239/* end confdefs.h.  */
6240
6241int
6242main ()
6243{
6244switch (0) {
6245            case 1: case (sizeof(long long)==sizeof(long)): ;
6246        }
6247  ;
6248  return 0;
6249}
6250_ACEOF
6251if ac_fn_c_try_compile "$LINENO"; then :
6252  tcl_cv_type_64bit="long long"
6253fi
6254rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6255fi
6256
6257    if test "${tcl_cv_type_64bit}" = none ; then
6258
6259$as_echo "#define TCL_WIDE_INT_IS_LONG 1" >>confdefs.h
6260
6261	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6262$as_echo "yes" >&6; }
6263    else
6264	# Now check for auxiliary declarations
6265	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct dirent64" >&5
6266$as_echo_n "checking for struct dirent64... " >&6; }
6267if ${tcl_cv_struct_dirent64+:} false; then :
6268  $as_echo_n "(cached) " >&6
6269else
6270
6271	    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6272/* end confdefs.h.  */
6273#include <sys/types.h>
6274#include <dirent.h>
6275int
6276main ()
6277{
6278struct dirent64 p;
6279  ;
6280  return 0;
6281}
6282_ACEOF
6283if ac_fn_c_try_compile "$LINENO"; then :
6284  tcl_cv_struct_dirent64=yes
6285else
6286  tcl_cv_struct_dirent64=no
6287fi
6288rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6289fi
6290{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_struct_dirent64" >&5
6291$as_echo "$tcl_cv_struct_dirent64" >&6; }
6292	if test "x${tcl_cv_struct_dirent64}" = "xyes" ; then
6293
6294$as_echo "#define HAVE_STRUCT_DIRENT64 1" >>confdefs.h
6295
6296	fi
6297
6298	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for DIR64" >&5
6299$as_echo_n "checking for DIR64... " >&6; }
6300if ${tcl_cv_DIR64+:} false; then :
6301  $as_echo_n "(cached) " >&6
6302else
6303
6304	    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6305/* end confdefs.h.  */
6306#include <sys/types.h>
6307#include <dirent.h>
6308int
6309main ()
6310{
6311struct dirent64 *p; DIR64 d = opendir64(".");
6312            p = readdir64(d); rewinddir64(d); closedir64(d);
6313  ;
6314  return 0;
6315}
6316_ACEOF
6317if ac_fn_c_try_compile "$LINENO"; then :
6318  tcl_cv_DIR64=yes
6319else
6320  tcl_cv_DIR64=no
6321fi
6322rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6323fi
6324{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_DIR64" >&5
6325$as_echo "$tcl_cv_DIR64" >&6; }
6326	if test "x${tcl_cv_DIR64}" = "xyes" ; then
6327
6328$as_echo "#define HAVE_DIR64 1" >>confdefs.h
6329
6330	fi
6331
6332	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct stat64" >&5
6333$as_echo_n "checking for struct stat64... " >&6; }
6334if ${tcl_cv_struct_stat64+:} false; then :
6335  $as_echo_n "(cached) " >&6
6336else
6337
6338	    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6339/* end confdefs.h.  */
6340#include <sys/stat.h>
6341int
6342main ()
6343{
6344struct stat64 p;
6345
6346  ;
6347  return 0;
6348}
6349_ACEOF
6350if ac_fn_c_try_compile "$LINENO"; then :
6351  tcl_cv_struct_stat64=yes
6352else
6353  tcl_cv_struct_stat64=no
6354fi
6355rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6356fi
6357{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_struct_stat64" >&5
6358$as_echo "$tcl_cv_struct_stat64" >&6; }
6359	if test "x${tcl_cv_struct_stat64}" = "xyes" ; then
6360
6361$as_echo "#define HAVE_STRUCT_STAT64 1" >>confdefs.h
6362
6363	fi
6364
6365	for ac_func in open64 lseek64
6366do :
6367  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6368ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
6369if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
6370  cat >>confdefs.h <<_ACEOF
6371#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6372_ACEOF
6373
6374fi
6375done
6376
6377	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for off64_t" >&5
6378$as_echo_n "checking for off64_t... " >&6; }
6379	if ${tcl_cv_type_off64_t+:} false; then :
6380  $as_echo_n "(cached) " >&6
6381else
6382
6383	    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6384/* end confdefs.h.  */
6385#include <sys/types.h>
6386int
6387main ()
6388{
6389off64_t offset;
6390
6391  ;
6392  return 0;
6393}
6394_ACEOF
6395if ac_fn_c_try_compile "$LINENO"; then :
6396  tcl_cv_type_off64_t=yes
6397else
6398  tcl_cv_type_off64_t=no
6399fi
6400rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6401fi
6402
6403			if test "x${tcl_cv_type_off64_t}" = "xyes" && \
6404	        test "x${ac_cv_func_lseek64}" = "xyes" && \
6405	        test "x${ac_cv_func_open64}" = "xyes" ; then
6406
6407$as_echo "#define HAVE_TYPE_OFF64_T 1" >>confdefs.h
6408
6409	    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6410$as_echo "yes" >&6; }
6411	else
6412	    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6413$as_echo "no" >&6; }
6414	fi
6415    fi
6416
6417
6418#--------------------------------------------------------------------
6419#	Check endianness because we can optimize some operations
6420#--------------------------------------------------------------------
6421
6422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
6423$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
6424if ${ac_cv_c_bigendian+:} false; then :
6425  $as_echo_n "(cached) " >&6
6426else
6427  ac_cv_c_bigendian=unknown
6428    # See if we're dealing with a universal compiler.
6429    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6430/* end confdefs.h.  */
6431#ifndef __APPLE_CC__
6432	       not a universal capable compiler
6433	     #endif
6434	     typedef int dummy;
6435
6436_ACEOF
6437if ac_fn_c_try_compile "$LINENO"; then :
6438
6439	# Check for potential -arch flags.  It is not universal unless
6440	# there are at least two -arch flags with different values.
6441	ac_arch=
6442	ac_prev=
6443	for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
6444	 if test -n "$ac_prev"; then
6445	   case $ac_word in
6446	     i?86 | x86_64 | ppc | ppc64)
6447	       if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
6448		 ac_arch=$ac_word
6449	       else
6450		 ac_cv_c_bigendian=universal
6451		 break
6452	       fi
6453	       ;;
6454	   esac
6455	   ac_prev=
6456	 elif test "x$ac_word" = "x-arch"; then
6457	   ac_prev=arch
6458	 fi
6459       done
6460fi
6461rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6462    if test $ac_cv_c_bigendian = unknown; then
6463      # See if sys/param.h defines the BYTE_ORDER macro.
6464      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6465/* end confdefs.h.  */
6466#include <sys/types.h>
6467	     #include <sys/param.h>
6468
6469int
6470main ()
6471{
6472#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
6473		     && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
6474		     && LITTLE_ENDIAN)
6475	      bogus endian macros
6476	     #endif
6477
6478  ;
6479  return 0;
6480}
6481_ACEOF
6482if ac_fn_c_try_compile "$LINENO"; then :
6483  # It does; now see whether it defined to BIG_ENDIAN or not.
6484	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6485/* end confdefs.h.  */
6486#include <sys/types.h>
6487		#include <sys/param.h>
6488
6489int
6490main ()
6491{
6492#if BYTE_ORDER != BIG_ENDIAN
6493		 not big endian
6494		#endif
6495
6496  ;
6497  return 0;
6498}
6499_ACEOF
6500if ac_fn_c_try_compile "$LINENO"; then :
6501  ac_cv_c_bigendian=yes
6502else
6503  ac_cv_c_bigendian=no
6504fi
6505rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6506fi
6507rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6508    fi
6509    if test $ac_cv_c_bigendian = unknown; then
6510      # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
6511      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6512/* end confdefs.h.  */
6513#include <limits.h>
6514
6515int
6516main ()
6517{
6518#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
6519	      bogus endian macros
6520	     #endif
6521
6522  ;
6523  return 0;
6524}
6525_ACEOF
6526if ac_fn_c_try_compile "$LINENO"; then :
6527  # It does; now see whether it defined to _BIG_ENDIAN or not.
6528	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6529/* end confdefs.h.  */
6530#include <limits.h>
6531
6532int
6533main ()
6534{
6535#ifndef _BIG_ENDIAN
6536		 not big endian
6537		#endif
6538
6539  ;
6540  return 0;
6541}
6542_ACEOF
6543if ac_fn_c_try_compile "$LINENO"; then :
6544  ac_cv_c_bigendian=yes
6545else
6546  ac_cv_c_bigendian=no
6547fi
6548rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6549fi
6550rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6551    fi
6552    if test $ac_cv_c_bigendian = unknown; then
6553      # Compile a test program.
6554      if test "$cross_compiling" = yes; then :
6555  # Try to guess by grepping values from an object file.
6556	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6557/* end confdefs.h.  */
6558short int ascii_mm[] =
6559		  { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
6560		short int ascii_ii[] =
6561		  { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
6562		int use_ascii (int i) {
6563		  return ascii_mm[i] + ascii_ii[i];
6564		}
6565		short int ebcdic_ii[] =
6566		  { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
6567		short int ebcdic_mm[] =
6568		  { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
6569		int use_ebcdic (int i) {
6570		  return ebcdic_mm[i] + ebcdic_ii[i];
6571		}
6572		extern int foo;
6573
6574int
6575main ()
6576{
6577return use_ascii (foo) == use_ebcdic (foo);
6578  ;
6579  return 0;
6580}
6581_ACEOF
6582if ac_fn_c_try_compile "$LINENO"; then :
6583  if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
6584	      ac_cv_c_bigendian=yes
6585	    fi
6586	    if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
6587	      if test "$ac_cv_c_bigendian" = unknown; then
6588		ac_cv_c_bigendian=no
6589	      else
6590		# finding both strings is unlikely to happen, but who knows?
6591		ac_cv_c_bigendian=unknown
6592	      fi
6593	    fi
6594fi
6595rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6596else
6597  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6598/* end confdefs.h.  */
6599$ac_includes_default
6600int
6601main ()
6602{
6603
6604	     /* Are we little or big endian?  From Harbison&Steele.  */
6605	     union
6606	     {
6607	       long int l;
6608	       char c[sizeof (long int)];
6609	     } u;
6610	     u.l = 1;
6611	     return u.c[sizeof (long int) - 1] == 1;
6612
6613  ;
6614  return 0;
6615}
6616_ACEOF
6617if ac_fn_c_try_run "$LINENO"; then :
6618  ac_cv_c_bigendian=no
6619else
6620  ac_cv_c_bigendian=yes
6621fi
6622rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6623  conftest.$ac_objext conftest.beam conftest.$ac_ext
6624fi
6625
6626    fi
6627fi
6628{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
6629$as_echo "$ac_cv_c_bigendian" >&6; }
6630 case $ac_cv_c_bigendian in #(
6631   yes)
6632     $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
6633;; #(
6634   no)
6635      ;; #(
6636   universal)
6637
6638$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
6639
6640     ;; #(
6641   *)
6642     as_fn_error $? "unknown endianness
6643 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
6644 esac
6645
6646
6647#------------------------------------------------------------------------
6648# If Tcl and Tk are installed in different places, adjust the library
6649# search path to reflect this.
6650#------------------------------------------------------------------------
6651
6652LIB_RUNTIME_DIR='$(libdir)'
6653
6654if test "$TCL_EXEC_PREFIX" != "$exec_prefix"; then
6655    LIB_RUNTIME_DIR="${LIB_RUNTIME_DIR}:${TCL_EXEC_PREFIX}/lib"
6656fi
6657
6658if test "$TCL_PREFIX" != "$prefix"; then
6659    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
6660        Different --prefix selected for Tk and Tcl!
6661        [package require tk] may not work correctly in tclsh." >&5
6662$as_echo "$as_me: WARNING:
6663        Different --prefix selected for Tk and Tcl!
6664        [package require tk] may not work correctly in tclsh." >&2;}
6665fi
6666
6667#--------------------------------------------------------------------
6668#	Include sys/select.h if it exists and if it supplies things
6669#	that appear to be useful and aren't already in sys/types.h.
6670#	This appears to be true only on the RS/6000 under AIX.  Some
6671#	systems like OSF/1 have a sys/select.h that's of no use, and
6672#	other systems like SCO UNIX have a sys/select.h that's
6673#	pernicious.  If "fd_set" isn't defined anywhere then set a
6674#	special flag.
6675#--------------------------------------------------------------------
6676
6677{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fd_set in sys/types" >&5
6678$as_echo_n "checking for fd_set in sys/types... " >&6; }
6679if ${tcl_cv_type_fd_set+:} false; then :
6680  $as_echo_n "(cached) " >&6
6681else
6682
6683    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6684/* end confdefs.h.  */
6685#include <sys/types.h>
6686int
6687main ()
6688{
6689fd_set readMask, writeMask;
6690  ;
6691  return 0;
6692}
6693_ACEOF
6694if ac_fn_c_try_compile "$LINENO"; then :
6695  tcl_cv_type_fd_set=yes
6696else
6697  tcl_cv_type_fd_set=no
6698fi
6699rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6700fi
6701{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_type_fd_set" >&5
6702$as_echo "$tcl_cv_type_fd_set" >&6; }
6703tk_ok=$tcl_cv_type_fd_set
6704if test $tk_ok = no; then
6705    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fd_mask in sys/select" >&5
6706$as_echo_n "checking for fd_mask in sys/select... " >&6; }
6707if ${tcl_cv_grep_fd_mask+:} false; then :
6708  $as_echo_n "(cached) " >&6
6709else
6710
6711	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6712/* end confdefs.h.  */
6713#include <sys/select.h>
6714
6715_ACEOF
6716if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6717  $EGREP "fd_mask" >/dev/null 2>&1; then :
6718  tcl_cv_grep_fd_mask=present
6719else
6720  tcl_cv_grep_fd_mask=missing
6721fi
6722rm -f conftest*
6723
6724fi
6725{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_grep_fd_mask" >&5
6726$as_echo "$tcl_cv_grep_fd_mask" >&6; }
6727    if test $tcl_cv_grep_fd_mask = present; then
6728
6729$as_echo "#define HAVE_SYS_SELECT_H 1" >>confdefs.h
6730
6731	tk_ok=yes
6732    fi
6733fi
6734if test $tk_ok = no; then
6735
6736$as_echo "#define NO_FD_SET 1" >>confdefs.h
6737
6738fi
6739
6740#------------------------------------------------------------------------------
6741#       Find out all about time handling differences.
6742#------------------------------------------------------------------------------
6743
6744
6745
6746
6747  for ac_header in $ac_header_list
6748do :
6749  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6750ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6751"
6752if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6753  cat >>confdefs.h <<_ACEOF
6754#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6755_ACEOF
6756
6757fi
6758
6759done
6760
6761
6762
6763
6764
6765#--------------------------------------------------------------------
6766#	Check for various typedefs and provide substitutes if
6767#	they don't exist.
6768#--------------------------------------------------------------------
6769
6770ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
6771if test "x$ac_cv_type_mode_t" = xyes; then :
6772
6773else
6774
6775cat >>confdefs.h <<_ACEOF
6776#define mode_t int
6777_ACEOF
6778
6779fi
6780
6781ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
6782if test "x$ac_cv_type_pid_t" = xyes; then :
6783
6784else
6785
6786cat >>confdefs.h <<_ACEOF
6787#define pid_t int
6788_ACEOF
6789
6790fi
6791
6792ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
6793if test "x$ac_cv_type_size_t" = xyes; then :
6794
6795else
6796
6797cat >>confdefs.h <<_ACEOF
6798#define size_t unsigned int
6799_ACEOF
6800
6801fi
6802
6803
6804ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "
6805#include <stdint.h>
6806
6807"
6808if test "x$ac_cv_type_intptr_t" = xyes; then :
6809
6810cat >>confdefs.h <<_ACEOF
6811#define HAVE_INTPTR_T 1
6812_ACEOF
6813
6814
6815fi
6816ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "
6817#include <stdint.h>
6818
6819"
6820if test "x$ac_cv_type_uintptr_t" = xyes; then :
6821
6822cat >>confdefs.h <<_ACEOF
6823#define HAVE_UINTPTR_T 1
6824_ACEOF
6825
6826
6827fi
6828
6829
6830#-------------------------------------------
6831#     In OS/390 struct pwd has no pw_gecos field
6832#-------------------------------------------
6833
6834{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pw_gecos in struct pwd" >&5
6835$as_echo_n "checking pw_gecos in struct pwd... " >&6; }
6836if ${tcl_cv_pwd_pw_gecos+:} false; then :
6837  $as_echo_n "(cached) " >&6
6838else
6839
6840    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6841/* end confdefs.h.  */
6842#include <pwd.h>
6843int
6844main ()
6845{
6846struct passwd pwd; (void)pwd.pw_gecos;
6847  ;
6848  return 0;
6849}
6850_ACEOF
6851if ac_fn_c_try_compile "$LINENO"; then :
6852  tcl_cv_pwd_pw_gecos=yes
6853else
6854  tcl_cv_pwd_pw_gecos=no
6855fi
6856rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6857fi
6858{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_pwd_pw_gecos" >&5
6859$as_echo "$tcl_cv_pwd_pw_gecos" >&6; }
6860if test $tcl_cv_pwd_pw_gecos = yes; then
6861
6862$as_echo "#define HAVE_PW_GECOS 1" >>confdefs.h
6863
6864fi
6865
6866#--------------------------------------------------------------------
6867#	On Mac OS X, we can build either with X11 or with Aqua
6868#--------------------------------------------------------------------
6869
6870if test "`uname -s`" = "Darwin" ; then
6871    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use Aqua" >&5
6872$as_echo_n "checking whether to use Aqua... " >&6; }
6873    # Check whether --enable-aqua was given.
6874if test "${enable_aqua+set}" = set; then :
6875  enableval=$enable_aqua; tk_aqua=$enableval
6876else
6877  tk_aqua=no
6878fi
6879
6880    if test $tk_aqua = yes -o $tk_aqua = cocoa; then
6881	tk_aqua=yes
6882	if test $tcl_corefoundation = no; then
6883	    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Aqua can only be used when CoreFoundation is available" >&5
6884$as_echo "$as_me: WARNING: Aqua can only be used when CoreFoundation is available" >&2;}
6885	    tk_aqua=no
6886	fi
6887	if test ! -d /System/Library/Frameworks/Cocoa.framework; then
6888	    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Aqua can only be used when Cocoa is available" >&5
6889$as_echo "$as_me: WARNING: Aqua can only be used when Cocoa is available" >&2;}
6890	    tk_aqua=no
6891	fi
6892	if test "`uname -r | awk -F. '{print $1}'`" -lt 9; then
6893	    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Aqua requires Mac OS X 10.5 or later" >&5
6894$as_echo "$as_me: WARNING: Aqua requires Mac OS X 10.5 or later" >&2;}
6895	    tk_aqua=no
6896	fi
6897    fi
6898    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tk_aqua" >&5
6899$as_echo "$tk_aqua" >&6; }
6900    if test "$fat_32_64" = yes; then
6901	if test $tk_aqua = no; then
6902	    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit X11" >&5
6903$as_echo_n "checking for 64-bit X11... " >&6; }
6904if ${tcl_cv_lib_x11_64+:} false; then :
6905  $as_echo_n "(cached) " >&6
6906else
6907
6908		for v in CFLAGS CPPFLAGS LDFLAGS; do
6909		    eval 'hold_'$v'="$'$v'";'$v'="`echo "$'$v' "|sed -e "s/-arch ppc / /g" -e "s/-arch i386 / /g"`"'
6910		done
6911		CPPFLAGS="$CPPFLAGS -I/usr/X11R6/include"
6912		LDFLAGS="$LDFLAGS -L/usr/X11R6/lib -lX11"
6913		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6914/* end confdefs.h.  */
6915#include <X11/Xlib.h>
6916int
6917main ()
6918{
6919XrmInitialize();
6920  ;
6921  return 0;
6922}
6923_ACEOF
6924if ac_fn_c_try_link "$LINENO"; then :
6925  tcl_cv_lib_x11_64=yes
6926else
6927  tcl_cv_lib_x11_64=no
6928fi
6929rm -f core conftest.err conftest.$ac_objext \
6930    conftest$ac_exeext conftest.$ac_ext
6931		for v in CFLAGS CPPFLAGS LDFLAGS; do
6932		    eval $v'="$hold_'$v'"'
6933		done
6934fi
6935{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_lib_x11_64" >&5
6936$as_echo "$tcl_cv_lib_x11_64" >&6; }
6937	fi
6938	# remove 64-bit arch flags from CFLAGS et al. for combined 32 & 64 bit
6939	# fat builds if configuration does not support 64-bit.
6940	if test "$tcl_cv_lib_x11_64" = no; then
6941	    { $as_echo "$as_me:${as_lineno-$LINENO}: Removing 64-bit architectures from compiler & linker flags" >&5
6942$as_echo "$as_me: Removing 64-bit architectures from compiler & linker flags" >&6;}
6943	    for v in CFLAGS CPPFLAGS LDFLAGS; do
6944		eval $v'="`echo "$'$v' "|sed -e "s/-arch ppc64 / /g" -e "s/-arch x86_64 / /g"`"'
6945	    done
6946	fi
6947    fi
6948    if test $tk_aqua = no; then
6949	# check if weak linking whole libraries is possible.
6950	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if ld accepts -weak-l flag" >&5
6951$as_echo_n "checking if ld accepts -weak-l flag... " >&6; }
6952if ${tcl_cv_ld_weak_l+:} false; then :
6953  $as_echo_n "(cached) " >&6
6954else
6955
6956	    hold_ldflags=$LDFLAGS
6957	    LDFLAGS="$LDFLAGS -Wl,-weak-lm"
6958	    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6959/* end confdefs.h.  */
6960#include <math.h>
6961int
6962main ()
6963{
6964double f = sin(1.0);
6965  ;
6966  return 0;
6967}
6968_ACEOF
6969if ac_fn_c_try_link "$LINENO"; then :
6970  tcl_cv_ld_weak_l=yes
6971else
6972  tcl_cv_ld_weak_l=no
6973fi
6974rm -f core conftest.err conftest.$ac_objext \
6975    conftest$ac_exeext conftest.$ac_ext
6976	    LDFLAGS=$hold_ldflags
6977fi
6978{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_ld_weak_l" >&5
6979$as_echo "$tcl_cv_ld_weak_l" >&6; }
6980    fi
6981    for ac_header in AvailabilityMacros.h
6982do :
6983  ac_fn_c_check_header_mongrel "$LINENO" "AvailabilityMacros.h" "ac_cv_header_AvailabilityMacros_h" "$ac_includes_default"
6984if test "x$ac_cv_header_AvailabilityMacros_h" = xyes; then :
6985  cat >>confdefs.h <<_ACEOF
6986#define HAVE_AVAILABILITYMACROS_H 1
6987_ACEOF
6988
6989fi
6990
6991done
6992
6993    if test "$ac_cv_header_AvailabilityMacros_h" = yes; then
6994	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if weak import is available" >&5
6995$as_echo_n "checking if weak import is available... " >&6; }
6996if ${tcl_cv_cc_weak_import+:} false; then :
6997  $as_echo_n "(cached) " >&6
6998else
6999
7000	    hold_cflags=$CFLAGS; CFLAGS="$CFLAGS -Werror"
7001	    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7002/* end confdefs.h.  */
7003
7004		    #ifdef __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__
7005		    #if __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ < 1020
7006		    #error __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ < 1020
7007		    #endif
7008		    #elif MAC_OS_X_VERSION_MIN_REQUIRED < 1020
7009		    #error MAC_OS_X_VERSION_MIN_REQUIRED < 1020
7010		    #endif
7011		    int rand(void) __attribute__((weak_import));
7012
7013int
7014main ()
7015{
7016rand();
7017  ;
7018  return 0;
7019}
7020_ACEOF
7021if ac_fn_c_try_link "$LINENO"; then :
7022  tcl_cv_cc_weak_import=yes
7023else
7024  tcl_cv_cc_weak_import=no
7025fi
7026rm -f core conftest.err conftest.$ac_objext \
7027    conftest$ac_exeext conftest.$ac_ext
7028	    CFLAGS=$hold_cflags
7029fi
7030{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_cc_weak_import" >&5
7031$as_echo "$tcl_cv_cc_weak_import" >&6; }
7032	if test $tcl_cv_cc_weak_import = yes; then
7033
7034$as_echo "#define HAVE_WEAK_IMPORT 1" >>confdefs.h
7035
7036	fi
7037	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if Darwin SUSv3 extensions are available" >&5
7038$as_echo_n "checking if Darwin SUSv3 extensions are available... " >&6; }
7039if ${tcl_cv_cc_darwin_c_source+:} false; then :
7040  $as_echo_n "(cached) " >&6
7041else
7042
7043	    hold_cflags=$CFLAGS; CFLAGS="$CFLAGS -Werror"
7044	    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7045/* end confdefs.h.  */
7046
7047		    #ifdef __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__
7048		    #if __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ < 1050
7049		    #error __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ < 1050
7050		    #endif
7051		    #elif MAC_OS_X_VERSION_MIN_REQUIRED < 1050
7052		    #error MAC_OS_X_VERSION_MIN_REQUIRED < 1050
7053		    #endif
7054		    #define _DARWIN_C_SOURCE 1
7055		    #include <sys/cdefs.h>
7056
7057int
7058main ()
7059{
7060
7061  ;
7062  return 0;
7063}
7064_ACEOF
7065if ac_fn_c_try_compile "$LINENO"; then :
7066  tcl_cv_cc_darwin_c_source=yes
7067else
7068  tcl_cv_cc_darwin_c_source=no
7069fi
7070rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7071	    CFLAGS=$hold_cflags
7072fi
7073{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_cc_darwin_c_source" >&5
7074$as_echo "$tcl_cv_cc_darwin_c_source" >&6; }
7075	if test $tcl_cv_cc_darwin_c_source = yes; then
7076
7077$as_echo "#define _DARWIN_C_SOURCE 1" >>confdefs.h
7078
7079	fi
7080    fi
7081else
7082    tk_aqua=no
7083fi
7084
7085if test $tk_aqua = yes; then
7086
7087$as_echo "#define MAC_OSX_TK 1" >>confdefs.h
7088
7089    LIBS="$LIBS -framework Cocoa -framework Carbon -framework IOKit -framework QuartzCore -framework Security"
7090    if test -d /System/Library/Frameworks/UserNotifications.framework; then
7091        LIBS="$LIBS -framework UserNotifications"
7092    fi
7093    EXTRA_CC_SWITCHES='-std=gnu99 -x objective-c'
7094    TK_WINDOWINGSYSTEM=AQUA
7095    if test -n "${enable_symbols}" -a "${enable_symbols}" != no; then
7096
7097$as_echo "#define TK_MAC_DEBUG 1" >>confdefs.h
7098
7099    fi
7100else
7101    #--------------------------------------------------------------------
7102    #	Locate the X11 header files and the X11 library archive.  Try
7103    #	the ac_path_x macro first, but if it doesn't find the X stuff
7104    #	(e.g. because there's no xmkmf program) then check through
7105    #	a list of possible directories.  Under some conditions the
7106    #	autoconf macro will return an include directory that contains
7107    #	no include files, so double-check its result just to be safe.
7108    #--------------------------------------------------------------------
7109
7110
7111    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
7112$as_echo_n "checking for X... " >&6; }
7113
7114
7115# Check whether --with-x was given.
7116if test "${with_x+set}" = set; then :
7117  withval=$with_x;
7118fi
7119
7120# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
7121if test "x$with_x" = xno; then
7122  # The user explicitly disabled X.
7123  have_x=disabled
7124else
7125  case $x_includes,$x_libraries in #(
7126    *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
7127    *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
7128  $as_echo_n "(cached) " >&6
7129else
7130  # One or both of the vars are not set, and there is no cached value.
7131ac_x_includes=no ac_x_libraries=no
7132rm -f -r conftest.dir
7133if mkdir conftest.dir; then
7134  cd conftest.dir
7135  cat >Imakefile <<'_ACEOF'
7136incroot:
7137	@echo incroot='${INCROOT}'
7138usrlibdir:
7139	@echo usrlibdir='${USRLIBDIR}'
7140libdir:
7141	@echo libdir='${LIBDIR}'
7142_ACEOF
7143  if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
7144    # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
7145    for ac_var in incroot usrlibdir libdir; do
7146      eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
7147    done
7148    # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
7149    for ac_extension in a so sl dylib la dll; do
7150      if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
7151	 test -f "$ac_im_libdir/libX11.$ac_extension"; then
7152	ac_im_usrlibdir=$ac_im_libdir; break
7153      fi
7154    done
7155    # Screen out bogus values from the imake configuration.  They are
7156    # bogus both because they are the default anyway, and because
7157    # using them would break gcc on systems where it needs fixed includes.
7158    case $ac_im_incroot in
7159	/usr/include) ac_x_includes= ;;
7160	*) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
7161    esac
7162    case $ac_im_usrlibdir in
7163	/usr/lib | /usr/lib64 | /lib | /lib64) ;;
7164	*) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
7165    esac
7166  fi
7167  cd ..
7168  rm -f -r conftest.dir
7169fi
7170
7171# Standard set of common directories for X headers.
7172# Check X11 before X11Rn because it is often a symlink to the current release.
7173ac_x_header_dirs='
7174/usr/X11/include
7175/usr/X11R7/include
7176/usr/X11R6/include
7177/usr/X11R5/include
7178/usr/X11R4/include
7179
7180/usr/include/X11
7181/usr/include/X11R7
7182/usr/include/X11R6
7183/usr/include/X11R5
7184/usr/include/X11R4
7185
7186/usr/local/X11/include
7187/usr/local/X11R7/include
7188/usr/local/X11R6/include
7189/usr/local/X11R5/include
7190/usr/local/X11R4/include
7191
7192/usr/local/include/X11
7193/usr/local/include/X11R7
7194/usr/local/include/X11R6
7195/usr/local/include/X11R5
7196/usr/local/include/X11R4
7197
7198/usr/X386/include
7199/usr/x386/include
7200/usr/XFree86/include/X11
7201
7202/usr/include
7203/usr/local/include
7204/usr/unsupported/include
7205/usr/athena/include
7206/usr/local/x11r5/include
7207/usr/lpp/Xamples/include
7208
7209/usr/openwin/include
7210/usr/openwin/share/include'
7211
7212if test "$ac_x_includes" = no; then
7213  # Guess where to find include files, by looking for Xlib.h.
7214  # First, try using that file with no special directory specified.
7215  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7216/* end confdefs.h.  */
7217#include <X11/Xlib.h>
7218_ACEOF
7219if ac_fn_c_try_cpp "$LINENO"; then :
7220  # We can compile using X headers with no special include directory.
7221ac_x_includes=
7222else
7223  for ac_dir in $ac_x_header_dirs; do
7224  if test -r "$ac_dir/X11/Xlib.h"; then
7225    ac_x_includes=$ac_dir
7226    break
7227  fi
7228done
7229fi
7230rm -f conftest.err conftest.i conftest.$ac_ext
7231fi # $ac_x_includes = no
7232
7233if test "$ac_x_libraries" = no; then
7234  # Check for the libraries.
7235  # See if we find them without any special options.
7236  # Don't add to $LIBS permanently.
7237  ac_save_LIBS=$LIBS
7238  LIBS="-lX11 $LIBS"
7239  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7240/* end confdefs.h.  */
7241#include <X11/Xlib.h>
7242int
7243main ()
7244{
7245XrmInitialize ()
7246  ;
7247  return 0;
7248}
7249_ACEOF
7250if ac_fn_c_try_link "$LINENO"; then :
7251  LIBS=$ac_save_LIBS
7252# We can link X programs with no special library path.
7253ac_x_libraries=
7254else
7255  LIBS=$ac_save_LIBS
7256for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
7257do
7258  # Don't even attempt the hair of trying to link an X program!
7259  for ac_extension in a so sl dylib la dll; do
7260    if test -r "$ac_dir/libX11.$ac_extension"; then
7261      ac_x_libraries=$ac_dir
7262      break 2
7263    fi
7264  done
7265done
7266fi
7267rm -f core conftest.err conftest.$ac_objext \
7268    conftest$ac_exeext conftest.$ac_ext
7269fi # $ac_x_libraries = no
7270
7271case $ac_x_includes,$ac_x_libraries in #(
7272  no,* | *,no | *\'*)
7273    # Didn't find X, or a directory has "'" in its name.
7274    ac_cv_have_x="have_x=no";; #(
7275  *)
7276    # Record where we found X for the cache.
7277    ac_cv_have_x="have_x=yes\
7278	ac_x_includes='$ac_x_includes'\
7279	ac_x_libraries='$ac_x_libraries'"
7280esac
7281fi
7282;; #(
7283    *) have_x=yes;;
7284  esac
7285  eval "$ac_cv_have_x"
7286fi # $with_x != no
7287
7288if test "$have_x" != yes; then
7289  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
7290$as_echo "$have_x" >&6; }
7291  no_x=yes
7292else
7293  # If each of the values was on the command line, it overrides each guess.
7294  test "x$x_includes" = xNONE && x_includes=$ac_x_includes
7295  test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
7296  # Update the cache value to reflect the command line values.
7297  ac_cv_have_x="have_x=yes\
7298	ac_x_includes='$x_includes'\
7299	ac_x_libraries='$x_libraries'"
7300  { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
7301$as_echo "libraries $x_libraries, headers $x_includes" >&6; }
7302fi
7303
7304    not_really_there=""
7305    if test "$no_x" = ""; then
7306	if test "$x_includes" = ""; then
7307	    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7308/* end confdefs.h.  */
7309#include <X11/Xlib.h>
7310_ACEOF
7311if ac_fn_c_try_cpp "$LINENO"; then :
7312
7313else
7314  not_really_there="yes"
7315fi
7316rm -f conftest.err conftest.i conftest.$ac_ext
7317	else
7318	    if test ! -r $x_includes/X11/Xlib.h; then
7319		not_really_there="yes"
7320	    fi
7321	fi
7322    fi
7323    if test "$no_x" = "yes" -o "$not_really_there" = "yes"; then
7324	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11 header files" >&5
7325$as_echo_n "checking for X11 header files... " >&6; }
7326	found_xincludes="no"
7327	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7328/* end confdefs.h.  */
7329#include <X11/Xlib.h>
7330_ACEOF
7331if ac_fn_c_try_cpp "$LINENO"; then :
7332  found_xincludes="yes"
7333else
7334  found_xincludes="no"
7335fi
7336rm -f conftest.err conftest.i conftest.$ac_ext
7337	if test "$found_xincludes" = "no"; then
7338	    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"
7339	    for i in $dirs ; do
7340		if test -r $i/X11/Xlib.h; then
7341		    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $i" >&5
7342$as_echo "$i" >&6; }
7343		    XINCLUDES=" -I$i"
7344		    found_xincludes="yes"
7345		    break
7346		fi
7347	    done
7348	fi
7349    else
7350	if test "$x_includes" != ""; then
7351	    XINCLUDES="-I$x_includes"
7352	    found_xincludes="yes"
7353	fi
7354    fi
7355    if test "$found_xincludes" = "no"; then
7356	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: couldn't find any!" >&5
7357$as_echo "couldn't find any!" >&6; }
7358    fi
7359
7360    if test "$no_x" = yes; then
7361	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11 libraries" >&5
7362$as_echo_n "checking for X11 libraries... " >&6; }
7363	XLIBSW=nope
7364	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"
7365	for i in $dirs ; do
7366	    if test -r $i/libX11.a -o -r $i/libX11.so -o -r $i/libX11.sl -o -r $i/libX11.dylib; then
7367		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $i" >&5
7368$as_echo "$i" >&6; }
7369		XLIBSW="-L$i -lX11"
7370		x_libraries="$i"
7371		break
7372	    fi
7373	done
7374    else
7375	if test "$x_libraries" = ""; then
7376	    XLIBSW=-lX11
7377	else
7378	    XLIBSW="-L$x_libraries -lX11"
7379	fi
7380    fi
7381    if test "$XLIBSW" = nope ; then
7382	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XCreateWindow in -lXwindow" >&5
7383$as_echo_n "checking for XCreateWindow in -lXwindow... " >&6; }
7384if ${ac_cv_lib_Xwindow_XCreateWindow+:} false; then :
7385  $as_echo_n "(cached) " >&6
7386else
7387  ac_check_lib_save_LIBS=$LIBS
7388LIBS="-lXwindow  $LIBS"
7389cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7390/* end confdefs.h.  */
7391
7392/* Override any GCC internal prototype to avoid an error.
7393   Use char because int might match the return type of a GCC
7394   builtin and then its argument prototype would still apply.  */
7395#ifdef __cplusplus
7396extern "C"
7397#endif
7398char XCreateWindow ();
7399int
7400main ()
7401{
7402return XCreateWindow ();
7403  ;
7404  return 0;
7405}
7406_ACEOF
7407if ac_fn_c_try_link "$LINENO"; then :
7408  ac_cv_lib_Xwindow_XCreateWindow=yes
7409else
7410  ac_cv_lib_Xwindow_XCreateWindow=no
7411fi
7412rm -f core conftest.err conftest.$ac_objext \
7413    conftest$ac_exeext conftest.$ac_ext
7414LIBS=$ac_check_lib_save_LIBS
7415fi
7416{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xwindow_XCreateWindow" >&5
7417$as_echo "$ac_cv_lib_Xwindow_XCreateWindow" >&6; }
7418if test "x$ac_cv_lib_Xwindow_XCreateWindow" = xyes; then :
7419  XLIBSW=-lXwindow
7420fi
7421
7422    fi
7423    if test "$XLIBSW" = nope ; then
7424	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: could not find any!  Using -lX11." >&5
7425$as_echo "could not find any!  Using -lX11." >&6; }
7426	XLIBSW=-lX11
7427    fi
7428
7429    TK_WINDOWINGSYSTEM=X11
7430fi
7431
7432#--------------------------------------------------------------------
7433#	Various manipulations on the search path used at runtime to
7434#	find shared libraries:
7435#	1. If the X library binaries are in a non-standard directory,
7436#	   add the X library location into that search path.
7437#	2. On systems such as AIX and Ultrix that use "-L" as the
7438#	   search path option, colons cannot be used to separate
7439#	   directories from each other. Change colons to " -L".
7440#	3. Create two sets of search flags, one for use in cc lines
7441#	   and the other for when the linker is invoked directly.  In
7442#	   the second case, '-Wl,' must be stripped off and commas must
7443#	   be replaced by spaces.
7444#--------------------------------------------------------------------
7445
7446if test "x${x_libraries}" != "x"; then
7447  if test "x${x_libraries}" != "xNONE"; then
7448    LIB_RUNTIME_DIR="${LIB_RUNTIME_DIR}:${x_libraries}"
7449  fi
7450fi
7451if test "${TCL_LD_SEARCH_FLAGS}" = '-L${LIB_RUNTIME_DIR}'; then
7452    LIB_RUNTIME_DIR=`echo ${LIB_RUNTIME_DIR} |sed -e 's/:/ -L/g'`
7453fi
7454
7455#--------------------------------------------------------------------
7456#	Check for the existence of various libraries.  The order here
7457#	is important, so that then end up in the right order in the
7458#	command line generated by make.  The -lsocket and -lnsl libraries
7459#	require a couple of special tricks:
7460#	1. Use "connect" and "accept" to check for -lsocket, and
7461#	   "gethostbyname" to check for -lnsl.
7462#	2. Use each function name only once:  can't redo a check because
7463#	   autoconf caches the results of the last check and won't redo it.
7464#	3. Use -lnsl and -lsocket only if they supply procedures that
7465#	   aren't already present in the normal libraries.  This is because
7466#	   IRIX 5.2 has libraries, but they aren't needed and they're
7467#	   bogus:  they goof up name resolution if used.
7468#	4. On some SVR4 systems, can't use -lsocket without -lnsl too.
7469#	   To get around this problem, check for both libraries together
7470#	   if -lsocket doesn't work by itself.
7471#--------------------------------------------------------------------
7472
7473if test $tk_aqua = no; then
7474    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lXbsd" >&5
7475$as_echo_n "checking for main in -lXbsd... " >&6; }
7476if ${ac_cv_lib_Xbsd_main+:} false; then :
7477  $as_echo_n "(cached) " >&6
7478else
7479  ac_check_lib_save_LIBS=$LIBS
7480LIBS="-lXbsd  $LIBS"
7481cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7482/* end confdefs.h.  */
7483
7484
7485int
7486main ()
7487{
7488return main ();
7489  ;
7490  return 0;
7491}
7492_ACEOF
7493if ac_fn_c_try_link "$LINENO"; then :
7494  ac_cv_lib_Xbsd_main=yes
7495else
7496  ac_cv_lib_Xbsd_main=no
7497fi
7498rm -f core conftest.err conftest.$ac_objext \
7499    conftest$ac_exeext conftest.$ac_ext
7500LIBS=$ac_check_lib_save_LIBS
7501fi
7502{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xbsd_main" >&5
7503$as_echo "$ac_cv_lib_Xbsd_main" >&6; }
7504if test "x$ac_cv_lib_Xbsd_main" = xyes; then :
7505  LIBS="$LIBS -lXbsd"
7506fi
7507
7508fi
7509
7510#--------------------------------------------------------------------
7511# One more check related to the X libraries.  The standard releases
7512# of Ultrix don't support the "xauth" mechanism, so send won't work
7513# unless TK_NO_SECURITY is defined.  However, there are usually copies
7514# of the MIT X server available as well, which do support xauth.
7515# Check for the MIT stuff and use it if it exists.
7516#
7517# Note: can't use ac_check_lib macro (at least, not in Autoconf 2.1)
7518# because it can't deal with the "-" in the library name.
7519#--------------------------------------------------------------------
7520
7521if test -d /usr/include/mit -a $tk_aqua = no; then
7522    { $as_echo "$as_me:${as_lineno-$LINENO}: checking MIT X libraries" >&5
7523$as_echo_n "checking MIT X libraries... " >&6; }
7524    tk_oldCFlags=$CFLAGS
7525    CFLAGS="$CFLAGS -I/usr/include/mit"
7526    tk_oldLibs=$LIBS
7527    LIBS="$LIBS -lX11-mit"
7528    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7529/* end confdefs.h.  */
7530
7531	#include <X11/Xlib.h>
7532
7533int
7534main ()
7535{
7536
7537	XOpenDisplay(0);
7538
7539  ;
7540  return 0;
7541}
7542_ACEOF
7543if ac_fn_c_try_link "$LINENO"; then :
7544
7545	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7546$as_echo "yes" >&6; }
7547	XLIBSW="-lX11-mit"
7548	XINCLUDES="-I/usr/include/mit"
7549
7550else
7551  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7552$as_echo "no" >&6; }
7553fi
7554rm -f core conftest.err conftest.$ac_objext \
7555    conftest$ac_exeext conftest.$ac_ext
7556    CFLAGS=$tk_oldCFlags
7557    LIBS=$tk_oldLibs
7558fi
7559
7560#--------------------------------------------------------------------
7561#	Check for freetype / fontconfig / Xft support.
7562#--------------------------------------------------------------------
7563
7564if test $tk_aqua = no; then
7565    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use xft" >&5
7566$as_echo_n "checking whether to use xft... " >&6; }
7567    # Check whether --enable-xft was given.
7568if test "${enable_xft+set}" = set; then :
7569  enableval=$enable_xft; enable_xft=$enableval
7570else
7571  enable_xft="default"
7572fi
7573
7574    XFT_CFLAGS=""
7575    XFT_LIBS=""
7576    if test "$enable_xft" = "no" ; then
7577	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_xft" >&5
7578$as_echo "$enable_xft" >&6; }
7579    else
7580	found_xft="yes"
7581			XFT_CFLAGS=`xft-config --cflags 2>/dev/null` || found_xft="no"
7582	XFT_LIBS=`xft-config --libs 2>/dev/null` || found_xft="no"
7583	if test "$found_xft" = "no" ; then
7584	    found_xft=yes
7585	    XFT_CFLAGS=`pkg-config --cflags xft fontconfig 2>/dev/null` || found_xft="no"
7586	    XFT_LIBS=`pkg-config --libs xft fontconfig 2>/dev/null` || found_xft="no"
7587	fi
7588	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $found_xft" >&5
7589$as_echo "$found_xft" >&6; }
7590		if test "$found_xft" = "yes" ; then
7591	    tk_oldCFlags=$CFLAGS
7592	    CFLAGS="$CFLAGS $XINCLUDES $XFT_CFLAGS"
7593	    tk_oldLibs=$LIBS
7594	    LIBS="$tk_oldLIBS $XFT_LIBS $XLIBSW"
7595	    ac_fn_c_check_header_compile "$LINENO" "X11/Xft/Xft.h" "ac_cv_header_X11_Xft_Xft_h" "#include <X11/Xlib.h>
7596"
7597if test "x$ac_cv_header_X11_Xft_Xft_h" = xyes; then :
7598
7599else
7600
7601		found_xft=no
7602
7603fi
7604
7605
7606	    CFLAGS=$tk_oldCFlags
7607	    LIBS=$tk_oldLibs
7608	fi
7609		if test "$found_xft" = "yes" ; then
7610	    tk_oldCFlags=$CFLAGS
7611	    CFLAGS="$CFLAGS $XINCLUDES $XFT_CFLAGS"
7612	    tk_oldLibs=$LIBS
7613	    LIBS="$tk_oldLIBS $XFT_LIBS $XLIBSW"
7614	    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XftFontOpen in -lXft" >&5
7615$as_echo_n "checking for XftFontOpen in -lXft... " >&6; }
7616if ${ac_cv_lib_Xft_XftFontOpen+:} false; then :
7617  $as_echo_n "(cached) " >&6
7618else
7619  ac_check_lib_save_LIBS=$LIBS
7620LIBS="-lXft  $LIBS"
7621cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7622/* end confdefs.h.  */
7623
7624/* Override any GCC internal prototype to avoid an error.
7625   Use char because int might match the return type of a GCC
7626   builtin and then its argument prototype would still apply.  */
7627#ifdef __cplusplus
7628extern "C"
7629#endif
7630char XftFontOpen ();
7631int
7632main ()
7633{
7634return XftFontOpen ();
7635  ;
7636  return 0;
7637}
7638_ACEOF
7639if ac_fn_c_try_link "$LINENO"; then :
7640  ac_cv_lib_Xft_XftFontOpen=yes
7641else
7642  ac_cv_lib_Xft_XftFontOpen=no
7643fi
7644rm -f core conftest.err conftest.$ac_objext \
7645    conftest$ac_exeext conftest.$ac_ext
7646LIBS=$ac_check_lib_save_LIBS
7647fi
7648{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xft_XftFontOpen" >&5
7649$as_echo "$ac_cv_lib_Xft_XftFontOpen" >&6; }
7650if test "x$ac_cv_lib_Xft_XftFontOpen" = xyes; then :
7651  cat >>confdefs.h <<_ACEOF
7652#define HAVE_LIBXFT 1
7653_ACEOF
7654
7655  LIBS="-lXft $LIBS"
7656
7657else
7658
7659		found_xft=no
7660
7661fi
7662
7663	    CFLAGS=$tk_oldCFlags
7664	    LIBS=$tk_oldLibs
7665	fi
7666		if test "$found_xft" = "yes" ; then
7667	    tk_oldCFlags=$CFLAGS
7668	    CFLAGS="$CFLAGS $XINCLUDES $XFT_CFLAGS"
7669	    tk_oldLibs=$LIBS
7670	    LIBS="$tk_oldLIBS $XFT_LIBS $XLIBSW -lfontconfig"
7671	    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FcFontSort in -lfontconfig" >&5
7672$as_echo_n "checking for FcFontSort in -lfontconfig... " >&6; }
7673if ${ac_cv_lib_fontconfig_FcFontSort+:} false; then :
7674  $as_echo_n "(cached) " >&6
7675else
7676  ac_check_lib_save_LIBS=$LIBS
7677LIBS="-lfontconfig  $LIBS"
7678cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7679/* end confdefs.h.  */
7680
7681/* Override any GCC internal prototype to avoid an error.
7682   Use char because int might match the return type of a GCC
7683   builtin and then its argument prototype would still apply.  */
7684#ifdef __cplusplus
7685extern "C"
7686#endif
7687char FcFontSort ();
7688int
7689main ()
7690{
7691return FcFontSort ();
7692  ;
7693  return 0;
7694}
7695_ACEOF
7696if ac_fn_c_try_link "$LINENO"; then :
7697  ac_cv_lib_fontconfig_FcFontSort=yes
7698else
7699  ac_cv_lib_fontconfig_FcFontSort=no
7700fi
7701rm -f core conftest.err conftest.$ac_objext \
7702    conftest$ac_exeext conftest.$ac_ext
7703LIBS=$ac_check_lib_save_LIBS
7704fi
7705{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fontconfig_FcFontSort" >&5
7706$as_echo "$ac_cv_lib_fontconfig_FcFontSort" >&6; }
7707if test "x$ac_cv_lib_fontconfig_FcFontSort" = xyes; then :
7708
7709		XFT_LIBS="$XFT_LIBS -lfontconfig"
7710
7711fi
7712
7713	    CFLAGS=$tk_oldCFlags
7714	    LIBS=$tk_oldLibs
7715	fi
7716		if test "$found_xft" = "no" ; then
7717	    if test "$enable_xft" = "yes" ; then
7718		{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't find xft configuration, or xft is unusable" >&5
7719$as_echo "$as_me: WARNING: Can't find xft configuration, or xft is unusable" >&2;}
7720	    fi
7721	    enable_xft=no
7722	    XFT_CFLAGS=""
7723	    XFT_LIBS=""
7724	else
7725            enable_xft=yes
7726	fi
7727    fi
7728    if test $enable_xft = "yes" ; then
7729	UNIX_FONT_OBJS=tkUnixRFont.o
7730
7731$as_echo "#define HAVE_XFT 1" >>confdefs.h
7732
7733    else
7734	UNIX_FONT_OBJS=tkUnixFont.o
7735    fi
7736
7737
7738
7739fi
7740
7741#--------------------------------------------------------------------
7742# XXX Do this last.
7743# It might modify XLIBSW which could affect other tests.
7744#
7745# Check whether the header and library for the XScreenSaver
7746# extension are available, and set HAVE_XSS if so.
7747# XScreenSaver is needed for Tk_GetUserInactiveTime().
7748#--------------------------------------------------------------------
7749
7750if test $tk_aqua = no; then
7751    tk_oldCFlags=$CFLAGS
7752    CFLAGS="$CFLAGS $XINCLUDES"
7753    tk_oldLibs=$LIBS
7754    LIBS="$tk_oldLibs $XLIBSW"
7755    xss_header_found=no
7756    xss_lib_found=no
7757    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to try to use XScreenSaver" >&5
7758$as_echo_n "checking whether to try to use XScreenSaver... " >&6; }
7759    # Check whether --enable-xss was given.
7760if test "${enable_xss+set}" = set; then :
7761  enableval=$enable_xss; enable_xss=$enableval
7762else
7763  enable_xss=yes
7764fi
7765
7766    if test "$enable_xss" = "no" ; then
7767	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_xss" >&5
7768$as_echo "$enable_xss" >&6; }
7769    else
7770	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_xss" >&5
7771$as_echo "$enable_xss" >&6; }
7772	ac_fn_c_check_header_compile "$LINENO" "X11/extensions/scrnsaver.h" "ac_cv_header_X11_extensions_scrnsaver_h" "#include <X11/Xlib.h>
7773"
7774if test "x$ac_cv_header_X11_extensions_scrnsaver_h" = xyes; then :
7775
7776	    xss_header_found=yes
7777
7778fi
7779
7780
7781	ac_fn_c_check_func "$LINENO" "XScreenSaverQueryInfo" "ac_cv_func_XScreenSaverQueryInfo"
7782if test "x$ac_cv_func_XScreenSaverQueryInfo" = xyes; then :
7783
7784else
7785
7786	    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XScreenSaverQueryInfo in -lXext" >&5
7787$as_echo_n "checking for XScreenSaverQueryInfo in -lXext... " >&6; }
7788if ${ac_cv_lib_Xext_XScreenSaverQueryInfo+:} false; then :
7789  $as_echo_n "(cached) " >&6
7790else
7791  ac_check_lib_save_LIBS=$LIBS
7792LIBS="-lXext  $LIBS"
7793cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7794/* end confdefs.h.  */
7795
7796/* Override any GCC internal prototype to avoid an error.
7797   Use char because int might match the return type of a GCC
7798   builtin and then its argument prototype would still apply.  */
7799#ifdef __cplusplus
7800extern "C"
7801#endif
7802char XScreenSaverQueryInfo ();
7803int
7804main ()
7805{
7806return XScreenSaverQueryInfo ();
7807  ;
7808  return 0;
7809}
7810_ACEOF
7811if ac_fn_c_try_link "$LINENO"; then :
7812  ac_cv_lib_Xext_XScreenSaverQueryInfo=yes
7813else
7814  ac_cv_lib_Xext_XScreenSaverQueryInfo=no
7815fi
7816rm -f core conftest.err conftest.$ac_objext \
7817    conftest$ac_exeext conftest.$ac_ext
7818LIBS=$ac_check_lib_save_LIBS
7819fi
7820{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XScreenSaverQueryInfo" >&5
7821$as_echo "$ac_cv_lib_Xext_XScreenSaverQueryInfo" >&6; }
7822if test "x$ac_cv_lib_Xext_XScreenSaverQueryInfo" = xyes; then :
7823
7824		XLIBSW="$XLIBSW -lXext"
7825		xss_lib_found=yes
7826
7827else
7828
7829		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XScreenSaverQueryInfo in -lXss" >&5
7830$as_echo_n "checking for XScreenSaverQueryInfo in -lXss... " >&6; }
7831if ${ac_cv_lib_Xss_XScreenSaverQueryInfo+:} false; then :
7832  $as_echo_n "(cached) " >&6
7833else
7834  ac_check_lib_save_LIBS=$LIBS
7835LIBS="-lXss -lXext $LIBS"
7836cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7837/* end confdefs.h.  */
7838
7839/* Override any GCC internal prototype to avoid an error.
7840   Use char because int might match the return type of a GCC
7841   builtin and then its argument prototype would still apply.  */
7842#ifdef __cplusplus
7843extern "C"
7844#endif
7845char XScreenSaverQueryInfo ();
7846int
7847main ()
7848{
7849return XScreenSaverQueryInfo ();
7850  ;
7851  return 0;
7852}
7853_ACEOF
7854if ac_fn_c_try_link "$LINENO"; then :
7855  ac_cv_lib_Xss_XScreenSaverQueryInfo=yes
7856else
7857  ac_cv_lib_Xss_XScreenSaverQueryInfo=no
7858fi
7859rm -f core conftest.err conftest.$ac_objext \
7860    conftest$ac_exeext conftest.$ac_ext
7861LIBS=$ac_check_lib_save_LIBS
7862fi
7863{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xss_XScreenSaverQueryInfo" >&5
7864$as_echo "$ac_cv_lib_Xss_XScreenSaverQueryInfo" >&6; }
7865if test "x$ac_cv_lib_Xss_XScreenSaverQueryInfo" = xyes; then :
7866
7867		    if test "$tcl_cv_ld_weak_l" = yes; then
7868			# On Darwin, weak link libXss if possible,
7869			# as it is only available on Tiger or later.
7870			XLIBSW="$XLIBSW -Wl,-weak-lXss -lXext"
7871		    else
7872			XLIBSW="$XLIBSW -lXss -lXext"
7873		    fi
7874		    xss_lib_found=yes
7875
7876fi
7877
7878
7879fi
7880
7881
7882fi
7883
7884    fi
7885    if test $enable_xss = yes -a $xss_lib_found = yes -a $xss_header_found = yes; then
7886
7887$as_echo "#define HAVE_XSS 1" >>confdefs.h
7888
7889    fi
7890    CFLAGS=$tk_oldCFlags
7891    LIBS=$tk_oldLibs
7892fi
7893
7894#--------------------------------------------------------------------
7895#	Figure out whether "char" is unsigned.  If so, set a
7896#	#define for __CHAR_UNSIGNED__.
7897#--------------------------------------------------------------------
7898
7899{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether char is unsigned" >&5
7900$as_echo_n "checking whether char is unsigned... " >&6; }
7901if ${ac_cv_c_char_unsigned+:} false; then :
7902  $as_echo_n "(cached) " >&6
7903else
7904  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7905/* end confdefs.h.  */
7906$ac_includes_default
7907int
7908main ()
7909{
7910static int test_array [1 - 2 * !(((char) -1) < 0)];
7911test_array [0] = 0;
7912return test_array [0];
7913
7914  ;
7915  return 0;
7916}
7917_ACEOF
7918if ac_fn_c_try_compile "$LINENO"; then :
7919  ac_cv_c_char_unsigned=no
7920else
7921  ac_cv_c_char_unsigned=yes
7922fi
7923rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7924fi
7925{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_char_unsigned" >&5
7926$as_echo "$ac_cv_c_char_unsigned" >&6; }
7927if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
7928  $as_echo "#define __CHAR_UNSIGNED__ 1" >>confdefs.h
7929
7930fi
7931
7932
7933#--------------------------------------------------------------------
7934#	The statements below define a collection of symbols related to
7935#	building libtk as a shared library instead of a static library.
7936#--------------------------------------------------------------------
7937
7938eval eval "TK_UNSHARED_LIB_SUFFIX=${UNSHARED_LIB_SUFFIX}"
7939eval eval "TK_SHARED_LIB_SUFFIX=${SHARED_LIB_SUFFIX}"
7940eval "TK_LIB_FILE_TCL8=libtk${LIB_SUFFIX}"
7941if test ${TCL_MAJOR_VERSION} = 8 ; then
7942eval "TK_LIB_FILE=libtk${LIB_SUFFIX}"
7943else
7944eval "TK_LIB_FILE=libtcl9tk${LIB_SUFFIX}"
7945fi
7946eval "TK_LIB_FILE_TCL9=libtcl9tk${LIB_SUFFIX}"
7947
7948# tkConfig.sh needs a version of the _LIB_SUFFIX that has been eval'ed
7949# since on some platforms TK_LIB_FILE contains shell escapes.
7950
7951eval "TK_LIB_FILE=${TK_LIB_FILE}"
7952
7953if test "${SHARED_BUILD}" = "1" -a "${SHLIB_SUFFIX}" != ""; then
7954    SHLIB_LD_LIBS="${SHLIB_LD_LIBS} \${TCL_STUB_LIB_SPEC}"
7955    TCL_STUB_FLAGS="-DUSE_TCL_STUBS"
7956fi
7957
7958test -z "$TK_LIBRARY" && TK_LIBRARY='$(prefix)/lib/tk$(VERSION)'
7959PRIVATE_INCLUDE_DIR='$(includedir)'
7960HTML_DIR='$(DISTDIR)/html'
7961TK_PKG_DIR='tk$(VERSION)'
7962TK_RSRC_FILE='tk$(VERSION).rsrc'
7963WISH_RSRC_FILE='wish$(VERSION).rsrc'
7964
7965# Note:  in the following variable, it's important to use the absolute
7966# path name of the Tcl directory rather than "..":  this is because
7967# AIX remembers this path and will attempt to use it at run-time to look
7968# up the Tcl library.
7969
7970if test "`uname -s`" = "Darwin" ; then
7971
7972    if test "`uname -s`" = "Darwin" ; then
7973	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to package libraries" >&5
7974$as_echo_n "checking how to package libraries... " >&6; }
7975	# Check whether --enable-framework was given.
7976if test "${enable_framework+set}" = set; then :
7977  enableval=$enable_framework; enable_framework=$enableval
7978else
7979  enable_framework=no
7980fi
7981
7982	if test $enable_framework = yes; then
7983	    if test $SHARED_BUILD = 0; then
7984		{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Frameworks can only be built if --enable-shared is yes" >&5
7985$as_echo "$as_me: WARNING: Frameworks can only be built if --enable-shared is yes" >&2;}
7986		enable_framework=no
7987	    fi
7988	    if test $tcl_corefoundation = no; then
7989		{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Frameworks can only be used when CoreFoundation is available" >&5
7990$as_echo "$as_me: WARNING: Frameworks can only be used when CoreFoundation is available" >&2;}
7991		enable_framework=no
7992	    fi
7993	fi
7994	if test $enable_framework = yes; then
7995	    { $as_echo "$as_me:${as_lineno-$LINENO}: result: framework" >&5
7996$as_echo "framework" >&6; }
7997	    FRAMEWORK_BUILD=1
7998	else
7999	    if test $SHARED_BUILD = 1; then
8000		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: shared library" >&5
8001$as_echo "shared library" >&6; }
8002	    else
8003		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: static library" >&5
8004$as_echo "static library" >&6; }
8005	    fi
8006	    FRAMEWORK_BUILD=0
8007	fi
8008    fi
8009
8010    TK_SHLIB_LD_EXTRAS="-compatibility_version ${TK_VERSION} -current_version ${TK_VERSION}`echo ${TK_PATCH_LEVEL} | awk '{match($0, "\\\.[0-9]+"); print substr($0,RSTART,RLENGTH)}'`"
8011    TK_SHLIB_LD_EXTRAS="${TK_SHLIB_LD_EXTRAS}"' -install_name "${DYLIB_INSTALL_DIR}/${TK_LIB_FILE}" -unexported_symbols_list $$(f=$(TK_LIB_FILE).E && nm -gp tkMacOSX*.o 2>/dev/null | awk "/^[0-9a-f]+ . \.objc/ {print \$$3}" > $$f && nm -gjp "$(TCL_BIN_DIR)"/$(TCL_STUB_LIB_FILE) | grep ^_[^_] >> $$f && echo $$f)'
8012    echo "$LDFLAGS " | grep -q -- '-prebind ' && TK_SHLIB_LD_EXTRAS="${TK_SHLIB_LD_EXTRAS}"' -seg1addr 0xb000000'
8013    TK_SHLIB_LD_EXTRAS="${TK_SHLIB_LD_EXTRAS}"' -sectcreate __TEXT __info_plist Tk-Info.plist'
8014    EXTRA_WISH_LIBS='-sectcreate __TEXT __info_plist Wish-Info.plist'
8015    EXTRA_WISH_LIBS=${EXTRA_WISH_LIBS}' -sectcreate __TEXT __credits_html Credits.html'
8016    if test "${SHARED_BUILD}" = "0"; then
8017	EXTRA_WISH_LIBS=${EXTRA_WISH_LIBS}' -ObjC'
8018    fi
8019    EXTRA_APP_CC_SWITCHES="${EXTRA_APP_CC_SWITCHES}"' -mdynamic-no-pic'
8020    ac_config_files="$ac_config_files Tk-Info.plist:../macosx/Tk-Info.plist.in Wish-Info.plist:../macosx/Wish-Info.plist.in Credits.html:../macosx/Credits.html.in"
8021
8022    for l in ${LOCALES}; do CFBUNDLELOCALIZATIONS="${CFBUNDLELOCALIZATIONS}<string>$l</string>"; done
8023    TK_YEAR="`date +%Y`"
8024fi
8025
8026if test "$FRAMEWORK_BUILD" = "1" ; then
8027
8028$as_echo "#define TK_FRAMEWORK 1" >>confdefs.h
8029
8030    # Construct a fake local framework structure to make linking with
8031    # '-framework Tk' and running of tktest work
8032    ac_config_commands="$ac_config_commands Tk.framework"
8033
8034    LD_LIBRARY_PATH_VAR="DYLD_FRAMEWORK_PATH"
8035    if test "${libdir}" = '${exec_prefix}/lib'; then
8036        # override libdir default
8037        libdir="/Library/Frameworks"
8038    fi
8039    if test ${TCL_MAJOR_VERSION} = 8 ; then
8040	TK_LIB_FILE="Tk"
8041    else
8042	TK_LIB_FILE="Tk"
8043    fi
8044    TK_LIB_FILE_TCL8="Tk"
8045    TK_LIB_FILE_TCL9="Tk"
8046    TK_LIB_FLAG="-framework Tk"
8047    TK_BUILD_LIB_SPEC="-F`pwd | sed -e 's/ /\\\\ /g'` -framework Tk"
8048    TK_LIB_SPEC="-F${libdir} -framework Tk"
8049    libdir="${libdir}/Tk.framework/Versions/\${VERSION}"
8050    TK_LIBRARY="${libdir}/Resources/Scripts"
8051    TK_PKG_DIR="Resources/Scripts"
8052    TK_RSRC_FILE="Tk.rsrc"
8053    WISH_RSRC_FILE="Wish.rsrc"
8054    includedir="${libdir}/Headers"
8055    PRIVATE_INCLUDE_DIR="${libdir}/PrivateHeaders"
8056    HTML_DIR="${libdir}/Resources/Documentation/Reference/Tk"
8057    EXTRA_INSTALL="install-private-headers html-tk"
8058    EXTRA_BUILD_HTML='@ln -fs contents.htm "$(HTML_INSTALL_DIR)"/TkTOC.html'
8059    EXTRA_INSTALL_BINARIES='@echo "Installing Info.plist to $(LIB_INSTALL_DIR)/Resources/" && $(INSTALL_DATA_DIR) "$(LIB_INSTALL_DIR)/Resources" && $(INSTALL_DATA) Tk-Info.plist "$(LIB_INSTALL_DIR)/Resources/Info.plist"'
8060    EXTRA_INSTALL_BINARIES="$EXTRA_INSTALL_BINARIES"' && echo "Installing Credits.html to $(LIB_INSTALL_DIR)/Resources/" && $(INSTALL_DATA_DIR) "$(LIB_INSTALL_DIR)/Resources" && $(INSTALL_DATA) Credits.html "$(LIB_INSTALL_DIR)/Resources"'
8061    EXTRA_INSTALL_BINARIES="$EXTRA_INSTALL_BINARIES"' && echo "Installing license.terms to $(LIB_INSTALL_DIR)/Resources/" && $(INSTALL_DATA) "$(TOP_DIR)/license.terms" "$(LIB_INSTALL_DIR)/Resources"'
8062    if test $tk_aqua = yes; then
8063	EXTRA_INSTALL_BINARIES="$EXTRA_INSTALL_BINARIES"' && echo "Installing Images to $(LIB_INSTALL_DIR)/Resources/" && $(INSTALL_DATA_DIR) "$(LIB_INSTALL_DIR)/Resources" && for i in Tk.tiff Tk.icns; do $(INSTALL_DATA) "$(MAC_OSX_DIR)/$$i" "$(LIB_INSTALL_DIR)/Resources"; done'
8064	EXTRA_INSTALL_BINARIES="$EXTRA_INSTALL_BINARIES"' && echo "Installing wish$(VERSION) script to $(INSTALL_ROOT)/'"${bindir}"'/" && $(INSTALL_DATA_DIR) "$(INSTALL_ROOT)/'"${bindir}"'" && printf > "$(INSTALL_ROOT)/'"${bindir}"'/wish$(VERSION)" "#!/bin/sh\n\"\$$(dirname \$$0)'"`eval d="${bindir}"; echo "$d" | sed -e 's#/[^/][^/]*#/..#g'`"'$(bindir)/Wish\" \"\$$@\"" && chmod +x "$(INSTALL_ROOT)/'"${bindir}"'/wish$(VERSION)"'
8065	bindir="${libdir}/Resources/Wish.app/Contents/MacOS"
8066	EXTRA_INSTALL_BINARIES="$EXTRA_INSTALL_BINARIES"' && echo "Installing Info.plist to $(BIN_INSTALL_DIR)/.." && $(INSTALL_DATA) Wish-Info.plist "$(BIN_INSTALL_DIR)/../Info.plist" && mv -f "$(BIN_INSTALL_DIR)/wish$(VERSION)" "$(BIN_INSTALL_DIR)/Wish"'
8067	EXTRA_INSTALL_BINARIES="$EXTRA_INSTALL_BINARIES"' && echo "Installing Wish.icns to $(BIN_INSTALL_DIR)/../Resources" && $(INSTALL_DATA_DIR) "$(BIN_INSTALL_DIR)/../Resources"'
8068	EXTRA_INSTALL_BINARIES="$EXTRA_INSTALL_BINARIES"' && $(INSTALL_DATA) "$(MAC_OSX_DIR)/Tk.icns" "$(BIN_INSTALL_DIR)/../Resources/Wish.icns"'
8069	EXTRA_INSTALL_BINARIES="$EXTRA_INSTALL_BINARIES"' && echo "Installing Wish.sdef to $(BIN_INSTALL_DIR)/../Resources" && $(INSTALL_DATA) "$(MAC_OSX_DIR)/Wish.sdef" "$(BIN_INSTALL_DIR)/../Resources"'
8070	EXTRA_INSTALL_BINARIES="$EXTRA_INSTALL_BINARIES"' && echo "Installing Credits.html to $(BIN_INSTALL_DIR)/../Resources" && $(INSTALL_DATA) Credits.html "$(BIN_INSTALL_DIR)/../Resources"'
8071    fi
8072    EXTRA_INSTALL_BINARIES="$EXTRA_INSTALL_BINARIES"' && echo "Finalizing Tk.framework" && rm -f "$(LIB_INSTALL_DIR)/../Current" && ln -s "$(VERSION)" "$(LIB_INSTALL_DIR)/../Current" && for f in "$(LIB_FILE)" tkConfig.sh Resources Headers PrivateHeaders; do rm -f "$(LIB_INSTALL_DIR)/../../$$f" && ln -s "Versions/Current/$$f" "$(LIB_INSTALL_DIR)/../.."; done && f="$(STUB_LIB_FILE)" && rm -f "$(LIB_INSTALL_DIR)/../../$$f" && ln -s "Versions/$(VERSION)/$$f" "$(LIB_INSTALL_DIR)/../.."'
8073    # Don't use AC_DEFINE for the following as the framework version define
8074    # needs to go into the Makefile even when using autoheader, so that we
8075    # can pick up a potential make override of VERSION. Also, don't put this
8076    # into CFLAGS as it should not go into tkConfig.sh
8077    EXTRA_CC_SWITCHES="$EXTRA_CC_SWITCHES"' -DTK_FRAMEWORK_VERSION=\"$(VERSION)\"'
8078else
8079    if test $tk_aqua = yes; then
8080        EXTRA_INSTALL_BINARIES='@echo "Installing Images to $(LIB_INSTALL_DIR)/" && $(INSTALL_DATA_DIR) "$(LIB_INSTALL_DIR)" && for i in Tk.tiff Tk.icns; do $(INSTALL_DATA) "$(MAC_OSX_DIR)/$$i" "$(LIB_INSTALL_DIR)"; done'
8081    fi
8082    # libdir must be a fully qualified path and not ${exec_prefix}/lib
8083    eval libdir="$libdir"
8084    TK_LIB_FLAG="-l"
8085    if test "${TCL_MAJOR_VERSION}" -gt 8 ; then
8086	TK_LIB_FLAG="${TK_LIB_FLAG}tcl9"
8087    fi
8088    if test "${ac_cv_cygwin}" = "yes" -a "$SHARED_BUILD" = "1"; then
8089	TK_LIB_FLAG="${TK_LIB_FLAG}tk`echo ${TK_VERSION} | tr -d .`"
8090	TK_BUILD_LIB_SPEC="-L\$(TOP_DIR)/win ${TK_LIB_FLAG}"
8091    else
8092	if test "${TCL_LIB_VERSIONS_OK}" = "ok"; then
8093	    TK_LIB_FLAG="${TK_LIB_FLAG}tk${TK_VERSION}"
8094	else
8095	    TK_LIB_FLAG="${TK_LIB_FLAG}tk`echo ${TK_VERSION} | tr -d .`"
8096	fi
8097	TK_BUILD_LIB_SPEC="-L`pwd | sed -e 's/ /\\\\ /g'` ${TK_LIB_FLAG}"
8098    fi
8099    TK_LIB_SPEC="-L${libdir} ${TK_LIB_FLAG}"
8100fi
8101
8102#--------------------------------------------------------------------
8103#	Zipfs support - Tip 430
8104#--------------------------------------------------------------------
8105# Check whether --enable-zipfs was given.
8106if test "${enable_zipfs+set}" = set; then :
8107  enableval=$enable_zipfs; tcl_ok=$enableval
8108else
8109  tcl_ok=yes
8110fi
8111
8112if test "$tcl_ok" = "yes" -a "x$enable_framework" != "xyes"; then
8113    #
8114    # Find a native compiler
8115    #
8116    # Put a plausible default for CC_FOR_BUILD in Makefile.
8117    if test -z "$CC_FOR_BUILD"; then
8118      if test "x$cross_compiling" = "xno"; then
8119        CC_FOR_BUILD='$(CC)'
8120      else
8121        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc" >&5
8122$as_echo_n "checking for gcc... " >&6; }
8123        if ${ac_cv_path_cc+:} false; then :
8124  $as_echo_n "(cached) " >&6
8125else
8126
8127            search_path=`echo ${PATH} | sed -e 's/:/ /g'`
8128            for dir in $search_path ; do
8129                for j in `ls -r $dir/gcc 2> /dev/null` \
8130                        `ls -r $dir/gcc 2> /dev/null` ; do
8131                    if test x"$ac_cv_path_cc" = x ; then
8132                        if test -f "$j" ; then
8133                            ac_cv_path_cc=$j
8134                            break
8135                        fi
8136                    fi
8137                done
8138            done
8139
8140fi
8141
8142      fi
8143    fi
8144
8145    # Also set EXEEXT_FOR_BUILD.
8146    if test "x$cross_compiling" = "xno"; then
8147      EXEEXT_FOR_BUILD='$(EXEEXT)'
8148      OBJEXT_FOR_BUILD='$(OBJEXT)'
8149    else
8150      OBJEXT_FOR_BUILD='.no'
8151      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for build system executable suffix" >&5
8152$as_echo_n "checking for build system executable suffix... " >&6; }
8153if ${bfd_cv_build_exeext+:} false; then :
8154  $as_echo_n "(cached) " >&6
8155else
8156  rm -f conftest*
8157         echo 'int main () { return 0; }' > conftest.c
8158         bfd_cv_build_exeext=
8159         ${CC_FOR_BUILD} -o conftest conftest.c 1>&5 2>&5
8160         for file in conftest.*; do
8161           case $file in
8162           *.c | *.o | *.obj | *.ilk | *.pdb) ;;
8163           *) bfd_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
8164           esac
8165         done
8166         rm -f conftest*
8167         test x"${bfd_cv_build_exeext}" = x && bfd_cv_build_exeext=no
8168fi
8169{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_build_exeext" >&5
8170$as_echo "$bfd_cv_build_exeext" >&6; }
8171      EXEEXT_FOR_BUILD=""
8172      test x"${bfd_cv_build_exeext}" != xno && EXEEXT_FOR_BUILD=${bfd_cv_build_exeext}
8173    fi
8174
8175    #
8176    # Find a native zip implementation
8177    #
8178
8179    MACHER_PROG=""
8180    ZIP_PROG=""
8181    ZIP_PROG_OPTIONS=""
8182    ZIP_PROG_VFSSEARCH=""
8183    ZIP_INSTALL_OBJS=""
8184
8185    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for macher" >&5
8186$as_echo_n "checking for macher... " >&6; }
8187    if ${ac_cv_path_macher+:} false; then :
8188  $as_echo_n "(cached) " >&6
8189else
8190
8191    search_path=`echo ${PATH} | sed -e 's/:/ /g'`
8192    for dir in $search_path ; do
8193        for j in `ls -r $dir/macher 2> /dev/null` \
8194            `ls -r $dir/macher 2> /dev/null` ; do
8195        if test x"$ac_cv_path_macher" = x ; then
8196            if test -f "$j" ; then
8197            ac_cv_path_macher=$j
8198            break
8199            fi
8200        fi
8201        done
8202    done
8203
8204fi
8205
8206    if test -f "$ac_cv_path_macher" ; then
8207        MACHER_PROG="$ac_cv_path_macher"
8208        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MACHER_PROG" >&5
8209$as_echo "$MACHER_PROG" >&6; }
8210        { $as_echo "$as_me:${as_lineno-$LINENO}: result: Found macher in environment" >&5
8211$as_echo "Found macher in environment" >&6; }
8212    fi
8213    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for zip" >&5
8214$as_echo_n "checking for zip... " >&6; }
8215    if ${ac_cv_path_zip+:} false; then :
8216  $as_echo_n "(cached) " >&6
8217else
8218
8219    search_path=`echo ${PATH} | sed -e 's/:/ /g'`
8220    for dir in $search_path ; do
8221        for j in `ls -r $dir/zip 2> /dev/null` \
8222            `ls -r $dir/zip 2> /dev/null` ; do
8223        if test x"$ac_cv_path_zip" = x ; then
8224            if test -f "$j" ; then
8225            ac_cv_path_zip=$j
8226            break
8227            fi
8228        fi
8229        done
8230    done
8231
8232fi
8233
8234    if test -f "$ac_cv_path_zip" ; then
8235        ZIP_PROG="$ac_cv_path_zip"
8236        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP_PROG" >&5
8237$as_echo "$ZIP_PROG" >&6; }
8238        ZIP_PROG_OPTIONS="-rq"
8239        ZIP_PROG_VFSSEARCH="*"
8240        { $as_echo "$as_me:${as_lineno-$LINENO}: result: Found INFO Zip in environment" >&5
8241$as_echo "Found INFO Zip in environment" >&6; }
8242        # Use standard arguments for zip
8243    else
8244        # It is not an error if an installed version of Zip can't be located.
8245        # We can use the locally distributed minizip instead
8246        ZIP_PROG="./minizip${EXEEXT_FOR_BUILD}"
8247        ZIP_PROG_OPTIONS="-o -r"
8248        ZIP_PROG_VFSSEARCH="*"
8249        ZIP_INSTALL_OBJS="minizip${EXEEXT_FOR_BUILD}"
8250        { $as_echo "$as_me:${as_lineno-$LINENO}: result: No zip found on PATH. Building minizip" >&5
8251$as_echo "No zip found on PATH. Building minizip" >&6; }
8252    fi
8253
8254
8255
8256
8257
8258
8259	ZIPFS_BUILD=1
8260	TK_ZIP_FILE=libtk${TK_MAJOR_VERSION}.${TK_MINOR_VERSION}${TK_PATCH_LEVEL}.zip
8261else
8262	ZIPFS_BUILD=0
8263	TK_ZIP_FILE=
8264fi
8265# Do checking message here to not mess up interleaved configure output
8266{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for building with zipfs" >&5
8267$as_echo_n "checking for building with zipfs... " >&6; }
8268if test "${ZIPFS_BUILD}" = 1; then
8269    if test "${SHARED_BUILD}" = 0; then
8270       ZIPFS_BUILD=2;
8271
8272$as_echo "#define ZIPFS_BUILD 2" >>confdefs.h
8273
8274       INSTALL_LIBRARIES=install-demos
8275       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8276$as_echo "yes" >&6; }
8277     else
8278
8279$as_echo "#define ZIPFS_BUILD 1" >>confdefs.h
8280\
8281       INSTALL_LIBRARIES=install-demos
8282       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8283$as_echo "yes" >&6; }
8284    fi
8285else
8286{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8287$as_echo "no" >&6; }
8288INSTALL_LIBRARIES=install-libraries
8289INSTALL_MSGS=install-msgs
8290fi
8291
8292
8293
8294
8295
8296
8297#--------------------------------------------------------------------
8298#       The statements below define various symbols relating to Tk
8299#       stub support.
8300#--------------------------------------------------------------------
8301
8302# Replace ${VERSION} with contents of ${TK_VERSION}
8303eval "TK_STUB_LIB_FILE=libtkstub${TK_UNSHARED_LIB_SUFFIX}"
8304eval "TK_STUB_LIB_DIR=${libdir}"
8305
8306if test "${TCL_LIB_VERSIONS_OK}" = "ok"; then
8307    TK_STUB_LIB_FLAG="-ltkstub${TK_VERSION}"
8308else
8309    TK_STUB_LIB_FLAG="-ltkstub`echo ${TK_VERSION} | tr -d .`"
8310fi
8311
8312TK_BUILD_STUB_LIB_SPEC="-L`pwd | sed -e 's/ /\\\\ /g'` ${TK_STUB_LIB_FLAG}"
8313TK_STUB_LIB_SPEC="-L${TK_STUB_LIB_DIR} ${TK_STUB_LIB_FLAG}"
8314TK_BUILD_STUB_LIB_PATH="`pwd`/${TK_STUB_LIB_FILE}"
8315TK_STUB_LIB_PATH="${TK_STUB_LIB_DIR}/${TK_STUB_LIB_FILE}"
8316
8317# Install time header dir can be set via --includedir
8318eval "TK_INCLUDE_SPEC=\"-I${includedir}\""
8319
8320#------------------------------------------------------------------------
8321# Demo dir
8322#------------------------------------------------------------------------
8323
8324if test x"${DEMO_DIR}" = x; then :
8325  DEMO_DIR='$(TK_LIBRARY)/demos'
8326fi
8327eval "TK_DEMO_DIR=\"`echo ${DEMO_DIR} | tr '()' '{}'`\""
8328eval "TK_DEMO_DIR=\"`echo ${TK_DEMO_DIR} | tr '()' '{}'`\""
8329
8330
8331
8332#------------------------------------------------------------------------
8333# tkConfig.sh refers to this by a different name
8334#------------------------------------------------------------------------
8335
8336TK_SHARED_BUILD=${SHARED_BUILD}
8337
8338
8339
8340
8341
8342
8343
8344
8345
8346
8347
8348
8349
8350
8351
8352
8353
8354
8355
8356
8357
8358
8359
8360
8361
8362
8363
8364
8365
8366
8367
8368
8369
8370
8371
8372
8373
8374
8375
8376
8377
8378
8379
8380
8381
8382
8383
8384
8385
8386
8387
8388
8389
8390
8391ac_config_files="$ac_config_files Makefile:../unix/Makefile.in tkConfig.sh:../unix/tkConfig.sh.in tk.pc:../unix/tk.pc.in"
8392
8393cat >confcache <<\_ACEOF
8394# This file is a shell script that caches the results of configure
8395# tests run on this system so they can be shared between configure
8396# scripts and configure runs, see configure's option --config-cache.
8397# It is not useful on other systems.  If it contains results you don't
8398# want to keep, you may remove or edit it.
8399#
8400# config.status only pays attention to the cache file if you give it
8401# the --recheck option to rerun configure.
8402#
8403# `ac_cv_env_foo' variables (set or unset) will be overridden when
8404# loading this file, other *unset* `ac_cv_foo' will be assigned the
8405# following values.
8406
8407_ACEOF
8408
8409# The following way of writing the cache mishandles newlines in values,
8410# but we know of no workaround that is simple, portable, and efficient.
8411# So, we kill variables containing newlines.
8412# Ultrix sh set writes to stderr and can't be redirected directly,
8413# and sets the high bit in the cache file unless we assign to the vars.
8414(
8415  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
8416    eval ac_val=\$$ac_var
8417    case $ac_val in #(
8418    *${as_nl}*)
8419      case $ac_var in #(
8420      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
8421$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
8422      esac
8423      case $ac_var in #(
8424      _ | IFS | as_nl) ;; #(
8425      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
8426      *) { eval $ac_var=; unset $ac_var;} ;;
8427      esac ;;
8428    esac
8429  done
8430
8431  (set) 2>&1 |
8432    case $as_nl`(ac_space=' '; set) 2>&1` in #(
8433    *${as_nl}ac_space=\ *)
8434      # `set' does not quote correctly, so add quotes: double-quote
8435      # substitution turns \\\\ into \\, and sed turns \\ into \.
8436      sed -n \
8437	"s/'/'\\\\''/g;
8438	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
8439      ;; #(
8440    *)
8441      # `set' quotes correctly as required by POSIX, so do not add quotes.
8442      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
8443      ;;
8444    esac |
8445    sort
8446) |
8447  sed '
8448     /^ac_cv_env_/b end
8449     t clear
8450     :clear
8451     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
8452     t end
8453     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
8454     :end' >>confcache
8455if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
8456  if test -w "$cache_file"; then
8457    if test "x$cache_file" != "x/dev/null"; then
8458      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
8459$as_echo "$as_me: updating cache $cache_file" >&6;}
8460      if test ! -f "$cache_file" || test -h "$cache_file"; then
8461	cat confcache >"$cache_file"
8462      else
8463        case $cache_file in #(
8464        */* | ?:*)
8465	  mv -f confcache "$cache_file"$$ &&
8466	  mv -f "$cache_file"$$ "$cache_file" ;; #(
8467        *)
8468	  mv -f confcache "$cache_file" ;;
8469	esac
8470      fi
8471    fi
8472  else
8473    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
8474$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
8475  fi
8476fi
8477rm -f confcache
8478
8479test "x$prefix" = xNONE && prefix=$ac_default_prefix
8480# Let make expand exec_prefix.
8481test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
8482
8483DEFS=-DHAVE_CONFIG_H
8484
8485ac_libobjs=
8486ac_ltlibobjs=
8487U=
8488for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
8489  # 1. Remove the extension, and $U if already installed.
8490  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
8491  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
8492  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
8493  #    will be set to the directory where LIBOBJS objects are built.
8494  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
8495  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
8496done
8497LIBOBJS=$ac_libobjs
8498
8499LTLIBOBJS=$ac_ltlibobjs
8500
8501
8502DEFS="-DHAVE_TK_CONFIG_H  -imacros tkConfig.h"
8503CFLAGS="${CFLAGS} ${CPPFLAGS}"; CPPFLAGS=""
8504
8505
8506: "${CONFIG_STATUS=./config.status}"
8507ac_write_fail=0
8508ac_clean_files_save=$ac_clean_files
8509ac_clean_files="$ac_clean_files $CONFIG_STATUS"
8510{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
8511$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
8512as_write_fail=0
8513cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
8514#! $SHELL
8515# Generated by $as_me.
8516# Run this file to recreate the current configuration.
8517# Compiler output produced by configure, useful for debugging
8518# configure, is in config.log if it exists.
8519
8520debug=false
8521ac_cs_recheck=false
8522ac_cs_silent=false
8523
8524SHELL=\${CONFIG_SHELL-$SHELL}
8525export SHELL
8526_ASEOF
8527cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
8528## -------------------- ##
8529## M4sh Initialization. ##
8530## -------------------- ##
8531
8532# Be more Bourne compatible
8533DUALCASE=1; export DUALCASE # for MKS sh
8534if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
8535  emulate sh
8536  NULLCMD=:
8537  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
8538  # is contrary to our usage.  Disable this feature.
8539  alias -g '${1+"$@"}'='"$@"'
8540  setopt NO_GLOB_SUBST
8541else
8542  case `(set -o) 2>/dev/null` in #(
8543  *posix*) :
8544    set -o posix ;; #(
8545  *) :
8546     ;;
8547esac
8548fi
8549
8550
8551as_nl='
8552'
8553export as_nl
8554# Printing a long string crashes Solaris 7 /usr/bin/printf.
8555as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
8556as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
8557as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
8558# Prefer a ksh shell builtin over an external printf program on Solaris,
8559# but without wasting forks for bash or zsh.
8560if test -z "$BASH_VERSION$ZSH_VERSION" \
8561    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
8562  as_echo='print -r --'
8563  as_echo_n='print -rn --'
8564elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
8565  as_echo='printf %s\n'
8566  as_echo_n='printf %s'
8567else
8568  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
8569    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
8570    as_echo_n='/usr/ucb/echo -n'
8571  else
8572    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
8573    as_echo_n_body='eval
8574      arg=$1;
8575      case $arg in #(
8576      *"$as_nl"*)
8577	expr "X$arg" : "X\\(.*\\)$as_nl";
8578	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
8579      esac;
8580      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
8581    '
8582    export as_echo_n_body
8583    as_echo_n='sh -c $as_echo_n_body as_echo'
8584  fi
8585  export as_echo_body
8586  as_echo='sh -c $as_echo_body as_echo'
8587fi
8588
8589# The user is always right.
8590if test "${PATH_SEPARATOR+set}" != set; then
8591  PATH_SEPARATOR=:
8592  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
8593    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
8594      PATH_SEPARATOR=';'
8595  }
8596fi
8597
8598
8599# IFS
8600# We need space, tab and new line, in precisely that order.  Quoting is
8601# there to prevent editors from complaining about space-tab.
8602# (If _AS_PATH_WALK were called with IFS unset, it would disable word
8603# splitting by setting IFS to empty value.)
8604IFS=" ""	$as_nl"
8605
8606# Find who we are.  Look in the path if we contain no directory separator.
8607as_myself=
8608case $0 in #((
8609  *[\\/]* ) as_myself=$0 ;;
8610  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8611for as_dir in $PATH
8612do
8613  IFS=$as_save_IFS
8614  test -z "$as_dir" && as_dir=.
8615    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
8616  done
8617IFS=$as_save_IFS
8618
8619     ;;
8620esac
8621# We did not find ourselves, most probably we were run as `sh COMMAND'
8622# in which case we are not to be found in the path.
8623if test "x$as_myself" = x; then
8624  as_myself=$0
8625fi
8626if test ! -f "$as_myself"; then
8627  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
8628  exit 1
8629fi
8630
8631# Unset variables that we do not need and which cause bugs (e.g. in
8632# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
8633# suppresses any "Segmentation fault" message there.  '((' could
8634# trigger a bug in pdksh 5.2.14.
8635for as_var in BASH_ENV ENV MAIL MAILPATH
8636do eval test x\${$as_var+set} = xset \
8637  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
8638done
8639PS1='$ '
8640PS2='> '
8641PS4='+ '
8642
8643# NLS nuisances.
8644LC_ALL=C
8645export LC_ALL
8646LANGUAGE=C
8647export LANGUAGE
8648
8649# CDPATH.
8650(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
8651
8652
8653# as_fn_error STATUS ERROR [LINENO LOG_FD]
8654# ----------------------------------------
8655# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
8656# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
8657# script with STATUS, using 1 if that was 0.
8658as_fn_error ()
8659{
8660  as_status=$1; test $as_status -eq 0 && as_status=1
8661  if test "$4"; then
8662    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
8663    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
8664  fi
8665  $as_echo "$as_me: error: $2" >&2
8666  as_fn_exit $as_status
8667} # as_fn_error
8668
8669
8670# as_fn_set_status STATUS
8671# -----------------------
8672# Set $? to STATUS, without forking.
8673as_fn_set_status ()
8674{
8675  return $1
8676} # as_fn_set_status
8677
8678# as_fn_exit STATUS
8679# -----------------
8680# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
8681as_fn_exit ()
8682{
8683  set +e
8684  as_fn_set_status $1
8685  exit $1
8686} # as_fn_exit
8687
8688# as_fn_unset VAR
8689# ---------------
8690# Portably unset VAR.
8691as_fn_unset ()
8692{
8693  { eval $1=; unset $1;}
8694}
8695as_unset=as_fn_unset
8696# as_fn_append VAR VALUE
8697# ----------------------
8698# Append the text in VALUE to the end of the definition contained in VAR. Take
8699# advantage of any shell optimizations that allow amortized linear growth over
8700# repeated appends, instead of the typical quadratic growth present in naive
8701# implementations.
8702if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
8703  eval 'as_fn_append ()
8704  {
8705    eval $1+=\$2
8706  }'
8707else
8708  as_fn_append ()
8709  {
8710    eval $1=\$$1\$2
8711  }
8712fi # as_fn_append
8713
8714# as_fn_arith ARG...
8715# ------------------
8716# Perform arithmetic evaluation on the ARGs, and store the result in the
8717# global $as_val. Take advantage of shells that can avoid forks. The arguments
8718# must be portable across $(()) and expr.
8719if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
8720  eval 'as_fn_arith ()
8721  {
8722    as_val=$(( $* ))
8723  }'
8724else
8725  as_fn_arith ()
8726  {
8727    as_val=`expr "$@" || test $? -eq 1`
8728  }
8729fi # as_fn_arith
8730
8731
8732if expr a : '\(a\)' >/dev/null 2>&1 &&
8733   test "X`expr 00001 : '.*\(...\)'`" = X001; then
8734  as_expr=expr
8735else
8736  as_expr=false
8737fi
8738
8739if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
8740  as_basename=basename
8741else
8742  as_basename=false
8743fi
8744
8745if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
8746  as_dirname=dirname
8747else
8748  as_dirname=false
8749fi
8750
8751as_me=`$as_basename -- "$0" ||
8752$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
8753	 X"$0" : 'X\(//\)$' \| \
8754	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
8755$as_echo X/"$0" |
8756    sed '/^.*\/\([^/][^/]*\)\/*$/{
8757	    s//\1/
8758	    q
8759	  }
8760	  /^X\/\(\/\/\)$/{
8761	    s//\1/
8762	    q
8763	  }
8764	  /^X\/\(\/\).*/{
8765	    s//\1/
8766	    q
8767	  }
8768	  s/.*/./; q'`
8769
8770# Avoid depending upon Character Ranges.
8771as_cr_letters='abcdefghijklmnopqrstuvwxyz'
8772as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
8773as_cr_Letters=$as_cr_letters$as_cr_LETTERS
8774as_cr_digits='0123456789'
8775as_cr_alnum=$as_cr_Letters$as_cr_digits
8776
8777ECHO_C= ECHO_N= ECHO_T=
8778case `echo -n x` in #(((((
8779-n*)
8780  case `echo 'xy\c'` in
8781  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
8782  xy)  ECHO_C='\c';;
8783  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
8784       ECHO_T='	';;
8785  esac;;
8786*)
8787  ECHO_N='-n';;
8788esac
8789
8790rm -f conf$$ conf$$.exe conf$$.file
8791if test -d conf$$.dir; then
8792  rm -f conf$$.dir/conf$$.file
8793else
8794  rm -f conf$$.dir
8795  mkdir conf$$.dir 2>/dev/null
8796fi
8797if (echo >conf$$.file) 2>/dev/null; then
8798  if ln -s conf$$.file conf$$ 2>/dev/null; then
8799    as_ln_s='ln -s'
8800    # ... but there are two gotchas:
8801    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
8802    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
8803    # In both cases, we have to default to `cp -pR'.
8804    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
8805      as_ln_s='cp -pR'
8806  elif ln conf$$.file conf$$ 2>/dev/null; then
8807    as_ln_s=ln
8808  else
8809    as_ln_s='cp -pR'
8810  fi
8811else
8812  as_ln_s='cp -pR'
8813fi
8814rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
8815rmdir conf$$.dir 2>/dev/null
8816
8817
8818# as_fn_mkdir_p
8819# -------------
8820# Create "$as_dir" as a directory, including parents if necessary.
8821as_fn_mkdir_p ()
8822{
8823
8824  case $as_dir in #(
8825  -*) as_dir=./$as_dir;;
8826  esac
8827  test -d "$as_dir" || eval $as_mkdir_p || {
8828    as_dirs=
8829    while :; do
8830      case $as_dir in #(
8831      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
8832      *) as_qdir=$as_dir;;
8833      esac
8834      as_dirs="'$as_qdir' $as_dirs"
8835      as_dir=`$as_dirname -- "$as_dir" ||
8836$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8837	 X"$as_dir" : 'X\(//\)[^/]' \| \
8838	 X"$as_dir" : 'X\(//\)$' \| \
8839	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
8840$as_echo X"$as_dir" |
8841    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8842	    s//\1/
8843	    q
8844	  }
8845	  /^X\(\/\/\)[^/].*/{
8846	    s//\1/
8847	    q
8848	  }
8849	  /^X\(\/\/\)$/{
8850	    s//\1/
8851	    q
8852	  }
8853	  /^X\(\/\).*/{
8854	    s//\1/
8855	    q
8856	  }
8857	  s/.*/./; q'`
8858      test -d "$as_dir" && break
8859    done
8860    test -z "$as_dirs" || eval "mkdir $as_dirs"
8861  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
8862
8863
8864} # as_fn_mkdir_p
8865if mkdir -p . 2>/dev/null; then
8866  as_mkdir_p='mkdir -p "$as_dir"'
8867else
8868  test -d ./-p && rmdir ./-p
8869  as_mkdir_p=false
8870fi
8871
8872
8873# as_fn_executable_p FILE
8874# -----------------------
8875# Test if FILE is an executable regular file.
8876as_fn_executable_p ()
8877{
8878  test -f "$1" && test -x "$1"
8879} # as_fn_executable_p
8880as_test_x='test -x'
8881as_executable_p=as_fn_executable_p
8882
8883# Sed expression to map a string onto a valid CPP name.
8884as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
8885
8886# Sed expression to map a string onto a valid variable name.
8887as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
8888
8889
8890exec 6>&1
8891## ----------------------------------- ##
8892## Main body of $CONFIG_STATUS script. ##
8893## ----------------------------------- ##
8894_ASEOF
8895test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
8896
8897cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8898# Save the log message, to keep $0 and so on meaningful, and to
8899# report actual input values of CONFIG_FILES etc. instead of their
8900# values after options handling.
8901ac_log="
8902This file was extended by tk $as_me 8.7, which was
8903generated by GNU Autoconf 2.69.  Invocation command line was
8904
8905  CONFIG_FILES    = $CONFIG_FILES
8906  CONFIG_HEADERS  = $CONFIG_HEADERS
8907  CONFIG_LINKS    = $CONFIG_LINKS
8908  CONFIG_COMMANDS = $CONFIG_COMMANDS
8909  $ $0 $@
8910
8911on `(hostname || uname -n) 2>/dev/null | sed 1q`
8912"
8913
8914_ACEOF
8915
8916case $ac_config_files in *"
8917"*) set x $ac_config_files; shift; ac_config_files=$*;;
8918esac
8919
8920case $ac_config_headers in *"
8921"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
8922esac
8923
8924
8925cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8926# Files that config.status was made for.
8927config_files="$ac_config_files"
8928config_headers="$ac_config_headers"
8929config_commands="$ac_config_commands"
8930
8931_ACEOF
8932
8933cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8934ac_cs_usage="\
8935\`$as_me' instantiates files and other configuration actions
8936from templates according to the current configuration.  Unless the files
8937and actions are specified as TAGs, all are instantiated by default.
8938
8939Usage: $0 [OPTION]... [TAG]...
8940
8941  -h, --help       print this help, then exit
8942  -V, --version    print version number and configuration settings, then exit
8943      --config     print configuration, then exit
8944  -q, --quiet, --silent
8945                   do not print progress messages
8946  -d, --debug      don't remove temporary files
8947      --recheck    update $as_me by reconfiguring in the same conditions
8948      --file=FILE[:TEMPLATE]
8949                   instantiate the configuration file FILE
8950      --header=FILE[:TEMPLATE]
8951                   instantiate the configuration header FILE
8952
8953Configuration files:
8954$config_files
8955
8956Configuration headers:
8957$config_headers
8958
8959Configuration commands:
8960$config_commands
8961
8962Report bugs to the package provider."
8963
8964_ACEOF
8965cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8966ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
8967ac_cs_version="\\
8968tk config.status 8.7
8969configured by $0, generated by GNU Autoconf 2.69,
8970  with options \\"\$ac_cs_config\\"
8971
8972Copyright (C) 2012 Free Software Foundation, Inc.
8973This config.status script is free software; the Free Software Foundation
8974gives unlimited permission to copy, distribute and modify it."
8975
8976ac_pwd='$ac_pwd'
8977srcdir='$srcdir'
8978test -n "\$AWK" || AWK=awk
8979_ACEOF
8980
8981cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8982# The default lists apply if the user does not specify any file.
8983ac_need_defaults=:
8984while test $# != 0
8985do
8986  case $1 in
8987  --*=?*)
8988    ac_option=`expr "X$1" : 'X\([^=]*\)='`
8989    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
8990    ac_shift=:
8991    ;;
8992  --*=)
8993    ac_option=`expr "X$1" : 'X\([^=]*\)='`
8994    ac_optarg=
8995    ac_shift=:
8996    ;;
8997  *)
8998    ac_option=$1
8999    ac_optarg=$2
9000    ac_shift=shift
9001    ;;
9002  esac
9003
9004  case $ac_option in
9005  # Handling of the options.
9006  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
9007    ac_cs_recheck=: ;;
9008  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
9009    $as_echo "$ac_cs_version"; exit ;;
9010  --config | --confi | --conf | --con | --co | --c )
9011    $as_echo "$ac_cs_config"; exit ;;
9012  --debug | --debu | --deb | --de | --d | -d )
9013    debug=: ;;
9014  --file | --fil | --fi | --f )
9015    $ac_shift
9016    case $ac_optarg in
9017    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
9018    '') as_fn_error $? "missing file argument" ;;
9019    esac
9020    as_fn_append CONFIG_FILES " '$ac_optarg'"
9021    ac_need_defaults=false;;
9022  --header | --heade | --head | --hea )
9023    $ac_shift
9024    case $ac_optarg in
9025    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
9026    esac
9027    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
9028    ac_need_defaults=false;;
9029  --he | --h)
9030    # Conflict between --help and --header
9031    as_fn_error $? "ambiguous option: \`$1'
9032Try \`$0 --help' for more information.";;
9033  --help | --hel | -h )
9034    $as_echo "$ac_cs_usage"; exit ;;
9035  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
9036  | -silent | --silent | --silen | --sile | --sil | --si | --s)
9037    ac_cs_silent=: ;;
9038
9039  # This is an error.
9040  -*) as_fn_error $? "unrecognized option: \`$1'
9041Try \`$0 --help' for more information." ;;
9042
9043  *) as_fn_append ac_config_targets " $1"
9044     ac_need_defaults=false ;;
9045
9046  esac
9047  shift
9048done
9049
9050ac_configure_extra_args=
9051
9052if $ac_cs_silent; then
9053  exec 6>/dev/null
9054  ac_configure_extra_args="$ac_configure_extra_args --silent"
9055fi
9056
9057_ACEOF
9058cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9059if \$ac_cs_recheck; then
9060  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
9061  shift
9062  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
9063  CONFIG_SHELL='$SHELL'
9064  export CONFIG_SHELL
9065  exec "\$@"
9066fi
9067
9068_ACEOF
9069cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9070exec 5>>config.log
9071{
9072  echo
9073  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
9074## Running $as_me. ##
9075_ASBOX
9076  $as_echo "$ac_log"
9077} >&5
9078
9079_ACEOF
9080cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9081#
9082# INIT-COMMANDS
9083#
9084VERSION=${TK_VERSION} && tk_aqua=${tk_aqua}
9085
9086_ACEOF
9087
9088cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9089
9090# Handling of arguments.
9091for ac_config_target in $ac_config_targets
9092do
9093  case $ac_config_target in
9094    "tkConfig.h") CONFIG_HEADERS="$CONFIG_HEADERS tkConfig.h:../unix/tkConfig.h.in" ;;
9095    "Tk-Info.plist") CONFIG_FILES="$CONFIG_FILES Tk-Info.plist:../macosx/Tk-Info.plist.in" ;;
9096    "Wish-Info.plist") CONFIG_FILES="$CONFIG_FILES Wish-Info.plist:../macosx/Wish-Info.plist.in" ;;
9097    "Credits.html") CONFIG_FILES="$CONFIG_FILES Credits.html:../macosx/Credits.html.in" ;;
9098    "Tk.framework") CONFIG_COMMANDS="$CONFIG_COMMANDS Tk.framework" ;;
9099    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile:../unix/Makefile.in" ;;
9100    "tkConfig.sh") CONFIG_FILES="$CONFIG_FILES tkConfig.sh:../unix/tkConfig.sh.in" ;;
9101    "tk.pc") CONFIG_FILES="$CONFIG_FILES tk.pc:../unix/tk.pc.in" ;;
9102
9103  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
9104  esac
9105done
9106
9107
9108# If the user did not use the arguments to specify the items to instantiate,
9109# then the envvar interface is used.  Set only those that are not.
9110# We use the long form for the default assignment because of an extremely
9111# bizarre bug on SunOS 4.1.3.
9112if $ac_need_defaults; then
9113  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
9114  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
9115  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
9116fi
9117
9118# Have a temporary directory for convenience.  Make it in the build tree
9119# simply because there is no reason against having it here, and in addition,
9120# creating and moving files from /tmp can sometimes cause problems.
9121# Hook for its removal unless debugging.
9122# Note that there is a small window in which the directory will not be cleaned:
9123# after its creation but before its name has been assigned to `$tmp'.
9124$debug ||
9125{
9126  tmp= ac_tmp=
9127  trap 'exit_status=$?
9128  : "${ac_tmp:=$tmp}"
9129  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
9130' 0
9131  trap 'as_fn_exit 1' 1 2 13 15
9132}
9133# Create a (secure) tmp directory for tmp files.
9134
9135{
9136  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
9137  test -d "$tmp"
9138}  ||
9139{
9140  tmp=./conf$$-$RANDOM
9141  (umask 077 && mkdir "$tmp")
9142} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
9143ac_tmp=$tmp
9144
9145# Set up the scripts for CONFIG_FILES section.
9146# No need to generate them if there are no CONFIG_FILES.
9147# This happens for instance with `./config.status config.h'.
9148if test -n "$CONFIG_FILES"; then
9149
9150
9151ac_cr=`echo X | tr X '\015'`
9152# On cygwin, bash can eat \r inside `` if the user requested igncr.
9153# But we know of no other shell where ac_cr would be empty at this
9154# point, so we can use a bashism as a fallback.
9155if test "x$ac_cr" = x; then
9156  eval ac_cr=\$\'\\r\'
9157fi
9158ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
9159if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
9160  ac_cs_awk_cr='\\r'
9161else
9162  ac_cs_awk_cr=$ac_cr
9163fi
9164
9165echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
9166_ACEOF
9167
9168
9169{
9170  echo "cat >conf$$subs.awk <<_ACEOF" &&
9171  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
9172  echo "_ACEOF"
9173} >conf$$subs.sh ||
9174  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
9175ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
9176ac_delim='%!_!# '
9177for ac_last_try in false false false false false :; do
9178  . ./conf$$subs.sh ||
9179    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
9180
9181  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
9182  if test $ac_delim_n = $ac_delim_num; then
9183    break
9184  elif $ac_last_try; then
9185    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
9186  else
9187    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
9188  fi
9189done
9190rm -f conf$$subs.sh
9191
9192cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9193cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
9194_ACEOF
9195sed -n '
9196h
9197s/^/S["/; s/!.*/"]=/
9198p
9199g
9200s/^[^!]*!//
9201:repl
9202t repl
9203s/'"$ac_delim"'$//
9204t delim
9205:nl
9206h
9207s/\(.\{148\}\)..*/\1/
9208t more1
9209s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
9210p
9211n
9212b repl
9213:more1
9214s/["\\]/\\&/g; s/^/"/; s/$/"\\/
9215p
9216g
9217s/.\{148\}//
9218t nl
9219:delim
9220h
9221s/\(.\{148\}\)..*/\1/
9222t more2
9223s/["\\]/\\&/g; s/^/"/; s/$/"/
9224p
9225b
9226:more2
9227s/["\\]/\\&/g; s/^/"/; s/$/"\\/
9228p
9229g
9230s/.\{148\}//
9231t delim
9232' <conf$$subs.awk | sed '
9233/^[^""]/{
9234  N
9235  s/\n//
9236}
9237' >>$CONFIG_STATUS || ac_write_fail=1
9238rm -f conf$$subs.awk
9239cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9240_ACAWK
9241cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
9242  for (key in S) S_is_set[key] = 1
9243  FS = ""
9244
9245}
9246{
9247  line = $ 0
9248  nfields = split(line, field, "@")
9249  substed = 0
9250  len = length(field[1])
9251  for (i = 2; i < nfields; i++) {
9252    key = field[i]
9253    keylen = length(key)
9254    if (S_is_set[key]) {
9255      value = S[key]
9256      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
9257      len += length(value) + length(field[++i])
9258      substed = 1
9259    } else
9260      len += 1 + keylen
9261  }
9262
9263  print line
9264}
9265
9266_ACAWK
9267_ACEOF
9268cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9269if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
9270  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
9271else
9272  cat
9273fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
9274  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
9275_ACEOF
9276
9277# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
9278# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
9279# trailing colons and then remove the whole line if VPATH becomes empty
9280# (actually we leave an empty line to preserve line numbers).
9281if test "x$srcdir" = x.; then
9282  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
9283h
9284s///
9285s/^/:/
9286s/[	 ]*$/:/
9287s/:\$(srcdir):/:/g
9288s/:\${srcdir}:/:/g
9289s/:@srcdir@:/:/g
9290s/^:*//
9291s/:*$//
9292x
9293s/\(=[	 ]*\).*/\1/
9294G
9295s/\n//
9296s/^[^=]*=[	 ]*$//
9297}'
9298fi
9299
9300cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9301fi # test -n "$CONFIG_FILES"
9302
9303# Set up the scripts for CONFIG_HEADERS section.
9304# No need to generate them if there are no CONFIG_HEADERS.
9305# This happens for instance with `./config.status Makefile'.
9306if test -n "$CONFIG_HEADERS"; then
9307cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
9308BEGIN {
9309_ACEOF
9310
9311# Transform confdefs.h into an awk script `defines.awk', embedded as
9312# here-document in config.status, that substitutes the proper values into
9313# config.h.in to produce config.h.
9314
9315# Create a delimiter string that does not exist in confdefs.h, to ease
9316# handling of long lines.
9317ac_delim='%!_!# '
9318for ac_last_try in false false :; do
9319  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
9320  if test -z "$ac_tt"; then
9321    break
9322  elif $ac_last_try; then
9323    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
9324  else
9325    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
9326  fi
9327done
9328
9329# For the awk script, D is an array of macro values keyed by name,
9330# likewise P contains macro parameters if any.  Preserve backslash
9331# newline sequences.
9332
9333ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
9334sed -n '
9335s/.\{148\}/&'"$ac_delim"'/g
9336t rset
9337:rset
9338s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
9339t def
9340d
9341:def
9342s/\\$//
9343t bsnl
9344s/["\\]/\\&/g
9345s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
9346D["\1"]=" \3"/p
9347s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
9348d
9349:bsnl
9350s/["\\]/\\&/g
9351s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
9352D["\1"]=" \3\\\\\\n"\\/p
9353t cont
9354s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
9355t cont
9356d
9357:cont
9358n
9359s/.\{148\}/&'"$ac_delim"'/g
9360t clear
9361:clear
9362s/\\$//
9363t bsnlc
9364s/["\\]/\\&/g; s/^/"/; s/$/"/p
9365d
9366:bsnlc
9367s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
9368b cont
9369' <confdefs.h | sed '
9370s/'"$ac_delim"'/"\\\
9371"/g' >>$CONFIG_STATUS || ac_write_fail=1
9372
9373cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9374  for (key in D) D_is_set[key] = 1
9375  FS = ""
9376}
9377/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
9378  line = \$ 0
9379  split(line, arg, " ")
9380  if (arg[1] == "#") {
9381    defundef = arg[2]
9382    mac1 = arg[3]
9383  } else {
9384    defundef = substr(arg[1], 2)
9385    mac1 = arg[2]
9386  }
9387  split(mac1, mac2, "(") #)
9388  macro = mac2[1]
9389  prefix = substr(line, 1, index(line, defundef) - 1)
9390  if (D_is_set[macro]) {
9391    # Preserve the white space surrounding the "#".
9392    print prefix "define", macro P[macro] D[macro]
9393    next
9394  } else {
9395    # Replace #undef with comments.  This is necessary, for example,
9396    # in the case of _POSIX_SOURCE, which is predefined and required
9397    # on some systems where configure will not decide to define it.
9398    if (defundef == "undef") {
9399      print "/*", prefix defundef, macro, "*/"
9400      next
9401    }
9402  }
9403}
9404{ print }
9405_ACAWK
9406_ACEOF
9407cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9408  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
9409fi # test -n "$CONFIG_HEADERS"
9410
9411
9412eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
9413shift
9414for ac_tag
9415do
9416  case $ac_tag in
9417  :[FHLC]) ac_mode=$ac_tag; continue;;
9418  esac
9419  case $ac_mode$ac_tag in
9420  :[FHL]*:*);;
9421  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
9422  :[FH]-) ac_tag=-:-;;
9423  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
9424  esac
9425  ac_save_IFS=$IFS
9426  IFS=:
9427  set x $ac_tag
9428  IFS=$ac_save_IFS
9429  shift
9430  ac_file=$1
9431  shift
9432
9433  case $ac_mode in
9434  :L) ac_source=$1;;
9435  :[FH])
9436    ac_file_inputs=
9437    for ac_f
9438    do
9439      case $ac_f in
9440      -) ac_f="$ac_tmp/stdin";;
9441      *) # Look for the file first in the build tree, then in the source tree
9442	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
9443	 # because $ac_f cannot contain `:'.
9444	 test -f "$ac_f" ||
9445	   case $ac_f in
9446	   [\\/$]*) false;;
9447	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
9448	   esac ||
9449	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
9450      esac
9451      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
9452      as_fn_append ac_file_inputs " '$ac_f'"
9453    done
9454
9455    # Let's still pretend it is `configure' which instantiates (i.e., don't
9456    # use $as_me), people would be surprised to read:
9457    #    /* config.h.  Generated by config.status.  */
9458    configure_input='Generated from '`
9459	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
9460	`' by configure.'
9461    if test x"$ac_file" != x-; then
9462      configure_input="$ac_file.  $configure_input"
9463      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
9464$as_echo "$as_me: creating $ac_file" >&6;}
9465    fi
9466    # Neutralize special characters interpreted by sed in replacement strings.
9467    case $configure_input in #(
9468    *\&* | *\|* | *\\* )
9469       ac_sed_conf_input=`$as_echo "$configure_input" |
9470       sed 's/[\\\\&|]/\\\\&/g'`;; #(
9471    *) ac_sed_conf_input=$configure_input;;
9472    esac
9473
9474    case $ac_tag in
9475    *:-:* | *:-) cat >"$ac_tmp/stdin" \
9476      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
9477    esac
9478    ;;
9479  esac
9480
9481  ac_dir=`$as_dirname -- "$ac_file" ||
9482$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9483	 X"$ac_file" : 'X\(//\)[^/]' \| \
9484	 X"$ac_file" : 'X\(//\)$' \| \
9485	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
9486$as_echo X"$ac_file" |
9487    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9488	    s//\1/
9489	    q
9490	  }
9491	  /^X\(\/\/\)[^/].*/{
9492	    s//\1/
9493	    q
9494	  }
9495	  /^X\(\/\/\)$/{
9496	    s//\1/
9497	    q
9498	  }
9499	  /^X\(\/\).*/{
9500	    s//\1/
9501	    q
9502	  }
9503	  s/.*/./; q'`
9504  as_dir="$ac_dir"; as_fn_mkdir_p
9505  ac_builddir=.
9506
9507case "$ac_dir" in
9508.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
9509*)
9510  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
9511  # A ".." for each directory in $ac_dir_suffix.
9512  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
9513  case $ac_top_builddir_sub in
9514  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
9515  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
9516  esac ;;
9517esac
9518ac_abs_top_builddir=$ac_pwd
9519ac_abs_builddir=$ac_pwd$ac_dir_suffix
9520# for backward compatibility:
9521ac_top_builddir=$ac_top_build_prefix
9522
9523case $srcdir in
9524  .)  # We are building in place.
9525    ac_srcdir=.
9526    ac_top_srcdir=$ac_top_builddir_sub
9527    ac_abs_top_srcdir=$ac_pwd ;;
9528  [\\/]* | ?:[\\/]* )  # Absolute name.
9529    ac_srcdir=$srcdir$ac_dir_suffix;
9530    ac_top_srcdir=$srcdir
9531    ac_abs_top_srcdir=$srcdir ;;
9532  *) # Relative name.
9533    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
9534    ac_top_srcdir=$ac_top_build_prefix$srcdir
9535    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
9536esac
9537ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
9538
9539
9540  case $ac_mode in
9541  :F)
9542  #
9543  # CONFIG_FILE
9544  #
9545
9546_ACEOF
9547
9548cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9549# If the template does not know about datarootdir, expand it.
9550# FIXME: This hack should be removed a few years after 2.60.
9551ac_datarootdir_hack=; ac_datarootdir_seen=
9552ac_sed_dataroot='
9553/datarootdir/ {
9554  p
9555  q
9556}
9557/@datadir@/p
9558/@docdir@/p
9559/@infodir@/p
9560/@localedir@/p
9561/@mandir@/p'
9562case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
9563*datarootdir*) ac_datarootdir_seen=yes;;
9564*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
9565  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
9566$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
9567_ACEOF
9568cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9569  ac_datarootdir_hack='
9570  s&@datadir@&$datadir&g
9571  s&@docdir@&$docdir&g
9572  s&@infodir@&$infodir&g
9573  s&@localedir@&$localedir&g
9574  s&@mandir@&$mandir&g
9575  s&\\\${datarootdir}&$datarootdir&g' ;;
9576esac
9577_ACEOF
9578
9579# Neutralize VPATH when `$srcdir' = `.'.
9580# Shell code in configure.ac might set extrasub.
9581# FIXME: do we really want to maintain this feature?
9582cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9583ac_sed_extra="$ac_vpsub
9584$extrasub
9585_ACEOF
9586cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9587:t
9588/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
9589s|@configure_input@|$ac_sed_conf_input|;t t
9590s&@top_builddir@&$ac_top_builddir_sub&;t t
9591s&@top_build_prefix@&$ac_top_build_prefix&;t t
9592s&@srcdir@&$ac_srcdir&;t t
9593s&@abs_srcdir@&$ac_abs_srcdir&;t t
9594s&@top_srcdir@&$ac_top_srcdir&;t t
9595s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
9596s&@builddir@&$ac_builddir&;t t
9597s&@abs_builddir@&$ac_abs_builddir&;t t
9598s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
9599$ac_datarootdir_hack
9600"
9601eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
9602  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
9603
9604test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
9605  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
9606  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
9607      "$ac_tmp/out"`; test -z "$ac_out"; } &&
9608  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
9609which seems to be undefined.  Please make sure it is defined" >&5
9610$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
9611which seems to be undefined.  Please make sure it is defined" >&2;}
9612
9613  rm -f "$ac_tmp/stdin"
9614  case $ac_file in
9615  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
9616  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
9617  esac \
9618  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
9619 ;;
9620  :H)
9621  #
9622  # CONFIG_HEADER
9623  #
9624  if test x"$ac_file" != x-; then
9625    {
9626      $as_echo "/* $configure_input  */" \
9627      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
9628    } >"$ac_tmp/config.h" \
9629      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
9630    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
9631      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
9632$as_echo "$as_me: $ac_file is unchanged" >&6;}
9633    else
9634      rm -f "$ac_file"
9635      mv "$ac_tmp/config.h" "$ac_file" \
9636	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
9637    fi
9638  else
9639    $as_echo "/* $configure_input  */" \
9640      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
9641      || as_fn_error $? "could not create -" "$LINENO" 5
9642  fi
9643 ;;
9644
9645  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
9646$as_echo "$as_me: executing $ac_file commands" >&6;}
9647 ;;
9648  esac
9649
9650
9651  case $ac_file$ac_mode in
9652    "Tk.framework":C) n=Tk &&
9653        f=$n.framework && v=Versions/$VERSION &&
9654        rm -rf $f && mkdir -p $f/$v/Resources &&
9655        ln -s $v/$n $v/Resources $f && ln -s ../../../$n $f/$v &&
9656        ln -s ../../../../$n-Info.plist $f/$v/Resources/Info.plist &&
9657        if test $tk_aqua = yes; then ln -s ../../../../$n.rsrc $f/$v/Resources; fi &&
9658        unset n f v
9659     ;;
9660
9661  esac
9662done # for ac_tag
9663
9664
9665as_fn_exit 0
9666_ACEOF
9667ac_clean_files=$ac_clean_files_save
9668
9669test $ac_write_fail = 0 ||
9670  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
9671
9672
9673# configure is writing to config.log, and then calls config.status.
9674# config.status does its own redirection, appending to config.log.
9675# Unfortunately, on DOS this fails, as config.log is still kept open
9676# by configure, so config.status won't be able to write to it; its
9677# output is simply discarded.  So we exec the FD to /dev/null,
9678# effectively closing config.log, so it can be properly (re)opened and
9679# appended to by config.status.  When coming back to configure, we
9680# need to make the FD available again.
9681if test "$no_create" != yes; then
9682  ac_cs_success=:
9683  ac_config_status_args=
9684  test "$silent" = yes &&
9685    ac_config_status_args="$ac_config_status_args --quiet"
9686  exec 5>/dev/null
9687  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
9688  exec 5>>config.log
9689  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
9690  # would make configure fail if this is the last instruction.
9691  $ac_cs_success || as_fn_exit 1
9692fi
9693if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
9694  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
9695$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
9696fi
9697
9698
9699
9700