1 dnl Copyright (C) 2007-2008 CEA/DEN, EDF R&D, OPEN CASCADE
3 dnl Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
4 dnl CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
6 dnl This library is free software; you can redistribute it and/or
7 dnl modify it under the terms of the GNU Lesser General Public
8 dnl License as published by the Free Software Foundation; either
9 dnl version 2.1 of the License.
11 dnl This library is distributed in the hope that it will be useful,
12 dnl but WITHOUT ANY WARRANTY; without even the implied warranty of
13 dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 dnl Lesser General Public License for more details.
16 dnl You should have received a copy of the GNU Lesser General Public
17 dnl License along with this library; if not, write to the Free Software
18 dnl Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
20 dnl See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
22 AC_DEFUN([CHECK_HTML_GENERATORS],[
24 #AC_CHECKING(for html generators)
28 AC_PATH_PROG(DOXYGEN,doxygen)
29 if test "x$DOXYGEN" = "x"
31 AC_MSG_WARN(doxygen not found)
34 if test "x$doxygen_ok" = "xyes"
36 version=`$DOXYGEN --version`
37 AC_MSG_RESULT(doxygen version $version)
40 DOXYGEN_WITH_PYTHON=yes
44 DOXYGEN_WITH_PYTHON=yes
48 DOXYGEN_WITH_PYTHON=yes
52 DOXYGEN_WITH_PYTHON=yes
56 DOXYGEN_WITH_PYTHON=yes
60 DOXYGEN_WITH_PYTHON=yes
64 DOXYGEN_WITH_PYTHON=yes
68 DOXYGEN_WITH_PYTHON=no
72 AC_MSG_RESULT(doxygen with support STL - $DOXYGEN_WITH_STL)
73 AC_MSG_RESULT(doxygen with support PYTHON - $DOXYGEN_WITH_PYTHON)
74 if test "$DOXYGEN_WITH_PYTHON" == "yes" ; then
75 DOXYGEN_PYTHON_EXTENSION="*.py"
77 DOXYGEN_PYTHON_EXTENSION=""
79 if test "$DOXYGEN_WITH_STL" == "yes" ; then
80 DOXYGEN_SUPPORT_STL="YES"
82 DOXYGEN_SUPPORT_STL="NO"
84 AC_SUBST(DOXYGEN_WITH_PYTHON)
85 AC_SUBST(DOXYGEN_PYTHON_EXTENSION)
86 AC_SUBST(DOXYGEN_WITH_STL)
87 AC_SUBST(DOXYGEN_SUPPORT_STL)
92 dnl were is graphviz ?
94 if test "x$DOT" = "x" ; then
95 AC_MSG_WARN(graphviz not found)
100 AC_PATH_PROG(LATEX,latex)
101 if test "x$LATEX" = "x" ; then
102 AC_MSG_WARN(latex not found)
106 AC_PATH_PROG(DVIPS,dvips)
107 if test "x$DVIPS" = "x" ; then
108 AC_MSG_WARN(dvips not found)
112 AC_PATH_PROG(PDFLATEX,pdflatex)
113 if test "x$PDFLATEX" = "x" ; then
114 AC_MSG_WARN(pdflatex not found)
119 dnl were is rst2html ?
120 AC_PATH_PROG(RST2HTML,rst2html)
121 if test "x$RST2HTML" = "x"; then
122 AC_PATH_PROG(RST2HTML,rst2html.py)
125 if test "x$RST2HTML" = "x"; then
126 AC_MSG_WARN(rst2html not found)
131 AM_CONDITIONAL(RST2HTML_IS_OK, [test x"$rst2html_ok" = xyes])