Noeud « Next »: Making a Tarball, Noeud « Previous »: Package Name and Version, Noeud « Up »: The GNU Build System
If something goes wrong, or if it is simply the first time you create configure.ac or a Makefile.am, you need to set up the GNU Build System. That's the goal of the simple script bootstrap, which most important action is invoking:
$ autoreconf -fvi
The various files (configure, Makefile.in, etc.) are created. There is no need to run make distclean, or aclocal or whatever, before running autoreconf: it knows what to do.
Then invoke configure and make (voir GCC):
$ ./configure CC=gcc-3.2 CXX=g++-3.2 $ make
Alternatively you may set CC
and CXX
in your environment:
$ export CC=gcc-3.2 $ export CXX=g++-3.2 $ ./configure && make
This solution is preferred as in that case the value of CC
etc. will be used by the ./configure invocation from
make distcheck (voir Making a Tarball).