summaryrefslogtreecommitdiffstats
path: root/patches/systemd-229/0005-HACK-configure.ac-disable-NLS-to-avoid-unnecessary-d.patch
blob: c52ea78265e4a3d43c5376a35b3f88bfbfec6ef0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
From: Michael Olbrich <m.olbrich@pengutronix.de>
Date: Tue, 7 Jul 2015 09:58:21 +0200
Subject: [PATCH] HACK: configure.ac: disable NLS to avoid unnecessary
 dependencies during autogen.sh

Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
---
 configure.ac | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/configure.ac b/configure.ac
index 5fd73c59f15a..507ad1cc0660 100644
--- a/configure.ac
+++ b/configure.ac
@@ -59,6 +59,7 @@ SET_ARCH(IA32, i*86*)
 SET_ARCH(MIPS, mips*)
 SET_ARCH(AARCH64, aarch64*)
 
+m4_ifdef([AM_NLS__DISABLED], [
 # i18n stuff for the PolicyKit policy files, heck whether intltool can be found, disable NLS otherwise
 AC_CHECK_PROG(intltool_found, [intltool-merge], [yes], [no])
 AS_IF([test x"$intltool_found" != xyes],
@@ -81,6 +82,12 @@ AS_IF([test -z "$INTLTOOL_POLICY_RULE"], [
     INTLTOOL_POLICY_RULE='%.policy: %.policy.in ; @echo "  ITMRG   " $@ && echo "*** intltool support required to build target $@" && false'
     AC_SUBST(INTLTOOL_POLICY_RULE)
 ])
+],[
+touch `dirname $0`/po/Makefile.in.in
+echo -e 'all:\ninstall:\n' > `dirname $0`/po/Makefile
+INTLTOOL_POLICY_RULE=
+AC_SUBST(INTLTOOL_POLICY_RULE)
+])
 
 GETTEXT_PACKAGE=systemd
 AC_SUBST(GETTEXT_PACKAGE)