Using autoconf Command In Linux (Examples)

autoconf command in Linux platform allows users to generate configuration script from a provided TEMPLATE-FILE or ‘configure.ac’ if the file is existing, otherwise from ‘configure.in’. Also, the output is sent to TEMPLATE-FILE if specified, otherwise the output is displayed in ‘configure’.

In order to use autoconf command in Linux, users need to install this. Users can run the command below for installation.

sudo apt get-install autoconf

Syntax to use autoconf command in Linux

autoconf [OPTION] [TEMPLATE-FILE]

Note: In order to check all available options with this command, users can run “autoconf -h” or “autoconf -help“.

Examples to use autoconf command in Linux

1: Displaying version number

autoconf -V

or

autoconf - - version

2: Saving the output in a specified file

autoconf -o filename

or

autoconf - - option filename

3: Displaying the warnings falling in categories

autoconf -w category

or

autoconf - - warnings category