mirror of
https://github.com/bspeice/libcvautomation
synced 2025-04-21 00:41:29 -04:00
Fix the --without-docs switch to configure
This commit is contained in:
parent
9596cca6a0
commit
460bbc322c
11
configure.ac
11
configure.ac
@ -52,12 +52,13 @@ if test "$with_examples" != "no"; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# Check for doxygen
|
# Check for doxygen
|
||||||
AC_ARG_WITH(docs, [ --with-documentation build documentation for libcvautomation @<:@default=yes@:>@])
|
AC_ARG_WITH(docs, [ --with-docs build documentation for libcvautomation @<:@default=yes@:>@])
|
||||||
AC_ARG_ENABLE(man, [ --enable-man enable building the 'man' pages for libcvautomation @<:@default=enable@:>@])
|
AC_ARG_ENABLE(man, [ --enable-man enable building the 'man' pages for libcvautomation @<:@default=enable@:>@])
|
||||||
AC_ARG_ENABLE(tex, [ --enable-tex enable building the 'latex' pages for libcvautomation @<:@default=enable@:>@])
|
AC_ARG_ENABLE(tex, [ --enable-tex enable building the 'latex' pages for libcvautomation @<:@default=enable@:>@])
|
||||||
|
|
||||||
if test "$with_docs" != "no"; then
|
if test "$with_docs" != "no"; then
|
||||||
AC_CHECK_PROGS([Doxygen], [doxygen], [missing], [found])
|
AC_CHECK_PROGS([Doxygen], [doxygen], [missing], [found])
|
||||||
echo "$Doxygen"
|
|
||||||
if test "$Doxygen" == "missing"; then
|
if test "$Doxygen" == "missing"; then
|
||||||
AC_MSG_WARN([Doxygen not found - continuing without building documentation.])
|
AC_MSG_WARN([Doxygen not found - continuing without building documentation.])
|
||||||
AM_CONDITIONAL(BUILD_DOXYGEN, [test "$Doxygen" != "missing"])
|
AM_CONDITIONAL(BUILD_DOXYGEN, [test "$Doxygen" != "missing"])
|
||||||
@ -67,6 +68,11 @@ if test "$with_docs" != "no"; then
|
|||||||
AM_CONDITIONAL(BUILD_DOXYGEN, [test "$with_docs" != "no"])
|
AM_CONDITIONAL(BUILD_DOXYGEN, [test "$with_docs" != "no"])
|
||||||
AC_CONFIG_FILES([docs/Doxyfile])
|
AC_CONFIG_FILES([docs/Doxyfile])
|
||||||
fi
|
fi
|
||||||
|
else
|
||||||
|
AM_CONDITIONAL(BUILD_DOXYGEN, [test "$with_docs" != "no"])
|
||||||
|
enable_man="no"
|
||||||
|
enable_tex="no"
|
||||||
|
fi
|
||||||
|
|
||||||
#Check if we should generate man pages
|
#Check if we should generate man pages
|
||||||
if test "$enable_man" != "no"; then
|
if test "$enable_man" != "no"; then
|
||||||
@ -85,7 +91,6 @@ if test "$with_docs" != "no"; then
|
|||||||
AC_SUBST(ENABLE_TEX, NO)
|
AC_SUBST(ENABLE_TEX, NO)
|
||||||
AM_CONDITIONAL(BUILD_TEX, [test "$enable_tex" != "no"])
|
AM_CONDITIONAL(BUILD_TEX, [test "$enable_tex" != "no"])
|
||||||
fi
|
fi
|
||||||
fi
|
|
||||||
|
|
||||||
# Checks for library functions.
|
# Checks for library functions.
|
||||||
AC_FUNC_MALLOC
|
AC_FUNC_MALLOC
|
||||||
|
Loading…
Reference in New Issue
Block a user