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
aeb92b1c
Commit
aeb92b1c
authored
Jul 12, 2001
by
Lionel Ulmer
Committed by
Alexandre Julliard
Jul 12, 2001
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- removed unused OSMesa linking
- removed OSMesa code
parent
f41de977
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
171 additions
and
426 deletions
+171
-426
configure
configure
+171
-293
configure.in
configure.in
+0
-11
mesa.c
dlls/ddraw/d3ddevice/mesa.c
+0
-112
mesa_private.h
dlls/ddraw/mesa_private.h
+0
-7
config.h.in
include/config.h.in
+0
-3
No files found.
configure
View file @
aeb92b1c
...
...
@@ -3989,131 +3989,9 @@ EOF
OPENGL32_DLL
=
opengl32
fi
for
ac_hdr
in
GL/osmesa.h
do
ac_safe
=
`
echo
"
$ac_hdr
"
|
sed
'y%./+-%__p_%'
`
echo
$ac_n
"checking for
$ac_hdr
""...
$ac_c
"
1>&6
echo
"configure:3997: 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 4002 "configure"
#include "confdefs.h"
#include <
$ac_hdr
>
EOF
ac_try
=
"
$ac_cpp
conftest.
$ac_ext
>/dev/null 2>conftest.out"
{
(
eval echo
configure:4007:
\"
$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
*
eval
"ac_cv_header_
$ac_safe
=yes"
else
echo
"
$ac_err
"
>
&5
echo
"configure: failed program was:"
>
&5
cat
conftest.
$ac_ext
>
&5
rm
-rf
conftest
*
eval
"ac_cv_header_
$ac_safe
=no"
fi
rm
-f
conftest
*
fi
if
eval
"test
\"
`
echo
'$ac_cv_header_'
$ac_safe
`
\"
= yes"
;
then
echo
"
$ac_t
""yes"
1>&6
ac_tr_hdr
=
HAVE_
`
echo
$ac_hdr
|
sed
'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'
`
cat
>>
confdefs.h
<<
EOF
#define
$ac_tr_hdr
1
EOF
echo
$ac_n
"checking for OSMesaCreateContext in -lGL""...
$ac_c
"
1>&6
echo
"configure:4028: checking for OSMesaCreateContext in -lGL"
>
&5
ac_lib_var
=
`
echo
GL
'_'
OSMesaCreateContext |
sed
'y%./+-%__p_%'
`
if
eval
"test
\"
`
echo
'$''{'
ac_cv_lib_
$ac_lib_var
'+set}'
`
\"
= set"
;
then
echo
$ac_n
"(cached)
$ac_c
"
1>&6
else
ac_save_LIBS
=
"
$LIBS
"
LIBS
=
"-lGL
$X_LIBS
-lXext -lX11 -lm
$X_EXTRA_LIBS
$LIBS
"
cat
>
conftest.
$ac_ext
<<
EOF
#line 4037 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */
char OSMesaCreateContext();
int main() {
OSMesaCreateContext()
; return 0; }
EOF
if
{
(
eval echo
configure:4048:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
${
ac_exeext
}
;
then
rm
-rf
conftest
*
eval
"ac_cv_lib_
$ac_lib_var
=yes"
else
echo
"configure: failed program was:"
>
&5
cat
conftest.
$ac_ext
>
&5
rm
-rf
conftest
*
eval
"ac_cv_lib_
$ac_lib_var
=no"
fi
rm
-f
conftest
*
LIBS
=
"
$ac_save_LIBS
"
fi
if
eval
"test
\"
`
echo
'$ac_cv_lib_'
$ac_lib_var
`
\"
= yes"
;
then
echo
"
$ac_t
""yes"
1>&6
X_PRE_LIBS
=
"
$X_PRE_LIBS
-lGL"
else
echo
"
$ac_t
""no"
1>&6
echo
$ac_n
"checking for OSMesaCreateContext in -lOSMesa""...
$ac_c
"
1>&6
echo
"configure:4067: checking for OSMesaCreateContext in -lOSMesa"
>
&5
ac_lib_var
=
`
echo
OSMesa
'_'
OSMesaCreateContext |
sed
'y%./+-%__p_%'
`
if
eval
"test
\"
`
echo
'$''{'
ac_cv_lib_
$ac_lib_var
'+set}'
`
\"
= set"
;
then
echo
$ac_n
"(cached)
$ac_c
"
1>&6
else
ac_save_LIBS
=
"
$LIBS
"
LIBS
=
"-lOSMesa -lGL
$X_LIBS
-lXext -lX11 -lm
$X_EXTRA_LIBS
$LIBS
"
cat
>
conftest.
$ac_ext
<<
EOF
#line 4075 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */
char OSMesaCreateContext();
int main() {
OSMesaCreateContext()
; return 0; }
EOF
if
{
(
eval echo
configure:4086:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
${
ac_exeext
}
;
then
rm
-rf
conftest
*
eval
"ac_cv_lib_
$ac_lib_var
=yes"
else
echo
"configure: failed program was:"
>
&5
cat
conftest.
$ac_ext
>
&5
rm
-rf
conftest
*
eval
"ac_cv_lib_
$ac_lib_var
=no"
fi
rm
-f
conftest
*
LIBS
=
"
$ac_save_LIBS
"
fi
if
eval
"test
\"
`
echo
'$ac_cv_lib_'
$ac_lib_var
`
\"
= yes"
;
then
echo
"
$ac_t
""yes"
1>&6
X_PRE_LIBS
=
"
$X_PRE_LIBS
-lOSMesa"
else
echo
"
$ac_t
""no"
1>&6
fi
fi
else
echo
"
$ac_t
""no"
1>&6
fi
done
fi
echo
$ac_n
"checking for glBegin in -lGLU""...
$ac_c
"
1>&6
echo
"configure:
4117
: checking for glBegin in -lGLU"
>
&5
echo
"configure:
3995
: checking for glBegin in -lGLU"
>
&5
ac_lib_var
=
`
echo
GLU
'_'
glBegin |
sed
'y%./+-%__p_%'
`
if
eval
"test
\"
`
echo
'$''{'
ac_cv_lib_
$ac_lib_var
'+set}'
`
\"
= set"
;
then
echo
$ac_n
"(cached)
$ac_c
"
1>&6
...
...
@@ -4122,7 +4000,7 @@ else
LIBS
=
"-lGLU
$X_LIBS
$X_PRE_LIBS
-lXext -lX11 -lm
$X_EXTRA_LIBS
$LIBS
"
cat
>
conftest.
$ac_ext
<<
EOF
#line 4
126
"configure"
#line 4
004
"configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
...
...
@@ -4133,7 +4011,7 @@ int main() {
glBegin()
; return 0; }
EOF
if
{
(
eval echo
configure:4
137
:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
${
ac_exeext
}
;
then
if
{
(
eval echo
configure:4
015
:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
${
ac_exeext
}
;
then
rm
-rf
conftest
*
eval
"ac_cv_lib_
$ac_lib_var
=yes"
else
...
...
@@ -4175,17 +4053,17 @@ then
do
ac_safe
=
`
echo
"
$ac_hdr
"
|
sed
'y%./+-%__p_%'
`
echo
$ac_n
"checking for
$ac_hdr
""...
$ac_c
"
1>&6
echo
"configure:4
179
: checking for
$ac_hdr
"
>
&5
echo
"configure:4
057
: 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 4
184
"configure"
#line 4
062
"configure"
#include "confdefs.h"
#include <
$ac_hdr
>
EOF
ac_try
=
"
$ac_cpp
conftest.
$ac_ext
>/dev/null 2>conftest.out"
{
(
eval echo
configure:4
189
:
\"
$ac_try
\"
)
1>&5
;
(
eval
$ac_try
)
2>&5
;
}
{
(
eval echo
configure:4
067
:
\"
$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
*
...
...
@@ -4206,7 +4084,7 @@ if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
#define
$ac_tr_hdr
1
EOF
echo
$ac_n
"checking for waddch in -lncurses""...
$ac_c
"
1>&6
echo
"configure:4
210
: checking for waddch in -lncurses"
>
&5
echo
"configure:4
088
: checking for waddch in -lncurses"
>
&5
ac_lib_var
=
`
echo
ncurses
'_'
waddch |
sed
'y%./+-%__p_%'
`
if
eval
"test
\"
`
echo
'$''{'
ac_cv_lib_
$ac_lib_var
'+set}'
`
\"
= set"
;
then
echo
$ac_n
"(cached)
$ac_c
"
1>&6
...
...
@@ -4214,7 +4092,7 @@ else
ac_save_LIBS
=
"
$LIBS
"
LIBS
=
"-lncurses
$LIBS
"
cat
>
conftest.
$ac_ext
<<
EOF
#line 4
218
"configure"
#line 4
096
"configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
...
...
@@ -4225,7 +4103,7 @@ int main() {
waddch()
; return 0; }
EOF
if
{
(
eval echo
configure:4
229
:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
${
ac_exeext
}
;
then
if
{
(
eval echo
configure:4
107
:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
${
ac_exeext
}
;
then
rm
-rf
conftest
*
eval
"ac_cv_lib_
$ac_lib_var
=yes"
else
...
...
@@ -4258,17 +4136,17 @@ for ac_hdr in curses.h
do
ac_safe
=
`
echo
"
$ac_hdr
"
|
sed
'y%./+-%__p_%'
`
echo
$ac_n
"checking for
$ac_hdr
""...
$ac_c
"
1>&6
echo
"configure:4
262
: checking for
$ac_hdr
"
>
&5
echo
"configure:4
140
: 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 4
267
"configure"
#line 4
145
"configure"
#include "confdefs.h"
#include <
$ac_hdr
>
EOF
ac_try
=
"
$ac_cpp
conftest.
$ac_ext
>/dev/null 2>conftest.out"
{
(
eval echo
configure:4
272
:
\"
$ac_try
\"
)
1>&5
;
(
eval
$ac_try
)
2>&5
;
}
{
(
eval echo
configure:4
150
:
\"
$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
*
...
...
@@ -4289,7 +4167,7 @@ if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
#define
$ac_tr_hdr
1
EOF
echo
$ac_n
"checking for waddch in -lcurses""...
$ac_c
"
1>&6
echo
"configure:4
293
: checking for waddch in -lcurses"
>
&5
echo
"configure:4
171
: checking for waddch in -lcurses"
>
&5
ac_lib_var
=
`
echo
curses
'_'
waddch |
sed
'y%./+-%__p_%'
`
if
eval
"test
\"
`
echo
'$''{'
ac_cv_lib_
$ac_lib_var
'+set}'
`
\"
= set"
;
then
echo
$ac_n
"(cached)
$ac_c
"
1>&6
...
...
@@ -4297,7 +4175,7 @@ else
ac_save_LIBS
=
"
$LIBS
"
LIBS
=
"-lcurses
$LIBS
"
cat
>
conftest.
$ac_ext
<<
EOF
#line 4
301
"configure"
#line 4
179
"configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
...
...
@@ -4308,7 +4186,7 @@ int main() {
waddch()
; return 0; }
EOF
if
{
(
eval echo
configure:4
312
:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
${
ac_exeext
}
;
then
if
{
(
eval echo
configure:4
190
:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
${
ac_exeext
}
;
then
rm
-rf
conftest
*
eval
"ac_cv_lib_
$ac_lib_var
=yes"
else
...
...
@@ -4346,12 +4224,12 @@ done
for
ac_func
in
getbkgd resizeterm
do
echo
$ac_n
"checking for
$ac_func
""...
$ac_c
"
1>&6
echo
"configure:4
350
: checking for
$ac_func
"
>
&5
echo
"configure:4
228
: 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 4
355
"configure"
#line 4
233
"configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
which can conflict with char
$ac_func
(); below. */
...
...
@@ -4374,7 +4252,7 @@ $ac_func();
; return 0; }
EOF
if
{
(
eval echo
configure:4
378
:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
${
ac_exeext
}
;
then
if
{
(
eval echo
configure:4
256
:
\"
$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
...
...
@@ -4403,7 +4281,7 @@ fi
CUPSLIBS
=
""
wine_cv_warn_cups_h
=
no
echo
$ac_n
"checking for cupsGetPPD in -lcups""...
$ac_c
"
1>&6
echo
"configure:4
407
: checking for cupsGetPPD in -lcups"
>
&5
echo
"configure:4
285
: checking for cupsGetPPD in -lcups"
>
&5
ac_lib_var
=
`
echo
cups
'_'
cupsGetPPD |
sed
'y%./+-%__p_%'
`
if
eval
"test
\"
`
echo
'$''{'
ac_cv_lib_
$ac_lib_var
'+set}'
`
\"
= set"
;
then
echo
$ac_n
"(cached)
$ac_c
"
1>&6
...
...
@@ -4411,7 +4289,7 @@ else
ac_save_LIBS
=
"
$LIBS
"
LIBS
=
"-lcups
$LIBS
"
cat
>
conftest.
$ac_ext
<<
EOF
#line 4
415
"configure"
#line 4
293
"configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
...
...
@@ -4422,7 +4300,7 @@ int main() {
cupsGetPPD()
; return 0; }
EOF
if
{
(
eval echo
configure:4
426
:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
${
ac_exeext
}
;
then
if
{
(
eval echo
configure:4
304
:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
${
ac_exeext
}
;
then
rm
-rf
conftest
*
eval
"ac_cv_lib_
$ac_lib_var
=yes"
else
...
...
@@ -4439,17 +4317,17 @@ if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
echo
"
$ac_t
""yes"
1>&6
ac_safe
=
`
echo
"cups/cups.h"
|
sed
'y%./+-%__p_%'
`
echo
$ac_n
"checking for cups/cups.h""...
$ac_c
"
1>&6
echo
"configure:4
443
: checking for cups/cups.h"
>
&5
echo
"configure:4
321
: checking for cups/cups.h"
>
&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 4
448
"configure"
#line 4
326
"configure"
#include "confdefs.h"
#include <cups/cups.h>
EOF
ac_try
=
"
$ac_cpp
conftest.
$ac_ext
>/dev/null 2>conftest.out"
{
(
eval echo
configure:4
453
:
\"
$ac_try
\"
)
1>&5
;
(
eval
$ac_try
)
2>&5
;
}
{
(
eval echo
configure:4
331
:
\"
$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
*
...
...
@@ -4483,7 +4361,7 @@ fi
echo
$ac_n
"checking for FT_Init_FreeType in -lfreetype""...
$ac_c
"
1>&6
echo
"configure:4
487
: checking for FT_Init_FreeType in -lfreetype"
>
&5
echo
"configure:4
365
: checking for FT_Init_FreeType in -lfreetype"
>
&5
ac_lib_var
=
`
echo
freetype
'_'
FT_Init_FreeType |
sed
'y%./+-%__p_%'
`
if
eval
"test
\"
`
echo
'$''{'
ac_cv_lib_
$ac_lib_var
'+set}'
`
\"
= set"
;
then
echo
$ac_n
"(cached)
$ac_c
"
1>&6
...
...
@@ -4491,7 +4369,7 @@ else
ac_save_LIBS
=
"
$LIBS
"
LIBS
=
"-lfreetype
$LIBS
"
cat
>
conftest.
$ac_ext
<<
EOF
#line 4
495
"configure"
#line 4
373
"configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
...
...
@@ -4502,7 +4380,7 @@ int main() {
FT_Init_FreeType()
; return 0; }
EOF
if
{
(
eval echo
configure:4
506
:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
${
ac_exeext
}
;
then
if
{
(
eval echo
configure:4
384
:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
${
ac_exeext
}
;
then
rm
-rf
conftest
*
eval
"ac_cv_lib_
$ac_lib_var
=yes"
else
...
...
@@ -4532,7 +4410,7 @@ else
# Extract the first word of "freetype-config", so it can be a program name with args.
set
dummy freetype-config
;
ac_word
=
$2
echo
$ac_n
"checking for
$ac_word
""...
$ac_c
"
1>&6
echo
"configure:4
536
: checking for
$ac_word
"
>
&5
echo
"configure:4
414
: checking for
$ac_word
"
>
&5
if
eval
"test
\"
`
echo
'$''{'
ac_cv_prog_ft_devel
'+set}'
`
\"
= set"
;
then
echo
$ac_n
"(cached)
$ac_c
"
1>&6
else
...
...
@@ -4564,7 +4442,7 @@ fi
# Extract the first word of "freetype2-config", so it can be a program name with args.
set
dummy freetype2-config
;
ac_word
=
$2
echo
$ac_n
"checking for
$ac_word
""...
$ac_c
"
1>&6
echo
"configure:4
568
: checking for
$ac_word
"
>
&5
echo
"configure:4
446
: checking for
$ac_word
"
>
&5
if
eval
"test
\"
`
echo
'$''{'
ac_cv_prog_ft_devel2
'+set}'
`
\"
= set"
;
then
echo
$ac_n
"(cached)
$ac_c
"
1>&6
else
...
...
@@ -4619,17 +4497,17 @@ EOF
do
ac_safe
=
`
echo
"
$ac_hdr
"
|
sed
'y%./+-%__p_%'
`
echo
$ac_n
"checking for
$ac_hdr
""...
$ac_c
"
1>&6
echo
"configure:4
623
: checking for
$ac_hdr
"
>
&5
echo
"configure:4
501
: 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 4
628
"configure"
#line 4
506
"configure"
#include "confdefs.h"
#include <
$ac_hdr
>
EOF
ac_try
=
"
$ac_cpp
conftest.
$ac_ext
>/dev/null 2>conftest.out"
{
(
eval echo
configure:4
633
:
\"
$ac_try
\"
)
1>&5
;
(
eval
$ac_try
)
2>&5
;
}
{
(
eval echo
configure:4
511
:
\"
$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
*
...
...
@@ -4663,19 +4541,19 @@ fi
echo
$ac_n
"checking "
for
parport header/ppdev.h
"""...
$ac_c
"
1>&6
echo
"configure:4
667
: checking "
for
parport header/ppdev.h
""
>
&5
echo
"configure:4
545
: checking "
for
parport header/ppdev.h
""
>
&5
if
eval
"test
\"
`
echo
'$''{'
ac_cv_c_ppdev
'+set}'
`
\"
= set"
;
then
echo
$ac_n
"(cached)
$ac_c
"
1>&6
else
cat
>
conftest.
$ac_ext
<<
EOF
#line 4
672
"configure"
#line 4
550
"configure"
#include "confdefs.h"
#include <linux/ppdev.h>
int main() {
ioctl (1,PPCLAIM,0)
; return 0; }
EOF
if
{
(
eval echo
configure:4
679
:
\"
$ac_compile
\"
)
1>&5
;
(
eval
$ac_compile
)
2>&5
;
}
;
then
if
{
(
eval echo
configure:4
557
:
\"
$ac_compile
\"
)
1>&5
;
(
eval
$ac_compile
)
2>&5
;
}
;
then
rm
-rf
conftest
*
ac_cv_c_ppdev
=
"yes"
else
...
...
@@ -4698,12 +4576,12 @@ EOF
fi
echo
$ac_n
"checking "
for
GNU style IPX support
"""...
$ac_c
"
1>&6
echo
"configure:4
702
: checking "
for
GNU style IPX support
""
>
&5
echo
"configure:4
580
: checking "
for
GNU style IPX support
""
>
&5
if
eval
"test
\"
`
echo
'$''{'
ac_cv_c_ipx_gnu
'+set}'
`
\"
= set"
;
then
echo
$ac_n
"(cached)
$ac_c
"
1>&6
else
cat
>
conftest.
$ac_ext
<<
EOF
#line 4
707
"configure"
#line 4
585
"configure"
#include "confdefs.h"
#include <sys/socket.h>
#include <netipx/ipx.h>
...
...
@@ -4711,7 +4589,7 @@ int main() {
((struct sockaddr_ipx *)0)->sipx_family == AF_IPX
; return 0; }
EOF
if
{
(
eval echo
configure:4
715
:
\"
$ac_compile
\"
)
1>&5
;
(
eval
$ac_compile
)
2>&5
;
}
;
then
if
{
(
eval echo
configure:4
593
:
\"
$ac_compile
\"
)
1>&5
;
(
eval
$ac_compile
)
2>&5
;
}
;
then
rm
-rf
conftest
*
ac_cv_c_ipx_gnu
=
"yes"
else
...
...
@@ -4736,12 +4614,12 @@ fi
if
test
"
$ac_cv_c_ipx_gnu
"
=
"no"
then
echo
$ac_n
"checking "
for
linux style IPX support
"""...
$ac_c
"
1>&6
echo
"configure:4
740
: checking "
for
linux style IPX support
""
>
&5
echo
"configure:4
618
: checking "
for
linux style IPX support
""
>
&5
if
eval
"test
\"
`
echo
'$''{'
ac_cv_c_ipx_linux
'+set}'
`
\"
= set"
;
then
echo
$ac_n
"(cached)
$ac_c
"
1>&6
else
cat
>
conftest.
$ac_ext
<<
EOF
#line 4
745
"configure"
#line 4
623
"configure"
#include "confdefs.h"
#include <sys/socket.h>
#include <asm/types.h>
...
...
@@ -4750,7 +4628,7 @@ int main() {
((struct sockaddr_ipx *)0)->sipx_family == AF_IPX
; return 0; }
EOF
if
{
(
eval echo
configure:4
754
:
\"
$ac_compile
\"
)
1>&5
;
(
eval
$ac_compile
)
2>&5
;
}
;
then
if
{
(
eval echo
configure:4
632
:
\"
$ac_compile
\"
)
1>&5
;
(
eval
$ac_compile
)
2>&5
;
}
;
then
rm
-rf
conftest
*
ac_cv_c_ipx_linux
=
"yes"
else
...
...
@@ -4777,17 +4655,17 @@ for ac_hdr in sys/soundcard.h machine/soundcard.h soundcard.h
do
ac_safe
=
`
echo
"
$ac_hdr
"
|
sed
'y%./+-%__p_%'
`
echo
$ac_n
"checking for
$ac_hdr
""...
$ac_c
"
1>&6
echo
"configure:4
781
: checking for
$ac_hdr
"
>
&5
echo
"configure:4
659
: 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 4
786
"configure"
#line 4
664
"configure"
#include "confdefs.h"
#include <
$ac_hdr
>
EOF
ac_try
=
"
$ac_cpp
conftest.
$ac_ext
>/dev/null 2>conftest.out"
{
(
eval echo
configure:4
791
:
\"
$ac_try
\"
)
1>&5
;
(
eval
$ac_try
)
2>&5
;
}
{
(
eval echo
configure:4
669
:
\"
$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
*
...
...
@@ -4815,12 +4693,12 @@ done
echo
$ac_n
"checking "
for
Open Sound System
"""...
$ac_c
"
1>&6
echo
"configure:4
819
: checking "
for
Open Sound System
""
>
&5
echo
"configure:4
697
: checking "
for
Open Sound System
""
>
&5
if
eval
"test
\"
`
echo
'$''{'
ac_cv_c_opensoundsystem
'+set}'
`
\"
= set"
;
then
echo
$ac_n
"(cached)
$ac_c
"
1>&6
else
cat
>
conftest.
$ac_ext
<<
EOF
#line 4
824
"configure"
#line 4
702
"configure"
#include "confdefs.h"
#if defined(HAVE_SYS_SOUNDCARD_H)
...
...
@@ -4841,7 +4719,7 @@ int main() {
; return 0; }
EOF
if
{
(
eval echo
configure:4
845
:
\"
$ac_compile
\"
)
1>&5
;
(
eval
$ac_compile
)
2>&5
;
}
;
then
if
{
(
eval echo
configure:4
723
:
\"
$ac_compile
\"
)
1>&5
;
(
eval
$ac_compile
)
2>&5
;
}
;
then
rm
-rf
conftest
*
ac_cv_c_opensoundsystem
=
"yes"
else
...
...
@@ -4864,12 +4742,12 @@ EOF
fi
echo
$ac_n
"checking "
for
Open Sound System/MIDI interface
"""...
$ac_c
"
1>&6
echo
"configure:4
868
: checking "
for
Open Sound System/MIDI interface
""
>
&5
echo
"configure:4
746
: checking "
for
Open Sound System/MIDI interface
""
>
&5
if
eval
"test
\"
`
echo
'$''{'
ac_cv_c_opensoundsystem_midi
'+set}'
`
\"
= set"
;
then
echo
$ac_n
"(cached)
$ac_c
"
1>&6
else
cat
>
conftest.
$ac_ext
<<
EOF
#line 4
873
"configure"
#line 4
751
"configure"
#include "confdefs.h"
#if defined(HAVE_SYS_SOUNDCARD_H)
...
...
@@ -4890,7 +4768,7 @@ int main() {
; return 0; }
EOF
if
{
(
eval echo
configure:4
894
:
\"
$ac_compile
\"
)
1>&5
;
(
eval
$ac_compile
)
2>&5
;
}
;
then
if
{
(
eval echo
configure:4
772
:
\"
$ac_compile
\"
)
1>&5
;
(
eval
$ac_compile
)
2>&5
;
}
;
then
rm
-rf
conftest
*
ac_cv_c_opensoundsystem_midi
=
"yes"
else
...
...
@@ -4916,7 +4794,7 @@ if test "$ac_cv_prog_LN_S" = "ln -s"; then : ; else LN_S=cp ; fi
echo
$ac_n
"checking "
whether mmap64 works defined as mmap
"""...
$ac_c
"
1>&6
echo
"configure:4
920
: checking "
whether mmap64 works defined as mmap
""
>
&5
echo
"configure:4
798
: checking "
whether mmap64 works defined as mmap
""
>
&5
if
eval
"test
\"
`
echo
'$''{'
ac_cv_mmap64_works
'+set}'
`
\"
= set"
;
then
echo
$ac_n
"(cached)
$ac_c
"
1>&6
else
...
...
@@ -4924,7 +4802,7 @@ else
ac_cv_mmap64_works
=
"no"
else
cat
>
conftest.
$ac_ext
<<
EOF
#line 4
928
"configure"
#line 4
806
"configure"
#include "confdefs.h"
#define _FILE_OFFSET_BITS 64
...
...
@@ -4954,7 +4832,7 @@ else
EOF
if
{
(
eval echo
configure:4
958
:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
${
ac_exeext
}
&&
(
./conftest
;
exit
)
2>/dev/null
if
{
(
eval echo
configure:4
836
:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
${
ac_exeext
}
&&
(
./conftest
;
exit
)
2>/dev/null
then
ac_cv_mmap64_works
=
"yes"
else
...
...
@@ -4983,7 +4861,7 @@ if test "x${GCC}" = "xyes"
then
CFLAGS
=
"
$CFLAGS
-Wall"
echo
$ac_n
"checking "
for
gcc strength-reduce bug
"""...
$ac_c
"
1>&6
echo
"configure:4
987
: checking "
for
gcc strength-reduce bug
""
>
&5
echo
"configure:4
865
: checking "
for
gcc strength-reduce bug
""
>
&5
if
eval
"test
\"
`
echo
'$''{'
ac_cv_c_gcc_strength_bug
'+set}'
`
\"
= set"
;
then
echo
$ac_n
"(cached)
$ac_c
"
1>&6
else
...
...
@@ -4991,7 +4869,7 @@ else
ac_cv_c_gcc_strength_bug
=
"yes"
else
cat
>
conftest.
$ac_ext
<<
EOF
#line 4
995
"configure"
#line 4
873
"configure"
#include "confdefs.h"
int L[4] = {0,1,2,3};
...
...
@@ -5006,7 +4884,7 @@ int main(void) {
exit( Array[1] != -2 || L[2] != 3);
}
EOF
if
{
(
eval echo
configure:
5010
:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
${
ac_exeext
}
&&
(
./conftest
;
exit
)
2>/dev/null
if
{
(
eval echo
configure:
4888
:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
${
ac_exeext
}
&&
(
./conftest
;
exit
)
2>/dev/null
then
ac_cv_c_gcc_strength_bug
=
"no"
else
...
...
@@ -5027,21 +4905,21 @@ echo "$ac_t""$ac_cv_c_gcc_strength_bug" 1>&6
fi
echo
$ac_n
"checking "
for
gcc
-mpreferred-stack-boundary
=
2 support
"""...
$ac_c
"
1>&6
echo
"configure:
5031
: checking "
for
gcc
-mpreferred-stack-boundary
=
2 support
""
>
&5
echo
"configure:
4909
: checking "
for
gcc
-mpreferred-stack-boundary
=
2 support
""
>
&5
if
eval
"test
\"
`
echo
'$''{'
ac_cv_c_gcc_stack_boundary
'+set}'
`
\"
= set"
;
then
echo
$ac_n
"(cached)
$ac_c
"
1>&6
else
saved_cflags
=
$CFLAGS
CFLAGS
=
"
$CFLAGS
-mpreferred-stack-boundary=2"
cat
>
conftest.
$ac_ext
<<
EOF
#line
5038
"configure"
#line
4916
"configure"
#include "confdefs.h"
int main() {
return 0
; return 0; }
EOF
if
{
(
eval echo
configure:
5045
:
\"
$ac_compile
\"
)
1>&5
;
(
eval
$ac_compile
)
2>&5
;
}
;
then
if
{
(
eval echo
configure:
4923
:
\"
$ac_compile
\"
)
1>&5
;
(
eval
$ac_compile
)
2>&5
;
}
;
then
rm
-rf
conftest
*
ac_cv_c_gcc_stack_boundary
=
"yes"
else
...
...
@@ -5064,7 +4942,7 @@ fi
echo
$ac_n
"checking "
whether .type must sit inside a .def directive
"""...
$ac_c
"
1>&6
echo
"configure:
5068
: checking "
whether .type must sit inside a .def directive
""
>
&5
echo
"configure:
4946
: checking "
whether .type must sit inside a .def directive
""
>
&5
if
eval
"test
\"
`
echo
'$''{'
ac_cv_c_type_in_def
'+set}'
`
\"
= set"
;
then
echo
$ac_n
"(cached)
$ac_c
"
1>&6
else
...
...
@@ -5077,14 +4955,14 @@ _ac_test:
.long 0
EOF
cat
>
conftest.
$ac_ext
<<
EOF
#line
5081
"configure"
#line
4959
"configure"
#include "confdefs.h"
int main() {
; return 0; }
EOF
if
{
(
eval echo
configure:
5088
:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
${
ac_exeext
}
;
then
if
{
(
eval echo
configure:
4966
:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
${
ac_exeext
}
;
then
rm
-rf
conftest
*
ac_cv_c_type_in_def
=
"yes"
else
...
...
@@ -5108,7 +4986,7 @@ fi
echo
$ac_n
"checking "
whether external symbols need an underscore prefix
"""...
$ac_c
"
1>&6
echo
"configure:
5112
: checking "
whether external symbols need an underscore prefix
""
>
&5
echo
"configure:
4990
: checking "
whether external symbols need an underscore prefix
""
>
&5
if
eval
"test
\"
`
echo
'$''{'
ac_cv_c_extern_prefix
'+set}'
`
\"
= set"
;
then
echo
$ac_n
"(cached)
$ac_c
"
1>&6
else
...
...
@@ -5120,14 +4998,14 @@ _ac_test:
.long 0
EOF
cat
>
conftest.
$ac_ext
<<
EOF
#line 5
124
"configure"
#line 5
002
"configure"
#include "confdefs.h"
extern int ac_test;
int main() {
if (ac_test) return 1
; return 0; }
EOF
if
{
(
eval echo
configure:5
131
:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
${
ac_exeext
}
;
then
if
{
(
eval echo
configure:5
009
:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
${
ac_exeext
}
;
then
rm
-rf
conftest
*
ac_cv_c_extern_prefix
=
"yes"
else
...
...
@@ -5151,7 +5029,7 @@ fi
echo
$ac_n
"checking "
whether assembler accepts .string
"""...
$ac_c
"
1>&6
echo
"configure:5
155
: checking "
whether assembler accepts .string
""
>
&5
echo
"configure:5
033
: 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
...
...
@@ -5161,14 +5039,14 @@ cat > conftest_asm.s <<EOF
.string "test"
EOF
cat
>
conftest.
$ac_ext
<<
EOF
#line 5
165
"configure"
#line 5
043
"configure"
#include "confdefs.h"
int main() {
; return 0; }
EOF
if
{
(
eval echo
configure:5
172
:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
${
ac_exeext
}
;
then
if
{
(
eval echo
configure:5
050
:
\"
$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
...
...
@@ -5196,21 +5074,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:5
200
: checking "
whether we can build a GNU style ELF dll
""
>
&5
echo
"configure:5
078
: 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 5
207
"configure"
#line 5
085
"configure"
#include "confdefs.h"
int main() {
return 1
; return 0; }
EOF
if
{
(
eval echo
configure:5
214
:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
${
ac_exeext
}
;
then
if
{
(
eval echo
configure:5
092
:
\"
$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
...
...
@@ -5231,21 +5109,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
235
: checking whether we can build a UnixWare (Solaris) dll"
>
&5
echo
"configure:5
113
: 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
242
"configure"
#line 5
120
"configure"
#include "confdefs.h"
int main() {
return 1
; return 0; }
EOF
if
{
(
eval echo
configure:5
249
:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
${
ac_exeext
}
;
then
if
{
(
eval echo
configure:5
127
:
\"
$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
...
...
@@ -5300,21 +5178,21 @@ elif test "$LIBEXT" = "dll"; then
else
DLL_LINK
=
"-L
\$
(DLLDIR)
\$
(DLLS:%=-l%)
\$
(LIBWINE)
\$
(LIBUNICODE)
\$
(X_LIBS)
\$
(XLIB)"
echo
$ac_n
"checking whether the linker supports --[no]-whole-archive (Linux)""...
$ac_c
"
1>&6
echo
"configure:5
304
: checking whether the linker supports --[no]-whole-archive (Linux)"
>
&5
echo
"configure:5
182
: checking whether the linker supports --[no]-whole-archive (Linux)"
>
&5
if
eval
"test
\"
`
echo
'$''{'
ac_cv_c_whole_archive
'+set}'
`
\"
= set"
;
then
echo
$ac_n
"(cached)
$ac_c
"
1>&6
else
saved_cflags
=
$CFLAGS
CFLAGS
=
"
$CFLAGS
-Wl,--whole-archive -Wl,--no-whole-archive"
cat
>
conftest.
$ac_ext
<<
EOF
#line 5
311
"configure"
#line 5
189
"configure"
#include "confdefs.h"
int main() {
return 1
; return 0; }
EOF
if
{
(
eval echo
configure:5
318
:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
${
ac_exeext
}
;
then
if
{
(
eval echo
configure:5
196
:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
${
ac_exeext
}
;
then
rm
-rf
conftest
*
ac_cv_c_whole_archive
=
"yes"
else
...
...
@@ -5334,21 +5212,21 @@ echo "$ac_t""$ac_cv_c_whole_archive" 1>&6
DLL_LINK
=
"-Wl,--whole-archive
$DLL_LINK
-Wl,--no-whole-archive"
else
echo
$ac_n
"checking whether the linker supports -z {all,default}extract (Linux)""...
$ac_c
"
1>&6
echo
"configure:5
338
: checking whether the linker supports -z {all,default}extract (Linux)"
>
&5
echo
"configure:5
216
: checking whether the linker supports -z {all,default}extract (Linux)"
>
&5
if
eval
"test
\"
`
echo
'$''{'
ac_cv_c_allextract
'+set}'
`
\"
= set"
;
then
echo
$ac_n
"(cached)
$ac_c
"
1>&6
else
saved_cflags
=
$CFLAGS
CFLAGS
=
"
$CFLAGS
-Wl,-z,allextract -Wl,-z,defaultextract"
cat
>
conftest.
$ac_ext
<<
EOF
#line 5
345
"configure"
#line 5
223
"configure"
#include "confdefs.h"
int main() {
return 1
; return 0; }
EOF
if
{
(
eval echo
configure:5
352
:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
${
ac_exeext
}
;
then
if
{
(
eval echo
configure:5
230
:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
${
ac_exeext
}
;
then
rm
-rf
conftest
*
ac_cv_c_allextract
=
"yes"
else
...
...
@@ -5383,7 +5261,7 @@ fi
wine_cv_libc_reentrant
=
no
echo
$ac_n
"checking for reentrant libc: __errno_location""...
$ac_c
"
1>&6
echo
"configure:5
387
: checking for reentrant libc: __errno_location"
>
&5
echo
"configure:5
265
: 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
...
...
@@ -5391,14 +5269,14 @@ else
wine_cv_libc_r___errno_location
=
yes
else
cat
>
conftest.
$ac_ext
<<
EOF
#line 5
395
"configure"
#line 5
273
"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
402
:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
${
ac_exeext
}
&&
(
./conftest
;
exit
)
2>/dev/null
if
{
(
eval echo
configure:5
280
:
\"
$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
...
...
@@ -5421,7 +5299,7 @@ fi
echo
$ac_n
"checking for reentrant libc: __error""...
$ac_c
"
1>&6
echo
"configure:5
425
: checking for reentrant libc: __error"
>
&5
echo
"configure:5
303
: 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
...
...
@@ -5429,14 +5307,14 @@ else
wine_cv_libc_r___error
=
yes
else
cat
>
conftest.
$ac_ext
<<
EOF
#line 5
433
"configure"
#line 5
311
"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
440
:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
${
ac_exeext
}
&&
(
./conftest
;
exit
)
2>/dev/null
if
{
(
eval echo
configure:5
318
:
\"
$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
...
...
@@ -5459,7 +5337,7 @@ fi
echo
$ac_n
"checking for reentrant libc: ___errno""...
$ac_c
"
1>&6
echo
"configure:5
463
: checking for reentrant libc: ___errno"
>
&5
echo
"configure:5
341
: 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
...
...
@@ -5467,14 +5345,14 @@ else
wine_cv_libc_r____errno
=
yes
else
cat
>
conftest.
$ac_ext
<<
EOF
#line 5
471
"configure"
#line 5
349
"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:5
478
:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
${
ac_exeext
}
&&
(
./conftest
;
exit
)
2>/dev/null
if
{
(
eval echo
configure:5
356
:
\"
$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
...
...
@@ -5497,7 +5375,7 @@ fi
echo
$ac_n
"checking for reentrant libc: __thr_errno""...
$ac_c
"
1>&6
echo
"configure:5
501
: checking for reentrant libc: __thr_errno"
>
&5
echo
"configure:5
379
: 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
...
...
@@ -5505,14 +5383,14 @@ else
wine_cv_libc_r___thr_errno
=
yes
else
cat
>
conftest.
$ac_ext
<<
EOF
#line 5
509
"configure"
#line 5
387
"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
516
:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
${
ac_exeext
}
&&
(
./conftest
;
exit
)
2>/dev/null
if
{
(
eval echo
configure:5
394
:
\"
$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
...
...
@@ -5535,7 +5413,7 @@ fi
echo
$ac_n
"checking for reentrant libc: __errno""...
$ac_c
"
1>&6
echo
"configure:5
539
: checking for reentrant libc: __errno"
>
&5
echo
"configure:5
417
: 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
...
...
@@ -5543,14 +5421,14 @@ else
wine_cv_libc_r___errno
=
yes
else
cat
>
conftest.
$ac_ext
<<
EOF
#line 5
547
"configure"
#line 5
425
"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:5
554
:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
${
ac_exeext
}
&&
(
./conftest
;
exit
)
2>/dev/null
if
{
(
eval echo
configure:5
432
:
\"
$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
...
...
@@ -5584,7 +5462,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:5
588
: checking "
for
reentrant X libraries
""
>
&5
echo
"configure:5
466
: 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
...
...
@@ -5633,19 +5511,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
637
: checking for working alloca.h"
>
&5
echo
"configure:5
515
: 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
642
"configure"
#line 5
520
"configure"
#include "confdefs.h"
#include <alloca.h>
int main() {
char *p = alloca(2 * sizeof(int));
; return 0; }
EOF
if
{
(
eval echo
configure:5
649
:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
${
ac_exeext
}
;
then
if
{
(
eval echo
configure:5
527
:
\"
$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
...
...
@@ -5666,12 +5544,12 @@ EOF
fi
echo
$ac_n
"checking for alloca""...
$ac_c
"
1>&6
echo
"configure:5
670
: checking for alloca"
>
&5
echo
"configure:5
548
: 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
675
"configure"
#line 5
553
"configure"
#include "confdefs.h"
#ifdef __GNUC__
...
...
@@ -5699,7 +5577,7 @@ int main() {
char *p = (char *) alloca(1);
; return 0; }
EOF
if
{
(
eval echo
configure:5
703
:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
${
ac_exeext
}
;
then
if
{
(
eval echo
configure:5
581
:
\"
$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
...
...
@@ -5731,12 +5609,12 @@ EOF
echo
$ac_n
"checking whether alloca needs Cray hooks""...
$ac_c
"
1>&6
echo
"configure:5
735
: checking whether alloca needs Cray hooks"
>
&5
echo
"configure:5
613
: 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
740
"configure"
#line 5
618
"configure"
#include "confdefs.h"
#if defined(CRAY) && ! defined(CRAY2)
webecray
...
...
@@ -5761,12 +5639,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
765
: checking for
$ac_func
"
>
&5
echo
"configure:5
643
: 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
770
"configure"
#line 5
648
"configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
which can conflict with char
$ac_func
(); below. */
...
...
@@ -5789,7 +5667,7 @@ $ac_func();
; return 0; }
EOF
if
{
(
eval echo
configure:5
793
:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
${
ac_exeext
}
;
then
if
{
(
eval echo
configure:5
671
:
\"
$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
...
...
@@ -5816,7 +5694,7 @@ done
fi
echo
$ac_n
"checking stack direction for C alloca""...
$ac_c
"
1>&6
echo
"configure:5
820
: checking stack direction for C alloca"
>
&5
echo
"configure:5
698
: 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
...
...
@@ -5824,7 +5702,7 @@ else
ac_cv_c_stack_direction
=
0
else
cat
>
conftest.
$ac_ext
<<
EOF
#line 5
828
"configure"
#line 5
706
"configure"
#include "confdefs.h"
find_stack_direction ()
{
...
...
@@ -5843,7 +5721,7 @@ main ()
exit (find_stack_direction() < 0);
}
EOF
if
{
(
eval echo
configure:5
847
:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
${
ac_exeext
}
&&
(
./conftest
;
exit
)
2>/dev/null
if
{
(
eval echo
configure:5
725
:
\"
$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
...
...
@@ -5903,12 +5781,12 @@ for ac_func in \
do
echo
$ac_n
"checking for
$ac_func
""...
$ac_c
"
1>&6
echo
"configure:5
907
: checking for
$ac_func
"
>
&5
echo
"configure:5
785
: 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
912
"configure"
#line 5
790
"configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
which can conflict with char
$ac_func
(); below. */
...
...
@@ -5931,7 +5809,7 @@ $ac_func();
; return 0; }
EOF
if
{
(
eval echo
configure:5
935
:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
${
ac_exeext
}
;
then
if
{
(
eval echo
configure:5
813
:
\"
$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
...
...
@@ -6013,17 +5891,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:
6017
: checking for
$ac_hdr
"
>
&5
echo
"configure:
5895
: 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
6022
"configure"
#line
5900
"configure"
#include "confdefs.h"
#include <
$ac_hdr
>
EOF
ac_try
=
"
$ac_cpp
conftest.
$ac_ext
>/dev/null 2>conftest.out"
{
(
eval echo
configure:
6027
:
\"
$ac_try
\"
)
1>&5
;
(
eval
$ac_try
)
2>&5
;
}
{
(
eval echo
configure:
5905
:
\"
$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
*
...
...
@@ -6050,12 +5928,12 @@ fi
done
echo
$ac_n
"checking whether stat file-mode macros are broken""...
$ac_c
"
1>&6
echo
"configure:
6054
: checking whether stat file-mode macros are broken"
>
&5
echo
"configure:
5932
: 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
6059
"configure"
#line
5937
"configure"
#include "confdefs.h"
#include <sys/types.h>
#include <sys/stat.h>
...
...
@@ -6108,12 +5986,12 @@ fi
echo
$ac_n
"checking for working const""...
$ac_c
"
1>&6
echo
"configure:
6112
: checking for working const"
>
&5
echo
"configure:
5990
: 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
6117
"configure"
#line
5995
"configure"
#include "confdefs.h"
int main() {
...
...
@@ -6162,7 +6040,7 @@ ccp = (char const *const *) p;
; return 0; }
EOF
if
{
(
eval echo
configure:6
166
:
\"
$ac_compile
\"
)
1>&5
;
(
eval
$ac_compile
)
2>&5
;
}
;
then
if
{
(
eval echo
configure:6
044
:
\"
$ac_compile
\"
)
1>&5
;
(
eval
$ac_compile
)
2>&5
;
}
;
then
rm
-rf
conftest
*
ac_cv_c_const
=
yes
else
...
...
@@ -6183,21 +6061,21 @@ EOF
fi
echo
$ac_n
"checking for inline""...
$ac_c
"
1>&6
echo
"configure:6
187
: checking for inline"
>
&5
echo
"configure:6
065
: 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 6
194
"configure"
#line 6
072
"configure"
#include "confdefs.h"
int main() {
}
$ac_kw
foo() {
; return 0; }
EOF
if
{
(
eval echo
configure:6
201
:
\"
$ac_compile
\"
)
1>&5
;
(
eval
$ac_compile
)
2>&5
;
}
;
then
if
{
(
eval echo
configure:6
079
:
\"
$ac_compile
\"
)
1>&5
;
(
eval
$ac_compile
)
2>&5
;
}
;
then
rm
-rf
conftest
*
ac_cv_c_inline
=
$ac_kw
;
break
else
...
...
@@ -6223,12 +6101,12 @@ EOF
esac
echo
$ac_n
"checking for ANSI C header files""...
$ac_c
"
1>&6
echo
"configure:6
227
: checking for ANSI C header files"
>
&5
echo
"configure:6
105
: 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
232
"configure"
#line 6
110
"configure"
#include "confdefs.h"
#include <stdlib.h>
#include <stdarg.h>
...
...
@@ -6236,7 +6114,7 @@ else
#include <float.h>
EOF
ac_try
=
"
$ac_cpp
conftest.
$ac_ext
>/dev/null 2>conftest.out"
{
(
eval echo
configure:6
240
:
\"
$ac_try
\"
)
1>&5
;
(
eval
$ac_try
)
2>&5
;
}
{
(
eval echo
configure:6
118
:
\"
$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
*
...
...
@@ -6253,7 +6131,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
257
"configure"
#line 6
135
"configure"
#include "confdefs.h"
#include <string.h>
EOF
...
...
@@ -6271,7 +6149,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
275
"configure"
#line 6
153
"configure"
#include "confdefs.h"
#include <stdlib.h>
EOF
...
...
@@ -6292,7 +6170,7 @@ if test "$cross_compiling" = yes; then
:
else
cat
>
conftest.
$ac_ext
<<
EOF
#line 6
296
"configure"
#line 6
174
"configure"
#include "confdefs.h"
#include <ctype.h>
#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
...
...
@@ -6303,7 +6181,7 @@ if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
exit (0); }
EOF
if
{
(
eval echo
configure:6
307
:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
${
ac_exeext
}
&&
(
./conftest
;
exit
)
2>/dev/null
if
{
(
eval echo
configure:6
185
:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
${
ac_exeext
}
&&
(
./conftest
;
exit
)
2>/dev/null
then
:
else
...
...
@@ -6327,12 +6205,12 @@ EOF
fi
echo
$ac_n
"checking for size_t""...
$ac_c
"
1>&6
echo
"configure:6
331
: checking for size_t"
>
&5
echo
"configure:6
209
: 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
336
"configure"
#line 6
214
"configure"
#include "confdefs.h"
#include <sys/types.h>
#if STDC_HEADERS
...
...
@@ -6360,7 +6238,7 @@ EOF
fi
echo
$ac_n
"checking size of long long""...
$ac_c
"
1>&6
echo
"configure:6
364
: checking size of long long"
>
&5
echo
"configure:6
242
: 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
...
...
@@ -6368,7 +6246,7 @@ else
ac_cv_sizeof_long_long
=
0
else
cat
>
conftest.
$ac_ext
<<
EOF
#line 6
372
"configure"
#line 6
250
"configure"
#include "confdefs.h"
#include <stdio.h>
#include <sys/types.h>
...
...
@@ -6380,7 +6258,7 @@ main()
exit(0);
}
EOF
if
{
(
eval echo
configure:6
384
:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
${
ac_exeext
}
&&
(
./conftest
;
exit
)
2>/dev/null
if
{
(
eval echo
configure:6
262
:
\"
$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
...
...
@@ -6401,12 +6279,12 @@ EOF
echo
$ac_n
"checking "
whether linux/input.h is
for
real
"""...
$ac_c
"
1>&6
echo
"configure:6
405
: checking "
whether linux/input.h is
for
real
""
>
&5
echo
"configure:6
283
: 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
410
"configure"
#line 6
288
"configure"
#include "confdefs.h"
#include <linux/input.h>
...
...
@@ -6419,7 +6297,7 @@ int main() {
; return 0; }
EOF
if
{
(
eval echo
configure:6
423
:
\"
$ac_compile
\"
)
1>&5
;
(
eval
$ac_compile
)
2>&5
;
}
;
then
if
{
(
eval echo
configure:6
301
:
\"
$ac_compile
\"
)
1>&5
;
(
eval
$ac_compile
)
2>&5
;
}
;
then
rm
-rf
conftest
*
wine_cv_linux_input_h
=
yes
else
...
...
@@ -6443,12 +6321,12 @@ EOF
echo
$ac_n
"checking "
whether we can use re-entrant gethostbyname_r Linux style
"""...
$ac_c
"
1>&6
echo
"configure:6
447
: checking "
whether we can use re-entrant gethostbyname_r Linux style
""
>
&5
echo
"configure:6
325
: 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
452
"configure"
#line 6
330
"configure"
#include "confdefs.h"
#include <netdb.h>
...
...
@@ -6469,7 +6347,7 @@ int main() {
; return 0; }
EOF
if
{
(
eval echo
configure:6
473
:
\"
$ac_compile
\"
)
1>&5
;
(
eval
$ac_compile
)
2>&5
;
}
;
then
if
{
(
eval echo
configure:6
351
:
\"
$ac_compile
\"
)
1>&5
;
(
eval
$ac_compile
)
2>&5
;
}
;
then
rm
-rf
conftest
*
wine_cv_linux_gethostbyname_r_6
=
yes
else
...
...
@@ -6495,12 +6373,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
499
: checking "
whether linux/joystick.h uses the Linux 2.2+ API
""
>
&5
echo
"configure:6
377
: 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
504
"configure"
#line 6
382
"configure"
#include "confdefs.h"
#include <sys/ioctl.h>
...
...
@@ -6515,7 +6393,7 @@ int main() {
/*empty*/
; return 0; }
EOF
if
{
(
eval echo
configure:6
519
:
\"
$ac_compile
\"
)
1>&5
;
(
eval
$ac_compile
)
2>&5
;
}
;
then
if
{
(
eval echo
configure:6
397
:
\"
$ac_compile
\"
)
1>&5
;
(
eval
$ac_compile
)
2>&5
;
}
;
then
rm
-rf
conftest
*
wine_cv_linux_joystick_22_api
=
yes
else
...
...
@@ -6542,12 +6420,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
546
: checking "
whether sys/vfs.h defines statfs
""
>
&5
echo
"configure:6
424
: 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
551
"configure"
#line 6
429
"configure"
#include "confdefs.h"
#include <sys/types.h>
...
...
@@ -6564,7 +6442,7 @@ int main() {
; return 0; }
EOF
if
{
(
eval echo
configure:6
568
:
\"
$ac_compile
\"
)
1>&5
;
(
eval
$ac_compile
)
2>&5
;
}
;
then
if
{
(
eval echo
configure:6
446
:
\"
$ac_compile
\"
)
1>&5
;
(
eval
$ac_compile
)
2>&5
;
}
;
then
rm
-rf
conftest
*
wine_cv_sys_vfs_has_statfs
=
yes
else
...
...
@@ -6591,12 +6469,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
595
: checking "
whether sys/statfs.h defines statfs
""
>
&5
echo
"configure:6
473
: 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
600
"configure"
#line 6
478
"configure"
#include "confdefs.h"
#include <sys/types.h>
...
...
@@ -6611,7 +6489,7 @@ int main() {
; return 0; }
EOF
if
{
(
eval echo
configure:6
615
:
\"
$ac_compile
\"
)
1>&5
;
(
eval
$ac_compile
)
2>&5
;
}
;
then
if
{
(
eval echo
configure:6
493
:
\"
$ac_compile
\"
)
1>&5
;
(
eval
$ac_compile
)
2>&5
;
}
;
then
rm
-rf
conftest
*
wine_cv_sys_statfs_has_statfs
=
yes
else
...
...
@@ -6638,12 +6516,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
642
: checking "
whether sys/mount.h defines statfs
""
>
&5
echo
"configure:6
520
: 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
647
"configure"
#line 6
525
"configure"
#include "confdefs.h"
#include <sys/types.h>
...
...
@@ -6658,7 +6536,7 @@ int main() {
; return 0; }
EOF
if
{
(
eval echo
configure:6
662
:
\"
$ac_compile
\"
)
1>&5
;
(
eval
$ac_compile
)
2>&5
;
}
;
then
if
{
(
eval echo
configure:6
540
:
\"
$ac_compile
\"
)
1>&5
;
(
eval
$ac_compile
)
2>&5
;
}
;
then
rm
-rf
conftest
*
wine_cv_sys_mount_has_statfs
=
yes
else
...
...
@@ -6684,7 +6562,7 @@ fi
echo
$ac_n
"checking "
for
statfs.f_bfree
"""...
$ac_c
"
1>&6
echo
"configure:6
688
: checking "
for
statfs.f_bfree
""
>
&5
echo
"configure:6
566
: 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
...
...
@@ -6693,7 +6571,7 @@ else
wine_cv_statfs_bfree
=
no
else
cat
>
conftest.
$ac_ext
<<
EOF
#line 6
697
"configure"
#line 6
575
"configure"
#include "confdefs.h"
#include <sys/types.h>
...
...
@@ -6720,7 +6598,7 @@ int main() {
; return 0; }
EOF
if
{
(
eval echo
configure:6
724
:
\"
$ac_compile
\"
)
1>&5
;
(
eval
$ac_compile
)
2>&5
;
}
;
then
if
{
(
eval echo
configure:6
602
:
\"
$ac_compile
\"
)
1>&5
;
(
eval
$ac_compile
)
2>&5
;
}
;
then
rm
-rf
conftest
*
wine_cv_statfs_bfree
=
yes
else
...
...
@@ -6744,7 +6622,7 @@ EOF
fi
echo
$ac_n
"checking "
for
statfs.f_bavail
"""...
$ac_c
"
1>&6
echo
"configure:6
748
: checking "
for
statfs.f_bavail
""
>
&5
echo
"configure:6
626
: 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
...
...
@@ -6753,7 +6631,7 @@ else
wine_cv_statfs_bavail
=
no
else
cat
>
conftest.
$ac_ext
<<
EOF
#line 6
757
"configure"
#line 6
635
"configure"
#include "confdefs.h"
#include <sys/types.h>
...
...
@@ -6780,7 +6658,7 @@ int main() {
; return 0; }
EOF
if
{
(
eval echo
configure:6
784
:
\"
$ac_compile
\"
)
1>&5
;
(
eval
$ac_compile
)
2>&5
;
}
;
then
if
{
(
eval echo
configure:6
662
:
\"
$ac_compile
\"
)
1>&5
;
(
eval
$ac_compile
)
2>&5
;
}
;
then
rm
-rf
conftest
*
wine_cv_statfs_bavail
=
yes
else
...
...
@@ -6805,12 +6683,12 @@ fi
echo
$ac_n
"checking "
for
msg_accrights
in
struct msghdr
"""...
$ac_c
"
1>&6
echo
"configure:6
809
: checking "
for
msg_accrights
in
struct msghdr
""
>
&5
echo
"configure:6
687
: 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
814
"configure"
#line 6
692
"configure"
#include "confdefs.h"
#include <sys/types.h>
#include <sys/socket.h>
...
...
@@ -6818,7 +6696,7 @@ int main() {
struct msghdr hdr; hdr.msg_accrights=0
; return 0; }
EOF
if
{
(
eval echo
configure:6
822
:
\"
$ac_compile
\"
)
1>&5
;
(
eval
$ac_compile
)
2>&5
;
}
;
then
if
{
(
eval echo
configure:6
700
:
\"
$ac_compile
\"
)
1>&5
;
(
eval
$ac_compile
)
2>&5
;
}
;
then
rm
-rf
conftest
*
ac_cv_c_msg_accrights
=
"yes"
else
...
...
@@ -6841,12 +6719,12 @@ fi
echo
$ac_n
"checking "
for
sa_len
in
struct sockaddr
"""...
$ac_c
"
1>&6
echo
"configure:6
845
: checking "
for
sa_len
in
struct sockaddr
""
>
&5
echo
"configure:6
723
: 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 6
850
"configure"
#line 6
728
"configure"
#include "confdefs.h"
#include <sys/types.h>
#include <sys/socket.h>
...
...
@@ -6855,7 +6733,7 @@ int main() {
static struct sockaddr addr; addr.sa_len = 1
; return 0; }
EOF
if
{
(
eval echo
configure:6
859
:
\"
$ac_compile
\"
)
1>&5
;
(
eval
$ac_compile
)
2>&5
;
}
;
then
if
{
(
eval echo
configure:6
737
:
\"
$ac_compile
\"
)
1>&5
;
(
eval
$ac_compile
)
2>&5
;
}
;
then
rm
-rf
conftest
*
ac_cv_c_sockaddr_sa_len
=
"yes"
else
...
...
@@ -6878,12 +6756,12 @@ fi
echo
$ac_n
"checking "
for
sun_len
in
struct sockaddr_un
"""...
$ac_c
"
1>&6
echo
"configure:6
882
: checking "
for
sun_len
in
struct sockaddr_un
""
>
&5
echo
"configure:6
760
: 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 6
887
"configure"
#line 6
765
"configure"
#include "confdefs.h"
#include <sys/types.h>
#include <sys/socket.h>
...
...
@@ -6892,7 +6770,7 @@ int main() {
static struct sockaddr_un addr; addr.sun_len = 1
; return 0; }
EOF
if
{
(
eval echo
configure:6
896
:
\"
$ac_compile
\"
)
1>&5
;
(
eval
$ac_compile
)
2>&5
;
}
;
then
if
{
(
eval echo
configure:6
774
:
\"
$ac_compile
\"
)
1>&5
;
(
eval
$ac_compile
)
2>&5
;
}
;
then
rm
-rf
conftest
*
ac_cv_c_sockaddr_sun_len
=
"yes"
else
...
...
@@ -6915,12 +6793,12 @@ fi
echo
$ac_n
"checking "
whether we need to define __i386__
"""...
$ac_c
"
1>&6
echo
"configure:6
919
: checking "
whether we need to define __i386__
""
>
&5
echo
"configure:6
797
: 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
924
"configure"
#line 6
802
"configure"
#include "confdefs.h"
#if (defined(i386) || defined(__i386)) && !defined(__i386__)
yes
...
...
configure.in
View file @
aeb92b1c
...
...
@@ -322,17 +322,6 @@ then
OPENGL32_DLL=opengl32
fi
AC_CHECK_HEADERS(GL/osmesa.h,
[ dnl *** If GL/osmesa.h exists...
AC_CHECK_LIB(GL, OSMesaCreateContext,
X_PRE_LIBS="$X_PRE_LIBS -lGL",
AC_CHECK_LIB(OSMesa, OSMesaCreateContext,
X_PRE_LIBS="$X_PRE_LIBS -lOSMesa",,
-lGL $X_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS),
$X_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS
)
]
)
fi
dnl Check for GLU32 library.
AC_CHECK_LIB(GLU,glBegin,
...
...
dlls/ddraw/d3ddevice/mesa.c
View file @
aeb92b1c
...
...
@@ -50,17 +50,11 @@ static void set_context(IDirect3DDevice2Impl* This) {
#if COMPILABLE
D3DDPRIVATE
(
This
);
#ifdef USE_OSMESA
OSMesaMakeCurrent
(
d3ddpriv
->
ctx
,
odev
->
buffer
,
GL_UNSIGNED_BYTE
,
This
->
surface
->
s
.
surface_desc
.
dwWidth
,
This
->
surface
->
s
.
surface_desc
.
dwHeight
);
#else
if
(
glXMakeCurrent
(
gdi_display
,
ddpriv
->
drawable
,
odev
->
ctx
)
==
False
)
{
ERR
(
"Error in setting current context (context %p drawable %ld)!
\n
"
,
odev
->
ctx
,
ddpriv
->
drawable
);
}
#endif
#endif
}
static
void
fill_opengl_primcaps
(
D3DPRIMCAPS
*
pc
)
...
...
@@ -178,11 +172,6 @@ is_OpenGL(
TRACE
(
"Creating OpenGL device for surface %p
\n
"
,
surface
);
/* Create the OpenGL context */
#ifdef USE_OSMESA
odev
->
ctx
=
OSMesaCreateContext
(
OSMESA_RGBA
,
NULL
);
odev
->
buffer
=
HeapAlloc
(
GetProcessHeap
(),
HEAP_ZERO_MEMORY
,
surface
->
s
.
surface_desc
.
dwWidth
*
surface
->
s
.
surface_desc
.
dwHeight
*
4
);
#else
/* First get the correct visual */
ENTER_GL
();
/* Create the context */
...
...
@@ -215,7 +204,6 @@ is_OpenGL(
}
#endif
#endif
odev
->
rs
.
src
=
GL_ONE
;
odev
->
rs
.
dst
=
GL_ZERO
;
odev
->
rs
.
mag
=
GL_NEAREST
;
...
...
@@ -259,13 +247,9 @@ static ULONG WINAPI MESA_IDirect3DDevice2Impl_Release(LPDIRECT3DDEVICE2 iface)
FIXME
(
"(%p)->() decrementing from %lu.
\n
"
,
This
,
This
->
ref
);
if
(
!--
(
This
->
ref
))
{
#ifdef USE_OSMESA
OSMesaDestroyContext
(
odev
->
ctx
);
#else
ENTER_GL
();
glXDestroyContext
(
gdi_display
,
odev
->
ctx
);
LEAVE_GL
();
#endif
This
->
private
=
NULL
;
HeapFree
(
GetProcessHeap
(),
0
,
This
);
return
0
;
...
...
@@ -410,52 +394,10 @@ static HRESULT WINAPI MESA_IDirect3DDevice2Impl_BeginScene(
HRESULT
WINAPI
MESA_IDirect3DDevice2Impl_EndScene
(
LPDIRECT3DDEVICE2
iface
)
{
ICOM_THIS
(
IDirect3DDevice2Impl
,
iface
);
#ifdef USE_OSMESA
D3DPRIVATE
(
This
);
LPDIRECTDRAWSURFACE3
surf
=
(
LPDIRECTDRAWSURFACE3
)
This
->
surface
;
DDSURFACEDESC
sdesc
;
int
x
,
y
;
unsigned
char
*
src
;
unsigned
short
*
dest
;
#endif
FIXME
(
"(%p)->(): stub
\n
"
,
This
);
#ifdef USE_OSMESA
/* Here we copy back the OpenGL scene to the the DDraw surface */
/* First, lock the surface */
IDirectDrawSurface3_Lock
(
surf
,
NULL
,
&
sdesc
,
DDLOCK_WRITEONLY
,
0
);
/* The copy the OpenGL buffer to this surface */
/* NOTE : this is only for debugging purpose. I KNOW it is really unoptimal.
I am currently working on a set of patches for Mesa to have OSMesa support
16 bpp surfaces => we will able to render directly onto the surface, no
need to do a bpp conversion */
dest
=
(
unsigned
short
*
)
sdesc
.
u2
.
lpSurface
;
src
=
((
unsigned
char
*
)
odev
->
buffer
)
+
4
*
(
sdesc
.
dwWidth
*
(
sdesc
.
dwHeight
-
1
));
for
(
y
=
0
;
y
<
sdesc
.
dwHeight
;
y
++
)
{
unsigned
char
*
lsrc
=
src
;
for
(
x
=
0
;
x
<
sdesc
.
dwWidth
;
x
++
)
{
unsigned
char
r
=
*
lsrc
++
;
unsigned
char
g
=
*
lsrc
++
;
unsigned
char
b
=
*
lsrc
++
;
lsrc
++
;
/* Alpha */
*
dest
=
((
r
>>
3
)
<<
11
)
|
((
g
>>
2
)
<<
5
)
|
(
b
>>
3
);
dest
++
;
}
src
-=
4
*
sdesc
.
dwWidth
;
}
/* Unlock the surface */
IDirectDrawSurface3_Unlock
(
surf
,
sdesc
.
u2
.
lpSurface
);
#else
/* No need to do anything here... */
#endif
return
DD_OK
;
}
...
...
@@ -870,10 +812,8 @@ int is_OpenGL_dx3(REFCLSID rguid, IDirectDrawSurfaceImpl* surface, IDirect3DDevi
{
if
(
!
memcmp
(
&
IID_D3DDEVICE_OpenGL
,
rguid
,
sizeof
(
IID_D3DDEVICE_OpenGL
)))
{
mesa_d3dd_private
*
odev
;
#ifndef USE_OSMESA
int
attributeList
[]
=
{
GLX_RGBA
,
GLX_DEPTH_SIZE
,
16
,
GLX_DOUBLEBUFFER
,
None
};
XVisualInfo
*
xvis
;
#endif
*
device
=
HeapAlloc
(
GetProcessHeap
(),
HEAP_ZERO_MEMORY
,
sizeof
(
IDirect3DDeviceImpl
));
(
*
device
)
->
private
=
HeapAlloc
(
GetProcessHeap
(),
HEAP_ZERO_MEMORY
,
sizeof
(
mesa_d3dd_private
));
...
...
@@ -891,11 +831,6 @@ int is_OpenGL_dx3(REFCLSID rguid, IDirectDrawSurfaceImpl* surface, IDirect3DDevi
TRACE
(
"OpenGL device created
\n
"
);
/* Create the OpenGL context */
#ifdef USE_OSMESA
odev
->
ctx
=
OSMesaCreateContext
(
OSMESA_RGBA
,
NULL
);
odev
->
buffer
=
HeapAlloc
(
GetProcessHeap
(),
HEAP_ZERO_MEMORY
,
surface
->
s
.
surface_desc
.
dwWidth
*
surface
->
s
.
surface_desc
.
dwHeight
*
4
);
#else
/* First get the correct visual */
/* if (surface->s.backbuffer == NULL)
attributeList[3] = None; */
...
...
@@ -925,7 +860,6 @@ int is_OpenGL_dx3(REFCLSID rguid, IDirectDrawSurfaceImpl* surface, IDirect3DDevi
chain->surfaces[i]->s.d3d_device = (void *) odev;
}
#endif
#endif
odev
->
rs
.
src
=
GL_ONE
;
odev
->
rs
.
dst
=
GL_ZERO
;
odev
->
rs
.
mag
=
GL_NEAREST
;
...
...
@@ -956,13 +890,9 @@ static ULONG WINAPI MESA_IDirect3DDeviceImpl_Release(LPDIRECT3DDEVICE iface)
if
(
!--
(
This
->
ref
))
{
D3DDPRIVATE
(
This
);
#ifdef USE_OSMESA
OSMesaDestroyContext
(
odev
->
ctx
);
#else
ENTER_GL
();
glXDestroyContext
(
gdi_display
,
odev
->
ctx
);
LEAVE_GL
();
#endif
This
->
private
=
NULL
;
HeapFree
(
GetProcessHeap
(),
0
,
This
);
return
0
;
...
...
@@ -1000,52 +930,10 @@ static HRESULT WINAPI MESA_IDirect3DDeviceImpl_BeginScene(LPDIRECT3DDEVICE iface
static
HRESULT
WINAPI
MESA_IDirect3DDeviceImpl_EndScene
(
LPDIRECT3DDEVICE
iface
)
{
ICOM_THIS
(
IDirect3DDeviceImpl
,
iface
);
#ifdef USE_OSMESA
D3DDPRIVATE
(
This
);
LPDIRECTDRAWSURFACE3
surf
=
(
LPDIRECTDRAWSURFACE3
)
This
->
surface
;
DDSURFACEDESC
sdesc
;
int
x
,
y
;
unsigned
char
*
src
;
unsigned
short
*
dest
;
#endif
FIXME
(
"(%p)->(): stub
\n
"
,
This
);
#ifdef USE_OSMESA
/* Here we copy back the OpenGL scene to the the DDraw surface */
/* First, lock the surface */
IDirectDrawSurface3_Lock
(
surf
,
NULL
,
&
sdesc
,
DDLOCK_WRITEONLY
,
0
);
/* The copy the OpenGL buffer to this surface */
/* NOTE : this is only for debugging purpose. I KNOW it is really unoptimal.
I am currently working on a set of patches for Mesa to have OSMesa support
16 bpp surfaces => we will able to render directly onto the surface, no
need to do a bpp conversion */
dest
=
(
unsigned
short
*
)
sdesc
.
u2
.
lpSurface
;
src
=
((
unsigned
char
*
)
odev
->
buffer
)
+
4
*
(
sdesc
.
dwWidth
*
(
sdesc
.
dwHeight
-
1
));
for
(
y
=
0
;
y
<
sdesc
.
dwHeight
;
y
++
)
{
unsigned
char
*
lsrc
=
src
;
for
(
x
=
0
;
x
<
sdesc
.
dwWidth
;
x
++
)
{
unsigned
char
r
=
*
lsrc
++
;
unsigned
char
g
=
*
lsrc
++
;
unsigned
char
b
=
*
lsrc
++
;
lsrc
++
;
/* Alpha */
*
dest
=
((
r
>>
3
)
<<
11
)
|
((
g
>>
2
)
<<
5
)
|
(
b
>>
3
);
dest
++
;
}
src
-=
4
*
sdesc
.
dwWidth
;
}
/* Unlock the surface */
IDirectDrawSurface3_Unlock
(
surf
,
sdesc
.
u2
.
lpSurface
);
#else
/* No need to do anything here... */
#endif
return
DD_OK
;
}
...
...
dlls/ddraw/mesa_private.h
View file @
aeb92b1c
...
...
@@ -12,8 +12,6 @@
#include "wine_gl.h"
#include "x11drv.h"
#undef USE_OSMESA
/*****************************************************************************
* IDirect3DLight MESA private structure
*/
...
...
@@ -81,12 +79,7 @@ typedef struct render_state {
}
RenderState
;
typedef
struct
mesa_d3dd_private
{
#ifdef USE_OSMESA
OSMesaContext
ctx
;
unsigned
char
*
buffer
;
#else
GLXContext
ctx
;
#endif
/* The current render state */
RenderState
rs
;
...
...
include/config.h.in
View file @
aeb92b1c
...
...
@@ -178,9 +178,6 @@
/* Define if you have the <GL/glx.h> header file. */
#undef HAVE_GL_GLX_H
/* Define if you have the <GL/osmesa.h> header file. */
#undef HAVE_GL_OSMESA_H
/* Define if you have the <X11/XKBlib.h> header file. */
#undef HAVE_X11_XKBLIB_H
...
...
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