]> granicus.if.org Git - procps-ng/commitdiff
build-sys: allow packagers to choose what is installed
authorSami Kerola <kerolasa@iki.fi>
Sun, 29 Apr 2012 15:22:29 +0000 (17:22 +0200)
committerCraig Small <csmall@enc.com.au>
Tue, 1 May 2012 12:47:06 +0000 (22:47 +1000)
Distribution maintainers may not want to use upstream example files
in their procps-ng package.

Reference: http://permalink.gmane.org/gmane.linux.arch.devel/17440
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Makefile.am
configure.ac

index 87b88ec087ee29afc5b7abae83bdaf76e5a65446..ec2f12af1258a067beb6c2bb0879534179cadbbb 100644 (file)
@@ -84,7 +84,9 @@ uptime_SOURCES = uptime.c $(top_srcdir)/lib/fileutils.c
 vmstat_SOURCES = vmstat.c $(top_srcdir)/lib/strutils.c $(top_srcdir)/lib/fileutils.c
 w_SOURCES = w.c $(top_srcdir)/lib/fileutils.c
 
+if EXAMPLE_FILES
 sysconf_DATA = sysctl.conf
+endif
 
 EXTRA_DIST = \
        autogen.sh \
index a493fa8f4e7b695955c8ad3d61c66ae409fc3280..e3f701bc17b77521db4b7ab79d5d55f648bfeeb7 100644 (file)
@@ -187,6 +187,12 @@ AC_ARG_ENABLE([skill],
 )
 AM_CONDITIONAL(BUILD_SKILL, test "x$build_skill" = xyes)
 
+AC_ARG_ENABLE([examples],
+  AS_HELP_STRING([--enable-examples], [add example files to installation]),
+  [], enable_examples=no
+)
+AM_CONDITIONAL(EXAMPLE_FILES, test "x$enable_examples" = xyes)
+
 AC_ARG_ENABLE([oomem],
   AS_HELP_STRING([--enable-oomem], [add out-of-memory fields to the library and top]),
   [], enable_oomem=no