public inbox for binutils@sourceware.org
 help / color / mirror / Atom feed
* [patch] small tweak to top level configure.in
@ 2002-07-03 14:22 Nathanael Nerode
  2002-07-04 10:16 ` DJ Delorie
  0 siblings, 1 reply; 2+ messages in thread
From: Nathanael Nerode @ 2002-07-03 14:22 UTC (permalink / raw)
  To: gcc-patches, gdb-patches, binutils, dj

Yes, I know when they shouldn't be used.  But I've discovered that they allow
me to work around various issues which come up during autoconfiscation, in a 
really straightforward way.  So I'd like to introduce these two variables for
my future use.

'pwd' technically conflicts with a variable in 'configure', but that variable
is defined to exactly the same thing (with no 'cd's in between), so...

2002-07-02  Nathanael Nerode  <neroden@gcc.gnu.org>

	* configure.in: Introduce variables 'pwd', 'abs_srcdir'.

Index: configure.in
===================================================================
RCS file: /cvs/gcc/gcc/configure.in,v
retrieving revision 1.167
diff -u -r1.167 configure.in
--- configure.in	3 Jul 2002 02:49:38 -0000	1.167
+++ configure.in	3 Jul 2002 20:00:40 -0000
@@ -33,6 +33,14 @@
 
 ##############################################################################
 
+# Get some absolute paths, because they're too useful to do without.
+# Don't use these outside this invocation (e.g. not in the Makefile),
+# since they might change between 'configure', 'make', and 'make install'.
+# Absolute path to the build directory (current directory).
+pwd=`${PWDCMD-pwd}`
+# Absolute path to the source directory (srcdir).
+abs_srcdir=`cd ${srcdir}; ${PWDCMD-pwd}`
+
 ### To add a new directory to the tree, first choose whether it is a target
 ### or a host dependent tool.  Then put it into the appropriate list
 ### (library or tools, host or target), doing a dependency sort.  For

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [patch] small tweak to top level configure.in
  2002-07-03 14:22 [patch] small tweak to top level configure.in Nathanael Nerode
@ 2002-07-04 10:16 ` DJ Delorie
  0 siblings, 0 replies; 2+ messages in thread
From: DJ Delorie @ 2002-07-04 10:16 UTC (permalink / raw)
  To: neroden; +Cc: gcc-patches, gdb-patches, binutils


Why not call it abs_builddir to be consistent and less confusing (wrt
$pwd)?

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2002-07-04 16:37 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-07-03 14:22 [patch] small tweak to top level configure.in Nathanael Nerode
2002-07-04 10:16 ` DJ Delorie

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).