diff options
-rw-r--r-- | configure.ac | 4 | ||||
-rw-r--r-- | polkitgtkmate/Makefile.am | 2 |
2 files changed, 6 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index 6af9815..b955e41 100644 --- a/configure.ac +++ b/configure.ac @@ -165,7 +165,11 @@ AC_ARG_ENABLE([accountsservice], AM_CONDITIONAL([HAVE_ACCOUNTSSERVICE], [test "x$enable_accountsservice" = xyes]) +AC_ARG_ENABLE([examples], + AC_HELP_STRING([--enable-examples], [Build the example programs]),, + [enable_examples=yes]) +AM_CONDITIONAL(BUILD_EXAMPLES, test "x$enable_examples" = "xyes") # GObject introspection # diff --git a/polkitgtkmate/Makefile.am b/polkitgtkmate/Makefile.am index 706b792..0a543b0 100644 --- a/polkitgtkmate/Makefile.am +++ b/polkitgtkmate/Makefile.am @@ -50,6 +50,7 @@ libpolkit_gtk_mate_1_la_LDFLAGS = -version-info $(LT_CURRENT):$(LT_REVISION):$(L pkgconfigdir = $(libdir)/pkgconfig pkgconfig_DATA = polkit-gtk-mate-1.pc +if BUILD_EXAMPLES noinst_PROGRAMS = example example_SOURCES = example.c @@ -68,6 +69,7 @@ example_LDADD = \ $(INTLLIBS) \ libpolkit-gtk-mate-1.la \ $(NULL) +endif if ENABLE_INTROSPECTION girdir = $(GIRDIR) |