From fe2d7719831b8b462212555d50f7115df62ba655 Mon Sep 17 00:00:00 2001 From: Nicholas Nethercote Date: Thu, 26 Feb 2009 21:25:50 +0000 Subject: [PATCH] Clean up the diff -u test a little. git-svn-id: svn://svn.valgrind.org/valgrind/trunk@9279 --- configure.in | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/configure.in b/configure.in index ed8fd3fe34..a3dcd838f1 100644 --- a/configure.in +++ b/configure.in @@ -121,14 +121,16 @@ AC_SUBST(DIFF) # Comparing two identical files results in 0, unless -u isn't supported (as # it's not on AIX). -touch tmp-xxx; -if diff -u tmp-xxx tmp-xxx ; then +tmpfile="tmp-xxx-yyy-zzz" +touch $tmpfile; +if diff -u $tmpfile $tmpfile ; then AC_MSG_RESULT([yes]) DIFF="diff -u" else AC_MSG_RESULT([no]) DIFF="diff" fi +rm $tmpfile # We don't want gcc < 3.0 -- 2.47.3