diff options
Diffstat (limited to 'win')
-rw-r--r-- | win/README | 11 | ||||
-rw-r--r-- | win/configure.in | 30 | ||||
-rw-r--r-- | win/tcl.m4 | 54 |
3 files changed, 32 insertions, 63 deletions
@@ -4,7 +4,7 @@ by Scott Stanton Scriptics Corporation scott.stanton@scriptics.com -RCS: @(#) $Id: README,v 1.17 2000/05/03 00:15:10 hobbs Exp $ +RCS: @(#) $Id: README,v 1.18 2000/08/25 05:45:08 mo Exp $ 1. Introduction --------------- @@ -25,6 +25,10 @@ In order to compile Tcl for Windows, you need the following items: Visual C++ 2.x/4.x/5.x + or + + Cygwin 1.1 (See http://sources.redhat.com/cygwin) + In practice, this release is built with Visual C++ 5.0 In the "win" subdirectory of the source release, you will find @@ -33,6 +37,11 @@ update the paths at the top of the file to reflect your system configuration. Now you can use "make" (or "nmake" for VC++) to build the tcl libraries and the tclsh executable. +If you are building with Cygwin, you can use the configure script +that lives in the win subdirectory. The Cygwin based configure/build +process works just like the UNIX one, so you will want to refer to +../unix/README for available configure options. + In order to use the binaries generated by these makefiles, you will need to place the Tcl script library files someplace where Tcl can find them. Tcl looks in one of following places for the library files: diff --git a/win/configure.in b/win/configure.in index ec2725f..908163e 100644 --- a/win/configure.in +++ b/win/configure.in @@ -2,7 +2,7 @@ # generate the file "configure", which is run during Tcl installation # to configure the system for the local environment. # -# RCS: @(#) $Id: configure.in,v 1.26 2000/07/27 22:47:37 mo Exp $ +# RCS: @(#) $Id: configure.in,v 1.27 2000/08/25 05:45:09 mo Exp $ AC_INIT(../generic/tcl.h) @@ -19,13 +19,27 @@ if test "${exec_prefix}" = "NONE"; then exec_prefix=$prefix fi -#-------------------------------------------------------------------- -# Check whether --enable-gcc or --disable-gcc was given. Do this -# before AC_PROG_CC and AC_CYGWIN are called so the compiler can -# be fully tested by built-in autoconf tools. -#-------------------------------------------------------------------- - -SC_ENABLE_GCC +#------------------------------------------------------------------------ +# Standard compiler checks +#------------------------------------------------------------------------ + +AC_PROG_CC + +# To properly support cross-compilation, one would +# need to use these tool checks instead of +# the ones below and reconfigure with +# autoconf 2.50. You can also just set +# the CC, AR, RANLIB, and RC environment +# variables if you want to cross compile. +#AC_CHECK_TOOL(AR, ar, :) +#AC_CHECK_TOOL(RANLIB, ranlib, :) +#AC_CHECK_TOOL(RC, windres, :) + +if test "${GCC}" = "yes" ; then + AC_CHECK_PROG(AR, ar, ar) + AC_CHECK_PROG(RANLIB, ranlib, ranlib) + AC_CHECK_PROG(RC, windres, windres) +fi #-------------------------------------------------------------------- # Checks to see if the make progeam sets the $MAKE variable. @@ -151,60 +151,6 @@ AC_DEFUN(SC_LOAD_TKCONFIG, [ ]) #------------------------------------------------------------------------ -# SC_ENABLE_GCC -- -# -# Allows the use of GCC if available -# -# Arguments: -# none -# -# Results: -# -# Adds the following arguments to configure: -# --enable-gcc -# -# Sets the following vars: -# CC Command to use for the compiler -# AR Comman for the archive tool -# RANLIB Command for the archive indexing tool -# RC Command for the resource compiler -# -#------------------------------------------------------------------------ - -AC_DEFUN(SC_ENABLE_GCC, [ - AC_ARG_ENABLE(gcc, [ --enable-gcc allow use of gcc if available [--disable-gcc]], - [ok=$enableval], [ok=no]) - if test "$ok" = "yes"; then - # Quick hack to simulate a real cross check - # The right way to do this is to use AC_CHECK_TOOL - # correctly, but this is the minimal change - # we need until the real fix is ready. - if test "$host" != "$build" ; then - if test -z "$CC"; then - CC=${host}-gcc - fi - AC_PROG_CC - AC_CHECK_PROG(AR, ${host}-ar, ${host}-ar) - AC_CHECK_PROG(RANLIB, ${host}-ranlib, ${host}-ranlib) - AC_CHECK_PROG(RC, ${host}-windres, ${host}-windres) - else - if test -z "$CC"; then - CC=gcc - fi - AC_PROG_CC - AC_CHECK_PROG(AR, ar, ar) - AC_CHECK_PROG(RANLIB, ranlib, ranlib) - AC_CHECK_PROG(RC, windres, windres) - fi - else - # Allow user to override - if test -z "$CC"; then - CC=cl - fi - fi -]) - -#------------------------------------------------------------------------ # SC_ENABLE_SHARED -- # # Allows the building of shared libraries |