X-Git-Url: http://git.chise.org/gitweb/?p=m17n%2Fm17n-docs.git;a=blobdiff_plain;f=configure.ac;h=ecdf6395b716f1c60e56a4635e26d06ee5b9214c;hp=88e5a8542b70f441bfe800461d84d549133a756b;hb=3fc9ce5940eeae1252481ff7cf59141131afd21b;hpb=21d329eb83c212e6cf67b7dd33c6d8c59f3168c7 diff --git a/configure.ac b/configure.ac index 88e5a85..ecdf639 100644 --- a/configure.ac +++ b/configure.ac @@ -27,25 +27,34 @@ AC_SUBST(M17NLIB) AC_CHECK_PROG(DOXYGEN, doxygen, yes, no) AC_CHECK_PROG(RUBY, ruby, yes, no) +AC_CHECK_PROG(LATEX, platex, yes, no) AC_CHECK_PROG(PLATEX, platex, yes, no) -AC_CONFIG_FILES([Makefile doxyfile]) -AC_OUTPUT - -# Print configuration message. +OK=yes if test "$DOXYGEN" = "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 +AC_CONFIG_FILES([Makefile doxyfile]) +AC_OUTPUT + +# Print configuration message. echo "-------------------------------------------------------------" echo "Configure to make documentations from the source files under:" echo " $M17NLIB/src/"