summaryrefslogtreecommitdiffstats
path: root/unix/configure
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2013-11-18 15:37:44 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2013-11-18 15:37:44 (GMT)
commit48494f66c267f103ed95d01c2b56fc4f140d9913 (patch)
tree70064bf1cfdd18f31955dae35ec3204b6d640c71 /unix/configure
parentff32dfae22846c7a5e3e85b77309a9c186a3b56f (diff)
parent0af1f3e468baaf1b8cf6bc13452d1fc8f0a265f5 (diff)
downloadtk-48494f66c267f103ed95d01c2b56fc4f140d9913.zip
tk-48494f66c267f103ed95d01c2b56fc4f140d9913.tar.gz
tk-48494f66c267f103ed95d01c2b56fc4f140d9913.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)
Diffstat (limited to 'unix/configure')
-rwxr-xr-xunix/configure13
1 files changed, 9 insertions, 4 deletions
diff --git a/unix/configure b/unix/configure
index 485b70a..a3888e3 100755
--- a/unix/configure
+++ b/unix/configure
@@ -4995,10 +4995,15 @@ echo "$as_me: error: ${CC} is not a cygwin compiler." >&2;}
echo "$as_me: error: CYGWIN compile is only supported with --enable-threads" >&2;}
{ (exit 1); exit 1; }; }
fi
- if test "x${SHARED_BUILD}" = "x1" -a ! -f "../win/tcldde14.dll" -a ! -f "../win/tk86.dll"; then
- { { echo "$as_me:$LINENO: error: Please configure and make the ../win directory first." >&5
-echo "$as_me: error: Please configure and make the ../win directory first." >&2;}
- { (exit 1); exit 1; }; }
+ 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*)