Kaydet (Commit) 62bc5c29 authored tarafından Norbert Thiebaud's avatar Norbert Thiebaud Kaydeden (comit) Tor Lillqvist

disable odk if not explicitly requested and doxygen not in PATH

if odk is not explicitly requested by --enable-odk
and --with-doxygen is "yes" , i.e not a specific location
and doxygen could not be found in the PATH
then enable_odk is set to "no" as a default value
rather than an implicit 'yes'

Change-Id: I4f04ecc8dbe959001f6dfdccf0c97b61f79faff6
Reviewed-on: https://gerrit.libreoffice.org/1789Reviewed-by: 's avatarTor Lillqvist <tml@iki.fi>
Tested-by: 's avatarTor Lillqvist <tml@iki.fi>
üst 75e32e15
......@@ -6944,6 +6944,33 @@ AC_SUBST(GPERF)
dnl ===================================================================
dnl Check for building ODK
dnl ===================================================================
if test "$enable_odk" = no; then
unset DOXYGEN
else
if test "$with_doxygen" = no; then
AC_MSG_CHECKING([for doxygen])
unset DOXYGEN
AC_MSG_RESULT([no])
else
if test "$with_doxygen" = yes; then
AC_PATH_PROG([DOXYGEN], [doxygen])
if test -z "$DOXYGEN"; then
AC_MSG_RESULT([no])
if test "$enable_odk" = "" ; then
enable_odk="no"
else
AC_MSG_ERROR([doxygen not found in \$PATH; specify its pathname via --with-doxygen=..., or disable its use via --without-doxygen])
fi
fi
else
AC_MSG_CHECKING([for doxygen])
DOXYGEN=$with_doxygen
AC_MSG_RESULT([$DOXYGEN])
fi
fi
fi
AC_SUBST([DOXYGEN])
AC_MSG_CHECKING([whether to build the ODK])
if test "$enable_odk" = "" -o "$enable_odk" != "no"; then
AC_MSG_RESULT([yes])
......@@ -11655,28 +11682,6 @@ location (/usr/share/java), specify its pathname via
fi
AC_SUBST(OOO_JUNIT_JAR)
if test "$enable_odk" = no; then
unset DOXYGEN
else
if test "$with_doxygen" = no; then
AC_MSG_CHECKING([for doxygen])
unset DOXYGEN
AC_MSG_RESULT([no])
else
if test "$with_doxygen" = yes; then
AC_PATH_PROG([DOXYGEN], [doxygen])
if test -z "$DOXYGEN"; then
AC_MSG_RESULT([no])
AC_MSG_ERROR([doxygen not found in \$PATH; specify its pathname via --with-doxygen=..., or disable its use via --without-doxygen])
fi
else
AC_MSG_CHECKING([for doxygen])
DOXYGEN=$with_doxygen
AC_MSG_RESULT([$DOXYGEN])
fi
fi
fi
AC_SUBST([DOXYGEN])
AC_SUBST(SCPDEFS)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment