[PATCH 2/2] Fix build when po4a is not available
Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
---
Makefile.am | 6 +++++-
configure.ac | 3 +++
2 files changed, 8 insertions(+), 1 deletions(-)
diff --git a/Makefile.am b/Makefile.am
index 8fe8726..aaa7d85 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -4,6 +4,10 @@ if WITH_DSELECT
MAYBE_DSELECT = dselect
endif
+if WITH_PO4A
+ MAYBE_MAN = man
+endif
+
SUBDIRS = \
lib \
dpkg-deb \
@@ -13,7 +17,7 @@ SUBDIRS = \
$(MAYBE_DSELECT) \
scripts \
po \
- man
+ $(MAYBE_MAN)
ACLOCAL_AMFLAGS = -I m4
diff --git a/configure.ac b/configure.ac
index 52f019c..67bba57 100644
--- a/configure.ac
+++ b/configure.ac
@@ -59,6 +59,9 @@ AC_PROG_LEX
AC_PROG_RANLIB
DPKG_PROG_PERL
+AC_CHECK_PROG([PO4A], [po4a])
+AM_CONDITIONAL([WITH_PO4A], [test -n "$PO4A"])
+
# Checks for operating system services and capabilities.
AC_SYS_LARGEFILE
--
1.6.5.1
Reply to: