diff options
author | jan.nijtmans <jan.nijtmans@noemail.net> | 2013-11-18 15:37:44 (GMT) |
---|---|---|
committer | jan.nijtmans <jan.nijtmans@noemail.net> | 2013-11-18 15:37:44 (GMT) |
commit | cf9d54fd7617e8c4816bdfafe8828c938a8180d1 (patch) | |
tree | 70064bf1cfdd18f31955dae35ec3204b6d640c71 /unix/tcl.m4 | |
parent | c9e6e99ae0bbcb42f34e1e7ab0f3c3a63b606c45 (diff) | |
parent | 9d0280aed3f131f9e63c8d87496177f8d56bb0ef (diff) | |
download | tk-cf9d54fd7617e8c4816bdfafe8828c938a8180d1.zip tk-cf9d54fd7617e8c4816bdfafe8828c938a8180d1.tar.gz tk-cf9d54fd7617e8c4816bdfafe8828c938a8180d1.tar.bz2 |
Cygwin: In stead of checking whether the win32 part is configured properly, just configure it when needed.
Always build the stub library first (and - on Cygwin - configure win32 properly just before building the stub library)
FossilOrigin-Name: 3a0f36ea8a9224bb15e2b290a4e9355fb18e32ef
Diffstat (limited to 'unix/tcl.m4')
-rw-r--r-- | unix/tcl.m4 | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/unix/tcl.m4 b/unix/tcl.m4 index 194cf90..070946a 100644 --- a/unix/tcl.m4 +++ b/unix/tcl.m4 @@ -1253,8 +1253,15 @@ AC_DEFUN([SC_CONFIG_CFLAGS], [ if test "x${TCL_THREADS}" = "x0"; then AC_MSG_ERROR([CYGWIN compile is only supported with --enable-threads]) fi - if test "x${SHARED_BUILD}" = "x1" -a ! -f "../win/tcldde14.dll" -a ! -f "../win/tk86.dll"; then - AC_MSG_ERROR([Please configure and make the ../win directory first.]) + do64bit_ok=yes + if test "x${SHARED_BUILD}" = "x1"; then + echo "running cd ../win; ${CONFIG_SHELL-/bin/sh} ./configure $ac_configure_args" + # The eval makes quoting arguments work. + if cd ../win; eval ${CONFIG_SHELL-/bin/sh} ./configure $ac_configure_args; cd ../unix + then : + else + { echo "configure: error: configure failed for ../win" 1>&2; exit 1; } + fi fi ;; dgux*) |