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.)
This commit is contained in:
David MacKenzie 1994-03-19 21:39:45 +00:00
parent 2c72e8e908
commit 11d9768195
3 changed files with 24 additions and 15 deletions

View File

@ -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

View File

@ -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

View File

@ -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