X-Git-Url: https://git.libre-soc.org/?a=blobdiff_plain;f=docs%2Fautoconf.html;h=5c29e5ee2c6edb601fbbda1c096af8bb1871a867;hb=b4c0c514b10ed85b50e4fc3bbd9c740db21e5720;hp=936ddcffebb49d4230af2e9026cb79ac6e4e5a69;hpb=bcc13b74443137043e8a34f8cb64a5add0d8af93;p=mesa.git diff --git a/docs/autoconf.html b/docs/autoconf.html index 936ddcffebb..5c29e5ee2c6 100644 --- a/docs/autoconf.html +++ b/docs/autoconf.html @@ -1,34 +1,33 @@ - - -Compilation and Installation using Autoconf - - - + + + + + Compilation and Installation using Autoconf + + +
+

The Mesa 3D Graphics Library

+
+ + +

Compilation and Installation using Autoconf

    -
  1. Basic Usage
  2. -
  3. Driver Options
  4. +
  5. Basic Usage

  6. +
  7. Driver Options

    -
  8. Library Options
  9. - -
  10. Demo Program Options
- -

1. Basic Usage

+

1. Basic Usage

The autoconf generated configure script can be used to guess your @@ -63,176 +62,194 @@ configuration run make realclean before rebuilding.

Some of the generic autoconf options are used with Mesa: - -

-

+directories.

+ +

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

-

+assembly will not be used.

+ + +
--build=
+
--host=
+

By default, the build will compile code for the architecture that +it's running on. In order to build cross-compile Mesa on a x86-64 machine +that is to run on a i686, one would need to set the options to:

+ +

--build=x86_64-pc-linux-gnu --host=i686-pc-linux-gnu

+ +Note that these can vary from distribution to distribution. For more +information check with the + +autoconf manual. +Note that you will need to correctly set PKG_CONFIG_PATH as well. - -

2. Driver Options

+

In some cases a single compiler is capable of handling both architectures +(multilib) in that case one would need to set the CC,CXX variables +appending the correct machine options. Seek your compiler documentation for +further information - + gcc +machine dependent options

+ +

In addition to specifying correct PKG_CONFIG_PATH for the target +architecture, the following should be sufficient to configure multilib Mesa

+ +./configure CC="gcc -m32" CXX="g++ -m32" --build=x86_64-pc-linux-gnu --host=i686-pc-linux-gnu ... +
+ + + +

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. +configure options --enable-xlib-glx, --enable-osmesa, +and --enable-dri.

- - - -

3. Library Options

+

3. Library Options

The configure script provides more fine grained control over the GL @@ -240,50 +257,6 @@ 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. - -

-

- +