From b0ae5ee3dffb428d2332357ff31acdb022209590 Mon Sep 17 00:00:00 2001
From: Bruno Haible <bruno@clisp.org>
Date: Wed, 15 Jan 2003 12:46:25 +0000
Subject: [PATCH] Work around a bug of AC_EGREP_CPP in autoconf-2.57.

---
 m4/ChangeLog | 4 ++++
 m4/alloca.m4 | 4 ++++
 2 files changed, 8 insertions(+)

diff --git a/m4/ChangeLog b/m4/ChangeLog
index 927ab9d6ee..211f0f5889 100644
--- a/m4/ChangeLog
+++ b/m4/ChangeLog
@@ -1,3 +1,7 @@
+2003-01-11  Bruno Haible  <bruno@clisp.org>
+
+	* alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
+
 2003-01-12  Paul Eggert  <eggert@twinsun.com>
 
 	Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
diff --git a/m4/alloca.m4 b/m4/alloca.m4
index 6dc0760fa8..3a4ee7ed49 100644
--- a/m4/alloca.m4
+++ b/m4/alloca.m4
@@ -8,6 +8,10 @@ dnl the same distribution terms as the rest of that program.
 
 AC_DEFUN([gl_FUNC_ALLOCA],
 [
+  dnl Work around a bug of AC_EGREP_CPP in autoconf-2.57.
+  AC_REQUIRE([AC_PROG_CPP])
+  AC_REQUIRE([AC_PROG_EGREP])
+
   AC_REQUIRE([AC_FUNC_ALLOCA])
   if test $ac_cv_func_alloca_works = no; then
     gl_PREREQ_ALLOCA
-- 
2.39.5