test/configure.in
changeset 11365 a9bd2625fa01
parent 9278 8900afb78a19
child 11369 78b2c58e31da
     1.1 --- a/test/configure.in	Sun Aug 27 19:10:30 2017 -0700
     1.2 +++ b/test/configure.in	Sun Aug 27 22:15:57 2017 -0400
     1.3 @@ -179,6 +179,25 @@
     1.4  AC_SUBST(GLES2LIB)
     1.5  AC_SUBST(XLIB)
     1.6  
     1.7 +dnl Check for Vulkan Header
     1.8 +have_vulkan_hdr=no
     1.9 +vsdk_include_dir="${VULKAN_SDK}/include"
    1.10 +vulkan_header="vulkan/vulkan.h"
    1.11 +save_CPPFLAGS="$CPPFLAGS"
    1.12 +CPPFLAGS="${save_CPPFLAGS} -I$vsdk_include_dir"
    1.13 +AC_CHECK_HEADER($vulkan_header,
    1.14 +                have_vulkan_hdr=yes,
    1.15 +                have_vulkan_hdr=no)
    1.16 +CPPFLAGS="$save_CPPFLAGS"
    1.17 +if test x$have_vulkan_hdr = xyes; then
    1.18 +    # vulkan.h has been found in either $VULKAN_SDK/include or along the
    1.19 +    # the standard include path. Unfortunately there seems no easy
    1.20 +    # way to find out which, so...
    1.21 +    if test -n "$VULKAN_SDK" -a -f "$vsdk_include_dir/$vulkan_header"; then 
    1.22 +        CFLAGS="$CFLAGS -I$vsdk_include_dir"
    1.23 +    fi
    1.24 +fi
    1.25 +
    1.26  dnl Check for SDL_ttf
    1.27  AC_CHECK_LIB(SDL2_ttf, TTF_Init, have_SDL_ttf=yes)
    1.28  if test x$have_SDL_ttf = xyes; then