From e103c6654924b73ce10e660d99f44f01ee8dcf3f Mon Sep 17 00:00:00 2001
From: Eric Blake <ebb9@byu.net>
Date: Mon, 3 Dec 2007 16:49:30 -0700
Subject: [PATCH] Fix strerror module on Solaris 7.

* m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
REPLACE_STRERROR is initialized before this macro.

Signed-off-by: Eric Blake <ebb9@byu.net>
---
 ChangeLog      | 11 ++++++++---
 m4/strerror.m4 |  1 +
 2 files changed, 9 insertions(+), 3 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index 06e0ee8daf..43d31a6994 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2007-12-03  Eric Blake  <ebb9@byu.net>
+
+	* m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
+	REPLACE_STRERROR is initialized before this macro.
+
 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
 
 	Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
@@ -25,7 +30,7 @@
 	scripts_byname.h.
 
 2007-12-02  Martin Lambers <marlam@marlam.de>
-            Bruno Haible  <bruno@clisp.org>
+	    Bruno Haible  <bruno@clisp.org>
 
 	* lib/getpagesize.h: Remove file.
 	* lib/unistd.in.h: Include declaration of getpagesize here.
@@ -1117,7 +1122,7 @@
 	Reported by Eric Blake.
 
 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
-            Bruno Haible  <bruno@clisp.org>
+	    Bruno Haible  <bruno@clisp.org>
 
 	* modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
 	* modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
@@ -1464,7 +1469,7 @@
 	gl_LGPL macro.
 
 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
-            Bruno Haible  <bruno@clisp.org>
+	    Bruno Haible  <bruno@clisp.org>
 
 	* lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
 	(u16_uctomb_aux): Likewise.
diff --git a/m4/strerror.m4 b/m4/strerror.m4
index 9cb5769b12..78b889177c 100644
--- a/m4/strerror.m4
+++ b/m4/strerror.m4
@@ -17,6 +17,7 @@ AC_DEFUN([gl_FUNC_STRERROR],
 # Like gl_FUNC_STRERROR, except prepare for separate compilation (no AC_LIBOBJ).
 AC_DEFUN([gl_FUNC_STRERROR_SEPARATE],
 [
+  AC_REQUIRE([gl_HEADER_STRING_H_DEFAULTS])
   AC_CACHE_CHECK([for working strerror function],
    [gl_cv_func_working_strerror],
    [AC_RUN_IFELSE(
-- 
2.30.2