X-Git-Url: http://git.chise.org/gitweb/?p=m17n%2Fm17n-docs.git;a=blobdiff_plain;f=configure.ac;h=de59906447c702ca6aa683af04792e696828d8d1;hp=f47c91ef136c8fb2a929d77315fad2ca672a619f;hb=b78b03921ee05eeb6b68c0daaf5d3af45c03cea9;hpb=4e48b96b9a983fb146df1a86739e5dd7a7294eab diff --git a/configure.ac b/configure.ac index f47c91e..de59906 100644 --- a/configure.ac +++ b/configure.ac @@ -1,11 +1,12 @@ # Process this file with autoconf to produce a configure script. -AC_INIT(m17n-docs, 0.9, bugs-m17n-lib@m17n.org) -AM_INIT_AUTOMAKE(m17n-docs, 0.9) +AC_INIT(m17n-docs, 1.2.0, bugs-m17n-lib@m17n.org) +AM_INIT_AUTOMAKE(m17n-docs, 1.2.0) AM_MAINTAINER_MODE # Checks for programs. AC_PROG_INSTALL +AC_PROG_AWK if test $USE_MAINTAINER_MODE = yes; then @@ -24,9 +25,25 @@ if test "x$M17NLIB" = "x"; then fi else : fi - AC_SUBST(M17NLIB) +# Checks for the m17n database files. +AC_ARG_WITH(m17ndb, + [ --with-m17n-db=DIR directory of m17n-db source files], + M17NDB="$withval") + +if test "x$M17NDB" = "x"; then + if test -d ../m17n-db; then + M17NDB=../m17n-db + elif test -d /usr/local/src/m17n-db; then + M17NDB=/usr/local/src/m17n-db + else + M17NDB=. + fi +else : +fi +AC_SUBST(M17NDB) + AC_CHECK_PROG(HAVEDOXYGEN, doxygen, yes, no) AC_CHECK_PROG(RUBY, ruby, yes, no) AC_CHECK_PROG(LATEX, latex, yes, no) @@ -59,7 +76,17 @@ 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"]) + AC_MSG_NOTICE([Find m17n database source in "$M17NDB"]) +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/docs]) +AC_MSG_NOTICE([ m17n-lib.ps: ${dir}/m17n/docs]) +AC_MSG_NOTICE([ html files: ${dir}/m17n/docs/html]) +eval dir=${mandir} +AC_MSG_NOTICE([ man files: ${dir}])