summaryrefslogtreecommitdiff
path: root/legacy/eet/m4
diff options
context:
space:
mode:
Diffstat (limited to 'legacy/eet/m4')
-rw-r--r--legacy/eet/m4/doxygen.m473
1 files changed, 73 insertions, 0 deletions
diff --git a/legacy/eet/m4/doxygen.m4 b/legacy/eet/m4/doxygen.m4
new file mode 100644
index 0000000000..32c134936a
--- /dev/null
+++ b/legacy/eet/m4/doxygen.m4
@@ -0,0 +1,73 @@
1dnl Configure script for doxygen
2dnl Vincent Torri 2005-22-09
3dnl
4dnl AM_CHECK_DOXYGEN([ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND]])
5dnl Test for the doxygen program, and define BUILD_DOCS and DOXYGEN.
6dnl
7AC_DEFUN([AM_CHECK_DOXYGEN],
8 [
9 DOXYGEN="doxygen"
10 dnl
11 dnl Disable the build of the documentation
12 dnl
13 AC_ARG_ENABLE(
14 [build_docs],
15 AC_HELP_STRING(
16 [--disable-build-docs],
17 [Disable the build of the documentation]),
18 [if test "${disable_build_docs}" = "yes" ; then
19 enable_build_docs="no"
20 else
21 enable_build_docs="yes"
22 fi],
23 [enable_build_docs="yes"])
24 dnl
25 dnl Get the prefix where doxygen is installed.
26 dnl
27 AC_ARG_WITH(
28 [doxygen],
29 AC_HELP_STRING(
30 [--with-doxygen=FILE],
31 [doxygen program to use (eg /usr/bin/doxygen)]),
32 dnl
33 dnl Check the given doxygen program.
34 dnl
35 [DOXYGEN=${withval}
36 AC_CHECK_PROG(
37 [BUILD_DOCS],
38 [${DOXYGEN}],
39 [yes],
40 [no])
41 if test $BUILD_DOCS = no; then
42 echo "WARNING:"
43 echo "The doxygen program you specified:"
44 echo "$DOXYGEN"
45 echo "was not found. Please check the path and make sure "
46 echo "the program exists and is executable."
47 AC_MSG_WARN(
48 [Warning: no doxygen detected. Documentation will not be built])
49 fi],
50 [AC_CHECK_PROG(
51 [BUILD_DOCS],
52 [${DOXYGEN}],
53 [yes],
54 [no])
55 if test ${BUILD_DOCS} = no; then
56 echo "WARNING:"
57 echo "The doxygen program was not found in your execute"
58 echo "You may have doxygen installed somewhere not covered by your path."
59 echo ""
60 echo "If this is the case make sure you have the packages installed, AND"
61 echo "that the doxygen program is in your execute path (see your"
62 echo "shell's manual page on setting the \$PATH environment variable), OR"
63 echo "alternatively, specify the program to use with --with-doxygen."
64 AC_MSG_WARN(
65 [Warning: no doxygen detected. Documentation will not be built])
66 fi])
67 dnl
68 dnl Substitution
69 dnl
70 AC_SUBST([DOXYGEN])
71 AM_CONDITIONAL(BUILD_DOCS, test "x$BUILD_DOCS" = "xyes")
72 ])
73dnl End of doxygen.m4