Skip to content

Commit

Permalink
man: conditionally build man page
Browse files Browse the repository at this point in the history
ronn is not exactly in coreutils, so it seems silly to fail the build
if it is missing.
  • Loading branch information
wkz committed May 14, 2019
1 parent 1fa6fa4 commit fcbb095
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Makefile.am
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
SUBDIRS = include lib man src
if HAVE_RONN
MAN_DIR = man
endif

SUBDIRS = include lib $(MAN_DIR) src
doc_DATA = README.md COPYING
EXTRA_DIST = CHANGELOG.md README.md
DISTCLEANFILES = *~ *.d
Expand Down
3 changes: 3 additions & 0 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@ AC_PROG_LEX
AC_PROG_YACC
AM_PROG_LIBTOOL

AC_CHECK_PROG(HAVE_RONN,ronn,yes)
AM_CONDITIONAL(HAVE_RONN, test "$HAVE_RONN" = "yes")

AC_HEADER_STDC
AC_CHECK_HEADERS(linux/bpf.h linux/perf_event.h linux/version.h)

Expand Down

0 comments on commit fcbb095

Please sign in to comment.