Use 'diff -u' for regtests if it's supported, its output it much easier to
read than plain 'diff'.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@9263 a5019735-40e9-0310-863c-91ae7b9d1cf9
diff --git a/configure.in b/configure.in
index 63fa8e4..ed8fd3f 100644
--- a/configure.in
+++ b/configure.in
@@ -114,6 +114,23 @@
 esac
 
 
+# Check if 'diff' supports -u (universal diffs) and use it if possible.
+
+AC_MSG_CHECKING([for diff -u])
+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
+    AC_MSG_RESULT([yes])
+    DIFF="diff -u"
+else
+    AC_MSG_RESULT([no])
+    DIFF="diff"
+fi
+
+
 # We don't want gcc < 3.0
 AC_MSG_CHECKING([for a supported version of gcc])