From 84ab23f37f3c5dae1323cd377b38fd6e6d296156 Mon Sep 17 00:00:00 2001 From: Ryan Tandy Date: Fri, 17 Apr 2020 13:09:17 -0700 Subject: [PATCH] ITS#9087 Let configure detect cross windres tool --- .gitignore | 1 + configure.in | 2 ++ libraries/liblutil/Makefile.in | 2 ++ 3 files changed, 5 insertions(+) diff --git a/.gitignore b/.gitignore index 2f138917ee..5baf6ba863 100644 --- a/.gitignore +++ b/.gitignore @@ -147,6 +147,7 @@ libraries/liblunicode/ure.c libraries/liblunicode/ure.h libraries/liblunicode/urestubs.c libraries/liblunicode/version.c +libraries/liblutil/slapdmsg.res libraries/liblutil/version.c libraries/librewrite/rewrite libraries/librewrite/version.c diff --git a/configure.in b/configure.in index cca3b0bb7e..0dbcba1986 100644 --- a/configure.in +++ b/configure.in @@ -708,6 +708,8 @@ case $host_os in *interix* ) ac_cv_interix=yes ;; esac +AC_CHECK_TOOL(RC, windres, ) + dnl ---------------------------------------------------------------- dnl Checks for file extensions AC_EXEEXT diff --git a/libraries/liblutil/Makefile.in b/libraries/liblutil/Makefile.in index 13171b9c0f..3699a9df10 100644 --- a/libraries/liblutil/Makefile.in +++ b/libraries/liblutil/Makefile.in @@ -50,6 +50,8 @@ testtavl: $(XLIBS) testtavl.o # It's ok for them to be here because the clean rule is harmless, and # slapdmsg.res won't get built unless it's declared in OBJS. +RC = @RC@ + slapdmsg.bin: FORCE @if [ ! -f $@ ]; then cp $(srcdir)/$@ .; fi