autoconf-patches
[Top][All Lists]
Advanced

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

_AC_SRCPATHS mishandles empty ac_top_builddir


From: Andreas Schwab
Subject: _AC_SRCPATHS mishandles empty ac_top_builddir
Date: Sun, 07 Apr 2002 17:18:16 +0200
User-agent: Gnus/5.090005 (Oort Gnus v0.05) Emacs/21.2.50 (ia64-suse-linux)

If $srcdir == . then $ac_top_builddir is empty, and $ac_abs_top_builddir
ends up being set to $HOME.

Andreas.

2002-04-07  Andreas Schwab  <address@hidden>

        * lib/autoconf/status.m4 (_AC_SRCPATHS): Handle empty
        ac_top_builddir when setting ac_abs_top_builddir.

Index: lib/autoconf/status.m4
===================================================================
RCS file: /cvsroot/autoconf/autoconf/lib/autoconf/status.m4,v
retrieving revision 1.20
diff -u -a -u -r1.20 lib/autoconf/status.m4
--- lib/autoconf/status.m4      3 Apr 2002 13:35:59 -0000       1.20
+++ lib/autoconf/status.m4      7 Apr 2002 15:15:41 -0000
@@ -163,7 +163,7 @@
 # Don't blindly perform a `cd $1/$ac_foo && pwd` since $ac_foo can be
 # absolute.
 ac_abs_builddir=`cd $1 && cd $ac_builddir && pwd`
-ac_abs_top_builddir=`cd $1 && cd $ac_top_builddir && pwd`
+ac_abs_top_builddir=`cd $1 && cd ${ac_top_builddir}. && pwd`
 ac_abs_srcdir=`cd $1 && cd $ac_srcdir && pwd`
 ac_abs_top_srcdir=`cd $1 && cd $ac_top_srcdir && pwd`
 ])# _AC_SRCPATHS

-- 
Andreas Schwab, SuSE Labs, address@hidden
SuSE GmbH, Deutschherrnstr. 15-19, D-90429 Nürnberg
Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."



reply via email to

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