diff --git a/autoheader.in b/autoheader.in index 04a94f44..ff33ac3f 100644 --- a/autoheader.in +++ b/autoheader.in @@ -200,7 +200,11 @@ done if test $# -eq 0; then if test $status -eq 0; then - mv -f $tmpout ${config_h}.in + if cmp -s $tmpout ${config_h}.in; then + mv -f $tmpout ${config_h}.in + else + rm -f $tmpout + fi else rm -f $tmpout fi diff --git a/autoheader.sh b/autoheader.sh index 04a94f44..ff33ac3f 100644 --- a/autoheader.sh +++ b/autoheader.sh @@ -200,7 +200,11 @@ done if test $# -eq 0; then if test $status -eq 0; then - mv -f $tmpout ${config_h}.in + if cmp -s $tmpout ${config_h}.in; then + mv -f $tmpout ${config_h}.in + else + rm -f $tmpout + fi else rm -f $tmpout fi diff --git a/bin/autoheader.in b/bin/autoheader.in index 04a94f44..ff33ac3f 100644 --- a/bin/autoheader.in +++ b/bin/autoheader.in @@ -200,7 +200,11 @@ done if test $# -eq 0; then if test $status -eq 0; then - mv -f $tmpout ${config_h}.in + if cmp -s $tmpout ${config_h}.in; then + mv -f $tmpout ${config_h}.in + else + rm -f $tmpout + fi else rm -f $tmpout fi