summaryrefslogtreecommitdiffstats
path: root/win/tcl.m4
diff options
context:
space:
mode:
authorhobbs <hobbs>2002-10-17 05:51:53 (GMT)
committerhobbs <hobbs>2002-10-17 05:51:53 (GMT)
commitabe51934a84fa2eacec1b4f7707a407d91fbefa0 (patch)
treec5a2ef1de3c47c87abdf3a50a0fb3396363be9b2 /win/tcl.m4
parent7713c04b49bbd05ddf3638fcc0dcb5d43631f252 (diff)
downloadtcl-abe51934a84fa2eacec1b4f7707a407d91fbefa0.zip
tcl-abe51934a84fa2eacec1b4f7707a407d91fbefa0.tar.gz
tcl-abe51934a84fa2eacec1b4f7707a407d91fbefa0.tar.bz2
* win/configure: add workaround for cygwin windres
* win/tcl.m4 (SC_CONFIG_CFLAGS): problem. [Patch #624010] (howell)
Diffstat (limited to 'win/tcl.m4')
-rw-r--r--win/tcl.m425
1 files changed, 25 insertions, 0 deletions
diff --git a/win/tcl.m4 b/win/tcl.m4
index ae909bb..50cb459 100644
--- a/win/tcl.m4
+++ b/win/tcl.m4
@@ -403,6 +403,31 @@ AC_DEFUN(SC_CONFIG_CFLAGS, [
AC_CHECK_PROG(CYGPATH, cygpath, cygpath -w, echo)
+ # Check for a bug in gcc's windres that causes the
+ # compile to fail when a Windows native path is
+ # passed into windres. The mingw toolchain requires
+ # Windows native paths while Cygwin should work
+ # with both. Avoid the bug by passing a POSIX
+ # path when using the Cygwin toolchain.
+
+ if test "$GCC" = "yes" && test "$CYGPATH" != "echo" ; then
+ conftest=/tmp/conftest.rc
+ echo "STRINGTABLE BEGIN" > $conftest
+ echo "101 \"name\"" >> $conftest
+ echo "END" >> $conftest
+
+ AC_MSG_CHECKING([for Windows native path bug in windres])
+ cyg_conftest=`$CYGPATH $conftest`
+ if AC_TRY_COMMAND($RC -o conftest.res.o $cyg_conftest) ; then
+ AC_MSG_RESULT([no])
+ else
+ AC_MSG_RESULT([yes])
+ CYGPATH=echo
+ fi
+ conftest=
+ cyg_conftest=
+ fi
+
if test "$CYGPATH" = "echo" || test "$ac_cv_cygwin" = "yes"; then
DEPARG='"$<"'
else