Ignore:
Timestamp:
Dec 20, 2010, 2:17:21 AM (11 years ago)
Author:
Peter
Message:

closes #496

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/m4/yat_lt_link_ifelse.m4

    r2346 r2376  
    3232
    3333#
    34 # serial 1
     34# serial 2
    3535#
    3636
     37# YAT_LT_LINK_IFELSE(PROG, [ACTION-IF-TRUE], [ACTION-IF-FALSE])
     38# -------------------------------------------------------------
     39# Same as AC_LINK_IFELSE but linking via libtool
    3740AC_DEFUN([YAT_LT_LINK_IFELSE],
    3841[
     
    4245]) # YAT_LT_LINK_IFELSE
    4346
     47# YAT_USE_LIBTOOL_PUSH
     48# --------------------
     49# Assign `$ac_link' and `$ac_compile' to use libtool. Variables are
     50# saved so they can be restored with YAT_USE_LIBTOOL_POP
    4451AC_DEFUN([YAT_USE_LIBTOOL_PUSH],
    4552[
    4653m4_defn([LT_INIT])
    47 m4_ifdef([_YAT_USE_LIBTOOL],,
     54m4_ifdef([_YAT_USE_LIBTOOL], [],
    4855  [m4_define([_YAT_USE_LIBTOOL], [yes])
    4956   LT_OUTPUT
     
    5158   ac_compile="./libtool --mode=compile --tag=_YAT_USE_LIBTOOL_TAG $ac_link";
    5259   yat_use_libtool_ac_link=$ac_link;
    53    ac_link="./libtool --mode=link --tag=CXX $ac_link"; dnl
     60   ac_link="./libtool --mode=link --tag=_YAT_USE_LIBTOOL_TAG $ac_link";
    5461  ]) dnl
    5562]) # YAT_USE_LIBTOOL_PUSH
    5663
     64# YAT_USE_LIBTOOL_POP
     65# --------------------
     66
     67# Restore values of `$ac_link' and `$ac_compile' to what they were
     68# prior YAT_USE_LIBTOOL_PUSH
    5769AC_DEFUN([YAT_USE_LIBTOOL_POP],
    5870[
     
    6476]) # YAT_USE_LIBTOOL_POP
    6577
     78
     79# _YAT_USE_LIBTOOL_TAG
     80# --------------------
     81# internal macro to select tag depending on active library
    6682m4_define([_YAT_USE_LIBTOOL_TAG],
    67 [AC_LANG_CASE([C], [CC],
    68               [C++], [CXX],
    69               [Fortran 77], [F77],
    70               [Fortran], [FC])
     83[AC_LANG_CASE([C], [CC], dnl
     84              [C++], [CXX], dnl
     85              [Fortran 77], [F77], dnl
     86              [Fortran], [FC]) dnl
    7187])
Note: See TracChangeset for help on using the changeset viewer.