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
15f96804
Commit
15f96804
authored
Jan 11, 2001
by
Ulrich Weigand
Committed by
Alexandre Julliard
Jan 11, 2001
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Replaced architecture-dependent configure checks by hardcoded
definitions in winnt.h (to avoid config.h dependency).
parent
d4be9197
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
85 additions
and
304 deletions
+85
-304
configure
configure
+69
-250
configure.in
configure.in
+0
-38
acconfig.h
include/acconfig.h
+0
-6
config.h.in
include/config.h.in
+0
-10
port.h
include/wine/port.h
+1
-0
winnt.h
include/winnt.h
+15
-0
No files found.
configure
View file @
15f96804
...
...
@@ -5436,204 +5436,23 @@ EOF
fi
echo
$ac_n
"checking whether byte ordering is bigendian""...
$ac_c
"
1>&6
echo
"configure:5441: checking whether byte ordering is bigendian"
>
&5
if
eval
"test
\"
`
echo
'$''{'
ac_cv_c_bigendian
'+set}'
`
\"
= set"
;
then
echo
$ac_n
"(cached)
$ac_c
"
1>&6
else
ac_cv_c_bigendian
=
unknown
# See if sys/param.h defines the BYTE_ORDER macro.
cat
>
conftest.
$ac_ext
<<
EOF
#line 5448 "configure"
#include "confdefs.h"
#include <sys/types.h>
#include <sys/param.h>
int main() {
#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
bogus endian macros
#endif
; return 0; }
EOF
if
{
(
eval echo
configure:5459:
\"
$ac_compile
\"
)
1>&5
;
(
eval
$ac_compile
)
2>&5
;
}
;
then
rm
-rf
conftest
*
# It does; now see whether it defined to BIG_ENDIAN or not.
cat
>
conftest.
$ac_ext
<<
EOF
#line 5463 "configure"
#include "confdefs.h"
#include <sys/types.h>
#include <sys/param.h>
int main() {
#if BYTE_ORDER != BIG_ENDIAN
not big endian
#endif
; return 0; }
EOF
if
{
(
eval echo
configure:5474:
\"
$ac_compile
\"
)
1>&5
;
(
eval
$ac_compile
)
2>&5
;
}
;
then
rm
-rf
conftest
*
ac_cv_c_bigendian
=
yes
else
echo
"configure: failed program was:"
>
&5
cat
conftest.
$ac_ext
>
&5
rm
-rf
conftest
*
ac_cv_c_bigendian
=
no
fi
rm
-f
conftest
*
else
echo
"configure: failed program was:"
>
&5
cat
conftest.
$ac_ext
>
&5
fi
rm
-f
conftest
*
if
test
$ac_cv_c_bigendian
=
unknown
;
then
if
test
"
$cross_compiling
"
=
yes
;
then
{
echo
"configure: error: can not run test program while cross compiling"
1>&2
;
exit
1
;
}
else
cat
>
conftest.
$ac_ext
<<
EOF
#line 5494 "configure"
#include "confdefs.h"
main () {
/* Are we little or big endian? From Harbison&Steele. */
union
{
long l;
char c[sizeof (long)];
} u;
u.l = 1;
exit (u.c[sizeof (long) - 1] == 1);
}
EOF
if
{
(
eval echo
configure:5507:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
${
ac_exeext
}
&&
(
./conftest
;
exit
)
2>/dev/null
then
ac_cv_c_bigendian
=
no
else
echo
"configure: failed program was:"
>
&5
cat
conftest.
$ac_ext
>
&5
rm
-fr
conftest
*
ac_cv_c_bigendian
=
yes
fi
rm
-fr
conftest
*
fi
fi
fi
echo
"
$ac_t
""
$ac_cv_c_bigendian
"
1>&6
if
test
$ac_cv_c_bigendian
=
yes
;
then
cat
>>
confdefs.h
<<
\
EOF
#define WORDS_BIGENDIAN 1
EOF
fi
echo
$ac_n
"checking "
whether bitfields are bigendian
"""...
$ac_c
"
1>&6
echo
"configure:5532: checking "
whether bitfields are bigendian
""
>
&5
if
eval
"test
\"
`
echo
'$''{'
wine_cv_bitfields_bigendian
'+set}'
`
\"
= set"
;
then
echo
$ac_n
"(cached)
$ac_c
"
1>&6
else
if
test
"
$cross_compiling
"
=
yes
;
then
wine_cv_bitfields_bigendian
=
no
else
cat
>
conftest.
$ac_ext
<<
EOF
#line 5540 "configure"
#include "confdefs.h"
union
{
int word;
struct
{
int bit0 : 1;
int rest : sizeof(int)*8 - 1;
} bitfield;
} u;
main() { u.word = 0; u.bitfield.bit0 = 1; exit( u.word == 1 ); }
EOF
if
{
(
eval echo
configure:5554:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
${
ac_exeext
}
&&
(
./conftest
;
exit
)
2>/dev/null
then
wine_cv_bitfields_bigendian
=
yes
else
echo
"configure: failed program was:"
>
&5
cat
conftest.
$ac_ext
>
&5
rm
-fr
conftest
*
wine_cv_bitfields_bigendian
=
no
fi
rm
-fr
conftest
*
fi
fi
echo
"
$ac_t
""
$wine_cv_bitfields_bigendian
"
1>&6
if
test
"
$wine_cv_bitfields_bigendian
"
=
"yes"
then
cat
>>
confdefs.h
<<
\
EOF
#define BITFIELDS_BIGENDIAN 1
EOF
fi
echo
$ac_n
"checking "
whether unaligned memory access is allowed
"""...
$ac_c
"
1>&6
echo
"configure:5578: checking "
whether unaligned memory access is allowed
""
>
&5
if
eval
"test
\"
`
echo
'$''{'
wine_cv_allow_unaligned_access
'+set}'
`
\"
= set"
;
then
echo
$ac_n
"(cached)
$ac_c
"
1>&6
else
if
test
"
$cross_compiling
"
=
yes
;
then
wine_cv_allow_unaligned_access
=
no
else
cat
>
conftest.
$ac_ext
<<
EOF
#line 5586 "configure"
#include "confdefs.h"
long volatile test[2];
main()
{
long volatile *ua = (long volatile *)((char *)test + 1);
*ua = 0;
exit(0);
}
EOF
if
{
(
eval echo
configure:5597:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
${
ac_exeext
}
&&
(
./conftest
;
exit
)
2>/dev/null
then
wine_cv_allow_unaligned_access
=
yes
else
echo
"configure: failed program was:"
>
&5
cat
conftest.
$ac_ext
>
&5
rm
-fr
conftest
*
wine_cv_allow_unaligned_access
=
no
fi
rm
-fr
conftest
*
fi
fi
echo
"
$ac_t
""
$wine_cv_allow_unaligned_access
"
1>&6
if
test
"
$wine_cv_allow_unaligned_access
"
=
"yes"
then
cat
>>
confdefs.h
<<
\
EOF
#define ALLOW_UNALIGNED_ACCESS 1
EOF
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
625
: checking for working alloca.h"
>
&5
echo
"configure:5
444
: 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
630
"configure"
#line 5
449
"configure"
#include "confdefs.h"
#include <alloca.h>
int main() {
void *p = alloca(2 * sizeof(int));
; return 0; }
EOF
if
{
(
eval echo
configure:5
637
:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
${
ac_exeext
}
;
then
if
{
(
eval echo
configure:5
456
:
\"
$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
...
...
@@ -5654,12 +5473,12 @@ EOF
fi
echo
$ac_n
"checking for alloca""...
$ac_c
"
1>&6
echo
"configure:5
658
: checking for alloca"
>
&5
echo
"configure:5
477
: 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 5
663
"configure"
#line 5
482
"configure"
#include "confdefs.h"
#ifdef __GNUC__
...
...
@@ -5687,7 +5506,7 @@ int main() {
char *p = (char *) alloca(1);
; return 0; }
EOF
if
{
(
eval echo
configure:5
691
:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
${
ac_exeext
}
;
then
if
{
(
eval echo
configure:5
510
:
\"
$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
...
...
@@ -5719,12 +5538,12 @@ EOF
echo
$ac_n
"checking whether alloca needs Cray hooks""...
$ac_c
"
1>&6
echo
"configure:5
723
: checking whether alloca needs Cray hooks"
>
&5
echo
"configure:5
542
: 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
728
"configure"
#line 5
547
"configure"
#include "confdefs.h"
#if defined(CRAY) && ! defined(CRAY2)
webecray
...
...
@@ -5749,12 +5568,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:5
753
: checking for
$ac_func
"
>
&5
echo
"configure:5
572
: 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
758
"configure"
#line 5
577
"configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
which can conflict with char
$ac_func
(); below. */
...
...
@@ -5777,7 +5596,7 @@ $ac_func();
; return 0; }
EOF
if
{
(
eval echo
configure:5
781
:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
${
ac_exeext
}
;
then
if
{
(
eval echo
configure:5
600
:
\"
$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
...
...
@@ -5804,7 +5623,7 @@ done
fi
echo
$ac_n
"checking stack direction for C alloca""...
$ac_c
"
1>&6
echo
"configure:5
808
: checking stack direction for C alloca"
>
&5
echo
"configure:5
627
: 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
...
...
@@ -5812,7 +5631,7 @@ else
ac_cv_c_stack_direction
=
0
else
cat
>
conftest.
$ac_ext
<<
EOF
#line 5
816
"configure"
#line 5
635
"configure"
#include "confdefs.h"
find_stack_direction ()
{
...
...
@@ -5831,7 +5650,7 @@ main ()
exit (find_stack_direction() < 0);
}
EOF
if
{
(
eval echo
configure:5
835
:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
${
ac_exeext
}
&&
(
./conftest
;
exit
)
2>/dev/null
if
{
(
eval echo
configure:5
654
:
\"
$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
...
...
@@ -5888,12 +5707,12 @@ for ac_func in \
do
echo
$ac_n
"checking for
$ac_func
""...
$ac_c
"
1>&6
echo
"configure:5
892
: checking for
$ac_func
"
>
&5
echo
"configure:5
711
: 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
897
"configure"
#line 5
716
"configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
which can conflict with char
$ac_func
(); below. */
...
...
@@ -5916,7 +5735,7 @@ $ac_func();
; return 0; }
EOF
if
{
(
eval echo
configure:5
920
:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
${
ac_exeext
}
;
then
if
{
(
eval echo
configure:5
739
:
\"
$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
...
...
@@ -5998,17 +5817,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:
6002
: checking for
$ac_hdr
"
>
&5
echo
"configure:
5821
: 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
6007
"configure"
#line
5826
"configure"
#include "confdefs.h"
#include <
$ac_hdr
>
EOF
ac_try
=
"
$ac_cpp
conftest.
$ac_ext
>/dev/null 2>conftest.out"
{
(
eval echo
configure:
6012
:
\"
$ac_try
\"
)
1>&5
;
(
eval
$ac_try
)
2>&5
;
}
{
(
eval echo
configure:
5831
:
\"
$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
*
...
...
@@ -6035,12 +5854,12 @@ fi
done
echo
$ac_n
"checking whether stat file-mode macros are broken""...
$ac_c
"
1>&6
echo
"configure:
6039
: checking whether stat file-mode macros are broken"
>
&5
echo
"configure:
5858
: 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
6044
"configure"
#line
5863
"configure"
#include "confdefs.h"
#include <sys/types.h>
#include <sys/stat.h>
...
...
@@ -6093,12 +5912,12 @@ fi
echo
$ac_n
"checking for working const""...
$ac_c
"
1>&6
echo
"configure:
6097
: checking for working const"
>
&5
echo
"configure:
5916
: 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
6102
"configure"
#line
5921
"configure"
#include "confdefs.h"
int main() {
...
...
@@ -6147,7 +5966,7 @@ ccp = (char const *const *) p;
; return 0; }
EOF
if
{
(
eval echo
configure:
6151
:
\"
$ac_compile
\"
)
1>&5
;
(
eval
$ac_compile
)
2>&5
;
}
;
then
if
{
(
eval echo
configure:
5970
:
\"
$ac_compile
\"
)
1>&5
;
(
eval
$ac_compile
)
2>&5
;
}
;
then
rm
-rf
conftest
*
ac_cv_c_const
=
yes
else
...
...
@@ -6168,21 +5987,21 @@ EOF
fi
echo
$ac_n
"checking for inline""...
$ac_c
"
1>&6
echo
"configure:
6172
: checking for inline"
>
&5
echo
"configure:
5991
: 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
6179
"configure"
#line
5998
"configure"
#include "confdefs.h"
int main() {
} int
$ac_kw
foo() {
; return 0; }
EOF
if
{
(
eval echo
configure:6
186
:
\"
$ac_compile
\"
)
1>&5
;
(
eval
$ac_compile
)
2>&5
;
}
;
then
if
{
(
eval echo
configure:6
005
:
\"
$ac_compile
\"
)
1>&5
;
(
eval
$ac_compile
)
2>&5
;
}
;
then
rm
-rf
conftest
*
ac_cv_c_inline
=
$ac_kw
;
break
else
...
...
@@ -6208,12 +6027,12 @@ EOF
esac
echo
$ac_n
"checking for ANSI C header files""...
$ac_c
"
1>&6
echo
"configure:6
212
: checking for ANSI C header files"
>
&5
echo
"configure:6
031
: 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
217
"configure"
#line 6
036
"configure"
#include "confdefs.h"
#include <stdlib.h>
#include <stdarg.h>
...
...
@@ -6221,7 +6040,7 @@ else
#include <float.h>
EOF
ac_try
=
"
$ac_cpp
conftest.
$ac_ext
>/dev/null 2>conftest.out"
{
(
eval echo
configure:6
225
:
\"
$ac_try
\"
)
1>&5
;
(
eval
$ac_try
)
2>&5
;
}
{
(
eval echo
configure:6
044
:
\"
$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
*
...
...
@@ -6238,7 +6057,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 6
242
"configure"
#line 6
061
"configure"
#include "confdefs.h"
#include <string.h>
EOF
...
...
@@ -6256,7 +6075,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 6
260
"configure"
#line 6
079
"configure"
#include "confdefs.h"
#include <stdlib.h>
EOF
...
...
@@ -6277,7 +6096,7 @@ if test "$cross_compiling" = yes; then
:
else
cat
>
conftest.
$ac_ext
<<
EOF
#line 6
281
"configure"
#line 6
100
"configure"
#include "confdefs.h"
#include <ctype.h>
#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
...
...
@@ -6288,7 +6107,7 @@ if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
exit (0); }
EOF
if
{
(
eval echo
configure:6
292
:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
${
ac_exeext
}
&&
(
./conftest
;
exit
)
2>/dev/null
if
{
(
eval echo
configure:6
111
:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
${
ac_exeext
}
&&
(
./conftest
;
exit
)
2>/dev/null
then
:
else
...
...
@@ -6312,12 +6131,12 @@ EOF
fi
echo
$ac_n
"checking for size_t""...
$ac_c
"
1>&6
echo
"configure:6
316
: checking for size_t"
>
&5
echo
"configure:6
135
: 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
321
"configure"
#line 6
140
"configure"
#include "confdefs.h"
#include <sys/types.h>
#if STDC_HEADERS
...
...
@@ -6345,7 +6164,7 @@ EOF
fi
echo
$ac_n
"checking size of long long""...
$ac_c
"
1>&6
echo
"configure:6
349
: checking size of long long"
>
&5
echo
"configure:6
168
: 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
...
...
@@ -6353,7 +6172,7 @@ else
ac_cv_sizeof_long_long
=
0
else
cat
>
conftest.
$ac_ext
<<
EOF
#line 6
357
"configure"
#line 6
176
"configure"
#include "confdefs.h"
#include <stdio.h>
main()
...
...
@@ -6364,7 +6183,7 @@ main()
exit(0);
}
EOF
if
{
(
eval echo
configure:6
368
:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
${
ac_exeext
}
&&
(
./conftest
;
exit
)
2>/dev/null
if
{
(
eval echo
configure:6
187
:
\"
$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
...
...
@@ -6386,12 +6205,12 @@ EOF
echo
$ac_n
"checking "
whether we can use re-entrant gethostbyname_r Linux style
"""...
$ac_c
"
1>&6
echo
"configure:6
390
: checking "
whether we can use re-entrant gethostbyname_r Linux style
""
>
&5
echo
"configure:6
209
: 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 6
395
"configure"
#line 6
214
"configure"
#include "confdefs.h"
#include <netdb.h>
...
...
@@ -6412,7 +6231,7 @@ int main() {
; return 0; }
EOF
if
{
(
eval echo
configure:6
416
:
\"
$ac_compile
\"
)
1>&5
;
(
eval
$ac_compile
)
2>&5
;
}
;
then
if
{
(
eval echo
configure:6
235
:
\"
$ac_compile
\"
)
1>&5
;
(
eval
$ac_compile
)
2>&5
;
}
;
then
rm
-rf
conftest
*
wine_cv_linux_gethostbyname_r_6
=
yes
else
...
...
@@ -6438,12 +6257,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
442
: checking "
whether linux/joystick.h uses the Linux 2.2+ API
""
>
&5
echo
"configure:6
261
: 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
447
"configure"
#line 6
266
"configure"
#include "confdefs.h"
#include <sys/ioctl.h>
...
...
@@ -6458,7 +6277,7 @@ int main() {
/*empty*/
; return 0; }
EOF
if
{
(
eval echo
configure:6
462
:
\"
$ac_compile
\"
)
1>&5
;
(
eval
$ac_compile
)
2>&5
;
}
;
then
if
{
(
eval echo
configure:6
281
:
\"
$ac_compile
\"
)
1>&5
;
(
eval
$ac_compile
)
2>&5
;
}
;
then
rm
-rf
conftest
*
wine_cv_linux_joystick_22_api
=
yes
else
...
...
@@ -6485,12 +6304,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:6
489
: checking "
whether sys/vfs.h defines statfs
""
>
&5
echo
"configure:6
308
: 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 6
494
"configure"
#line 6
313
"configure"
#include "confdefs.h"
#include <sys/types.h>
...
...
@@ -6507,7 +6326,7 @@ int main() {
; return 0; }
EOF
if
{
(
eval echo
configure:6
511
:
\"
$ac_compile
\"
)
1>&5
;
(
eval
$ac_compile
)
2>&5
;
}
;
then
if
{
(
eval echo
configure:6
330
:
\"
$ac_compile
\"
)
1>&5
;
(
eval
$ac_compile
)
2>&5
;
}
;
then
rm
-rf
conftest
*
wine_cv_sys_vfs_has_statfs
=
yes
else
...
...
@@ -6534,12 +6353,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:6
538
: checking "
whether sys/statfs.h defines statfs
""
>
&5
echo
"configure:6
357
: 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
543
"configure"
#line 6
362
"configure"
#include "confdefs.h"
#include <sys/types.h>
...
...
@@ -6554,7 +6373,7 @@ int main() {
; return 0; }
EOF
if
{
(
eval echo
configure:6
558
:
\"
$ac_compile
\"
)
1>&5
;
(
eval
$ac_compile
)
2>&5
;
}
;
then
if
{
(
eval echo
configure:6
377
:
\"
$ac_compile
\"
)
1>&5
;
(
eval
$ac_compile
)
2>&5
;
}
;
then
rm
-rf
conftest
*
wine_cv_sys_statfs_has_statfs
=
yes
else
...
...
@@ -6581,12 +6400,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
585
: checking "
whether sys/mount.h defines statfs
""
>
&5
echo
"configure:6
404
: 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 6
590
"configure"
#line 6
409
"configure"
#include "confdefs.h"
#include <sys/types.h>
...
...
@@ -6601,7 +6420,7 @@ int main() {
; return 0; }
EOF
if
{
(
eval echo
configure:6
605
:
\"
$ac_compile
\"
)
1>&5
;
(
eval
$ac_compile
)
2>&5
;
}
;
then
if
{
(
eval echo
configure:6
424
:
\"
$ac_compile
\"
)
1>&5
;
(
eval
$ac_compile
)
2>&5
;
}
;
then
rm
-rf
conftest
*
wine_cv_sys_mount_has_statfs
=
yes
else
...
...
@@ -6627,7 +6446,7 @@ fi
echo
$ac_n
"checking "
for
statfs.f_bfree
"""...
$ac_c
"
1>&6
echo
"configure:6
631
: checking "
for
statfs.f_bfree
""
>
&5
echo
"configure:6
450
: 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
...
...
@@ -6636,7 +6455,7 @@ else
wine_cv_statfs_bfree
=
no
else
cat
>
conftest.
$ac_ext
<<
EOF
#line 6
640
"configure"
#line 6
459
"configure"
#include "confdefs.h"
#include <sys/types.h>
...
...
@@ -6663,7 +6482,7 @@ int main() {
; return 0; }
EOF
if
{
(
eval echo
configure:6
667
:
\"
$ac_compile
\"
)
1>&5
;
(
eval
$ac_compile
)
2>&5
;
}
;
then
if
{
(
eval echo
configure:6
486
:
\"
$ac_compile
\"
)
1>&5
;
(
eval
$ac_compile
)
2>&5
;
}
;
then
rm
-rf
conftest
*
wine_cv_statfs_bfree
=
yes
else
...
...
@@ -6687,7 +6506,7 @@ EOF
fi
echo
$ac_n
"checking "
for
statfs.f_bavail
"""...
$ac_c
"
1>&6
echo
"configure:6
691
: checking "
for
statfs.f_bavail
""
>
&5
echo
"configure:6
510
: 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
...
...
@@ -6696,7 +6515,7 @@ else
wine_cv_statfs_bavail
=
no
else
cat
>
conftest.
$ac_ext
<<
EOF
#line 6
700
"configure"
#line 6
519
"configure"
#include "confdefs.h"
#include <sys/types.h>
...
...
@@ -6723,7 +6542,7 @@ int main() {
; return 0; }
EOF
if
{
(
eval echo
configure:6
727
:
\"
$ac_compile
\"
)
1>&5
;
(
eval
$ac_compile
)
2>&5
;
}
;
then
if
{
(
eval echo
configure:6
546
:
\"
$ac_compile
\"
)
1>&5
;
(
eval
$ac_compile
)
2>&5
;
}
;
then
rm
-rf
conftest
*
wine_cv_statfs_bavail
=
yes
else
...
...
@@ -6748,12 +6567,12 @@ fi
echo
$ac_n
"checking "
for
msg_accrights
in
struct msghdr
"""...
$ac_c
"
1>&6
echo
"configure:6
752
: checking "
for
msg_accrights
in
struct msghdr
""
>
&5
echo
"configure:6
571
: 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
757
"configure"
#line 6
576
"configure"
#include "confdefs.h"
#include <sys/types.h>
#include <sys/socket.h>
...
...
@@ -6761,7 +6580,7 @@ int main() {
struct msghdr hdr; hdr.msg_accrights=0
; return 0; }
EOF
if
{
(
eval echo
configure:6
765
:
\"
$ac_compile
\"
)
1>&5
;
(
eval
$ac_compile
)
2>&5
;
}
;
then
if
{
(
eval echo
configure:6
584
:
\"
$ac_compile
\"
)
1>&5
;
(
eval
$ac_compile
)
2>&5
;
}
;
then
rm
-rf
conftest
*
ac_cv_c_msg_accrights
=
"yes"
else
...
...
@@ -6784,12 +6603,12 @@ fi
echo
$ac_n
"checking "
for
sun_len
in
struct sockaddr_un
"""...
$ac_c
"
1>&6
echo
"configure:6
788
: checking "
for
sun_len
in
struct sockaddr_un
""
>
&5
echo
"configure:6
607
: checking "
for
sun_len
in
struct sockaddr_un
""
>
&5
if
eval
"test
\"
`
echo
'$''{'
ac_cv_c_sun_len
'+set}'
`
\"
= set"
;
then
echo
$ac_n
"(cached)
$ac_c
"
1>&6
else
cat
>
conftest.
$ac_ext
<<
EOF
#line 6
793
"configure"
#line 6
612
"configure"
#include "confdefs.h"
#include <sys/types.h>
#include <sys/socket.h>
...
...
@@ -6798,7 +6617,7 @@ int main() {
static struct sockaddr_un addr; addr.sun_len = 1
; return 0; }
EOF
if
{
(
eval echo
configure:6
802
:
\"
$ac_compile
\"
)
1>&5
;
(
eval
$ac_compile
)
2>&5
;
}
;
then
if
{
(
eval echo
configure:6
621
:
\"
$ac_compile
\"
)
1>&5
;
(
eval
$ac_compile
)
2>&5
;
}
;
then
rm
-rf
conftest
*
ac_cv_c_sun_len
=
"yes"
else
...
...
@@ -6821,12 +6640,12 @@ fi
echo
$ac_n
"checking "
whether we need to define __i386__
"""...
$ac_c
"
1>&6
echo
"configure:6
825
: checking "
whether we need to define __i386__
""
>
&5
echo
"configure:6
644
: 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
830
"configure"
#line 6
649
"configure"
#include "confdefs.h"
#if (defined(i386) || defined(__i386)) && !defined(__i386__)
yes
...
...
configure.in
View file @
15f96804
...
...
@@ -773,44 +773,6 @@ then
AC_DEFINE(NO_REENTRANT_X11)
fi
dnl **** Check for endianness ****
AC_C_BIGENDIAN
AC_CACHE_CHECK( "whether bitfields are bigendian", wine_cv_bitfields_bigendian,
[AC_TRY_RUN([
union
{
int word;
struct
{
int bit0 : 1;
int rest : sizeof(int)*8 - 1;
} bitfield;
} u;
main() { u.word = 0; u.bitfield.bit0 = 1; exit( u.word == 1 ); } ],
wine_cv_bitfields_bigendian=yes, wine_cv_bitfields_bigendian=no,
wine_cv_bitfields_bigendian=no ) ])
if test "$wine_cv_bitfields_bigendian" = "yes"
then
AC_DEFINE(BITFIELDS_BIGENDIAN)
fi
AC_CACHE_CHECK( "whether unaligned memory access is allowed", wine_cv_allow_unaligned_access,
[AC_TRY_RUN([
long volatile test[2];
main()
{
long volatile *ua = (long volatile *)((char *)test + 1);
*ua = 0;
exit(0);
} ], wine_cv_allow_unaligned_access=yes, wine_cv_allow_unaligned_access=no,
wine_cv_allow_unaligned_access=no ) ])
if test "$wine_cv_allow_unaligned_access" = "yes"
then
AC_DEFINE(ALLOW_UNALIGNED_ACCESS)
fi
dnl **** Check for functions ****
...
...
include/acconfig.h
View file @
15f96804
...
...
@@ -3,12 +3,6 @@
* defined in the 'configure' script.
*/
/* Define if bitfields are bigendian */
#undef BITFIELDS_BIGENDIAN
/* Define if unaligned memory access is allowed */
#undef ALLOW_UNALIGNED_ACCESS
/* Define if .type asm directive must be inside a .def directive */
#undef NEED_TYPE_IN_DEF
...
...
include/config.h.in
View file @
15f96804
...
...
@@ -37,22 +37,12 @@
/* Define if you have the ANSI C header files. */
#undef STDC_HEADERS
/* Define if your processor stores words with the most significant
byte first (like Motorola and SPARC, unlike Intel and VAX). */
#undef WORDS_BIGENDIAN
/* Define if the X Window System is missing or not being used. */
#undef X_DISPLAY_MISSING
/* Define if lex declares yytext as a char * by default, not a char[]. */
#undef YYTEXT_POINTER
/* Define if bitfields are bigendian */
#undef BITFIELDS_BIGENDIAN
/* Define if unaligned memory access is allowed */
#undef ALLOW_UNALIGNED_ACCESS
/* Define if .type asm directive must be inside a .def directive */
#undef NEED_TYPE_IN_DEF
...
...
include/wine/port.h
View file @
15f96804
...
...
@@ -7,6 +7,7 @@
#define __WINE_WINE_PORT_H
#include "config.h"
#include "winnt.h"
#include <sys/types.h>
#include <sys/time.h>
...
...
include/winnt.h
View file @
15f96804
...
...
@@ -27,6 +27,21 @@
/**** Some Wine specific definitions *****/
/* Architecture dependent settings. */
/* These are hardcoded to avoid dependencies on config.h in Winelib apps. */
#if defined(__i386__)
# undef WORDS_BIGENDIAN
# undef BITFIELDS_BIGENDIAN
# define ALLOW_UNALIGNED_ACCESS
#elif defined(__sparc__)
# define WORDS_BIGENDIAN
# define BITFIELDS_BIGENDIAN
# undef ALLOW_UNALIGNED_ACCESS
#elif !defined(RC_INVOKED)
# error Unknown CPU architecture!
#endif
/* Calling conventions definitions */
#ifdef __i386__
...
...
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