3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.13
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
12 ac_default_prefix=/usr/local
13 # Any additions from configure.in:
15 --enable-threads build with threads"
17 --enable-shared build and link with shared libraries [--enable-shared]"
19 --enable-64bit enable 64bit support (where applicable)"
21 --enable-symbols build with debugging symbols [--disable-symbols]"
23 # Initialize some variables set by options.
24 # The variables have the same names as the options, with
25 # dashes changed to underlines.
27 cache_file=./config.cache
36 program_transform_name=s,x,x,
44 bindir='${exec_prefix}/bin'
45 sbindir='${exec_prefix}/sbin'
46 libexecdir='${exec_prefix}/libexec'
47 datadir='${prefix}/share'
48 sysconfdir='${prefix}/etc'
49 sharedstatedir='${prefix}/com'
50 localstatedir='${prefix}/var'
51 libdir='${exec_prefix}/lib'
52 includedir='${prefix}/include'
53 oldincludedir='/usr/include'
54 infodir='${prefix}/info'
55 mandir='${prefix}/man'
57 # Initialize some other variables.
60 SHELL=${CONFIG_SHELL-/bin/sh}
61 # Maximum number of lines to put in a shell here document.
68 # If the previous option needs an argument, assign it.
69 if test -n "$ac_prev"; then
70 eval "$ac_prev=\$ac_option"
76 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
80 # Accept the important Cygnus configure options, so we can diagnose typos.
84 -bindir | --bindir | --bindi | --bind | --bin | --bi)
86 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
87 bindir="$ac_optarg" ;;
89 -build | --build | --buil | --bui | --bu)
91 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
94 -cache-file | --cache-file | --cache-fil | --cache-fi \
95 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
97 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
98 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
99 cache_file="$ac_optarg" ;;
101 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
103 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
105 datadir="$ac_optarg" ;;
107 -disable-* | --disable-*)
108 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
109 # Reject names that are not valid shell variable names.
110 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
111 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
113 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
114 eval "enable_${ac_feature}=no" ;;
116 -enable-* | --enable-*)
117 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
118 # Reject names that are not valid shell variable names.
119 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
120 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
122 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
127 eval "enable_${ac_feature}='$ac_optarg'" ;;
129 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
130 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
131 | --exec | --exe | --ex)
132 ac_prev=exec_prefix ;;
133 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
134 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
135 | --exec=* | --exe=* | --ex=*)
136 exec_prefix="$ac_optarg" ;;
138 -gas | --gas | --ga | --g)
139 # Obsolete; use --with-gas.
142 -help | --help | --hel | --he)
143 # Omit some internal or obsolete options to make the list less imposing.
144 # This message is too long to be a string in the A/UX 3.1 sh.
146 Usage: configure [options] [host]
147 Options: [defaults in brackets after descriptions]
149 --cache-file=FILE cache test results in FILE
150 --help print this message
151 --no-create do not create output files
152 --quiet, --silent do not print \`checking...' messages
153 --version print the version of autoconf that created configure
154 Directory and file names:
155 --prefix=PREFIX install architecture-independent files in PREFIX
157 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
159 --bindir=DIR user executables in DIR [EPREFIX/bin]
160 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
161 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
162 --datadir=DIR read-only architecture-independent data in DIR
164 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
165 --sharedstatedir=DIR modifiable architecture-independent data in DIR
167 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
168 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
169 --includedir=DIR C header files in DIR [PREFIX/include]
170 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
171 --infodir=DIR info documentation in DIR [PREFIX/info]
172 --mandir=DIR man documentation in DIR [PREFIX/man]
173 --srcdir=DIR find the sources in DIR [configure dir or ..]
174 --program-prefix=PREFIX prepend PREFIX to installed program names
175 --program-suffix=SUFFIX append SUFFIX to installed program names
176 --program-transform-name=PROGRAM
177 run sed PROGRAM on installed program names
181 --build=BUILD configure for building on BUILD [BUILD=HOST]
182 --host=HOST configure for HOST [guessed]
183 --target=TARGET configure for TARGET [TARGET=HOST]
184 Features and packages:
185 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
186 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
187 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
188 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
189 --x-includes=DIR X include files are in DIR
190 --x-libraries=DIR X library files are in DIR
192 if test -n "$ac_help"; then
193 echo "--enable and --with options recognized:$ac_help"
197 -host | --host | --hos | --ho)
199 -host=* | --host=* | --hos=* | --ho=*)
202 -includedir | --includedir | --includedi | --included | --include \
203 | --includ | --inclu | --incl | --inc)
204 ac_prev=includedir ;;
205 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
206 | --includ=* | --inclu=* | --incl=* | --inc=*)
207 includedir="$ac_optarg" ;;
209 -infodir | --infodir | --infodi | --infod | --info | --inf)
211 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
212 infodir="$ac_optarg" ;;
214 -libdir | --libdir | --libdi | --libd)
216 -libdir=* | --libdir=* | --libdi=* | --libd=*)
217 libdir="$ac_optarg" ;;
219 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
220 | --libexe | --libex | --libe)
221 ac_prev=libexecdir ;;
222 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
223 | --libexe=* | --libex=* | --libe=*)
224 libexecdir="$ac_optarg" ;;
226 -localstatedir | --localstatedir | --localstatedi | --localstated \
227 | --localstate | --localstat | --localsta | --localst \
228 | --locals | --local | --loca | --loc | --lo)
229 ac_prev=localstatedir ;;
230 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
231 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
232 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
233 localstatedir="$ac_optarg" ;;
235 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
237 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
238 mandir="$ac_optarg" ;;
241 # Obsolete; use --without-fp.
244 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
248 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
249 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
252 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
253 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
254 | --oldin | --oldi | --old | --ol | --o)
255 ac_prev=oldincludedir ;;
256 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
257 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
258 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
259 oldincludedir="$ac_optarg" ;;
261 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
263 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
264 prefix="$ac_optarg" ;;
266 -program-prefix | --program-prefix | --program-prefi | --program-pref \
267 | --program-pre | --program-pr | --program-p)
268 ac_prev=program_prefix ;;
269 -program-prefix=* | --program-prefix=* | --program-prefi=* \
270 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
271 program_prefix="$ac_optarg" ;;
273 -program-suffix | --program-suffix | --program-suffi | --program-suff \
274 | --program-suf | --program-su | --program-s)
275 ac_prev=program_suffix ;;
276 -program-suffix=* | --program-suffix=* | --program-suffi=* \
277 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
278 program_suffix="$ac_optarg" ;;
280 -program-transform-name | --program-transform-name \
281 | --program-transform-nam | --program-transform-na \
282 | --program-transform-n | --program-transform- \
283 | --program-transform | --program-transfor \
284 | --program-transfo | --program-transf \
285 | --program-trans | --program-tran \
286 | --progr-tra | --program-tr | --program-t)
287 ac_prev=program_transform_name ;;
288 -program-transform-name=* | --program-transform-name=* \
289 | --program-transform-nam=* | --program-transform-na=* \
290 | --program-transform-n=* | --program-transform-=* \
291 | --program-transform=* | --program-transfor=* \
292 | --program-transfo=* | --program-transf=* \
293 | --program-trans=* | --program-tran=* \
294 | --progr-tra=* | --program-tr=* | --program-t=*)
295 program_transform_name="$ac_optarg" ;;
297 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
298 | -silent | --silent | --silen | --sile | --sil)
301 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
303 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
305 sbindir="$ac_optarg" ;;
307 -sharedstatedir | --sharedstatedir | --sharedstatedi \
308 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
309 | --sharedst | --shareds | --shared | --share | --shar \
311 ac_prev=sharedstatedir ;;
312 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
313 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
314 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
316 sharedstatedir="$ac_optarg" ;;
318 -site | --site | --sit)
320 -site=* | --site=* | --sit=*)
323 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
325 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
326 srcdir="$ac_optarg" ;;
328 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
329 | --syscon | --sysco | --sysc | --sys | --sy)
330 ac_prev=sysconfdir ;;
331 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
332 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
333 sysconfdir="$ac_optarg" ;;
335 -target | --target | --targe | --targ | --tar | --ta | --t)
337 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
338 target="$ac_optarg" ;;
340 -v | -verbose | --verbose | --verbos | --verbo | --verb)
343 -version | --version | --versio | --versi | --vers)
344 echo "configure generated by autoconf version 2.13"
348 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
349 # Reject names that are not valid shell variable names.
350 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
351 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
353 ac_package=`echo $ac_package| sed 's/-/_/g'`
358 eval "with_${ac_package}='$ac_optarg'" ;;
360 -without-* | --without-*)
361 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
362 # Reject names that are not valid shell variable names.
363 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
364 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
366 ac_package=`echo $ac_package| sed 's/-/_/g'`
367 eval "with_${ac_package}=no" ;;
370 # Obsolete; use --with-x.
373 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
374 | --x-incl | --x-inc | --x-in | --x-i)
375 ac_prev=x_includes ;;
376 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
377 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
378 x_includes="$ac_optarg" ;;
380 -x-libraries | --x-libraries | --x-librarie | --x-librari \
381 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
382 ac_prev=x_libraries ;;
383 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
384 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
385 x_libraries="$ac_optarg" ;;
387 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
391 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
392 echo "configure: warning: $ac_option: invalid host type" 1>&2
394 if test "x$nonopt" != xNONE; then
395 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
403 if test -n "$ac_prev"; then
404 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
407 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
409 # File descriptor usage:
412 # 2 errors and warnings
413 # 3 some systems may open it to /dev/tty
414 # 4 used on the Kubota Titan
415 # 6 checking for... messages and results
416 # 5 compiler messages saved in config.log
417 if test "$silent" = yes; then
425 This file contains any messages produced by compilers while
426 running configure, to aid debugging if configure makes a mistake.
429 # Strip out --no-create and --no-recursion so they do not pile up.
430 # Also quote any args containing shell metacharacters.
435 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
436 | --no-cr | --no-c) ;;
437 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
438 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
439 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
440 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
441 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
446 # Only set these to C if already set. These must not be set unconditionally
447 # because not all systems understand e.g. LANG=C (notably SCO).
448 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
449 # Non-C LC_CTYPE values break the ctype check.
450 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
451 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
452 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
453 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
455 # confdefs.h avoids OS command line length limits that DEFS can exceed.
456 rm -rf conftest* confdefs.h
457 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
460 # A filename unique to this package, relative to the directory that
461 # configure is in, which we can look for to find out if srcdir is correct.
462 ac_unique_file=../generic/tcl.h
464 # Find the source files, if location was not specified.
465 if test -z "$srcdir"; then
466 ac_srcdir_defaulted=yes
467 # Try the directory containing this script, then its parent.
469 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
470 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
472 if test ! -r $srcdir/$ac_unique_file; then
476 ac_srcdir_defaulted=no
478 if test ! -r $srcdir/$ac_unique_file; then
479 if test "$ac_srcdir_defaulted" = yes; then
480 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
482 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
485 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
487 # Prefer explicitly selected file to automatically selected ones.
488 if test -z "$CONFIG_SITE"; then
489 if test "x$prefix" != xNONE; then
490 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
492 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
495 for ac_site_file in $CONFIG_SITE; do
496 if test -r "$ac_site_file"; then
497 echo "loading site script $ac_site_file"
502 if test -r "$cache_file"; then
503 echo "loading cache $cache_file"
506 echo "creating cache $cache_file"
511 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
512 ac_cpp='$CPP $CPPFLAGS'
513 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
514 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
515 cross_compiling=$ac_cv_prog_cc_cross
519 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
520 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
521 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
528 ac_n= ac_c='\c' ac_t=
538 VER=$TCL_MAJOR_VERSION$TCL_MINOR_VERSION
541 TCL_DDE_MAJOR_VERSION=1
542 TCL_DDE_MINOR_VERSION=2
543 TCL_DDE_PATCH_LEVEL=""
544 DDEVER=$TCL_DDE_MAJOR_VERSION$TCL_DDE_MINOR_VERSION
547 TCL_REG_MAJOR_VERSION=1
548 TCL_REG_MINOR_VERSION=1
549 TCL_REG_PATCH_LEVEL=""
550 REGVER=$TCL_REG_MAJOR_VERSION$TCL_REG_MINOR_VERSION
552 #------------------------------------------------------------------------
553 # Handle the --prefix=... option
554 #------------------------------------------------------------------------
556 if test "${prefix}" = "NONE"; then
559 if test "${exec_prefix}" = "NONE"; then
562 # libdir must be a fully qualified path (not ${exec_prefix}/lib)
563 eval libdir="$libdir"
565 #------------------------------------------------------------------------
566 # Standard compiler checks
567 #------------------------------------------------------------------------
569 # If the user did not set CFLAGS, set it now to keep
570 # the AC_PROG_CC macro from adding "-g -O2".
571 if test "${CFLAGS+set}" != "set" ; then
575 # Extract the first word of "gcc", so it can be a program name with args.
576 set dummy gcc; ac_word=$2
577 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
578 echo "configure:579: checking for $ac_word" >&5
579 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
580 echo $ac_n "(cached) $ac_c" 1>&6
582 if test -n "$CC"; then
583 ac_cv_prog_CC="$CC" # Let the user override the test.
585 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
587 for ac_dir in $ac_dummy; do
588 test -z "$ac_dir" && ac_dir=.
589 if test -f $ac_dir/$ac_word; then
598 if test -n "$CC"; then
599 echo "$ac_t""$CC" 1>&6
601 echo "$ac_t""no" 1>&6
604 if test -z "$CC"; then
605 # Extract the first word of "cc", so it can be a program name with args.
606 set dummy cc; ac_word=$2
607 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
608 echo "configure:609: checking for $ac_word" >&5
609 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
610 echo $ac_n "(cached) $ac_c" 1>&6
612 if test -n "$CC"; then
613 ac_cv_prog_CC="$CC" # Let the user override the test.
615 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
618 for ac_dir in $ac_dummy; do
619 test -z "$ac_dir" && ac_dir=.
620 if test -f $ac_dir/$ac_word; then
621 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
630 if test $ac_prog_rejected = yes; then
631 # We found a bogon in the path, so make sure we never use it.
632 set dummy $ac_cv_prog_CC
634 if test $# -gt 0; then
635 # We chose a different compiler from the bogus one.
636 # However, it has the same basename, so the bogon will be chosen
637 # first if we set CC to just the basename; use the full file name.
639 set dummy "$ac_dir/$ac_word" "$@"
647 if test -n "$CC"; then
648 echo "$ac_t""$CC" 1>&6
650 echo "$ac_t""no" 1>&6
653 if test -z "$CC"; then
656 # Extract the first word of "cl", so it can be a program name with args.
657 set dummy cl; ac_word=$2
658 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
659 echo "configure:660: checking for $ac_word" >&5
660 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
661 echo $ac_n "(cached) $ac_c" 1>&6
663 if test -n "$CC"; then
664 ac_cv_prog_CC="$CC" # Let the user override the test.
666 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
668 for ac_dir in $ac_dummy; do
669 test -z "$ac_dir" && ac_dir=.
670 if test -f $ac_dir/$ac_word; then
679 if test -n "$CC"; then
680 echo "$ac_t""$CC" 1>&6
682 echo "$ac_t""no" 1>&6
687 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
690 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
691 echo "configure:692: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
694 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
695 ac_cpp='$CPP $CPPFLAGS'
696 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
697 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
698 cross_compiling=$ac_cv_prog_cc_cross
700 cat > conftest.$ac_ext << EOF
702 #line 703 "configure"
703 #include "confdefs.h"
707 if { (eval echo configure:708: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
708 ac_cv_prog_cc_works=yes
709 # If we can't run a trivial program, we are probably using a cross compiler.
710 if (./conftest; exit) 2>/dev/null; then
711 ac_cv_prog_cc_cross=no
713 ac_cv_prog_cc_cross=yes
716 echo "configure: failed program was:" >&5
717 cat conftest.$ac_ext >&5
718 ac_cv_prog_cc_works=no
722 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
723 ac_cpp='$CPP $CPPFLAGS'
724 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
725 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
726 cross_compiling=$ac_cv_prog_cc_cross
728 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
729 if test $ac_cv_prog_cc_works = no; then
730 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
732 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
733 echo "configure:734: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
734 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
735 cross_compiling=$ac_cv_prog_cc_cross
737 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
738 echo "configure:739: checking whether we are using GNU C" >&5
739 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
740 echo $ac_n "(cached) $ac_c" 1>&6
742 cat > conftest.c <<EOF
747 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:748: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
754 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
756 if test $ac_cv_prog_gcc = yes; then
762 ac_test_CFLAGS="${CFLAGS+set}"
763 ac_save_CFLAGS="$CFLAGS"
765 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
766 echo "configure:767: checking whether ${CC-cc} accepts -g" >&5
767 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
768 echo $ac_n "(cached) $ac_c" 1>&6
770 echo 'void f(){}' > conftest.c
771 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
780 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
781 if test "$ac_test_CFLAGS" = set; then
782 CFLAGS="$ac_save_CFLAGS"
783 elif test $ac_cv_prog_cc_g = yes; then
784 if test "$GCC" = yes; then
790 if test "$GCC" = yes; then
798 # To properly support cross-compilation, one would
799 # need to use these tool checks instead of
800 # the ones below and reconfigure with
801 # autoconf 2.50. You can also just set
802 # the CC, AR, RANLIB, and RC environment
803 # variables if you want to cross compile.
805 if test "${GCC}" = "yes" ; then
806 # Extract the first word of "ar", so it can be a program name with args.
807 set dummy ar; ac_word=$2
808 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
809 echo "configure:810: checking for $ac_word" >&5
810 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
811 echo $ac_n "(cached) $ac_c" 1>&6
813 if test -n "$AR"; then
814 ac_cv_prog_AR="$AR" # Let the user override the test.
816 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
818 for ac_dir in $ac_dummy; do
819 test -z "$ac_dir" && ac_dir=.
820 if test -f $ac_dir/$ac_word; then
829 if test -n "$AR"; then
830 echo "$ac_t""$AR" 1>&6
832 echo "$ac_t""no" 1>&6
835 # Extract the first word of "ranlib", so it can be a program name with args.
836 set dummy ranlib; ac_word=$2
837 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
838 echo "configure:839: checking for $ac_word" >&5
839 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
840 echo $ac_n "(cached) $ac_c" 1>&6
842 if test -n "$RANLIB"; then
843 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
845 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
847 for ac_dir in $ac_dummy; do
848 test -z "$ac_dir" && ac_dir=.
849 if test -f $ac_dir/$ac_word; then
850 ac_cv_prog_RANLIB="ranlib"
857 RANLIB="$ac_cv_prog_RANLIB"
858 if test -n "$RANLIB"; then
859 echo "$ac_t""$RANLIB" 1>&6
861 echo "$ac_t""no" 1>&6
864 # Extract the first word of "windres", so it can be a program name with args.
865 set dummy windres; ac_word=$2
866 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
867 echo "configure:868: checking for $ac_word" >&5
868 if eval "test \"`echo '$''{'ac_cv_prog_RC'+set}'`\" = set"; then
869 echo $ac_n "(cached) $ac_c" 1>&6
871 if test -n "$RC"; then
872 ac_cv_prog_RC="$RC" # Let the user override the test.
874 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
876 for ac_dir in $ac_dummy; do
877 test -z "$ac_dir" && ac_dir=.
878 if test -f $ac_dir/$ac_word; then
879 ac_cv_prog_RC="windres"
887 if test -n "$RC"; then
888 echo "$ac_t""$RC" 1>&6
890 echo "$ac_t""no" 1>&6
895 #--------------------------------------------------------------------
896 # Checks to see if the make progeam sets the $MAKE variable.
897 #--------------------------------------------------------------------
899 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
900 echo "configure:901: checking whether ${MAKE-make} sets \${MAKE}" >&5
901 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
902 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
903 echo $ac_n "(cached) $ac_c" 1>&6
905 cat > conftestmake <<\EOF
907 @echo 'ac_maketemp="${MAKE}"'
909 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
910 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
911 if test -n "$ac_maketemp"; then
912 eval ac_cv_prog_make_${ac_make}_set=yes
914 eval ac_cv_prog_make_${ac_make}_set=no
918 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
919 echo "$ac_t""yes" 1>&6
922 echo "$ac_t""no" 1>&6
923 SET_MAKE="MAKE=${MAKE-make}"
927 #--------------------------------------------------------------------
928 # Perform additinal compiler tests.
929 #--------------------------------------------------------------------
931 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
932 echo "configure:933: checking for Cygwin environment" >&5
933 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
934 echo $ac_n "(cached) $ac_c" 1>&6
936 cat > conftest.$ac_ext <<EOF
937 #line 938 "configure"
938 #include "confdefs.h"
943 #define __CYGWIN__ __CYGWIN32__
948 if { (eval echo configure:949: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
952 echo "configure: failed program was:" >&5
953 cat conftest.$ac_ext >&5
961 echo "$ac_t""$ac_cv_cygwin" 1>&6
963 test "$ac_cv_cygwin" = yes && CYGWIN=yes
965 #if test "$ac_cv_cygwin" = "yes" ; then
966 # AC_MSG_ERROR([Compiling with the Cygwin version of gcc is not supported.
967 # Use the Mingw version of gcc from www.mingw.org instead.])
971 echo $ac_n "checking for SEH support in compiler""... $ac_c" 1>&6
972 echo "configure:973: checking for SEH support in compiler" >&5
973 if eval "test \"`echo '$''{'tcl_cv_seh'+set}'`\" = set"; then
974 echo $ac_n "(cached) $ac_c" 1>&6
976 if test "$cross_compiling" = yes; then
979 cat > conftest.$ac_ext <<EOF
980 #line 981 "configure"
981 #include "confdefs.h"
983 #define WIN32_LEAN_AND_MEAN
985 #undef WIN32_LEAN_AND_MEAN
987 int main(int argc, char** argv) {
992 __except (EXCEPTION_EXECUTE_HANDLER) {
999 if { (eval echo configure:1000: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1003 echo "configure: failed program was:" >&5
1004 cat conftest.$ac_ext >&5
1014 echo "$ac_t""$tcl_cv_seh" 1>&6
1015 if test "$tcl_cv_seh" = "no" ; then
1016 cat >> confdefs.h <<\EOF
1017 #define HAVE_NO_SEH 1
1023 # Check to see if the excpt.h include file provided contains the
1024 # definition for EXCEPTION_DISPOSITION; if not, which is the case
1025 # with Cygwin's version as of 2002-04-10, define it to be int,
1026 # sufficient for getting the current code to work.
1028 echo $ac_n "checking for EXCEPTION_DISPOSITION support in include files""... $ac_c" 1>&6
1029 echo "configure:1030: checking for EXCEPTION_DISPOSITION support in include files" >&5
1030 if eval "test \"`echo '$''{'tcl_cv_eh_disposition'+set}'`\" = set"; then
1031 echo $ac_n "(cached) $ac_c" 1>&6
1033 cat > conftest.$ac_ext <<EOF
1034 #line 1035 "configure"
1035 #include "confdefs.h"
1037 #define WIN32_LEAN_AND_MEAN
1038 #include <windows.h>
1039 #undef WIN32_LEAN_AND_MEAN
1043 EXCEPTION_DISPOSITION x;
1047 if { (eval echo configure:1048: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1049 tcl_cv_eh_disposition=yes
1051 echo "configure: failed program was:" >&5
1052 cat conftest.$ac_ext >&5
1054 tcl_cv_eh_disposition=no
1060 echo "$ac_t""$tcl_cv_eh_disposition" 1>&6
1061 if test "$tcl_cv_eh_disposition" = "no" ; then
1062 cat >> confdefs.h <<\EOF
1063 #define EXCEPTION_DISPOSITION int
1068 #--------------------------------------------------------------------
1069 # Determines the correct binary file extension (.o, .obj, .exe etc.)
1070 #--------------------------------------------------------------------
1072 echo $ac_n "checking for object suffix""... $ac_c" 1>&6
1073 echo "configure:1074: checking for object suffix" >&5
1074 if eval "test \"`echo '$''{'ac_cv_objext'+set}'`\" = set"; then
1075 echo $ac_n "(cached) $ac_c" 1>&6
1078 echo 'int i = 1;' > conftest.$ac_ext
1079 if { (eval echo configure:1080: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1080 for ac_file in conftest.*; do
1083 *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
1087 { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
1092 echo "$ac_t""$ac_cv_objext" 1>&6
1093 OBJEXT=$ac_cv_objext
1094 ac_objext=$ac_cv_objext
1096 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
1097 echo "configure:1098: checking for mingw32 environment" >&5
1098 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
1099 echo $ac_n "(cached) $ac_c" 1>&6
1101 cat > conftest.$ac_ext <<EOF
1102 #line 1103 "configure"
1103 #include "confdefs.h"
1109 if { (eval echo configure:1110: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1113 echo "configure: failed program was:" >&5
1114 cat conftest.$ac_ext >&5
1122 echo "$ac_t""$ac_cv_mingw32" 1>&6
1124 test "$ac_cv_mingw32" = yes && MINGW32=yes
1127 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
1128 echo "configure:1129: checking for executable suffix" >&5
1129 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
1130 echo $ac_n "(cached) $ac_c" 1>&6
1132 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
1136 echo 'int main () { return 0; }' > conftest.$ac_ext
1138 if { (eval echo configure:1139: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1139 for file in conftest.*; do
1141 *.c | *.o | *.obj) ;;
1142 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
1146 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
1149 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
1154 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
1155 echo "$ac_t""${ac_cv_exeext}" 1>&6
1159 #--------------------------------------------------------------------
1160 # Check whether --enable-threads or --disable-threads was given.
1161 #--------------------------------------------------------------------
1164 echo $ac_n "checking for building with threads""... $ac_c" 1>&6
1165 echo "configure:1166: checking for building with threads" >&5
1166 # Check whether --enable-threads or --disable-threads was given.
1167 if test "${enable_threads+set}" = set; then
1168 enableval="$enable_threads"
1175 if test "$tcl_ok" = "yes"; then
1176 echo "$ac_t""yes" 1>&6
1178 cat >> confdefs.h <<\EOF
1179 #define TCL_THREADS 1
1182 # USE_THREAD_ALLOC tells us to try the special thread-based
1183 # allocator that significantly reduces lock contention
1184 cat >> confdefs.h <<\EOF
1185 #define USE_THREAD_ALLOC 1
1190 echo "$ac_t""no (default)" 1>&6
1195 #--------------------------------------------------------------------
1196 # The statements below define a collection of symbols related to
1197 # building libtcl as a shared library instead of a static library.
1198 #--------------------------------------------------------------------
1201 echo $ac_n "checking how to build libraries""... $ac_c" 1>&6
1202 echo "configure:1203: checking how to build libraries" >&5
1203 # Check whether --enable-shared or --disable-shared was given.
1204 if test "${enable_shared+set}" = set; then
1205 enableval="$enable_shared"
1212 if test "${enable_shared+set}" = set; then
1213 enableval="$enable_shared"
1219 if test "$tcl_ok" = "yes" ; then
1220 echo "$ac_t""shared" 1>&6
1223 echo "$ac_t""static" 1>&6
1225 cat >> confdefs.h <<\EOF
1226 #define STATIC_BUILD 1
1232 #--------------------------------------------------------------------
1233 # The statements below define a collection of compile flags. This
1234 # macro depends on the value of SHARED_BUILD, and should be called
1235 # after SC_ENABLE_SHARED checks the configure switches.
1236 #--------------------------------------------------------------------
1240 # Step 0: Enable 64 bit support?
1242 echo $ac_n "checking if 64bit support is requested""... $ac_c" 1>&6
1243 echo "configure:1244: checking if 64bit support is requested" >&5
1244 # Check whether --enable-64bit or --disable-64bit was given.
1245 if test "${enable_64bit+set}" = set; then
1246 enableval="$enable_64bit"
1252 echo "$ac_t""$do64bit" 1>&6
1254 # Set some defaults (may get changed below)
1257 # Extract the first word of "cygpath", so it can be a program name with args.
1258 set dummy cygpath; ac_word=$2
1259 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1260 echo "configure:1261: checking for $ac_word" >&5
1261 if eval "test \"`echo '$''{'ac_cv_prog_CYGPATH'+set}'`\" = set"; then
1262 echo $ac_n "(cached) $ac_c" 1>&6
1264 if test -n "$CYGPATH"; then
1265 ac_cv_prog_CYGPATH="$CYGPATH" # Let the user override the test.
1267 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1269 for ac_dir in $ac_dummy; do
1270 test -z "$ac_dir" && ac_dir=.
1271 if test -f $ac_dir/$ac_word; then
1272 ac_cv_prog_CYGPATH="cygpath -w"
1277 test -z "$ac_cv_prog_CYGPATH" && ac_cv_prog_CYGPATH="echo"
1280 CYGPATH="$ac_cv_prog_CYGPATH"
1281 if test -n "$CYGPATH"; then
1282 echo "$ac_t""$CYGPATH" 1>&6
1284 echo "$ac_t""no" 1>&6
1288 # Check for a bug in gcc's windres that causes the
1289 # compile to fail when a Windows native path is
1290 # passed into windres. The mingw toolchain requires
1291 # Windows native paths while Cygwin should work
1292 # with both. Avoid the bug by passing a POSIX
1293 # path when using the Cygwin toolchain.
1295 if test "$GCC" = "yes" && test "$CYGPATH" != "echo" ; then
1296 conftest=/tmp/conftest.rc
1297 echo "STRINGTABLE BEGIN" > $conftest
1298 echo "101 \"name\"" >> $conftest
1299 echo "END" >> $conftest
1301 echo $ac_n "checking for Windows native path bug in windres""... $ac_c" 1>&6
1302 echo "configure:1303: checking for Windows native path bug in windres" >&5
1303 cyg_conftest=`$CYGPATH $conftest`
1304 if { ac_try='$RC -o conftest.res.o $cyg_conftest'; { (eval echo configure:1305: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } ; then
1305 echo "$ac_t""no" 1>&6
1307 echo "$ac_t""yes" 1>&6
1314 if test "$CYGPATH" = "echo" || test "$ac_cv_cygwin" = "yes"; then
1317 DEPARG='"$(shell $(CYGPATH) $<)"'
1320 # set various compiler flags depending on whether we are using gcc or cl
1322 echo $ac_n "checking compiler flags""... $ac_c" 1>&6
1323 echo "configure:1324: checking compiler flags" >&5
1324 if test "${GCC}" = "yes" ; then
1325 if test "$do64bit" = "yes" ; then
1326 echo "configure: warning: "64bit mode not supported with GCC on Windows"" 1>&2
1331 LIBS_GUI="-lgdi32 -lcomdlg32 -limm32 -lcomctl32"
1335 RC_INCLUDE=--include
1338 MAKE_LIB="\${STLIB_LD} \$@"
1339 POST_MAKE_LIB="\${RANLIB} \$@"
1340 MAKE_EXE="\${CC} -o \$@"
1343 #if test "$ac_cv_cygwin" = "yes"; then
1344 # extra_cflags="-mno-cygwin"
1345 # extra_ldflags="-mno-cygwin"
1351 if test "$ac_cv_cygwin" = "yes"; then
1353 if ${CC} -c -mwin32 ac$$.c >/dev/null 2>&1; then
1354 case "$extra_cflags" in
1356 *) extra_cflags="-mwin32 $extra_cflags" ;;
1358 case "$extra_ldflags" in
1360 *) extra_ldflags="-mwin32 $extra_ldflags" ;;
1369 if test "${SHARED_BUILD}" = "0" ; then
1371 echo "$ac_t""using static flags" 1>&6
1374 LIBSUFFIX="s\${DBGX}.a"
1375 LIBRARIES="\${STATIC_LIBRARIES}"
1376 EXESUFFIX="s\${DBGX}.exe"
1379 echo "$ac_t""using shared flags" 1>&6
1381 # ad-hoc check to see if CC supports -shared.
1382 if "${CC}" -shared 2>&1 | egrep ': -shared not supported' >/dev/null; then
1383 { echo "configure: error: ${CC} does not support the -shared option.
1384 You will need to upgrade to a newer version of the toolchain." 1>&2; exit 1; }
1388 # Link with gcc since ld does not link to default libs like
1389 # -luser32 and -lmsvcrt by default. Make sure CFLAGS is
1390 # included so -mno-cygwin passed the correct libs to the linker.
1391 SHLIB_LD='${CC} -shared ${CFLAGS}'
1392 # Add SHLIB_LD_LIBS to the Make rule, not here.
1393 MAKE_DLL="\${SHLIB_LD} \$(LDFLAGS) -o \$@ ${extra_ldflags} \
1394 -Wl,--out-implib,\$(patsubst %.dll,lib%.a,\$@)"
1396 LIBSUFFIX="\${DBGX}.a"
1397 EXESUFFIX="\${DBGX}.exe"
1398 LIBRARIES="\${SHARED_LIBRARIES}"
1400 # DLLSUFFIX is separate because it is the building block for
1401 # users of tclConfig.sh that may build shared or static.
1402 DLLSUFFIX="\${DBGX}.dll"
1404 EXTRA_CFLAGS="${extra_cflags}"
1408 CFLAGS_WARNING="-Wall -Wconversion"
1412 # Specify the CC output file names based on the target name
1416 # Specify linker flags depending on the type of app being
1417 # built -- Console vs. Window.
1420 # We need to pass -e _WinMain@16 so that ld will use
1421 # WinMain() instead of main() as the entry point. We can't
1422 # use autoconf to check for this case since it would need
1423 # to run an executable and that does not work when
1424 # cross compiling. Remove this -e workaround once we
1425 # require a gcc that does not have this bug.
1427 # MK NOTE: Tk should use a different mechanism. This causes
1428 # interesting problems, such as wish dying at startup.
1429 #LDFLAGS_WINDOW="-mwindows -e _WinMain@16 ${extra_ldflags}"
1430 LDFLAGS_CONSOLE="-mconsole ${extra_ldflags}"
1431 LDFLAGS_WINDOW="-mwindows ${extra_ldflags}"
1433 if test "${SHARED_BUILD}" = "0" ; then
1435 echo "$ac_t""using static flags" 1>&6
1438 LIBSUFFIX="s\${DBGX}.lib"
1439 LIBRARIES="\${STATIC_LIBRARIES}"
1440 EXESUFFIX="s\${DBGX}.exe"
1443 echo "$ac_t""using shared flags" 1>&6
1445 # Add SHLIB_LD_LIBS to the Make rule, not here.
1446 MAKE_DLL="\${SHLIB_LD} \$(LDFLAGS) -out:\$@"
1447 LIBSUFFIX="\${DBGX}.lib"
1448 EXESUFFIX="\${DBGX}.exe"
1449 LIBRARIES="\${SHARED_LIBRARIES}"
1451 # DLLSUFFIX is separate because it is the building block for
1452 # users of tclConfig.sh that may build shared or static.
1453 DLLSUFFIX="\${DBGX}.dll"
1455 # This is a 2-stage check to make sure we have the 64-bit SDK
1456 # We have to know where the SDK is installed.
1457 if test "$do64bit" = "yes" ; then
1458 if test "x${MSSDK}x" = "xx" ; then
1459 MSSDK="C:/Progra~1/Microsoft SDK"
1461 # In order to work in the tortured autoconf environment,
1462 # we need to ensure that this path has no spaces
1463 MSSDK=$(cygpath -w -s "$MSSDK" | sed -e 's!\\!/!g')
1464 if test ! -d "${MSSDK}/bin/win64" ; then
1465 echo "configure: warning: "could not find 64-bit SDK to enable 64bit mode"" 1>&2
1470 if test "$do64bit" = "yes" ; then
1471 # All this magic is necessary for the Win64 SDK RC1 - hobbs
1472 CC="${MSSDK}/Bin/Win64/cl.exe \
1473 -I${MSSDK}/Include/prerelease \
1474 -I${MSSDK}/Include/Win64/crt \
1475 -I${MSSDK}/Include/Win64/crt/sys \
1477 RC="${MSSDK}/bin/rc.exe"
1478 CFLAGS_DEBUG="-nologo -Zi -Od ${runtime}d"
1479 CFLAGS_OPTIMIZE="-nologo -O2 -Gs ${runtime}"
1480 lflags="-MACHINE:IA64 -LIBPATH:${MSSDK}/Lib/IA64 \
1481 -LIBPATH:${MSSDK}/Lib/Prerelease/IA64"
1482 STLIB_LD="${MSSDK}/bin/win64/lib.exe -nologo ${lflags}"
1483 LINKBIN="${MSSDK}/bin/win64/link.exe ${lflags}"
1486 CFLAGS_DEBUG="-nologo -Z7 -Od -WX ${runtime}d"
1487 CFLAGS_OPTIMIZE="-nologo -Oti -Gs -GD ${runtime}"
1488 STLIB_LD="lib -nologo"
1489 LINKBIN="link -link50compat"
1492 SHLIB_LD="${LINKBIN} -dll -nologo -incremental:no"
1493 SHLIB_LD_LIBS="user32.lib advapi32.lib"
1494 LIBS="user32.lib advapi32.lib"
1495 LIBS_GUI="gdi32.lib comdlg32.lib imm32.lib comctl32.lib"
1501 MAKE_LIB="\${STLIB_LD} -out:\$@"
1503 MAKE_EXE="\${CC} -Fe\$@"
1507 CFLAGS_WARNING="-W3"
1508 LDFLAGS_DEBUG="-debug:full -debugtype:both"
1509 LDFLAGS_OPTIMIZE="-release"
1511 # Specify the CC output file names based on the target name
1513 CC_EXENAME="-Fe\"\$(shell \$(CYGPATH) '\$@')\""
1515 # Specify linker flags depending on the type of app being
1516 # built -- Console vs. Window.
1517 LDFLAGS_CONSOLE="-link -subsystem:console ${lflags}"
1518 LDFLAGS_WINDOW="-link -subsystem:windows ${lflags}"
1521 # DL_LIBS is empty, but then we match the Unix version
1528 #--------------------------------------------------------------------
1529 # Set the default compiler switches based on the --enable-symbols
1530 # option. This macro depends on C flags, and should be called
1531 # after SC_CONFIG_CFLAGS macro is called.
1532 #--------------------------------------------------------------------
1535 echo $ac_n "checking for build with symbols""... $ac_c" 1>&6
1536 echo "configure:1537: checking for build with symbols" >&5
1537 # Check whether --enable-symbols or --disable-symbols was given.
1538 if test "${enable_symbols+set}" = set; then
1539 enableval="$enable_symbols"
1545 # FIXME: Currently, LDFLAGS_DEFAULT is not used, it should work like CFLAGS_DEFAULT.
1546 if test "$tcl_ok" = "no"; then
1547 CFLAGS_DEFAULT='$(CFLAGS_OPTIMIZE)'
1548 LDFLAGS_DEFAULT='$(LDFLAGS_OPTIMIZE)'
1550 echo "$ac_t""no" 1>&6
1552 CFLAGS_DEFAULT='$(CFLAGS_DEBUG)'
1553 LDFLAGS_DEFAULT='$(LDFLAGS_DEBUG)'
1555 if test "$tcl_ok" = "yes"; then
1556 echo "$ac_t""yes (standard debugging)" 1>&6
1562 if test "$tcl_ok" = "mem" -o "$tcl_ok" = "all"; then
1563 cat >> confdefs.h <<\EOF
1564 #define TCL_MEM_DEBUG 1
1569 if test "$tcl_ok" = "compile" -o "$tcl_ok" = "all"; then
1570 cat >> confdefs.h <<\EOF
1571 #define TCL_COMPILE_DEBUG 1
1574 cat >> confdefs.h <<\EOF
1575 #define TCL_COMPILE_STATS 1
1580 if test "$tcl_ok" != "yes" -a "$tcl_ok" != "no"; then
1581 if test "$tcl_ok" = "all"; then
1582 echo "$ac_t""enabled symbols mem compile debugging" 1>&6
1584 echo "$ac_t""enabled $tcl_ok debugging" 1>&6
1591 #--------------------------------------------------------------------
1592 # man2tcl needs this so that it can use errno.h
1593 #--------------------------------------------------------------------
1595 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1596 echo "configure:1597: checking how to run the C preprocessor" >&5
1597 # On Suns, sometimes $CPP names a directory.
1598 if test -n "$CPP" && test -d "$CPP"; then
1601 if test -z "$CPP"; then
1602 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1603 echo $ac_n "(cached) $ac_c" 1>&6
1605 # This must be in double quotes, not single quotes, because CPP may get
1606 # substituted into the Makefile and "${CC-cc}" will confuse make.
1608 # On the NeXT, cc -E runs the code through the compiler's parser,
1609 # not just through cpp.
1610 cat > conftest.$ac_ext <<EOF
1611 #line 1612 "configure"
1612 #include "confdefs.h"
1616 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1617 { (eval echo configure:1618: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1618 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1619 if test -z "$ac_err"; then
1623 echo "configure: failed program was:" >&5
1624 cat conftest.$ac_ext >&5
1626 CPP="${CC-cc} -E -traditional-cpp"
1627 cat > conftest.$ac_ext <<EOF
1628 #line 1629 "configure"
1629 #include "confdefs.h"
1633 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1634 { (eval echo configure:1635: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1635 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1636 if test -z "$ac_err"; then
1640 echo "configure: failed program was:" >&5
1641 cat conftest.$ac_ext >&5
1643 CPP="${CC-cc} -nologo -E"
1644 cat > conftest.$ac_ext <<EOF
1645 #line 1646 "configure"
1646 #include "confdefs.h"
1650 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1651 { (eval echo configure:1652: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1652 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1653 if test -z "$ac_err"; then
1657 echo "configure: failed program was:" >&5
1658 cat conftest.$ac_ext >&5
1667 ac_cv_prog_CPP="$CPP"
1669 CPP="$ac_cv_prog_CPP"
1671 ac_cv_prog_CPP="$CPP"
1673 echo "$ac_t""$CPP" 1>&6
1675 ac_safe=`echo "errno.h" | sed 'y%./+-%__p_%'`
1676 echo $ac_n "checking for errno.h""... $ac_c" 1>&6
1677 echo "configure:1678: checking for errno.h" >&5
1678 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1679 echo $ac_n "(cached) $ac_c" 1>&6
1681 cat > conftest.$ac_ext <<EOF
1682 #line 1683 "configure"
1683 #include "confdefs.h"
1686 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1687 { (eval echo configure:1688: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1688 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1689 if test -z "$ac_err"; then
1691 eval "ac_cv_header_$ac_safe=yes"
1694 echo "configure: failed program was:" >&5
1695 cat conftest.$ac_ext >&5
1697 eval "ac_cv_header_$ac_safe=no"
1701 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1702 echo "$ac_t""yes" 1>&6
1705 echo "$ac_t""no" 1>&6
1706 MAN2TCLFLAGS="-DNO_ERRNO_H"
1711 #------------------------------------------------------------------------
1712 # tclConfig.sh refers to this by a different name
1713 #------------------------------------------------------------------------
1715 TCL_SHARED_BUILD=${SHARED_BUILD}
1717 #--------------------------------------------------------------------
1718 # Perform final evaluations of variables with possible substitutions.
1719 #--------------------------------------------------------------------
1721 TCL_SHARED_LIB_SUFFIX="\${NODOT_VERSION}${DLLSUFFIX}"
1722 TCL_UNSHARED_LIB_SUFFIX="\${NODOT_VERSION}${LIBSUFFIX}"
1723 TCL_EXPORT_FILE_SUFFIX="\${NODOT_VERSION}${LIBSUFFIX}"
1725 eval "TCL_SRC_DIR=\"`cd $srcdir/..; pwd`\""
1727 eval "TCL_DLL_FILE=tcl${VER}${DLLSUFFIX}"
1729 eval "TCL_LIB_FILE=${LIBPREFIX}tcl$VER${LIBSUFFIX}"
1730 # FIMXE: These variables decls are missing
1732 TCL_BUILD_LIB_SPEC="-L`pwd` -ltcl${VER}${TCL_DBGX}"
1735 eval "TCL_STUB_LIB_FILE=\"${LIBPREFIX}tclstub${VER}${LIBSUFFIX}\""
1736 eval "TCL_STUB_LIB_FLAG=\"-ltclstub${VER}${TCL_DBGX}\""
1737 eval "TCL_BUILD_STUB_LIB_SPEC=\"-L`pwd` ${TCL_STUB_LIB_FLAG}\""
1738 eval "TCL_STUB_LIB_SPEC=\"-L${libdir} ${TCL_STUB_LIB_FLAG}\""
1739 eval "TCL_BUILD_STUB_LIB_PATH=\"`pwd`/${TCL_STUB_LIB_FILE}\""
1740 eval "TCL_STUB_LIB_PATH=\"${libdir}/${TCL_STUB_LIB_FILE}\""
1742 # Install time header dir can be set via --includedir
1743 eval "TCL_INCLUDE_SPEC=\"-I${includedir}\""
1746 eval "DLLSUFFIX=${DLLSUFFIX}"
1747 eval "LIBPREFIX=${LIBPREFIX}"
1748 eval "LIBSUFFIX=${LIBSUFFIX}"
1749 eval "EXESUFFIX=${EXESUFFIX}"
1751 CFG_TCL_SHARED_LIB_SUFFIX=${TCL_SHARED_LIB_SUFFIX}
1752 CFG_TCL_UNSHARED_LIB_SUFFIX=${TCL_UNSHARED_LIB_SUFFIX}
1753 CFG_TCL_EXPORT_FILE_SUFFIX=${TCL_EXPORT_FILE_SUFFIX}
1755 #--------------------------------------------------------------------
1756 # Adjust the defines for how the resources are built depending
1757 # on symbols and static vs. shared.
1758 #--------------------------------------------------------------------
1760 if test ${SHARED_BUILD} = 0 ; then
1761 if test "${DBGX}" = "d"; then
1762 RC_DEFINES="${RC_DEFINE} STATIC_BUILD ${RC_DEFINE} DEBUG"
1764 RC_DEFINES="${RC_DEFINE} STATIC_BUILD"
1767 if test "${DBGX}" = "d"; then
1768 RC_DEFINES="${RC_DEFINE} DEBUG"
1800 # win/tcl.m4 doesn't set (CFLAGS)
1808 # win/tcl.m4 doesn't set (LDFLAGS)
1836 # empty on win, but needs sub'ing
1866 cat > confcache <<\EOF
1867 # This file is a shell script that caches the results of configure
1868 # tests run on this system so they can be shared between configure
1869 # scripts and configure runs. It is not useful on other systems.
1870 # If it contains results you don't want to keep, you may remove or edit it.
1872 # By default, configure uses ./config.cache as the cache file,
1873 # creating it if it does not exist already. You can give configure
1874 # the --cache-file=FILE option to use a different cache file; that is
1875 # what configure does when it calls configure scripts in
1876 # subdirectories, so they share the cache.
1877 # Giving --cache-file=/dev/null disables caching, for debugging configure.
1878 # config.status only pays attention to the cache file if you give it the
1879 # --recheck option to rerun configure.
1882 # The following way of writing the cache mishandles newlines in values,
1883 # but we know of no workaround that is simple, portable, and efficient.
1884 # So, don't put newlines in cache variables' values.
1885 # Ultrix sh set writes to stderr and can't be redirected directly,
1886 # and sets the high bit in the cache file unless we assign to the vars.
1888 case `(ac_space=' '; set | grep ac_space) 2>&1` in
1890 # `set' does not quote correctly, so add quotes (double-quote substitution
1891 # turns \\\\ into \\, and sed turns \\ into \).
1893 -e "s/'/'\\\\''/g" \
1894 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
1897 # `set' quotes correctly as required by POSIX, so do not add quotes.
1898 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
1901 if cmp -s $cache_file confcache; then
1904 if test -w $cache_file; then
1905 echo "updating cache $cache_file"
1906 cat confcache > $cache_file
1908 echo "not updating unwritable cache $cache_file"
1913 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
1915 test "x$prefix" = xNONE && prefix=$ac_default_prefix
1916 # Let make expand exec_prefix.
1917 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
1919 # Any assignment to VPATH causes Sun make to only execute
1920 # the first set of double-colon rules, so remove it if not needed.
1921 # If there is a colon in the path, we need to keep it.
1922 if test "x$srcdir" = x.; then
1923 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
1926 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
1928 # Transform confdefs.h into DEFS.
1929 # Protect against shell expansion while executing Makefile rules.
1930 # Protect against Makefile macro expansion.
1932 # If the first sed substitution is executed (which looks for macros that
1933 # take arguments), then we branch to the quote section. Otherwise,
1934 # look for a macro that doesn't take arguments.
1935 cat >confdef2opt.sed <<\_ACEOF
1938 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\),-D\1=\2,g
1940 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\),-D\1=\2,g
1944 s,[ `~#$^&*(){}\\|;'"<>?],\\&,g
1950 # We use echo to avoid assuming a particular line-breaking character.
1951 # The extra dot is to prevent the shell from consuming trailing
1952 # line-breaks from the sub-command output. A line-break within
1953 # single-quotes doesn't work because, if this script is created in a
1954 # platform that uses two characters for line-breaks (e.g., DOS), tr
1956 ac_LF_and_DOT=`echo; echo .`
1957 DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
1958 rm -f confdef2opt.sed
1961 # Without the "./", some shells look in PATH for config.status.
1962 : ${CONFIG_STATUS=./config.status}
1964 echo creating $CONFIG_STATUS
1965 rm -f $CONFIG_STATUS
1966 cat > $CONFIG_STATUS <<EOF
1968 # Generated automatically by configure.
1969 # Run this file to recreate the current configuration.
1970 # This directory was configured as follows,
1971 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
1973 # $0 $ac_configure_args
1975 # Compiler output produced by configure, useful for debugging
1976 # configure, is in ./config.log if it exists.
1978 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
1981 case "\$ac_option" in
1982 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
1983 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
1984 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
1985 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
1986 echo "$CONFIG_STATUS generated by autoconf version 2.13"
1988 -help | --help | --hel | --he | --h)
1989 echo "\$ac_cs_usage"; exit 0 ;;
1990 *) echo "\$ac_cs_usage"; exit 1 ;;
1994 ac_given_srcdir=$srcdir
1996 trap 'rm -fr `echo "Makefile tclConfig.sh tcl.hpj" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
1998 cat >> $CONFIG_STATUS <<EOF
2000 # Protect against being on the right side of a sed subst in config.status.
2001 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
2002 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
2006 s%@CFLAGS@%$CFLAGS%g
2007 s%@CPPFLAGS@%$CPPFLAGS%g
2008 s%@CXXFLAGS@%$CXXFLAGS%g
2009 s%@FFLAGS@%$FFLAGS%g
2011 s%@LDFLAGS@%$LDFLAGS%g
2013 s%@exec_prefix@%$exec_prefix%g
2014 s%@prefix@%$prefix%g
2015 s%@program_transform_name@%$program_transform_name%g
2016 s%@bindir@%$bindir%g
2017 s%@sbindir@%$sbindir%g
2018 s%@libexecdir@%$libexecdir%g
2019 s%@datadir@%$datadir%g
2020 s%@sysconfdir@%$sysconfdir%g
2021 s%@sharedstatedir@%$sharedstatedir%g
2022 s%@localstatedir@%$localstatedir%g
2023 s%@libdir@%$libdir%g
2024 s%@includedir@%$includedir%g
2025 s%@oldincludedir@%$oldincludedir%g
2026 s%@infodir@%$infodir%g
2027 s%@mandir@%$mandir%g
2030 s%@RANLIB@%$RANLIB%g
2032 s%@SET_MAKE@%$SET_MAKE%g
2033 s%@OBJEXT@%$OBJEXT%g
2034 s%@EXEEXT@%$EXEEXT%g
2035 s%@TCL_THREADS@%$TCL_THREADS%g
2036 s%@CYGPATH@%$CYGPATH%g
2037 s%@DL_LIBS@%$DL_LIBS%g
2038 s%@CFLAGS_DEBUG@%$CFLAGS_DEBUG%g
2039 s%@CFLAGS_OPTIMIZE@%$CFLAGS_OPTIMIZE%g
2040 s%@CFLAGS_WARNING@%$CFLAGS_WARNING%g
2041 s%@CFLAGS_DEFAULT@%$CFLAGS_DEFAULT%g
2042 s%@LDFLAGS_DEFAULT@%$LDFLAGS_DEFAULT%g
2044 s%@MAN2TCLFLAGS@%$MAN2TCLFLAGS%g
2045 s%@TCL_VERSION@%$TCL_VERSION%g
2046 s%@TCL_MAJOR_VERSION@%$TCL_MAJOR_VERSION%g
2047 s%@TCL_MINOR_VERSION@%$TCL_MINOR_VERSION%g
2048 s%@TCL_PATCH_LEVEL@%$TCL_PATCH_LEVEL%g
2049 s%@TCL_LIB_FILE@%$TCL_LIB_FILE%g
2050 s%@TCL_LIB_FLAG@%$TCL_LIB_FLAG%g
2051 s%@TCL_LIB_SPEC@%$TCL_LIB_SPEC%g
2052 s%@TCL_STUB_LIB_FILE@%$TCL_STUB_LIB_FILE%g
2053 s%@TCL_STUB_LIB_FLAG@%$TCL_STUB_LIB_FLAG%g
2054 s%@TCL_STUB_LIB_SPEC@%$TCL_STUB_LIB_SPEC%g
2055 s%@TCL_STUB_LIB_PATH@%$TCL_STUB_LIB_PATH%g
2056 s%@TCL_INCLUDE_SPEC@%$TCL_INCLUDE_SPEC%g
2057 s%@TCL_BUILD_STUB_LIB_SPEC@%$TCL_BUILD_STUB_LIB_SPEC%g
2058 s%@TCL_BUILD_STUB_LIB_PATH@%$TCL_BUILD_STUB_LIB_PATH%g
2059 s%@TCL_DLL_FILE@%$TCL_DLL_FILE%g
2060 s%@TCL_SRC_DIR@%$TCL_SRC_DIR%g
2061 s%@TCL_BIN_DIR@%$TCL_BIN_DIR%g
2062 s%@TCL_DBGX@%$TCL_DBGX%g
2063 s%@CFG_TCL_SHARED_LIB_SUFFIX@%$CFG_TCL_SHARED_LIB_SUFFIX%g
2064 s%@CFG_TCL_UNSHARED_LIB_SUFFIX@%$CFG_TCL_UNSHARED_LIB_SUFFIX%g
2065 s%@CFG_TCL_EXPORT_FILE_SUFFIX@%$CFG_TCL_EXPORT_FILE_SUFFIX%g
2066 s%@EXTRA_CFLAGS@%$EXTRA_CFLAGS%g
2067 s%@DEPARG@%$DEPARG%g
2068 s%@CC_OBJNAME@%$CC_OBJNAME%g
2069 s%@CC_EXENAME@%$CC_EXENAME%g
2070 s%@LDFLAGS_DEBUG@%$LDFLAGS_DEBUG%g
2071 s%@LDFLAGS_OPTIMIZE@%$LDFLAGS_OPTIMIZE%g
2072 s%@LDFLAGS_CONSOLE@%$LDFLAGS_CONSOLE%g
2073 s%@LDFLAGS_WINDOW@%$LDFLAGS_WINDOW%g
2074 s%@STLIB_LD@%$STLIB_LD%g
2075 s%@SHLIB_LD@%$SHLIB_LD%g
2076 s%@SHLIB_LD_LIBS@%$SHLIB_LD_LIBS%g
2077 s%@SHLIB_CFLAGS@%$SHLIB_CFLAGS%g
2078 s%@SHLIB_SUFFIX@%$SHLIB_SUFFIX%g
2079 s%@TCL_SHARED_BUILD@%$TCL_SHARED_BUILD%g
2080 s%@LIBS_GUI@%$LIBS_GUI%g
2081 s%@DLLSUFFIX@%$DLLSUFFIX%g
2082 s%@LIBPREFIX@%$LIBPREFIX%g
2083 s%@LIBSUFFIX@%$LIBSUFFIX%g
2084 s%@EXESUFFIX@%$EXESUFFIX%g
2085 s%@LIBRARIES@%$LIBRARIES%g
2086 s%@MAKE_LIB@%$MAKE_LIB%g
2087 s%@POST_MAKE_LIB@%$POST_MAKE_LIB%g
2088 s%@MAKE_DLL@%$MAKE_DLL%g
2089 s%@MAKE_EXE@%$MAKE_EXE%g
2090 s%@TCL_BUILD_LIB_SPEC@%$TCL_BUILD_LIB_SPEC%g
2091 s%@TCL_LD_SEARCH_FLAGS@%$TCL_LD_SEARCH_FLAGS%g
2092 s%@TCL_NEEDS_EXP_FILE@%$TCL_NEEDS_EXP_FILE%g
2093 s%@TCL_BUILD_EXP_FILE@%$TCL_BUILD_EXP_FILE%g
2094 s%@TCL_EXP_FILE@%$TCL_EXP_FILE%g
2095 s%@LIBOBJS@%$LIBOBJS%g
2096 s%@TCL_LIB_VERSIONS_OK@%$TCL_LIB_VERSIONS_OK%g
2097 s%@TCL_PACKAGE_PATH@%$TCL_PACKAGE_PATH%g
2098 s%@TCL_DDE_VERSION@%$TCL_DDE_VERSION%g
2099 s%@TCL_DDE_MAJOR_VERSION@%$TCL_DDE_MAJOR_VERSION%g
2100 s%@TCL_DDE_MINOR_VERSION@%$TCL_DDE_MINOR_VERSION%g
2101 s%@TCL_DDE_PATCH_LEVEL@%$TCL_DDE_PATCH_LEVEL%g
2102 s%@TCL_REG_VERSION@%$TCL_REG_VERSION%g
2103 s%@TCL_REG_MAJOR_VERSION@%$TCL_REG_MAJOR_VERSION%g
2104 s%@TCL_REG_MINOR_VERSION@%$TCL_REG_MINOR_VERSION%g
2105 s%@TCL_REG_PATCH_LEVEL@%$TCL_REG_PATCH_LEVEL%g
2106 s%@RC_OUT@%$RC_OUT%g
2107 s%@RC_TYPE@%$RC_TYPE%g
2108 s%@RC_INCLUDE@%$RC_INCLUDE%g
2109 s%@RC_DEFINE@%$RC_DEFINE%g
2110 s%@RC_DEFINES@%$RC_DEFINES%g
2116 cat >> $CONFIG_STATUS <<\EOF
2118 # Split the substitutions into bite-sized pieces for seds with
2119 # small command number limits, like on Digital OSF/1 and HP-UX.
2120 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
2121 ac_file=1 # Number of current file.
2122 ac_beg=1 # First line for current file.
2123 ac_end=$ac_max_sed_cmds # Line after last line for current file.
2126 while $ac_more_lines; do
2127 if test $ac_beg -gt 1; then
2128 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
2130 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
2132 if test ! -s conftest.s$ac_file; then
2134 rm -f conftest.s$ac_file
2136 if test -z "$ac_sed_cmds"; then
2137 ac_sed_cmds="sed -f conftest.s$ac_file"
2139 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
2141 ac_file=`expr $ac_file + 1`
2143 ac_end=`expr $ac_end + $ac_max_sed_cmds`
2146 if test -z "$ac_sed_cmds"; then
2151 cat >> $CONFIG_STATUS <<EOF
2153 CONFIG_FILES=\${CONFIG_FILES-"Makefile tclConfig.sh tcl.hpj"}
2155 cat >> $CONFIG_STATUS <<\EOF
2156 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
2157 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
2159 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
2160 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
2161 *) ac_file_in="${ac_file}.in" ;;
2164 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
2166 # Remove last slash and all that follows it. Not all systems have dirname.
2167 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
2168 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
2169 # The file is in a subdirectory.
2170 test ! -d "$ac_dir" && mkdir "$ac_dir"
2171 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
2172 # A "../" for each directory in $ac_dir_suffix.
2173 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
2175 ac_dir_suffix= ac_dots=
2178 case "$ac_given_srcdir" in
2180 if test -z "$ac_dots"; then top_srcdir=.
2181 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
2182 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
2184 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
2185 top_srcdir="$ac_dots$ac_given_srcdir" ;;
2189 echo creating "$ac_file"
2191 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
2193 *Makefile*) ac_comsub="1i\\
2194 # $configure_input" ;;
2198 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
2200 s%@configure_input@%$configure_input%g
2201 s%@srcdir@%$srcdir%g
2202 s%@top_srcdir@%$top_srcdir%g
2203 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
2208 cat >> $CONFIG_STATUS <<EOF
2211 cat >> $CONFIG_STATUS <<\EOF
2215 chmod +x $CONFIG_STATUS
2216 rm -fr confdefs* $ac_clean_files
2217 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1