[powerdebug V2: 14/14] Add configure framework
arnd at arndb.de
Wed Mar 23 14:55:58 UTC 2011
On Wednesday 23 March 2011, Daniel Lezcano wrote:
> On 03/23/2011 02:44 PM, Arnd Bergmann wrote:
> > On Wednesday 23 March 2011, Daniel Lezcano wrote:
> >> AUTHORS | 1 +
> >> ChangeLog | 1 +
> >> Makefile.am | 13 +++++++++++++
> >> NEWS | 1 +
> >> autogen.sh | 10 ++++++++++
> >> configure.ac | 26 ++++++++++++++++++++++++++
> > Why would you do this? The changelog is completely empty, and
> > this seems to be far more complex than the nice and clean
> > Makefile it replaces, and it adds dependencies on a number
> > of new tools.
> Hi Arnd,
> The ChangeLog is there because the file is checked by the autconf
> tools. It is empty right now but I guess we can fill it later.
> The same for NEW and AUTHORS.
I was referring to the patch changelog at the start of your email,
not the file this adds.
> You are right about adding dependencies on a new tools, but as far as I
> know the projects usually use the configure tools, so in case of
> development they should be present on the system. The advantage of using
> these tools is we can easily cross compile with the --host option and we
> can check the presence of the needed packages like libncurses-dev.
> About the nice Makefile, we have the Makefile.am which is easy and nice
> enough. We don't have to check the dependencies as it is automatically
> generated by automake.
My experience with automake is that it usually makes cross-compiling
harder, not easier, and more people are familiar with Makefile
syntax than with Makefile.am syntax, so it's harder to debug if
something goes wrong.
With the dependencies, you now add to the existing dependency on a
single package (ncurses) with multiple dependencies that typically
need to be there in a specific version, all for the purpose of
telling the user whether the first dependency is installed or not...
More information about the linaro-dev