Update of /cvsroot/plplot/plplot
In directory sc8-pr-cvs1:/tmp/cvs-serv24857
Implemented the check of programs and Perl modules necessary to build the
files in bindings/octave/plplot_octave_txt/. The extension of the present
change is quite large, because the previous situations was quite
constraining. Indeed, the checks for Perl modules were buried in
bindings/octave/configure.ac, which was included in configure.ac
conditionally on enable_docbook.
To make the idea work, I had to split bindings/octave/configure.ac into two
parts: the first one consisted of macro definitons, configure options
declarations and things alike, that can (and sometimes must) run
inconditionally. This material has been moved into a new file called
bindings/octave/docbook.m4 (BTW, having two configure.ac in the source tree
was an aberration).
The second part consisted of the actual checks (for programs, DTDs, and Perl
modules), which should be run conditioanlly. This material has been
inserted into configure.ac.
The specific tests for the Octave bindings regard the program Perl, and the
Perl modules XML::DOM and XML::Parser, which are used by api2text.pl to
build the text documentation files. If the tests go okay, api2text.pl is
called in bindings/octave/Makefile.am, if needed. Otherwise, thanks to the
new AM_CONDITIONAL has_xml_pm, if recompilation of the *.txt files is
needed, then the make and shows the error message:
Perl modules not available: cannot generate plplot_octave_txt/*.txt
This has been tested in trivial cases, but must still be made bullet-proof.