configure & make problem - autotools and version control
I am developing a small game. I have my project under version control (subversion).
Yesterday I noticed that after checkout you can't just compile the game in the usual way:
(this doesn't work)
This is because install-sh and other files are missing in the repository. I have a ./bootstrap script that solves the problem, but I want the configure script to work right away. So I started adding files under version control. Now I have these autotools related files in svn:
But it still doesnt work as expected:
What can I do have the package build normally without having to run automake and others?
Which files do you have under version control?
Thank you very much!
Is maybe a file not up to date? Why does it work without problems when I run ./bootstrap before? (aclocal, autoconf, automake, autoheader)
"/bin/bash ./config.status --recheck" is what makes them get re-run.
Usually code from repos comes like you describe. They simply run a bootstrap or autonge.sh script which creates the needed file for a release tarball. You can often simply run 'autoreconf -if' to do what the autogen.sh script would do. One this is done in the sources, it makes the config files more version-dependent -for the autoconf/automake/libtool tools I mean.
Actually I thought the user should be able to compile the code from the repository without having to use autotools. But I checked out some repositories of free projects (SDL, xmoto, gedit, wget) and none of them had a ready to use configure script.
It makes sense, since mostly you only use the repository if you are a developer.
I will remove the configure script from the repository too...
Thanks for the info.
One thing more, even if you deliver a pre-configured tarball (I mean that has all the config files pre-generated), the 'recheck' option will cause them all to be regenerated when issuing 'make', so it would still requite your users to have automake/autoconf/libtool/m4/perl (and possibly intltool) installed.
And how do I deactivate recheck?
|All times are GMT -5. The time now is 09:19 AM.|