X-Git-Url: http://git.chise.org/gitweb/?p=m17n%2Fm17n-docs.git;a=blobdiff_plain;f=configure.ac;h=462d7d080f917cfdb454eb850f82344c96f1f2dd;hp=88e5a8542b70f441bfe800461d84d549133a756b;hb=7c14ead3a1f6d6ee23ad856ff094ca4bd2c2e5c9;hpb=498e1235ee98882fc70c54cde00840ea22117d13 diff --git a/configure.ac b/configure.ac index 88e5a85..462d7d0 100644 --- a/configure.ac +++ b/configure.ac @@ -25,27 +25,36 @@ fi AC_SUBST(M17NLIB) -AC_CHECK_PROG(DOXYGEN, doxygen, yes, no) +AC_CHECK_PROG(HAVEDOXYGEN, 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. -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 +AC_CONFIG_FILES([Makefile doxyfile]) +AC_OUTPUT + +# Print configuration message. echo "-------------------------------------------------------------" echo "Configure to make documentations from the source files under:" echo " $M17NLIB/src/"