1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.59.
4#
5# Copyright (C) 2003 Free Software Foundation, Inc.
6# This configure script is free software; the Free Software Foundation
7# gives unlimited permission to copy, distribute and modify it.
8## --------------------- ##
9## M4sh Initialization.  ##
10## --------------------- ##
11
12# Be Bourne compatible
13if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14  emulate sh
15  NULLCMD=:
16  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17  # is contrary to our usage.  Disable this feature.
18  alias -g '${1+"$@"}'='"$@"'
19elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20  set -o posix
21fi
22DUALCASE=1; export DUALCASE # for MKS sh
23
24# Support unset when possible.
25if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26  as_unset=unset
27else
28  as_unset=false
29fi
30
31
32# Work around bugs in pre-3.0 UWIN ksh.
33$as_unset ENV MAIL MAILPATH
34PS1='$ '
35PS2='> '
36PS4='+ '
37
38# NLS nuisances.
39for as_var in \
40  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42  LC_TELEPHONE LC_TIME
43do
44  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45    eval $as_var=C; export $as_var
46  else
47    $as_unset $as_var
48  fi
49done
50
51# Required to use basename.
52if expr a : '\(a\)' >/dev/null 2>&1; then
53  as_expr=expr
54else
55  as_expr=false
56fi
57
58if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59  as_basename=basename
60else
61  as_basename=false
62fi
63
64
65# Name of the executable.
66as_me=`$as_basename "$0" ||
67$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68	 X"$0" : 'X\(//\)$' \| \
69	 X"$0" : 'X\(/\)$' \| \
70	 .     : '\(.\)' 2>/dev/null ||
71echo X/"$0" |
72    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73  	  /^X\/\(\/\/\)$/{ s//\1/; q; }
74  	  /^X\/\(\/\).*/{ s//\1/; q; }
75  	  s/.*/./; q'`
76
77
78# PATH needs CR, and LINENO needs CR and PATH.
79# Avoid depending upon Character Ranges.
80as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83as_cr_digits='0123456789'
84as_cr_alnum=$as_cr_Letters$as_cr_digits
85
86# The user is always right.
87if test "${PATH_SEPARATOR+set}" != set; then
88  echo "#! /bin/sh" >conf$$.sh
89  echo  "exit 0"   >>conf$$.sh
90  chmod +x conf$$.sh
91  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92    PATH_SEPARATOR=';'
93  else
94    PATH_SEPARATOR=:
95  fi
96  rm -f conf$$.sh
97fi
98
99
100  as_lineno_1=$LINENO
101  as_lineno_2=$LINENO
102  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103  test "x$as_lineno_1" != "x$as_lineno_2" &&
104  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
105  # Find who we are.  Look in the path if we contain no path at all
106  # relative or not.
107  case $0 in
108    *[\\/]* ) as_myself=$0 ;;
109    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110for as_dir in $PATH
111do
112  IFS=$as_save_IFS
113  test -z "$as_dir" && as_dir=.
114  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115done
116
117       ;;
118  esac
119  # We did not find ourselves, most probably we were run as `sh COMMAND'
120  # in which case we are not to be found in the path.
121  if test "x$as_myself" = x; then
122    as_myself=$0
123  fi
124  if test ! -f "$as_myself"; then
125    { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126   { (exit 1); exit 1; }; }
127  fi
128  case $CONFIG_SHELL in
129  '')
130    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132do
133  IFS=$as_save_IFS
134  test -z "$as_dir" && as_dir=.
135  for as_base in sh bash ksh sh5; do
136	 case $as_dir in
137	 /*)
138	   if ("$as_dir/$as_base" -c '
139  as_lineno_1=$LINENO
140  as_lineno_2=$LINENO
141  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142  test "x$as_lineno_1" != "x$as_lineno_2" &&
143  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
144	     $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145	     $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146	     CONFIG_SHELL=$as_dir/$as_base
147	     export CONFIG_SHELL
148	     exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149	   fi;;
150	 esac
151       done
152done
153;;
154  esac
155
156  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157  # uniformly replaced by the line number.  The first 'sed' inserts a
158  # line-number line before each line; the second 'sed' does the real
159  # work.  The second script uses 'N' to pair each line-number line
160  # with the numbered line, and appends trailing '-' during
161  # substitution so that $LINENO is not a special case at line end.
162  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
164  sed '=' <$as_myself |
165    sed '
166      N
167      s,$,-,
168      : loop
169      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170      t loop
171      s,-$,,
172      s,^['$as_cr_digits']*\n,,
173    ' >$as_me.lineno &&
174  chmod +x $as_me.lineno ||
175    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176   { (exit 1); exit 1; }; }
177
178  # Don't try to exec as it changes $[0], causing all sort of problems
179  # (the dirname of $[0] is not the place where we might find the
180  # original and so on.  Autoconf is especially sensible to this).
181  . ./$as_me.lineno
182  # Exit status is that of the last command.
183  exit
184}
185
186
187case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188  *c*,-n*) ECHO_N= ECHO_C='
189' ECHO_T='	' ;;
190  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
192esac
193
194if expr a : '\(a\)' >/dev/null 2>&1; then
195  as_expr=expr
196else
197  as_expr=false
198fi
199
200rm -f conf$$ conf$$.exe conf$$.file
201echo >conf$$.file
202if ln -s conf$$.file conf$$ 2>/dev/null; then
203  # We could just check for DJGPP; but this test a) works b) is more generic
204  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205  if test -f conf$$.exe; then
206    # Don't use ln at all; we don't have any links
207    as_ln_s='cp -p'
208  else
209    as_ln_s='ln -s'
210  fi
211elif ln conf$$.file conf$$ 2>/dev/null; then
212  as_ln_s=ln
213else
214  as_ln_s='cp -p'
215fi
216rm -f conf$$ conf$$.exe conf$$.file
217
218if mkdir -p . 2>/dev/null; then
219  as_mkdir_p=:
220else
221  test -d ./-p && rmdir ./-p
222  as_mkdir_p=false
223fi
224
225as_executable_p="test -f"
226
227# Sed expression to map a string onto a valid CPP name.
228as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
229
230# Sed expression to map a string onto a valid variable name.
231as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
232
233
234# IFS
235# We need space, tab and new line, in precisely that order.
236as_nl='
237'
238IFS=" 	$as_nl"
239
240# CDPATH.
241$as_unset CDPATH
242
243
244# Name of the host.
245# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246# so uname gets run too.
247ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
248
249exec 6>&1
250
251#
252# Initializations.
253#
254ac_default_prefix=/usr/local
255ac_config_libobj_dir=.
256cross_compiling=no
257subdirs=
258MFLAGS=
259MAKEFLAGS=
260SHELL=${CONFIG_SHELL-/bin/sh}
261
262# Maximum number of lines to put in a shell here document.
263# This variable seems obsolete.  It should probably be removed, and
264# only ac_max_sed_lines should be used.
265: ${ac_max_here_lines=38}
266
267# Identity of this package.
268PACKAGE_NAME=
269PACKAGE_TARNAME=
270PACKAGE_VERSION=
271PACKAGE_STRING=
272PACKAGE_BUGREPORT=
273
274ac_unique_file="../generic/tcl.h"
275# Factoring default headers for most tests.
276ac_includes_default="\
277#include <stdio.h>
278#if HAVE_SYS_TYPES_H
279# include <sys/types.h>
280#endif
281#if HAVE_SYS_STAT_H
282# include <sys/stat.h>
283#endif
284#if STDC_HEADERS
285# include <stdlib.h>
286# include <stddef.h>
287#else
288# if HAVE_STDLIB_H
289#  include <stdlib.h>
290# endif
291#endif
292#if HAVE_STRING_H
293# if !STDC_HEADERS && HAVE_MEMORY_H
294#  include <memory.h>
295# endif
296# include <string.h>
297#endif
298#if HAVE_STRINGS_H
299# include <strings.h>
300#endif
301#if HAVE_INTTYPES_H
302# include <inttypes.h>
303#else
304# if HAVE_STDINT_H
305#  include <stdint.h>
306# endif
307#endif
308#if HAVE_UNISTD_H
309# include <unistd.h>
310#endif"
311
312ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP EGREP AR RANLIB RC SET_MAKE TCL_THREADS CYGPATH CELIB_DIR DL_LIBS CFLAGS_DEBUG CFLAGS_OPTIMIZE CFLAGS_WARNING CFLAGS_DEFAULT LDFLAGS_DEFAULT VC_MANIFEST_EMBED_DLL VC_MANIFEST_EMBED_EXE TCL_VERSION TCL_MAJOR_VERSION TCL_MINOR_VERSION TCL_PATCH_LEVEL TCL_LIB_FILE TCL_LIB_FLAG TCL_LIB_SPEC TCL_STUB_LIB_FILE TCL_STUB_LIB_FLAG TCL_STUB_LIB_SPEC TCL_STUB_LIB_PATH TCL_INCLUDE_SPEC TCL_BUILD_STUB_LIB_SPEC TCL_BUILD_STUB_LIB_PATH TCL_DLL_FILE TCL_SRC_DIR TCL_BIN_DIR TCL_DBGX CFG_TCL_SHARED_LIB_SUFFIX CFG_TCL_UNSHARED_LIB_SUFFIX CFG_TCL_EXPORT_FILE_SUFFIX EXTRA_CFLAGS DEPARG CC_OBJNAME CC_EXENAME LDFLAGS_DEBUG LDFLAGS_OPTIMIZE LDFLAGS_CONSOLE LDFLAGS_WINDOW STLIB_LD SHLIB_LD SHLIB_LD_LIBS SHLIB_CFLAGS SHLIB_SUFFIX TCL_SHARED_BUILD LIBS_GUI DLLSUFFIX LIBPREFIX LIBSUFFIX EXESUFFIX LIBRARIES MAKE_LIB POST_MAKE_LIB MAKE_DLL MAKE_EXE TCL_BUILD_LIB_SPEC TCL_LD_SEARCH_FLAGS TCL_NEEDS_EXP_FILE TCL_BUILD_EXP_FILE TCL_EXP_FILE TCL_LIB_VERSIONS_OK TCL_PACKAGE_PATH TCL_DDE_VERSION TCL_DDE_MAJOR_VERSION TCL_DDE_MINOR_VERSION TCL_DDE_PATCH_LEVEL TCL_REG_VERSION TCL_REG_MAJOR_VERSION TCL_REG_MINOR_VERSION TCL_REG_PATCH_LEVEL RC_OUT RC_TYPE RC_INCLUDE RC_DEFINE RC_DEFINES RES LIBOBJS LTLIBOBJS'
313ac_subst_files=''
314
315# Initialize some variables set by options.
316ac_init_help=
317ac_init_version=false
318# The variables have the same names as the options, with
319# dashes changed to underlines.
320cache_file=/dev/null
321exec_prefix=NONE
322no_create=
323no_recursion=
324prefix=NONE
325program_prefix=NONE
326program_suffix=NONE
327program_transform_name=s,x,x,
328silent=
329site=
330srcdir=
331verbose=
332x_includes=NONE
333x_libraries=NONE
334
335# Installation directory options.
336# These are left unexpanded so users can "make install exec_prefix=/foo"
337# and all the variables that are supposed to be based on exec_prefix
338# by default will actually change.
339# Use braces instead of parens because sh, perl, etc. also accept them.
340bindir='${exec_prefix}/bin'
341sbindir='${exec_prefix}/sbin'
342libexecdir='${exec_prefix}/libexec'
343datadir='${prefix}/share'
344sysconfdir='${prefix}/etc'
345sharedstatedir='${prefix}/com'
346localstatedir='${prefix}/var'
347libdir='${exec_prefix}/lib'
348includedir='${prefix}/include'
349oldincludedir='/usr/include'
350infodir='${prefix}/info'
351mandir='${prefix}/man'
352
353ac_prev=
354for ac_option
355do
356  # If the previous option needs an argument, assign it.
357  if test -n "$ac_prev"; then
358    eval "$ac_prev=\$ac_option"
359    ac_prev=
360    continue
361  fi
362
363  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
364
365  # Accept the important Cygnus configure options, so we can diagnose typos.
366
367  case $ac_option in
368
369  -bindir | --bindir | --bindi | --bind | --bin | --bi)
370    ac_prev=bindir ;;
371  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
372    bindir=$ac_optarg ;;
373
374  -build | --build | --buil | --bui | --bu)
375    ac_prev=build_alias ;;
376  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
377    build_alias=$ac_optarg ;;
378
379  -cache-file | --cache-file | --cache-fil | --cache-fi \
380  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
381    ac_prev=cache_file ;;
382  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
383  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
384    cache_file=$ac_optarg ;;
385
386  --config-cache | -C)
387    cache_file=config.cache ;;
388
389  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
390    ac_prev=datadir ;;
391  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
392  | --da=*)
393    datadir=$ac_optarg ;;
394
395  -disable-* | --disable-*)
396    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
397    # Reject names that are not valid shell variable names.
398    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
399      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
400   { (exit 1); exit 1; }; }
401    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
402    eval "enable_$ac_feature=no" ;;
403
404  -enable-* | --enable-*)
405    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
406    # Reject names that are not valid shell variable names.
407    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
408      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
409   { (exit 1); exit 1; }; }
410    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
411    case $ac_option in
412      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
413      *) ac_optarg=yes ;;
414    esac
415    eval "enable_$ac_feature='$ac_optarg'" ;;
416
417  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
418  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
419  | --exec | --exe | --ex)
420    ac_prev=exec_prefix ;;
421  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
422  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
423  | --exec=* | --exe=* | --ex=*)
424    exec_prefix=$ac_optarg ;;
425
426  -gas | --gas | --ga | --g)
427    # Obsolete; use --with-gas.
428    with_gas=yes ;;
429
430  -help | --help | --hel | --he | -h)
431    ac_init_help=long ;;
432  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
433    ac_init_help=recursive ;;
434  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
435    ac_init_help=short ;;
436
437  -host | --host | --hos | --ho)
438    ac_prev=host_alias ;;
439  -host=* | --host=* | --hos=* | --ho=*)
440    host_alias=$ac_optarg ;;
441
442  -includedir | --includedir | --includedi | --included | --include \
443  | --includ | --inclu | --incl | --inc)
444    ac_prev=includedir ;;
445  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
446  | --includ=* | --inclu=* | --incl=* | --inc=*)
447    includedir=$ac_optarg ;;
448
449  -infodir | --infodir | --infodi | --infod | --info | --inf)
450    ac_prev=infodir ;;
451  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
452    infodir=$ac_optarg ;;
453
454  -libdir | --libdir | --libdi | --libd)
455    ac_prev=libdir ;;
456  -libdir=* | --libdir=* | --libdi=* | --libd=*)
457    libdir=$ac_optarg ;;
458
459  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
460  | --libexe | --libex | --libe)
461    ac_prev=libexecdir ;;
462  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
463  | --libexe=* | --libex=* | --libe=*)
464    libexecdir=$ac_optarg ;;
465
466  -localstatedir | --localstatedir | --localstatedi | --localstated \
467  | --localstate | --localstat | --localsta | --localst \
468  | --locals | --local | --loca | --loc | --lo)
469    ac_prev=localstatedir ;;
470  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
471  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
472  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
473    localstatedir=$ac_optarg ;;
474
475  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
476    ac_prev=mandir ;;
477  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
478    mandir=$ac_optarg ;;
479
480  -nfp | --nfp | --nf)
481    # Obsolete; use --without-fp.
482    with_fp=no ;;
483
484  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
485  | --no-cr | --no-c | -n)
486    no_create=yes ;;
487
488  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
489  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
490    no_recursion=yes ;;
491
492  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
493  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
494  | --oldin | --oldi | --old | --ol | --o)
495    ac_prev=oldincludedir ;;
496  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
497  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
498  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
499    oldincludedir=$ac_optarg ;;
500
501  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
502    ac_prev=prefix ;;
503  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
504    prefix=$ac_optarg ;;
505
506  -program-prefix | --program-prefix | --program-prefi | --program-pref \
507  | --program-pre | --program-pr | --program-p)
508    ac_prev=program_prefix ;;
509  -program-prefix=* | --program-prefix=* | --program-prefi=* \
510  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
511    program_prefix=$ac_optarg ;;
512
513  -program-suffix | --program-suffix | --program-suffi | --program-suff \
514  | --program-suf | --program-su | --program-s)
515    ac_prev=program_suffix ;;
516  -program-suffix=* | --program-suffix=* | --program-suffi=* \
517  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
518    program_suffix=$ac_optarg ;;
519
520  -program-transform-name | --program-transform-name \
521  | --program-transform-nam | --program-transform-na \
522  | --program-transform-n | --program-transform- \
523  | --program-transform | --program-transfor \
524  | --program-transfo | --program-transf \
525  | --program-trans | --program-tran \
526  | --progr-tra | --program-tr | --program-t)
527    ac_prev=program_transform_name ;;
528  -program-transform-name=* | --program-transform-name=* \
529  | --program-transform-nam=* | --program-transform-na=* \
530  | --program-transform-n=* | --program-transform-=* \
531  | --program-transform=* | --program-transfor=* \
532  | --program-transfo=* | --program-transf=* \
533  | --program-trans=* | --program-tran=* \
534  | --progr-tra=* | --program-tr=* | --program-t=*)
535    program_transform_name=$ac_optarg ;;
536
537  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
538  | -silent | --silent | --silen | --sile | --sil)
539    silent=yes ;;
540
541  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
542    ac_prev=sbindir ;;
543  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
544  | --sbi=* | --sb=*)
545    sbindir=$ac_optarg ;;
546
547  -sharedstatedir | --sharedstatedir | --sharedstatedi \
548  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
549  | --sharedst | --shareds | --shared | --share | --shar \
550  | --sha | --sh)
551    ac_prev=sharedstatedir ;;
552  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
553  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
554  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
555  | --sha=* | --sh=*)
556    sharedstatedir=$ac_optarg ;;
557
558  -site | --site | --sit)
559    ac_prev=site ;;
560  -site=* | --site=* | --sit=*)
561    site=$ac_optarg ;;
562
563  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
564    ac_prev=srcdir ;;
565  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
566    srcdir=$ac_optarg ;;
567
568  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
569  | --syscon | --sysco | --sysc | --sys | --sy)
570    ac_prev=sysconfdir ;;
571  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
572  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
573    sysconfdir=$ac_optarg ;;
574
575  -target | --target | --targe | --targ | --tar | --ta | --t)
576    ac_prev=target_alias ;;
577  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
578    target_alias=$ac_optarg ;;
579
580  -v | -verbose | --verbose | --verbos | --verbo | --verb)
581    verbose=yes ;;
582
583  -version | --version | --versio | --versi | --vers | -V)
584    ac_init_version=: ;;
585
586  -with-* | --with-*)
587    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
588    # Reject names that are not valid shell variable names.
589    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
590      { echo "$as_me: error: invalid package name: $ac_package" >&2
591   { (exit 1); exit 1; }; }
592    ac_package=`echo $ac_package| sed 's/-/_/g'`
593    case $ac_option in
594      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
595      *) ac_optarg=yes ;;
596    esac
597    eval "with_$ac_package='$ac_optarg'" ;;
598
599  -without-* | --without-*)
600    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
601    # Reject names that are not valid shell variable names.
602    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
603      { echo "$as_me: error: invalid package name: $ac_package" >&2
604   { (exit 1); exit 1; }; }
605    ac_package=`echo $ac_package | sed 's/-/_/g'`
606    eval "with_$ac_package=no" ;;
607
608  --x)
609    # Obsolete; use --with-x.
610    with_x=yes ;;
611
612  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
613  | --x-incl | --x-inc | --x-in | --x-i)
614    ac_prev=x_includes ;;
615  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
616  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
617    x_includes=$ac_optarg ;;
618
619  -x-libraries | --x-libraries | --x-librarie | --x-librari \
620  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
621    ac_prev=x_libraries ;;
622  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
623  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
624    x_libraries=$ac_optarg ;;
625
626  -*) { echo "$as_me: error: unrecognized option: $ac_option
627Try \`$0 --help' for more information." >&2
628   { (exit 1); exit 1; }; }
629    ;;
630
631  *=*)
632    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
633    # Reject names that are not valid shell variable names.
634    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
635      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
636   { (exit 1); exit 1; }; }
637    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
638    eval "$ac_envvar='$ac_optarg'"
639    export $ac_envvar ;;
640
641  *)
642    # FIXME: should be removed in autoconf 3.0.
643    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
644    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
645      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
646    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
647    ;;
648
649  esac
650done
651
652if test -n "$ac_prev"; then
653  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
654  { echo "$as_me: error: missing argument to $ac_option" >&2
655   { (exit 1); exit 1; }; }
656fi
657
658# Be sure to have absolute paths.
659for ac_var in exec_prefix prefix
660do
661  eval ac_val=$`echo $ac_var`
662  case $ac_val in
663    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
664    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
665   { (exit 1); exit 1; }; };;
666  esac
667done
668
669# Be sure to have absolute paths.
670for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
671	      localstatedir libdir includedir oldincludedir infodir mandir
672do
673  eval ac_val=$`echo $ac_var`
674  case $ac_val in
675    [\\/$]* | ?:[\\/]* ) ;;
676    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
677   { (exit 1); exit 1; }; };;
678  esac
679done
680
681# There might be people who depend on the old broken behavior: `$host'
682# used to hold the argument of --host etc.
683# FIXME: To remove some day.
684build=$build_alias
685host=$host_alias
686target=$target_alias
687
688# FIXME: To remove some day.
689if test "x$host_alias" != x; then
690  if test "x$build_alias" = x; then
691    cross_compiling=maybe
692    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
693    If a cross compiler is detected then cross compile mode will be used." >&2
694  elif test "x$build_alias" != "x$host_alias"; then
695    cross_compiling=yes
696  fi
697fi
698
699ac_tool_prefix=
700test -n "$host_alias" && ac_tool_prefix=$host_alias-
701
702test "$silent" = yes && exec 6>/dev/null
703
704
705# Find the source files, if location was not specified.
706if test -z "$srcdir"; then
707  ac_srcdir_defaulted=yes
708  # Try the directory containing this script, then its parent.
709  ac_confdir=`(dirname "$0") 2>/dev/null ||
710$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
711	 X"$0" : 'X\(//\)[^/]' \| \
712	 X"$0" : 'X\(//\)$' \| \
713	 X"$0" : 'X\(/\)' \| \
714	 .     : '\(.\)' 2>/dev/null ||
715echo X"$0" |
716    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
717  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
718  	  /^X\(\/\/\)$/{ s//\1/; q; }
719  	  /^X\(\/\).*/{ s//\1/; q; }
720  	  s/.*/./; q'`
721  srcdir=$ac_confdir
722  if test ! -r $srcdir/$ac_unique_file; then
723    srcdir=..
724  fi
725else
726  ac_srcdir_defaulted=no
727fi
728if test ! -r $srcdir/$ac_unique_file; then
729  if test "$ac_srcdir_defaulted" = yes; then
730    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
731   { (exit 1); exit 1; }; }
732  else
733    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
734   { (exit 1); exit 1; }; }
735  fi
736fi
737(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
738  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
739   { (exit 1); exit 1; }; }
740srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
741ac_env_build_alias_set=${build_alias+set}
742ac_env_build_alias_value=$build_alias
743ac_cv_env_build_alias_set=${build_alias+set}
744ac_cv_env_build_alias_value=$build_alias
745ac_env_host_alias_set=${host_alias+set}
746ac_env_host_alias_value=$host_alias
747ac_cv_env_host_alias_set=${host_alias+set}
748ac_cv_env_host_alias_value=$host_alias
749ac_env_target_alias_set=${target_alias+set}
750ac_env_target_alias_value=$target_alias
751ac_cv_env_target_alias_set=${target_alias+set}
752ac_cv_env_target_alias_value=$target_alias
753ac_env_CC_set=${CC+set}
754ac_env_CC_value=$CC
755ac_cv_env_CC_set=${CC+set}
756ac_cv_env_CC_value=$CC
757ac_env_CFLAGS_set=${CFLAGS+set}
758ac_env_CFLAGS_value=$CFLAGS
759ac_cv_env_CFLAGS_set=${CFLAGS+set}
760ac_cv_env_CFLAGS_value=$CFLAGS
761ac_env_LDFLAGS_set=${LDFLAGS+set}
762ac_env_LDFLAGS_value=$LDFLAGS
763ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
764ac_cv_env_LDFLAGS_value=$LDFLAGS
765ac_env_CPPFLAGS_set=${CPPFLAGS+set}
766ac_env_CPPFLAGS_value=$CPPFLAGS
767ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
768ac_cv_env_CPPFLAGS_value=$CPPFLAGS
769ac_env_CPP_set=${CPP+set}
770ac_env_CPP_value=$CPP
771ac_cv_env_CPP_set=${CPP+set}
772ac_cv_env_CPP_value=$CPP
773
774#
775# Report the --help message.
776#
777if test "$ac_init_help" = "long"; then
778  # Omit some internal or obsolete options to make the list less imposing.
779  # This message is too long to be a string in the A/UX 3.1 sh.
780  cat <<_ACEOF
781\`configure' configures this package to adapt to many kinds of systems.
782
783Usage: $0 [OPTION]... [VAR=VALUE]...
784
785To assign environment variables (e.g., CC, CFLAGS...), specify them as
786VAR=VALUE.  See below for descriptions of some of the useful variables.
787
788Defaults for the options are specified in brackets.
789
790Configuration:
791  -h, --help              display this help and exit
792      --help=short        display options specific to this package
793      --help=recursive    display the short help of all the included packages
794  -V, --version           display version information and exit
795  -q, --quiet, --silent   do not print \`checking...' messages
796      --cache-file=FILE   cache test results in FILE [disabled]
797  -C, --config-cache      alias for \`--cache-file=config.cache'
798  -n, --no-create         do not create output files
799      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
800
801_ACEOF
802
803  cat <<_ACEOF
804Installation directories:
805  --prefix=PREFIX         install architecture-independent files in PREFIX
806			  [$ac_default_prefix]
807  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
808			  [PREFIX]
809
810By default, \`make install' will install all the files in
811\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
812an installation prefix other than \`$ac_default_prefix' using \`--prefix',
813for instance \`--prefix=\$HOME'.
814
815For better control, use the options below.
816
817Fine tuning of the installation directories:
818  --bindir=DIR           user executables [EPREFIX/bin]
819  --sbindir=DIR          system admin executables [EPREFIX/sbin]
820  --libexecdir=DIR       program executables [EPREFIX/libexec]
821  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
822  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
823  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
824  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
825  --libdir=DIR           object code libraries [EPREFIX/lib]
826  --includedir=DIR       C header files [PREFIX/include]
827  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
828  --infodir=DIR          info documentation [PREFIX/info]
829  --mandir=DIR           man documentation [PREFIX/man]
830_ACEOF
831
832  cat <<\_ACEOF
833_ACEOF
834fi
835
836if test -n "$ac_init_help"; then
837
838  cat <<\_ACEOF
839
840Optional Features:
841  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
842  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
843  --enable-threads        build with threads
844  --enable-shared         build and link with shared libraries --enable-shared
845  --enable-64bit          enable 64bit support (where applicable)
846  --enable-wince          enable Win/CE support (where applicable)
847  --enable-symbols        build with debugging symbols --disable-symbols
848  --enable-embedded-manifest
849                          embed manifest if possible (default: yes)
850
851Optional Packages:
852  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
853  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
854  --with-encoding              encoding for configuration values
855  --with-celib=DIR        use Windows/CE support library from DIR
856
857Some influential environment variables:
858  CC          C compiler command
859  CFLAGS      C compiler flags
860  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
861              nonstandard directory <lib dir>
862  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
863              headers in a nonstandard directory <include dir>
864  CPP         C preprocessor
865
866Use these variables to override the choices made by `configure' or to help
867it to find libraries and programs with nonstandard names/locations.
868
869_ACEOF
870fi
871
872if test "$ac_init_help" = "recursive"; then
873  # If there are subdirs, report their specific --help.
874  ac_popdir=`pwd`
875  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
876    test -d $ac_dir || continue
877    ac_builddir=.
878
879if test "$ac_dir" != .; then
880  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
881  # A "../" for each directory in $ac_dir_suffix.
882  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
883else
884  ac_dir_suffix= ac_top_builddir=
885fi
886
887case $srcdir in
888  .)  # No --srcdir option.  We are building in place.
889    ac_srcdir=.
890    if test -z "$ac_top_builddir"; then
891       ac_top_srcdir=.
892    else
893       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
894    fi ;;
895  [\\/]* | ?:[\\/]* )  # Absolute path.
896    ac_srcdir=$srcdir$ac_dir_suffix;
897    ac_top_srcdir=$srcdir ;;
898  *) # Relative path.
899    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
900    ac_top_srcdir=$ac_top_builddir$srcdir ;;
901esac
902
903# Do not use `cd foo && pwd` to compute absolute paths, because
904# the directories may not exist.
905case `pwd` in
906.) ac_abs_builddir="$ac_dir";;
907*)
908  case "$ac_dir" in
909  .) ac_abs_builddir=`pwd`;;
910  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
911  *) ac_abs_builddir=`pwd`/"$ac_dir";;
912  esac;;
913esac
914case $ac_abs_builddir in
915.) ac_abs_top_builddir=${ac_top_builddir}.;;
916*)
917  case ${ac_top_builddir}. in
918  .) ac_abs_top_builddir=$ac_abs_builddir;;
919  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
920  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
921  esac;;
922esac
923case $ac_abs_builddir in
924.) ac_abs_srcdir=$ac_srcdir;;
925*)
926  case $ac_srcdir in
927  .) ac_abs_srcdir=$ac_abs_builddir;;
928  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
929  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
930  esac;;
931esac
932case $ac_abs_builddir in
933.) ac_abs_top_srcdir=$ac_top_srcdir;;
934*)
935  case $ac_top_srcdir in
936  .) ac_abs_top_srcdir=$ac_abs_builddir;;
937  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
938  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
939  esac;;
940esac
941
942    cd $ac_dir
943    # Check for guested configure; otherwise get Cygnus style configure.
944    if test -f $ac_srcdir/configure.gnu; then
945      echo
946      $SHELL $ac_srcdir/configure.gnu  --help=recursive
947    elif test -f $ac_srcdir/configure; then
948      echo
949      $SHELL $ac_srcdir/configure  --help=recursive
950    elif test -f $ac_srcdir/configure.ac ||
951	   test -f $ac_srcdir/configure.in; then
952      echo
953      $ac_configure --help
954    else
955      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
956    fi
957    cd $ac_popdir
958  done
959fi
960
961test -n "$ac_init_help" && exit 0
962if $ac_init_version; then
963  cat <<\_ACEOF
964
965Copyright (C) 2003 Free Software Foundation, Inc.
966This configure script is free software; the Free Software Foundation
967gives unlimited permission to copy, distribute and modify it.
968_ACEOF
969  exit 0
970fi
971exec 5>config.log
972cat >&5 <<_ACEOF
973This file contains any messages produced by compilers while
974running configure, to aid debugging if configure makes a mistake.
975
976It was created by $as_me, which was
977generated by GNU Autoconf 2.59.  Invocation command line was
978
979  $ $0 $@
980
981_ACEOF
982{
983cat <<_ASUNAME
984## --------- ##
985## Platform. ##
986## --------- ##
987
988hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
989uname -m = `(uname -m) 2>/dev/null || echo unknown`
990uname -r = `(uname -r) 2>/dev/null || echo unknown`
991uname -s = `(uname -s) 2>/dev/null || echo unknown`
992uname -v = `(uname -v) 2>/dev/null || echo unknown`
993
994/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
995/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
996
997/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
998/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
999/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1000hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1001/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1002/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1003/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1004
1005_ASUNAME
1006
1007as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1008for as_dir in $PATH
1009do
1010  IFS=$as_save_IFS
1011  test -z "$as_dir" && as_dir=.
1012  echo "PATH: $as_dir"
1013done
1014
1015} >&5
1016
1017cat >&5 <<_ACEOF
1018
1019
1020## ----------- ##
1021## Core tests. ##
1022## ----------- ##
1023
1024_ACEOF
1025
1026
1027# Keep a trace of the command line.
1028# Strip out --no-create and --no-recursion so they do not pile up.
1029# Strip out --silent because we don't want to record it for future runs.
1030# Also quote any args containing shell meta-characters.
1031# Make two passes to allow for proper duplicate-argument suppression.
1032ac_configure_args=
1033ac_configure_args0=
1034ac_configure_args1=
1035ac_sep=
1036ac_must_keep_next=false
1037for ac_pass in 1 2
1038do
1039  for ac_arg
1040  do
1041    case $ac_arg in
1042    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1043    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1044    | -silent | --silent | --silen | --sile | --sil)
1045      continue ;;
1046    *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1047      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1048    esac
1049    case $ac_pass in
1050    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1051    2)
1052      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1053      if test $ac_must_keep_next = true; then
1054	ac_must_keep_next=false # Got value, back to normal.
1055      else
1056	case $ac_arg in
1057	  *=* | --config-cache | -C | -disable-* | --disable-* \
1058	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1059	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1060	  | -with-* | --with-* | -without-* | --without-* | --x)
1061	    case "$ac_configure_args0 " in
1062	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1063	    esac
1064	    ;;
1065	  -* ) ac_must_keep_next=true ;;
1066	esac
1067      fi
1068      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1069      # Get rid of the leading space.
1070      ac_sep=" "
1071      ;;
1072    esac
1073  done
1074done
1075$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1076$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1077
1078# When interrupted or exit'd, cleanup temporary files, and complete
1079# config.log.  We remove comments because anyway the quotes in there
1080# would cause problems or look ugly.
1081# WARNING: Be sure not to use single quotes in there, as some shells,
1082# such as our DU 5.0 friend, will then `close' the trap.
1083trap 'exit_status=$?
1084  # Save into config.log some information that might help in debugging.
1085  {
1086    echo
1087
1088    cat <<\_ASBOX
1089## ---------------- ##
1090## Cache variables. ##
1091## ---------------- ##
1092_ASBOX
1093    echo
1094    # The following way of writing the cache mishandles newlines in values,
1095{
1096  (set) 2>&1 |
1097    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1098    *ac_space=\ *)
1099      sed -n \
1100	"s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1101	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1102      ;;
1103    *)
1104      sed -n \
1105	"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1106      ;;
1107    esac;
1108}
1109    echo
1110
1111    cat <<\_ASBOX
1112## ----------------- ##
1113## Output variables. ##
1114## ----------------- ##
1115_ASBOX
1116    echo
1117    for ac_var in $ac_subst_vars
1118    do
1119      eval ac_val=$`echo $ac_var`
1120      echo "$ac_var='"'"'$ac_val'"'"'"
1121    done | sort
1122    echo
1123
1124    if test -n "$ac_subst_files"; then
1125      cat <<\_ASBOX
1126## ------------- ##
1127## Output files. ##
1128## ------------- ##
1129_ASBOX
1130      echo
1131      for ac_var in $ac_subst_files
1132      do
1133	eval ac_val=$`echo $ac_var`
1134	echo "$ac_var='"'"'$ac_val'"'"'"
1135      done | sort
1136      echo
1137    fi
1138
1139    if test -s confdefs.h; then
1140      cat <<\_ASBOX
1141## ----------- ##
1142## confdefs.h. ##
1143## ----------- ##
1144_ASBOX
1145      echo
1146      sed "/^$/d" confdefs.h | sort
1147      echo
1148    fi
1149    test "$ac_signal" != 0 &&
1150      echo "$as_me: caught signal $ac_signal"
1151    echo "$as_me: exit $exit_status"
1152  } >&5
1153  rm -f core *.core &&
1154  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1155    exit $exit_status
1156     ' 0
1157for ac_signal in 1 2 13 15; do
1158  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1159done
1160ac_signal=0
1161
1162# confdefs.h avoids OS command line length limits that DEFS can exceed.
1163rm -rf conftest* confdefs.h
1164# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1165echo >confdefs.h
1166
1167# Predefined preprocessor variables.
1168
1169cat >>confdefs.h <<_ACEOF
1170#define PACKAGE_NAME "$PACKAGE_NAME"
1171_ACEOF
1172
1173
1174cat >>confdefs.h <<_ACEOF
1175#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1176_ACEOF
1177
1178
1179cat >>confdefs.h <<_ACEOF
1180#define PACKAGE_VERSION "$PACKAGE_VERSION"
1181_ACEOF
1182
1183
1184cat >>confdefs.h <<_ACEOF
1185#define PACKAGE_STRING "$PACKAGE_STRING"
1186_ACEOF
1187
1188
1189cat >>confdefs.h <<_ACEOF
1190#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1191_ACEOF
1192
1193
1194# Let the site file select an alternate cache file if it wants to.
1195# Prefer explicitly selected file to automatically selected ones.
1196if test -z "$CONFIG_SITE"; then
1197  if test "x$prefix" != xNONE; then
1198    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1199  else
1200    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1201  fi
1202fi
1203for ac_site_file in $CONFIG_SITE; do
1204  if test -r "$ac_site_file"; then
1205    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1206echo "$as_me: loading site script $ac_site_file" >&6;}
1207    sed 's/^/| /' "$ac_site_file" >&5
1208    . "$ac_site_file"
1209  fi
1210done
1211
1212if test -r "$cache_file"; then
1213  # Some versions of bash will fail to source /dev/null (special
1214  # files actually), so we avoid doing that.
1215  if test -f "$cache_file"; then
1216    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1217echo "$as_me: loading cache $cache_file" >&6;}
1218    case $cache_file in
1219      [\\/]* | ?:[\\/]* ) . $cache_file;;
1220      *)                      . ./$cache_file;;
1221    esac
1222  fi
1223else
1224  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1225echo "$as_me: creating cache $cache_file" >&6;}
1226  >$cache_file
1227fi
1228
1229# Check that the precious variables saved in the cache have kept the same
1230# value.
1231ac_cache_corrupted=false
1232for ac_var in `(set) 2>&1 |
1233	       sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1234  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1235  eval ac_new_set=\$ac_env_${ac_var}_set
1236  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1237  eval ac_new_val="\$ac_env_${ac_var}_value"
1238  case $ac_old_set,$ac_new_set in
1239    set,)
1240      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1241echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1242      ac_cache_corrupted=: ;;
1243    ,set)
1244      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1245echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1246      ac_cache_corrupted=: ;;
1247    ,);;
1248    *)
1249      if test "x$ac_old_val" != "x$ac_new_val"; then
1250	{ echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1251echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1252	{ echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1253echo "$as_me:   former value:  $ac_old_val" >&2;}
1254	{ echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1255echo "$as_me:   current value: $ac_new_val" >&2;}
1256	ac_cache_corrupted=:
1257      fi;;
1258  esac
1259  # Pass precious variables to config.status.
1260  if test "$ac_new_set" = set; then
1261    case $ac_new_val in
1262    *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1263      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1264    *) ac_arg=$ac_var=$ac_new_val ;;
1265    esac
1266    case " $ac_configure_args " in
1267      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1268      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1269    esac
1270  fi
1271done
1272if $ac_cache_corrupted; then
1273  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1274echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1275  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1276echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1277   { (exit 1); exit 1; }; }
1278fi
1279
1280ac_ext=c
1281ac_cpp='$CPP $CPPFLAGS'
1282ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1283ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1284ac_compiler_gnu=$ac_cv_c_compiler_gnu
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306# The following define is needed when building with Cygwin since newer
1307# versions of autoconf incorrectly set SHELL to /bin/bash instead of
1308# /bin/sh. The bash shell seems to suffer from some strange failures.
1309SHELL=/bin/sh
1310
1311TCL_VERSION=8.5
1312TCL_MAJOR_VERSION=8
1313TCL_MINOR_VERSION=5
1314TCL_PATCH_LEVEL=".9"
1315VER=$TCL_MAJOR_VERSION$TCL_MINOR_VERSION
1316
1317TCL_DDE_VERSION=1.3
1318TCL_DDE_MAJOR_VERSION=1
1319TCL_DDE_MINOR_VERSION=3
1320TCL_DDE_PATCH_LEVEL="2"
1321DDEVER=$TCL_DDE_MAJOR_VERSION$TCL_DDE_MINOR_VERSION
1322
1323TCL_REG_VERSION=1.2
1324TCL_REG_MAJOR_VERSION=1
1325TCL_REG_MINOR_VERSION=2
1326TCL_REG_PATCH_LEVEL="1"
1327REGVER=$TCL_REG_MAJOR_VERSION$TCL_REG_MINOR_VERSION
1328
1329#------------------------------------------------------------------------
1330# Handle the --prefix=... option
1331#------------------------------------------------------------------------
1332
1333if test "${prefix}" = "NONE"; then
1334    prefix=/usr/local
1335fi
1336if test "${exec_prefix}" = "NONE"; then
1337    exec_prefix=$prefix
1338fi
1339# libdir must be a fully qualified path (not ${exec_prefix}/lib)
1340eval libdir="$libdir"
1341
1342#------------------------------------------------------------------------
1343# Standard compiler checks
1344#------------------------------------------------------------------------
1345
1346# If the user did not set CFLAGS, set it now to keep
1347# the AC_PROG_CC macro from adding "-g -O2".
1348if test "${CFLAGS+set}" != "set" ; then
1349    CFLAGS=""
1350fi
1351
1352ac_ext=c
1353ac_cpp='$CPP $CPPFLAGS'
1354ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1355ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1356ac_compiler_gnu=$ac_cv_c_compiler_gnu
1357if test -n "$ac_tool_prefix"; then
1358  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1359set dummy ${ac_tool_prefix}gcc; ac_word=$2
1360echo "$as_me:$LINENO: checking for $ac_word" >&5
1361echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1362if test "${ac_cv_prog_CC+set}" = set; then
1363  echo $ECHO_N "(cached) $ECHO_C" >&6
1364else
1365  if test -n "$CC"; then
1366  ac_cv_prog_CC="$CC" # Let the user override the test.
1367else
1368as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1369for as_dir in $PATH
1370do
1371  IFS=$as_save_IFS
1372  test -z "$as_dir" && as_dir=.
1373  for ac_exec_ext in '' $ac_executable_extensions; do
1374  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1375    ac_cv_prog_CC="${ac_tool_prefix}gcc"
1376    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1377    break 2
1378  fi
1379done
1380done
1381
1382fi
1383fi
1384CC=$ac_cv_prog_CC
1385if test -n "$CC"; then
1386  echo "$as_me:$LINENO: result: $CC" >&5
1387echo "${ECHO_T}$CC" >&6
1388else
1389  echo "$as_me:$LINENO: result: no" >&5
1390echo "${ECHO_T}no" >&6
1391fi
1392
1393fi
1394if test -z "$ac_cv_prog_CC"; then
1395  ac_ct_CC=$CC
1396  # Extract the first word of "gcc", so it can be a program name with args.
1397set dummy gcc; ac_word=$2
1398echo "$as_me:$LINENO: checking for $ac_word" >&5
1399echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1400if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1401  echo $ECHO_N "(cached) $ECHO_C" >&6
1402else
1403  if test -n "$ac_ct_CC"; then
1404  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1405else
1406as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1407for as_dir in $PATH
1408do
1409  IFS=$as_save_IFS
1410  test -z "$as_dir" && as_dir=.
1411  for ac_exec_ext in '' $ac_executable_extensions; do
1412  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1413    ac_cv_prog_ac_ct_CC="gcc"
1414    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1415    break 2
1416  fi
1417done
1418done
1419
1420fi
1421fi
1422ac_ct_CC=$ac_cv_prog_ac_ct_CC
1423if test -n "$ac_ct_CC"; then
1424  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1425echo "${ECHO_T}$ac_ct_CC" >&6
1426else
1427  echo "$as_me:$LINENO: result: no" >&5
1428echo "${ECHO_T}no" >&6
1429fi
1430
1431  CC=$ac_ct_CC
1432else
1433  CC="$ac_cv_prog_CC"
1434fi
1435
1436if test -z "$CC"; then
1437  if test -n "$ac_tool_prefix"; then
1438  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1439set dummy ${ac_tool_prefix}cc; ac_word=$2
1440echo "$as_me:$LINENO: checking for $ac_word" >&5
1441echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1442if test "${ac_cv_prog_CC+set}" = set; then
1443  echo $ECHO_N "(cached) $ECHO_C" >&6
1444else
1445  if test -n "$CC"; then
1446  ac_cv_prog_CC="$CC" # Let the user override the test.
1447else
1448as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1449for as_dir in $PATH
1450do
1451  IFS=$as_save_IFS
1452  test -z "$as_dir" && as_dir=.
1453  for ac_exec_ext in '' $ac_executable_extensions; do
1454  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1455    ac_cv_prog_CC="${ac_tool_prefix}cc"
1456    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1457    break 2
1458  fi
1459done
1460done
1461
1462fi
1463fi
1464CC=$ac_cv_prog_CC
1465if test -n "$CC"; then
1466  echo "$as_me:$LINENO: result: $CC" >&5
1467echo "${ECHO_T}$CC" >&6
1468else
1469  echo "$as_me:$LINENO: result: no" >&5
1470echo "${ECHO_T}no" >&6
1471fi
1472
1473fi
1474if test -z "$ac_cv_prog_CC"; then
1475  ac_ct_CC=$CC
1476  # Extract the first word of "cc", so it can be a program name with args.
1477set dummy cc; ac_word=$2
1478echo "$as_me:$LINENO: checking for $ac_word" >&5
1479echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1480if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1481  echo $ECHO_N "(cached) $ECHO_C" >&6
1482else
1483  if test -n "$ac_ct_CC"; then
1484  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1485else
1486as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1487for as_dir in $PATH
1488do
1489  IFS=$as_save_IFS
1490  test -z "$as_dir" && as_dir=.
1491  for ac_exec_ext in '' $ac_executable_extensions; do
1492  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1493    ac_cv_prog_ac_ct_CC="cc"
1494    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1495    break 2
1496  fi
1497done
1498done
1499
1500fi
1501fi
1502ac_ct_CC=$ac_cv_prog_ac_ct_CC
1503if test -n "$ac_ct_CC"; then
1504  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1505echo "${ECHO_T}$ac_ct_CC" >&6
1506else
1507  echo "$as_me:$LINENO: result: no" >&5
1508echo "${ECHO_T}no" >&6
1509fi
1510
1511  CC=$ac_ct_CC
1512else
1513  CC="$ac_cv_prog_CC"
1514fi
1515
1516fi
1517if test -z "$CC"; then
1518  # Extract the first word of "cc", so it can be a program name with args.
1519set dummy cc; ac_word=$2
1520echo "$as_me:$LINENO: checking for $ac_word" >&5
1521echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1522if test "${ac_cv_prog_CC+set}" = set; then
1523  echo $ECHO_N "(cached) $ECHO_C" >&6
1524else
1525  if test -n "$CC"; then
1526  ac_cv_prog_CC="$CC" # Let the user override the test.
1527else
1528  ac_prog_rejected=no
1529as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1530for as_dir in $PATH
1531do
1532  IFS=$as_save_IFS
1533  test -z "$as_dir" && as_dir=.
1534  for ac_exec_ext in '' $ac_executable_extensions; do
1535  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1536    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1537       ac_prog_rejected=yes
1538       continue
1539     fi
1540    ac_cv_prog_CC="cc"
1541    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1542    break 2
1543  fi
1544done
1545done
1546
1547if test $ac_prog_rejected = yes; then
1548  # We found a bogon in the path, so make sure we never use it.
1549  set dummy $ac_cv_prog_CC
1550  shift
1551  if test $# != 0; then
1552    # We chose a different compiler from the bogus one.
1553    # However, it has the same basename, so the bogon will be chosen
1554    # first if we set CC to just the basename; use the full file name.
1555    shift
1556    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1557  fi
1558fi
1559fi
1560fi
1561CC=$ac_cv_prog_CC
1562if test -n "$CC"; then
1563  echo "$as_me:$LINENO: result: $CC" >&5
1564echo "${ECHO_T}$CC" >&6
1565else
1566  echo "$as_me:$LINENO: result: no" >&5
1567echo "${ECHO_T}no" >&6
1568fi
1569
1570fi
1571if test -z "$CC"; then
1572  if test -n "$ac_tool_prefix"; then
1573  for ac_prog in cl
1574  do
1575    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1576set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1577echo "$as_me:$LINENO: checking for $ac_word" >&5
1578echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1579if test "${ac_cv_prog_CC+set}" = set; then
1580  echo $ECHO_N "(cached) $ECHO_C" >&6
1581else
1582  if test -n "$CC"; then
1583  ac_cv_prog_CC="$CC" # Let the user override the test.
1584else
1585as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1586for as_dir in $PATH
1587do
1588  IFS=$as_save_IFS
1589  test -z "$as_dir" && as_dir=.
1590  for ac_exec_ext in '' $ac_executable_extensions; do
1591  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1592    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1593    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1594    break 2
1595  fi
1596done
1597done
1598
1599fi
1600fi
1601CC=$ac_cv_prog_CC
1602if test -n "$CC"; then
1603  echo "$as_me:$LINENO: result: $CC" >&5
1604echo "${ECHO_T}$CC" >&6
1605else
1606  echo "$as_me:$LINENO: result: no" >&5
1607echo "${ECHO_T}no" >&6
1608fi
1609
1610    test -n "$CC" && break
1611  done
1612fi
1613if test -z "$CC"; then
1614  ac_ct_CC=$CC
1615  for ac_prog in cl
1616do
1617  # Extract the first word of "$ac_prog", so it can be a program name with args.
1618set dummy $ac_prog; ac_word=$2
1619echo "$as_me:$LINENO: checking for $ac_word" >&5
1620echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1621if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1622  echo $ECHO_N "(cached) $ECHO_C" >&6
1623else
1624  if test -n "$ac_ct_CC"; then
1625  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1626else
1627as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1628for as_dir in $PATH
1629do
1630  IFS=$as_save_IFS
1631  test -z "$as_dir" && as_dir=.
1632  for ac_exec_ext in '' $ac_executable_extensions; do
1633  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1634    ac_cv_prog_ac_ct_CC="$ac_prog"
1635    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1636    break 2
1637  fi
1638done
1639done
1640
1641fi
1642fi
1643ac_ct_CC=$ac_cv_prog_ac_ct_CC
1644if test -n "$ac_ct_CC"; then
1645  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1646echo "${ECHO_T}$ac_ct_CC" >&6
1647else
1648  echo "$as_me:$LINENO: result: no" >&5
1649echo "${ECHO_T}no" >&6
1650fi
1651
1652  test -n "$ac_ct_CC" && break
1653done
1654
1655  CC=$ac_ct_CC
1656fi
1657
1658fi
1659
1660
1661test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1662See \`config.log' for more details." >&5
1663echo "$as_me: error: no acceptable C compiler found in \$PATH
1664See \`config.log' for more details." >&2;}
1665   { (exit 1); exit 1; }; }
1666
1667# Provide some information about the compiler.
1668echo "$as_me:$LINENO:" \
1669     "checking for C compiler version" >&5
1670ac_compiler=`set X $ac_compile; echo $2`
1671{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1672  (eval $ac_compiler --version </dev/null >&5) 2>&5
1673  ac_status=$?
1674  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1675  (exit $ac_status); }
1676{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1677  (eval $ac_compiler -v </dev/null >&5) 2>&5
1678  ac_status=$?
1679  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1680  (exit $ac_status); }
1681{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1682  (eval $ac_compiler -V </dev/null >&5) 2>&5
1683  ac_status=$?
1684  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1685  (exit $ac_status); }
1686
1687cat >conftest.$ac_ext <<_ACEOF
1688/* confdefs.h.  */
1689_ACEOF
1690cat confdefs.h >>conftest.$ac_ext
1691cat >>conftest.$ac_ext <<_ACEOF
1692/* end confdefs.h.  */
1693
1694int
1695main ()
1696{
1697
1698  ;
1699  return 0;
1700}
1701_ACEOF
1702ac_clean_files_save=$ac_clean_files
1703ac_clean_files="$ac_clean_files a.out a.exe b.out"
1704# Try to create an executable without -o first, disregard a.out.
1705# It will help us diagnose broken compilers, and finding out an intuition
1706# of exeext.
1707echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1708echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1709ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1710if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1711  (eval $ac_link_default) 2>&5
1712  ac_status=$?
1713  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1714  (exit $ac_status); }; then
1715  # Find the output, starting from the most likely.  This scheme is
1716# not robust to junk in `.', hence go to wildcards (a.*) only as a last
1717# resort.
1718
1719# Be careful to initialize this variable, since it used to be cached.
1720# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1721ac_cv_exeext=
1722# b.out is created by i960 compilers.
1723for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1724do
1725  test -f "$ac_file" || continue
1726  case $ac_file in
1727    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1728	;;
1729    conftest.$ac_ext )
1730	# This is the source file.
1731	;;
1732    [ab].out )
1733	# We found the default executable, but exeext='' is most
1734	# certainly right.
1735	break;;
1736    *.* )
1737	ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1738	# FIXME: I believe we export ac_cv_exeext for Libtool,
1739	# but it would be cool to find out if it's true.  Does anybody
1740	# maintain Libtool? --akim.
1741	export ac_cv_exeext
1742	break;;
1743    * )
1744	break;;
1745  esac
1746done
1747else
1748  echo "$as_me: failed program was:" >&5
1749sed 's/^/| /' conftest.$ac_ext >&5
1750
1751{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
1752See \`config.log' for more details." >&5
1753echo "$as_me: error: C compiler cannot create executables
1754See \`config.log' for more details." >&2;}
1755   { (exit 77); exit 77; }; }
1756fi
1757
1758ac_exeext=$ac_cv_exeext
1759echo "$as_me:$LINENO: result: $ac_file" >&5
1760echo "${ECHO_T}$ac_file" >&6
1761
1762# Check the compiler produces executables we can run.  If not, either
1763# the compiler is broken, or we cross compile.
1764echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1765echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1766# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1767# If not cross compiling, check that we can run a simple program.
1768if test "$cross_compiling" != yes; then
1769  if { ac_try='./$ac_file'
1770  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1771  (eval $ac_try) 2>&5
1772  ac_status=$?
1773  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1774  (exit $ac_status); }; }; then
1775    cross_compiling=no
1776  else
1777    if test "$cross_compiling" = maybe; then
1778	cross_compiling=yes
1779    else
1780	{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1781If you meant to cross compile, use \`--host'.
1782See \`config.log' for more details." >&5
1783echo "$as_me: error: cannot run C compiled programs.
1784If you meant to cross compile, use \`--host'.
1785See \`config.log' for more details." >&2;}
1786   { (exit 1); exit 1; }; }
1787    fi
1788  fi
1789fi
1790echo "$as_me:$LINENO: result: yes" >&5
1791echo "${ECHO_T}yes" >&6
1792
1793rm -f a.out a.exe conftest$ac_cv_exeext b.out
1794ac_clean_files=$ac_clean_files_save
1795# Check the compiler produces executables we can run.  If not, either
1796# the compiler is broken, or we cross compile.
1797echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1798echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1799echo "$as_me:$LINENO: result: $cross_compiling" >&5
1800echo "${ECHO_T}$cross_compiling" >&6
1801
1802echo "$as_me:$LINENO: checking for suffix of executables" >&5
1803echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1804if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1805  (eval $ac_link) 2>&5
1806  ac_status=$?
1807  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1808  (exit $ac_status); }; then
1809  # If both `conftest.exe' and `conftest' are `present' (well, observable)
1810# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
1811# work properly (i.e., refer to `conftest.exe'), while it won't with
1812# `rm'.
1813for ac_file in conftest.exe conftest conftest.*; do
1814  test -f "$ac_file" || continue
1815  case $ac_file in
1816    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1817    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1818	  export ac_cv_exeext
1819	  break;;
1820    * ) break;;
1821  esac
1822done
1823else
1824  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1825See \`config.log' for more details." >&5
1826echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1827See \`config.log' for more details." >&2;}
1828   { (exit 1); exit 1; }; }
1829fi
1830
1831rm -f conftest$ac_cv_exeext
1832echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1833echo "${ECHO_T}$ac_cv_exeext" >&6
1834
1835rm -f conftest.$ac_ext
1836EXEEXT=$ac_cv_exeext
1837ac_exeext=$EXEEXT
1838echo "$as_me:$LINENO: checking for suffix of object files" >&5
1839echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1840if test "${ac_cv_objext+set}" = set; then
1841  echo $ECHO_N "(cached) $ECHO_C" >&6
1842else
1843  cat >conftest.$ac_ext <<_ACEOF
1844/* confdefs.h.  */
1845_ACEOF
1846cat confdefs.h >>conftest.$ac_ext
1847cat >>conftest.$ac_ext <<_ACEOF
1848/* end confdefs.h.  */
1849
1850int
1851main ()
1852{
1853
1854  ;
1855  return 0;
1856}
1857_ACEOF
1858rm -f conftest.o conftest.obj
1859if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1860  (eval $ac_compile) 2>&5
1861  ac_status=$?
1862  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1863  (exit $ac_status); }; then
1864  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1865  case $ac_file in
1866    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1867    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1868       break;;
1869  esac
1870done
1871else
1872  echo "$as_me: failed program was:" >&5
1873sed 's/^/| /' conftest.$ac_ext >&5
1874
1875{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1876See \`config.log' for more details." >&5
1877echo "$as_me: error: cannot compute suffix of object files: cannot compile
1878See \`config.log' for more details." >&2;}
1879   { (exit 1); exit 1; }; }
1880fi
1881
1882rm -f conftest.$ac_cv_objext conftest.$ac_ext
1883fi
1884echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1885echo "${ECHO_T}$ac_cv_objext" >&6
1886OBJEXT=$ac_cv_objext
1887ac_objext=$OBJEXT
1888echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1889echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1890if test "${ac_cv_c_compiler_gnu+set}" = set; then
1891  echo $ECHO_N "(cached) $ECHO_C" >&6
1892else
1893  cat >conftest.$ac_ext <<_ACEOF
1894/* confdefs.h.  */
1895_ACEOF
1896cat confdefs.h >>conftest.$ac_ext
1897cat >>conftest.$ac_ext <<_ACEOF
1898/* end confdefs.h.  */
1899
1900int
1901main ()
1902{
1903#ifndef __GNUC__
1904       choke me
1905#endif
1906
1907  ;
1908  return 0;
1909}
1910_ACEOF
1911rm -f conftest.$ac_objext
1912if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1913  (eval $ac_compile) 2>conftest.er1
1914  ac_status=$?
1915  grep -v '^ *+' conftest.er1 >conftest.err
1916  rm -f conftest.er1
1917  cat conftest.err >&5
1918  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1919  (exit $ac_status); } &&
1920	 { ac_try='test -z "$ac_c_werror_flag"
1921			 || test ! -s conftest.err'
1922  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1923  (eval $ac_try) 2>&5
1924  ac_status=$?
1925  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1926  (exit $ac_status); }; } &&
1927	 { ac_try='test -s conftest.$ac_objext'
1928  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1929  (eval $ac_try) 2>&5
1930  ac_status=$?
1931  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1932  (exit $ac_status); }; }; then
1933  ac_compiler_gnu=yes
1934else
1935  echo "$as_me: failed program was:" >&5
1936sed 's/^/| /' conftest.$ac_ext >&5
1937
1938ac_compiler_gnu=no
1939fi
1940rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1941ac_cv_c_compiler_gnu=$ac_compiler_gnu
1942
1943fi
1944echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
1945echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1946GCC=`test $ac_compiler_gnu = yes && echo yes`
1947ac_test_CFLAGS=${CFLAGS+set}
1948ac_save_CFLAGS=$CFLAGS
1949CFLAGS="-g"
1950echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
1951echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1952if test "${ac_cv_prog_cc_g+set}" = set; then
1953  echo $ECHO_N "(cached) $ECHO_C" >&6
1954else
1955  cat >conftest.$ac_ext <<_ACEOF
1956/* confdefs.h.  */
1957_ACEOF
1958cat confdefs.h >>conftest.$ac_ext
1959cat >>conftest.$ac_ext <<_ACEOF
1960/* end confdefs.h.  */
1961
1962int
1963main ()
1964{
1965
1966  ;
1967  return 0;
1968}
1969_ACEOF
1970rm -f conftest.$ac_objext
1971if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1972  (eval $ac_compile) 2>conftest.er1
1973  ac_status=$?
1974  grep -v '^ *+' conftest.er1 >conftest.err
1975  rm -f conftest.er1
1976  cat conftest.err >&5
1977  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1978  (exit $ac_status); } &&
1979	 { ac_try='test -z "$ac_c_werror_flag"
1980			 || test ! -s conftest.err'
1981  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1982  (eval $ac_try) 2>&5
1983  ac_status=$?
1984  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1985  (exit $ac_status); }; } &&
1986	 { ac_try='test -s conftest.$ac_objext'
1987  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1988  (eval $ac_try) 2>&5
1989  ac_status=$?
1990  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1991  (exit $ac_status); }; }; then
1992  ac_cv_prog_cc_g=yes
1993else
1994  echo "$as_me: failed program was:" >&5
1995sed 's/^/| /' conftest.$ac_ext >&5
1996
1997ac_cv_prog_cc_g=no
1998fi
1999rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2000fi
2001echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2002echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2003if test "$ac_test_CFLAGS" = set; then
2004  CFLAGS=$ac_save_CFLAGS
2005elif test $ac_cv_prog_cc_g = yes; then
2006  if test "$GCC" = yes; then
2007    CFLAGS="-g -O2"
2008  else
2009    CFLAGS="-g"
2010  fi
2011else
2012  if test "$GCC" = yes; then
2013    CFLAGS="-O2"
2014  else
2015    CFLAGS=
2016  fi
2017fi
2018echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2019echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2020if test "${ac_cv_prog_cc_stdc+set}" = set; then
2021  echo $ECHO_N "(cached) $ECHO_C" >&6
2022else
2023  ac_cv_prog_cc_stdc=no
2024ac_save_CC=$CC
2025cat >conftest.$ac_ext <<_ACEOF
2026/* confdefs.h.  */
2027_ACEOF
2028cat confdefs.h >>conftest.$ac_ext
2029cat >>conftest.$ac_ext <<_ACEOF
2030/* end confdefs.h.  */
2031#include <stdarg.h>
2032#include <stdio.h>
2033#include <sys/types.h>
2034#include <sys/stat.h>
2035/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2036struct buf { int x; };
2037FILE * (*rcsopen) (struct buf *, struct stat *, int);
2038static char *e (p, i)
2039     char **p;
2040     int i;
2041{
2042  return p[i];
2043}
2044static char *f (char * (*g) (char **, int), char **p, ...)
2045{
2046  char *s;
2047  va_list v;
2048  va_start (v,p);
2049  s = g (p, va_arg (v,int));
2050  va_end (v);
2051  return s;
2052}
2053
2054/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2055   function prototypes and stuff, but not '\xHH' hex character constants.
2056   These don't provoke an error unfortunately, instead are silently treated
2057   as 'x'.  The following induces an error, until -std1 is added to get
2058   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2059   array size at least.  It's necessary to write '\x00'==0 to get something
2060   that's true only with -std1.  */
2061int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2062
2063int test (int i, double x);
2064struct s1 {int (*f) (int a);};
2065struct s2 {int (*f) (double a);};
2066int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2067int argc;
2068char **argv;
2069int
2070main ()
2071{
2072return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2073  ;
2074  return 0;
2075}
2076_ACEOF
2077# Don't try gcc -ansi; that turns off useful extensions and
2078# breaks some systems' header files.
2079# AIX			-qlanglvl=ansi
2080# Ultrix and OSF/1	-std1
2081# HP-UX 10.20 and later	-Ae
2082# HP-UX older versions	-Aa -D_HPUX_SOURCE
2083# SVR4			-Xc -D__EXTENSIONS__
2084for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2085do
2086  CC="$ac_save_CC $ac_arg"
2087  rm -f conftest.$ac_objext
2088if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2089  (eval $ac_compile) 2>conftest.er1
2090  ac_status=$?
2091  grep -v '^ *+' conftest.er1 >conftest.err
2092  rm -f conftest.er1
2093  cat conftest.err >&5
2094  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2095  (exit $ac_status); } &&
2096	 { ac_try='test -z "$ac_c_werror_flag"
2097			 || test ! -s conftest.err'
2098  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2099  (eval $ac_try) 2>&5
2100  ac_status=$?
2101  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2102  (exit $ac_status); }; } &&
2103	 { ac_try='test -s conftest.$ac_objext'
2104  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2105  (eval $ac_try) 2>&5
2106  ac_status=$?
2107  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2108  (exit $ac_status); }; }; then
2109  ac_cv_prog_cc_stdc=$ac_arg
2110break
2111else
2112  echo "$as_me: failed program was:" >&5
2113sed 's/^/| /' conftest.$ac_ext >&5
2114
2115fi
2116rm -f conftest.err conftest.$ac_objext
2117done
2118rm -f conftest.$ac_ext conftest.$ac_objext
2119CC=$ac_save_CC
2120
2121fi
2122
2123case "x$ac_cv_prog_cc_stdc" in
2124  x|xno)
2125    echo "$as_me:$LINENO: result: none needed" >&5
2126echo "${ECHO_T}none needed" >&6 ;;
2127  *)
2128    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2129echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2130    CC="$CC $ac_cv_prog_cc_stdc" ;;
2131esac
2132
2133# Some people use a C++ compiler to compile C.  Since we use `exit',
2134# in C++ we need to declare it.  In case someone uses the same compiler
2135# for both compiling C and C++ we need to have the C++ compiler decide
2136# the declaration of exit, since it's the most demanding environment.
2137cat >conftest.$ac_ext <<_ACEOF
2138#ifndef __cplusplus
2139  choke me
2140#endif
2141_ACEOF
2142rm -f conftest.$ac_objext
2143if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2144  (eval $ac_compile) 2>conftest.er1
2145  ac_status=$?
2146  grep -v '^ *+' conftest.er1 >conftest.err
2147  rm -f conftest.er1
2148  cat conftest.err >&5
2149  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2150  (exit $ac_status); } &&
2151	 { ac_try='test -z "$ac_c_werror_flag"
2152			 || test ! -s conftest.err'
2153  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2154  (eval $ac_try) 2>&5
2155  ac_status=$?
2156  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2157  (exit $ac_status); }; } &&
2158	 { ac_try='test -s conftest.$ac_objext'
2159  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2160  (eval $ac_try) 2>&5
2161  ac_status=$?
2162  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2163  (exit $ac_status); }; }; then
2164  for ac_declaration in \
2165   '' \
2166   'extern "C" void std::exit (int) throw (); using std::exit;' \
2167   'extern "C" void std::exit (int); using std::exit;' \
2168   'extern "C" void exit (int) throw ();' \
2169   'extern "C" void exit (int);' \
2170   'void exit (int);'
2171do
2172  cat >conftest.$ac_ext <<_ACEOF
2173/* confdefs.h.  */
2174_ACEOF
2175cat confdefs.h >>conftest.$ac_ext
2176cat >>conftest.$ac_ext <<_ACEOF
2177/* end confdefs.h.  */
2178$ac_declaration
2179#include <stdlib.h>
2180int
2181main ()
2182{
2183exit (42);
2184  ;
2185  return 0;
2186}
2187_ACEOF
2188rm -f conftest.$ac_objext
2189if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2190  (eval $ac_compile) 2>conftest.er1
2191  ac_status=$?
2192  grep -v '^ *+' conftest.er1 >conftest.err
2193  rm -f conftest.er1
2194  cat conftest.err >&5
2195  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2196  (exit $ac_status); } &&
2197	 { ac_try='test -z "$ac_c_werror_flag"
2198			 || test ! -s conftest.err'
2199  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2200  (eval $ac_try) 2>&5
2201  ac_status=$?
2202  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2203  (exit $ac_status); }; } &&
2204	 { ac_try='test -s conftest.$ac_objext'
2205  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2206  (eval $ac_try) 2>&5
2207  ac_status=$?
2208  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2209  (exit $ac_status); }; }; then
2210  :
2211else
2212  echo "$as_me: failed program was:" >&5
2213sed 's/^/| /' conftest.$ac_ext >&5
2214
2215continue
2216fi
2217rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2218  cat >conftest.$ac_ext <<_ACEOF
2219/* confdefs.h.  */
2220_ACEOF
2221cat confdefs.h >>conftest.$ac_ext
2222cat >>conftest.$ac_ext <<_ACEOF
2223/* end confdefs.h.  */
2224$ac_declaration
2225int
2226main ()
2227{
2228exit (42);
2229  ;
2230  return 0;
2231}
2232_ACEOF
2233rm -f conftest.$ac_objext
2234if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2235  (eval $ac_compile) 2>conftest.er1
2236  ac_status=$?
2237  grep -v '^ *+' conftest.er1 >conftest.err
2238  rm -f conftest.er1
2239  cat conftest.err >&5
2240  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2241  (exit $ac_status); } &&
2242	 { ac_try='test -z "$ac_c_werror_flag"
2243			 || test ! -s conftest.err'
2244  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2245  (eval $ac_try) 2>&5
2246  ac_status=$?
2247  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2248  (exit $ac_status); }; } &&
2249	 { ac_try='test -s conftest.$ac_objext'
2250  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2251  (eval $ac_try) 2>&5
2252  ac_status=$?
2253  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2254  (exit $ac_status); }; }; then
2255  break
2256else
2257  echo "$as_me: failed program was:" >&5
2258sed 's/^/| /' conftest.$ac_ext >&5
2259
2260fi
2261rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2262done
2263rm -f conftest*
2264if test -n "$ac_declaration"; then
2265  echo '#ifdef __cplusplus' >>confdefs.h
2266  echo $ac_declaration      >>confdefs.h
2267  echo '#endif'             >>confdefs.h
2268fi
2269
2270else
2271  echo "$as_me: failed program was:" >&5
2272sed 's/^/| /' conftest.$ac_ext >&5
2273
2274fi
2275rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2276ac_ext=c
2277ac_cpp='$CPP $CPPFLAGS'
2278ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2279ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2280ac_compiler_gnu=$ac_cv_c_compiler_gnu
2281
2282
2283echo "$as_me:$LINENO: checking for inline" >&5
2284echo $ECHO_N "checking for inline... $ECHO_C" >&6
2285if test "${ac_cv_c_inline+set}" = set; then
2286  echo $ECHO_N "(cached) $ECHO_C" >&6
2287else
2288  ac_cv_c_inline=no
2289for ac_kw in inline __inline__ __inline; do
2290  cat >conftest.$ac_ext <<_ACEOF
2291/* confdefs.h.  */
2292_ACEOF
2293cat confdefs.h >>conftest.$ac_ext
2294cat >>conftest.$ac_ext <<_ACEOF
2295/* end confdefs.h.  */
2296#ifndef __cplusplus
2297typedef int foo_t;
2298static $ac_kw foo_t static_foo () {return 0; }
2299$ac_kw foo_t foo () {return 0; }
2300#endif
2301
2302_ACEOF
2303rm -f conftest.$ac_objext
2304if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2305  (eval $ac_compile) 2>conftest.er1
2306  ac_status=$?
2307  grep -v '^ *+' conftest.er1 >conftest.err
2308  rm -f conftest.er1
2309  cat conftest.err >&5
2310  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2311  (exit $ac_status); } &&
2312	 { ac_try='test -z "$ac_c_werror_flag"
2313			 || test ! -s conftest.err'
2314  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2315  (eval $ac_try) 2>&5
2316  ac_status=$?
2317  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2318  (exit $ac_status); }; } &&
2319	 { ac_try='test -s conftest.$ac_objext'
2320  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2321  (eval $ac_try) 2>&5
2322  ac_status=$?
2323  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2324  (exit $ac_status); }; }; then
2325  ac_cv_c_inline=$ac_kw; break
2326else
2327  echo "$as_me: failed program was:" >&5
2328sed 's/^/| /' conftest.$ac_ext >&5
2329
2330fi
2331rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2332done
2333
2334fi
2335echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
2336echo "${ECHO_T}$ac_cv_c_inline" >&6
2337
2338
2339case $ac_cv_c_inline in
2340  inline | yes) ;;
2341  *)
2342    case $ac_cv_c_inline in
2343      no) ac_val=;;
2344      *) ac_val=$ac_cv_c_inline;;
2345    esac
2346    cat >>confdefs.h <<_ACEOF
2347#ifndef __cplusplus
2348#define inline $ac_val
2349#endif
2350_ACEOF
2351    ;;
2352esac
2353
2354ac_ext=c
2355ac_cpp='$CPP $CPPFLAGS'
2356ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2357ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2358ac_compiler_gnu=$ac_cv_c_compiler_gnu
2359echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2360echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2361# On Suns, sometimes $CPP names a directory.
2362if test -n "$CPP" && test -d "$CPP"; then
2363  CPP=
2364fi
2365if test -z "$CPP"; then
2366  if test "${ac_cv_prog_CPP+set}" = set; then
2367  echo $ECHO_N "(cached) $ECHO_C" >&6
2368else
2369      # Double quotes because CPP needs to be expanded
2370    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2371    do
2372      ac_preproc_ok=false
2373for ac_c_preproc_warn_flag in '' yes
2374do
2375  # Use a header file that comes with gcc, so configuring glibc
2376  # with a fresh cross-compiler works.
2377  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2378  # <limits.h> exists even on freestanding compilers.
2379  # On the NeXT, cc -E runs the code through the compiler's parser,
2380  # not just through cpp. "Syntax error" is here to catch this case.
2381  cat >conftest.$ac_ext <<_ACEOF
2382/* confdefs.h.  */
2383_ACEOF
2384cat confdefs.h >>conftest.$ac_ext
2385cat >>conftest.$ac_ext <<_ACEOF
2386/* end confdefs.h.  */
2387#ifdef __STDC__
2388# include <limits.h>
2389#else
2390# include <assert.h>
2391#endif
2392		     Syntax error
2393_ACEOF
2394if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2395  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2396  ac_status=$?
2397  grep -v '^ *+' conftest.er1 >conftest.err
2398  rm -f conftest.er1
2399  cat conftest.err >&5
2400  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2401  (exit $ac_status); } >/dev/null; then
2402  if test -s conftest.err; then
2403    ac_cpp_err=$ac_c_preproc_warn_flag
2404    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2405  else
2406    ac_cpp_err=
2407  fi
2408else
2409  ac_cpp_err=yes
2410fi
2411if test -z "$ac_cpp_err"; then
2412  :
2413else
2414  echo "$as_me: failed program was:" >&5
2415sed 's/^/| /' conftest.$ac_ext >&5
2416
2417  # Broken: fails on valid input.
2418continue
2419fi
2420rm -f conftest.err conftest.$ac_ext
2421
2422  # OK, works on sane cases.  Now check whether non-existent headers
2423  # can be detected and how.
2424  cat >conftest.$ac_ext <<_ACEOF
2425/* confdefs.h.  */
2426_ACEOF
2427cat confdefs.h >>conftest.$ac_ext
2428cat >>conftest.$ac_ext <<_ACEOF
2429/* end confdefs.h.  */
2430#include <ac_nonexistent.h>
2431_ACEOF
2432if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2433  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2434  ac_status=$?
2435  grep -v '^ *+' conftest.er1 >conftest.err
2436  rm -f conftest.er1
2437  cat conftest.err >&5
2438  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2439  (exit $ac_status); } >/dev/null; then
2440  if test -s conftest.err; then
2441    ac_cpp_err=$ac_c_preproc_warn_flag
2442    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2443  else
2444    ac_cpp_err=
2445  fi
2446else
2447  ac_cpp_err=yes
2448fi
2449if test -z "$ac_cpp_err"; then
2450  # Broken: success on invalid input.
2451continue
2452else
2453  echo "$as_me: failed program was:" >&5
2454sed 's/^/| /' conftest.$ac_ext >&5
2455
2456  # Passes both tests.
2457ac_preproc_ok=:
2458break
2459fi
2460rm -f conftest.err conftest.$ac_ext
2461
2462done
2463# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2464rm -f conftest.err conftest.$ac_ext
2465if $ac_preproc_ok; then
2466  break
2467fi
2468
2469    done
2470    ac_cv_prog_CPP=$CPP
2471
2472fi
2473  CPP=$ac_cv_prog_CPP
2474else
2475  ac_cv_prog_CPP=$CPP
2476fi
2477echo "$as_me:$LINENO: result: $CPP" >&5
2478echo "${ECHO_T}$CPP" >&6
2479ac_preproc_ok=false
2480for ac_c_preproc_warn_flag in '' yes
2481do
2482  # Use a header file that comes with gcc, so configuring glibc
2483  # with a fresh cross-compiler works.
2484  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2485  # <limits.h> exists even on freestanding compilers.
2486  # On the NeXT, cc -E runs the code through the compiler's parser,
2487  # not just through cpp. "Syntax error" is here to catch this case.
2488  cat >conftest.$ac_ext <<_ACEOF
2489/* confdefs.h.  */
2490_ACEOF
2491cat confdefs.h >>conftest.$ac_ext
2492cat >>conftest.$ac_ext <<_ACEOF
2493/* end confdefs.h.  */
2494#ifdef __STDC__
2495# include <limits.h>
2496#else
2497# include <assert.h>
2498#endif
2499		     Syntax error
2500_ACEOF
2501if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2502  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2503  ac_status=$?
2504  grep -v '^ *+' conftest.er1 >conftest.err
2505  rm -f conftest.er1
2506  cat conftest.err >&5
2507  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2508  (exit $ac_status); } >/dev/null; then
2509  if test -s conftest.err; then
2510    ac_cpp_err=$ac_c_preproc_warn_flag
2511    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2512  else
2513    ac_cpp_err=
2514  fi
2515else
2516  ac_cpp_err=yes
2517fi
2518if test -z "$ac_cpp_err"; then
2519  :
2520else
2521  echo "$as_me: failed program was:" >&5
2522sed 's/^/| /' conftest.$ac_ext >&5
2523
2524  # Broken: fails on valid input.
2525continue
2526fi
2527rm -f conftest.err conftest.$ac_ext
2528
2529  # OK, works on sane cases.  Now check whether non-existent headers
2530  # can be detected and how.
2531  cat >conftest.$ac_ext <<_ACEOF
2532/* confdefs.h.  */
2533_ACEOF
2534cat confdefs.h >>conftest.$ac_ext
2535cat >>conftest.$ac_ext <<_ACEOF
2536/* end confdefs.h.  */
2537#include <ac_nonexistent.h>
2538_ACEOF
2539if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2540  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2541  ac_status=$?
2542  grep -v '^ *+' conftest.er1 >conftest.err
2543  rm -f conftest.er1
2544  cat conftest.err >&5
2545  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2546  (exit $ac_status); } >/dev/null; then
2547  if test -s conftest.err; then
2548    ac_cpp_err=$ac_c_preproc_warn_flag
2549    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2550  else
2551    ac_cpp_err=
2552  fi
2553else
2554  ac_cpp_err=yes
2555fi
2556if test -z "$ac_cpp_err"; then
2557  # Broken: success on invalid input.
2558continue
2559else
2560  echo "$as_me: failed program was:" >&5
2561sed 's/^/| /' conftest.$ac_ext >&5
2562
2563  # Passes both tests.
2564ac_preproc_ok=:
2565break
2566fi
2567rm -f conftest.err conftest.$ac_ext
2568
2569done
2570# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2571rm -f conftest.err conftest.$ac_ext
2572if $ac_preproc_ok; then
2573  :
2574else
2575  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2576See \`config.log' for more details." >&5
2577echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2578See \`config.log' for more details." >&2;}
2579   { (exit 1); exit 1; }; }
2580fi
2581
2582ac_ext=c
2583ac_cpp='$CPP $CPPFLAGS'
2584ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2585ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2586ac_compiler_gnu=$ac_cv_c_compiler_gnu
2587
2588
2589echo "$as_me:$LINENO: checking for egrep" >&5
2590echo $ECHO_N "checking for egrep... $ECHO_C" >&6
2591if test "${ac_cv_prog_egrep+set}" = set; then
2592  echo $ECHO_N "(cached) $ECHO_C" >&6
2593else
2594  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
2595    then ac_cv_prog_egrep='grep -E'
2596    else ac_cv_prog_egrep='egrep'
2597    fi
2598fi
2599echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
2600echo "${ECHO_T}$ac_cv_prog_egrep" >&6
2601 EGREP=$ac_cv_prog_egrep
2602
2603
2604echo "$as_me:$LINENO: checking for ANSI C header files" >&5
2605echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
2606if test "${ac_cv_header_stdc+set}" = set; then
2607  echo $ECHO_N "(cached) $ECHO_C" >&6
2608else
2609  cat >conftest.$ac_ext <<_ACEOF
2610/* confdefs.h.  */
2611_ACEOF
2612cat confdefs.h >>conftest.$ac_ext
2613cat >>conftest.$ac_ext <<_ACEOF
2614/* end confdefs.h.  */
2615#include <stdlib.h>
2616#include <stdarg.h>
2617#include <string.h>
2618#include <float.h>
2619
2620int
2621main ()
2622{
2623
2624  ;
2625  return 0;
2626}
2627_ACEOF
2628rm -f conftest.$ac_objext
2629if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2630  (eval $ac_compile) 2>conftest.er1
2631  ac_status=$?
2632  grep -v '^ *+' conftest.er1 >conftest.err
2633  rm -f conftest.er1
2634  cat conftest.err >&5
2635  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2636  (exit $ac_status); } &&
2637	 { ac_try='test -z "$ac_c_werror_flag"
2638			 || test ! -s conftest.err'
2639  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2640  (eval $ac_try) 2>&5
2641  ac_status=$?
2642  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2643  (exit $ac_status); }; } &&
2644	 { ac_try='test -s conftest.$ac_objext'
2645  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2646  (eval $ac_try) 2>&5
2647  ac_status=$?
2648  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2649  (exit $ac_status); }; }; then
2650  ac_cv_header_stdc=yes
2651else
2652  echo "$as_me: failed program was:" >&5
2653sed 's/^/| /' conftest.$ac_ext >&5
2654
2655ac_cv_header_stdc=no
2656fi
2657rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2658
2659if test $ac_cv_header_stdc = yes; then
2660  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2661  cat >conftest.$ac_ext <<_ACEOF
2662/* confdefs.h.  */
2663_ACEOF
2664cat confdefs.h >>conftest.$ac_ext
2665cat >>conftest.$ac_ext <<_ACEOF
2666/* end confdefs.h.  */
2667#include <string.h>
2668
2669_ACEOF
2670if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2671  $EGREP "memchr" >/dev/null 2>&1; then
2672  :
2673else
2674  ac_cv_header_stdc=no
2675fi
2676rm -f conftest*
2677
2678fi
2679
2680if test $ac_cv_header_stdc = yes; then
2681  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2682  cat >conftest.$ac_ext <<_ACEOF
2683/* confdefs.h.  */
2684_ACEOF
2685cat confdefs.h >>conftest.$ac_ext
2686cat >>conftest.$ac_ext <<_ACEOF
2687/* end confdefs.h.  */
2688#include <stdlib.h>
2689
2690_ACEOF
2691if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2692  $EGREP "free" >/dev/null 2>&1; then
2693  :
2694else
2695  ac_cv_header_stdc=no
2696fi
2697rm -f conftest*
2698
2699fi
2700
2701if test $ac_cv_header_stdc = yes; then
2702  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2703  if test "$cross_compiling" = yes; then
2704  :
2705else
2706  cat >conftest.$ac_ext <<_ACEOF
2707/* confdefs.h.  */
2708_ACEOF
2709cat confdefs.h >>conftest.$ac_ext
2710cat >>conftest.$ac_ext <<_ACEOF
2711/* end confdefs.h.  */
2712#include <ctype.h>
2713#if ((' ' & 0x0FF) == 0x020)
2714# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2715# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2716#else
2717# define ISLOWER(c) \
2718		   (('a' <= (c) && (c) <= 'i') \
2719		     || ('j' <= (c) && (c) <= 'r') \
2720		     || ('s' <= (c) && (c) <= 'z'))
2721# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
2722#endif
2723
2724#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2725int
2726main ()
2727{
2728  int i;
2729  for (i = 0; i < 256; i++)
2730    if (XOR (islower (i), ISLOWER (i))
2731	|| toupper (i) != TOUPPER (i))
2732      exit(2);
2733  exit (0);
2734}
2735_ACEOF
2736rm -f conftest$ac_exeext
2737if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2738  (eval $ac_link) 2>&5
2739  ac_status=$?
2740  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2741  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2742  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2743  (eval $ac_try) 2>&5
2744  ac_status=$?
2745  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2746  (exit $ac_status); }; }; then
2747  :
2748else
2749  echo "$as_me: program exited with status $ac_status" >&5
2750echo "$as_me: failed program was:" >&5
2751sed 's/^/| /' conftest.$ac_ext >&5
2752
2753( exit $ac_status )
2754ac_cv_header_stdc=no
2755fi
2756rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2757fi
2758fi
2759fi
2760echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
2761echo "${ECHO_T}$ac_cv_header_stdc" >&6
2762if test $ac_cv_header_stdc = yes; then
2763
2764cat >>confdefs.h <<\_ACEOF
2765#define STDC_HEADERS 1
2766_ACEOF
2767
2768fi
2769
2770
2771# To properly support cross-compilation, one would
2772# need to use these tool checks instead of
2773# the ones below and reconfigure with
2774# autoconf 2.50. You can also just set
2775# the CC, AR, RANLIB, and RC environment
2776# variables if you want to cross compile.
2777
2778if test "${GCC}" = "yes" ; then
2779    # Extract the first word of "ar", so it can be a program name with args.
2780set dummy ar; ac_word=$2
2781echo "$as_me:$LINENO: checking for $ac_word" >&5
2782echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2783if test "${ac_cv_prog_AR+set}" = set; then
2784  echo $ECHO_N "(cached) $ECHO_C" >&6
2785else
2786  if test -n "$AR"; then
2787  ac_cv_prog_AR="$AR" # Let the user override the test.
2788else
2789as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2790for as_dir in $PATH
2791do
2792  IFS=$as_save_IFS
2793  test -z "$as_dir" && as_dir=.
2794  for ac_exec_ext in '' $ac_executable_extensions; do
2795  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2796    ac_cv_prog_AR="ar"
2797    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2798    break 2
2799  fi
2800done
2801done
2802
2803fi
2804fi
2805AR=$ac_cv_prog_AR
2806if test -n "$AR"; then
2807  echo "$as_me:$LINENO: result: $AR" >&5
2808echo "${ECHO_T}$AR" >&6
2809else
2810  echo "$as_me:$LINENO: result: no" >&5
2811echo "${ECHO_T}no" >&6
2812fi
2813
2814    # Extract the first word of "ranlib", so it can be a program name with args.
2815set dummy ranlib; ac_word=$2
2816echo "$as_me:$LINENO: checking for $ac_word" >&5
2817echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2818if test "${ac_cv_prog_RANLIB+set}" = set; then
2819  echo $ECHO_N "(cached) $ECHO_C" >&6
2820else
2821  if test -n "$RANLIB"; then
2822  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2823else
2824as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2825for as_dir in $PATH
2826do
2827  IFS=$as_save_IFS
2828  test -z "$as_dir" && as_dir=.
2829  for ac_exec_ext in '' $ac_executable_extensions; do
2830  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2831    ac_cv_prog_RANLIB="ranlib"
2832    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2833    break 2
2834  fi
2835done
2836done
2837
2838fi
2839fi
2840RANLIB=$ac_cv_prog_RANLIB
2841if test -n "$RANLIB"; then
2842  echo "$as_me:$LINENO: result: $RANLIB" >&5
2843echo "${ECHO_T}$RANLIB" >&6
2844else
2845  echo "$as_me:$LINENO: result: no" >&5
2846echo "${ECHO_T}no" >&6
2847fi
2848
2849    # Extract the first word of "windres", so it can be a program name with args.
2850set dummy windres; ac_word=$2
2851echo "$as_me:$LINENO: checking for $ac_word" >&5
2852echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2853if test "${ac_cv_prog_RC+set}" = set; then
2854  echo $ECHO_N "(cached) $ECHO_C" >&6
2855else
2856  if test -n "$RC"; then
2857  ac_cv_prog_RC="$RC" # Let the user override the test.
2858else
2859as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2860for as_dir in $PATH
2861do
2862  IFS=$as_save_IFS
2863  test -z "$as_dir" && as_dir=.
2864  for ac_exec_ext in '' $ac_executable_extensions; do
2865  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2866    ac_cv_prog_RC="windres"
2867    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2868    break 2
2869  fi
2870done
2871done
2872
2873fi
2874fi
2875RC=$ac_cv_prog_RC
2876if test -n "$RC"; then
2877  echo "$as_me:$LINENO: result: $RC" >&5
2878echo "${ECHO_T}$RC" >&6
2879else
2880  echo "$as_me:$LINENO: result: no" >&5
2881echo "${ECHO_T}no" >&6
2882fi
2883
2884
2885    if test "${AR}" = "" ; then
2886	{ { echo "$as_me:$LINENO: error: Required archive tool 'ar' not found on PATH." >&5
2887echo "$as_me: error: Required archive tool 'ar' not found on PATH." >&2;}
2888   { (exit 1); exit 1; }; }
2889    fi
2890    if test "${RANLIB}" = "" ; then
2891	{ { echo "$as_me:$LINENO: error: Required archive index tool 'ranlib' not found on PATH." >&5
2892echo "$as_me: error: Required archive index tool 'ranlib' not found on PATH." >&2;}
2893   { (exit 1); exit 1; }; }
2894    fi
2895    if test "${RC}" = "" ; then
2896	{ { echo "$as_me:$LINENO: error: Required resource tool 'windres' not found on PATH." >&5
2897echo "$as_me: error: Required resource tool 'windres' not found on PATH." >&2;}
2898   { (exit 1); exit 1; }; }
2899    fi
2900fi
2901
2902#--------------------------------------------------------------------
2903# Checks to see if the make program sets the $MAKE variable.
2904#--------------------------------------------------------------------
2905
2906echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2907echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
2908set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
2909if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
2910  echo $ECHO_N "(cached) $ECHO_C" >&6
2911else
2912  cat >conftest.make <<\_ACEOF
2913all:
2914	@echo 'ac_maketemp="$(MAKE)"'
2915_ACEOF
2916# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2917eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
2918if test -n "$ac_maketemp"; then
2919  eval ac_cv_prog_make_${ac_make}_set=yes
2920else
2921  eval ac_cv_prog_make_${ac_make}_set=no
2922fi
2923rm -f conftest.make
2924fi
2925if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
2926  echo "$as_me:$LINENO: result: yes" >&5
2927echo "${ECHO_T}yes" >&6
2928  SET_MAKE=
2929else
2930  echo "$as_me:$LINENO: result: no" >&5
2931echo "${ECHO_T}no" >&6
2932  SET_MAKE="MAKE=${MAKE-make}"
2933fi
2934
2935
2936#--------------------------------------------------------------------
2937# Perform additinal compiler tests.
2938#--------------------------------------------------------------------
2939
2940
2941echo "$as_me:$LINENO: checking for Cygwin version of gcc" >&5
2942echo $ECHO_N "checking for Cygwin version of gcc... $ECHO_C" >&6
2943if test "${ac_cv_cygwin+set}" = set; then
2944  echo $ECHO_N "(cached) $ECHO_C" >&6
2945else
2946  cat >conftest.$ac_ext <<_ACEOF
2947/* confdefs.h.  */
2948_ACEOF
2949cat confdefs.h >>conftest.$ac_ext
2950cat >>conftest.$ac_ext <<_ACEOF
2951/* end confdefs.h.  */
2952
2953#ifdef __CYGWIN__
2954#error cygwin
2955#endif
2956
2957int
2958main ()
2959{
2960
2961  ;
2962  return 0;
2963}
2964_ACEOF
2965rm -f conftest.$ac_objext
2966if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2967  (eval $ac_compile) 2>conftest.er1
2968  ac_status=$?
2969  grep -v '^ *+' conftest.er1 >conftest.err
2970  rm -f conftest.er1
2971  cat conftest.err >&5
2972  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2973  (exit $ac_status); } &&
2974	 { ac_try='test -z "$ac_c_werror_flag"
2975			 || test ! -s conftest.err'
2976  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2977  (eval $ac_try) 2>&5
2978  ac_status=$?
2979  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2980  (exit $ac_status); }; } &&
2981	 { ac_try='test -s conftest.$ac_objext'
2982  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2983  (eval $ac_try) 2>&5
2984  ac_status=$?
2985  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2986  (exit $ac_status); }; }; then
2987  ac_cv_cygwin=no
2988else
2989  echo "$as_me: failed program was:" >&5
2990sed 's/^/| /' conftest.$ac_ext >&5
2991
2992ac_cv_cygwin=yes
2993fi
2994rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2995
2996fi
2997echo "$as_me:$LINENO: result: $ac_cv_cygwin" >&5
2998echo "${ECHO_T}$ac_cv_cygwin" >&6
2999if test "$ac_cv_cygwin" = "yes" ; then
3000    { { echo "$as_me:$LINENO: error: Compiling under Cygwin is not currently supported.
3001A maintainer for the Cygwin port of Tcl/Tk is needed. See the README
3002file for information about building with Mingw." >&5
3003echo "$as_me: error: Compiling under Cygwin is not currently supported.
3004A maintainer for the Cygwin port of Tcl/Tk is needed. See the README
3005file for information about building with Mingw." >&2;}
3006   { (exit 1); exit 1; }; }
3007fi
3008
3009
3010echo "$as_me:$LINENO: checking for SEH support in compiler" >&5
3011echo $ECHO_N "checking for SEH support in compiler... $ECHO_C" >&6
3012if test "${tcl_cv_seh+set}" = set; then
3013  echo $ECHO_N "(cached) $ECHO_C" >&6
3014else
3015  if test "$cross_compiling" = yes; then
3016  tcl_cv_seh=no
3017else
3018  cat >conftest.$ac_ext <<_ACEOF
3019/* confdefs.h.  */
3020_ACEOF
3021cat confdefs.h >>conftest.$ac_ext
3022cat >>conftest.$ac_ext <<_ACEOF
3023/* end confdefs.h.  */
3024
3025#define WIN32_LEAN_AND_MEAN
3026#include <windows.h>
3027#undef WIN32_LEAN_AND_MEAN
3028
3029int main(int argc, char** argv) {
3030    int a, b = 0;
3031    __try {
3032        a = 666 / b;
3033    }
3034    __except (EXCEPTION_EXECUTE_HANDLER) {
3035        return 0;
3036    }
3037    return 1;
3038}
3039
3040_ACEOF
3041rm -f conftest$ac_exeext
3042if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3043  (eval $ac_link) 2>&5
3044  ac_status=$?
3045  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3046  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3047  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3048  (eval $ac_try) 2>&5
3049  ac_status=$?
3050  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3051  (exit $ac_status); }; }; then
3052  tcl_cv_seh=yes
3053else
3054  echo "$as_me: program exited with status $ac_status" >&5
3055echo "$as_me: failed program was:" >&5
3056sed 's/^/| /' conftest.$ac_ext >&5
3057
3058( exit $ac_status )
3059tcl_cv_seh=no
3060fi
3061rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3062fi
3063
3064fi
3065echo "$as_me:$LINENO: result: $tcl_cv_seh" >&5
3066echo "${ECHO_T}$tcl_cv_seh" >&6
3067if test "$tcl_cv_seh" = "no" ; then
3068
3069cat >>confdefs.h <<\_ACEOF
3070#define HAVE_NO_SEH 1
3071_ACEOF
3072
3073fi
3074
3075#
3076# Check to see if the excpt.h include file provided contains the
3077# definition for EXCEPTION_DISPOSITION; if not, which is the case
3078# with Cygwin's version as of 2002-04-10, define it to be int,
3079# sufficient for getting the current code to work.
3080#
3081echo "$as_me:$LINENO: checking for EXCEPTION_DISPOSITION support in include files" >&5
3082echo $ECHO_N "checking for EXCEPTION_DISPOSITION support in include files... $ECHO_C" >&6
3083if test "${tcl_cv_eh_disposition+set}" = set; then
3084  echo $ECHO_N "(cached) $ECHO_C" >&6
3085else
3086  cat >conftest.$ac_ext <<_ACEOF
3087/* confdefs.h.  */
3088_ACEOF
3089cat confdefs.h >>conftest.$ac_ext
3090cat >>conftest.$ac_ext <<_ACEOF
3091/* end confdefs.h.  */
3092
3093#define WIN32_LEAN_AND_MEAN
3094#include <windows.h>
3095#undef WIN32_LEAN_AND_MEAN
3096
3097int
3098main ()
3099{
3100
3101  EXCEPTION_DISPOSITION x;
3102
3103  ;
3104  return 0;
3105}
3106_ACEOF
3107rm -f conftest.$ac_objext
3108if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3109  (eval $ac_compile) 2>conftest.er1
3110  ac_status=$?
3111  grep -v '^ *+' conftest.er1 >conftest.err
3112  rm -f conftest.er1
3113  cat conftest.err >&5
3114  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3115  (exit $ac_status); } &&
3116	 { ac_try='test -z "$ac_c_werror_flag"
3117			 || test ! -s conftest.err'
3118  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3119  (eval $ac_try) 2>&5
3120  ac_status=$?
3121  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3122  (exit $ac_status); }; } &&
3123	 { ac_try='test -s conftest.$ac_objext'
3124  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3125  (eval $ac_try) 2>&5
3126  ac_status=$?
3127  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3128  (exit $ac_status); }; }; then
3129  tcl_cv_eh_disposition=yes
3130else
3131  echo "$as_me: failed program was:" >&5
3132sed 's/^/| /' conftest.$ac_ext >&5
3133
3134tcl_cv_eh_disposition=no
3135fi
3136rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3137
3138fi
3139echo "$as_me:$LINENO: result: $tcl_cv_eh_disposition" >&5
3140echo "${ECHO_T}$tcl_cv_eh_disposition" >&6
3141if test "$tcl_cv_eh_disposition" = "no" ; then
3142
3143cat >>confdefs.h <<\_ACEOF
3144#define EXCEPTION_DISPOSITION int
3145_ACEOF
3146
3147fi
3148
3149
3150# Check to see if the winsock2.h include file provided contains
3151# typedefs like LPFN_ACCEPT and friends.
3152#
3153echo "$as_me:$LINENO: checking for LPFN_ACCEPT support in winsock2.h" >&5
3154echo $ECHO_N "checking for LPFN_ACCEPT support in winsock2.h... $ECHO_C" >&6
3155if test "${tcl_cv_lpfn_decls+set}" = set; then
3156  echo $ECHO_N "(cached) $ECHO_C" >&6
3157else
3158  cat >conftest.$ac_ext <<_ACEOF
3159/* confdefs.h.  */
3160_ACEOF
3161cat confdefs.h >>conftest.$ac_ext
3162cat >>conftest.$ac_ext <<_ACEOF
3163/* end confdefs.h.  */
3164
3165#define WIN32_LEAN_AND_MEAN
3166#include <windows.h>
3167#undef WIN32_LEAN_AND_MEAN
3168#include <winsock2.h>
3169
3170int
3171main ()
3172{
3173
3174  LPFN_ACCEPT accept;
3175
3176  ;
3177  return 0;
3178}
3179_ACEOF
3180rm -f conftest.$ac_objext
3181if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3182  (eval $ac_compile) 2>conftest.er1
3183  ac_status=$?
3184  grep -v '^ *+' conftest.er1 >conftest.err
3185  rm -f conftest.er1
3186  cat conftest.err >&5
3187  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3188  (exit $ac_status); } &&
3189	 { ac_try='test -z "$ac_c_werror_flag"
3190			 || test ! -s conftest.err'
3191  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3192  (eval $ac_try) 2>&5
3193  ac_status=$?
3194  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3195  (exit $ac_status); }; } &&
3196	 { ac_try='test -s conftest.$ac_objext'
3197  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3198  (eval $ac_try) 2>&5
3199  ac_status=$?
3200  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3201  (exit $ac_status); }; }; then
3202  tcl_cv_lpfn_decls=yes
3203else
3204  echo "$as_me: failed program was:" >&5
3205sed 's/^/| /' conftest.$ac_ext >&5
3206
3207tcl_cv_lpfn_decls=no
3208fi
3209rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3210
3211fi
3212echo "$as_me:$LINENO: result: $tcl_cv_lpfn_decls" >&5
3213echo "${ECHO_T}$tcl_cv_lpfn_decls" >&6
3214if test "$tcl_cv_lpfn_decls" = "no" ; then
3215
3216cat >>confdefs.h <<\_ACEOF
3217#define HAVE_NO_LPFN_DECLS 1
3218_ACEOF
3219
3220fi
3221
3222# Check to see if winnt.h defines CHAR, SHORT, and LONG
3223# even if VOID has already been #defined. The win32api
3224# used by mingw and cygwin is known to do this.
3225
3226echo "$as_me:$LINENO: checking for winnt.h that ignores VOID define" >&5
3227echo $ECHO_N "checking for winnt.h that ignores VOID define... $ECHO_C" >&6
3228if test "${tcl_cv_winnt_ignore_void+set}" = set; then
3229  echo $ECHO_N "(cached) $ECHO_C" >&6
3230else
3231  cat >conftest.$ac_ext <<_ACEOF
3232/* confdefs.h.  */
3233_ACEOF
3234cat confdefs.h >>conftest.$ac_ext
3235cat >>conftest.$ac_ext <<_ACEOF
3236/* end confdefs.h.  */
3237
3238#define VOID void
3239#define WIN32_LEAN_AND_MEAN
3240#include <windows.h>
3241#undef WIN32_LEAN_AND_MEAN
3242
3243int
3244main ()
3245{
3246
3247  CHAR c;
3248  SHORT s;
3249  LONG l;
3250
3251  ;
3252  return 0;
3253}
3254_ACEOF
3255rm -f conftest.$ac_objext
3256if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3257  (eval $ac_compile) 2>conftest.er1
3258  ac_status=$?
3259  grep -v '^ *+' conftest.er1 >conftest.err
3260  rm -f conftest.er1
3261  cat conftest.err >&5
3262  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3263  (exit $ac_status); } &&
3264	 { ac_try='test -z "$ac_c_werror_flag"
3265			 || test ! -s conftest.err'
3266  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3267  (eval $ac_try) 2>&5
3268  ac_status=$?
3269  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3270  (exit $ac_status); }; } &&
3271	 { ac_try='test -s conftest.$ac_objext'
3272  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3273  (eval $ac_try) 2>&5
3274  ac_status=$?
3275  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3276  (exit $ac_status); }; }; then
3277  tcl_cv_winnt_ignore_void=yes
3278else
3279  echo "$as_me: failed program was:" >&5
3280sed 's/^/| /' conftest.$ac_ext >&5
3281
3282tcl_cv_winnt_ignore_void=no
3283fi
3284rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3285
3286fi
3287echo "$as_me:$LINENO: result: $tcl_cv_winnt_ignore_void" >&5
3288echo "${ECHO_T}$tcl_cv_winnt_ignore_void" >&6
3289if test "$tcl_cv_winnt_ignore_void" = "yes" ; then
3290
3291cat >>confdefs.h <<\_ACEOF
3292#define HAVE_WINNT_IGNORE_VOID 1
3293_ACEOF
3294
3295fi
3296
3297# Check to see if malloc.h is missing the alloca function
3298# declaration. This is known to be a problem with Mingw.
3299# If we compiled without the function declaration, it
3300# would work but we would get a warning message from gcc.
3301# If we add the function declaration ourselves, it
3302# would not compile correctly because the _alloca
3303# function expects the argument to be passed in a
3304# register and not on the stack. Instead, we just
3305# call it from inline asm code.
3306
3307echo "$as_me:$LINENO: checking for alloca declaration in malloc.h" >&5
3308echo $ECHO_N "checking for alloca declaration in malloc.h... $ECHO_C" >&6
3309if test "${tcl_cv_malloc_decl_alloca+set}" = set; then
3310  echo $ECHO_N "(cached) $ECHO_C" >&6
3311else
3312  cat >conftest.$ac_ext <<_ACEOF
3313/* confdefs.h.  */
3314_ACEOF
3315cat confdefs.h >>conftest.$ac_ext
3316cat >>conftest.$ac_ext <<_ACEOF
3317/* end confdefs.h.  */
3318
3319#include <malloc.h>
3320
3321int
3322main ()
3323{
3324
3325  size_t arg = 0;
3326  void* ptr;
3327  ptr = alloca;
3328  ptr = alloca(arg);
3329
3330  ;
3331  return 0;
3332}
3333_ACEOF
3334rm -f conftest.$ac_objext
3335if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3336  (eval $ac_compile) 2>conftest.er1
3337  ac_status=$?
3338  grep -v '^ *+' conftest.er1 >conftest.err
3339  rm -f conftest.er1
3340  cat conftest.err >&5
3341  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3342  (exit $ac_status); } &&
3343	 { ac_try='test -z "$ac_c_werror_flag"
3344			 || test ! -s conftest.err'
3345  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3346  (eval $ac_try) 2>&5
3347  ac_status=$?
3348  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3349  (exit $ac_status); }; } &&
3350	 { ac_try='test -s conftest.$ac_objext'
3351  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3352  (eval $ac_try) 2>&5
3353  ac_status=$?
3354  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3355  (exit $ac_status); }; }; then
3356  tcl_cv_malloc_decl_alloca=yes
3357else
3358  echo "$as_me: failed program was:" >&5
3359sed 's/^/| /' conftest.$ac_ext >&5
3360
3361tcl_cv_malloc_decl_alloca=no
3362fi
3363rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3364
3365fi
3366echo "$as_me:$LINENO: result: $tcl_cv_malloc_decl_alloca" >&5
3367echo "${ECHO_T}$tcl_cv_malloc_decl_alloca" >&6
3368if test "$tcl_cv_malloc_decl_alloca" = "no" &&
3369   test "${GCC}" = "yes" ; then
3370
3371cat >>confdefs.h <<\_ACEOF
3372#define HAVE_ALLOCA_GCC_INLINE 1
3373_ACEOF
3374
3375fi
3376
3377# See if the compiler supports casting to a union type.
3378# This is used to stop gcc from printing a compiler
3379# warning when initializing a union member.
3380
3381echo "$as_me:$LINENO: checking for cast to union support" >&5
3382echo $ECHO_N "checking for cast to union support... $ECHO_C" >&6
3383if test "${tcl_cv_cast_to_union+set}" = set; then
3384  echo $ECHO_N "(cached) $ECHO_C" >&6
3385else
3386  cat >conftest.$ac_ext <<_ACEOF
3387/* confdefs.h.  */
3388_ACEOF
3389cat confdefs.h >>conftest.$ac_ext
3390cat >>conftest.$ac_ext <<_ACEOF
3391/* end confdefs.h.  */
3392
3393int
3394main ()
3395{
3396
3397  union foo { int i; double d; };
3398  union foo f = (union foo) (int) 0;
3399
3400  ;
3401  return 0;
3402}
3403_ACEOF
3404rm -f conftest.$ac_objext
3405if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3406  (eval $ac_compile) 2>conftest.er1
3407  ac_status=$?
3408  grep -v '^ *+' conftest.er1 >conftest.err
3409  rm -f conftest.er1
3410  cat conftest.err >&5
3411  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3412  (exit $ac_status); } &&
3413	 { ac_try='test -z "$ac_c_werror_flag"
3414			 || test ! -s conftest.err'
3415  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3416  (eval $ac_try) 2>&5
3417  ac_status=$?
3418  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3419  (exit $ac_status); }; } &&
3420	 { ac_try='test -s conftest.$ac_objext'
3421  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3422  (eval $ac_try) 2>&5
3423  ac_status=$?
3424  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3425  (exit $ac_status); }; }; then
3426  tcl_cv_cast_to_union=yes
3427else
3428  echo "$as_me: failed program was:" >&5
3429sed 's/^/| /' conftest.$ac_ext >&5
3430
3431tcl_cv_cast_to_union=no
3432fi
3433rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3434
3435fi
3436echo "$as_me:$LINENO: result: $tcl_cv_cast_to_union" >&5
3437echo "${ECHO_T}$tcl_cv_cast_to_union" >&6
3438if test "$tcl_cv_cast_to_union" = "yes"; then
3439
3440cat >>confdefs.h <<\_ACEOF
3441#define HAVE_CAST_TO_UNION 1
3442_ACEOF
3443
3444fi
3445
3446
3447# See if declarations like FINDEX_INFO_LEVELS are
3448# missing from winbase.h. This is known to be
3449# a problem with VC++ 5.2.
3450
3451echo "$as_me:$LINENO: checking for FINDEX_INFO_LEVELS in winbase.h" >&5
3452echo $ECHO_N "checking for FINDEX_INFO_LEVELS in winbase.h... $ECHO_C" >&6
3453if test "${tcl_cv_findex_enums+set}" = set; then
3454  echo $ECHO_N "(cached) $ECHO_C" >&6
3455else
3456  cat >conftest.$ac_ext <<_ACEOF
3457/* confdefs.h.  */
3458_ACEOF
3459cat confdefs.h >>conftest.$ac_ext
3460cat >>conftest.$ac_ext <<_ACEOF
3461/* end confdefs.h.  */
3462
3463#define WIN32_LEAN_AND_MEAN
3464#include <windows.h>
3465#undef WIN32_LEAN_AND_MEAN
3466
3467int
3468main ()
3469{
3470
3471  FINDEX_INFO_LEVELS i;
3472  FINDEX_SEARCH_OPS j;
3473
3474  ;
3475  return 0;
3476}
3477_ACEOF
3478rm -f conftest.$ac_objext
3479if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3480  (eval $ac_compile) 2>conftest.er1
3481  ac_status=$?
3482  grep -v '^ *+' conftest.er1 >conftest.err
3483  rm -f conftest.er1
3484  cat conftest.err >&5
3485  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3486  (exit $ac_status); } &&
3487	 { ac_try='test -z "$ac_c_werror_flag"
3488			 || test ! -s conftest.err'
3489  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3490  (eval $ac_try) 2>&5
3491  ac_status=$?
3492  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3493  (exit $ac_status); }; } &&
3494	 { ac_try='test -s conftest.$ac_objext'
3495  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3496  (eval $ac_try) 2>&5
3497  ac_status=$?
3498  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3499  (exit $ac_status); }; }; then
3500  tcl_cv_findex_enums=yes
3501else
3502  echo "$as_me: failed program was:" >&5
3503sed 's/^/| /' conftest.$ac_ext >&5
3504
3505tcl_cv_findex_enums=no
3506fi
3507rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3508
3509fi
3510echo "$as_me:$LINENO: result: $tcl_cv_findex_enums" >&5
3511echo "${ECHO_T}$tcl_cv_findex_enums" >&6
3512if test "$tcl_cv_findex_enums" = "no"; then
3513
3514cat >>confdefs.h <<\_ACEOF
3515#define HAVE_NO_FINDEX_ENUMS 1
3516_ACEOF
3517
3518fi
3519
3520# See if MWMO_ALERTABLE is missing from winuser.h
3521# This is known to be a problem with Mingw.
3522
3523echo "$as_me:$LINENO: checking for MWMO_ALERTABLE in winuser.h" >&5
3524echo $ECHO_N "checking for MWMO_ALERTABLE in winuser.h... $ECHO_C" >&6
3525if test "${tcl_cv_mwmo_alertable+set}" = set; then
3526  echo $ECHO_N "(cached) $ECHO_C" >&6
3527else
3528  cat >conftest.$ac_ext <<_ACEOF
3529/* confdefs.h.  */
3530_ACEOF
3531cat confdefs.h >>conftest.$ac_ext
3532cat >>conftest.$ac_ext <<_ACEOF
3533/* end confdefs.h.  */
3534
3535#define WIN32_LEAN_AND_MEAN
3536#include <windows.h>
3537#undef WIN32_LEAN_AND_MEAN
3538
3539int
3540main ()
3541{
3542
3543  int i = MWMO_ALERTABLE;
3544
3545  ;
3546  return 0;
3547}
3548_ACEOF
3549rm -f conftest.$ac_objext
3550if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3551  (eval $ac_compile) 2>conftest.er1
3552  ac_status=$?
3553  grep -v '^ *+' conftest.er1 >conftest.err
3554  rm -f conftest.er1
3555  cat conftest.err >&5
3556  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3557  (exit $ac_status); } &&
3558	 { ac_try='test -z "$ac_c_werror_flag"
3559			 || test ! -s conftest.err'
3560  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3561  (eval $ac_try) 2>&5
3562  ac_status=$?
3563  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3564  (exit $ac_status); }; } &&
3565	 { ac_try='test -s conftest.$ac_objext'
3566  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3567  (eval $ac_try) 2>&5
3568  ac_status=$?
3569  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3570  (exit $ac_status); }; }; then
3571  tcl_cv_mwmo_alertable=yes
3572else
3573  echo "$as_me: failed program was:" >&5
3574sed 's/^/| /' conftest.$ac_ext >&5
3575
3576tcl_cv_mwmo_alertable=no
3577fi
3578rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3579
3580fi
3581echo "$as_me:$LINENO: result: $tcl_cv_mwmo_alertable" >&5
3582echo "${ECHO_T}$tcl_cv_mwmo_alertable" >&6
3583if test "$tcl_cv_mwmo_alertable" = "no"; then
3584
3585cat >>confdefs.h <<\_ACEOF
3586#define HAVE_NO_MWMO_ALERTABLE 1
3587_ACEOF
3588
3589fi
3590
3591#--------------------------------------------------------------------
3592# Determines the correct binary file extension (.o, .obj, .exe etc.)
3593#--------------------------------------------------------------------
3594
3595
3596
3597
3598#--------------------------------------------------------------------
3599# Check whether --enable-threads or --disable-threads was given.
3600#--------------------------------------------------------------------
3601
3602
3603    echo "$as_me:$LINENO: checking for building with threads" >&5
3604echo $ECHO_N "checking for building with threads... $ECHO_C" >&6
3605    # Check whether --enable-threads or --disable-threads was given.
3606if test "${enable_threads+set}" = set; then
3607  enableval="$enable_threads"
3608  tcl_ok=$enableval
3609else
3610  tcl_ok=no
3611fi;
3612
3613    if test "$tcl_ok" = "yes"; then
3614	echo "$as_me:$LINENO: result: yes" >&5
3615echo "${ECHO_T}yes" >&6
3616	TCL_THREADS=1
3617	cat >>confdefs.h <<\_ACEOF
3618#define TCL_THREADS 1
3619_ACEOF
3620
3621	# USE_THREAD_ALLOC tells us to try the special thread-based
3622	# allocator that significantly reduces lock contention
3623	cat >>confdefs.h <<\_ACEOF
3624#define USE_THREAD_ALLOC 1
3625_ACEOF
3626
3627    else
3628	TCL_THREADS=0
3629	echo "$as_me:$LINENO: result: no (default)" >&5
3630echo "${ECHO_T}no (default)" >&6
3631    fi
3632
3633
3634
3635#------------------------------------------------------------------------
3636# Embedded configuration information, encoding to use for the values, TIP #59
3637#------------------------------------------------------------------------
3638
3639
3640
3641# Check whether --with-encoding or --without-encoding was given.
3642if test "${with_encoding+set}" = set; then
3643  withval="$with_encoding"
3644  with_tcencoding=${withval}
3645fi;
3646
3647    if test x"${with_tcencoding}" != x ; then
3648	cat >>confdefs.h <<_ACEOF
3649#define TCL_CFGVAL_ENCODING "${with_tcencoding}"
3650_ACEOF
3651
3652    else
3653	# Default encoding on windows is not "iso8859-1"
3654	cat >>confdefs.h <<\_ACEOF
3655#define TCL_CFGVAL_ENCODING "cp1252"
3656_ACEOF
3657
3658    fi
3659
3660
3661#--------------------------------------------------------------------
3662# The statements below define a collection of symbols related to
3663# building libtcl as a shared library instead of a static library.
3664#--------------------------------------------------------------------
3665
3666
3667    echo "$as_me:$LINENO: checking how to build libraries" >&5
3668echo $ECHO_N "checking how to build libraries... $ECHO_C" >&6
3669    # Check whether --enable-shared or --disable-shared was given.
3670if test "${enable_shared+set}" = set; then
3671  enableval="$enable_shared"
3672  tcl_ok=$enableval
3673else
3674  tcl_ok=yes
3675fi;
3676
3677    if test "${enable_shared+set}" = set; then
3678	enableval="$enable_shared"
3679	tcl_ok=$enableval
3680    else
3681	tcl_ok=yes
3682    fi
3683
3684    if test "$tcl_ok" = "yes" ; then
3685	echo "$as_me:$LINENO: result: shared" >&5
3686echo "${ECHO_T}shared" >&6
3687	SHARED_BUILD=1
3688    else
3689	echo "$as_me:$LINENO: result: static" >&5
3690echo "${ECHO_T}static" >&6
3691	SHARED_BUILD=0
3692	cat >>confdefs.h <<\_ACEOF
3693#define STATIC_BUILD 1
3694_ACEOF
3695
3696    fi
3697
3698
3699#--------------------------------------------------------------------
3700# The statements below define a collection of compile flags.  This
3701# macro depends on the value of SHARED_BUILD, and should be called
3702# after SC_ENABLE_SHARED checks the configure switches.
3703#--------------------------------------------------------------------
3704
3705# On IRIX 5.3, sys/types and inttypes.h are conflicting.
3706
3707
3708
3709
3710
3711
3712
3713
3714
3715for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3716		  inttypes.h stdint.h unistd.h
3717do
3718as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3719echo "$as_me:$LINENO: checking for $ac_header" >&5
3720echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3721if eval "test \"\${$as_ac_Header+set}\" = set"; then
3722  echo $ECHO_N "(cached) $ECHO_C" >&6
3723else
3724  cat >conftest.$ac_ext <<_ACEOF
3725/* confdefs.h.  */
3726_ACEOF
3727cat confdefs.h >>conftest.$ac_ext
3728cat >>conftest.$ac_ext <<_ACEOF
3729/* end confdefs.h.  */
3730$ac_includes_default
3731
3732#include <$ac_header>
3733_ACEOF
3734rm -f conftest.$ac_objext
3735if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3736  (eval $ac_compile) 2>conftest.er1
3737  ac_status=$?
3738  grep -v '^ *+' conftest.er1 >conftest.err
3739  rm -f conftest.er1
3740  cat conftest.err >&5
3741  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3742  (exit $ac_status); } &&
3743	 { ac_try='test -z "$ac_c_werror_flag"
3744			 || test ! -s conftest.err'
3745  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3746  (eval $ac_try) 2>&5
3747  ac_status=$?
3748  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3749  (exit $ac_status); }; } &&
3750	 { ac_try='test -s conftest.$ac_objext'
3751  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3752  (eval $ac_try) 2>&5
3753  ac_status=$?
3754  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3755  (exit $ac_status); }; }; then
3756  eval "$as_ac_Header=yes"
3757else
3758  echo "$as_me: failed program was:" >&5
3759sed 's/^/| /' conftest.$ac_ext >&5
3760
3761eval "$as_ac_Header=no"
3762fi
3763rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3764fi
3765echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3766echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3767if test `eval echo '${'$as_ac_Header'}'` = yes; then
3768  cat >>confdefs.h <<_ACEOF
3769#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3770_ACEOF
3771
3772fi
3773
3774done
3775
3776
3777
3778
3779    # Step 0: Enable 64 bit support?
3780
3781    echo "$as_me:$LINENO: checking if 64bit support is requested" >&5
3782echo $ECHO_N "checking if 64bit support is requested... $ECHO_C" >&6
3783    # Check whether --enable-64bit or --disable-64bit was given.
3784if test "${enable_64bit+set}" = set; then
3785  enableval="$enable_64bit"
3786  do64bit=$enableval
3787else
3788  do64bit=no
3789fi;
3790    echo "$as_me:$LINENO: result: $do64bit" >&5
3791echo "${ECHO_T}$do64bit" >&6
3792
3793    # Cross-compiling options for Windows/CE builds
3794
3795    echo "$as_me:$LINENO: checking if Windows/CE build is requested" >&5
3796echo $ECHO_N "checking if Windows/CE build is requested... $ECHO_C" >&6
3797    # Check whether --enable-wince or --disable-wince was given.
3798if test "${enable_wince+set}" = set; then
3799  enableval="$enable_wince"
3800  doWince=$enableval
3801else
3802  doWince=no
3803fi;
3804    echo "$as_me:$LINENO: result: $doWince" >&5
3805echo "${ECHO_T}$doWince" >&6
3806
3807    echo "$as_me:$LINENO: checking for Windows/CE celib directory" >&5
3808echo $ECHO_N "checking for Windows/CE celib directory... $ECHO_C" >&6
3809
3810# Check whether --with-celib or --without-celib was given.
3811if test "${with_celib+set}" = set; then
3812  withval="$with_celib"
3813  CELIB_DIR=$withval
3814else
3815  CELIB_DIR=NO_CELIB
3816fi;
3817    echo "$as_me:$LINENO: result: $CELIB_DIR" >&5
3818echo "${ECHO_T}$CELIB_DIR" >&6
3819
3820    # Set some defaults (may get changed below)
3821    EXTRA_CFLAGS=""
3822
3823    # Extract the first word of "cygpath", so it can be a program name with args.
3824set dummy cygpath; ac_word=$2
3825echo "$as_me:$LINENO: checking for $ac_word" >&5
3826echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3827if test "${ac_cv_prog_CYGPATH+set}" = set; then
3828  echo $ECHO_N "(cached) $ECHO_C" >&6
3829else
3830  if test -n "$CYGPATH"; then
3831  ac_cv_prog_CYGPATH="$CYGPATH" # Let the user override the test.
3832else
3833as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3834for as_dir in $PATH
3835do
3836  IFS=$as_save_IFS
3837  test -z "$as_dir" && as_dir=.
3838  for ac_exec_ext in '' $ac_executable_extensions; do
3839  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3840    ac_cv_prog_CYGPATH="cygpath -w"
3841    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3842    break 2
3843  fi
3844done
3845done
3846
3847  test -z "$ac_cv_prog_CYGPATH" && ac_cv_prog_CYGPATH="echo"
3848fi
3849fi
3850CYGPATH=$ac_cv_prog_CYGPATH
3851if test -n "$CYGPATH"; then
3852  echo "$as_me:$LINENO: result: $CYGPATH" >&5
3853echo "${ECHO_T}$CYGPATH" >&6
3854else
3855  echo "$as_me:$LINENO: result: no" >&5
3856echo "${ECHO_T}no" >&6
3857fi
3858
3859
3860    SHLIB_SUFFIX=".dll"
3861
3862    # Check for a bug in gcc's windres that causes the
3863    # compile to fail when a Windows native path is
3864    # passed into windres. The mingw toolchain requires
3865    # Windows native paths while Cygwin should work
3866    # with both. Avoid the bug by passing a POSIX
3867    # path when using the Cygwin toolchain.
3868
3869    if test "$GCC" = "yes" && test "$CYGPATH" != "echo" ; then
3870	conftest=/tmp/conftest.rc
3871	echo "STRINGTABLE BEGIN" > $conftest
3872	echo "101 \"name\"" >> $conftest
3873	echo "END" >> $conftest
3874
3875	echo "$as_me:$LINENO: checking for Windows native path bug in windres" >&5
3876echo $ECHO_N "checking for Windows native path bug in windres... $ECHO_C" >&6
3877	cyg_conftest=`$CYGPATH $conftest`
3878	if { ac_try='$RC -o conftest.res.o $cyg_conftest'
3879  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3880  (eval $ac_try) 2>&5
3881  ac_status=$?
3882  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3883  (exit $ac_status); }; } ; then
3884	    echo "$as_me:$LINENO: result: no" >&5
3885echo "${ECHO_T}no" >&6
3886	else
3887	    echo "$as_me:$LINENO: result: yes" >&5
3888echo "${ECHO_T}yes" >&6
3889	    CYGPATH=echo
3890	fi
3891	conftest=
3892	cyg_conftest=
3893    fi
3894
3895    if test "$CYGPATH" = "echo" || test "$ac_cv_cygwin" = "yes"; then
3896        DEPARG='"$<"'
3897    else
3898        DEPARG='"$(shell $(CYGPATH) $<)"'
3899    fi
3900
3901    # set various compiler flags depending on whether we are using gcc or cl
3902
3903    echo "$as_me:$LINENO: checking compiler flags" >&5
3904echo $ECHO_N "checking compiler flags... $ECHO_C" >&6
3905    if test "${GCC}" = "yes" ; then
3906	if test "$do64bit" != "no" ; then
3907	    { echo "$as_me:$LINENO: WARNING: 64bit mode not supported with GCC on Windows" >&5
3908echo "$as_me: WARNING: 64bit mode not supported with GCC on Windows" >&2;}
3909	fi
3910	SHLIB_LD=""
3911	SHLIB_LD_LIBS=""
3912	LIBS="-lws2_32"
3913	# mingw needs to link ole32 and oleaut32 for [send], but MSVC doesn't
3914	LIBS_GUI="-lgdi32 -lcomdlg32 -limm32 -lcomctl32 -lshell32 -luuid -lole32 -loleaut32"
3915	STLIB_LD='${AR} cr'
3916	RC_OUT=-o
3917	RC_TYPE=
3918	RC_INCLUDE=--include
3919	RC_DEFINE=--define
3920	RES=res.o
3921	MAKE_LIB="\${STLIB_LD} \$@"
3922	POST_MAKE_LIB="\${RANLIB} \$@"
3923	MAKE_EXE="\${CC} -o \$@"
3924	LIBPREFIX="lib"
3925
3926	#if test "$ac_cv_cygwin" = "yes"; then
3927	#    extra_cflags="-mno-cygwin"
3928	#    extra_ldflags="-mno-cygwin"
3929	#else
3930	#    extra_cflags=""
3931	#    extra_ldflags=""
3932	#fi
3933
3934	if test "$ac_cv_cygwin" = "yes"; then
3935	  touch ac$$.c
3936	  if ${CC} -c -mwin32 ac$$.c >/dev/null 2>&1; then
3937	    case "$extra_cflags" in
3938	      *-mwin32*) ;;
3939	      *) extra_cflags="-mwin32 $extra_cflags" ;;
3940	    esac
3941	    case "$extra_ldflags" in
3942	      *-mwin32*) ;;
3943	      *) extra_ldflags="-mwin32 $extra_ldflags" ;;
3944	    esac
3945	  fi
3946	  rm -f ac$$.o ac$$.c
3947	else
3948	  extra_cflags=''
3949	  extra_ldflags=''
3950	fi
3951
3952	if test "${SHARED_BUILD}" = "0" ; then
3953	    # static
3954            echo "$as_me:$LINENO: result: using static flags" >&5
3955echo "${ECHO_T}using static flags" >&6
3956	    runtime=
3957	    MAKE_DLL="echo "
3958	    LIBSUFFIX="s\${DBGX}.a"
3959	    LIBFLAGSUFFIX="s\${DBGX}"
3960	    LIBRARIES="\${STATIC_LIBRARIES}"
3961	    EXESUFFIX="s\${DBGX}.exe"
3962	else
3963	    # dynamic
3964            echo "$as_me:$LINENO: result: using shared flags" >&5
3965echo "${ECHO_T}using shared flags" >&6
3966
3967	    # ad-hoc check to see if CC supports -shared.
3968	    if "${CC}" -shared 2>&1 | egrep ': -shared not supported' >/dev/null; then
3969		{ { echo "$as_me:$LINENO: error: ${CC} does not support the -shared option.
3970                You will need to upgrade to a newer version of the toolchain." >&5
3971echo "$as_me: error: ${CC} does not support the -shared option.
3972                You will need to upgrade to a newer version of the toolchain." >&2;}
3973   { (exit 1); exit 1; }; }
3974	    fi
3975
3976	    runtime=
3977	    # Link with gcc since ld does not link to default libs like
3978	    # -luser32 and -lmsvcrt by default. Make sure CFLAGS is
3979	    # included so -mno-cygwin passed the correct libs to the linker.
3980	    SHLIB_LD='${CC} -shared ${CFLAGS}'
3981	    SHLIB_LD_LIBS='${LIBS}'
3982	    # Add SHLIB_LD_LIBS to the Make rule, not here.
3983	    MAKE_DLL="\${SHLIB_LD} \$(LDFLAGS) -o \$@ ${extra_ldflags} \
3984	        -Wl,--out-implib,\$(patsubst %.dll,lib%.a,\$@)"
3985
3986	    LIBSUFFIX="\${DBGX}.a"
3987	    LIBFLAGSUFFIX="\${DBGX}"
3988	    EXESUFFIX="\${DBGX}.exe"
3989	    LIBRARIES="\${SHARED_LIBRARIES}"
3990	fi
3991	# DLLSUFFIX is separate because it is the building block for
3992	# users of tclConfig.sh that may build shared or static.
3993	DLLSUFFIX="\${DBGX}.dll"
3994	SHLIB_SUFFIX=.dll
3995
3996	EXTRA_CFLAGS="${extra_cflags}"
3997
3998	CFLAGS_DEBUG=-g
3999	CFLAGS_OPTIMIZE="-O2 -fomit-frame-pointer"
4000	CFLAGS_WARNING="-Wall"
4001	LDFLAGS_DEBUG=
4002	LDFLAGS_OPTIMIZE=
4003
4004	# Specify the CC output file names based on the target name
4005	CC_OBJNAME="-o \$@"
4006	CC_EXENAME="-o \$@"
4007
4008	# Specify linker flags depending on the type of app being
4009	# built -- Console vs. Window.
4010	#
4011	# ORIGINAL COMMENT:
4012	# We need to pass -e _WinMain@16 so that ld will use
4013	# WinMain() instead of main() as the entry point. We can't
4014	# use autoconf to check for this case since it would need
4015	# to run an executable and that does not work when
4016	# cross compiling. Remove this -e workaround once we
4017	# require a gcc that does not have this bug.
4018	#
4019	# MK NOTE: Tk should use a different mechanism. This causes
4020	# interesting problems, such as wish dying at startup.
4021	#LDFLAGS_WINDOW="-mwindows -e _WinMain@16 ${extra_ldflags}"
4022	LDFLAGS_CONSOLE="-mconsole ${extra_ldflags}"
4023	LDFLAGS_WINDOW="-mwindows ${extra_ldflags}"
4024
4025	# gcc under Windows supports only 32bit builds
4026	MACHINE="X86"
4027    else
4028	if test "${SHARED_BUILD}" = "0" ; then
4029	    # static
4030            echo "$as_me:$LINENO: result: using static flags" >&5
4031echo "${ECHO_T}using static flags" >&6
4032	    runtime=-MT
4033	    MAKE_DLL="echo "
4034	    LIBSUFFIX="s\${DBGX}.lib"
4035	    LIBFLAGSUFFIX="s\${DBGX}"
4036	    LIBRARIES="\${STATIC_LIBRARIES}"
4037	    EXESUFFIX="s\${DBGX}.exe"
4038	    SHLIB_LD_LIBS=""
4039	else
4040	    # dynamic
4041            echo "$as_me:$LINENO: result: using shared flags" >&5
4042echo "${ECHO_T}using shared flags" >&6
4043	    runtime=-MD
4044	    # Add SHLIB_LD_LIBS to the Make rule, not here.
4045	    MAKE_DLL="\${SHLIB_LD} \$(LDFLAGS) -out:\$@"
4046	    LIBSUFFIX="\${DBGX}.lib"
4047	    LIBFLAGSUFFIX="\${DBGX}"
4048	    EXESUFFIX="\${DBGX}.exe"
4049	    LIBRARIES="\${SHARED_LIBRARIES}"
4050	    SHLIB_LD_LIBS='${LIBS}'
4051	fi
4052	# DLLSUFFIX is separate because it is the building block for
4053	# users of tclConfig.sh that may build shared or static.
4054	DLLSUFFIX="\${DBGX}.dll"
4055
4056 	# This is a 2-stage check to make sure we have the 64-bit SDK
4057 	# We have to know where the SDK is installed.
4058	# This magic is based on MS Platform SDK for Win2003 SP1 - hobbs
4059	# MACHINE is IX86 for LINK, but this is used by the manifest,
4060	# which requires x86|amd64|ia64.
4061	MACHINE="X86"
4062	if test "$do64bit" != "no" ; then
4063	    if test "x${MSSDK}x" = "xx" ; then
4064		MSSDK="C:/Progra~1/Microsoft Platform SDK"
4065	    fi
4066	    MSSDK=`echo "$MSSDK" | sed -e 's!\\\!/!g'`
4067	    PATH64=""
4068	    case "$do64bit" in
4069	      amd64|x64|yes)
4070		MACHINE="AMD64" ; # assume AMD64 as default 64-bit build
4071		PATH64="${MSSDK}/Bin/Win64/x86/AMD64"
4072		;;
4073	      ia64)
4074		MACHINE="IA64"
4075		PATH64="${MSSDK}/Bin/Win64"
4076		;;
4077	    esac
4078	    if test ! -d "${PATH64}" ; then
4079		{ echo "$as_me:$LINENO: WARNING: Could not find 64-bit $MACHINE SDK to enable 64bit mode" >&5
4080echo "$as_me: WARNING: Could not find 64-bit $MACHINE SDK to enable 64bit mode" >&2;}
4081		{ echo "$as_me:$LINENO: WARNING: Ensure latest Platform SDK is installed" >&5
4082echo "$as_me: WARNING: Ensure latest Platform SDK is installed" >&2;}
4083		do64bit="no"
4084	    else
4085		echo "$as_me:$LINENO: result:    Using 64-bit $MACHINE mode" >&5
4086echo "${ECHO_T}   Using 64-bit $MACHINE mode" >&6
4087	    fi
4088	fi
4089
4090	LIBS="user32.lib advapi32.lib ws2_32.lib"
4091	if test "$do64bit" != "no" ; then
4092	    # The space-based-path will work for the Makefile, but will
4093	    # not work if AC_TRY_COMPILE is called.  TEA has the
4094	    # TEA_PATH_NOSPACE to avoid this issue.
4095	    # Check if _WIN64 is already recognized, and if so we don't
4096	    # need to modify CC.
4097	    echo "$as_me:$LINENO: checking whether _WIN64 is declared" >&5
4098echo $ECHO_N "checking whether _WIN64 is declared... $ECHO_C" >&6
4099if test "${ac_cv_have_decl__WIN64+set}" = set; then
4100  echo $ECHO_N "(cached) $ECHO_C" >&6
4101else
4102  cat >conftest.$ac_ext <<_ACEOF
4103/* confdefs.h.  */
4104_ACEOF
4105cat confdefs.h >>conftest.$ac_ext
4106cat >>conftest.$ac_ext <<_ACEOF
4107/* end confdefs.h.  */
4108$ac_includes_default
4109int
4110main ()
4111{
4112#ifndef _WIN64
4113  char *p = (char *) _WIN64;
4114#endif
4115
4116  ;
4117  return 0;
4118}
4119_ACEOF
4120rm -f conftest.$ac_objext
4121if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4122  (eval $ac_compile) 2>conftest.er1
4123  ac_status=$?
4124  grep -v '^ *+' conftest.er1 >conftest.err
4125  rm -f conftest.er1
4126  cat conftest.err >&5
4127  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4128  (exit $ac_status); } &&
4129	 { ac_try='test -z "$ac_c_werror_flag"
4130			 || test ! -s conftest.err'
4131  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4132  (eval $ac_try) 2>&5
4133  ac_status=$?
4134  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4135  (exit $ac_status); }; } &&
4136	 { ac_try='test -s conftest.$ac_objext'
4137  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4138  (eval $ac_try) 2>&5
4139  ac_status=$?
4140  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4141  (exit $ac_status); }; }; then
4142  ac_cv_have_decl__WIN64=yes
4143else
4144  echo "$as_me: failed program was:" >&5
4145sed 's/^/| /' conftest.$ac_ext >&5
4146
4147ac_cv_have_decl__WIN64=no
4148fi
4149rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4150fi
4151echo "$as_me:$LINENO: result: $ac_cv_have_decl__WIN64" >&5
4152echo "${ECHO_T}$ac_cv_have_decl__WIN64" >&6
4153if test $ac_cv_have_decl__WIN64 = yes; then
4154  :
4155else
4156  CC="\"${PATH64}/cl.exe\" -I\"${MSSDK}/Include\" \
4157			 -I\"${MSSDK}/Include/crt\" \
4158			 -I\"${MSSDK}/Include/crt/sys\""
4159fi
4160
4161	    RC="\"${MSSDK}/bin/rc.exe\""
4162	    CFLAGS_DEBUG="-nologo -Zi -Od ${runtime}d"
4163	    # Do not use -O2 for Win64 - this has proved buggy in code gen.
4164	    CFLAGS_OPTIMIZE="-nologo -O1 ${runtime}"
4165	    lflags="-nologo -MACHINE:${MACHINE} -LIBPATH:\"${MSSDK}/Lib/${MACHINE}\""
4166	    LINKBIN="\"${PATH64}/link.exe\""
4167	    # Avoid 'unresolved external symbol __security_cookie' errors.
4168	    # c.f. http://support.microsoft.com/?id=894573
4169	    LIBS="$LIBS bufferoverflowU.lib"
4170	else
4171	    RC="rc"
4172	    # -Od - no optimization
4173	    # -WX - warnings as errors
4174	    CFLAGS_DEBUG="-nologo -Z7 -Od -WX ${runtime}d"
4175	    # -O2 - create fast code (/Og /Oi /Ot /Oy /Ob2 /Gs /GF /Gy)
4176	    CFLAGS_OPTIMIZE="-nologo -O2 ${runtime}"
4177	    lflags="-nologo"
4178	    LINKBIN="link"
4179	fi
4180
4181	if test "$doWince" != "no" ; then
4182	    # Set defaults for common evc4/PPC2003 setup
4183	    # Currently Tcl requires 300+, possibly 420+ for sockets
4184	    CEVERSION=420; 		# could be 211 300 301 400 420 ...
4185	    TARGETCPU=ARMV4;	# could be ARMV4 ARM MIPS SH3 X86 ...
4186	    ARCH=ARM;		# could be ARM MIPS X86EM ...
4187	    PLATFORM="Pocket PC 2003"; # or "Pocket PC 2002"
4188	    if test "$doWince" != "yes"; then
4189		# If !yes then the user specified something
4190		# Reset ARCH to allow user to skip specifying it
4191		ARCH=
4192		eval `echo $doWince | awk -F "," '{ \
4193	if (length($1)) { printf "CEVERSION=\"%s\"\n", $1; \
4194	if ($1 < 400)	  { printf "PLATFORM=\"Pocket PC 2002\"\n" } }; \
4195	if (length($2)) { printf "TARGETCPU=\"%s\"\n", toupper($2) }; \
4196	if (length($3)) { printf "ARCH=\"%s\"\n", toupper($3) }; \
4197	if (length($4)) { printf "PLATFORM=\"%s\"\n", $4 }; \
4198		}'`
4199		if test "x${ARCH}" = "x" ; then
4200		    ARCH=$TARGETCPU;
4201		fi
4202	    fi
4203	    OSVERSION=WCE$CEVERSION;
4204	    if test "x${WCEROOT}" = "x" ; then
4205		WCEROOT="C:/Program Files/Microsoft eMbedded C++ 4.0"
4206		if test ! -d "${WCEROOT}" ; then
4207		    WCEROOT="C:/Program Files/Microsoft eMbedded Tools"
4208		fi
4209	    fi
4210	    if test "x${SDKROOT}" = "x" ; then
4211		SDKROOT="C:/Program Files/Windows CE Tools"
4212		if test ! -d "${SDKROOT}" ; then
4213		    SDKROOT="C:/Windows CE Tools"
4214		fi
4215	    fi
4216	    # The space-based-path will work for the Makefile, but will
4217	    # not work if AC_TRY_COMPILE is called.
4218	    WCEROOT=`echo "$WCEROOT" | sed -e 's!\\\!/!g'`
4219	    SDKROOT=`echo "$SDKROOT" | sed -e 's!\\\!/!g'`
4220	    CELIB_DIR=`echo "$CELIB_DIR" | sed -e 's!\\\!/!g'`
4221	    if test ! -d "${CELIB_DIR}/inc"; then
4222		{ { echo "$as_me:$LINENO: error: Invalid celib directory \"${CELIB_DIR}\"" >&5
4223echo "$as_me: error: Invalid celib directory \"${CELIB_DIR}\"" >&2;}
4224   { (exit 1); exit 1; }; }
4225	    fi
4226	    if test ! -d "${SDKROOT}/${OSVERSION}/${PLATFORM}/Lib/${TARGETCPU}"\
4227		-o ! -d "${WCEROOT}/EVC/${OSVERSION}/bin"; then
4228		{ { echo "$as_me:$LINENO: error: could not find PocketPC SDK or target compiler to enable WinCE mode $CEVERSION,$TARGETCPU,$ARCH,$PLATFORM" >&5
4229echo "$as_me: error: could not find PocketPC SDK or target compiler to enable WinCE mode $CEVERSION,$TARGETCPU,$ARCH,$PLATFORM" >&2;}
4230   { (exit 1); exit 1; }; }
4231	    else
4232		CEINCLUDE="${SDKROOT}/${OSVERSION}/${PLATFORM}/include"
4233		if test -d "${CEINCLUDE}/${TARGETCPU}" ; then
4234		    CEINCLUDE="${CEINCLUDE}/${TARGETCPU}"
4235		fi
4236		CELIBPATH="${SDKROOT}/${OSVERSION}/${PLATFORM}/Lib/${TARGETCPU}"
4237	    fi
4238	fi
4239
4240	if test "$doWince" != "no" ; then
4241	    CEBINROOT="${WCEROOT}/EVC/${OSVERSION}/bin"
4242	    if test "${TARGETCPU}" = "X86"; then
4243		CC="${CEBINROOT}/cl.exe"
4244	    else
4245		CC="${CEBINROOT}/cl${ARCH}.exe"
4246	    fi
4247	    CC="\"${CC}\" -I\"${CELIB_DIR}/inc\" -I\"${CEINCLUDE}\""
4248	    RC="\"${WCEROOT}/Common/EVC/bin/rc.exe\""
4249	    arch=`echo ${ARCH} | awk '{print tolower($0)}'`
4250	    defs="${ARCH} _${ARCH}_ ${arch} PALM_SIZE _MT _DLL _WINDOWS"
4251	    for i in $defs ; do
4252		cat >>confdefs.h <<_ACEOF
4253#define $i 1
4254_ACEOF
4255
4256	    done
4257#	    if test "${ARCH}" = "X86EM"; then
4258#		AC_DEFINE_UNQUOTED(_WIN32_WCE_EMULATION)
4259#	    fi
4260	    cat >>confdefs.h <<_ACEOF
4261#define _WIN32_WCE $CEVERSION
4262_ACEOF
4263
4264	    cat >>confdefs.h <<_ACEOF
4265#define UNDER_CE $CEVERSION
4266_ACEOF
4267
4268	    CFLAGS_DEBUG="-nologo -Zi -Od"
4269	    CFLAGS_OPTIMIZE="-nologo -O2"
4270	    lversion=`echo ${CEVERSION} | sed -e 's/\(.\)\(..\)/\1\.\2/'`
4271	    lflags="-nodefaultlib -MACHINE:${ARCH} -LIBPATH:\"${CELIBPATH}\" -subsystem:windowsce,${lversion} -nologo"
4272	    LINKBIN="\"${CEBINROOT}/link.exe\""
4273
4274	    if test "${CEVERSION}" -lt 400 ; then
4275		LIBS="coredll.lib corelibc.lib winsock.lib"
4276	    else
4277		LIBS="coredll.lib corelibc.lib ws2.lib"
4278	    fi
4279	    # celib currently stuck at wce300 status
4280	    #LIBS="$LIBS \${CELIB_DIR}/wince-${ARCH}-pocket-${OSVERSION}-release/celib.lib"
4281	    LIBS="$LIBS \"\${CELIB_DIR}/wince-${ARCH}-pocket-wce300-release/celib.lib\""
4282	    LIBS_GUI="commctrl.lib commdlg.lib"
4283	else
4284	    LIBS_GUI="gdi32.lib comdlg32.lib imm32.lib comctl32.lib shell32.lib uuid.lib"
4285	fi
4286
4287	SHLIB_LD="${LINKBIN} -dll -incremental:no ${lflags}"
4288	# link -lib only works when -lib is the first arg
4289	STLIB_LD="${LINKBIN} -lib ${lflags}"
4290	RC_OUT=-fo
4291	RC_TYPE=-r
4292	RC_INCLUDE=-i
4293	RC_DEFINE=-d
4294	RES=res
4295	MAKE_LIB="\${STLIB_LD} -out:\$@"
4296	POST_MAKE_LIB=
4297	MAKE_EXE="\${CC} -Fe\$@"
4298	LIBPREFIX=""
4299
4300	CFLAGS_DEBUG="${CFLAGS_DEBUG} -D_CRT_SECURE_NO_DEPRECATE -D_CRT_NONSTDC_NO_DEPRECATE"
4301	CFLAGS_OPTIMIZE="${CFLAGS_OPTIMIZE} -D_CRT_SECURE_NO_DEPRECATE -D_CRT_NONSTDC_NO_DEPRECATE"
4302
4303	EXTRA_CFLAGS=""
4304	CFLAGS_WARNING="-W3"
4305	LDFLAGS_DEBUG="-debug:full"
4306	LDFLAGS_OPTIMIZE="-release"
4307
4308	# Specify the CC output file names based on the target name
4309	CC_OBJNAME="-Fo\$@"
4310	CC_EXENAME="-Fe\"\$(shell \$(CYGPATH) '\$@')\""
4311
4312	# Specify linker flags depending on the type of app being
4313	# built -- Console vs. Window.
4314	if test "$doWince" != "no" -a "${TARGETCPU}" != "X86"; then
4315	    LDFLAGS_CONSOLE="-link ${lflags}"
4316	    LDFLAGS_WINDOW=${LDFLAGS_CONSOLE}
4317	else
4318	    LDFLAGS_CONSOLE="-link -subsystem:console ${lflags}"
4319	    LDFLAGS_WINDOW="-link -subsystem:windows ${lflags}"
4320	fi
4321    fi
4322
4323    if test "$do64bit" != "no" ; then
4324	cat >>confdefs.h <<\_ACEOF
4325#define TCL_CFG_DO64BIT 1
4326_ACEOF
4327
4328    fi
4329
4330    # DL_LIBS is empty, but then we match the Unix version
4331
4332
4333
4334
4335
4336
4337#--------------------------------------------------------------------
4338# Set the default compiler switches based on the --enable-symbols
4339# option.  This macro depends on C flags, and should be called
4340# after SC_CONFIG_CFLAGS macro is called.
4341#--------------------------------------------------------------------
4342
4343
4344    echo "$as_me:$LINENO: checking for build with symbols" >&5
4345echo $ECHO_N "checking for build with symbols... $ECHO_C" >&6
4346    # Check whether --enable-symbols or --disable-symbols was given.
4347if test "${enable_symbols+set}" = set; then
4348  enableval="$enable_symbols"
4349  tcl_ok=$enableval
4350else
4351  tcl_ok=no
4352fi;
4353# FIXME: Currently, LDFLAGS_DEFAULT is not used, it should work like CFLAGS_DEFAULT.
4354    if test "$tcl_ok" = "no"; then
4355	CFLAGS_DEFAULT='$(CFLAGS_OPTIMIZE)'
4356	LDFLAGS_DEFAULT='$(LDFLAGS_OPTIMIZE)'
4357	DBGX=""
4358	echo "$as_me:$LINENO: result: no" >&5
4359echo "${ECHO_T}no" >&6
4360
4361	cat >>confdefs.h <<\_ACEOF
4362#define TCL_CFG_OPTIMIZED 1
4363_ACEOF
4364
4365    else
4366	CFLAGS_DEFAULT='$(CFLAGS_DEBUG)'
4367	LDFLAGS_DEFAULT='$(LDFLAGS_DEBUG)'
4368	DBGX=g
4369	if test "$tcl_ok" = "yes"; then
4370	    echo "$as_me:$LINENO: result: yes (standard debugging)" >&5
4371echo "${ECHO_T}yes (standard debugging)" >&6
4372	fi
4373    fi
4374
4375
4376    cat >>confdefs.h <<\_ACEOF
4377#define TCL_CFG_DEBUG 1
4378_ACEOF
4379
4380
4381    if test "$tcl_ok" = "mem" -o "$tcl_ok" = "all"; then
4382	cat >>confdefs.h <<\_ACEOF
4383#define TCL_MEM_DEBUG 1
4384_ACEOF
4385
4386    fi
4387
4388    if test "$tcl_ok" = "compile" -o "$tcl_ok" = "all"; then
4389	cat >>confdefs.h <<\_ACEOF
4390#define TCL_COMPILE_DEBUG 1
4391_ACEOF
4392
4393	cat >>confdefs.h <<\_ACEOF
4394#define TCL_COMPILE_STATS 1
4395_ACEOF
4396
4397    fi
4398
4399    if test "$tcl_ok" != "yes" -a "$tcl_ok" != "no"; then
4400	if test "$tcl_ok" = "all"; then
4401	    echo "$as_me:$LINENO: result: enabled symbols mem compile debugging" >&5
4402echo "${ECHO_T}enabled symbols mem compile debugging" >&6
4403	else
4404	    echo "$as_me:$LINENO: result: enabled $tcl_ok debugging" >&5
4405echo "${ECHO_T}enabled $tcl_ok debugging" >&6
4406	fi
4407    fi
4408
4409
4410TCL_DBGX=${DBGX}
4411
4412#--------------------------------------------------------------------
4413# Embed the manifest if we can determine how
4414#--------------------------------------------------------------------
4415
4416
4417    echo "$as_me:$LINENO: checking whether to embed manifest" >&5
4418echo $ECHO_N "checking whether to embed manifest... $ECHO_C" >&6
4419    # Check whether --enable-embedded-manifest or --disable-embedded-manifest was given.
4420if test "${enable_embedded_manifest+set}" = set; then
4421  enableval="$enable_embedded_manifest"
4422  embed_ok=$enableval
4423else
4424  embed_ok=yes
4425fi;
4426
4427    VC_MANIFEST_EMBED_DLL=
4428    VC_MANIFEST_EMBED_EXE=
4429    result=no
4430    if test "$embed_ok" = "yes" -a "${SHARED_BUILD}" = "1" \
4431       -a "$GCC" != "yes" ; then
4432	# Add the magic to embed the manifest into the dll/exe
4433	cat >conftest.$ac_ext <<_ACEOF
4434/* confdefs.h.  */
4435_ACEOF
4436cat confdefs.h >>conftest.$ac_ext
4437cat >>conftest.$ac_ext <<_ACEOF
4438/* end confdefs.h.  */
4439
4440#if defined(_MSC_VER) && _MSC_VER >= 1400
4441print("manifest needed")
4442#endif
4443
4444_ACEOF
4445if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4446  $EGREP "manifest needed" >/dev/null 2>&1; then
4447
4448	# Could do a CHECK_PROG for mt, but should always be with MSVC8+
4449	# Could add 'if test -f' check, but manifest should be created
4450	# in this compiler case
4451	# Add in a manifest argument that may be specified
4452	# XXX Needs improvement so that the test for existence accounts
4453	# XXX for a provided (known) manifest
4454	VC_MANIFEST_EMBED_DLL="if test -f \$@.manifest ; then mt.exe -nologo -manifest \$@.manifest  -outputresource:\$@\;2 ; fi"
4455	VC_MANIFEST_EMBED_EXE="if test -f \$@.manifest ; then mt.exe -nologo -manifest \$@.manifest  -outputresource:\$@\;1 ; fi"
4456	result=yes
4457	if test "x" != x ; then
4458	    result="yes ()"
4459	fi
4460
4461fi
4462rm -f conftest*
4463
4464    fi
4465    echo "$as_me:$LINENO: result: $result" >&5
4466echo "${ECHO_T}$result" >&6
4467
4468
4469
4470
4471#------------------------------------------------------------------------
4472# tclConfig.sh refers to this by a different name
4473#------------------------------------------------------------------------
4474
4475TCL_SHARED_BUILD=${SHARED_BUILD}
4476
4477#--------------------------------------------------------------------
4478# Perform final evaluations of variables with possible substitutions.
4479#--------------------------------------------------------------------
4480
4481TCL_SHARED_LIB_SUFFIX="\${NODOT_VERSION}${DLLSUFFIX}"
4482TCL_UNSHARED_LIB_SUFFIX="\${NODOT_VERSION}${LIBSUFFIX}"
4483TCL_EXPORT_FILE_SUFFIX="\${NODOT_VERSION}${LIBSUFFIX}"
4484
4485eval "TCL_SRC_DIR=\"`cd $srcdir/..; pwd`\""
4486
4487eval "TCL_DLL_FILE=tcl${VER}${DLLSUFFIX}"
4488
4489eval "TCL_LIB_FILE=${LIBPREFIX}tcl$VER${LIBSUFFIX}"
4490
4491eval "TCL_LIB_FLAG=\"-ltcl${VER}${LIBFLAGSUFFIX}\""
4492eval "TCL_BUILD_LIB_SPEC=\"-L`pwd` ${TCL_LIB_FLAG}\""
4493eval "TCL_LIB_SPEC=\"-L${libdir} ${TCL_LIB_FLAG}\""
4494
4495eval "TCL_STUB_LIB_FILE=\"${LIBPREFIX}tclstub${VER}${LIBSUFFIX}\""
4496eval "TCL_STUB_LIB_FLAG=\"-ltclstub${VER}${LIBFLAGSUFFIX}\""
4497eval "TCL_BUILD_STUB_LIB_SPEC=\"-L`pwd` ${TCL_STUB_LIB_FLAG}\""
4498eval "TCL_STUB_LIB_SPEC=\"-L${libdir} ${TCL_STUB_LIB_FLAG}\""
4499eval "TCL_BUILD_STUB_LIB_PATH=\"`pwd`/${TCL_STUB_LIB_FILE}\""
4500eval "TCL_STUB_LIB_PATH=\"${libdir}/${TCL_STUB_LIB_FILE}\""
4501
4502# Install time header dir can be set via --includedir
4503eval "TCL_INCLUDE_SPEC=\"-I${includedir}\""
4504
4505
4506eval "DLLSUFFIX=${DLLSUFFIX}"
4507eval "LIBPREFIX=${LIBPREFIX}"
4508eval "LIBSUFFIX=${LIBSUFFIX}"
4509eval "EXESUFFIX=${EXESUFFIX}"
4510
4511CFG_TCL_SHARED_LIB_SUFFIX=${TCL_SHARED_LIB_SUFFIX}
4512CFG_TCL_UNSHARED_LIB_SUFFIX=${TCL_UNSHARED_LIB_SUFFIX}
4513CFG_TCL_EXPORT_FILE_SUFFIX=${TCL_EXPORT_FILE_SUFFIX}
4514
4515#--------------------------------------------------------------------
4516# Adjust the defines for how the resources are built depending
4517# on symbols and static vs. shared.
4518#--------------------------------------------------------------------
4519
4520if test ${SHARED_BUILD} = 0 ; then
4521    if test "${DBGX}" = "g"; then
4522        RC_DEFINES="${RC_DEFINE} STATIC_BUILD ${RC_DEFINE} DEBUG"
4523    else
4524        RC_DEFINES="${RC_DEFINE} STATIC_BUILD"
4525    fi
4526else
4527    if test "${DBGX}" = "g"; then
4528        RC_DEFINES="${RC_DEFINE} DEBUG"
4529    else
4530        RC_DEFINES=""
4531    fi
4532fi
4533
4534#--------------------------------------------------------------------
4535#	The statements below define the symbol TCL_PACKAGE_PATH, which
4536#	gives a list of directories that may contain packages.  The list
4537#	consists of one directory for machine-dependent binaries and
4538#	another for platform-independent scripts.
4539#--------------------------------------------------------------------
4540
4541if test "$prefix/lib" != "$libdir"; then
4542    TCL_PACKAGE_PATH="${libdir} ${prefix}/lib"
4543else
4544    TCL_PACKAGE_PATH="${prefix}/lib"
4545fi
4546
4547
4548
4549
4550
4551
4552
4553
4554# empty on win
4555
4556
4557
4558
4559
4560
4561
4562
4563
4564
4565
4566
4567
4568
4569
4570
4571
4572# win/tcl.m4 doesn't set (CFLAGS)
4573
4574
4575
4576
4577
4578
4579
4580# win/tcl.m4 doesn't set (LDFLAGS)
4581
4582
4583
4584
4585
4586
4587
4588
4589
4590
4591
4592
4593
4594
4595
4596
4597
4598
4599
4600
4601
4602
4603
4604
4605
4606
4607
4608# empty on win, but needs sub'ing
4609
4610
4611
4612
4613
4614
4615
4616
4617
4618# win only
4619
4620
4621
4622
4623
4624
4625
4626
4627
4628
4629
4630
4631
4632
4633
4634
4635
4636                              ac_config_files="$ac_config_files Makefile tclConfig.sh tcl.hpj"
4637cat >confcache <<\_ACEOF
4638# This file is a shell script that caches the results of configure
4639# tests run on this system so they can be shared between configure
4640# scripts and configure runs, see configure's option --config-cache.
4641# It is not useful on other systems.  If it contains results you don't
4642# want to keep, you may remove or edit it.
4643#
4644# config.status only pays attention to the cache file if you give it
4645# the --recheck option to rerun configure.
4646#
4647# `ac_cv_env_foo' variables (set or unset) will be overridden when
4648# loading this file, other *unset* `ac_cv_foo' will be assigned the
4649# following values.
4650
4651_ACEOF
4652
4653# The following way of writing the cache mishandles newlines in values,
4654# but we know of no workaround that is simple, portable, and efficient.
4655# So, don't put newlines in cache variables' values.
4656# Ultrix sh set writes to stderr and can't be redirected directly,
4657# and sets the high bit in the cache file unless we assign to the vars.
4658{
4659  (set) 2>&1 |
4660    case `(ac_space=' '; set | grep ac_space) 2>&1` in
4661    *ac_space=\ *)
4662      # `set' does not quote correctly, so add quotes (double-quote
4663      # substitution turns \\\\ into \\, and sed turns \\ into \).
4664      sed -n \
4665	"s/'/'\\\\''/g;
4666	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
4667      ;;
4668    *)
4669      # `set' quotes correctly as required by POSIX, so do not add quotes.
4670      sed -n \
4671	"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
4672      ;;
4673    esac;
4674} |
4675  sed '
4676     t clear
4677     : clear
4678     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
4679     t end
4680     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4681     : end' >>confcache
4682if diff $cache_file confcache >/dev/null 2>&1; then :; else
4683  if test -w $cache_file; then
4684    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
4685    cat confcache >$cache_file
4686  else
4687    echo "not updating unwritable cache $cache_file"
4688  fi
4689fi
4690rm -f confcache
4691
4692test "x$prefix" = xNONE && prefix=$ac_default_prefix
4693# Let make expand exec_prefix.
4694test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4695
4696# VPATH may cause trouble with some makes, so we remove $(srcdir),
4697# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
4698# trailing colons and then remove the whole line if VPATH becomes empty
4699# (actually we leave an empty line to preserve line numbers).
4700if test "x$srcdir" = x.; then
4701  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
4702s/:*\$(srcdir):*/:/;
4703s/:*\${srcdir}:*/:/;
4704s/:*@srcdir@:*/:/;
4705s/^\([^=]*=[	 ]*\):*/\1/;
4706s/:*$//;
4707s/^[^=]*=[	 ]*$//;
4708}'
4709fi
4710
4711# Transform confdefs.h into DEFS.
4712# Protect against shell expansion while executing Makefile rules.
4713# Protect against Makefile macro expansion.
4714#
4715# If the first sed substitution is executed (which looks for macros that
4716# take arguments), then we branch to the quote section.  Otherwise,
4717# look for a macro that doesn't take arguments.
4718cat >confdef2opt.sed <<\_ACEOF
4719t clear
4720: clear
4721s,^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 (][^	 (]*([^)]*)\)[	 ]*\(.*\),-D\1=\2,g
4722t quote
4723s,^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 ][^	 ]*\)[	 ]*\(.*\),-D\1=\2,g
4724t quote
4725d
4726: quote
4727s,[	 `~#$^&*(){}\\|;'"<>?],\\&,g
4728s,\[,\\&,g
4729s,\],\\&,g
4730s,\$,$$,g
4731p
4732_ACEOF
4733# We use echo to avoid assuming a particular line-breaking character.
4734# The extra dot is to prevent the shell from consuming trailing
4735# line-breaks from the sub-command output.  A line-break within
4736# single-quotes doesn't work because, if this script is created in a
4737# platform that uses two characters for line-breaks (e.g., DOS), tr
4738# would break.
4739ac_LF_and_DOT=`echo; echo .`
4740DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
4741rm -f confdef2opt.sed
4742
4743
4744ac_libobjs=
4745ac_ltlibobjs=
4746for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
4747  # 1. Remove the extension, and $U if already installed.
4748  ac_i=`echo "$ac_i" |
4749	 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
4750  # 2. Add them.
4751  ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
4752  ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
4753done
4754LIBOBJS=$ac_libobjs
4755
4756LTLIBOBJS=$ac_ltlibobjs
4757
4758
4759
4760: ${CONFIG_STATUS=./config.status}
4761ac_clean_files_save=$ac_clean_files
4762ac_clean_files="$ac_clean_files $CONFIG_STATUS"
4763{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
4764echo "$as_me: creating $CONFIG_STATUS" >&6;}
4765cat >$CONFIG_STATUS <<_ACEOF
4766#! $SHELL
4767# Generated by $as_me.
4768# Run this file to recreate the current configuration.
4769# Compiler output produced by configure, useful for debugging
4770# configure, is in config.log if it exists.
4771
4772debug=false
4773ac_cs_recheck=false
4774ac_cs_silent=false
4775SHELL=\${CONFIG_SHELL-$SHELL}
4776_ACEOF
4777
4778cat >>$CONFIG_STATUS <<\_ACEOF
4779## --------------------- ##
4780## M4sh Initialization.  ##
4781## --------------------- ##
4782
4783# Be Bourne compatible
4784if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
4785  emulate sh
4786  NULLCMD=:
4787  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
4788  # is contrary to our usage.  Disable this feature.
4789  alias -g '${1+"$@"}'='"$@"'
4790elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
4791  set -o posix
4792fi
4793DUALCASE=1; export DUALCASE # for MKS sh
4794
4795# Support unset when possible.
4796if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4797  as_unset=unset
4798else
4799  as_unset=false
4800fi
4801
4802
4803# Work around bugs in pre-3.0 UWIN ksh.
4804$as_unset ENV MAIL MAILPATH
4805PS1='$ '
4806PS2='> '
4807PS4='+ '
4808
4809# NLS nuisances.
4810for as_var in \
4811  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
4812  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
4813  LC_TELEPHONE LC_TIME
4814do
4815  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
4816    eval $as_var=C; export $as_var
4817  else
4818    $as_unset $as_var
4819  fi
4820done
4821
4822# Required to use basename.
4823if expr a : '\(a\)' >/dev/null 2>&1; then
4824  as_expr=expr
4825else
4826  as_expr=false
4827fi
4828
4829if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
4830  as_basename=basename
4831else
4832  as_basename=false
4833fi
4834
4835
4836# Name of the executable.
4837as_me=`$as_basename "$0" ||
4838$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
4839	 X"$0" : 'X\(//\)$' \| \
4840	 X"$0" : 'X\(/\)$' \| \
4841	 .     : '\(.\)' 2>/dev/null ||
4842echo X/"$0" |
4843    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
4844  	  /^X\/\(\/\/\)$/{ s//\1/; q; }
4845  	  /^X\/\(\/\).*/{ s//\1/; q; }
4846  	  s/.*/./; q'`
4847
4848
4849# PATH needs CR, and LINENO needs CR and PATH.
4850# Avoid depending upon Character Ranges.
4851as_cr_letters='abcdefghijklmnopqrstuvwxyz'
4852as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
4853as_cr_Letters=$as_cr_letters$as_cr_LETTERS
4854as_cr_digits='0123456789'
4855as_cr_alnum=$as_cr_Letters$as_cr_digits
4856
4857# The user is always right.
4858if test "${PATH_SEPARATOR+set}" != set; then
4859  echo "#! /bin/sh" >conf$$.sh
4860  echo  "exit 0"   >>conf$$.sh
4861  chmod +x conf$$.sh
4862  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4863    PATH_SEPARATOR=';'
4864  else
4865    PATH_SEPARATOR=:
4866  fi
4867  rm -f conf$$.sh
4868fi
4869
4870
4871  as_lineno_1=$LINENO
4872  as_lineno_2=$LINENO
4873  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
4874  test "x$as_lineno_1" != "x$as_lineno_2" &&
4875  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
4876  # Find who we are.  Look in the path if we contain no path at all
4877  # relative or not.
4878  case $0 in
4879    *[\\/]* ) as_myself=$0 ;;
4880    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4881for as_dir in $PATH
4882do
4883  IFS=$as_save_IFS
4884  test -z "$as_dir" && as_dir=.
4885  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
4886done
4887
4888       ;;
4889  esac
4890  # We did not find ourselves, most probably we were run as `sh COMMAND'
4891  # in which case we are not to be found in the path.
4892  if test "x$as_myself" = x; then
4893    as_myself=$0
4894  fi
4895  if test ! -f "$as_myself"; then
4896    { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
4897echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
4898   { (exit 1); exit 1; }; }
4899  fi
4900  case $CONFIG_SHELL in
4901  '')
4902    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4903for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
4904do
4905  IFS=$as_save_IFS
4906  test -z "$as_dir" && as_dir=.
4907  for as_base in sh bash ksh sh5; do
4908	 case $as_dir in
4909	 /*)
4910	   if ("$as_dir/$as_base" -c '
4911  as_lineno_1=$LINENO
4912  as_lineno_2=$LINENO
4913  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
4914  test "x$as_lineno_1" != "x$as_lineno_2" &&
4915  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
4916	     $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
4917	     $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
4918	     CONFIG_SHELL=$as_dir/$as_base
4919	     export CONFIG_SHELL
4920	     exec "$CONFIG_SHELL" "$0" ${1+"$@"}
4921	   fi;;
4922	 esac
4923       done
4924done
4925;;
4926  esac
4927
4928  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
4929  # uniformly replaced by the line number.  The first 'sed' inserts a
4930  # line-number line before each line; the second 'sed' does the real
4931  # work.  The second script uses 'N' to pair each line-number line
4932  # with the numbered line, and appends trailing '-' during
4933  # substitution so that $LINENO is not a special case at line end.
4934  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
4935  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
4936  sed '=' <$as_myself |
4937    sed '
4938      N
4939      s,$,-,
4940      : loop
4941      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
4942      t loop
4943      s,-$,,
4944      s,^['$as_cr_digits']*\n,,
4945    ' >$as_me.lineno &&
4946  chmod +x $as_me.lineno ||
4947    { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
4948echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
4949   { (exit 1); exit 1; }; }
4950
4951  # Don't try to exec as it changes $[0], causing all sort of problems
4952  # (the dirname of $[0] is not the place where we might find the
4953  # original and so on.  Autoconf is especially sensible to this).
4954  . ./$as_me.lineno
4955  # Exit status is that of the last command.
4956  exit
4957}
4958
4959
4960case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
4961  *c*,-n*) ECHO_N= ECHO_C='
4962' ECHO_T='	' ;;
4963  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
4964  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
4965esac
4966
4967if expr a : '\(a\)' >/dev/null 2>&1; then
4968  as_expr=expr
4969else
4970  as_expr=false
4971fi
4972
4973rm -f conf$$ conf$$.exe conf$$.file
4974echo >conf$$.file
4975if ln -s conf$$.file conf$$ 2>/dev/null; then
4976  # We could just check for DJGPP; but this test a) works b) is more generic
4977  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
4978  if test -f conf$$.exe; then
4979    # Don't use ln at all; we don't have any links
4980    as_ln_s='cp -p'
4981  else
4982    as_ln_s='ln -s'
4983  fi
4984elif ln conf$$.file conf$$ 2>/dev/null; then
4985  as_ln_s=ln
4986else
4987  as_ln_s='cp -p'
4988fi
4989rm -f conf$$ conf$$.exe conf$$.file
4990
4991if mkdir -p . 2>/dev/null; then
4992  as_mkdir_p=:
4993else
4994  test -d ./-p && rmdir ./-p
4995  as_mkdir_p=false
4996fi
4997
4998as_executable_p="test -f"
4999
5000# Sed expression to map a string onto a valid CPP name.
5001as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
5002
5003# Sed expression to map a string onto a valid variable name.
5004as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
5005
5006
5007# IFS
5008# We need space, tab and new line, in precisely that order.
5009as_nl='
5010'
5011IFS=" 	$as_nl"
5012
5013# CDPATH.
5014$as_unset CDPATH
5015
5016exec 6>&1
5017
5018# Open the log real soon, to keep \$[0] and so on meaningful, and to
5019# report actual input values of CONFIG_FILES etc. instead of their
5020# values after options handling.  Logging --version etc. is OK.
5021exec 5>>config.log
5022{
5023  echo
5024  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
5025## Running $as_me. ##
5026_ASBOX
5027} >&5
5028cat >&5 <<_CSEOF
5029
5030This file was extended by $as_me, which was
5031generated by GNU Autoconf 2.59.  Invocation command line was
5032
5033  CONFIG_FILES    = $CONFIG_FILES
5034  CONFIG_HEADERS  = $CONFIG_HEADERS
5035  CONFIG_LINKS    = $CONFIG_LINKS
5036  CONFIG_COMMANDS = $CONFIG_COMMANDS
5037  $ $0 $@
5038
5039_CSEOF
5040echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
5041echo >&5
5042_ACEOF
5043
5044# Files that config.status was made for.
5045if test -n "$ac_config_files"; then
5046  echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
5047fi
5048
5049if test -n "$ac_config_headers"; then
5050  echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
5051fi
5052
5053if test -n "$ac_config_links"; then
5054  echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
5055fi
5056
5057if test -n "$ac_config_commands"; then
5058  echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
5059fi
5060
5061cat >>$CONFIG_STATUS <<\_ACEOF
5062
5063ac_cs_usage="\
5064\`$as_me' instantiates files from templates according to the
5065current configuration.
5066
5067Usage: $0 [OPTIONS] [FILE]...
5068
5069  -h, --help       print this help, then exit
5070  -V, --version    print version number, then exit
5071  -q, --quiet      do not print progress messages
5072  -d, --debug      don't remove temporary files
5073      --recheck    update $as_me by reconfiguring in the same conditions
5074  --file=FILE[:TEMPLATE]
5075		   instantiate the configuration file FILE
5076
5077Configuration files:
5078$config_files
5079
5080Report bugs to <bug-autoconf@gnu.org>."
5081_ACEOF
5082
5083cat >>$CONFIG_STATUS <<_ACEOF
5084ac_cs_version="\\
5085config.status
5086configured by $0, generated by GNU Autoconf 2.59,
5087  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
5088
5089Copyright (C) 2003 Free Software Foundation, Inc.
5090This config.status script is free software; the Free Software Foundation
5091gives unlimited permission to copy, distribute and modify it."
5092srcdir=$srcdir
5093_ACEOF
5094
5095cat >>$CONFIG_STATUS <<\_ACEOF
5096# If no file are specified by the user, then we need to provide default
5097# value.  By we need to know if files were specified by the user.
5098ac_need_defaults=:
5099while test $# != 0
5100do
5101  case $1 in
5102  --*=*)
5103    ac_option=`expr "x$1" : 'x\([^=]*\)='`
5104    ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
5105    ac_shift=:
5106    ;;
5107  -*)
5108    ac_option=$1
5109    ac_optarg=$2
5110    ac_shift=shift
5111    ;;
5112  *) # This is not an option, so the user has probably given explicit
5113     # arguments.
5114     ac_option=$1
5115     ac_need_defaults=false;;
5116  esac
5117
5118  case $ac_option in
5119  # Handling of the options.
5120_ACEOF
5121cat >>$CONFIG_STATUS <<\_ACEOF
5122  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5123    ac_cs_recheck=: ;;
5124  --version | --vers* | -V )
5125    echo "$ac_cs_version"; exit 0 ;;
5126  --he | --h)
5127    # Conflict between --help and --header
5128    { { echo "$as_me:$LINENO: error: ambiguous option: $1
5129Try \`$0 --help' for more information." >&5
5130echo "$as_me: error: ambiguous option: $1
5131Try \`$0 --help' for more information." >&2;}
5132   { (exit 1); exit 1; }; };;
5133  --help | --hel | -h )
5134    echo "$ac_cs_usage"; exit 0 ;;
5135  --debug | --d* | -d )
5136    debug=: ;;
5137  --file | --fil | --fi | --f )
5138    $ac_shift
5139    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
5140    ac_need_defaults=false;;
5141  --header | --heade | --head | --hea )
5142    $ac_shift
5143    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
5144    ac_need_defaults=false;;
5145  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
5146  | -silent | --silent | --silen | --sile | --sil | --si | --s)
5147    ac_cs_silent=: ;;
5148
5149  # This is an error.
5150  -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
5151Try \`$0 --help' for more information." >&5
5152echo "$as_me: error: unrecognized option: $1
5153Try \`$0 --help' for more information." >&2;}
5154   { (exit 1); exit 1; }; } ;;
5155
5156  *) ac_config_targets="$ac_config_targets $1" ;;
5157
5158  esac
5159  shift
5160done
5161
5162ac_configure_extra_args=
5163
5164if $ac_cs_silent; then
5165  exec 6>/dev/null
5166  ac_configure_extra_args="$ac_configure_extra_args --silent"
5167fi
5168
5169_ACEOF
5170cat >>$CONFIG_STATUS <<_ACEOF
5171if \$ac_cs_recheck; then
5172  echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
5173  exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
5174fi
5175
5176_ACEOF
5177
5178
5179
5180
5181
5182cat >>$CONFIG_STATUS <<\_ACEOF
5183for ac_config_target in $ac_config_targets
5184do
5185  case "$ac_config_target" in
5186  # Handling of arguments.
5187  "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
5188  "tclConfig.sh" ) CONFIG_FILES="$CONFIG_FILES tclConfig.sh" ;;
5189  "tcl.hpj" ) CONFIG_FILES="$CONFIG_FILES tcl.hpj" ;;
5190  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
5191echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
5192   { (exit 1); exit 1; }; };;
5193  esac
5194done
5195
5196# If the user did not use the arguments to specify the items to instantiate,
5197# then the envvar interface is used.  Set only those that are not.
5198# We use the long form for the default assignment because of an extremely
5199# bizarre bug on SunOS 4.1.3.
5200if $ac_need_defaults; then
5201  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
5202fi
5203
5204# Have a temporary directory for convenience.  Make it in the build tree
5205# simply because there is no reason to put it here, and in addition,
5206# creating and moving files from /tmp can sometimes cause problems.
5207# Create a temporary directory, and hook for its removal unless debugging.
5208$debug ||
5209{
5210  trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
5211  trap '{ (exit 1); exit 1; }' 1 2 13 15
5212}
5213
5214# Create a (secure) tmp directory for tmp files.
5215
5216{
5217  tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
5218  test -n "$tmp" && test -d "$tmp"
5219}  ||
5220{
5221  tmp=./confstat$$-$RANDOM
5222  (umask 077 && mkdir $tmp)
5223} ||
5224{
5225   echo "$me: cannot create a temporary directory in ." >&2
5226   { (exit 1); exit 1; }
5227}
5228
5229_ACEOF
5230
5231cat >>$CONFIG_STATUS <<_ACEOF
5232
5233#
5234# CONFIG_FILES section.
5235#
5236
5237# No need to generate the scripts if there are no CONFIG_FILES.
5238# This happens for instance when ./config.status config.h
5239if test -n "\$CONFIG_FILES"; then
5240  # Protect against being on the right side of a sed subst in config.status.
5241  sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
5242   s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
5243s,@SHELL@,$SHELL,;t t
5244s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
5245s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
5246s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
5247s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
5248s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
5249s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
5250s,@exec_prefix@,$exec_prefix,;t t
5251s,@prefix@,$prefix,;t t
5252s,@program_transform_name@,$program_transform_name,;t t
5253s,@bindir@,$bindir,;t t
5254s,@sbindir@,$sbindir,;t t
5255s,@libexecdir@,$libexecdir,;t t
5256s,@datadir@,$datadir,;t t
5257s,@sysconfdir@,$sysconfdir,;t t
5258s,@sharedstatedir@,$sharedstatedir,;t t
5259s,@localstatedir@,$localstatedir,;t t
5260s,@libdir@,$libdir,;t t
5261s,@includedir@,$includedir,;t t
5262s,@oldincludedir@,$oldincludedir,;t t
5263s,@infodir@,$infodir,;t t
5264s,@mandir@,$mandir,;t t
5265s,@build_alias@,$build_alias,;t t
5266s,@host_alias@,$host_alias,;t t
5267s,@target_alias@,$target_alias,;t t
5268s,@DEFS@,$DEFS,;t t
5269s,@ECHO_C@,$ECHO_C,;t t
5270s,@ECHO_N@,$ECHO_N,;t t
5271s,@ECHO_T@,$ECHO_T,;t t
5272s,@LIBS@,$LIBS,;t t
5273s,@CC@,$CC,;t t
5274s,@CFLAGS@,$CFLAGS,;t t
5275s,@LDFLAGS@,$LDFLAGS,;t t
5276s,@CPPFLAGS@,$CPPFLAGS,;t t
5277s,@ac_ct_CC@,$ac_ct_CC,;t t
5278s,@EXEEXT@,$EXEEXT,;t t
5279s,@OBJEXT@,$OBJEXT,;t t
5280s,@CPP@,$CPP,;t t
5281s,@EGREP@,$EGREP,;t t
5282s,@AR@,$AR,;t t
5283s,@RANLIB@,$RANLIB,;t t
5284s,@RC@,$RC,;t t
5285s,@SET_MAKE@,$SET_MAKE,;t t
5286s,@TCL_THREADS@,$TCL_THREADS,;t t
5287s,@CYGPATH@,$CYGPATH,;t t
5288s,@CELIB_DIR@,$CELIB_DIR,;t t
5289s,@DL_LIBS@,$DL_LIBS,;t t
5290s,@CFLAGS_DEBUG@,$CFLAGS_DEBUG,;t t
5291s,@CFLAGS_OPTIMIZE@,$CFLAGS_OPTIMIZE,;t t
5292s,@CFLAGS_WARNING@,$CFLAGS_WARNING,;t t
5293s,@CFLAGS_DEFAULT@,$CFLAGS_DEFAULT,;t t
5294s,@LDFLAGS_DEFAULT@,$LDFLAGS_DEFAULT,;t t
5295s,@VC_MANIFEST_EMBED_DLL@,$VC_MANIFEST_EMBED_DLL,;t t
5296s,@VC_MANIFEST_EMBED_EXE@,$VC_MANIFEST_EMBED_EXE,;t t
5297s,@TCL_VERSION@,$TCL_VERSION,;t t
5298s,@TCL_MAJOR_VERSION@,$TCL_MAJOR_VERSION,;t t
5299s,@TCL_MINOR_VERSION@,$TCL_MINOR_VERSION,;t t
5300s,@TCL_PATCH_LEVEL@,$TCL_PATCH_LEVEL,;t t
5301s,@TCL_LIB_FILE@,$TCL_LIB_FILE,;t t
5302s,@TCL_LIB_FLAG@,$TCL_LIB_FLAG,;t t
5303s,@TCL_LIB_SPEC@,$TCL_LIB_SPEC,;t t
5304s,@TCL_STUB_LIB_FILE@,$TCL_STUB_LIB_FILE,;t t
5305s,@TCL_STUB_LIB_FLAG@,$TCL_STUB_LIB_FLAG,;t t
5306s,@TCL_STUB_LIB_SPEC@,$TCL_STUB_LIB_SPEC,;t t
5307s,@TCL_STUB_LIB_PATH@,$TCL_STUB_LIB_PATH,;t t
5308s,@TCL_INCLUDE_SPEC@,$TCL_INCLUDE_SPEC,;t t
5309s,@TCL_BUILD_STUB_LIB_SPEC@,$TCL_BUILD_STUB_LIB_SPEC,;t t
5310s,@TCL_BUILD_STUB_LIB_PATH@,$TCL_BUILD_STUB_LIB_PATH,;t t
5311s,@TCL_DLL_FILE@,$TCL_DLL_FILE,;t t
5312s,@TCL_SRC_DIR@,$TCL_SRC_DIR,;t t
5313s,@TCL_BIN_DIR@,$TCL_BIN_DIR,;t t
5314s,@TCL_DBGX@,$TCL_DBGX,;t t
5315s,@CFG_TCL_SHARED_LIB_SUFFIX@,$CFG_TCL_SHARED_LIB_SUFFIX,;t t
5316s,@CFG_TCL_UNSHARED_LIB_SUFFIX@,$CFG_TCL_UNSHARED_LIB_SUFFIX,;t t
5317s,@CFG_TCL_EXPORT_FILE_SUFFIX@,$CFG_TCL_EXPORT_FILE_SUFFIX,;t t
5318s,@EXTRA_CFLAGS@,$EXTRA_CFLAGS,;t t
5319s,@DEPARG@,$DEPARG,;t t
5320s,@CC_OBJNAME@,$CC_OBJNAME,;t t
5321s,@CC_EXENAME@,$CC_EXENAME,;t t
5322s,@LDFLAGS_DEBUG@,$LDFLAGS_DEBUG,;t t
5323s,@LDFLAGS_OPTIMIZE@,$LDFLAGS_OPTIMIZE,;t t
5324s,@LDFLAGS_CONSOLE@,$LDFLAGS_CONSOLE,;t t
5325s,@LDFLAGS_WINDOW@,$LDFLAGS_WINDOW,;t t
5326s,@STLIB_LD@,$STLIB_LD,;t t
5327s,@SHLIB_LD@,$SHLIB_LD,;t t
5328s,@SHLIB_LD_LIBS@,$SHLIB_LD_LIBS,;t t
5329s,@SHLIB_CFLAGS@,$SHLIB_CFLAGS,;t t
5330s,@SHLIB_SUFFIX@,$SHLIB_SUFFIX,;t t
5331s,@TCL_SHARED_BUILD@,$TCL_SHARED_BUILD,;t t
5332s,@LIBS_GUI@,$LIBS_GUI,;t t
5333s,@DLLSUFFIX@,$DLLSUFFIX,;t t
5334s,@LIBPREFIX@,$LIBPREFIX,;t t
5335s,@LIBSUFFIX@,$LIBSUFFIX,;t t
5336s,@EXESUFFIX@,$EXESUFFIX,;t t
5337s,@LIBRARIES@,$LIBRARIES,;t t
5338s,@MAKE_LIB@,$MAKE_LIB,;t t
5339s,@POST_MAKE_LIB@,$POST_MAKE_LIB,;t t
5340s,@MAKE_DLL@,$MAKE_DLL,;t t
5341s,@MAKE_EXE@,$MAKE_EXE,;t t
5342s,@TCL_BUILD_LIB_SPEC@,$TCL_BUILD_LIB_SPEC,;t t
5343s,@TCL_LD_SEARCH_FLAGS@,$TCL_LD_SEARCH_FLAGS,;t t
5344s,@TCL_NEEDS_EXP_FILE@,$TCL_NEEDS_EXP_FILE,;t t
5345s,@TCL_BUILD_EXP_FILE@,$TCL_BUILD_EXP_FILE,;t t
5346s,@TCL_EXP_FILE@,$TCL_EXP_FILE,;t t
5347s,@TCL_LIB_VERSIONS_OK@,$TCL_LIB_VERSIONS_OK,;t t
5348s,@TCL_PACKAGE_PATH@,$TCL_PACKAGE_PATH,;t t
5349s,@TCL_DDE_VERSION@,$TCL_DDE_VERSION,;t t
5350s,@TCL_DDE_MAJOR_VERSION@,$TCL_DDE_MAJOR_VERSION,;t t
5351s,@TCL_DDE_MINOR_VERSION@,$TCL_DDE_MINOR_VERSION,;t t
5352s,@TCL_DDE_PATCH_LEVEL@,$TCL_DDE_PATCH_LEVEL,;t t
5353s,@TCL_REG_VERSION@,$TCL_REG_VERSION,;t t
5354s,@TCL_REG_MAJOR_VERSION@,$TCL_REG_MAJOR_VERSION,;t t
5355s,@TCL_REG_MINOR_VERSION@,$TCL_REG_MINOR_VERSION,;t t
5356s,@TCL_REG_PATCH_LEVEL@,$TCL_REG_PATCH_LEVEL,;t t
5357s,@RC_OUT@,$RC_OUT,;t t
5358s,@RC_TYPE@,$RC_TYPE,;t t
5359s,@RC_INCLUDE@,$RC_INCLUDE,;t t
5360s,@RC_DEFINE@,$RC_DEFINE,;t t
5361s,@RC_DEFINES@,$RC_DEFINES,;t t
5362s,@RES@,$RES,;t t
5363s,@LIBOBJS@,$LIBOBJS,;t t
5364s,@LTLIBOBJS@,$LTLIBOBJS,;t t
5365CEOF
5366
5367_ACEOF
5368
5369  cat >>$CONFIG_STATUS <<\_ACEOF
5370  # Split the substitutions into bite-sized pieces for seds with
5371  # small command number limits, like on Digital OSF/1 and HP-UX.
5372  ac_max_sed_lines=48
5373  ac_sed_frag=1 # Number of current file.
5374  ac_beg=1 # First line for current file.
5375  ac_end=$ac_max_sed_lines # Line after last line for current file.
5376  ac_more_lines=:
5377  ac_sed_cmds=
5378  while $ac_more_lines; do
5379    if test $ac_beg -gt 1; then
5380      sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
5381    else
5382      sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
5383    fi
5384    if test ! -s $tmp/subs.frag; then
5385      ac_more_lines=false
5386    else
5387      # The purpose of the label and of the branching condition is to
5388      # speed up the sed processing (if there are no `@' at all, there
5389      # is no need to browse any of the substitutions).
5390      # These are the two extra sed commands mentioned above.
5391      (echo ':t
5392  /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
5393      if test -z "$ac_sed_cmds"; then
5394	ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
5395      else
5396	ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
5397      fi
5398      ac_sed_frag=`expr $ac_sed_frag + 1`
5399      ac_beg=$ac_end
5400      ac_end=`expr $ac_end + $ac_max_sed_lines`
5401    fi
5402  done
5403  if test -z "$ac_sed_cmds"; then
5404    ac_sed_cmds=cat
5405  fi
5406fi # test -n "$CONFIG_FILES"
5407
5408_ACEOF
5409cat >>$CONFIG_STATUS <<\_ACEOF
5410for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
5411  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5412  case $ac_file in
5413  - | *:- | *:-:* ) # input from stdin
5414	cat >$tmp/stdin
5415	ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
5416	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
5417  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
5418	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
5419  * )   ac_file_in=$ac_file.in ;;
5420  esac
5421
5422  # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
5423  ac_dir=`(dirname "$ac_file") 2>/dev/null ||
5424$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5425	 X"$ac_file" : 'X\(//\)[^/]' \| \
5426	 X"$ac_file" : 'X\(//\)$' \| \
5427	 X"$ac_file" : 'X\(/\)' \| \
5428	 .     : '\(.\)' 2>/dev/null ||
5429echo X"$ac_file" |
5430    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5431  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5432  	  /^X\(\/\/\)$/{ s//\1/; q; }
5433  	  /^X\(\/\).*/{ s//\1/; q; }
5434  	  s/.*/./; q'`
5435  { if $as_mkdir_p; then
5436    mkdir -p "$ac_dir"
5437  else
5438    as_dir="$ac_dir"
5439    as_dirs=
5440    while test ! -d "$as_dir"; do
5441      as_dirs="$as_dir $as_dirs"
5442      as_dir=`(dirname "$as_dir") 2>/dev/null ||
5443$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5444	 X"$as_dir" : 'X\(//\)[^/]' \| \
5445	 X"$as_dir" : 'X\(//\)$' \| \
5446	 X"$as_dir" : 'X\(/\)' \| \
5447	 .     : '\(.\)' 2>/dev/null ||
5448echo X"$as_dir" |
5449    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5450  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5451  	  /^X\(\/\/\)$/{ s//\1/; q; }
5452  	  /^X\(\/\).*/{ s//\1/; q; }
5453  	  s/.*/./; q'`
5454    done
5455    test ! -n "$as_dirs" || mkdir $as_dirs
5456  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
5457echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
5458   { (exit 1); exit 1; }; }; }
5459
5460  ac_builddir=.
5461
5462if test "$ac_dir" != .; then
5463  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
5464  # A "../" for each directory in $ac_dir_suffix.
5465  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
5466else
5467  ac_dir_suffix= ac_top_builddir=
5468fi
5469
5470case $srcdir in
5471  .)  # No --srcdir option.  We are building in place.
5472    ac_srcdir=.
5473    if test -z "$ac_top_builddir"; then
5474       ac_top_srcdir=.
5475    else
5476       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
5477    fi ;;
5478  [\\/]* | ?:[\\/]* )  # Absolute path.
5479    ac_srcdir=$srcdir$ac_dir_suffix;
5480    ac_top_srcdir=$srcdir ;;
5481  *) # Relative path.
5482    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
5483    ac_top_srcdir=$ac_top_builddir$srcdir ;;
5484esac
5485
5486# Do not use `cd foo && pwd` to compute absolute paths, because
5487# the directories may not exist.
5488case `pwd` in
5489.) ac_abs_builddir="$ac_dir";;
5490*)
5491  case "$ac_dir" in
5492  .) ac_abs_builddir=`pwd`;;
5493  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
5494  *) ac_abs_builddir=`pwd`/"$ac_dir";;
5495  esac;;
5496esac
5497case $ac_abs_builddir in
5498.) ac_abs_top_builddir=${ac_top_builddir}.;;
5499*)
5500  case ${ac_top_builddir}. in
5501  .) ac_abs_top_builddir=$ac_abs_builddir;;
5502  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
5503  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
5504  esac;;
5505esac
5506case $ac_abs_builddir in
5507.) ac_abs_srcdir=$ac_srcdir;;
5508*)
5509  case $ac_srcdir in
5510  .) ac_abs_srcdir=$ac_abs_builddir;;
5511  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
5512  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
5513  esac;;
5514esac
5515case $ac_abs_builddir in
5516.) ac_abs_top_srcdir=$ac_top_srcdir;;
5517*)
5518  case $ac_top_srcdir in
5519  .) ac_abs_top_srcdir=$ac_abs_builddir;;
5520  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
5521  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
5522  esac;;
5523esac
5524
5525
5526
5527  if test x"$ac_file" != x-; then
5528    { echo "$as_me:$LINENO: creating $ac_file" >&5
5529echo "$as_me: creating $ac_file" >&6;}
5530    rm -f "$ac_file"
5531  fi
5532  # Let's still pretend it is `configure' which instantiates (i.e., don't
5533  # use $as_me), people would be surprised to read:
5534  #    /* config.h.  Generated by config.status.  */
5535  if test x"$ac_file" = x-; then
5536    configure_input=
5537  else
5538    configure_input="$ac_file.  "
5539  fi
5540  configure_input=$configure_input"Generated from `echo $ac_file_in |
5541				     sed 's,.*/,,'` by configure."
5542
5543  # First look for the input files in the build tree, otherwise in the
5544  # src tree.
5545  ac_file_inputs=`IFS=:
5546    for f in $ac_file_in; do
5547      case $f in
5548      -) echo $tmp/stdin ;;
5549      [\\/$]*)
5550	 # Absolute (can't be DOS-style, as IFS=:)
5551	 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
5552echo "$as_me: error: cannot find input file: $f" >&2;}
5553   { (exit 1); exit 1; }; }
5554	 echo "$f";;
5555      *) # Relative
5556	 if test -f "$f"; then
5557	   # Build tree
5558	   echo "$f"
5559	 elif test -f "$srcdir/$f"; then
5560	   # Source tree
5561	   echo "$srcdir/$f"
5562	 else
5563	   # /dev/null tree
5564	   { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
5565echo "$as_me: error: cannot find input file: $f" >&2;}
5566   { (exit 1); exit 1; }; }
5567	 fi;;
5568      esac
5569    done` || { (exit 1); exit 1; }
5570_ACEOF
5571cat >>$CONFIG_STATUS <<_ACEOF
5572  sed "$ac_vpsub
5573$extrasub
5574_ACEOF
5575cat >>$CONFIG_STATUS <<\_ACEOF
5576:t
5577/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
5578s,@configure_input@,$configure_input,;t t
5579s,@srcdir@,$ac_srcdir,;t t
5580s,@abs_srcdir@,$ac_abs_srcdir,;t t
5581s,@top_srcdir@,$ac_top_srcdir,;t t
5582s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
5583s,@builddir@,$ac_builddir,;t t
5584s,@abs_builddir@,$ac_abs_builddir,;t t
5585s,@top_builddir@,$ac_top_builddir,;t t
5586s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
5587" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
5588  rm -f $tmp/stdin
5589  if test x"$ac_file" != x-; then
5590    mv $tmp/out $ac_file
5591  else
5592    cat $tmp/out
5593    rm -f $tmp/out
5594  fi
5595
5596done
5597_ACEOF
5598
5599cat >>$CONFIG_STATUS <<\_ACEOF
5600
5601{ (exit 0); exit 0; }
5602_ACEOF
5603chmod +x $CONFIG_STATUS
5604ac_clean_files=$ac_clean_files_save
5605
5606
5607# configure is writing to config.log, and then calls config.status.
5608# config.status does its own redirection, appending to config.log.
5609# Unfortunately, on DOS this fails, as config.log is still kept open
5610# by configure, so config.status won't be able to write to it; its
5611# output is simply discarded.  So we exec the FD to /dev/null,
5612# effectively closing config.log, so it can be properly (re)opened and
5613# appended to by config.status.  When coming back to configure, we
5614# need to make the FD available again.
5615if test "$no_create" != yes; then
5616  ac_cs_success=:
5617  ac_config_status_args=
5618  test "$silent" = yes &&
5619    ac_config_status_args="$ac_config_status_args --quiet"
5620  exec 5>/dev/null
5621  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
5622  exec 5>>config.log
5623  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
5624  # would make configure fail if this is the last instruction.
5625  $ac_cs_success || { (exit 1); exit 1; }
5626fi
5627
5628