doxygen support for autotools (patch from Christian Hamar <krics@linuxforum.hu>
This commit is contained in:
parent
4aff153d7b
commit
48cc9f3beb
|
@ -24,6 +24,7 @@ rm -rf doc/Makefile
|
|||
rm -rf doc/Makefile.in
|
||||
rm -rf doc/html/*
|
||||
rm -rf doc/*.8
|
||||
rm -rf doc/man3/*
|
||||
rm -rf compile
|
||||
rm -rf libtool
|
||||
rm -rf scripts/.deps/
|
||||
|
|
28
configure.ac
28
configure.ac
|
@ -57,6 +57,11 @@ AC_ARG_ENABLE(fakeroot,
|
|||
AC_HELP_STRING([--disable-fakeoot], [Disable fakeroot proof support]),
|
||||
[fakeroot=$enableval], [fakeroot=yes])
|
||||
|
||||
dnl Help line for doxygen
|
||||
AC_ARG_ENABLE(doxygen,
|
||||
AC_HELP_STRING([--disable-doxygen], [Build API docs via Doxygen]),
|
||||
[wantdoxygen=$enableval], [wantdoxygen=yes])
|
||||
|
||||
dnl Check for man2html binary
|
||||
AC_MSG_CHECKING(for support man2html)
|
||||
if test x$wantman2html = xyes ; then
|
||||
|
@ -75,6 +80,27 @@ else
|
|||
AC_MSG_RESULT(not requested by configure)
|
||||
fi
|
||||
|
||||
dnl Check for doxygen support
|
||||
AC_MSG_CHECKING(for support Doxygen)
|
||||
if test x$wantdoxygen = xyes ; then
|
||||
AC_CHECK_PROGS([DOXYGEN], [doxygen] [doxygen binary])
|
||||
AM_CONDITIONAL(HAS_DOXYGEN, test $DOXYGEN)
|
||||
if test $DOXYGEN ; then
|
||||
AC_DEFINE([HAS_DOXYGEN], [TRUE], [Enabled Doxygen Support])
|
||||
AC_MSG_RESULT(yes)
|
||||
DOXYSTATUS="yes, path: `which $DOXYGEN`"
|
||||
else
|
||||
AC_DEFINE([HAS_DOXYGEN], [FALSE], [Disabled Doxygen support])
|
||||
AC_MSG_RESULT(no, doxygen missing)
|
||||
DOXYSTATUS="doxygen binary not found"
|
||||
fi
|
||||
else
|
||||
AM_CONDITIONAL(HAS_DOXYGEN, test $DOXYGEN)
|
||||
AC_DEFINE([HAS_DOXYGEN], [FALSE], [Not specified at configure line])
|
||||
AC_MSG_RESULT(not requested by configure)
|
||||
DOXYSTATUS="disabled by configure"
|
||||
fi
|
||||
|
||||
dnl Enable or disable Warning FLAGS during compile
|
||||
AC_MSG_CHECKING(for more compiler warnings)
|
||||
if test "$GCC" = "yes" -a "$set_more_warnings" != "no"; then
|
||||
|
@ -165,4 +191,6 @@ pacman-$VERSION:
|
|||
libalpm version: ${PM_VERSION}
|
||||
|
||||
debug support: ${debug}
|
||||
|
||||
Doxygen support : ${DOXYSTATUS}
|
||||
"
|
||||
|
|
|
@ -17,4 +17,9 @@ clean:
|
|||
rm -rf html/*
|
||||
|
||||
man_MANS: pacman.8 makepkg.8 libalpm.3
|
||||
|
||||
if HAS_DOXYGEN
|
||||
man_MANS += man3/*.3
|
||||
endif
|
||||
|
||||
EXTRA_DIST = $(man_MANS)
|
||||
|
|
|
@ -31,3 +31,12 @@ include_HEADERS = alpm.h
|
|||
libalpm_la_SOURCES = $(TARGETS)
|
||||
|
||||
libalpm_la_LDFLAGS = -no-undefined -version-info $(PM_VERSION_INFO)
|
||||
|
||||
if HAS_DOXYGEN
|
||||
all: doxygen.in
|
||||
|
||||
doxygen.in:
|
||||
doxygen Doxyfile
|
||||
|
||||
endif
|
||||
|
||||
|
|
Loading…
Reference in New Issue