From 460f1d0a1a06e68c56e4265cb00dc86d4d194f78 Mon Sep 17 00:00:00 2001 From: infirit Date: Sun, 13 Sep 2015 13:26:17 +0200 Subject: Restore --enable-examples and fix Makefile.am --- configure.ac | 4 ++++ polkitgtkmate/Makefile.am | 2 ++ 2 files changed, 6 insertions(+) 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) -- cgit v1.2.1