docs: Update documentation for spapr-vio addresses
[libvirt/ericb.git] / m4 / virt-win-windres.m4
blobaf27f231b417e56545e8120cc23ec9ec82005b70
1 dnl The Cygwin, MinGW and MSVC windres checks
2 dnl
3 dnl Copyright (C) 2016 Red Hat, Inc.
4 dnl
5 dnl This library is free software; you can redistribute it and/or
6 dnl modify it under the terms of the GNU Lesser General Public
7 dnl License as published by the Free Software Foundation; either
8 dnl version 2.1 of the License, or (at your option) any later version.
9 dnl
10 dnl This library is distributed in the hope that it will be useful,
11 dnl but WITHOUT ANY WARRANTY; without even the implied warranty of
12 dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
13 dnl Lesser General Public License for more details.
14 dnl
15 dnl You should have received a copy of the GNU Lesser General Public
16 dnl License along with this library.  If not, see
17 dnl <http://www.gnu.org/licenses/>.
18 dnl
20 AC_DEFUN([LIBVIRT_WIN_CHECK_WINDRES], [
21   dnl Look for windres to build a Windows icon resource.
22   with_windres=no
23   case "$host" in
24     *-*-mingw* | *-*-cygwin* | *-*-msvc* )
25       AC_CHECK_TOOL([WINDRES], [windres], [])
26       if test "x$WINDRES" != "x"; then
27         with_windres=yes
28       fi
29       ;;
30   esac
31   AM_CONDITIONAL([WITH_WIN_ICON], [test "$with_windres" = "yes"])
34 AC_DEFUN([LIBVIRT_WIN_RESULT_WINDRES], [
35   LIBVIRT_RESULT([windres], [$with_windres], [$WINDRES])