diff --git a/.gitattributes b/.gitattributes
index f25f52b673c66c679c7ca990de298ddd99d8dbb6..3277358fe1ecd2517fd10a87bf8503c1a068d616 100644
--- a/.gitattributes
+++ b/.gitattributes
@@ -312,7 +312,6 @@ testfont binary
 /refdoc/structure/traditional.xml foreign_ident
 /src/Makefile.in foreign_ident
 /src/acconfig.h foreign_ident
-/src/aclocal.m4 foreign_ident
 /src/alloca.c foreign_ident
 /src/apply_low.h foreign_ident
 /src/array.c foreign_ident
diff --git a/src/aclocal.m4 b/src/aclocal.m4
index 9c96920868b1d131d8244f442ac02038a81dd662..e1c21e20d5893dba46eccfe1248e01347f8c7d35 100644
--- a/src/aclocal.m4
+++ b/src/aclocal.m4
@@ -1,4 +1,4 @@
-dnl $Id: aclocal.m4,v 1.155 2007/04/05 15:28:56 grubba Exp $
+dnl $Id$
 
 dnl Some compatibility with Autoconf 2.50+. Not complete.
 dnl newer Autoconf calls substr m4_substr
@@ -523,7 +523,7 @@ define([PIKE_RETAIN_VARIABLES],
 
 define([AC_LOW_MODULE_INIT],
 [
-  # $Id: aclocal.m4,v 1.155 2007/04/05 15:28:56 grubba Exp $
+  # $Id$
 
   MY_AC_PROG_CC
 
@@ -1387,7 +1387,7 @@ AC_DEFUN(PIKE_CHECK_ABI_DIR,
 	 grep "unknown" >/dev/null; then
       cached=""
       empty=yes
-      for f in "$d"/* no; do
+      for f in "$1"/* no; do
         if test -f "$f"; then
 	  empty=no
           filetype=`file "$f" 2>/dev/null | sed -e 's/.*://'`