diff options
Diffstat (limited to 'win/configure.in')
-rw-r--r-- | win/configure.in | 36 |
1 files changed, 30 insertions, 6 deletions
diff --git a/win/configure.in b/win/configure.in index 0d6afab..a3becef 100644 --- a/win/configure.in +++ b/win/configure.in @@ -3,7 +3,7 @@ # generate the file "configure", which is run during Tcl installation # to configure the system for the local environment. # -# RCS: @(#) $Id: configure.in,v 1.54 2002/09/02 20:11:06 hobbs Exp $ +# RCS: @(#) $Id: configure.in,v 1.55 2002/09/27 00:50:10 hobbs Exp $ AC_INIT(../generic/tcl.h) AC_PREREQ(2.13) @@ -79,10 +79,10 @@ AC_PROG_MAKE_SET AC_CYGWIN -if test "$ac_cv_cygwin" = "yes" ; then - AC_MSG_ERROR([Compiling with the Cygwin version of gcc is not supported. - Use the Mingw version of gcc from www.mingw.org instead.]) -fi +#if test "$ac_cv_cygwin" = "yes" ; then +# AC_MSG_ERROR([Compiling with the Cygwin version of gcc is not supported. +# Use the Mingw version of gcc from www.mingw.org instead.]) +#fi AC_CACHE_CHECK(for SEH support in compiler, @@ -108,10 +108,34 @@ int main(int argc, char** argv) { tcl_cv_seh=no) ) if test "$tcl_cv_seh" = "no" ; then - AC_DEFINE(HAVE_NO_SEH,, + AC_DEFINE(HAVE_NO_SEH, 1, [Defined when mingw does not support SEH]) fi +# +# Check to see if the excpt.h include file provided contains the +# definition for EXCEPTION_DISPOSITION; if not, which is the case +# with Cygwin's version as of 2002-04-10, define it to be int, +# sufficient for getting the current code to work. +# +AC_CACHE_CHECK(for EXCEPTION_DISPOSITION support in include files, + tcl_cv_eh_disposition, +AC_TRY_COMPILE([ +#define WIN32_LEAN_AND_MEAN +#include <windows.h> +#undef WIN32_LEAN_AND_MEAN +], +[ + EXCEPTION_DISPOSITION x; +], + tcl_cv_eh_disposition=yes, + tcl_cv_eh_disposition=no) +) +if test "$tcl_cv_eh_disposition" = "no" ; then + AC_DEFINE(EXCEPTION_DISPOSITION, int, + [Defined when cygwin/mingw does not support EXCEPTION DISPOSITION]) +fi + #-------------------------------------------------------------------- # Determines the correct binary file extension (.o, .obj, .exe etc.) #-------------------------------------------------------------------- |