delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/1999/08/06/10:26:38

Message-ID: <37AADEB2.312CD57C@softhome.net>
Date: Fri, 06 Aug 1999 15:10:10 +0200
From: Laurynas Biveinis <lauras AT softhome DOT net>
X-Mailer: Mozilla 4.61 [en] (Win98; I)
X-Accept-Language: lt,en
MIME-Version: 1.0
To: Andris Pavenis <pavenis AT lanet DOT lv>
CC: DJGPP Workers <djgpp-workers AT delorie DOT com>
Subject: Automake and absolute paths
Reply-To: djgpp-workers AT delorie DOT com

Hello,

when I was trying to build GDB and noticed 
configure's inability to deal with DJGPP's 
absolute path's, I didn't know the real
cause of problem (not the greatest knowledge
of autoconf, automake, shell & perl scripts...)
Now I see that automake is unable to handle
absolute paths with forward slashes too. I 
tried to fix it (patch below), but I still
don't know if it's a cause of my previous 
problem.

I should have this patch sent to the maintainers of
GNU Automake, but please review it - as I said 
above, I know little about shell and even  less 
about perl scripts.

Bye,
Laurynas Biveinis
----
diff -u -r amake-1.4.original/automake amake-1.4/automake
--- amake-1.4.original/automake	Fri Aug  6 10:42:06 1999
+++ amake-1.4/automake	Fri Aug  6 14:45:16 1999
@@ -2676,7 +2676,7 @@
 		($xform = $one_dep) =~ s/^$srcdir_rx/$rewrite_builddir/;
 		push (@dependencies, $xform);
 	    }
-	    elsif ($one_dep =~ /^\// || $one_dep =~ /^[A-Za-z]:\\/)
+	    elsif ($one_dep =~ /^\// || $one_dep =~ /^[A-Za-z]:[\\\/]/)
 	    {
 		# Absolute path; ignore.
 	    }
diff -u -r amake-1.4.original/automake.in amake-1.4/automake.in
--- amake-1.4.original/automake.in	Mon Jan 18 17:37:10 1999
+++ amake-1.4/automake.in	Fri Aug  6 14:40:04 1999
@@ -2676,7 +2676,7 @@
 		($xform = $one_dep) =~ s/^$srcdir_rx/$rewrite_builddir/;
 		push (@dependencies, $xform);
 	    }
-	    elsif ($one_dep =~ /^\// || $one_dep =~ /^[A-Za-z]:\\/)
+	    elsif ($one_dep =~ /^\// || $one_dep =~ /^[A-Za-z]:[\\\/]/)
 	    {
 		# Absolute path; ignore.
 	    }
diff -u -r amake-1.4.original/config.log amake-1.4/config.log
--- amake-1.4.original/config.log	Fri Aug  6 10:42:06 1999
+++ amake-1.4/config.log	Fri Aug  6 14:45:16 1999
@@ -10,6 +10,4 @@
 configure:757: checking for working autoheader
 configure:770: checking for working makeinfo
 configure:791: checking for gnutar
-configure:791: checking for gtar
-configure:791: checking for tar
 configure:828: checking for perl
diff -u -r amake-1.4.original/ylwrap amake-1.4/ylwrap
--- amake-1.4.original/ylwrap	Fri Jul 17 22:00:24 1998
+++ amake-1.4/ylwrap	Fri Aug  6 14:59:04 1999
@@ -31,7 +31,7 @@
 shift
 # Make any relative path in $prog absolute.
 case "$prog" in
- /* | [A-Za-z]:\\*) ;;
+ /* | [A-Za-z]:[\\/]*) ;;
  */*) prog="`pwd`/$prog" ;;
 esac
 
@@ -39,7 +39,7 @@
 input="$1"
 shift
 case "$input" in
- /* | [A-Za-z]:\\*)
+ /* | [A-Za-z]:[\\/]*)
     # Absolute path; do nothing.
     ;;
  *)
@@ -75,7 +75,7 @@
 
 cd $dirname
 case "$input" in
- /* | [A-Za-z]:\\*)
+ /* | [A-Za-z]:[\\/]*)
     # Absolute path; do nothing.
     ;;
  *)
@@ -95,7 +95,7 @@
          # If $2 is an absolute path name, then just use that,
          # otherwise prepend `../'.
          case "$2" in
-	   /* | [A-Za-z]:\\*) target="$2";;
+	   /* | [A-Za-z]:[\\/]*) target="$2";;
 	   *) target="../$2";;
 	 esac
 	 mv "$1" "$target" || status=$?

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019