Linux C++ Programming - Setting Up Ubuntu: autoconf, automake, libtools, acmkdir
![]()
Producing code to the GNU coding standards requires setting up your system appropriately.
step 0
Download and read the free book ‘Developing software with GNU’ [link]
step 1
Ensure Free Software Foundation tools are present and up to date:
apt-get install make [link]
apt-get install m4 [link]
apt-get install texinfolink]
apt-get install tar [link]
step 2
Install the GNU build system:
apt-get install autoconf [link]
apt-get install automake [link]
apt-get install libtool [link]
step 3
There is a hiccup with autotoolset [link]
as it does not exist in any of the repositories and can only be downloaded as an rpm package.
wget http://downloads.sourceforge.net/autotoolset/...
...autotoolset-0.11.4-1.i386.rpm?modtime=1055116800&big_mirror=0
It must, therefore, be converted to a debian package with alien.
Install alien:
sudo apt-get install alien [link]
Convert rpm:
sudo alien autotoolset-0.11.4-1.i386.rpm
Depackage and install resulting deb package
sudo dpkg -i autotoolset_0.11.4-2_i386.deb [link]
N.B.
I had a problem running the wonderfully useful acmkdir script getting the error
/usr/bin/acmkdir: 24: function: not found
Go figure?
and had to call the shell directly:
$SHELL acmkdir helloworld