diff options
author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2012-03-29 22:36:05 (GMT) |
---|---|---|
committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2012-03-29 22:36:05 (GMT) |
commit | 3a73c145323d7a85af7f9e5ad7de9e601cbaf903 (patch) | |
tree | e86adef3ea9e52cf5cecab46798beee9a0953550 /win/tcl.m4 | |
parent | e0f3b878c35e6c821617502e8b17057d2193bf4f (diff) | |
download | tcl-3a73c145323d7a85af7f9e5ad7de9e601cbaf903.zip tcl-3a73c145323d7a85af7f9e5ad7de9e601cbaf903.tar.gz tcl-3a73c145323d7a85af7f9e5ad7de9e601cbaf903.tar.bz2 |
Only check for cygwin with $GCC
Diffstat (limited to 'win/tcl.m4')
-rw-r--r-- | win/tcl.m4 | 9 |
1 files changed, 6 insertions, 3 deletions
@@ -408,7 +408,9 @@ AC_DEFUN([SC_CONFIG_CFLAGS], [ # which requires x86|amd64|ia64. MACHINE="X86" - AC_CACHE_CHECK(for cross-compile version of gcc, + if test "$GCC" = "yes"; then + + AC_CACHE_CHECK(for cross-compile version of gcc, ac_cv_cross, AC_TRY_COMPILE([ #ifdef __WIN32__ @@ -417,9 +419,9 @@ AC_DEFUN([SC_CONFIG_CFLAGS], [ ], [], ac_cv_cross=yes, ac_cv_cross=no) - ) + ) - if test "$ac_cv_cross" = "yes"; then + if test "$ac_cv_cross" = "yes"; then case "$do64bit" in amd64|x64|yes) CC="x86_64-w64-mingw32-gcc" @@ -436,6 +438,7 @@ AC_DEFUN([SC_CONFIG_CFLAGS], [ RC="i686-w64-mingw32-windres" ;; esac + fi fi # Check for a bug in gcc's windres that causes the |