*** empty log message ***
[m17n/m17n-docs.git] / configure.ac
1 # Process this file with autoconf to produce a configure script.
2 AC_INIT(m17n-docs, 0.9, bugs-m17n-lib@m17n.org)
3 AM_INIT_AUTOMAKE(m17n-docs, 0.9)
4
5 AM_MAINTAINER_MODE
6
7 # Checks for programs.
8 AC_PROG_INSTALL
9
10 # Checks for source program files.
11 AC_ARG_WITH(m17nlib,
12   [  --with-m17n-lib=DIR     directory of m17n-lib source files],
13   M17NLIB="$withval")
14
15 if test "x$M17NLIB" = "x"; then
16   if test -d ../m17n-lib; then
17     M17NLIB=../m17n-lib
18   elif test -d /usr/local/src/m17n-lib; then
19     CHARMAPS=/usr/local/src/m17n-lib
20   else
21     CHARMAPS=
22   fi
23 else :
24 fi
25
26 AC_SUBST(M17NLIB)
27
28 AC_CHECK_PROG(HAVEDOXYGEN, doxygen, yes, no)
29 AC_CHECK_PROG(RUBY, ruby, yes, no)
30 AC_CHECK_PROG(LATEX, latex, yes, no)
31 AC_CHECK_PROG(PLATEX, platex, yes, no)
32
33 OK=yes
34 if test "$HAVEDOXYGEN" = "no"; then
35   echo "Can't find a program \"doxygen\"!"
36   OK=no
37 fi
38 if test "$RUBY" = "no"; then
39   echo "Can't find a program \"ruby\"!"
40   OK=no
41 fi
42 if test "$LATEX" = "no"; then
43   echo "Can't find a program \"latex\"!"
44   OK=no
45 fi
46 if test "$PLATEX" = "no"; then
47   echo "Can't find a program \"platex\"!"
48   OK=no
49 fi
50 if test "$OK" = "no"; then
51   exit 1
52 fi
53
54 AC_CONFIG_FILES([Makefile doxyfile])
55 AC_OUTPUT
56
57 # Print configuration message.
58 echo "-------------------------------------------------------------"
59 echo "Configure to make documentations from the source files under:"
60 echo "  $M17NLIB/src/"
61 echo "-------------------------------------------------------------"