diff options
author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2012-03-28 12:01:37 (GMT) |
---|---|---|
committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2012-03-28 12:01:37 (GMT) |
commit | 5e6a22713afacc4d0c67e3530137d9be104fd12d (patch) | |
tree | 06a5dc9220c3320b89616c738c4cb6efb4616520 /unix/tcl.m4 | |
parent | f44caa9971f1cb7930e73e6710d87dfd3559e5cd (diff) | |
download | tcl-5e6a22713afacc4d0c67e3530137d9be104fd12d.zip tcl-5e6a22713afacc4d0c67e3530137d9be104fd12d.tar.gz tcl-5e6a22713afacc4d0c67e3530137d9be104fd12d.tar.bz2 |
extra checks whether we are really dealing with cygwin or not
Diffstat (limited to 'unix/tcl.m4')
-rw-r--r-- | unix/tcl.m4 | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/unix/tcl.m4 b/unix/tcl.m4 index c248686..1ce375a 100644 --- a/unix/tcl.m4 +++ b/unix/tcl.m4 @@ -1212,6 +1212,19 @@ dnl AC_CHECK_TOOL(AR, ar) CC_SEARCH_FLAGS="" LD_SEARCH_FLAGS="" TCL_SHLIB_LD_EXTRAS='-Wl,--out-implib,$[@].a' + AC_CACHE_CHECK(for Cygwin version of gcc, + ac_cv_cygwin, + AC_TRY_COMPILE([ +# ifdef __CYGWIN__ +# error cygwin +# endif + ], [], + ac_cv_cygwin=no, + ac_cv_cygwin=yes) + ) + if test "$ac_cv_cygwin" = "no"; then + AC_MSG_ERROR([${CC} is not a cygwin compiler.]) + fi ;; dgux*) SHLIB_CFLAGS="-K PIC" |