From f0fc635220f4ff467fba421a26e8e2a385e19c77 Mon Sep 17 00:00:00 2001
From: Peter Eisentraut <peter_e@gmx.net>
Date: Tue, 2 Jan 2001 22:13:05 +0000
Subject: [PATCH] Only update stamp-h if config.status actually looks at
 config.h.

---
 configure    | 2 +-
 configure.in | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/configure b/configure
index 0b783526054..b342fafd7b2 100755
--- a/configure
+++ b/configure
@@ -8323,7 +8323,7 @@ EOF
 cat >> $CONFIG_STATUS <<\EOF
 
 # Update timestamp for config.h (see Makefile.global)
-echo >src/include/stamp-h
+test x"$CONFIG_HEADERS" != x"" && echo >src/include/stamp-h
 
 exit 0
 EOF
diff --git a/configure.in b/configure.in
index dd03fa5ea1c..b16c7bdfce1 100644
--- a/configure.in
+++ b/configure.in
@@ -1140,5 +1140,5 @@ AC_OUTPUT(
 ],
 [
 # Update timestamp for config.h (see Makefile.global)
-echo >src/include/stamp-h
+test x"$CONFIG_HEADERS" != x"" && echo >src/include/stamp-h
 ])
-- 
GitLab