Compilation and Installation using Autoconf

  1. Basic Usage
  2. Driver Options
  3. Library Options
  4. Demo Program Options

1. Basic Usage

The autoconf generated configure script can be used to guess your platform and change various options for building Mesa. To use the configure script, type:

    ./configure

To see a short description of all the options, type ./configure --help. If you are using a development snapshot and the configure script does not exist, type ./autogen.sh to generate it first. If you know the options you want to pass to configure, you can pass them to autogen.sh. It will run configure with these options after it is generated. Once you have run configure and set the options to your preference, type:

    make

This will produce libGL.so and several other libraries depending on the options you have chosen. Later, if you want to rebuild for a different configuration run make realclean before rebuilding.

Some of the generic autoconf options are used with Mesa:

There are also a few general options for altering the Mesa build:

2. Driver Options

There are several different driver modes that Mesa can use. These are described in more detail in the basic installation instructions. The Mesa driver is controlled through the configure option --with-driver. There are currently three supported options in the configure script.

3. Library Options

The configure script provides more fine grained control over the GL libraries that will be built. More details on the specific GL libraries can be found in the basic installation instructions.

4. Demo Program Options

There are many demonstration programs in the MesaDemos tarball. If the programs are available when ./configure is run, a subset of the programs will be built depending on the driver and library options chosen. See the directory progs for the full set of demos.