From 8ce0649cb164f1a7fab7cdbd40fc1765f665bfba Mon Sep 17 00:00:00 2001 From: Sam Lantinga Date: Wed, 18 Jul 2007 04:04:24 +0000 Subject: [PATCH] Better windres detection --- configure.in | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/configure.in b/configure.in index eed460461..2f55d286e 100644 --- a/configure.in +++ b/configure.in @@ -96,7 +96,12 @@ AC_PROG_CC AC_PROG_CXX AC_PROG_INSTALL AC_PROG_MAKE_SET -AC_CHECK_PROGS(WINDRES, windres i386-mingw32-windres) +if test -z "$host_alias"; then + hostaliaswindres= +else + hostaliaswindres="$host_alias-windres" +fi +AC_CHECK_PROGS(WINDRES, [windres $hostaliaswindres $host_os-windres]) dnl Check for compiler characteristics AC_C_CONST