[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Groff] top_builddir problems
From: |
Colin Watson |
Subject: |
Re: [Groff] top_builddir problems |
Date: |
Mon, 17 Jun 2002 15:43:36 +0100 |
User-agent: |
Mutt/1.3.28i |
On Mon, Jun 17, 2002 at 10:16:17AM +0200, Werner LEMBERG wrote:
> > Is it a bug in autoconf that top_builddir can end up empty?
>
> Yes. This is the fix AFAIK:
>
> 2002-04-09 Andreas Schwab <address@hidden>
>
> * lib/autoconf/status.m4 (_AC_SRCPATHS): Handle empty
> ac_top_builddir when setting ac_abs_top_builddir.
That will prevent abs_top_builddir from ending up as my home directory,
but groff's Makefile.in uses top_builddir (which will remain empty after
this patch), so I don't think this will help.
I came up with the following patch to bypass autoconf's top_builddir
altogether:
--- groff.orig/src/xditview/Imakefile.in
+++ groff/src/xditview/Imakefile.in
@@ -1,7 +1,7 @@
address@hidden@
address@hidden@
address@hidden@
address@hidden@
address@hidden@
version=`cat $(top_srcdir)/VERSION`
# No additional number if revision is zero
--- groff.orig/doc/Makefile.in
+++ groff/doc/Makefile.in
@@ -31,7 +31,7 @@
address@hidden@
address@hidden@
address@hidden@
address@hidden@
address@hidden@
# Since info files are distributed within the groff package, no
--- groff.orig/Makefile.in
+++ groff/Makefile.in
@@ -20,7 +20,7 @@
address@hidden@
address@hidden@
address@hidden@
address@hidden@
address@hidden@
version=`cat $(top_srcdir)/VERSION`
# No additional number if revision is zero
--- groff.orig/aclocal.m4
+++ groff/aclocal.m4
@@ -460,8 +460,8 @@
dnl This simplifies Makefile rules.
dnl
AC_DEFUN(GROFF_BUILDDIR,
-[top_builddir=`pwd`
-AC_SUBST(top_builddir)])dnl
+[groff_top_builddir=`pwd`
+AC_SUBST(groff_top_builddir)])dnl
dnl
dnl
dnl Check for EBCDIC - stolen from the OS390 Unix LYNX port
--
Colin Watson address@hidden