aboutsummaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorRobin Haberkorn <robin.haberkorn@googlemail.com>2012-05-09 21:39:33 +0200
committerRobin Haberkorn <robin.haberkorn@googlemail.com>2012-05-09 21:39:33 +0200
commite04ec59f272ef643eec2d70ccb37e6c48a334df0 (patch)
tree43277f985d88d3e7cfc057ba571b4f46b7fd2d5f /configure.ac
parentbb5445ab939bbe7006800fa63e9218221d5688f9 (diff)
downloadexperiment-player-e04ec59f272ef643eec2d70ccb37e6c48a334df0.tar.gz
under Windows, include icon resource into binary
this is optional, if the resource compiler is not found, only a warning is emitted. * the icon is preliminary (it's the VLC icon)
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac9
1 files changed, 9 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index a5cb1e9..c45ac69 100644
--- a/configure.ac
+++ b/configure.ac
@@ -32,6 +32,15 @@ AC_CHECK_PROG(XSLTPROC, xsltproc, xsltproc)
XSLT_FLAGS="--xinclude"
AC_SUBST(XSLT_FLAGS)
+case $host in
+*-*-mingw*)
+ AC_CHECK_PROG(RC, windres, windres)
+ if [[ x$RC = x ]]; then
+ AC_MSG_WARN([Resource compiler not found... Binary will not have an icon!])
+ fi
+esac
+AM_CONDITIONAL(USE_W32_RES, test x$RC != x)
+
#
# Checks for libraries.
#