Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
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-winehq
Commits
281bdcac
Commit
281bdcac
authored
May 23, 2018
by
Józef Kucia
Committed by
Alexandre Julliard
May 24, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
configure: Check for libvkd3d.
Signed-off-by:
Józef Kucia
<
jkucia@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
bf4d0982
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
119 additions
and
0 deletions
+119
-0
configure
configure
+105
-0
configure.ac
configure.ac
+11
-0
config.h.in
include/config.h.in
+3
-0
No files found.
configure
View file @
281bdcac
...
...
@@ -636,6 +636,8 @@ UNWINDFLAGS
EXCESS_PRECISION_CFLAGS
BUILTINFLAG
EXTRACFLAGS
VKD3D_LIBS
VKD3D_CFLAGS
NETAPI_LIBS
NETAPI_CFLAGS
PROCSTAT_LIBS
...
...
@@ -863,6 +865,7 @@ with_sdl
with_tiff
with_udev
with_v4l
with_vkd3d
with_vulkan
with_xcomposite
with_xcursor
...
...
@@ -1814,6 +1817,8 @@ MPG123_CFLAGS
MPG123_LIBS
NETAPI_CFLAGS
NETAPI_LIBS
VKD3D_CFLAGS
VKD3D_LIBS
LDAP_CFLAGS
LDAP_LIBS'
...
...
@@ -2493,6 +2498,7 @@ Optional Packages:
--without-tiff do not use TIFF
--without-udev do not use udev (plug and play support)
--without-v4l do not use v4l1 (v4l support)
--without-vkd3d do not use vkd3d (Direct3D 12 support)
--without-vulkan do not use Vulkan
--without-xcomposite do not use the Xcomposite extension
--without-xcursor do not use the Xcursor extension
...
...
@@ -2591,6 +2597,9 @@ Some influential environment variables:
NETAPI_CFLAGS
C compiler flags for netapi, overriding pkg-config
NETAPI_LIBS Linker flags for netapi, overriding pkg-config
VKD3D_CFLAGS
C compiler flags for libvkd3d, overriding pkg-config
VKD3D_LIBS Linker flags for libvkd3d, overriding pkg-config
LDAP_CFLAGS C compiler flags for openldap, overriding pkg-config
LDAP_LIBS Linker flags for openldap, overriding pkg-config
...
...
@@ -3814,6 +3823,12 @@ if test "${with_v4l+set}" = set; then :
fi
# Check whether --with-vkd3d was given.
if
test
"
${
with_vkd3d
+set
}
"
=
set
;
then
:
withval
=
$with_vkd3d
;
fi
# Check whether --with-vulkan was given.
if
test
"
${
with_vulkan
+set
}
"
=
set
;
then
:
withval
=
$with_vulkan
;
...
...
@@ -14678,6 +14693,94 @@ esac
fi
if
test
"x
$with_vkd3d
"
!=
"xno"
then
if
${
VKD3D_CFLAGS
:+false
}
:
;
then
:
if
${
PKG_CONFIG
+
:
}
false
;
then
:
VKD3D_CFLAGS
=
`
$PKG_CONFIG
--cflags
libvkd3d 2>/dev/null
`
fi
fi
if
${
VKD3D_LIBS
:+false
}
:
;
then
:
if
${
PKG_CONFIG
+
:
}
false
;
then
:
VKD3D_LIBS
=
`
$PKG_CONFIG
--libs
libvkd3d 2>/dev/null
`
fi
fi
$as_echo
"
$as_me
:
${
as_lineno
-
$LINENO
}
: libvkd3d cflags:
$VKD3D_CFLAGS
"
>
&5
$as_echo
"
$as_me
:
${
as_lineno
-
$LINENO
}
: libvkd3d libs:
$VKD3D_LIBS
"
>
&5
ac_save_CPPFLAGS
=
$CPPFLAGS
CPPFLAGS
=
"
$CPPFLAGS
$VKD3D_CFLAGS
"
{
$as_echo
"
$as_me
:
${
as_lineno
-
$LINENO
}
: checking for -lvkd3d"
>
&5
$as_echo_n
"checking for -lvkd3d... "
>
&6
;
}
if
${
ac_cv_lib_soname_vkd3d
+
:
}
false
;
then
:
$as_echo_n
"(cached) "
>
&6
else
ac_check_soname_save_LIBS
=
$LIBS
LIBS
=
"-lvkd3d
$VKD3D_LIBS
$LIBS
"
cat
confdefs.h -
<<
_ACEOF
>conftest.
$ac_ext
/* end confdefs.h. */
/* Override any GCC internal prototype to avoid an error.
Use char because int might match the return type of a GCC
builtin and then its argument prototype would still apply. */
#ifdef __cplusplus
extern "C"
#endif
char vkd3d_create_device ();
int
main ()
{
return vkd3d_create_device ();
;
return 0;
}
_ACEOF
if
ac_fn_c_try_link
"
$LINENO
"
;
then
:
case
"
$LIBEXT
"
in
dll
)
ac_cv_lib_soname_vkd3d
=
`
$ac_cv_path_LDD
conftest.exe |
grep
"vkd3d"
|
sed
-e
"s/dll.*/dll/"
';2,$d'
`
;;
dylib
)
ac_cv_lib_soname_vkd3d
=
`
$OTOOL
-L
conftest
$ac_exeext
|
grep
"libvkd3d
\\
.[0-9A-Za-z.]*dylib"
|
sed
-e
"s/^.*
\/\(
libvkd3d
\.
[0-9A-Za-z.]*dylib
\)
.*
$/
\1
/"
';2,$d'
`
;;
*
)
ac_cv_lib_soname_vkd3d
=
`
$READELF
-d
conftest
$ac_exeext
|
grep
"NEEDED.*libvkd3d
\\
.
$LIBEXT
"
|
sed
-e
"s/^.*
\\
[
\\
(libvkd3d
\\
.
$LIBEXT
[^ ]*
\\
)
\\
].*
$/
\1
/"
';2,$d'
`
if
${
ac_cv_lib_soname_vkd3d
:+false
}
:
;
then
:
ac_cv_lib_soname_vkd3d
=
`
$LDD
conftest
$ac_exeext
|
grep
"libvkd3d
\\
.
$LIBEXT
"
|
sed
-e
"s/^.*
\(
libvkd3d
\.
$LIBEXT
[^ ]*
\)
.*
$/
\1
/"
';2,$d'
`
fi
;;
esac
fi
rm
-f
core conftest.err conftest.
$ac_objext
\
conftest
$ac_exeext
conftest.
$ac_ext
LIBS
=
$ac_check_soname_save_LIBS
fi
if
${
ac_cv_lib_soname_vkd3d
:+false
}
:
;
then
:
{
$as_echo
"
$as_me
:
${
as_lineno
-
$LINENO
}
: result: not found"
>
&5
$as_echo
"not found"
>
&6
;
}
else
{
$as_echo
"
$as_me
:
${
as_lineno
-
$LINENO
}
: result:
$ac_cv_lib_soname_vkd3d
"
>
&5
$as_echo
"
$ac_cv_lib_soname_vkd3d
"
>
&6
;
}
cat
>>
confdefs.h
<<
_ACEOF
#define SONAME_LIBVKD3D "
$ac_cv_lib_soname_vkd3d
"
_ACEOF
fi
CPPFLAGS
=
$ac_save_CPPFLAGS
test
-z
"
$VKD3D_CFLAGS
"
||
VKD3D_CFLAGS
=
`
echo
"
$VKD3D_CFLAGS
"
|
sed
's/ -I\([^/]\)/ -I\$(top_builddir)\/\1/g'
`
test
-z
"
$VKD3D_LIBS
"
||
VKD3D_LIBS
=
`
echo
"
$VKD3D_LIBS
"
|
sed
's/ -L\([^/]\)/ -L\$(top_builddir)\/\1/g'
`
fi
if
test
"x
$ac_cv_lib_soname_vkd3d
"
=
"x"
;
then
:
case
"x
$with_vkd3d
"
in
x
)
as_fn_append wine_notices
"|vkd3d
${
notice_platform
}
development files not found, Direct3D 12 won't be supported."
;;
xno
)
;;
*
)
as_fn_error
$?
"vkd3d
${
notice_platform
}
development files not found, Direct3D 12 won't be supported.
This is an error since --with-vkd3d was requested."
"
$LINENO
"
5
;;
esac
fi
test
"x
$ac_cv_lib_soname_vkd3d
"
!=
"x"
||
enable_d3d12
=
${
enable_d3d12
:-
no
}
EXTRACFLAGS
=
""
...
...
@@ -18184,6 +18287,8 @@ KSTAT_LIBS = $KSTAT_LIBS
PROCSTAT_LIBS =
$PROCSTAT_LIBS
NETAPI_CFLAGS =
$NETAPI_CFLAGS
NETAPI_LIBS =
$NETAPI_LIBS
VKD3D_CFLAGS =
$VKD3D_CFLAGS
VKD3D_LIBS =
$VKD3D_LIBS
EXCESS_PRECISION_CFLAGS =
$EXCESS_PRECISION_CFLAGS
DL_LIBS =
$DL_LIBS
POLL_LIBS =
$POLL_LIBS
...
...
configure.ac
View file @
281bdcac
...
...
@@ -81,6 +81,7 @@ AC_ARG_WITH(sdl, AS_HELP_STRING([--without-sdl],[do not use SDL]))
AC_ARG_WITH(tiff, AS_HELP_STRING([--without-tiff],[do not use TIFF]))
AC_ARG_WITH(udev, AS_HELP_STRING([--without-udev],[do not use udev (plug and play support)]))
AC_ARG_WITH(v4l, AS_HELP_STRING([--without-v4l],[do not use v4l1 (v4l support)]))
AC_ARG_WITH(vkd3d, AS_HELP_STRING([--without-vkd3d],[do not use vkd3d (Direct3D 12 support)]))
AC_ARG_WITH(vulkan, AS_HELP_STRING([--without-vulkan],[do not use Vulkan]))
AC_ARG_WITH(xcomposite,AS_HELP_STRING([--without-xcomposite],[do not use the Xcomposite extension]),
[if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_Xcomposite_h=no; fi])
...
...
@@ -1855,6 +1856,16 @@ fi
WINE_NOTICE_WITH(vulkan,[test "x$ac_cv_lib_soname_vulkan" = "x"],
[libvulkan ${notice_platform}development files not found, Vulkan won't be supported.])
dnl **** Check for vkd3d ****
if test "x$with_vkd3d" != "xno"
then
WINE_PACKAGE_FLAGS(VKD3D,[libvkd3d],,,,
[WINE_CHECK_SONAME(vkd3d,vkd3d_create_device,,,[$VKD3D_LIBS])])
fi
WINE_NOTICE_WITH(vkd3d,[test "x$ac_cv_lib_soname_vkd3d" = "x"],
[vkd3d ${notice_platform}development files not found, Direct3D 12 won't be supported.])
test "x$ac_cv_lib_soname_vkd3d" != "x" || enable_d3d12=${enable_d3d12:-no}
dnl **** Check for gcc specific options ****
AC_SUBST(EXTRACFLAGS,"")
...
...
include/config.h.in
View file @
281bdcac
...
...
@@ -1545,6 +1545,9 @@
/* Define to the soname of the libv4l1 library. */
#undef SONAME_LIBV4L1
/* Define to the soname of the libvkd3d library. */
#undef SONAME_LIBVKD3D
/* Define to the soname of the libvulkan library. */
#undef SONAME_LIBVULKAN
...
...
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