From: David MacKenzie Date: Sat, 19 Mar 1994 21:39:45 +0000 (+0000) Subject: Update the file even if it is unchanged, to avoid foiling a X-Git-Tag: fsf-origin~784 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=11d976819529d2f5b34d1d5f686d0fefcc8d6073;p=thirdparty%2Fautoconf.git Update the file even if it is unchanged, to avoid foiling a Makefile rule that makes it from configure.in. If you let the rule for making config.status from configure create config.h from config.h.in, then an unnecessary update here will not cause unneeded recompilation. Recompilation should only happen if config.h is updated, which won't occur if config.h.in had the same contents, even if its timestamp changed. (Ick.) --- diff --git a/autoheader.in b/autoheader.in index f96915518..95bc38034 100644 --- a/autoheader.in +++ b/autoheader.in @@ -200,11 +200,14 @@ done if test $# -eq 0; then if test $status -eq 0; then - if cmp -s $tmpout ${config_h}.in; then - rm -f $tmpout - else - mv -f $tmpout ${config_h}.in - fi + # Update the file even if it is unchanged, to avoid foiling a + # Makefile rule that makes it from configure.in. + # If you let the rule for making config.status from configure + # create config.h from config.h.in, then an unnecessary update here + # will not cause unneeded recompilation. Recompilation should only + # happen if config.h is updated, which won't occur if config.h.in + # had the same contents, even if its timestamp changed. (Ick.) + mv -f $tmpout ${config_h}.in else rm -f $tmpout fi diff --git a/autoheader.sh b/autoheader.sh index f96915518..95bc38034 100644 --- a/autoheader.sh +++ b/autoheader.sh @@ -200,11 +200,14 @@ done if test $# -eq 0; then if test $status -eq 0; then - if cmp -s $tmpout ${config_h}.in; then - rm -f $tmpout - else - mv -f $tmpout ${config_h}.in - fi + # Update the file even if it is unchanged, to avoid foiling a + # Makefile rule that makes it from configure.in. + # If you let the rule for making config.status from configure + # create config.h from config.h.in, then an unnecessary update here + # will not cause unneeded recompilation. Recompilation should only + # happen if config.h is updated, which won't occur if config.h.in + # had the same contents, even if its timestamp changed. (Ick.) + mv -f $tmpout ${config_h}.in else rm -f $tmpout fi diff --git a/bin/autoheader.in b/bin/autoheader.in index f96915518..95bc38034 100644 --- a/bin/autoheader.in +++ b/bin/autoheader.in @@ -200,11 +200,14 @@ done if test $# -eq 0; then if test $status -eq 0; then - if cmp -s $tmpout ${config_h}.in; then - rm -f $tmpout - else - mv -f $tmpout ${config_h}.in - fi + # Update the file even if it is unchanged, to avoid foiling a + # Makefile rule that makes it from configure.in. + # If you let the rule for making config.status from configure + # create config.h from config.h.in, then an unnecessary update here + # will not cause unneeded recompilation. Recompilation should only + # happen if config.h is updated, which won't occur if config.h.in + # had the same contents, even if its timestamp changed. (Ick.) + mv -f $tmpout ${config_h}.in else rm -f $tmpout fi