This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [patch] Don't install libquadmath.info if libquadmath is not actually built
- From: Jakub Jelinek <jakub at redhat dot com>
- To: FX <fxcoudert at gmail dot com>
- Cc: GCC Patches <gcc-patches at gcc dot gnu dot org>, Tobias Burnus <burnus at net-b dot de>
- Date: Thu, 9 Oct 2014 09:32:49 +0200
- Subject: Re: [patch] Don't install libquadmath.info if libquadmath is not actually built
- Authentication-results: sourceware.org; auth=none
- References: <4B418CF2-F57A-4AF4-8512-6F12736A3266 at gmail dot com> <C1FC57EE-442F-40F2-B2B2-CF1B9857F8CB at gmail dot com>
- Reply-to: Jakub Jelinek <jakub at redhat dot com>
On Thu, Oct 09, 2014 at 09:27:55AM +0200, FX wrote:
> > The attached patch prevents libquadmath from installing its info file if the library is not actually built.
> > Tested on x86_64-linux, both on a built with libquadmath (normal) and without (tweaking configure so it thinks _float128 is not supported).
> >
> > OK to commit?
>
> Again, with correct ChangeLog entry including regeneration of Makefile.in
>
Index: Makefile.am
===================================================================
--- Makefile.am (revision 215887)
+++ Makefile.am (working copy)
@@ -158,10 +158,18 @@
# the relative path from the current `Makefile.am' to `texinfo.tex'.
TEXINFO_TEX = ../gcc/doc/include/texinfo.tex
+
# Defines info, dvi, pdf and html targets
MAKEINFOFLAGS = -I $(srcdir)/../gcc/doc/include
+
+if BUILD_LIBQUADMATH
info_TEXINFOS = libquadmath.texi
libquadmath_TEXINFOS = libquadmath-vers.texi
+else
+info_TEXINFOS =
+libquadmath_TEXINFOS =
+endif
libquadmath-vers.texi:
echo "@set BUGURL $(REPORT_BUGS_TEXI)" > $@
+
Please avoid the vertical whitespace changes before MAKEINFOFLAGS and after
libquadmath-vers.texi goal.
Ok with that change.
Jakub