diff options
author | Josh Coalson <jcoalson@users.sourceforce.net> | 2004-07-30 00:46:39 +0000 |
---|---|---|
committer | Josh Coalson <jcoalson@users.sourceforce.net> | 2004-07-30 00:46:39 +0000 |
commit | 90e5716b012f655ed732ed1464d31de7744dbc47 (patch) | |
tree | 557277925bbdb37203511a10f4db6c9fb220d79d | |
parent | 4f4beee61eb48cbc1da1f84e5287008f3f3f9f20 (diff) | |
download | flac-90e5716b012f655ed732ed1464d31de7744dbc47.tar.gz |
add checks for docbook2man
-rw-r--r-- | configure.in | 7 | ||||
-rw-r--r-- | man/Makefile.am | 9 |
2 files changed, 16 insertions, 0 deletions
diff --git a/configure.in b/configure.in index 50a71ff6..09b5c714 100644 --- a/configure.in +++ b/configure.in @@ -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]) diff --git a/man/Makefile.am b/man/Makefile.am index c1964085..cdfb46e1 100644 --- a/man/Makefile.am +++ b/man/Makefile.am @@ -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 |