diff options
author | infirit <[email protected]> | 2015-09-13 13:26:17 +0200 |
---|---|---|
committer | infirit <[email protected]> | 2015-09-13 13:26:17 +0200 |
commit | 460f1d0a1a06e68c56e4265cb00dc86d4d194f78 (patch) | |
tree | 69ee1f408d75f3b6a4d5eaaa28993cecc9ac10ec | |
parent | 7ffd66a7e52ec1cc899755176af340b0af699ed4 (diff) | |
download | mate-polkit-460f1d0a1a06e68c56e4265cb00dc86d4d194f78.tar.bz2 mate-polkit-460f1d0a1a06e68c56e4265cb00dc86d4d194f78.tar.xz |
Restore --enable-examples and fix Makefile.am
-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) |