Changeset 3085


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

Location:
trunk
Files:
2 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)
  • trunk/m4/yat_common.m4

    r3071 r3085  
    5353  m4_popdef([COMMAND])
    5454]) #YAT_RUN_LOG
     55
     56
     57# YAT_VAR_REMOVE(VAR, LIST)
     58# ==========================
     59# Loop over LIST (space-separated) and for each value, remove value from VAR.
     60AC_DEFUN([YAT_VAR_REMOVE],
     61[
     62AS_IF([test x"$2" != x], [
     63  for value in $2; do
     64    APR_REMOVEFROM([$1], [$value])
     65  done
     66])
     67])
Note: See TracChangeset for help on using the changeset viewer.