summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2024-03-26 23:17:31 +0000
committermidipix <writeonce@midipix.org>2024-03-26 23:23:44 +0000
commita24c5dc5a88cb7cfe9ab997ad5de9a0bf63cf2f7 (patch)
treeab40ecbdbff7959ed6809e3f1266fcec2d5c9aa0
parentc424f48d54b3f36e825dbe6e439f0026a59c3255 (diff)
downloadslibtool-a24c5dc5a88cb7cfe9ab997ad5de9a0bf63cf2f7.tar.bz2
slibtool-a24c5dc5a88cb7cfe9ab997ad5de9a0bf63cf2f7.tar.xz
slibtool.m4: streamline the use of SLIBTOOL_PROG_{AR|NM|RANLIB}.
-rw-r--r--m4/slibtool.m421
1 files changed, 18 insertions, 3 deletions
diff --git a/m4/slibtool.m4 b/m4/slibtool.m4
index 670f1af..aeec7ec 100644
--- a/m4/slibtool.m4
+++ b/m4/slibtool.m4
@@ -42,6 +42,17 @@ slibtool_enable_win32_dll_default='yes'
slibtool_enable_fast_install_default='yes'
slibtool_pic_mode_default='default'
slibtool_sysroot_default=
+
+# slibtool: refined logic for ar, nm, ranlib, etc.
+#
+m4_ifdef([AC_PROG_AR], [m4_undefine([AC_PROG_AR])])
+m4_ifdef([AM_PROG_AR], [m4_undefine([AM_PROG_AR])])
+
+m4_ifdef([AC_PROG_NM], [m4_undefine([AC_PROG_NM])])
+m4_ifdef([AM_PROG_NM], [m4_undefine([AM_PROG_NM])])
+
+m4_ifdef([AC_PROG_RANLIB], [m4_undefine([AC_PROG_RANLIB])])
+m4_ifdef([AM_PROG_RANLIB], [m4_undefine([AM_PROG_RANLIB])])
])
@@ -460,6 +471,7 @@ AC_REQUIRE([AC_PROG_SED])
AC_REQUIRE([AC_PROG_YACC])
AC_REQUIRE([AC_PROG_AR])
+AC_REQUIRE([AC_PROG_NM])
AC_REQUIRE([AC_PROG_RANLIB])
AC_REQUIRE([AC_PROG_LN_S])
@@ -486,9 +498,9 @@ AC_PROG_LEX
AC_PROG_SED
AC_PROG_YACC
-AC_PROG_RANLIB
AC_PROG_AR
AC_PROG_NM
+AC_PROG_RANLIB
AC_PROG_LN_S
AC_PROG_MKDIR_P
@@ -504,11 +516,14 @@ AC_DEFUN([LT_PREREQ], [SLIBTOOL_PREREQ($@)])
AC_DEFUN([AC_PROG_LIBTOOL], [SLIBTOOL_INIT($@)])
AC_DEFUN([AM_PROG_LIBTOOL], [SLIBTOOL_INIT($@)])
+AC_DEFUN([AC_PROG_AR], [SLIBTOOL_PROG_AR($@)])
+AC_DEFUN([AM_PROG_AR], [SLIBTOOL_PROG_AR($@)])
+
AC_DEFUN([AC_PROG_NM], [SLIBTOOL_PROG_NM($@)])
AC_DEFUN([AM_PROG_NM], [SLIBTOOL_PROG_NM($@)])
-AC_DEFUN([AC_PROG_AR], [SLIBTOOL_PROG_AR($@)])
-AC_DEFUN([AM_PROG_AR], [SLIBTOOL_PROG_AR($@)])
+AC_DEFUN([AC_PROG_RANLIB], [SLIBTOOL_PROG_RANLIB($@)])
+AC_DEFUN([AM_PROG_RANLIB], [SLIBTOOL_PROG_RANLIB($@)])
AC_DEFUN([AC_ENABLE_SHARED], [SLIBTOOL_ENABLE_SHARED($@)])
AC_DEFUN([AM_ENABLE_SHARED], [SLIBTOOL_ENABLE_SHARED($@)])