1 dnl Copyright (C) 2006-2016 CEA/DEN, EDF R&D
3 dnl This library is free software; you can redistribute it and/or
4 dnl modify it under the terms of the GNU Lesser General Public
5 dnl License as published by the Free Software Foundation; either
6 dnl version 2.1 of the License, or (at your option) any later version.
8 dnl This library is distributed in the hope that it will be useful,
9 dnl but WITHOUT ANY WARRANTY; without even the implied warranty of
10 dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11 dnl Lesser General Public License for more details.
13 dnl You should have received a copy of the GNU Lesser General Public
14 dnl License along with this library; if not, write to the Free Software
15 dnl Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
17 dnl See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
20 AC_DEFUN([CHECK_HTML_GENERATORS],[
22 AC_CHECKING(for html generators)
26 AC_PATH_PROG(DOXYGEN,doxygen)
27 if test "x$DOXYGEN" = "x"
29 AC_MSG_WARN(doxygen not found)
32 if test "x$doxygen_ok" = "xyes"
34 version=`$DOXYGEN --version`
35 AC_MSG_RESULT(doxygen version $version)
38 DOXYGEN_WITH_PYTHON=yes
42 DOXYGEN_WITH_PYTHON=yes
46 DOXYGEN_WITH_PYTHON=yes
50 DOXYGEN_WITH_PYTHON=yes
54 DOXYGEN_WITH_PYTHON=yes
58 DOXYGEN_WITH_PYTHON=yes
62 DOXYGEN_WITH_PYTHON=yes
66 DOXYGEN_WITH_PYTHON=no
70 AC_MSG_RESULT(doxygen with support STL - $DOXYGEN_WITH_STL)
71 AC_MSG_RESULT(doxygen with support PYTHON - $DOXYGEN_WITH_PYTHON)
72 AC_SUBST(DOXYGEN_WITH_PYTHON)
73 AC_SUBST(DOXYGEN_WITH_STL)
75 AM_CONDITIONAL(DOXYGEN_IS_OK, [test x"$doxygen_ok" = xyes])
78 AC_SUBST(GRAPHVIZHOME)
79 AC_SUBST(GRAPHVIZ_CPPFLAGS)
80 AC_SUBST(GRAPHVIZ_LDFLAGS)
81 AC_SUBST(GRAPHVIZ_LIBADD)
86 AC_CHECKING([graphviz configuration])
89 dnl were is graphviz ?
91 if test "x$DOT" = "x" ; then
92 AC_MSG_WARN(graphviz not found)
95 GRAPHVIZ_PREFIX=`echo $DOT | sed -e "s,[[^/]]*$,,;s,/$,,;s,^$,.,"`
96 GRAPHVIZ_PREFIX=`echo $GRAPHVIZ_PREFIX | sed -e "s,[[^/]]*$,,;s,/$,,;s,^$,.,"`
97 GRAPHVIZHOME=$GRAPHVIZ_PREFIX
99 GRAPHVIZ_CPPFLAGS="-I${GRAPHVIZHOME}/include/graphviz"
100 if test "x$GRAPHVIZHOME" = "x/usr" ; then
101 GRAPHVIZ_LDFLAGS="-L${GRAPHVIZHOME}/lib/graphviz"
103 GRAPHVIZ_LDFLAGS="-L${GRAPHVIZHOME}/lib -L${GRAPHVIZHOME}/lib/graphviz"
107 CPPFLAGS_old=$CPPFLAGS
108 CPPFLAGS="$CPPFLAGS $GRAPHVIZ_CPPFLAGS"
110 AC_CHECK_HEADERS(dotneato.h, old_graphviz="yes", old_graphviz="no")
111 if test "x$old_graphviz" = "xyes" ; then
112 GRAPHVIZ_LIBADD="-ldotneato"
114 GRAPHVIZ_LIBADD="-lgvc"
116 CPPFLAGS=$CPPFLAGS_old
118 AC_PATH_PROG(LATEX,latex)
119 if test "x$LATEX" = "x" ; then
120 AC_MSG_WARN(latex not found)
124 AC_PATH_PROG(DVIPS,dvips)
125 if test "x$DVIPS" = "x" ; then
126 AC_MSG_WARN(dvips not found)
130 AC_PATH_PROG(PDFLATEX,pdflatex)
131 if test "x$PDFLATEX" = "x" ; then
132 AC_MSG_WARN(pdflatex not found)
137 dnl were is rst2html ?
138 AC_PATH_PROG(RST2HTML,rst2html)
139 if test "x$RST2HTML" = "x"; then
140 AC_PATH_PROG(RST2HTML,rst2html.py)
143 if test "x$RST2HTML" = "x"; then
144 AC_MSG_WARN(rst2html not found)
149 AM_CONDITIONAL(RST2HTML_IS_OK, [test x"$rst2html_ok" = xyes])