OSDN Git Service

b7a2b482b257547cf919d4ea3465217cd874d0a9
[pf3gnuchains/pf3gnuchains4x.git] / gdb / doc / configure.ac
1 AC_PREREQ(2.59)
2 AC_INIT(refcard.tex)
3 sinclude(../../config/acx.m4)
4 AC_PROG_INSTALL
5 AC_PROG_LN_S
6
7 # Flags needed to enable html installing and building
8 AC_ARG_WITH(datarootdir,
9 AC_HELP_STRING([--with-datarootdir], [use datarootdir as the data root directory.]),
10 [datarootdir="\${prefix}/${withval}"],
11 [datarootdir="\${prefix}/share"])
12
13 AC_ARG_WITH(docdir,
14 AC_HELP_STRING([--with-docdir], [install documentation in this directory.]),
15 [docdir="\${prefix}/${withval}"],
16 [docdir="\${datarootdir}/doc"])
17
18 AC_ARG_WITH(pdfdir,
19 AC_HELP_STRING([--with-pdfdir], [install pdf in this directory.]),
20 [pdfdir="\${prefix}/${withval}"],
21 [pdfdir="\${docdir}"])
22
23 AC_ARG_WITH(htmldir,
24 AC_HELP_STRING([--with-htmldir], [install html in this directory.]),
25 [htmldir="\${prefix}/${withval}"],
26 [htmldir="\${docdir}"])
27
28 AC_SUBST(datarootdir)
29 AC_SUBST(docdir)
30 AC_SUBST(htmldir)
31 AC_SUBST(pdfdir)
32
33 ACX_PKGVERSION([GDB])
34 ACX_BUGURL([http://www.gnu.org/software/gdb/bugs/])
35 AC_OUTPUT(Makefile)