Re: [PATCH] Bugfix: undefined htmldir in config.mak.autogen
- From
Stefano Lattarini <stefano.lattarini@gmail.com>
- Date
- Feb 20, 2013, 08:22 UTC
- Message-ID
- <512487CB.3050908@gmail.com>
- In-Reply-To
- <CANYiYbF0C2qormAWNVhHm45TVQ6woECD7u1cCxxNuwyZxziNpw@mail.gmail.com>
On 02/20/2013 02:39 AM, Jiang Xin wrote:
Show 7 quoted lines
>
> [SNIP]
>
> I am not familiar with autoconf. After clone autoconf and check,
> I cannot find a neat way to change "htmldir" default location to
> use ${datarootdir} (just like mandir).
>This one-line change should be enough to do what you want:
diff --git a/configure.ac b/configure.ac index 1991258..2bfbec9 100644 --- a/configure.ac +++ b/configure.ac @@ -149,6 +149,8 @@ AC_CONFIG_SRCDIR([git.c]) config_file=config.mak.autogen config_in=config.mak.in
+AC_SUBST([htmldir], ['${datarootdir}'])
+
GIT_CONF_SUBST([AUTOCONFIGURED], [YesPlease])# Directories holding "saner" versions of common or POSIX binaries.
Not sure whether this a good idea though (I haven't really followed the discussion); but it is easily doable.
HTH, Stefano