gcc/libstdc++-v3/testsuite
Jonathan Wakely a4395a846a PR libstdc++/89466 avoid slow xsltproc command in configure
Certain broken versions of xsltproc ignore the --nonet option and will
attempt to fetch the docbook stylesheet from the WWW when it isn't in
the local XML catalog.

This patch checks for the local stylesheet directory first, and doesn't
use xsltproc if no local stylesheets are found. Checking for the local
directory is done using xmlcatalog if available, only checking the
hardcoded list of directories if xmlcatalog fails. The right directory
for Suse is added to the hardcoded list.

This should avoid doing an xsltproc check that would need to download
the stylesheet, so no network connection is made even if a broken
xsltproc is present.

	PR libstdc++/89466
	* acinclude.m4 (GLIBCXX_CONFIGURE_DOCBOOK): Reorder check for local
	stylesheet directories before check for xsltproc. Try to use
	xmlcatalog to find local stylesheet directory before trying hardcoded
	paths. Add path used by suse to hardcoded paths. Adjust xsltproc
	check to look for the same stylesheet as doc/Makefile.am uses. Don't
	use xsltproc if xmlcatalog fails to find a local stylesheet.
	* configure.ac: Check for xmlcatalog.
	* Makefile.in: Regenerate.
	* configure: Likewise.
	* doc/Makefile.in: Likewise.
	* include/Makefile.in: Likewise.
	* libsupc++/Makefile.in: Likewise.
	* po/Makefile.in: Likewise.
	* python/Makefile.in: Likewise.
	* src/Makefile.in: Likewise.
	* src/c++11/Makefile.in: Likewise.
	* src/c++17/Makefile.in: Likewise.
	* src/c++98/Makefile.in: Likewise.
	* src/filesystem/Makefile.in: Likewise.
	* testsuite/Makefile.in: Likewise.

From-SVN: r269249
2019-02-27 11:25:44 +00:00
..
17_intro PR libstdc++/89023 fix test that fails when <omp.h> not available 2019-02-11 12:56:59 +00:00
18_support P0482R5 char8_t: Updates to existing standard library tests 2019-02-22 01:16:08 +00:00
19_diagnostics
20_util P0340R2 Making std::underlying_type SFINAE-friendly 2019-02-23 21:19:00 +00:00
21_strings PR libstdc++/89446 fix null pointer dereference in char_traits 2019-02-23 03:01:59 +00:00
22_locale P0482R5 char8_t: Updates to existing standard library tests 2019-02-22 01:16:08 +00:00
23_containers PR libstdc++/89477 constrain deduction guides for maps and sets 2019-02-26 23:12:44 +00:00
24_iterators
25_algorithms
26_numerics Document LWG 2735 status and add test 2019-02-14 09:07:09 +00:00
27_io P0482R5 char8_t: New standard library tests 2019-02-19 02:55:05 +00:00
28_regex PR libstdc++/89023 fix test that fails when <omp.h> not available 2019-02-11 12:56:59 +00:00
29_atomics Add tests for C++2a content of <atomic> header 2019-02-22 01:16:15 +00:00
30_threads Fix tests that fail in C++2a mode 2019-01-29 00:47:32 +00:00
abi
backward
config
data
decimal
experimental P0482R5 char8_t: Updates to existing standard library tests 2019-02-22 01:16:08 +00:00
ext P0482R5 char8_t: New standard library tests 2019-02-19 02:55:05 +00:00
lib
libstdc++-abi
libstdc++-dg
libstdc++-prettyprinters
libstdc++-xmethods
performance
special_functions
tr1
tr2
util P0482R5 char8_t: Updates to existing standard library tests 2019-02-22 01:16:08 +00:00
Makefile.am
Makefile.in PR libstdc++/89466 avoid slow xsltproc command in configure 2019-02-27 11:25:44 +00:00