From 5294b7d8cc011f8b5e068aad744f612df7414a82 Mon Sep 17 00:00:00 2001 From: "Richard W.M. Jones" Date: Sat, 31 Oct 2015 13:24:52 +0000 Subject: [PATCH 1/3] Add mandir to --dump-config output. This is useful for external plugins that want to install a man page. --- src/Makefile.am | 1 + src/main.c | 1 + 2 files changed, 2 insertions(+) diff --git a/src/Makefile.am b/src/Makefile.am index c0fb95a..fb46903 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -50,6 +50,7 @@ nbdkit_SOURCES = \ nbdkit_CPPFLAGS = \ -Dbindir=\"$(bindir)\" \ -Dlibdir=\"$(libdir)\" \ + -Dmandir=\"$(mandir)\" \ -Dplugindir=\"$(plugindir)\" \ -Dsbindir=\"$(sbindir)\" \ -Dsysconfdir=\"$(sysconfdir)\" \ diff --git a/src/main.c b/src/main.c index cd676c0..1248a8e 100644 --- a/src/main.c +++ b/src/main.c @@ -129,6 +129,7 @@ dump_config (void) { printf ("%s=%s\n", "bindir", bindir); printf ("%s=%s\n", "libdir", libdir); + printf ("%s=%s\n", "mandir", mandir); printf ("%s=%s\n", "name", PACKAGE_NAME); printf ("%s=%s\n", "plugindir", plugindir); printf ("%s=%s\n", "sbindir", sbindir); -- 2.5.0