* configure.ac (--with-datarootdir, --with-docdir, --with-pdfdir,
	--with-htmldir): New.
	* configure: Regenerate.

gdb/doc:
	* configure.ac (--with-datarootdir, --with-docdir, --with-pdfdir,
	--with-htmldir): New.
	* configure: Regenerate.
	* Makefile.in (datarootdir, docdir): Define.
	(gdb.dvi, gdb.pdf): Use same -I options as for building gdb.info
	instead of $(SET_TEXINPUTS).
	(gdbint.dvi, gdbint.pdf): Use same -I options as for building
	gdbint.info instead of $(SET_TEXINPUTS).
	(gdbint/index.html): Use same -I options as for building
	gdbint.info.
	(stabs.dvi, stabs.pdf): Use same -I options as for building
	stabs.info instead of $(SET_TEXINPUTS).
	(stabs/index.html): Use same -I options as for building
	stabs.info.
	(annotate.dvi, annotate.pdf): Use same -I options as for building
	annotate.info instead of $(SET_TEXINPUTS).
	(annotate/index.html): Use same -I options as for building
	annotate.info.
This commit is contained in:
Joseph Myers
2009-04-21 20:13:08 +00:00
parent 32c1c914bc
commit 26e251b603
7 changed files with 170 additions and 13 deletions

41
gdb/configure vendored
View File

@@ -913,6 +913,10 @@ Optional Packages:
--with-tcl directory containing tcl configuration (tclConfig.sh)
--with-tk directory containing tk configuration (tkConfig.sh)
--with-x use the X Window System
--with-datarootdir use datarootdir as the data root directory.
--with-docdir install documentation in this directory.
--with-pdfdir install pdf in this directory.
--with-htmldir install html in this directory.
Some influential environment variables:
CC C compiler command
@@ -21207,6 +21211,43 @@ cat >>confdefs.h <<\_ACEOF
_ACEOF
# Flags needed to enable html installing and building
# Check whether --with-datarootdir or --without-datarootdir was given.
if test "${with_datarootdir+set}" = set; then
withval="$with_datarootdir"
datarootdir="\${prefix}/${withval}"
else
datarootdir="\${prefix}/share"
fi;
# Check whether --with-docdir or --without-docdir was given.
if test "${with_docdir+set}" = set; then
withval="$with_docdir"
docdir="\${prefix}/${withval}"
else
docdir="\${datarootdir}/doc"
fi;
# Check whether --with-pdfdir or --without-pdfdir was given.
if test "${with_pdfdir+set}" = set; then
withval="$with_pdfdir"
pdfdir="\${prefix}/${withval}"
else
pdfdir="\${docdir}"
fi;
# Check whether --with-htmldir or --without-htmldir was given.
if test "${with_htmldir+set}" = set; then
withval="$with_htmldir"
htmldir="\${prefix}/${withval}"
else
htmldir="\${docdir}"
fi;