[PATCH] build-sys: do not ignore datarootdir

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Fix to the ./configure warning which has been printed since
autotools version 2.59c (released at April 2006).

WARNING:  'po/Makefile.in.in' seems to ignore the --datarootdir setting

Signed-off-by: Sami Kerola <kerolasa@xxxxxx>
---
 autogen.sh |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)

diff --git a/autogen.sh b/autogen.sh
index ae9d8c1..dcdcb2c 100755
--- a/autogen.sh
+++ b/autogen.sh
@@ -76,6 +76,14 @@ echo "   libtoolize: $(libtoolize --version | head -1)"
 set -e
 po/update-potfiles
 autopoint --force $AP_OPTS
+if grep -q datarootdir po/Makefile.in.in; then
+	echo autopoint honors dataroot variable, not patching.
+else
+	echo autopoint does not honor dataroot variable, patching.
+	sed -e 's/^datadir *=\(.*\)/datarootdir = @datarootdir@\
+datadir = @datadir@/g' po/Makefile.in.in > po/Makefile.in.in.tmp &&
+	mv -f po/Makefile.in.in.tmp po/Makefile.in.in
+fi
 libtoolize --force $LT_OPTS
 aclocal -I m4 $AL_OPTS
 autoconf $AC_OPTS
-- 
1.7.4.1

--
To unsubscribe from this list: send the line "unsubscribe util-linux" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux