Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: downloads/tcl8.5.2/win/configure @ 25

Last change on this file since 25 was 25, checked in by landauf, 17 years ago

added tcl to libs

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