Skip to content

Commit cee4f37

Browse files
committed
configure: Check for vulkan headers
The vulkan.pc pkgconfig file is for the vulkan loader library and doesn't guarantee the presence of the vulkan headers. Indeed, some distributions (e.g. Arch) package those in separate packages (vulkan-icd-loader and vulkan-headers). It would be perhaps more correct to check for vulkan.hpp, but that header is so big that it would slow the configuration by ~10 seconds.
1 parent c33c39d commit cee4f37

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

configure.ac

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1249,6 +1249,7 @@ AC_ARG_ENABLE(vulkan,
12491249
)
12501250

12511251
PKG_CHECK_MODULES([VULKAN], [vulkan >= 1.1.101], [found_vulkan=yes], [found_vulkan=no])
1252+
AC_CHECK_HEADERS([vulkan/vulkan.h], [], [found_vulkan=no])
12521253

12531254
if test $vulkan_req != no -a $sdl = yes -a $sdl_version = 2 -a $found_vulkan = yes
12541255
then

0 commit comments

Comments
 (0)