Permalink
Browse files

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
  • Loading branch information...
1 parent 76ae90d commit a3153fa9fb8e37e14941f441a1647532a6ceaa9a @bgilbert bgilbert committed Jul 30, 2016
Showing with 2 additions and 2 deletions.
  1. +2 −2 configure.ac
View
@@ -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])

0 comments on commit a3153fa

Please sign in to comment.