X-Git-Url: http://git.chise.org/gitweb/?p=m17n%2Fm17n-docs.git;a=blobdiff_plain;f=configure.ac;h=fb37ae6f832371eb7c35807e98e6e4002f493d85;hp=88e5a8542b70f441bfe800461d84d549133a756b;hb=65235b2da778a8e87762c80b8dc244d41a08732f;hpb=498e1235ee98882fc70c54cde00840ea22117d13 diff --git a/configure.ac b/configure.ac index 88e5a85..fb37ae6 100644 --- a/configure.ac +++ b/configure.ac @@ -6,6 +6,9 @@ AM_MAINTAINER_MODE # Checks for programs. AC_PROG_INSTALL +AC_PROG_AWK + +if test $USE_MAINTAINER_MODE = yes; then # Checks for source program files. AC_ARG_WITH(m17nlib, @@ -16,37 +19,74 @@ 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 - AC_SUBST(M17NLIB) -AC_CHECK_PROG(DOXYGEN, doxygen, yes, no) +# 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) AC_CHECK_PROG(PLATEX, platex, yes, no) -AC_CONFIG_FILES([Makefile doxyfile]) -AC_OUTPUT - -# Print configuration message. -if test "$DOXYGEN" = "no"; then +OK=yes +if test "$HAVEDOXYGEN" = "no"; then echo "Can't find a program \"doxygen\"!" - exit 1 + OK=no fi if test "$RUBY" = "no"; then echo "Can't find a program \"ruby\"!" - exit 1 + OK=no +fi +if test "$LATEX" = "no"; then + echo "Can't find a program \"latex\"!" + OK=no fi if test "$PLATEX" = "no"; then echo "Can't find a program \"platex\"!" + OK=no +fi +if test "$OK" = "no"; then exit 1 fi -echo "-------------------------------------------------------------" -echo "Configure to make documentations from the source files under:" -echo " $M17NLIB/src/" -echo "-------------------------------------------------------------" +fi + +AC_CONFIG_FILES(Makefile) +AC_OUTPUT + +# Print configuration message. +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-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}])