When compiling with --enable-usertools and either --enable-libgcrypt (default) or --enable-guardtime , the build will fail with:

  GEN    rscryutil.1
/bin/sh: rscryutil.rst: command not found
make[2]: *** [rscryutil.1] Error 127

The patch adds a check for the rst2man binary to configure.ac.

Tomas
>From ae6f1b0cf1d75fc0713a22c98f0c7f2c6a59493e Mon Sep 17 00:00:00 2001
From: Tomas Heinrich <thein...@redhat.com>
Date: Tue, 14 May 2013 15:14:42 +0200
Subject: [PATCH] Add a check for the rst2man binary

Called when either libgcrypt or GuardTime is enabled.
---
 configure.ac |   12 +++++++++++-
 1 file changed, 11 insertions(+), 1 deletion(-)

diff --git a/configure.ac b/configure.ac
index e18a0a7..7280f3c 100644
--- a/configure.ac
+++ b/configure.ac
@@ -28,7 +28,6 @@ fi
 AC_DISABLE_STATIC
 AC_PROG_LIBTOOL
 AC_CANONICAL_HOST
-AC_PATH_PROG([RST2MAN], [rst2man])
 
 PKG_PROG_PKG_CONFIG
 
@@ -1000,6 +999,17 @@ if test "x$enable_guardtime" = "xyes"; then
 fi
 AM_CONDITIONAL(ENABLE_GUARDTIME, test x$enable_guardtime = xyes)
 
+
+# obtain path for rst2man
+if test "x$enable_libgcrypt" = "xyes" || \
+        "x$enable_guardtime" = "xyes"; then
+        AC_PATH_PROG([RST2MAN], [rst2man])
+        if test "x${RST2MAN}" == "x"; then
+            AC_MSG_FAILURE([rst2man not found in PATH])
+        fi
+fi
+
+
 # RFC 3195 support
 AC_ARG_ENABLE(rfc3195,
         [AS_HELP_STRING([--enable-rfc3195],[Enable RFC3195 support @<:@default=no@:>@])],
-- 
1.7.10.4

_______________________________________________
rsyslog mailing list
http://lists.adiscon.net/mailman/listinfo/rsyslog
http://www.rsyslog.com/professional-services/
What's up with rsyslog? Follow https://twitter.com/rgerhards
NOTE WELL: This is a PUBLIC mailing list, posts are ARCHIVED by a myriad of 
sites beyond our control. PLEASE UNSUBSCRIBE and DO NOT POST if you DON'T LIKE 
THAT.

Reply via email to