diff options
author | midipix <writeonce@midipix.org> | 2024-03-27 06:19:37 +0000 |
---|---|---|
committer | midipix <writeonce@midipix.org> | 2024-03-27 06:19:37 +0000 |
commit | e5c426f6618c61fa6dfd35216993347ae173ef59 (patch) | |
tree | 21a784f1592b226f0a7b7d51ab43a585777a430e /m4 | |
parent | ae3c34fdfe23891d76a7b30711bae52325bd0fbe (diff) | |
download | slibtool-e5c426f6618c61fa6dfd35216993347ae173ef59.tar.bz2 slibtool-e5c426f6618c61fa6dfd35216993347ae173ef59.tar.xz |
slibtool.m4: added SLIBTOOL_LFLAG_LIBM and SLIBTOOL_LFLAG_LTDL.
Diffstat (limited to 'm4')
-rw-r--r-- | m4/slibtool.m4 | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/m4/slibtool.m4 b/m4/slibtool.m4 index 123be89..a641b2a 100644 --- a/m4/slibtool.m4 +++ b/m4/slibtool.m4 @@ -56,9 +56,16 @@ m4_ifdef([AM_PROG_RANLIB], [m4_undefine([AM_PROG_RANLIB])]) m4_ifdef([AC_PROG_LEX], [m4_undefine([AC_PROG_LEX])]) m4_ifdef([AM_PROG_LEX], [m4_undefine([AM_PROG_LEX])]) + +m4_ifdef([LT_LIB_M], [m4_undefine([LT_LIB_M])]) +m4_ifdef([LT_LIB_DLLOAD], [m4_undefine([LT_LIB_DLLOAD])]) ]) +# _SLIBTOOL_CONVENIENCE +# --------------------- +AC_DEFUN([LT_DEVAL],[$1]=[$2]) + # _SLIBTOOL_ARGUMENT_HANDLING # --------------------------- AC_DEFUN([_SLIBTOOL_ARGUMENT_HANDLING],[ @@ -372,6 +379,27 @@ fi ]) +# SLIBTOOL_LFLAG_LIBM +# ------------------- +AC_DEFUN([SLIBTOOL_LFLAG_LIBM],[ + +# slibtool: SLIBTOOL_LFLAG_LIBM +# ----------------------------- +LT_DEVAL([LIBM],[-lm]) +AC_SUBST([LIBM]) +]) + + +# SLIBTOOL_LFLAG_LTDL +# ------------------- +AC_DEFUN([SLIBTOOL_LFLAG_LTDL],[ + +# slibtool: SLIBTOOL_LFLAG_LTDL +# ----------------------------- +# (always use the system lib[s]ltdl) +]) + + # SLIBTOOL_INIT(_options_) # ------------------------ AC_DEFUN([SLIBTOOL_INIT],[ @@ -489,6 +517,9 @@ m4_if([$1],[Fortran 77],[ # slibtool: SLIBTOOL_LANG(Fortran 77) AC_PROG_FC AC_PROG_F77 + +SLIBTOOL_LFLAG_LIBM +SLIBTOOL_LFLAG_LTDL ]) ]) @@ -497,6 +528,8 @@ AC_PROG_F77 # -------------------------- AC_DEFUN([SLIBTOOL_PREREQ],[ +AC_REQUIRE([LT_DEVAL]) + AC_REQUIRE([AC_PROG_CC]) AC_REQUIRE([AC_PROG_CPP]) AC_REQUIRE([AC_PROG_CXX]) @@ -514,6 +547,9 @@ AC_REQUIRE([AC_PROG_RANLIB]) AC_REQUIRE([AC_PROG_LN_S]) AC_REQUIRE([AC_PROG_MKDIR_P]) +AC_REQUIRE([SLIBTOOL_LFLAG_LIBM]) +AC_REQUIRE([SLIBTOOL_LFLAG_LTDL]) + AC_PROG_AWK AC_PROG_LEX AC_PROG_SED @@ -561,6 +597,9 @@ AC_DEFUN([AM_DISABLE_SHARED], [SLIBTOOL_DISABLE_SHARED($@)]) AC_DEFUN([AC_DISABLE_STATIC], [SLIBTOOL_DISABLE_STATIC($@)]) AC_DEFUN([AM_DISABLE_STATIC], [SLIBTOOL_DISABLE_STATIC($@)]) +AC_DEFUN([LT_LIB_M], [SLIBTOOL_LFLAG_LIBM($@)]) +AC_DEFUN([LT_LIB_DLLOAD], [SLIBTOOL_LFLAG_LTDL($@)]) + # deprecated and no-op macros # --------------------------- |