From a3153fa9fb8e37e14941f441a1647532a6ceaa9a Mon Sep 17 00:00:00 2001 From: Benjamin Gilbert Date: Sat, 30 Jul 2016 16:15:52 -0500 Subject: [PATCH] configure.ac: Build Windows resources iff building for Windows host Don't assume we need them just because windres is available. Do assume that windres is available when building for Windows. https://lists.andrew.cmu.edu/pipermail/openslide-users/2016-July/001274.html --- configure.ac | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/configure.ac b/configure.ac index 994615f7..ff3ff913 100644 --- a/configure.ac +++ b/configure.ac @@ -27,9 +27,9 @@ AC_TYPE_UINTPTR_T LT_PREREQ([2.2.5]) LT_INIT([win32-dll disable-static]) LT_LANG([Windows Resource]) -AM_CONDITIONAL([WINDOWS_RESOURCES], [test x$RC != x]) -# for windows manifest +# Windows resources and manifest +AM_CONDITIONAL([WINDOWS_RESOURCES], [test $host_os = mingw32]) WINDOWS_VERSIONINFO=$(echo "${VERSION}.0.0.0" | cut -f1-4 -d. | tr . ,) AC_SUBST([WINDOWS_VERSIONINFO])