From d01a2870ea7fcdf81f8e36d11062a3cc7514a27e Mon Sep 17 00:00:00 2001
From: Peter Stephenson <p.stephenson@samsung.com>
Date: Fri, 9 May 2025 09:31:37 +0100
Subject: [PATCH] 53532: mark --enable-zsh-mem as deprecated.

---
 ChangeLog    | 5 +++++
 INSTALL      | 5 ++++-
 configure.ac | 2 +-
 3 files changed, 10 insertions(+), 2 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index 5ee7ad85e..ef8c1d0ad 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2025-05-09  Peter Stephenson  <p.stephenson@samsung.com>
+
+	* 53532: INSTALL, configure.ac: mark --enable-zsh-mem option
+	as deprecated.
+
 2025-05-05  Bart Schaefer  <schaefer@zsh.org>
 
 	* 53557 (plus test): Src/params.c, Test/K01nameref.ztst:
diff --git a/INSTALL b/INSTALL
index 8b139fa9b..da2625b43 100644
--- a/INSTALL
+++ b/INSTALL
@@ -401,7 +401,10 @@ Memory Routines
 ---------------
 
 Included in this release are alternate malloc and associated functions
-which reduce memory usage on some systems. To use these, add the option
+which reduce memory usage on some systems.  This suite of functions has
+not been maintained for some time and may be removed in a future release.
+
+However, if you still wish to use these, add the option
   --enable-zsh-mem
 when invoking "configure".
 
diff --git a/configure.ac b/configure.ac
index db0828a56..ab368c9a7 100644
--- a/configure.ac
+++ b/configure.ac
@@ -71,7 +71,7 @@ ifdef([zsh-mem],[undefine([zsh-mem])])dnl
 AH_TEMPLATE([ZSH_MEM],
 [Define to 1 if you want to use zsh's own memory allocation routines])
 AC_ARG_ENABLE(zsh-mem,
-AS_HELP_STRING([--enable-zsh-mem],[compile with zsh memory allocation routines]),
+AS_HELP_STRING([--enable-zsh-mem],[compile with zsh memory allocation routines - deprecated]),
 [if test x$enableval = xyes; then
   AC_DEFINE(ZSH_MEM)
 fi])