From 6523844af8318bef405e396e43e577f0b4d99879 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B3zef=20Kucia?= Date: Mon, 10 Oct 2016 11:22:50 +0200 Subject: [PATCH] build: Check for cross compilers when checking for other programs. --- configure.ac | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/configure.ac b/configure.ac index 7f141777..cee444cc 100644 --- a/configure.ac +++ b/configure.ac @@ -35,6 +35,10 @@ AS_IF([test "x${GCC}" = "xyes"], VKD3D_CHECK_CFLAGS([-Wunused-but-set-parameter]) VKD3D_CHECK_CFLAGS([-Wvla])]) +dnl Check for cross compilers +VKD3D_CHECK_MINGW32_PROG([CROSSCC32], [CROSSTARGET32], [false]) +VKD3D_CHECK_MINGW64_PROG([CROSSCC64], [CROSSTARGET64], [false]) + dnl Check for headers AC_CHECK_HEADERS([pthread.h vulkan/vulkan.h]) AS_IF([test "x$ac_cv_header_pthread_h" != "xyes"], [AC_MSG_ERROR([pthread.h not found.])]) @@ -52,12 +56,8 @@ dnl Check for functions VKD3D_CHECK_SYNC_ADD_AND_FETCH_FUNC VKD3D_CHECK_SYNC_SUB_AND_FETCH_FUNC -dnl Check for cross compilers -VKD3D_CHECK_MINGW32_PROG(CROSSCC32, CROSSTARGET32, [false]) -VKD3D_CHECK_MINGW64_PROG(CROSSCC64, CROSSTARGET64, [false]) - -AM_CONDITIONAL([HAS_CROSSTARGET32], [test "x$CROSSTARGET32" != xfalse]) -AM_CONDITIONAL([HAS_CROSSTARGET64], [test "x$CROSSTARGET64" != xfalse]) +AM_CONDITIONAL([HAS_CROSSTARGET32], [test "x$CROSSTARGET32" != "xfalse"]) +AM_CONDITIONAL([HAS_CROSSTARGET64], [test "x$CROSSTARGET64" != "xfalse"]) AC_CONFIG_FILES([Makefile]) AC_OUTPUT