aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEli Zaretskii2001-03-26 13:35:21 +0000
committerEli Zaretskii2001-03-26 13:35:21 +0000
commit4f22d5894b67a79efc5a64f943a049362c238ef0 (patch)
tree18d1c2ca93fe332101ac46840fb4017cebcbc5c7
parent9d198e538573b5101f6d90924664a79f9864ac93 (diff)
downloademacs-4f22d5894b67a79efc5a64f943a049362c238ef0.tar.gz
emacs-4f22d5894b67a79efc5a64f943a049362c238ef0.zip
Make the checkw32api* labels be distinct in the first 8 characters.
-rwxr-xr-xnt/configure.bat18
1 files changed, 11 insertions, 7 deletions
diff --git a/nt/configure.bat b/nt/configure.bat
index 5ef56136469..7bc2f16016b 100755
--- a/nt/configure.bat
+++ b/nt/configure.bat
@@ -179,17 +179,21 @@ if not exist junk.o goto nocompiler
179del junk.o 179del junk.o
180 180
181:checkgcc 181:checkgcc
182if (%nocygwin%) == (Y) goto checkw32api 182Rem WARNING -- COMMAND.COM on some systems only looks at the first
183Rem 8 characters of a lable. So do NOT be tempted to change
184Rem chkapi* into something fancier like checkw32api
185Rem You HAVE been warned!
186if (%nocygwin%) == (Y) goto chkapi
183echo Checking whether gcc requires '-mno-cygwin'... 187echo Checking whether gcc requires '-mno-cygwin'...
184echo #include "cygwin/version.h" >junk.c 188echo #include "cygwin/version.h" >junk.c
185echo main(){} >>junk.c 189echo main(){} >>junk.c
186gcc -c junk.c 190gcc -c junk.c
187if not exist junk.o goto checkw32api 191if not exist junk.o goto chkapi
188gcc -mno-cygwin -c junk.c 192gcc -mno-cygwin -c junk.c
189if exist junk.o set nocygwin=Y 193if exist junk.o set nocygwin=Y
190rm -f junk.c junk.o 194rm -f junk.c junk.o
191 195
192:checkw32api 196:chk32api
193rem ---------------------------------------------------------------------- 197rem ----------------------------------------------------------------------
194rem Older versions of the Windows API headers either don't have any of 198rem Older versions of the Windows API headers either don't have any of
195rem the IMAGE_xxx definitions (the headers that come with Cygwin b20.1 199rem the IMAGE_xxx definitions (the headers that come with Cygwin b20.1
@@ -202,12 +206,12 @@ echo Checking whether W32 API headers are too old...
202echo #include "windows.h" >junk.c 206echo #include "windows.h" >junk.c
203echo test(PIMAGE_NT_HEADERS pHeader) >>junk.c 207echo test(PIMAGE_NT_HEADERS pHeader) >>junk.c
204echo {PIMAGE_SECTION_HEADER pSection = IMAGE_FIRST_SECTION(pHeader);} >>junk.c 208echo {PIMAGE_SECTION_HEADER pSection = IMAGE_FIRST_SECTION(pHeader);} >>junk.c
205if (%nocygwin%) == (Y) goto checkw32api1 209if (%nocygwin%) == (Y) goto chkapi1
206set cf=%usercflags% 210set cf=%usercflags%
207goto checkw32api2 211goto chkapi2
208:checkw32api1 212:chkapi1
209set cf=%usercflags% -mno-cygwin 213set cf=%usercflags% -mno-cygwin
210:checkw32api2 214:chkapi2
211echo on 215echo on
212gcc %cf% -c junk.c 216gcc %cf% -c junk.c
213echo off 217echo off