Changeset 944 for trunk/configure.ac


Ignore:
Timestamp:
Oct 7, 2007, 11:10:51 PM (14 years ago)
Author:
Peter
Message:

added test for presence for doxygen, latex, dvipdfm, and latex2html. If not found and configure is run in --enable-debug mode a warning is given. On default mode (non-debug) no warnings are given because if running configure in a distribution the documentation should already be there and a warning seems odd.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/configure.ac

    r943 r944  
    4040AC_PROG_CXX
    4141AC_PROG_INSTALL
     42AC_CHECK_PROG([DOXYGEN], [doxygen], [yes], [no])
     43AC_CHECK_PROG([DVIPDFM], [dvipdfm], [yes], [no])
     44AC_CHECK_PROG([LATEX], [latex], [yes], [no])
     45AC_CHECK_PROG([LATEX2HTML], [latex2html], [yes], [no])
    4246
    4347# Checks for libraries.
     
    118122AC_SUBST(YAT_LIB_LOCATION)
    119123
     124# Only warning about missing programs (needed for docs generation)
     125# when in debug mode
     126if (test "$enable_debug" == "yes"); then
     127   if (test "$DOXYGEN" != "yes") ; then
     128      AC_MSG_WARN([Doxygen was not found. Yat will compile and work
     129      without doxygen.  However, in order to enable generation of
     130      documentation, please install doxygen available at
     131      http://www.doxygen.org/])
     132   fi       
     133   if (test "$LATEX" != "yes") ; then
     134      AC_MSG_WARN([latex was not found. Yat will compile and work
     135      without latex. However, supporting documentation on statistics
     136      used in yat cannot be generated without latex.])
     137   fi       
     138   if (test "$DVIPFDM" != "yes") ; then
     139      AC_MSG_WARN([dvipdfm was not found. Yat will compile and work
     140      without dvipdfm. However, pdf document on statistics used in yat
     141      cannot be generated without dvipdfm.])
     142   fi       
     143   if (test "$LATEX2HTML" != "yes") ; then
     144      AC_MSG_WARN([latex2html was not found. Yat will compile and work
     145      without Latex. However, html document on statistics used in yat
     146      cannot be generated without latex.])
     147   fi       
     148fi
     149
    120150AC_CONFIG_FILES([Makefile
    121151     doc/Makefile
Note: See TracChangeset for help on using the changeset viewer.