configure.in
changeset 310 f8bca4a93fd5
parent 307 babb5487b60a
child 323 6da51f38cfd8
--- a/configure.in	Sat Jun 29 04:10:11 2002 +0000
+++ b/configure.in	Sat Jun 29 10:23:17 2002 +0000
@@ -205,6 +205,16 @@
 
 AC_MSG_RESULT([$this_is_beos])
 
+AC_MSG_CHECKING([if this is Cygwin])
+if test x$build_os = xcygwin; then
+  this_is_cygwin=yes
+  CFLAGS="$CFLAGS -DWIN32"
+else
+  this_is_cygwin=no
+fi
+
+AC_MSG_RESULT([$this_is_cygwin])
+
 this_is_macosx=no
 if test x$we_have_sed = xyes; then
   AC_MSG_CHECKING([if this is MacOS X])
@@ -237,6 +247,7 @@
 AM_CONDITIONAL(BUILD_TEST_PHYSFS, test x$enable_testprog = xyes)
 AM_CONDITIONAL(BUILD_MACOSX, test x$this_is_macosx = xyes)
 AM_CONDITIONAL(BUILD_BEOS, test x$this_is_beos = xyes)
+AM_CONDITIONAL(BUILD_CYGWIN, test x$this_is_cygwin = xyes)
 
 LDFLAGS="$LDFLAGS -no-undefined"