*** empty log message ***
[m17n/m17n-docs.git] / configure.ac
index 462d7d0..9c48b8b 100644 (file)
@@ -7,6 +7,8 @@ AM_MAINTAINER_MODE
 # Checks for programs.
 AC_PROG_INSTALL
 
+if test $USE_MAINTAINER_MODE = yes; then
+
 # Checks for source program files.
 AC_ARG_WITH(m17nlib,
   [  --with-m17n-lib=DIR     directory of m17n-lib source files],
@@ -16,9 +18,9 @@ if test "x$M17NLIB" = "x"; then
   if test -d ../m17n-lib; then
     M17NLIB=../m17n-lib
   elif test -d /usr/local/src/m17n-lib; then
-    CHARMAPS=/usr/local/src/m17n-lib
+    M17NLIB=/usr/local/src/m17n-lib
   else
-    CHARMAPS=
+    M17NLIB=.
   fi
 else :
 fi
@@ -27,7 +29,7 @@ AC_SUBST(M17NLIB)
 
 AC_CHECK_PROG(HAVEDOXYGEN, doxygen, yes, no)
 AC_CHECK_PROG(RUBY, ruby, yes, no)
-AC_CHECK_PROG(LATEX, platex, yes, no)
+AC_CHECK_PROG(LATEX, latex, yes, no)
 AC_CHECK_PROG(PLATEX, platex, yes, no)
 
 OK=yes
@@ -51,11 +53,22 @@ if test "$OK" = "no"; then
   exit 1
 fi
 
-AC_CONFIG_FILES([Makefile doxyfile])
+fi
+
+AC_CONFIG_FILES(Makefile)
 AC_OUTPUT
 
 # Print configuration message.
-echo "-------------------------------------------------------------"
-echo "Configure to make documentations from the source files under:"
-echo "  $M17NLIB/src/"
-echo "-------------------------------------------------------------"
+if test $USE_MAINTAINER_MODE = yes; then
+  AC_MSG_NOTICE([Find documentation source in "$M17NLIB"])
+fi
+
+eval dir=${datadir}
+AC_MSG_NOTICE([-------------------------------------------])
+AC_MSG_NOTICE([Install documentations in these directories])
+AC_MSG_NOTICE([-------------------------------------------])
+AC_MSG_NOTICE([  m17n-lib.dvi:  ${dir}/m17n-lib])
+AC_MSG_NOTICE([  m17n-lib.ps:   ${dir}/m17n-lib])
+AC_MSG_NOTICE([  html files:    ${dir}/m17n-lib/html])
+eval dir=${mandir}
+AC_MSG_NOTICE([  man files:     ${dir}])