Changeset 3085 for trunk/configure.ac


Ignore:
Timestamp:
Sep 19, 2013, 9:17:15 AM (8 years ago)
Author:
Peter
Message:

fix problem that YAT_CBLAS_LIB were not subtracted from YAT_PRIMARY_LIBS if YAT_CBLAS_LIB contained a space e.g.: '-lcblas -latlas'; also introduce a new help macro YAT_VAR_REMOVE

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/configure.ac

    r3072 r3085  
    432432
    433433# YAT_LIBS minus cblas and math libraries
    434 YAT_PRIMARY_LIBS=
    435 for lib in $YAT_LIBS; do
    436   AS_CASE([$lib], [$YAT_CBLAS_LIB], [],
    437           [$LIBM], [],
    438           [YAT_PRIMARY_LIBS="$YAT_PRIMARY_LIBS $lib"])
    439 done
     434YAT_PRIMARY_LIBS=$YAT_LIBS
     435YAT_VAR_REMOVE([YAT_PRIMARY_LIBS], [$LIBM])
     436YAT_VAR_REMOVE([YAT_PRIMARY_LIBS], [$YAT_CBLAS_LIB])
    440437# workaround for ticket #736
    441 for lib in $BAM_LIBS; do
    442   APR_REMOVEFROM([YAT_PRIMARY_LIBS], [$lib])
    443 done
     438YAT_VAR_REMOVE([YAT_PRIMARY_LIBS], [$BAM_LIBS])
    444439AC_SUBST(BAM_LIBS)
    445440AC_SUBST(YAT_PRIMARY_LIBS)
Note: See TracChangeset for help on using the changeset viewer.