From 240d0f1a4bc854c637cad5d7559165210632b9c8 Mon Sep 17 00:00:00 2001 From: midipix Date: Sun, 2 May 2021 03:45:23 +0000 Subject: slibtool.m4: added SLIBTOOL_PROG_NM(). --- m4/slibtool.m4 | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/m4/slibtool.m4 b/m4/slibtool.m4 index 034a0d6..f21593f 100644 --- a/m4/slibtool.m4 +++ b/m4/slibtool.m4 @@ -208,6 +208,20 @@ slibtool_options="${slibtool_options} disable-static" ]) +# SLIBTOOL_PROG_NM +# ---------------- +AC_DEFUN([SLIBTOOL_PROG_NM],[ + +# slibtool: SLIBTOOL_PROG_NM +# -------------------------- +if [[ -z "${NM:-}" ]]; then + NM="${RANLIB%ranlib}nm" +fi + +AC_SUBST([NM]) +]) + + # SLIBTOOL_INIT(_options_) # ------------------------ AC_DEFUN([SLIBTOOL_INIT],[ @@ -353,6 +367,7 @@ AC_PROG_SED AC_PROG_YACC AC_PROG_RANLIB +AC_PROG_NM AC_PROG_LN_S AC_PROG_MKDIR_P @@ -368,6 +383,9 @@ AC_DEFUN([LT_PREREQ], [SLIBTOOL_PREREQ($@)]) AC_DEFUN([AC_PROG_LIBTOOL], [SLIBTOOL_INIT($@)]) AC_DEFUN([AM_PROG_LIBTOOL], [SLIBTOOL_INIT($@)]) +AC_DEFUN([AC_PROG_NM], [SLIBTOOL_PROG_NM($@)]) +AC_DEFUN([AM_PROG_NM], [SLIBTOOL_PROG_NM($@)]) + AC_DEFUN([AC_ENABLE_SHARED], [SLIBTOOL_ENABLE_SHARED($@)]) AC_DEFUN([AM_ENABLE_SHARED], [SLIBTOOL_ENABLE_SHARED($@)]) -- cgit v1.2.3