build: Detect soname of libvulkan at configure time.

Signed-off-by: Józef Kucia <jkucia@codeweavers.com>
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Chip Davis
2018-08-21 18:08:04 +02:00
committed by Alexandre Julliard
parent 94f85114c5
commit 61697e092a
3 changed files with 59 additions and 5 deletions

View File

@@ -77,9 +77,9 @@ AC_CHECK_LIB([pthread], [pthread_create],
[AC_MSG_ERROR([libpthread not found.])])
AC_SUBST([VULKAN_LIBS])
AC_CHECK_LIB([vulkan], [vkGetInstanceProcAddr],
[VULKAN_LIBS="-lvulkan"],
[AC_MSG_ERROR([libvulkan not found.])])
VKD3D_CHECK_SONAME([vulkan], [vkGetInstanceProcAddr],
[VULKAN_LIBS="-lvulkan"],
[AC_MSG_ERROR([libvulkan not found.])])
AS_IF([test "x$with_spirv_tools" = "xyes"],
[PKG_CHECK_MODULES([SPIRV_TOOLS], [SPIRV-Tools-shared],