next up previous contents
Next: PETSc: Portable, Extensible Toolkit Up: Compiling with Extra Packages Previous: HDF5: Hierarchical Data Format   Contents

LAPACK: Linear Algebra PACKage

To compile with LAPACK (http://www.netlib.org/lapack/), the configure options are

LAPACK = yes | no | <blank>
[ LAPACK_DIR = <dir> | none ]
[ LAPACK_EXTRA_LIBS_DIRS = <dir> ]
[ LAPACK_LIBS = <libs> ]
[ LAPACK_EXTRA_LIBS = <libs> ]

If LAPACK_DIR is not given, the configuration process will search for a LAPACK library liblapack.[{a,so}] in some standard places (defined in lib/make/extras/LAPACK). If LAPACK_DIR is set to no, the LAPACK library path is assumed to be installed in a standard system location (e.g. /usr/lib/), and thus the library path will not be added to the linker's command line.

Because LAPACK doesn't come as a standardized system installation, there are additional configuration variables to set the name of the LAPACK library (LAPACK_LIBS) as well as the name (LAPACK_EXTRA_LIBS) and location (LAPACK_EXTRA_LIBS_DIRS) of extra libraries that are required by LAPACK itself.