TIVI-153: add as dependency for iputils
[profile/ivi/docbook-utils.git] / configure.in
1 dnl Process this file with autoconf to produce a configure script.
2 AC_INIT(Makefile.am)
3
4 AC_DEFUN(AC_FIND_PROGRAM,
5 [
6 $3=""
7 for i in $2; do
8   for j in $1; do
9     if test -x "$i/$j"; then
10       $3=$i
11       break 2
12     fi
13   done
14 done
15 ])
16
17 AM_INIT_AUTOMAKE(docbook-utils, 0.6.14)
18
19 docdir='$(prefix)/doc'
20 AC_SUBST(docdir)
21
22 dnl Checks for programs.
23 jade_bindirs="/usr/bin /usr/local/bin"
24 AC_FIND_PROGRAM(nsgmls, $jade_bindirs, jade_bindir)
25 AC_SUBST(jade_bindir)
26
27 perl_bindirs="/usr/bin /usr/local/bin"
28 AC_FIND_PROGRAM(perl, $perl_bindirs, perl_bindir)
29 AC_SUBST(perl_bindir)
30
31 dnl Checks for libraries.
32
33 dnl Checks for header files.
34
35 dnl Checks for typedefs, structures, and compiler characteristics.
36
37 dnl Checks for library functions.
38
39 AC_OUTPUT(Makefile docbook-utils.spec \
40         bin/Makefile bin/jw bin/sgmldiff \
41         backends/Makefile backends/man backends/texi \
42         frontends/Makefile frontends/docbook \
43         helpers/Makefile \
44         doc/Makefile \
45         doc/version \
46         doc/refentry/Makefile \
47         doc/man/Makefile \
48         doc/HTML/Makefile)