https://github.com/libsdl-org/autoconf/commit/c99909515648e37d2455fd0de54e7168bf2e180d
From c99909515648e37d2455fd0de54e7168bf2e180d Mon Sep 17 00:00:00 2001
From: Ben Elliston <[EMAIL REDACTED]>
Date: Tue, 9 Nov 1999 12:58:28 +0000
Subject: [PATCH] 1999-11-09 Akim Demaille <akim@epita.fr>
* autoheader.m4 (AH_CHECK_LIB): Template HAVE_LIBFOO, not
HAVE_FOO.
---
ChangeLog | 12 ++++++++++++
autoheader.m4 | 4 +++-
2 files changed, 15 insertions(+), 1 deletion(-)
diff --git a/ChangeLog b/ChangeLog
index 01fe5f74..3e371e6d 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+1999-11-09 Akim Demaille <akim@epita.fr>
+
+ * autoheader.m4 (AH_CHECK_LIB): Template HAVE_LIBFOO, not
+ HAVE_FOO.
+
1999-11-09 Ben Elliston <bje@cygnus.com>
* testsuite/config/unix.exp (autoconf_version): Detect version
@@ -474,6 +479,13 @@
as `ac_cs_root'. The previous name was breaking the naming
scheme.
+ Fix a bug in templates of AC_CHECK_LIB.
+
+ * autoheader.m4 (AH_CHECK_LIB): Template HAVE_LIBFOO, not
+ HAVE_FOO.
+
+1999-10-24 Akim Demaille <akim@epita.fr>
+
* TODO: Updated.
Added a section for 2.15 and 3.
diff --git a/autoheader.m4 b/autoheader.m4
index dd0ca300..83b01f5e 100644
--- a/autoheader.m4
+++ b/autoheader.m4
@@ -73,8 +73,10 @@ ac_verbatim_$1="\
@@@
])])
+dnl FIXME: To be rigorous, this should not be systematic: depending
+dnl upon the arguments of AC_CHECK_LIB, we might not AC_DEFINE.
define([AH_CHECK_LIB],
-[AH_TEMPLATE(AC_TR_CPP(HAVE_$1),
+[AH_TEMPLATE(AC_TR_CPP(HAVE_LIB$1),
[Define if you have the `]$1[' library (-l]$1[).])
# Success
$3