The steps:
-
The
autogen.shscript generates theconfigurescript (fromconfigure.ac, using autoconf) and any files it needs (like creatingMakefile.infromMakefile.amusing automake). This requires autotools to be installed on your system, and it must be run when checking out the project from source control (ifconfigureisn’t checked in). People who download source tarballs can usually skip this step, because output of this step is included in source tarballs.Note This is usually equivalent to
autoreconf --install. If there is notautogen.shfile, then just runautoreconf --installinstead. If you have inherited a project with anautogen.sh, consider deleting it if you can useautoreconf --install. -
The
configurescript generatesMakefileand other files needed to build. TypicallyMakefile.inis used as a template to generateMakefile(andconfig.h.into generateconfig.h). This process happens using only standard tools installed on your system, like sed and awk, and doesn’t require autotools to be installed. -
The
makecommand builds the software. -
The
make installcommand installs it.
These are broken into different steps because they are often run at different times. The autogen.sh step is traditionally run by people who are developing the software, since they are expected to install autoconf on their systems and they make changes to configure.ac. End-users are not expected to have autotools installed.
These expectations have been changed a bit now that end-users are more likely to check a project out of source control instead of downloading source releases.