check doxygen availability only if we enable documentation build
authorcaro <caro>
Sat, 31 Jan 2009 20:18:51 +0000 (20:18 +0000)
committercaro <caro@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Sat, 31 Jan 2009 20:18:51 +0000 (20:18 +0000)
git-svn-id: http://svn.enlightenment.org/svn/e/trunk/eet@38866 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

m4/efl_doxygen.m4

index 37acb3a..eaac993 100644 (file)
@@ -28,50 +28,53 @@ AC_ARG_ENABLE([doc],
    [efl_enable_doc="yes"]
 )
 
+if test "x${efl_enable_doc}" = "xyes" ; then
+
 dnl
 dnl Specify the full file name, with path
 dnl
 
-efl_doxygen="doxygen"
+   efl_doxygen="doxygen"
 
-AC_ARG_WITH([doxygen],
-   [AC_HELP_STRING(
-       [--with-doxygen=FILE],
-       [doxygen program to use @<:@default=doxygen@:>@])],
-   dnl
-   dnl Check the given doxygen program.
-   dnl
-   [DOXYGEN=${withval}
-    AC_CHECK_PROG([efl_have_doxygen],
-       [${efl_doxygen}],
-       [yes],
-       [no])
-    if test "x${efl_have_doxygen}" = "xno" ; then
-       echo "WARNING:"
-       echo "The doxygen program you specified:"
-       echo "$efl_doxygen"
-       echo "was not found.  Please check the path and make sure "
-       echo "the program exists and is executable."
-       AC_MSG_WARN([Warning: no doxygen detected. Documentation will not be built])
-    fi
-   ],
-   [AC_CHECK_PROG([efl_have_doxygen],
-       [${efl_doxygen}],
-       [yes],
-       [no])
-    if test "x${efl_have_doxygen}" = "xno" ; then
-       echo "WARNING:"
-       echo "The doxygen program was not found in your execute"
-       echo "You may have doxygen installed somewhere not covered by your path."
-       echo ""
-       echo "If this is the case make sure you have the packages installed, AND"
-       echo "that the doxygen program is in your execute path (see your"
-       echo "shell manual page on setting the \$PATH environment variable), OR"
-       echo "alternatively, specify the program to use with --with-doxygen."
-       AC_MSG_WARN([Warning: no doxygen detected. Documentation will not be built])
-    fi
-   ]
-)
+   AC_ARG_WITH([doxygen],
+      [AC_HELP_STRING(
+          [--with-doxygen=FILE],
+          [doxygen program to use @<:@default=doxygen@:>@])],
+dnl
+dnl Check the given doxygen program.
+dnl
+      [DOXYGEN=${withval}
+       AC_CHECK_PROG([efl_have_doxygen],
+          [${efl_doxygen}],
+          [yes],
+          [no])
+       if test "x${efl_have_doxygen}" = "xno" ; then
+          echo "WARNING:"
+          echo "The doxygen program you specified:"
+          echo "$efl_doxygen"
+          echo "was not found.  Please check the path and make sure "
+          echo "the program exists and is executable."
+          AC_MSG_WARN([Warning: no doxygen detected. Documentation will not be built])
+       fi
+      ],
+      [AC_CHECK_PROG([efl_have_doxygen],
+          [${efl_doxygen}],
+          [yes],
+          [no])
+       if test "x${efl_have_doxygen}" = "xno" ; then
+          echo "WARNING:"
+          echo "The doxygen program was not found in your execute"
+          echo "You may have doxygen installed somewhere not covered by your path."
+          echo ""
+          echo "If this is the case make sure you have the packages installed, AND"
+          echo "that the doxygen program is in your execute path (see your"
+          echo "shell manual page on setting the \$PATH environment variable), OR"
+          echo "alternatively, specify the program to use with --with-doxygen."
+          AC_MSG_WARN([Warning: no doxygen detected. Documentation will not be built])
+       fi
+      ]
+   )
+fi
 
 dnl
 dnl Substitution