Salome HOME
To see which hdf5 we're using in configure log
[modules/kernel.git] / salome_adm / unix / config_files / check_htmlgen.m4
1 dnl  Copyright (C) 2007-2008  CEA/DEN, EDF R&D, OPEN CASCADE
2 dnl
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
5 dnl
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.
10 dnl
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.
15 dnl
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
19 dnl
20 dnl  See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
21 dnl
22 AC_DEFUN([CHECK_HTML_GENERATORS],[
23
24 #AC_CHECKING(for html generators)
25
26 doxygen_ok=yes
27 dnl were is doxygen ?
28 AC_PATH_PROG(DOXYGEN,doxygen) 
29 if test "x$DOXYGEN" = "x"
30 then
31   AC_MSG_WARN(doxygen not found)
32   doxygen_ok=no
33 fi
34 if test "x$doxygen_ok" = "xyes"
35 then
36   version=`$DOXYGEN --version`
37   AC_MSG_RESULT(doxygen version $version)
38   case "$version" in
39         1.4.4*)
40           DOXYGEN_WITH_PYTHON=yes
41           DOXYGEN_WITH_STL=no
42           ;;
43         1.4.5*)
44           DOXYGEN_WITH_PYTHON=yes
45           DOXYGEN_WITH_STL=yes
46           ;;
47         1.4.6*)
48           DOXYGEN_WITH_PYTHON=yes
49           DOXYGEN_WITH_STL=yes
50           ;;
51         1.4.7*)
52           DOXYGEN_WITH_PYTHON=yes
53           DOXYGEN_WITH_STL=yes
54           ;;
55         1.4.8*)
56           DOXYGEN_WITH_PYTHON=yes
57           DOXYGEN_WITH_STL=yes
58           ;;
59         1.4.9*)
60           DOXYGEN_WITH_PYTHON=yes
61           DOXYGEN_WITH_STL=yes
62           ;;
63         [[1-9]].[[5-9]]*)
64           DOXYGEN_WITH_PYTHON=yes
65           DOXYGEN_WITH_STL=yes
66           ;;
67         *)
68           DOXYGEN_WITH_PYTHON=no
69           DOXYGEN_WITH_STL=no
70           ;;
71   esac
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"
76   else
77     DOXYGEN_PYTHON_EXTENSION=""
78   fi
79   if test "$DOXYGEN_WITH_STL" == "yes" ; then
80     DOXYGEN_SUPPORT_STL="YES"
81   else
82     DOXYGEN_SUPPORT_STL="NO"
83   fi
84   AC_SUBST(DOXYGEN_WITH_PYTHON)
85   AC_SUBST(DOXYGEN_PYTHON_EXTENSION)
86   AC_SUBST(DOXYGEN_WITH_STL)
87   AC_SUBST(DOXYGEN_SUPPORT_STL)
88 fi
89 dnl AC_SUBST(DOXYGEN)
90
91 graphviz_ok=yes
92 dnl were is graphviz ?
93 AC_PATH_PROG(DOT,dot) 
94 if test "x$DOT" = "x" ; then
95   AC_MSG_WARN(graphviz not found)
96   graphviz_ok=no
97 fi
98 dnl AC_SUBST(DOT)
99
100 AC_PATH_PROG(LATEX,latex) 
101 if test "x$LATEX" = "x" ; then
102   AC_MSG_WARN(latex not found)
103 fi
104 AC_SUBST(LATEX)
105
106 AC_PATH_PROG(DVIPS,dvips)
107 if test "x$DVIPS" = "x" ; then
108   AC_MSG_WARN(dvips not found)
109 fi
110 AC_SUBST(DVIPS)
111
112 AC_PATH_PROG(PDFLATEX,pdflatex)
113 if test "x$PDFLATEX" = "x" ; then
114   AC_MSG_WARN(pdflatex not found)
115 fi
116 AC_SUBST(PDFLATEX)
117
118 rst2html_ok=yes
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)
123 fi
124
125 if test "x$RST2HTML" = "x"; then
126   AC_MSG_WARN(rst2html not found)
127   rst2html_ok=no
128 fi
129 AC_SUBST(RST2HTML)
130
131 AM_CONDITIONAL(RST2HTML_IS_OK, [test x"$rst2html_ok" = xyes])
132
133 ])dnl
134 dnl