add checks for docbook2man
This commit is contained in:
parent
4f4beee61e
commit
90e5716b01
@ -311,6 +311,12 @@ if test -n "$DOXYGEN" ; then
|
||||
AC_DEFINE(FLAC__HAS_DOXYGEN)
|
||||
fi
|
||||
|
||||
AC_CHECK_PROGS(DOCBOOK_TO_MAN, docbook-to-man docbook2man)
|
||||
AM_CONDITIONAL(FLaC__HAS_DOCBOOK_TO_MAN, test -n "$DOCBOOK_TO_MAN")
|
||||
if test -n "$DOCBOOK_TO_MAN" ; then
|
||||
AC_DEFINE(FLAC__HAS_DOCBOOK_TO_MAN)
|
||||
fi
|
||||
|
||||
AC_CHECK_PROGS(NASM, nasm)
|
||||
AM_CONDITIONAL(FLaC__HAS_NASM, test -n "$NASM")
|
||||
if test -n "$NASM" ; then
|
||||
@ -337,6 +343,7 @@ AH_TEMPLATE(FLAC__CPU_SPARC, [define if building for SPARC])
|
||||
AH_TEMPLATE(FLAC__EXHAUSTIVE_TESTS, [define to run even more tests])
|
||||
AH_TEMPLATE(FLAC__VALGRIND_TESTING, [define to enable use of Valgrind in testers])
|
||||
AH_TEMPLATE(FLAC__HAS_DOXYGEN, [define if you have Doxygen])
|
||||
AH_TEMPLATE(FLAC__HAS_DOCBOOK_TO_MAN, [define if you have docbook-to-man or docbook2man])
|
||||
AH_TEMPLATE(FLAC__HAS_ID3LIB, [define if you have the id3lib library])
|
||||
AH_TEMPLATE(FLAC__HAS_NASM, [define if you have the NASM assembler])
|
||||
AH_TEMPLATE(FLAC__HAS_OGG, [define if you have the ogg library])
|
||||
|
@ -15,11 +15,20 @@
|
||||
# along with this program; if not, write to the Free Software
|
||||
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||
|
||||
if FLaC__HAS_DOCBOOK_TO_MAN
|
||||
flac.1: flac.sgml
|
||||
docbook-to-man $? > $@ || (docbook2man $? && mv FLAC.1 $@)
|
||||
|
||||
metaflac.1: metaflac.sgml
|
||||
docbook-to-man $? > $@ || (docbook2man $? && mv METAFLAC.1 $@)
|
||||
else
|
||||
flac.1:
|
||||
echo "*** Warning: docbook-to-man not found; man pages will not be built."
|
||||
touch $@
|
||||
|
||||
metaflac.1:
|
||||
touch $@
|
||||
endif
|
||||
|
||||
man_MANS = flac.1 metaflac.1
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user