You probably wanted something like this:
I committed it. In fact, it's very close to reversing the "use simpler
regex" part of your change, but not really.
2007-10-04 Paolo Bonzini <[EMAIL PROTECTED]>
Fix previous commit.
* lib/autotest/general.m4 (AT_LINE): Fix regex.
diff --git a/lib/autotest/general.m4 b/lib/autotest/general.m4
index ac41c14..dfd098c 100644
--- a/lib/autotest/general.m4
+++ b/lib/autotest/general.m4
@@ -152,7 +152,7 @@ m4_define([AT_LINE],
[m4_if(m4_defn([_AT_LINE_file]), __file__, [],
[m4_do([m4_define([_AT_LINE_file], __file__)],
[m4_define([_AT_LINE_base],
- m4_bpatsubst(/__file__, [/\([^/]*\)$],
+ m4_bpatsubst(__file__, [^.*/\([^/]*\)$],
[[\1]]))])])dnl
m4_defn([_AT_LINE_base]):__line__])