automake
[Top][All Lists]
Advanced

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

aclocal 1.9.6 and drive letters


From: Andreas Büning
Subject: aclocal 1.9.6 and drive letters
Date: Fri, 26 May 2006 22:00:10 +0200

Hello!

Some weeks ago I sent a mail to the automake-patches mailing list
but it never appeared there. Then I tried the bug-automake
mailing list. I checked the mailing list archives on lists.gnu.org
my posting never appeared. So I'm trying again on the automake
mailing list:


I tried to use aclocal 1.9.6 on OS/2 and encountered the following
problem: If using a drive letter for the installation path the $_
variable (see below) will contain something like
"c:/usr/share/aclocal-1.9/init.m4:AC_INIT_AUTOMAKE.....". This will
obviously break when the split function is called because $file will
be initializes to "c" and $macro to "/usr/share/aclocal-1.9/init.m4".
Finally, init.m4 will not be considered as a file needed for aclocal.m4,
and won't be included there. This means, AC_INIT_AUTOMAKE and all other
standard macros won't be in aclocal.m4 and any call of automake will
fail.

I replaced split(/:/) by split (/(?<=\w\w):/) which will ignore the
first colon if there aren't at least two characters before the colon.
Maybe you'll find a better solution since I'm not a perl expert.


Regards,

Andreas Büning
--- old/automake-1.9.6/aclocal.in       Sat Jul  9 11:28:44 2005
+++ gnu/automake-1.9.6/aclocal.in       Sun May  7 00:51:24 2006
@@ -423,7 +423,8 @@
   while ($_ = $tracefh->getline)
     {
       chomp;
-      my ($file, $macro, $arg1) = split (/:/);
+      # make sure that the filename does not start with a drive letter like 
x:/usr/...
+      my ($file, $macro, $arg1) = split (/(?<=\w\w):/);
 
       $traced{$macro} = 1 if $macro_seen{$macro};
 

reply via email to

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