From b3280b8bca86dedfe4018584a4d83d7bff2dfd7c Mon Sep 17 00:00:00 2001
From: Lukas Fleischer <calcurse@cryptocrack.de>
Date: Tue, 5 Feb 2013 21:36:22 +0100
Subject: Do not ignore "--datarootdir" in "po/Makefile.in.in"

This fixes the "--datarootdir" warning seen with autotools >=2.59c. Note
that this is a workaround for a bug in autopoint(1).

Inspired by util-linux commit cc3c3fdd29719883605687fc0d11391386ab46c6.

Signed-off-by: Lukas Fleischer <calcurse@cryptocrack.de>
---
 autogen.sh | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/autogen.sh b/autogen.sh
index 4323159..321876d 100755
--- a/autogen.sh
+++ b/autogen.sh
@@ -30,6 +30,11 @@
 #
 
 autopoint --force
+if ! grep -F -q datarootdir po/Makefile.in.in
+then
+  sed -i '/^datadir =/i\
+datarootdir = @datarootdir@\' po/Makefile.in.in
+fi
 aclocal -I m4
 autoheader
 automake --foreign --copy --add-missing
-- 
cgit v1.2.3-70-g09d2