automake
[Top][All Lists]
Advanced

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

Re: no config.sub/guess copied


From: Vincent Torri
Subject: Re: no config.sub/guess copied
Date: Tue, 15 Nov 2005 18:14:39 +0000 (UTC)

On Tue, 15 Nov 2005, Stepan Kasal wrote:

> Hello,
> 
> On Tue, Nov 15, 2005 at 08:07:01AM +0000, Vincent Torri wrote:
> > AC_CANONICAL_TARGET
> > AC_CONFIG_AUX_DIR([.])
> > AM_INIT_AUTOMAKE
> 
> AC_CONFIG_AUX_DIR has to be called before AC_CANONICAL_TARGET.

ok, that should be the main problem, I think.

> 
> > I mention that I use the autotools in  such a way that there is no
> > Makefile.am. I have already my Makefile written.
> 
> The purpose of automake is to generate Makefile.in from Makefile.am.
> Using automake without Makefile.am is very unusual;

I know several projects that uses the configure script to initalise some 
files only. But it's true that most of the project uses at least automake 
and autoconf (and libtool) with the usual manner.

> this implies it is not debugged.

of course.
 
> Perhaps you could use only Autoconf, perhaps with aclocal, but without
> automake.

but then the cvs must contain config.sub/guess, as I have to use 
AC_CANONICAL_TARGET, right ?
 
> > Of course, I would like to avoid adding these files to the distribution 
> > of my project.
> 
> The term "distribution" in automake terminology means the tarball
> project-1.2.3.tar.gz, as generated by "make dist".
> To build any program from this tarball, you don't need neither Autoconf,
> nor Automake; their work is already done, and the results are contained
> within that tarball: ./configure, Makefile.in, etc.
> In this sense, config.sub and config.guess have to be distributed, as
> 'configure' is distributed.
> 
> But you mean another "distribution": something like CVS or other version
> management system's repository.

right, I'm sorry.

> But such repository usually contains a script which calls autotools to
> initialte the build.  This script might be called "bootstrap" or
> "autogen.sh".

yes, it's the case.

> I suggest that this script copies the needed files from
> somewhere (eg. /usr/share/automake-1.9/), without calling automake.

ok. That answer my question above. So I just have to be sure that 
config.sub/guess which is in CVS works with the AC_CANONICAL_TARGET that 
the person that compiles the program (from the bootstrapping) has. Is it 
possible ?

thank you

Vincent Torri





reply via email to

[Prev in Thread] Current Thread [Next in Thread]