Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
4f22d589
Commit
4f22d589
authored
Mar 26, 2001
by
Eli Zaretskii
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make the checkw32api* labels be distinct in the first 8 characters.
parent
9d198e53
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
7 deletions
+11
-7
nt/configure.bat
nt/configure.bat
+11
-7
No files found.
nt/configure.bat
View file @
4f22d589
...
...
@@ -179,17 +179,21 @@ if not exist junk.o goto nocompiler
del
junk
.o
:checkgcc
if
(
%nocygwin%
)
==
(
Y
)
goto
checkw32api
Rem WARNING -- COMMAND.COM on some systems only looks at the first
Rem 8 characters of a lable. So do NOT be tempted to change
Rem chkapi* into something fancier like checkw32api
Rem You HAVE been warned!
if
(
%nocygwin%
)
==
(
Y
)
goto
chkapi
echo
Checking
whether
gcc
requires
'-mno-cygwin'
...
echo
#include
"cygwin/version.h"
>
junk
.c
echo
main
(){}
>>
junk
.c
gcc
-c
junk
.c
if
not
exist
junk
.o
goto
ch
eckw32
api
if
not
exist
junk
.o
goto
ch
k
api
gcc
-mno-cygwin -c
junk
.c
if
exist
junk
.o
set
nocygwin
=
Y
rm
-f
junk
.c
junk
.o
:ch
eckw
32
api
:ch
k
32
api
rem ----------------------------------------------------------------------
rem Older versions of the Windows API headers either don't have any of
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...
echo
#include
"windows.h"
>
junk
.c
echo
test
(
PIMAGE_NT_HEADERS
pHeader
)
>>
junk
.c
echo
{
PIMAGE_SECTION_HEADER
pSection
=
IMAGE_FIRST_SECTION
(
pHeader
);}
>>
junk
.c
if
(
%nocygwin%
)
==
(
Y
)
goto
ch
eckw32
api1
if
(
%nocygwin%
)
==
(
Y
)
goto
ch
k
api1
set
cf
=
%usercflags%
goto
ch
eckw32
api2
:ch
eckw
32
api1
goto
ch
k
api2
:ch
k
api
1
set
cf
=
%usercflags%
-mno-cygwin
:ch
eckw
32
api2
:ch
k
api
2
echo
on
gcc
%cf%
-c
junk
.c
echo
off
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment