From 1f28748f10c7930e92b112b2084c214edefed1c4 Mon Sep 17 00:00:00 2001 From: midipix Date: Apr 01 2024 04:29:47 +0000 Subject: slibtool.m4: added the SLIBTOOL_OUTPUT macro (and LT_OUTPUT shorthand). --- diff --git a/m4/slibtool.m4 b/m4/slibtool.m4 index 1f2c857..7e81820 100644 --- a/m4/slibtool.m4 +++ b/m4/slibtool.m4 @@ -587,11 +587,21 @@ AC_PROG_MKDIR_P ]) +# SLIBTOOL_OUTPUT +# --------------- +AC_DEFUN([SLIBTOOL_OUTPUT],[ +_slibtool_cmd="${SLIBTOOL:-slibtool}" +_slibtool_cmd="${_slibtool_cmd%% *}" +_slibtool_aux_dir=$("${_slibtool_cmd}" -print-aux-dir) +cp -p "${_slibtool_aux_dir}/slibtool.sh" 'libtool' +]) + # drop-in replacement # ------------------- AC_DEFUN([LT_INIT], [SLIBTOOL_INIT($@)]) AC_DEFUN([LT_LANG], [SLIBTOOL_LANG($@)]) AC_DEFUN([LT_PREREQ], [SLIBTOOL_PREREQ($@)]) +AC_DEFUN([LT_OUTPUT], [SLIBTOOL_OUTPUT($@)]) AC_DEFUN([AC_PROG_LIBTOOL], [SLIBTOOL_INIT($@)]) AC_DEFUN([AM_PROG_LIBTOOL], [SLIBTOOL_INIT($@)])