autoconf
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

apparent bug in aclocal.m4


From: Per Bothner
Subject: apparent bug in aclocal.m4
Date: Fri, 22 Feb 2002 17:24:24 -0800
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.8+) Gecko/20020215

I found a problem when trying to configure rhug with srcdir=".".
It would try to mkdir /.deps.  The reason was (it seemed) to be a bug
in configure.  Since configure is generated by autoconf, I took a
look at cvs autoconf, which seemed to have a variant of the same
problem in aclocal.m4.  However, since aclocal.m4 is also
auto-generated, presumably the actual bug is somewhere else, but
a 'grep' failed to find any other files matching 'Strip MF',
so I don't know where to go next.

Anyway, I don't pretend to understand the code in aclocal.m4,
but it certainly *looks* wrong to set dirpart to "", considering
the mkdir "$dirpart/$DEPDIR" just below.
--
        --Per Bothner
address@hidden   http://www.bothner.com/per/
Index: aclocal.m4
===================================================================
RCS file: /cvsroot/autoconf/autoconf/aclocal.m4,v
retrieving revision 1.18
diff -u -r1.18 aclocal.m4
--- aclocal.m4  11 Feb 2002 14:04:54 -0000      1.18
+++ aclocal.m4  23 Feb 2002 01:07:08 -0000
@@ -598,7 +598,7 @@
   if (head -1 $mf | fgrep 'generated by automake') > /dev/null 2>&1; then
     dirpart=`AS_DIRNAME("$mf")`
   else
-    dirpart=
+    dirpart=.
   fi
   grep '^DEP_FILES *= *[[^ @%:@]]' < "$mf" > /dev/null || continue
   # Extract the definition of DEP_FILES from the Makefile without

reply via email to

[Prev in Thread] Current Thread [Next in Thread]