From a2193226b26851e45a863f2f2a749d291dd4c478 Mon Sep 17 00:00:00 2001
From: Jannick <thirdedition@gmx.net>
Date: Sat, 8 Aug 2020 14:03:25 +0200
Subject: [PATCH 1/3] configure.ac: fix OS recognition on MSYS2

---
 configure.ac | 44 ++++++++++++++++++++++----------------------
 1 file changed, 22 insertions(+), 22 deletions(-)

diff --git a/configure.ac b/configure.ac
index ef70a4f..f293c8a 100644
--- a/configure.ac
+++ b/configure.ac
@@ -269,7 +269,7 @@ if test x"$cross_compiling" = xno; then
 else
   TARGET_EXEEXT=$config_TARGET_EXEEXT
 fi
-if test "$TARGET_EXEEXT" = ".exe"; then
+if test "$TARGET_EXEEXT" = ".exe" && test x$CYGWIN != xyes; then
   SQLITE_OS_UNIX=0
   SQLITE_OS_WIN=1
   CFLAGS="$CFLAGS -DSQLITE_OS_WIN=1"
--
2.28.0.windows.1

