From David Ponce <dponce@voila.fr>.
+2001-03-05 Eli Zaretskii <eliz@is.elta.co.il>\r
+\r
+ * configure.bat: Use correct options when compiling a test program\r
+ with Cygwin. From David Ponce <dponce@voila.fr>.\r
+\r
2001-02-24 Andrew Innes <andrewi@gnu.org>\r
\r
* _emacs: Remove obsolete file.\r
echo #include "windows.h" >junk.c\r
echo test(PIMAGE_NT_HEADERS pHeader) >>junk.c\r
echo {PIMAGE_SECTION_HEADER pSection = IMAGE_FIRST_SECTION(pHeader);} >>junk.c\r
-gcc -c junk.c\r
+if (%nocygwin%) == (Y) goto checkw32api1\r
+set cf=%usercflags%\r
+goto checkw32api2\r
+:checkw32api1\r
+set cf=%usercflags% -mno-cygwin\r
+:checkw32api2\r
+echo on\r
+gcc %cf% -c junk.c\r
+echo off\r
+set cf=\r
if exist junk.o goto gccOk\r
\r
:nocompiler\r