Changeset 3086


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

add a new variable YAT_STATIC_LIBS; perform test if LIBM is suitable for libyat.la or should be added to YAT_STATIC_LIBS. refs #737

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/configure.ac

    r3085 r3086  
    207207AC_CHECK_LIBM
    208208LIBS="$LIBM $LIBS"
     209# we store libs in YAT_STATIC_LIBS that are not suitable to link into
     210# libyat but are needed when creating applications linking against
     211# libyat. Typically these are static (only) libraries, but see ticket
     212# 737 for discussion.
     213YAT_STATIC_LIBS=
     214YAT_LT_LINK_LA_IFELSE([
     215  double cos(double x);
     216  double foo(double x) { return cos(x); }
     217], [
     218  AC_MSG_CHECKING([if $LIBM suitable for libyat])
     219  AC_MSG_RESULT([yes])
     220], [
     221  AC_MSG_CHECKING([if $LIBM suitable for libyat])
     222  AC_MSG_RESULT([no])
     223  YAT_STATIC_LIBS="$YAT_STATIC_LIBS $LIBM"
     224])
    209225
    210226# find library implementing BLAS C API, or use gslcblas
  • trunk/m4/yat_lt_link_ifelse.m4

    r3073 r3086  
    113113m4_popdef([ACTION_IF_FALSE])
    114114YAT_USE_LIBTOOL_POP
    115 ]) # YAT_LT_LINK_STATIC_IFELSE
     115]) # YAT_LT_LINK_LA_IFELSE
    116116
    117117# _YAT_MSG_LOG_CONFTEST
Note: See TracChangeset for help on using the changeset viewer.