Changeset 66485


Ignore:
Timestamp:
Oct 12, 2015, 7:25:44 PM (9 years ago)
Author:
wenzeslaus
Message:

remove la.h from standard gmath header

Now we can easilly indentify modules which depend on la.h and its dependencies.
We fail in la.h if the dependencies are not fulfilled.
This shouln't require any additional work in modules except for including
la.h unless they want to use la.h conditionally.

Location:
grass/trunk/include
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • grass/trunk/include/gmath.h

    r66103 r66485  
    2525
    2626#include <grass/config.h>
    27 #if defined(HAVE_LIBLAPACK) && defined(HAVE_LIBBLAS)
    28  /* only include if available */
    29 #include <grass/la.h>
    30 #endif
    3127#include <stddef.h>
    3228
  • grass/trunk/include/la.h

    r54247 r66485  
    1313 * \date 2000-2007
    1414 */
     15
     16#ifndef HAVE_LIBBLAS
     17#error GRASS GIS is not configured with BLAS (la.h cannot be included)
     18#endif
     19
     20#ifndef HAVE_LIBLAPACK
     21#error GRASS GIS is not configured with LAPACK (la.h cannot be included)
     22#endif
    1523
    1624#ifndef GRASS_LA_H
Note: See TracChangeset for help on using the changeset viewer.