*** 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 if test $USE_MAINTAINER_MODE = yes; then
11
12 # Checks for source program files.
13 AC_ARG_WITH(m17nlib,
14   [  --with-m17n-lib=DIR     directory of m17n-lib source files],
15   M17NLIB="$withval")
16
17 if test "x$M17NLIB" = "x"; then
18   if test -d ../m17n-lib; then
19     M17NLIB=../m17n-lib
20   elif test -d /usr/local/src/m17n-lib; then
21     M17NLIB=/usr/local/src/m17n-lib
22   else
23     M17NLIB=.
24   fi
25 else :
26 fi
27
28 AC_SUBST(M17NLIB)
29
30 AC_CHECK_PROG(HAVEDOXYGEN, doxygen, yes, no)
31 AC_CHECK_PROG(RUBY, ruby, yes, no)
32 AC_CHECK_PROG(LATEX, latex, yes, no)
33 AC_CHECK_PROG(PLATEX, platex, yes, no)
34
35 OK=yes
36 if test "$HAVEDOXYGEN" = "no"; then
37   echo "Can't find a program \"doxygen\"!"
38   OK=no
39 fi
40 if test "$RUBY" = "no"; then
41   echo "Can't find a program \"ruby\"!"
42   OK=no
43 fi
44 if test "$LATEX" = "no"; then
45   echo "Can't find a program \"latex\"!"
46   OK=no
47 fi
48 if test "$PLATEX" = "no"; then
49   echo "Can't find a program \"platex\"!"
50   OK=no
51 fi
52 if test "$OK" = "no"; then
53   exit 1
54 fi
55
56 fi
57
58 AC_CONFIG_FILES(Makefile)
59 AC_OUTPUT
60
61 # Print configuration message.
62 if test $USE_MAINTAINER_MODE = yes; then
63   AC_MSG_NOTICE([Find documentation source in "$M17NLIB"])
64 fi
65
66 eval dir=${datadir}
67 AC_MSG_NOTICE([-------------------------------------------])
68 AC_MSG_NOTICE([Install documentations in these directories])
69 AC_MSG_NOTICE([-------------------------------------------])
70 AC_MSG_NOTICE([  m17n-lib.dvi:  ${dir}/m17n-lib])
71 AC_MSG_NOTICE([  m17n-lib.ps:   ${dir}/m17n-lib])
72 AC_MSG_NOTICE([  html files:    ${dir}/m17n-lib/html])
73 eval dir=${mandir}
74 AC_MSG_NOTICE([  man files:     ${dir}])