diff options
| author | Eli Zaretskii | 2001-03-26 13:35:21 +0000 |
|---|---|---|
| committer | Eli Zaretskii | 2001-03-26 13:35:21 +0000 |
| commit | 4f22d5894b67a79efc5a64f943a049362c238ef0 (patch) | |
| tree | 18d1c2ca93fe332101ac46840fb4017cebcbc5c7 | |
| parent | 9d198e538573b5101f6d90924664a79f9864ac93 (diff) | |
| download | emacs-4f22d5894b67a79efc5a64f943a049362c238ef0.tar.gz emacs-4f22d5894b67a79efc5a64f943a049362c238ef0.zip | |
Make the checkw32api* labels be distinct in the first 8 characters.
| -rwxr-xr-x | nt/configure.bat | 18 |
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 | |||
| 179 | del junk.o | 179 | del junk.o |
| 180 | 180 | ||
| 181 | :checkgcc | 181 | :checkgcc |
| 182 | if (%nocygwin%) == (Y) goto checkw32api | 182 | Rem WARNING -- COMMAND.COM on some systems only looks at the first |
| 183 | Rem 8 characters of a lable. So do NOT be tempted to change | ||
| 184 | Rem chkapi* into something fancier like checkw32api | ||
| 185 | Rem You HAVE been warned! | ||
| 186 | if (%nocygwin%) == (Y) goto chkapi | ||
| 183 | echo Checking whether gcc requires '-mno-cygwin'... | 187 | echo Checking whether gcc requires '-mno-cygwin'... |
| 184 | echo #include "cygwin/version.h" >junk.c | 188 | echo #include "cygwin/version.h" >junk.c |
| 185 | echo main(){} >>junk.c | 189 | echo main(){} >>junk.c |
| 186 | gcc -c junk.c | 190 | gcc -c junk.c |
| 187 | if not exist junk.o goto checkw32api | 191 | if not exist junk.o goto chkapi |
| 188 | gcc -mno-cygwin -c junk.c | 192 | gcc -mno-cygwin -c junk.c |
| 189 | if exist junk.o set nocygwin=Y | 193 | if exist junk.o set nocygwin=Y |
| 190 | rm -f junk.c junk.o | 194 | rm -f junk.c junk.o |
| 191 | 195 | ||
| 192 | :checkw32api | 196 | :chk32api |
| 193 | rem ---------------------------------------------------------------------- | 197 | rem ---------------------------------------------------------------------- |
| 194 | rem Older versions of the Windows API headers either don't have any of | 198 | rem Older versions of the Windows API headers either don't have any of |
| 195 | rem the IMAGE_xxx definitions (the headers that come with Cygwin b20.1 | 199 | rem 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... | |||
| 202 | echo #include "windows.h" >junk.c | 206 | echo #include "windows.h" >junk.c |
| 203 | echo test(PIMAGE_NT_HEADERS pHeader) >>junk.c | 207 | echo test(PIMAGE_NT_HEADERS pHeader) >>junk.c |
| 204 | echo {PIMAGE_SECTION_HEADER pSection = IMAGE_FIRST_SECTION(pHeader);} >>junk.c | 208 | echo {PIMAGE_SECTION_HEADER pSection = IMAGE_FIRST_SECTION(pHeader);} >>junk.c |
| 205 | if (%nocygwin%) == (Y) goto checkw32api1 | 209 | if (%nocygwin%) == (Y) goto chkapi1 |
| 206 | set cf=%usercflags% | 210 | set cf=%usercflags% |
| 207 | goto checkw32api2 | 211 | goto chkapi2 |
| 208 | :checkw32api1 | 212 | :chkapi1 |
| 209 | set cf=%usercflags% -mno-cygwin | 213 | set cf=%usercflags% -mno-cygwin |
| 210 | :checkw32api2 | 214 | :chkapi2 |
| 211 | echo on | 215 | echo on |
| 212 | gcc %cf% -c junk.c | 216 | gcc %cf% -c junk.c |
| 213 | echo off | 217 | echo off |