Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 1 | Upstream-Status: Pending |
| 2 | Signed-off-by: Ross Burton <ross.burton@intel.com> |
| 3 | |
| 4 | From a62dc95d75691ea4aefa86d8bbe54c62afd78ff6 Mon Sep 17 00:00:00 2001 |
| 5 | From: Ross Burton <ross.burton@intel.com> |
| 6 | Date: Tue, 17 Sep 2013 12:27:36 +0100 |
| 7 | Subject: [PATCH] build-sys: fix out-of-tree builds without xmltoman |
| 8 | |
| 9 | If manpages are enabled but xmltoman isn't present, out-of-tree builds fail |
| 10 | because it checks inside the build directory for the pre-generated manpages. |
| 11 | |
| 12 | Fix this by using $srcdir when looking for files inside the source directory. |
| 13 | --- |
| 14 | configure.ac | 2 +- |
| 15 | 1 file changed, 1 insertion(+), 1 deletion(-) |
| 16 | |
| 17 | diff --git a/configure.ac b/configure.ac |
| 18 | index 9debce2..047c7ae 100644 |
| 19 | --- a/configure.ac |
| 20 | +++ b/configure.ac |
| 21 | @@ -1021,7 +1021,7 @@ if test x$manpages = xyes ; then |
| 22 | fi |
| 23 | |
| 24 | if test x$have_xmltoman = xno -o x$xmltoman = xno; then |
| 25 | - if ! test -e man/avahi-daemon.8 ; then |
| 26 | + if ! test -e $srcdir/man/avahi-daemon.8 ; then |
| 27 | AC_MSG_ERROR([*** xmltoman was not found or was disabled, it is required to build the manpages as they have not been pre-built, install xmltoman, pass --disable-manpages or dont pass --disable-xmltoman]) |
| 28 | exit 1 |
| 29 | fi |
| 30 | -- |
| 31 | 1.7.10.4 |
| 32 | |