Actually port ecfe9bf0117b to default
(I had the wrong impression that the problem didn't exist here)
diff --git a/configure.in b/configure.in
index 50e502b..95ceab8 100644
--- a/configure.in
+++ b/configure.in
@@ -13,7 +13,7 @@
 AC_SUBST(HGTAG)
 AC_SUBST(HGBRANCH)
 
-if test -e $srcdir/.hg/00changelog.i
+if test -e $srcdir/.hg/dirstate
 then
 AC_CHECK_PROG(HAS_HG, hg, found, not-found)
 else