From 4ca5cf6fd22d68970607fddf34c9ba4a071c8e68 Mon Sep 17 00:00:00 2001 From: Stepan Kasal Date: Wed, 27 Apr 2005 10:04:36 +0000 Subject: [PATCH] A tiny optimization in _AC_OUTPUT_HEADERS. --- ChangeLog | 4 ++++ lib/autoconf/status.m4 | 14 +++++--------- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/ChangeLog b/ChangeLog index c9b8c4a8..d839c22d 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2005-04-25 Stepan Kasal + + * lib/autoconf/status.m4 (_AC_OUTPUT_HEADERS): A tiny optimization. + 2005-04-22 Stepan Kasal * doc/autoconf.texi (External Software): Quadrigraphs are not diff --git a/lib/autoconf/status.m4 b/lib/autoconf/status.m4 index 39e5a7e5..a1b31b52 100644 --- a/lib/autoconf/status.m4 +++ b/lib/autoconf/status.m4 @@ -645,14 +645,9 @@ cat >>$CONFIG_STATUS <<\_ACEOF # Let's still pretend it is `configure' which instantiates (i.e., don't # use $as_me), people would be surprised to read: # /* config.h. Generated by config.status. */ - if test x"$ac_file" = x-; then - echo "/* Generated by configure. */" >"$tmp/config.h" - else - echo "/* $ac_file. Generated by configure. */" >"$tmp/config.h" - fi - cat "$tmp/in" >>"$tmp/config.h" - rm -f "$tmp/in" if test x"$ac_file" != x-; then + echo "/* $ac_file. Generated by configure. */" >"$tmp/config.h" + cat "$tmp/in" >>"$tmp/config.h" if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then AC_MSG_NOTICE([$ac_file is unchanged]) else @@ -662,9 +657,10 @@ cat >>$CONFIG_STATUS <<\_ACEOF mv "$tmp/config.h" $ac_file fi else - cat "$tmp/config.h" - rm -f "$tmp/config.h" + echo "/* Generated by configure. */" + cat "$tmp/in" fi + rm -f "$tmp/in" dnl If running for Automake, be ready to perform additional dnl commands to set up the timestamp files. m4_ifdef([_AC_AM_CONFIG_HEADER_HOOK], -- 2.11.4.GIT