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
36
37
|
--- configure.ac.orig
+++ configure.ac
@@ -147,21 +147,19 @@ fi
dnl Check for doxygen
-AC_ARG_ENABLE( doxygen, [ --disable-doxygen Disable doxygen documentation.] , disable_doxygen=yes)
-
-if test "x$disable_doxygen" != "xyes" ; then
-
-AC_PATH_PROG(DOXYGEN, doxygen, no)
-
-if test x$DOXYGEN = xno; then
- echo "Cannot find doxygen, will not build sourcecode documentation"
-fi
-
-else
- echo "Doxygen documentation disabled, not checking"
- DOXYGEN=no
-fi
-
+AC_ARG_ENABLE( doxygen, [ --disable-doxygen Disable doxygen documentation.])
+
+AS_IF([test "x$enable_doxygen" != "xno"],
+[AC_PATH_PROG(DOXYGEN, doxygen, no)],
+[echo "Doxygen documentation disabled, not checking"
+DOXYGEN=no])
+
+AS_IF([test "x$DOXYGEN" = "xno"],
+[AS_IF(
+ [test "x$enable_doxygen" = "xyes"],[AC_MSG_ERROR([Cannot find doxygen, make sure it is installed in your PATH])],
+ [test "x$enable_doxygen" = "x"],[echo "Cannot find doxygen, will not build sourcecode documentation"])
+])
+
AM_CONDITIONAL(HAVE_DOXYGEN, test x$DOXYGEN != xno)
|