vkd3d/m4/widl.m4
Henri Verbeet 2b7d9790d6 configure: Use AC_CHECK_TOOL to check for widl.
In particular, this will automatically pick up
x86_64-w64-mingw32-widl/i686-w64-mingw32-widl (provided by mingw-w64-tools on
Debian) when present and building for the corresponding hosts.
2024-04-11 16:12:22 -05:00

15 lines
501 B
Plaintext

dnl VKD3D_PROG_WIDL(major, minor)
AC_DEFUN([VKD3D_PROG_WIDL],
[AC_CHECK_TOOL([WIDL], [widl], [no])
AS_IF([test "x$WIDL" != "xno"],
[AC_MSG_CHECKING([checking whether widl version >= $1.$2])
vkd3d_widl_version=`$WIDL -V 2>/dev/null | $SED -E '/version/{s/.* version (.*)/\1/;q;}'`
AX_COMPARE_VERSION([$vkd3d_widl_version], [ge], [$1.$2],
[AC_MSG_RESULT([yes ($vkd3d_widl_version)])],
[AC_MSG_RESULT([no ($vkd3d_widl_version)])
WIDL=no])
])])