autoconf: Add support for --infodir
A message that is not in the archive (sent off-list or not yet received): Tim Visher <[email protected]
PATCH 1/1 autoconf: Add support for --infodir
Quoted 11 lines · Jeff King
Quoted 9 lines · Tim Visher
I'm working on getting git 1.6.2-rc2 built. I have a bin, man, info, and html directory in my home folder that I'd like to use as the defaults for git. I attempted to do this through
make configure
./configure --XXdir=/full/path/to/dir make all man info html
make install install-man install-info install-html
Quoted 5 lines
Quoted 5 lines
But other than the binaries (and I'm not even totally convinced they got in correctly) and the man pages, everything else seems to be attempting to go to the typical places in
/usr/local.What am I doing wrong?
Why don't you use simply --prefix=DIR?
Quoted 10 lines
The configure support is notoriously incomplete (AFAIK, very few of the active developers use it regularly). Probably you need something like this (but I didn't test it):
config.mak.in +0
-0
config.mak.in datarootdir = @datarootdir@ · line 25
Quoted 8 lines
config.mak.in +2
-0@@ -18,6 +18,8 @@ datarootdir = @datarootdir@ template_dir = @datadir@/git-core/templates mandir=@mandir@ +htmldir=@htmldir@ +infodir=@infodir@ srcdir = @srcdir@ VPATH = @srcdir@
Well, the infodir part works trivially, because autoconf (and therefore ./configure script) has support for --infodir=DIR. Below there is patch that adds that, with the commit message.
But it is more difficult with respect to --htmldir. I am not autoconf hacker, so I don't know how to add support for having --htmldir=DIR in ./configure (in configure.ac). What can be done is to derive htmldir in config.mak.in from other sources, for example:
htmldir=@datadir@/doc/git
or something like that.
-- >8 --
Now that we actually (can) install some info files, and that $infodir is set and used in Makefile(s), let add support for --infodir=DIR [PREFIX/info] ./configure option in config.mak.in.
Half of patch by Jeff King <[email protected]>m adding --XXdir support (the easy part: autoconf has --infodir, but not --htmldir).
--- config.mak.in | 1 + 1 files changed, 1 insertions(+), 0 deletions(-)
config.mak.in +1 -0
@@ -18,6 +18,7 @@ datarootdir = @datarootdir@ template_dir = @datadir@/git-core/templates mandir=@mandir@ +infodir=@infodir@ srcdir = @srcdir@ VPATH = @srcdir@
A message that is not in the archive (sent off-list or not yet received): [email protected]
Quoted 12 lines · David Syzdek
Quoted 11 lines · Jakub Narebski
Quoted 10 lines · Jeff King
Quoted 8 lines · Tim Visher
I'm working on getting git 1.6.2-rc2 built. I have a bin, man, info, and html directory in my home folder that I'd like to use as the defaults for git. I attempted to do this through
make configure
./configure --XXdir=/full/path/to/dir make all man info html
make install install-man install-info install-html
[...]
Quoted 37 lines
Quoted 22 lines
Quoted 9 lines
The configure support is notoriously incomplete (AFAIK, very few of the active developers use it regularly). Probably you need something like this (but I didn't test it):
config.mak.in +0
-0config.mak.in datarootdir = @datarootdir@ · line 25
Quoted 8 lines
config.mak.in +2
-0@@ -18,6 +18,8 @@ datarootdir = @datarootdir@ template_dir = @datadir@/git-core/templates mandir=@mandir@ +htmldir=@htmldir@ +infodir=@infodir@ srcdir = @srcdir@ VPATH = @srcdir@Well, the infodir part works trivially, because autoconf (and therefore ./configure script) has support for --infodir=DIR. Below there is patch that adds that, with the commit message.
Quoted 4 lines
But it is more difficult with respect to --htmldir. I am not autoconf hacker, so I don't know how to add support for having --htmldir=DIR in ./configure (in configure.ac). What can be done is to derive htmldir in config.mak.in from other sources, for example:
Autoconf add support for --htmldir in version 2.60. Here is a snippet from the help message from a configure script generated with 2.60:
--datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
--docdir=DIR documentation root [DATAROOTDIR/doc/PROJECT_TARNAME]
--htmldir=DIR html documentation [DOCDIR]
Quoted 6 lines
The current configure.ac requires autoconf version>= 2.59, bumping the requirement to autoconf>= 2.60 would allow the autoconf variable $(htmldir) to be used. Bumping the required version of autoconf will affect users with older linux installations who use git to upgrade git; and may affect the maintainer's ability to create a "release" tarball if he has an older version of autoconf.
Well, I have autoconf 2.59, so I cannot test the following patch (and I am not sure if it is welcome). And of course it needs commit message, at least with explanation why bumping required version of autoconf was needed.
-- >8 --
config.mak.in +1 -0
@@ -19,6 +19,7 @@ template_dir = @datadir@/git-core/templates mandir=@mandir@ infodir=@infodir@ +htmldir=@htmldir@ srcdir = @srcdir@ VPATH = @srcdir@
configure.ac +1 -1
@@ -1,7 +1,7 @@ # -*- Autoconf -*- # Process this file with autoconf to produce a configure script. -AC_PREREQ(2.59) +AC_PREREQ(2.60) AC_INIT([git], [@@GIT_VERSION@@], [[email protected]]) AC_CONFIG_SRCDIR([git.c])
Signature · 2 lines
Jakub Narebski Poland
Quoted 44 lines · Jakub Narebski
Quoted 11 lines · Jeff King
Quoted 9 lines · Tim Visher
I'm working on getting git 1.6.2-rc2 built. I have a bin, man, info, and html directory in my home folder that I'd like to use as the defaults for git. I attempted to do this through
make configure
./configure --XXdir=/full/path/to/dir make all man info html
make install install-man install-info install-htmlQuoted 5 lines
Quoted 5 lines
But other than the binaries (and I'm not even totally convinced they got in correctly) and the man pages, everything else seems to be attempting to go to the typical places in
/usr/local.What am I doing wrong?
Why don't you use simply --prefix=DIR?
Quoted 16 lines
The configure support is notoriously incomplete (AFAIK, very few of the active developers use it regularly). Probably you need something like this (but I didn't test it):
config.mak.in +0
-0@@ -18,6 +18,8 @@ datarootdir = @datarootdir@template_dir = @datadir@/git-core/templates
mandir=@mandir@
config.mak.in +2
-0+htmldir=@htmldir@ +infodir=@infodir@Quoted 2 lines
srcdir = @srcdir@
VPATH = @srcdir@Well, the infodir part works trivially, because autoconf (and therefore ./configure script) has support for --infodir=DIR. Below there is patch that adds that, with the commit message.
Quoted 5 lines
But it is more difficult with respect to --htmldir. I am not autoconf hacker, so I don't know how to add support for having --htmldir=DIR in ./configure (in configure.ac). What can be done is to derive htmldir in config.mak.in from other sources, for example:
Autoconf add support for --htmldir in version 2.60. Here is a snippet from the help message from a configure script generated with 2.60:
--datarootdir=DIR read-only arch.-independent data root [PREFIX/share] --docdir=DIR documentation root [DATAROOTDIR/doc/PROJECT_TARNAME] --htmldir=DIR html documentation [DOCDIR]
The current configure.ac requires autoconf version >= 2.59, bumping the requirement to autoconf >= 2.60 would allow the autoconf variable $(htmldir) to be used. Bumping the required version of autoconf will affect users with older linux installations who use git to upgrade git; and may affect the maintainer's ability to create a "release" tarball if he has an older version of autoconf.
Quoted 27 lines
htmldir=@datadir@/doc/git
or something like that.
-- >8 --
Now that we actually (can) install some info files, and that $infodir is set and used in Makefile(s), let add support for --infodir=DIR [PREFIX/info] ./configure option in config.mak.in.Half of patch by Jeff King <[email protected]>m adding --XXdir support (the easy part: autoconf has --infodir, but not --htmldir).
Signed-off-by Jakub Narebski <[email protected]>---
config.mak.in | 1 +1 files changed, 1 insertions(+), 0 deletions(-)config.mak.in +0
-0@@ -18,6 +18,7 @@ datarootdir = @datarootdir@template_dir = @datadir@/git-core/templates
mandir=@mandir@
+infodir=@infodir@
Quoted 7 lines
srcdir = @srcdir@
VPATH = @srcdir@--
To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
--
An earthquake wiped out Etchisketchistan today.
-- Onion TV
Gaah, this was meant to be reply to message by Peff
Message-ID: <[email protected]> in the "./configure --XXdir= ignored?" thread, but I mis-pasted reply-to id.
Quoted 6 lines · Jakub Narebski
-- >8 --
Now that we actually (can) install some info files, and that $infodir is set and used in Makefile(s), let add support for --infodir=DIR [PREFIX/info] ./configure option in config.mak.in.Half of patch by Jeff King <[email protected]>m adding --XXdir support
That was of course meant to be s/>m/>,/
Half of patch by Jeff King <[email protected]>, adding --XXdir support
[...]
Signature · 3 lines
Jakub Narebski Poland ShadeHawk on #git