Changeset 1897 for trunk/configure.ac


Ignore:
Timestamp:
Apr 16, 2009, 12:06:15 AM (12 years ago)
Author:
Peter
Message:

fixes #522. Introduced a variable YAT_PRIMARY_LIBS that is YAT_LIBS
minus cblas and mathlib. The variable made it easier to create needed
variables in yat-config (string addition is easier than subtraction,
whatever that means). Removed variable YAT_LIBS_WITHOUT_CBLAS because
it can easily be achied via "YAT_PRIMARY_LIBS LIBM".

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/configure.ac

    r1896 r1897  
    408408APR_RESTORE_THE_ENVIRONMENT(CXXFLAGS, YAT_)
    409409APR_RESTORE_THE_ENVIRONMENT(LDFLAGS, YAT_)
    410 APR_RESTORE_THE_ENVIRONMENT(LIBS, YAT_)
     410APR_RESTORE_THE_ENVIRONMENT(LIBS, YAT_PRIMARY_)
     411
     412# remove cblas and m
     413APR_REMOVEFROM([YAT_PRIMARY_LIBS], [$YAT_CBLAS_LIB])
     414APR_REMOVEFROM([YAT_PRIMARY_LIBS], [$LIBM])
     415
     416YAT_LIBS="$YAT_PRIMARY_LIBS $YAT_CBLAS_LIB $LIBM"
     417AC_SUBST(YAT_LIBS)
    411418
    412419# set and AC_SUBST variables that are interpreted by Automake
     
    419426AC_SUBST(AM_LDFLAGS)
    420427
    421 
    422 YAT_LIBS_WITHOUT_CBLAS=$YAT_LIBS
    423 APR_REMOVEFROM([YAT_LIBS_WITHOUT_CBLAS], [$YAT_CBLAS_LIB])
    424 AC_SUBST(YAT_LIBS_WITHOUT_CBLAS)
    425428
    426429# Create output.
Note: See TracChangeset for help on using the changeset viewer.