aboutsummaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorJuan Quintela <quintela@redhat.com>2009-07-27 16:12:44 +0200
committerAnthony Liguori <aliguori@us.ibm.com>2009-07-27 14:09:17 -0500
commita900c00235a5357cea115ce1f2ccf76c8586d2ef (patch)
tree60af784e6fbb07952647561c11ed5036049825f0 /configure
parent525061bff2132a6833abfdeff8fd1d597addeece (diff)
use same algorithm for testing and
Signed-off-by: Juan Quintela <quintela@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure8
1 files changed, 7 insertions, 1 deletions
diff --git a/configure b/configure
index 736ccdd901..42519d2680 100755
--- a/configure
+++ b/configure
@@ -2107,7 +2107,13 @@ fi
$source_path/create_config < $config_mak > $config_h
-test -f ${config_h}~ && cmp -s $config_h ${config_h}~ && mv ${config_h}~ $config_h
+if test -f ${config_h}~ ; then
+ if cmp -s $config_h ${config_h}~ ; then
+ mv ${config_h}~ $config_h
+ else
+ rm ${config_h}~
+ fi
+fi
done # for target in $targets