From: Ralf Wildenhues Date: Mon, 5 Nov 2007 11:11:21 +0000 (+0100) Subject: Optionally define $datarootdir on our own for autoconf <2.60 compatibility. X-Git-Tag: mutt-1-5-18-rel~96 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b0d690dc15c0aa2e1e55b26c22425e782ed3b534;p=mutt Optionally define $datarootdir on our own for autoconf <2.60 compatibility. While I'm at it, fix two warnings in other files about ignoring datarootdir with autoconf >2.60. Closes #2905. --- diff --git a/configure.ac b/configure.ac index a3c20323..34961b8a 100644 --- a/configure.ac +++ b/configure.ac @@ -521,6 +521,11 @@ fi AC_SUBST(DOTLOCK_TARGET) +dnl autoconf <2.60 compatibility +if test -z "$datarootdir"; then + datarootdir='${prefix}/share' +fi +AC_SUBST([datarootdir]) AC_MSG_CHECKING(where to put the documentation) AC_ARG_WITH(docdir, AC_HELP_STRING([--with-docdir=PATH], [Specify where to put the documentation]), diff --git a/intl/Makefile.in b/intl/Makefile.in index 59ad491f..6ad1204a 100644 --- a/intl/Makefile.in +++ b/intl/Makefile.in @@ -32,6 +32,7 @@ transform = @program_transform_name@ libdir = @libdir@ includedir = @includedir@ datadir = @datadir@ +datarootdir = @datarootdir@ localedir = $(datadir)/locale gettextsrcdir = $(datadir)/gettext/intl aliaspath = $(localedir) diff --git a/po/Makefile.in.in b/po/Makefile.in.in index cf6379f3..85a905b2 100644 --- a/po/Makefile.in.in +++ b/po/Makefile.in.in @@ -23,6 +23,7 @@ VPATH = @srcdir@ prefix = @prefix@ exec_prefix = @exec_prefix@ datadir = @datadir@ +datarootdir = @datarootdir@ localedir = $(datadir)/locale gettextsrcdir = $(datadir)/gettext/po