1 dnl Copyright (C) 2007-2012 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
23 AC_DEFUN([CHECK_HTML_GENERATORS],[
25 #AC_CHECKING(for html generators)
29 AC_PATH_PROG(DOXYGEN,doxygen)
30 if test "x$DOXYGEN" = "x"
32 AC_MSG_WARN(doxygen not found)
35 if test "x$doxygen_ok" = "xyes"
37 version=`$DOXYGEN --version`
38 AC_MSG_RESULT(doxygen version $version)
41 DOXYGEN_WITH_PYTHON=yes
45 DOXYGEN_WITH_PYTHON=yes
49 DOXYGEN_WITH_PYTHON=yes
53 DOXYGEN_WITH_PYTHON=yes
57 DOXYGEN_WITH_PYTHON=yes
61 DOXYGEN_WITH_PYTHON=yes
65 DOXYGEN_WITH_PYTHON=yes
69 DOXYGEN_WITH_PYTHON=no
73 AC_MSG_RESULT(doxygen with support STL - $DOXYGEN_WITH_STL)
74 AC_MSG_RESULT(doxygen with support PYTHON - $DOXYGEN_WITH_PYTHON)
75 if test "$DOXYGEN_WITH_PYTHON" == "yes" ; then
76 DOXYGEN_PYTHON_EXTENSION="*.py"
78 DOXYGEN_PYTHON_EXTENSION=""
80 if test "$DOXYGEN_WITH_STL" == "yes" ; then
81 DOXYGEN_SUPPORT_STL="YES"
83 DOXYGEN_SUPPORT_STL="NO"
85 AC_SUBST(DOXYGEN_WITH_PYTHON)
86 AC_SUBST(DOXYGEN_PYTHON_EXTENSION)
87 AC_SUBST(DOXYGEN_WITH_STL)
88 AC_SUBST(DOXYGEN_SUPPORT_STL)
93 dnl were is graphviz ?
95 if test "x$DOT" = "x" ; then
96 AC_MSG_WARN(graphviz not found)
101 AC_PATH_PROG(LATEX,latex)
102 if test "x$LATEX" = "x" ; then
103 AC_MSG_WARN(latex not found)
107 AC_PATH_PROG(DVIPS,dvips)
108 if test "x$DVIPS" = "x" ; then
109 AC_MSG_WARN(dvips not found)
113 AC_PATH_PROG(PDFLATEX,pdflatex)
114 if test "x$PDFLATEX" = "x" ; then
115 AC_MSG_WARN(pdflatex not found)
120 dnl were is rst2html ?
121 AC_PATH_PROG(RST2HTML,rst2html)
122 if test "x$RST2HTML" = "x"; then
123 AC_PATH_PROG(RST2HTML,rst2html.py)
126 if test "x$RST2HTML" = "x"; then
127 AC_MSG_WARN(rst2html not found)
132 AM_CONDITIONAL(RST2HTML_IS_OK, [test x"$rst2html_ok" = xyes])