blob: 30552a0625111c6193c6591fecb4feeed78b4bbc (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
dnl
dnl Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
dnl Copyright (C) Scilab Enterprises - 2012 - Clement David
dnl
dnl This file must be used under the terms of the CeCILL.
dnl This source file is licensed as described in the file COPYING, which
dnl you should have received as part of this distribution. The terms
dnl are also available at
dnl http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
dnl
dnl Doxugen detection
dnl
dnl ------------------------------------------------------
dnl Check if doxygen is usable and working
dnl
AC_DEFUN([AC_DOXYGEN], [
## If the user is providing a path to the option
if test "$enable_build_doxygen" != 'yes' -a "$enable_build_doxygen" != 'no'; then
AC_MSG_CHECKING([doxygen])
DOXYGEN_BIN="$enable_build_doxygen/doxygen"
if test -f "$DOXYGEN_BIN"; then
AC_MSG_RESULT([$DOXYGEN_BIN])
else
AC_MSG_ERROR([Unable to find $DOXYGEN_BIN. Please check the path you provided])
fi
else
# Looks for it in the path
AC_CHECK_PROGS(DOXYGEN_BIN,doxygen,no)
if test "x$DOXYGEN_BIN" = "xno"; then
AC_MSG_ERROR([Could find doxygen in the PATH])
fi
fi
AC_SUBST([DOXYGEN_BIN])
])
|