Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-cw
Commits
93a5b868
Commit
93a5b868
authored
Feb 04, 2002
by
Dmitry Timoshkov
Committed by
Alexandre Julliard
Feb 04, 2002
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Support for generation of .def files from .spec files.
parent
d15ed230
Show whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
292 additions
and
105 deletions
+292
-105
Make.rules.in
Make.rules.in
+7
-2
configure
configure
+150
-100
configure.in
configure.in
+28
-0
config.h.in
include/config.h.in
+3
-0
build.h
tools/winebuild/build.h
+1
-0
main.c
tools/winebuild/main.c
+30
-1
parser.c
tools/winebuild/parser.c
+6
-2
spec32.c
tools/winebuild/spec32.c
+67
-0
No files found.
Make.rules.in
View file @
93a5b868
...
...
@@ -92,7 +92,7 @@ prog_manext = 1
conf_manext = 5
includedir = @includedir@/wine
CLEAN_FILES = *.o *.a *.so *.ln \\\#*\\\# *~ *% .\\\#* *.bak *.orig *.rej \
*.flc *.spec.c *.glue.c y.tab.c y.tab.h lex.yy.c core
*.flc *.spec.c *.
spec.def *.
glue.c y.tab.c y.tab.h lex.yy.c core
OBJS = $(SPEC_SRCS:.spec=.spec.o) $(C_SRCS:.c=.o) $(GEN_C_SRCS:.c=.o) $(GEN_ASM_SRCS:.s=.o) \
$(ASM_SRCS:.S=.o) $(GLUE:.c=.glue.o) $(EXTRA_OBJS)
...
...
@@ -101,7 +101,7 @@ LINTS = $(C_SRCS:.c=.ln)
# Implicit rules
.SUFFIXES: .mc .rc .mc.rc .res .spec .spec.c .glue.c .pl .ok
.SUFFIXES: .mc .rc .mc.rc .res .spec .spec.c .
spec.def .
glue.c .pl .ok
.c.o:
$(CC) -c $(ALLCFLAGS) -o $@ $<
...
...
@@ -121,6 +121,9 @@ LINTS = $(C_SRCS:.c=.ln)
.spec.spec.c:
$(LDPATH) $(WINEBUILD) @DLLFLAGS@ -L$(DLLDIR) -o $@ -spec $<
.spec.spec.def:
$(LDPATH) $(WINEBUILD) @DLLFLAGS@ -L$(DLLDIR) -o $@ -def $<
.c.glue.c:
$(LDPATH) $(WINEBUILD) @DLLFLAGS@ -o $@ -glue $<
...
...
@@ -254,6 +257,8 @@ $(WINETEST):
$(SPEC_SRCS:.spec=.spec.c): $(WINEBUILD)
$(SPEC_SRCS:.spec=.spec.def): $(WINEBUILD)
$(GLUE:.c=.glue.c): $(WINEBUILD)
$(RC_SRCS:.rc=.res): $(WRC)
...
...
configure
View file @
93a5b868
...
...
@@ -5174,8 +5174,58 @@ EOF
fi
echo
$ac_n
"checking whether stdcall symbols need to be decorated""...
$ac_c
"
1>&6
echo
"configure:5179: checking whether stdcall symbols need to be decorated"
>
&5
if
eval
"test
\"
`
echo
'$''{'
ac_cv_c_stdcall_decoration
'+set}'
`
\"
= set"
;
then
echo
$ac_n
"(cached)
$ac_c
"
1>&6
else
saved_libs
=
$LIBS
LIBS
=
"conftest_asm.s
$LIBS
"
if
test
"
$ac_cv_c_extern_prefix
"
=
"yes"
then
cat
>
conftest_asm.s
<<
EOF
.globl _ac_test@0
_ac_test@0:
EOF
else
cat
>
conftest_asm.s
<<
EOF
.globl ac_test@0
ac_test@0:
EOF
fi
cat
>
conftest.
$ac_ext
<<
EOF
#line 5198 "configure"
#include "confdefs.h"
extern void __attribute__((__stdcall__)) ac_test(void);
int main() {
ac_test(); return 0
; return 0; }
EOF
if
{
(
eval echo
configure:5205:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
${
ac_exeext
}
;
then
rm
-rf
conftest
*
ac_cv_c_stdcall_decoration
=
"yes"
else
echo
"configure: failed program was:"
>
&5
cat
conftest.
$ac_ext
>
&5
rm
-rf
conftest
*
ac_cv_c_stdcall_decoration
=
"no"
fi
rm
-f
conftest
*
LIBS
=
$saved_libs
fi
echo
"
$ac_t
""
$ac_cv_c_stdcall_decoration
"
1>&6
if
test
"
$ac_cv_c_stdcall_decoration
"
=
"yes"
then
cat
>>
confdefs.h
<<
\
EOF
#define NEED_STDCALL_DECORATION 1
EOF
fi
echo
$ac_n
"checking whether assembler accepts .string""...
$ac_c
"
1>&6
echo
"configure:5
17
9: checking whether assembler accepts .string"
>
&5
echo
"configure:5
22
9: checking whether assembler accepts .string"
>
&5
if
eval
"test
\"
`
echo
'$''{'
ac_cv_c_asm_string
'+set}'
`
\"
= set"
;
then
echo
$ac_n
"(cached)
$ac_c
"
1>&6
else
...
...
@@ -5185,14 +5235,14 @@ cat > conftest_asm.s <<EOF
.string "test"
EOF
cat
>
conftest.
$ac_ext
<<
EOF
#line 5
18
9 "configure"
#line 5
23
9 "configure"
#include "confdefs.h"
int main() {
; return 0; }
EOF
if
{
(
eval echo
configure:5
19
6:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
${
ac_exeext
}
;
then
if
{
(
eval echo
configure:5
24
6:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
${
ac_exeext
}
;
then
rm
-rf
conftest
*
ac_cv_c_asm_string
=
"yes"
else
...
...
@@ -5220,21 +5270,21 @@ LDDLLFLAGS=""
if
test
"
$LIBEXT
"
=
"so"
then
echo
$ac_n
"checking whether we can build a GNU style ELF dll""...
$ac_c
"
1>&6
echo
"configure:52
2
4: checking whether we can build a GNU style ELF dll"
>
&5
echo
"configure:52
7
4: checking whether we can build a GNU style ELF dll"
>
&5
if
eval
"test
\"
`
echo
'$''{'
ac_cv_c_dll_gnuelf
'+set}'
`
\"
= set"
;
then
echo
$ac_n
"(cached)
$ac_c
"
1>&6
else
saved_cflags
=
$CFLAGS
CFLAGS
=
"
$CFLAGS
-fPIC -shared -Wl,-soname,conftest.so.1.0,-Bsymbolic"
cat
>
conftest.
$ac_ext
<<
EOF
#line 52
3
1 "configure"
#line 52
8
1 "configure"
#include "confdefs.h"
int main() {
return 1
; return 0; }
EOF
if
{
(
eval echo
configure:52
3
8:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
${
ac_exeext
}
;
then
if
{
(
eval echo
configure:52
8
8:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
${
ac_exeext
}
;
then
rm
-rf
conftest
*
ac_cv_c_dll_gnuelf
=
"yes"
else
...
...
@@ -5255,21 +5305,21 @@ echo "$ac_t""$ac_cv_c_dll_gnuelf" 1>&6
LDDLLFLAGS
=
"-Wl,-Bsymbolic"
else
echo
$ac_n
"checking whether we can build a UnixWare (Solaris) dll""...
$ac_c
"
1>&6
echo
"configure:5
25
9: checking whether we can build a UnixWare (Solaris) dll"
>
&5
echo
"configure:5
30
9: checking whether we can build a UnixWare (Solaris) dll"
>
&5
if
eval
"test
\"
`
echo
'$''{'
ac_cv_c_dll_unixware
'+set}'
`
\"
= set"
;
then
echo
$ac_n
"(cached)
$ac_c
"
1>&6
else
saved_cflags
=
$CFLAGS
CFLAGS
=
"
$CFLAGS
-fPIC -Wl,-G,-h,conftest.so.1.0,-B,symbolic"
cat
>
conftest.
$ac_ext
<<
EOF
#line 5
26
6 "configure"
#line 5
31
6 "configure"
#include "confdefs.h"
int main() {
return 1
; return 0; }
EOF
if
{
(
eval echo
configure:5
27
3:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
${
ac_exeext
}
;
then
if
{
(
eval echo
configure:5
32
3:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
${
ac_exeext
}
;
then
rm
-rf
conftest
*
ac_cv_c_dll_unixware
=
"yes"
else
...
...
@@ -5333,7 +5383,7 @@ fi
wine_cv_libc_reentrant
=
no
echo
$ac_n
"checking for reentrant libc: __errno_location""...
$ac_c
"
1>&6
echo
"configure:53
3
7: checking for reentrant libc: __errno_location"
>
&5
echo
"configure:53
8
7: checking for reentrant libc: __errno_location"
>
&5
if
eval
"test
\"
`
echo
'$''{'
wine_cv_libc_r___errno_location
'+set}'
`
\"
= set"
;
then
echo
$ac_n
"(cached)
$ac_c
"
1>&6
else
...
...
@@ -5341,14 +5391,14 @@ else
wine_cv_libc_r___errno_location
=
yes
else
cat
>
conftest.
$ac_ext
<<
EOF
#line 53
4
5 "configure"
#line 53
9
5 "configure"
#include "confdefs.h"
int myerrno = 0;
char buf[256];
int *__errno_location(){return &myerrno;}
main(){connect(0,buf,255); exit(!myerrno);}
EOF
if
{
(
eval echo
configure:5
35
2:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
${
ac_exeext
}
&&
(
./conftest
;
exit
)
2>/dev/null
if
{
(
eval echo
configure:5
40
2:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
${
ac_exeext
}
&&
(
./conftest
;
exit
)
2>/dev/null
then
wine_cv_libc_r___errno_location
=
yes
else
...
...
@@ -5371,7 +5421,7 @@ fi
echo
$ac_n
"checking for reentrant libc: __error""...
$ac_c
"
1>&6
echo
"configure:5
37
5: checking for reentrant libc: __error"
>
&5
echo
"configure:5
42
5: checking for reentrant libc: __error"
>
&5
if
eval
"test
\"
`
echo
'$''{'
wine_cv_libc_r___error
'+set}'
`
\"
= set"
;
then
echo
$ac_n
"(cached)
$ac_c
"
1>&6
else
...
...
@@ -5379,14 +5429,14 @@ else
wine_cv_libc_r___error
=
yes
else
cat
>
conftest.
$ac_ext
<<
EOF
#line 5
38
3 "configure"
#line 5
43
3 "configure"
#include "confdefs.h"
int myerrno = 0;
char buf[256];
int *__error(){return &myerrno;}
main(){connect(0,buf,255); exit(!myerrno);}
EOF
if
{
(
eval echo
configure:5
39
0:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
${
ac_exeext
}
&&
(
./conftest
;
exit
)
2>/dev/null
if
{
(
eval echo
configure:5
44
0:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
${
ac_exeext
}
&&
(
./conftest
;
exit
)
2>/dev/null
then
wine_cv_libc_r___error
=
yes
else
...
...
@@ -5409,7 +5459,7 @@ fi
echo
$ac_n
"checking for reentrant libc: ___errno""...
$ac_c
"
1>&6
echo
"configure:54
1
3: checking for reentrant libc: ___errno"
>
&5
echo
"configure:54
6
3: checking for reentrant libc: ___errno"
>
&5
if
eval
"test
\"
`
echo
'$''{'
wine_cv_libc_r____errno
'+set}'
`
\"
= set"
;
then
echo
$ac_n
"(cached)
$ac_c
"
1>&6
else
...
...
@@ -5417,14 +5467,14 @@ else
wine_cv_libc_r____errno
=
yes
else
cat
>
conftest.
$ac_ext
<<
EOF
#line 54
2
1 "configure"
#line 54
7
1 "configure"
#include "confdefs.h"
int myerrno = 0;
char buf[256];
int *___errno(){return &myerrno;}
main(){connect(0,buf,255); exit(!myerrno);}
EOF
if
{
(
eval echo
configure:54
2
8:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
${
ac_exeext
}
&&
(
./conftest
;
exit
)
2>/dev/null
if
{
(
eval echo
configure:54
7
8:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
${
ac_exeext
}
&&
(
./conftest
;
exit
)
2>/dev/null
then
wine_cv_libc_r____errno
=
yes
else
...
...
@@ -5447,7 +5497,7 @@ fi
echo
$ac_n
"checking for reentrant libc: __thr_errno""...
$ac_c
"
1>&6
echo
"configure:5
45
1: checking for reentrant libc: __thr_errno"
>
&5
echo
"configure:5
50
1: checking for reentrant libc: __thr_errno"
>
&5
if
eval
"test
\"
`
echo
'$''{'
wine_cv_libc_r___thr_errno
'+set}'
`
\"
= set"
;
then
echo
$ac_n
"(cached)
$ac_c
"
1>&6
else
...
...
@@ -5455,14 +5505,14 @@ else
wine_cv_libc_r___thr_errno
=
yes
else
cat
>
conftest.
$ac_ext
<<
EOF
#line 5
45
9 "configure"
#line 5
50
9 "configure"
#include "confdefs.h"
int myerrno = 0;
char buf[256];
int *__thr_errno(){return &myerrno;}
main(){connect(0,buf,255); exit(!myerrno);}
EOF
if
{
(
eval echo
configure:5
46
6:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
${
ac_exeext
}
&&
(
./conftest
;
exit
)
2>/dev/null
if
{
(
eval echo
configure:5
51
6:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
${
ac_exeext
}
&&
(
./conftest
;
exit
)
2>/dev/null
then
wine_cv_libc_r___thr_errno
=
yes
else
...
...
@@ -5485,7 +5535,7 @@ fi
echo
$ac_n
"checking for reentrant libc: __errno""...
$ac_c
"
1>&6
echo
"configure:5
48
9: checking for reentrant libc: __errno"
>
&5
echo
"configure:5
53
9: checking for reentrant libc: __errno"
>
&5
if
eval
"test
\"
`
echo
'$''{'
wine_cv_libc_r___errno
'+set}'
`
\"
= set"
;
then
echo
$ac_n
"(cached)
$ac_c
"
1>&6
else
...
...
@@ -5493,14 +5543,14 @@ else
wine_cv_libc_r___errno
=
yes
else
cat
>
conftest.
$ac_ext
<<
EOF
#line 5
49
7 "configure"
#line 5
54
7 "configure"
#include "confdefs.h"
int myerrno = 0;
char buf[256];
int *__errno(){return &myerrno;}
main(){connect(0,buf,255); exit(!myerrno);}
EOF
if
{
(
eval echo
configure:55
0
4:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
${
ac_exeext
}
&&
(
./conftest
;
exit
)
2>/dev/null
if
{
(
eval echo
configure:55
5
4:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
${
ac_exeext
}
&&
(
./conftest
;
exit
)
2>/dev/null
then
wine_cv_libc_r___errno
=
yes
else
...
...
@@ -5534,7 +5584,7 @@ fi
if
test
"
$have_x
"
=
"yes"
-a
"
$wine_cv_libc_reentrant
"
!=
"no"
then
echo
$ac_n
"checking for reentrant X libraries""...
$ac_c
"
1>&6
echo
"configure:55
3
8: checking for reentrant X libraries"
>
&5
echo
"configure:55
8
8: checking for reentrant X libraries"
>
&5
if
eval
"test
\"
`
echo
'$''{'
wine_cv_x_reentrant
'+set}'
`
\"
= set"
;
then
echo
$ac_n
"(cached)
$ac_c
"
1>&6
else
...
...
@@ -5583,19 +5633,19 @@ fi
# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
# for constant arguments. Useless!
echo
$ac_n
"checking for working alloca.h""...
$ac_c
"
1>&6
echo
"configure:5
58
7: checking for working alloca.h"
>
&5
echo
"configure:5
63
7: checking for working alloca.h"
>
&5
if
eval
"test
\"
`
echo
'$''{'
ac_cv_header_alloca_h
'+set}'
`
\"
= set"
;
then
echo
$ac_n
"(cached)
$ac_c
"
1>&6
else
cat
>
conftest.
$ac_ext
<<
EOF
#line 5
59
2 "configure"
#line 5
64
2 "configure"
#include "confdefs.h"
#include <alloca.h>
int main() {
char *p = alloca(2 * sizeof(int));
; return 0; }
EOF
if
{
(
eval echo
configure:5
59
9:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
${
ac_exeext
}
;
then
if
{
(
eval echo
configure:5
64
9:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
${
ac_exeext
}
;
then
rm
-rf
conftest
*
ac_cv_header_alloca_h
=
yes
else
...
...
@@ -5616,12 +5666,12 @@ EOF
fi
echo
$ac_n
"checking for alloca""...
$ac_c
"
1>&6
echo
"configure:56
2
0: checking for alloca"
>
&5
echo
"configure:56
7
0: checking for alloca"
>
&5
if
eval
"test
\"
`
echo
'$''{'
ac_cv_func_alloca_works
'+set}'
`
\"
= set"
;
then
echo
$ac_n
"(cached)
$ac_c
"
1>&6
else
cat
>
conftest.
$ac_ext
<<
EOF
#line 56
2
5 "configure"
#line 56
7
5 "configure"
#include "confdefs.h"
#ifdef __GNUC__
...
...
@@ -5649,7 +5699,7 @@ int main() {
char *p = (char *) alloca(1);
; return 0; }
EOF
if
{
(
eval echo
configure:5
65
3:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
${
ac_exeext
}
;
then
if
{
(
eval echo
configure:5
70
3:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
${
ac_exeext
}
;
then
rm
-rf
conftest
*
ac_cv_func_alloca_works
=
yes
else
...
...
@@ -5681,12 +5731,12 @@ EOF
echo
$ac_n
"checking whether alloca needs Cray hooks""...
$ac_c
"
1>&6
echo
"configure:5
68
5: checking whether alloca needs Cray hooks"
>
&5
echo
"configure:5
73
5: checking whether alloca needs Cray hooks"
>
&5
if
eval
"test
\"
`
echo
'$''{'
ac_cv_os_cray
'+set}'
`
\"
= set"
;
then
echo
$ac_n
"(cached)
$ac_c
"
1>&6
else
cat
>
conftest.
$ac_ext
<<
EOF
#line 5
69
0 "configure"
#line 5
74
0 "configure"
#include "confdefs.h"
#if defined(CRAY) && ! defined(CRAY2)
webecray
...
...
@@ -5711,12 +5761,12 @@ echo "$ac_t""$ac_cv_os_cray" 1>&6
if
test
$ac_cv_os_cray
=
yes
;
then
for
ac_func
in
_getb67 GETB67 getb67
;
do
echo
$ac_n
"checking for
$ac_func
""...
$ac_c
"
1>&6
echo
"configure:57
1
5: checking for
$ac_func
"
>
&5
echo
"configure:57
6
5: checking for
$ac_func
"
>
&5
if
eval
"test
\"
`
echo
'$''{'
ac_cv_func_
$ac_func
'+set}'
`
\"
= set"
;
then
echo
$ac_n
"(cached)
$ac_c
"
1>&6
else
cat
>
conftest.
$ac_ext
<<
EOF
#line 57
2
0 "configure"
#line 57
7
0 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
which can conflict with char
$ac_func
(); below. */
...
...
@@ -5739,7 +5789,7 @@ $ac_func();
; return 0; }
EOF
if
{
(
eval echo
configure:57
4
3:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
${
ac_exeext
}
;
then
if
{
(
eval echo
configure:57
9
3:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
${
ac_exeext
}
;
then
rm
-rf
conftest
*
eval
"ac_cv_func_
$ac_func
=yes"
else
...
...
@@ -5766,7 +5816,7 @@ done
fi
echo
$ac_n
"checking stack direction for C alloca""...
$ac_c
"
1>&6
echo
"configure:5
77
0: checking stack direction for C alloca"
>
&5
echo
"configure:5
82
0: checking stack direction for C alloca"
>
&5
if
eval
"test
\"
`
echo
'$''{'
ac_cv_c_stack_direction
'+set}'
`
\"
= set"
;
then
echo
$ac_n
"(cached)
$ac_c
"
1>&6
else
...
...
@@ -5774,7 +5824,7 @@ else
ac_cv_c_stack_direction
=
0
else
cat
>
conftest.
$ac_ext
<<
EOF
#line 5
77
8 "configure"
#line 5
82
8 "configure"
#include "confdefs.h"
find_stack_direction ()
{
...
...
@@ -5793,7 +5843,7 @@ main ()
exit (find_stack_direction() < 0);
}
EOF
if
{
(
eval echo
configure:5
79
7:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
${
ac_exeext
}
&&
(
./conftest
;
exit
)
2>/dev/null
if
{
(
eval echo
configure:5
84
7:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
${
ac_exeext
}
&&
(
./conftest
;
exit
)
2>/dev/null
then
ac_cv_c_stack_direction
=
1
else
...
...
@@ -5855,12 +5905,12 @@ for ac_func in \
do
echo
$ac_n
"checking for
$ac_func
""...
$ac_c
"
1>&6
echo
"configure:5
85
9: checking for
$ac_func
"
>
&5
echo
"configure:5
90
9: checking for
$ac_func
"
>
&5
if
eval
"test
\"
`
echo
'$''{'
ac_cv_func_
$ac_func
'+set}'
`
\"
= set"
;
then
echo
$ac_n
"(cached)
$ac_c
"
1>&6
else
cat
>
conftest.
$ac_ext
<<
EOF
#line 5
86
4 "configure"
#line 5
91
4 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
which can conflict with char
$ac_func
(); below. */
...
...
@@ -5883,7 +5933,7 @@ $ac_func();
; return 0; }
EOF
if
{
(
eval echo
configure:5
88
7:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
${
ac_exeext
}
;
then
if
{
(
eval echo
configure:5
93
7:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
${
ac_exeext
}
;
then
rm
-rf
conftest
*
eval
"ac_cv_func_
$ac_func
=yes"
else
...
...
@@ -5967,17 +6017,17 @@ for ac_hdr in \
do
ac_safe
=
`
echo
"
$ac_hdr
"
|
sed
'y%./+-%__p_%'
`
echo
$ac_n
"checking for
$ac_hdr
""...
$ac_c
"
1>&6
echo
"configure:
597
1: checking for
$ac_hdr
"
>
&5
echo
"configure:
602
1: checking for
$ac_hdr
"
>
&5
if
eval
"test
\"
`
echo
'$''{'
ac_cv_header_
$ac_safe
'+set}'
`
\"
= set"
;
then
echo
$ac_n
"(cached)
$ac_c
"
1>&6
else
cat
>
conftest.
$ac_ext
<<
EOF
#line
597
6 "configure"
#line
602
6 "configure"
#include "confdefs.h"
#include <
$ac_hdr
>
EOF
ac_try
=
"
$ac_cpp
conftest.
$ac_ext
>/dev/null 2>conftest.out"
{
(
eval echo
configure:
598
1:
\"
$ac_try
\"
)
1>&5
;
(
eval
$ac_try
)
2>&5
;
}
{
(
eval echo
configure:
603
1:
\"
$ac_try
\"
)
1>&5
;
(
eval
$ac_try
)
2>&5
;
}
ac_err
=
`
grep
-v
'^ *+'
conftest.out |
grep
-v
"^conftest.
${
ac_ext
}
\$
"
`
if
test
-z
"
$ac_err
"
;
then
rm
-rf
conftest
*
...
...
@@ -6004,12 +6054,12 @@ fi
done
echo
$ac_n
"checking whether stat file-mode macros are broken""...
$ac_c
"
1>&6
echo
"configure:60
0
8: checking whether stat file-mode macros are broken"
>
&5
echo
"configure:60
5
8: checking whether stat file-mode macros are broken"
>
&5
if
eval
"test
\"
`
echo
'$''{'
ac_cv_header_stat_broken
'+set}'
`
\"
= set"
;
then
echo
$ac_n
"(cached)
$ac_c
"
1>&6
else
cat
>
conftest.
$ac_ext
<<
EOF
#line 60
1
3 "configure"
#line 60
6
3 "configure"
#include "confdefs.h"
#include <sys/types.h>
#include <sys/stat.h>
...
...
@@ -6062,12 +6112,12 @@ fi
echo
$ac_n
"checking for working const""...
$ac_c
"
1>&6
echo
"configure:6
06
6: checking for working const"
>
&5
echo
"configure:6
11
6: checking for working const"
>
&5
if
eval
"test
\"
`
echo
'$''{'
ac_cv_c_const
'+set}'
`
\"
= set"
;
then
echo
$ac_n
"(cached)
$ac_c
"
1>&6
else
cat
>
conftest.
$ac_ext
<<
EOF
#line 6
07
1 "configure"
#line 6
12
1 "configure"
#include "confdefs.h"
int main() {
...
...
@@ -6116,7 +6166,7 @@ ccp = (char const *const *) p;
; return 0; }
EOF
if
{
(
eval echo
configure:61
2
0:
\"
$ac_compile
\"
)
1>&5
;
(
eval
$ac_compile
)
2>&5
;
}
;
then
if
{
(
eval echo
configure:61
7
0:
\"
$ac_compile
\"
)
1>&5
;
(
eval
$ac_compile
)
2>&5
;
}
;
then
rm
-rf
conftest
*
ac_cv_c_const
=
yes
else
...
...
@@ -6137,21 +6187,21 @@ EOF
fi
echo
$ac_n
"checking for inline""...
$ac_c
"
1>&6
echo
"configure:61
4
1: checking for inline"
>
&5
echo
"configure:61
9
1: checking for inline"
>
&5
if
eval
"test
\"
`
echo
'$''{'
ac_cv_c_inline
'+set}'
`
\"
= set"
;
then
echo
$ac_n
"(cached)
$ac_c
"
1>&6
else
ac_cv_c_inline
=
no
for
ac_kw
in
inline __inline__ __inline
;
do
cat
>
conftest.
$ac_ext
<<
EOF
#line 61
4
8 "configure"
#line 61
9
8 "configure"
#include "confdefs.h"
int main() {
}
$ac_kw
foo() {
; return 0; }
EOF
if
{
(
eval echo
configure:6
15
5:
\"
$ac_compile
\"
)
1>&5
;
(
eval
$ac_compile
)
2>&5
;
}
;
then
if
{
(
eval echo
configure:6
20
5:
\"
$ac_compile
\"
)
1>&5
;
(
eval
$ac_compile
)
2>&5
;
}
;
then
rm
-rf
conftest
*
ac_cv_c_inline
=
$ac_kw
;
break
else
...
...
@@ -6177,12 +6227,12 @@ EOF
esac
echo
$ac_n
"checking for ANSI C header files""...
$ac_c
"
1>&6
echo
"configure:6
18
1: checking for ANSI C header files"
>
&5
echo
"configure:6
23
1: checking for ANSI C header files"
>
&5
if
eval
"test
\"
`
echo
'$''{'
ac_cv_header_stdc
'+set}'
`
\"
= set"
;
then
echo
$ac_n
"(cached)
$ac_c
"
1>&6
else
cat
>
conftest.
$ac_ext
<<
EOF
#line 6
18
6 "configure"
#line 6
23
6 "configure"
#include "confdefs.h"
#include <stdlib.h>
#include <stdarg.h>
...
...
@@ -6190,7 +6240,7 @@ else
#include <float.h>
EOF
ac_try
=
"
$ac_cpp
conftest.
$ac_ext
>/dev/null 2>conftest.out"
{
(
eval echo
configure:6
19
4:
\"
$ac_try
\"
)
1>&5
;
(
eval
$ac_try
)
2>&5
;
}
{
(
eval echo
configure:6
24
4:
\"
$ac_try
\"
)
1>&5
;
(
eval
$ac_try
)
2>&5
;
}
ac_err
=
`
grep
-v
'^ *+'
conftest.out |
grep
-v
"^conftest.
${
ac_ext
}
\$
"
`
if
test
-z
"
$ac_err
"
;
then
rm
-rf
conftest
*
...
...
@@ -6207,7 +6257,7 @@ rm -f conftest*
if
test
$ac_cv_header_stdc
=
yes
;
then
# SunOS 4.x string.h does not declare mem*, contrary to ANSI.
cat
>
conftest.
$ac_ext
<<
EOF
#line 62
1
1 "configure"
#line 62
6
1 "configure"
#include "confdefs.h"
#include <string.h>
EOF
...
...
@@ -6225,7 +6275,7 @@ fi
if
test
$ac_cv_header_stdc
=
yes
;
then
# ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
cat
>
conftest.
$ac_ext
<<
EOF
#line 62
2
9 "configure"
#line 62
7
9 "configure"
#include "confdefs.h"
#include <stdlib.h>
EOF
...
...
@@ -6246,7 +6296,7 @@ if test "$cross_compiling" = yes; then
:
else
cat
>
conftest.
$ac_ext
<<
EOF
#line 6
25
0 "configure"
#line 6
30
0 "configure"
#include "confdefs.h"
#include <ctype.h>
#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
...
...
@@ -6257,7 +6307,7 @@ if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
exit (0); }
EOF
if
{
(
eval echo
configure:6
26
1:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
${
ac_exeext
}
&&
(
./conftest
;
exit
)
2>/dev/null
if
{
(
eval echo
configure:6
31
1:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
${
ac_exeext
}
&&
(
./conftest
;
exit
)
2>/dev/null
then
:
else
...
...
@@ -6281,12 +6331,12 @@ EOF
fi
echo
$ac_n
"checking for size_t""...
$ac_c
"
1>&6
echo
"configure:6
28
5: checking for size_t"
>
&5
echo
"configure:6
33
5: checking for size_t"
>
&5
if
eval
"test
\"
`
echo
'$''{'
ac_cv_type_size_t
'+set}'
`
\"
= set"
;
then
echo
$ac_n
"(cached)
$ac_c
"
1>&6
else
cat
>
conftest.
$ac_ext
<<
EOF
#line 6
29
0 "configure"
#line 6
34
0 "configure"
#include "confdefs.h"
#include <sys/types.h>
#if STDC_HEADERS
...
...
@@ -6314,7 +6364,7 @@ EOF
fi
echo
$ac_n
"checking size of long long""...
$ac_c
"
1>&6
echo
"configure:63
1
8: checking size of long long"
>
&5
echo
"configure:63
6
8: checking size of long long"
>
&5
if
eval
"test
\"
`
echo
'$''{'
ac_cv_sizeof_long_long
'+set}'
`
\"
= set"
;
then
echo
$ac_n
"(cached)
$ac_c
"
1>&6
else
...
...
@@ -6322,7 +6372,7 @@ else
ac_cv_sizeof_long_long
=
0
else
cat
>
conftest.
$ac_ext
<<
EOF
#line 63
2
6 "configure"
#line 63
7
6 "configure"
#include "confdefs.h"
#include <stdio.h>
#include <sys/types.h>
...
...
@@ -6334,7 +6384,7 @@ main()
exit(0);
}
EOF
if
{
(
eval echo
configure:63
3
8:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
${
ac_exeext
}
&&
(
./conftest
;
exit
)
2>/dev/null
if
{
(
eval echo
configure:63
8
8:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
${
ac_exeext
}
&&
(
./conftest
;
exit
)
2>/dev/null
then
ac_cv_sizeof_long_long
=
`
cat
conftestval
`
else
...
...
@@ -6355,12 +6405,12 @@ EOF
echo
$ac_n
"checking whether linux/input.h is for real""...
$ac_c
"
1>&6
echo
"configure:6
35
9: checking whether linux/input.h is for real"
>
&5
echo
"configure:6
40
9: checking whether linux/input.h is for real"
>
&5
if
eval
"test
\"
`
echo
'$''{'
wine_cv_linux_input_h
'+set}'
`
\"
= set"
;
then
echo
$ac_n
"(cached)
$ac_c
"
1>&6
else
cat
>
conftest.
$ac_ext
<<
EOF
#line 6
36
4 "configure"
#line 6
41
4 "configure"
#include "confdefs.h"
#include <linux/input.h>
...
...
@@ -6373,7 +6423,7 @@ int main() {
; return 0; }
EOF
if
{
(
eval echo
configure:6
37
7:
\"
$ac_compile
\"
)
1>&5
;
(
eval
$ac_compile
)
2>&5
;
}
;
then
if
{
(
eval echo
configure:6
42
7:
\"
$ac_compile
\"
)
1>&5
;
(
eval
$ac_compile
)
2>&5
;
}
;
then
rm
-rf
conftest
*
wine_cv_linux_input_h
=
yes
else
...
...
@@ -6397,12 +6447,12 @@ EOF
echo
$ac_n
"checking whether we can use re-entrant gethostbyname_r Linux style""...
$ac_c
"
1>&6
echo
"configure:64
0
1: checking whether we can use re-entrant gethostbyname_r Linux style"
>
&5
echo
"configure:64
5
1: checking whether we can use re-entrant gethostbyname_r Linux style"
>
&5
if
eval
"test
\"
`
echo
'$''{'
wine_cv_linux_gethostbyname_r_6
'+set}'
`
\"
= set"
;
then
echo
$ac_n
"(cached)
$ac_c
"
1>&6
else
cat
>
conftest.
$ac_ext
<<
EOF
#line 64
0
6 "configure"
#line 64
5
6 "configure"
#include "confdefs.h"
#include <netdb.h>
...
...
@@ -6423,7 +6473,7 @@ int main() {
; return 0; }
EOF
if
{
(
eval echo
configure:64
2
7:
\"
$ac_compile
\"
)
1>&5
;
(
eval
$ac_compile
)
2>&5
;
}
;
then
if
{
(
eval echo
configure:64
7
7:
\"
$ac_compile
\"
)
1>&5
;
(
eval
$ac_compile
)
2>&5
;
}
;
then
rm
-rf
conftest
*
wine_cv_linux_gethostbyname_r_6
=
yes
else
...
...
@@ -6449,12 +6499,12 @@ EOF
if
test
"
$ac_cv_header_linux_joystick_h
"
=
"yes"
then
echo
$ac_n
"checking whether linux/joystick.h uses the Linux 2.2+ API""...
$ac_c
"
1>&6
echo
"configure:6
45
3: checking whether linux/joystick.h uses the Linux 2.2+ API"
>
&5
echo
"configure:6
50
3: checking whether linux/joystick.h uses the Linux 2.2+ API"
>
&5
if
eval
"test
\"
`
echo
'$''{'
wine_cv_linux_joystick_22_api
'+set}'
`
\"
= set"
;
then
echo
$ac_n
"(cached)
$ac_c
"
1>&6
else
cat
>
conftest.
$ac_ext
<<
EOF
#line 6
45
8 "configure"
#line 6
50
8 "configure"
#include "confdefs.h"
#include <sys/ioctl.h>
...
...
@@ -6469,7 +6519,7 @@ int main() {
/*empty*/
; return 0; }
EOF
if
{
(
eval echo
configure:6
47
3:
\"
$ac_compile
\"
)
1>&5
;
(
eval
$ac_compile
)
2>&5
;
}
;
then
if
{
(
eval echo
configure:6
52
3:
\"
$ac_compile
\"
)
1>&5
;
(
eval
$ac_compile
)
2>&5
;
}
;
then
rm
-rf
conftest
*
wine_cv_linux_joystick_22_api
=
yes
else
...
...
@@ -6496,12 +6546,12 @@ fi
if
test
"
$ac_cv_header_sys_vfs_h
"
=
"yes"
then
echo
$ac_n
"checking whether sys/vfs.h defines statfs""...
$ac_c
"
1>&6
echo
"configure:65
0
0: checking whether sys/vfs.h defines statfs"
>
&5
echo
"configure:65
5
0: checking whether sys/vfs.h defines statfs"
>
&5
if
eval
"test
\"
`
echo
'$''{'
wine_cv_sys_vfs_has_statfs
'+set}'
`
\"
= set"
;
then
echo
$ac_n
"(cached)
$ac_c
"
1>&6
else
cat
>
conftest.
$ac_ext
<<
EOF
#line 65
0
5 "configure"
#line 65
5
5 "configure"
#include "confdefs.h"
#include <sys/types.h>
...
...
@@ -6518,7 +6568,7 @@ int main() {
; return 0; }
EOF
if
{
(
eval echo
configure:65
2
2:
\"
$ac_compile
\"
)
1>&5
;
(
eval
$ac_compile
)
2>&5
;
}
;
then
if
{
(
eval echo
configure:65
7
2:
\"
$ac_compile
\"
)
1>&5
;
(
eval
$ac_compile
)
2>&5
;
}
;
then
rm
-rf
conftest
*
wine_cv_sys_vfs_has_statfs
=
yes
else
...
...
@@ -6545,12 +6595,12 @@ fi
if
test
"
$ac_cv_header_sys_statfs_h
"
=
"yes"
then
echo
$ac_n
"checking whether sys/statfs.h defines statfs""...
$ac_c
"
1>&6
echo
"configure:65
4
9: checking whether sys/statfs.h defines statfs"
>
&5
echo
"configure:65
9
9: checking whether sys/statfs.h defines statfs"
>
&5
if
eval
"test
\"
`
echo
'$''{'
wine_cv_sys_statfs_has_statfs
'+set}'
`
\"
= set"
;
then
echo
$ac_n
"(cached)
$ac_c
"
1>&6
else
cat
>
conftest.
$ac_ext
<<
EOF
#line 6
55
4 "configure"
#line 6
60
4 "configure"
#include "confdefs.h"
#include <sys/types.h>
...
...
@@ -6565,7 +6615,7 @@ int main() {
; return 0; }
EOF
if
{
(
eval echo
configure:6
56
9:
\"
$ac_compile
\"
)
1>&5
;
(
eval
$ac_compile
)
2>&5
;
}
;
then
if
{
(
eval echo
configure:6
61
9:
\"
$ac_compile
\"
)
1>&5
;
(
eval
$ac_compile
)
2>&5
;
}
;
then
rm
-rf
conftest
*
wine_cv_sys_statfs_has_statfs
=
yes
else
...
...
@@ -6592,12 +6642,12 @@ fi
if
test
"
$ac_cv_header_sys_mount_h
"
=
"yes"
then
echo
$ac_n
"checking whether sys/mount.h defines statfs""...
$ac_c
"
1>&6
echo
"configure:6
59
6: checking whether sys/mount.h defines statfs"
>
&5
echo
"configure:6
64
6: checking whether sys/mount.h defines statfs"
>
&5
if
eval
"test
\"
`
echo
'$''{'
wine_cv_sys_mount_has_statfs
'+set}'
`
\"
= set"
;
then
echo
$ac_n
"(cached)
$ac_c
"
1>&6
else
cat
>
conftest.
$ac_ext
<<
EOF
#line 66
0
1 "configure"
#line 66
5
1 "configure"
#include "confdefs.h"
#include <sys/types.h>
...
...
@@ -6612,7 +6662,7 @@ int main() {
; return 0; }
EOF
if
{
(
eval echo
configure:66
1
6:
\"
$ac_compile
\"
)
1>&5
;
(
eval
$ac_compile
)
2>&5
;
}
;
then
if
{
(
eval echo
configure:66
6
6:
\"
$ac_compile
\"
)
1>&5
;
(
eval
$ac_compile
)
2>&5
;
}
;
then
rm
-rf
conftest
*
wine_cv_sys_mount_has_statfs
=
yes
else
...
...
@@ -6638,7 +6688,7 @@ fi
echo
$ac_n
"checking for statfs.f_bfree""...
$ac_c
"
1>&6
echo
"configure:66
4
2: checking for statfs.f_bfree"
>
&5
echo
"configure:66
9
2: checking for statfs.f_bfree"
>
&5
if
eval
"test
\"
`
echo
'$''{'
wine_cv_statfs_bfree
'+set}'
`
\"
= set"
;
then
echo
$ac_n
"(cached)
$ac_c
"
1>&6
else
...
...
@@ -6647,7 +6697,7 @@ else
wine_cv_statfs_bfree
=
no
else
cat
>
conftest.
$ac_ext
<<
EOF
#line 6
65
1 "configure"
#line 6
70
1 "configure"
#include "confdefs.h"
#include <sys/types.h>
...
...
@@ -6674,7 +6724,7 @@ int main() {
; return 0; }
EOF
if
{
(
eval echo
configure:6
67
8:
\"
$ac_compile
\"
)
1>&5
;
(
eval
$ac_compile
)
2>&5
;
}
;
then
if
{
(
eval echo
configure:6
72
8:
\"
$ac_compile
\"
)
1>&5
;
(
eval
$ac_compile
)
2>&5
;
}
;
then
rm
-rf
conftest
*
wine_cv_statfs_bfree
=
yes
else
...
...
@@ -6698,7 +6748,7 @@ EOF
fi
echo
$ac_n
"checking for statfs.f_bavail""...
$ac_c
"
1>&6
echo
"configure:67
0
2: checking for statfs.f_bavail"
>
&5
echo
"configure:67
5
2: checking for statfs.f_bavail"
>
&5
if
eval
"test
\"
`
echo
'$''{'
wine_cv_statfs_bavail
'+set}'
`
\"
= set"
;
then
echo
$ac_n
"(cached)
$ac_c
"
1>&6
else
...
...
@@ -6707,7 +6757,7 @@ else
wine_cv_statfs_bavail
=
no
else
cat
>
conftest.
$ac_ext
<<
EOF
#line 67
1
1 "configure"
#line 67
6
1 "configure"
#include "confdefs.h"
#include <sys/types.h>
...
...
@@ -6734,7 +6784,7 @@ int main() {
; return 0; }
EOF
if
{
(
eval echo
configure:67
3
8:
\"
$ac_compile
\"
)
1>&5
;
(
eval
$ac_compile
)
2>&5
;
}
;
then
if
{
(
eval echo
configure:67
8
8:
\"
$ac_compile
\"
)
1>&5
;
(
eval
$ac_compile
)
2>&5
;
}
;
then
rm
-rf
conftest
*
wine_cv_statfs_bavail
=
yes
else
...
...
@@ -6759,12 +6809,12 @@ fi
echo
$ac_n
"checking for msg_accrights in struct msghdr""...
$ac_c
"
1>&6
echo
"configure:6
76
3: checking for msg_accrights in struct msghdr"
>
&5
echo
"configure:6
81
3: checking for msg_accrights in struct msghdr"
>
&5
if
eval
"test
\"
`
echo
'$''{'
ac_cv_c_msg_accrights
'+set}'
`
\"
= set"
;
then
echo
$ac_n
"(cached)
$ac_c
"
1>&6
else
cat
>
conftest.
$ac_ext
<<
EOF
#line 6
76
8 "configure"
#line 6
81
8 "configure"
#include "confdefs.h"
#include <sys/types.h>
#include <sys/socket.h>
...
...
@@ -6772,7 +6822,7 @@ int main() {
struct msghdr hdr; hdr.msg_accrights=0
; return 0; }
EOF
if
{
(
eval echo
configure:6
77
6:
\"
$ac_compile
\"
)
1>&5
;
(
eval
$ac_compile
)
2>&5
;
}
;
then
if
{
(
eval echo
configure:6
82
6:
\"
$ac_compile
\"
)
1>&5
;
(
eval
$ac_compile
)
2>&5
;
}
;
then
rm
-rf
conftest
*
ac_cv_c_msg_accrights
=
"yes"
else
...
...
@@ -6795,12 +6845,12 @@ fi
echo
$ac_n
"checking for sa_len in struct sockaddr""...
$ac_c
"
1>&6
echo
"configure:6
79
9: checking for sa_len in struct sockaddr"
>
&5
echo
"configure:6
84
9: checking for sa_len in struct sockaddr"
>
&5
if
eval
"test
\"
`
echo
'$''{'
ac_cv_c_sockaddr_sa_len
'+set}'
`
\"
= set"
;
then
echo
$ac_n
"(cached)
$ac_c
"
1>&6
else
cat
>
conftest.
$ac_ext
<<
EOF
#line 68
0
4 "configure"
#line 68
5
4 "configure"
#include "confdefs.h"
#include <sys/types.h>
#include <sys/socket.h>
...
...
@@ -6809,7 +6859,7 @@ int main() {
static struct sockaddr addr; addr.sa_len = 1
; return 0; }
EOF
if
{
(
eval echo
configure:68
1
3:
\"
$ac_compile
\"
)
1>&5
;
(
eval
$ac_compile
)
2>&5
;
}
;
then
if
{
(
eval echo
configure:68
6
3:
\"
$ac_compile
\"
)
1>&5
;
(
eval
$ac_compile
)
2>&5
;
}
;
then
rm
-rf
conftest
*
ac_cv_c_sockaddr_sa_len
=
"yes"
else
...
...
@@ -6832,12 +6882,12 @@ fi
echo
$ac_n
"checking for sun_len in struct sockaddr_un""...
$ac_c
"
1>&6
echo
"configure:68
3
6: checking for sun_len in struct sockaddr_un"
>
&5
echo
"configure:68
8
6: checking for sun_len in struct sockaddr_un"
>
&5
if
eval
"test
\"
`
echo
'$''{'
ac_cv_c_sockaddr_sun_len
'+set}'
`
\"
= set"
;
then
echo
$ac_n
"(cached)
$ac_c
"
1>&6
else
cat
>
conftest.
$ac_ext
<<
EOF
#line 68
4
1 "configure"
#line 68
9
1 "configure"
#include "confdefs.h"
#include <sys/types.h>
#include <sys/socket.h>
...
...
@@ -6846,7 +6896,7 @@ int main() {
static struct sockaddr_un addr; addr.sun_len = 1
; return 0; }
EOF
if
{
(
eval echo
configure:6
85
0:
\"
$ac_compile
\"
)
1>&5
;
(
eval
$ac_compile
)
2>&5
;
}
;
then
if
{
(
eval echo
configure:6
90
0:
\"
$ac_compile
\"
)
1>&5
;
(
eval
$ac_compile
)
2>&5
;
}
;
then
rm
-rf
conftest
*
ac_cv_c_sockaddr_sun_len
=
"yes"
else
...
...
@@ -6869,12 +6919,12 @@ fi
echo
$ac_n
"checking whether we need to define __i386__""...
$ac_c
"
1>&6
echo
"configure:6
87
3: checking whether we need to define __i386__"
>
&5
echo
"configure:6
92
3: checking whether we need to define __i386__"
>
&5
if
eval
"test
\"
`
echo
'$''{'
ac_cv_cpp_def_i386
'+set}'
`
\"
= set"
;
then
echo
$ac_n
"(cached)
$ac_c
"
1>&6
else
cat
>
conftest.
$ac_ext
<<
EOF
#line 6
87
8 "configure"
#line 6
92
8 "configure"
#include "confdefs.h"
#if (defined(i386) || defined(__i386)) && !defined(__i386__)
yes
...
...
configure.in
View file @
93a5b868
...
...
@@ -652,6 +652,34 @@ then
[Define if symbols declared in assembly code need an underscore prefix])
fi
dnl **** Check whether stdcall symbols need to be decorated ****
AC_CACHE_CHECK([whether stdcall symbols need to be decorated],
ac_cv_c_stdcall_decoration,
[saved_libs=$LIBS
LIBS="conftest_asm.s $LIBS"
if test "$ac_cv_c_extern_prefix" = "yes"
then
cat > conftest_asm.s <<EOF
.globl _ac_test@0
_ac_test@0:
EOF
else
cat > conftest_asm.s <<EOF
.globl ac_test@0
ac_test@0:
EOF
fi
AC_TRY_LINK([extern void __attribute__((__stdcall__)) ac_test(void);],
[ac_test(); return 0],
ac_cv_c_stdcall_decoration="yes",ac_cv_c_stdcall_decoration="no")
LIBS=$saved_libs])
if test "$ac_cv_c_stdcall_decoration" = "yes"
then
AC_DEFINE(NEED_STDCALL_DECORATION, 1,
[Define if stdcall symbols need to be decorated])
fi
dnl **** Check for .string in assembler ****
AC_CACHE_CHECK([whether assembler accepts .string],
...
...
include/config.h.in
View file @
93a5b868
...
...
@@ -502,6 +502,9 @@
/* Define if symbols declared in assembly code need an underscore prefix */
#undef NEED_UNDERSCORE_PREFIX
/* Define if stdcall symbols need to be decorated */
#undef NEED_STDCALL_DECORATION
/* Define to use .string instead of .ascii */
#undef HAVE_ASM_STRING
...
...
tools/winebuild/build.h
View file @
93a5b868
...
...
@@ -153,6 +153,7 @@ extern void BuildRelays16( FILE *outfile );
extern
void
BuildRelays32
(
FILE
*
outfile
);
extern
void
BuildSpec16File
(
FILE
*
outfile
);
extern
void
BuildSpec32File
(
FILE
*
outfile
);
extern
void
BuildDef32File
(
FILE
*
outfile
);
extern
SPEC_TYPE
ParseTopLevel
(
FILE
*
file
);
/* global variables */
...
...
tools/winebuild/main.c
View file @
93a5b868
...
...
@@ -55,7 +55,15 @@ static FILE *input_file;
static
FILE
*
output_file
;
/* execution mode */
static
enum
{
MODE_NONE
,
MODE_SPEC
,
MODE_GLUE
,
MODE_RELAY16
,
MODE_RELAY32
}
exec_mode
=
MODE_NONE
;
static
enum
{
MODE_NONE
,
MODE_SPEC
,
MODE_GLUE
,
MODE_DEF
,
MODE_RELAY16
,
MODE_RELAY32
}
exec_mode
=
MODE_NONE
;
/* open the input file */
static
void
open_input
(
const
char
*
name
)
...
...
@@ -91,6 +99,7 @@ static void do_pic(void);
static
void
do_output
(
const
char
*
arg
);
static
void
do_usage
(
void
);
static
void
do_spec
(
const
char
*
arg
);
static
void
do_def
(
const
char
*
arg
);
static
void
do_glue
(
const
char
*
arg
);
static
void
do_relay16
(
void
);
static
void
do_relay32
(
void
);
...
...
@@ -105,6 +114,7 @@ static const struct option_descr option_table[] =
{
"-o"
,
1
,
do_output
,
"-o name Set the output file name (default: stdout)"
},
{
"-sym"
,
1
,
do_sym
,
"-sym file.o Read the list of undefined symbols from 'file.o'"
},
{
"-spec"
,
1
,
do_spec
,
"-spec file.spec Build a .c file from a spec file"
},
{
"-def"
,
1
,
do_def
,
"-def file.spec Build a .def file from a spec file"
},
{
"-glue"
,
1
,
do_glue
,
"-glue file.c Build the 16-bit glue for a .c file"
},
{
"-relay16"
,
0
,
do_relay16
,
"-relay16 Build the 16-bit relay assembly routines"
},
{
"-relay32"
,
0
,
do_relay32
,
"-relay32 Build the 32-bit relay assembly routines"
},
...
...
@@ -149,6 +159,13 @@ static void do_spec( const char *arg )
open_input
(
arg
);
}
static
void
do_def
(
const
char
*
arg
)
{
if
(
exec_mode
!=
MODE_NONE
||
!
arg
[
0
])
do_usage
();
exec_mode
=
MODE_DEF
;
open_input
(
arg
);
}
static
void
do_glue
(
const
char
*
arg
)
{
if
(
exec_mode
!=
MODE_NONE
||
!
arg
[
0
])
do_usage
();
...
...
@@ -244,6 +261,18 @@ int main(int argc, char **argv)
default:
assert
(
0
);
}
break
;
case
MODE_DEF
:
switch
(
ParseTopLevel
(
input_file
))
{
case
SPEC_WIN16
:
fatal_error
(
"Cannot yet build .def file for 16-bit dlls
\n
"
);
break
;
case
SPEC_WIN32
:
BuildDef32File
(
output_file
);
break
;
default:
assert
(
0
);
}
break
;
case
MODE_GLUE
:
BuildGlue
(
output_file
,
input_file
);
break
;
...
...
tools/winebuild/parser.c
View file @
93a5b868
...
...
@@ -510,7 +510,6 @@ SPEC_TYPE ParseTopLevel( FILE *file )
else
if
(
strcmp
(
token
,
"file"
)
==
0
)
{
strcpy
(
DLLFileName
,
GetToken
(
0
));
strupper
(
DLLFileName
);
}
else
if
(
strcmp
(
token
,
"type"
)
==
0
)
{
...
...
@@ -612,7 +611,12 @@ SPEC_TYPE ParseTopLevel( FILE *file )
if
(
!
DLLFileName
[
0
])
{
if
(
SpecMode
==
SPEC_MODE_DLL
)
sprintf
(
DLLFileName
,
"%s.dll"
,
DLLName
);
{
strcpy
(
DLLFileName
,
DLLName
);
/* Append .dll to name if no extension present */
if
(
!
strrchr
(
DLLFileName
,
'.'
))
strcat
(
DLLFileName
,
".dll"
);
}
else
sprintf
(
DLLFileName
,
"%s.exe"
,
DLLName
);
}
...
...
tools/winebuild/spec32.c
View file @
93a5b868
...
...
@@ -759,3 +759,70 @@ void BuildSpec32File( FILE *outfile )
"}
\n
"
,
DLLName
);
}
}
/*******************************************************************
* BuildDef32File
*
* Build a Win32 def file from a spec file.
*/
void
BuildDef32File
(
FILE
*
outfile
)
{
int
i
;
AssignOrdinals
();
fprintf
(
outfile
,
"; File generated automatically from %s; do not edit!
\n\n
"
,
input_file_name
);
fprintf
(
outfile
,
"LIBRARY lib%s
\n\n
"
,
DLLFileName
);
fprintf
(
outfile
,
"EXPORTS
\n
"
);
/* Output the exports and relay entry points */
for
(
i
=
0
;
i
<
nb_entry_points
;
i
++
)
{
ORDDEF
*
odp
=
EntryPoints
[
i
];
if
(
!
odp
||
!*
odp
->
name
||
(
odp
->
flags
&
FLAG_NOIMPORT
))
continue
;
fprintf
(
outfile
,
" %s"
,
odp
->
name
);
switch
(
odp
->
type
)
{
case
TYPE_EXTERN
:
case
TYPE_VARARGS
:
case
TYPE_CDECL
:
case
TYPE_VARIABLE
:
/* try to reduce output */
if
(
strcmp
(
odp
->
name
,
odp
->
link_name
))
fprintf
(
outfile
,
"=%s"
,
odp
->
link_name
);
break
;
case
TYPE_STDCALL
:
{
#ifdef NEED_STDCALL_DECORATION
int
at_param
=
strlen
(
odp
->
u
.
func
.
arg_types
)
*
sizeof
(
int
);
fprintf
(
outfile
,
"@%d"
,
at_param
);
#endif
/* NEED_STDCALL_DECORATION */
/* try to reduce output */
if
(
strcmp
(
odp
->
name
,
odp
->
link_name
))
{
fprintf
(
outfile
,
"=%s"
,
odp
->
link_name
);
#ifdef NEED_STDCALL_DECORATION
fprintf
(
outfile
,
"@%d"
,
at_param
);
#endif
/* NEED_STDCALL_DECORATION */
}
break
;
}
case
TYPE_STUB
:
fprintf
(
outfile
,
"=%s"
,
make_internal_name
(
odp
,
"stub"
));
break
;
case
TYPE_FORWARD
:
fprintf
(
outfile
,
"=lib%s"
,
odp
->
link_name
);
break
;
default:
assert
(
0
);
}
fprintf
(
outfile
,
" @%d
\n
"
,
odp
->
ordinal
);
}
}
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