From 388b1b0efd3e621bcf5095f9dc2aa70470231565 Mon Sep 17 00:00:00 2001 From: Kalle Olavi Niemitalo Date: Sun, 17 Sep 2006 17:55:53 +0300 Subject: [PATCH] Define datarootdir in Makefile.config.in, for better Autoconf compatibility. With Autoconf 2.60a, the default values of datadir, infodir, and mandir refer to ${datarootdir}. If Makefile.config.in does not define datarootdir, Autoconf detects this and expands ${datarootdir} when it substitutes expressions like @datadir@, but it also outputs the following warning: config.status: creating Makefile.config config.status: WARNING: /home/Kalle/src/elinks/Makefile.config.in seems to ignore the --datarootdir setting According to a comment in config.status, "This hack should be removed a few years after 2.60." So it seems best to prepare for that now by defining datarootdir = @datarootdir@ in Makefile.config.in. Earlier versions of Autoconf may leave that line unexpanded; but because the makefiles do not directly refer to ${datarootdir}, there's no harm. --- Makefile.config.in | 1 + 1 file changed, 1 insertion(+) diff --git a/Makefile.config.in b/Makefile.config.in index 896fa718..98afd5b5 100644 --- a/Makefile.config.in +++ b/Makefile.config.in @@ -21,6 +21,7 @@ exec_prefix = @exec_prefix@ bindir = @bindir@ sbindir = @sbindir@ libexecdir = @libexecdir@ +datarootdir = @datarootdir@ datadir = @datadir@ sysconfdir = @sysconfdir@ sharedstatedir = @sharedstatedir@