summaryrefslogtreecommitdiffstats
path: root/win/configure
diff options
context:
space:
mode:
authormdejong <mdejong>2004-03-05 21:27:45 (GMT)
committermdejong <mdejong>2004-03-05 21:27:45 (GMT)
commitc64a37e036445bb15f91d7b7a22b1269417e4c3d (patch)
treee0a3aca20ec80a771ea4b05bbc37eab810a95dea /win/configure
parentfcfbbfde29f5232f5f08035190b90c94a8c2a89a (diff)
downloadtcl-c64a37e036445bb15f91d7b7a22b1269417e4c3d.zip
tcl-c64a37e036445bb15f91d7b7a22b1269417e4c3d.tar.gz
tcl-c64a37e036445bb15f91d7b7a22b1269417e4c3d.tar.bz2
* win/configure: Regen.
* win/configure.in: Check for define of MWMO_ALERTABLE in winuser.h. * win/tclWinPort.h: If MWMO_ALERTABLE is not defined in winuser.h then define it. This is needed for Mingw.
Diffstat (limited to 'win/configure')
-rwxr-xr-xwin/configure62
1 files changed, 62 insertions, 0 deletions
diff --git a/win/configure b/win/configure
index b8f441a..80fb8e6 100755
--- a/win/configure
+++ b/win/configure
@@ -2869,6 +2869,68 @@ _ACEOF
fi
+# See if MWMO_ALERTABLE is missing from winuser.h
+# This is known to be a problem with Mingw.
+
+echo "$as_me:$LINENO: checking for MWMO_ALERTABLE in winuser.h" >&5
+echo $ECHO_N "checking for MWMO_ALERTABLE in winuser.h... $ECHO_C" >&6
+if test "${tcl_cv_mwmo_alertable+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+ cat >conftest.$ac_ext <<_ACEOF
+#line $LINENO "configure"
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+
+#define WIN32_LEAN_AND_MEAN
+#include <windows.h>
+#undef WIN32_LEAN_AND_MEAN
+
+int
+main ()
+{
+
+ int i = MWMO_ALERTABLE;
+
+ ;
+ return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext
+if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
+ (eval $ac_compile) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } &&
+ { ac_try='test -s conftest.$ac_objext'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; }; then
+ tcl_cv_mwmo_alertable=yes
+else
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+tcl_cv_mwmo_alertable=no
+fi
+rm -f conftest.$ac_objext conftest.$ac_ext
+
+fi
+echo "$as_me:$LINENO: result: $tcl_cv_mwmo_alertable" >&5
+echo "${ECHO_T}$tcl_cv_mwmo_alertable" >&6
+if test "$tcl_cv_mwmo_alertable" = "no"; then
+
+cat >>confdefs.h <<\_ACEOF
+#define HAVE_NO_MWMO_ALERTABLE 1
+_ACEOF
+
+fi
+
#--------------------------------------------------------------------
# Determines the correct binary file extension (.o, .obj, .exe etc.)
#--------------------------------------------------------------------