]> SALOME platform Git repositories - modules/kernel.git/blob - salome_adm/unix/config_files/check_htmlgen.m4
Salome HOME
Merge from V6_main_20120808 08Aug12
[modules/kernel.git] / salome_adm / unix / config_files / check_htmlgen.m4
1 dnl Copyright (C) 2007-2012  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
23 AC_DEFUN([CHECK_HTML_GENERATORS],[
24
25 #AC_CHECKING(for html generators)
26
27 doxygen_ok=yes
28 dnl were is doxygen ?
29 AC_PATH_PROG(DOXYGEN,doxygen) 
30 if test "x$DOXYGEN" = "x"
31 then
32   AC_MSG_WARN(doxygen not found)
33   doxygen_ok=no
34 fi
35 if test "x$doxygen_ok" = "xyes"
36 then
37   version=`$DOXYGEN --version`
38   AC_MSG_RESULT(doxygen version $version)
39   case "$version" in
40         1.4.4*)
41           DOXYGEN_WITH_PYTHON=yes
42           DOXYGEN_WITH_STL=no
43           ;;
44         1.4.5*)
45           DOXYGEN_WITH_PYTHON=yes
46           DOXYGEN_WITH_STL=yes
47           ;;
48         1.4.6*)
49           DOXYGEN_WITH_PYTHON=yes
50           DOXYGEN_WITH_STL=yes
51           ;;
52         1.4.7*)
53           DOXYGEN_WITH_PYTHON=yes
54           DOXYGEN_WITH_STL=yes
55           ;;
56         1.4.8*)
57           DOXYGEN_WITH_PYTHON=yes
58           DOXYGEN_WITH_STL=yes
59           ;;
60         1.4.9*)
61           DOXYGEN_WITH_PYTHON=yes
62           DOXYGEN_WITH_STL=yes
63           ;;
64         [[1-9]].[[5-9]]*)
65           DOXYGEN_WITH_PYTHON=yes
66           DOXYGEN_WITH_STL=yes
67           ;;
68         *)
69           DOXYGEN_WITH_PYTHON=no
70           DOXYGEN_WITH_STL=no
71           ;;
72   esac
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"
77   else
78     DOXYGEN_PYTHON_EXTENSION=""
79   fi
80   if test "$DOXYGEN_WITH_STL" == "yes" ; then
81     DOXYGEN_SUPPORT_STL="YES"
82   else
83     DOXYGEN_SUPPORT_STL="NO"
84   fi
85   AC_SUBST(DOXYGEN_WITH_PYTHON)
86   AC_SUBST(DOXYGEN_PYTHON_EXTENSION)
87   AC_SUBST(DOXYGEN_WITH_STL)
88   AC_SUBST(DOXYGEN_SUPPORT_STL)
89 fi
90 dnl AC_SUBST(DOXYGEN)
91
92 graphviz_ok=yes
93 dnl were is graphviz ?
94 AC_PATH_PROG(DOT,dot) 
95 if test "x$DOT" = "x" ; then
96   AC_MSG_WARN(graphviz not found)
97   graphviz_ok=no
98 fi
99 dnl AC_SUBST(DOT)
100
101 AC_PATH_PROG(LATEX,latex) 
102 if test "x$LATEX" = "x" ; then
103   AC_MSG_WARN(latex not found)
104 fi
105 AC_SUBST(LATEX)
106
107 AC_PATH_PROG(DVIPS,dvips)
108 if test "x$DVIPS" = "x" ; then
109   AC_MSG_WARN(dvips not found)
110 fi
111 AC_SUBST(DVIPS)
112
113 AC_PATH_PROG(PDFLATEX,pdflatex)
114 if test "x$PDFLATEX" = "x" ; then
115   AC_MSG_WARN(pdflatex not found)
116 fi
117 AC_SUBST(PDFLATEX)
118
119 rst2html_ok=yes
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)
124 fi
125
126 if test "x$RST2HTML" = "x"; then
127   AC_MSG_WARN(rst2html not found)
128   rst2html_ok=no
129 fi
130 AC_SUBST(RST2HTML)
131
132 AM_CONDITIONAL(RST2HTML_IS_OK, [test x"$rst2html_ok" = xyes])
133
134 ])dnl
135 dnl