Add support for --enable-exampledir to specify where to place example
files, defaulting to sysconfdir (matching previous behavior).
This is needed to support (cleanly) NetBSD pkgsrc, which requires that
example config files go in $(prefix)/share/examples/pkgname, rather
than in $(prefix)/etc/pkgname.
diff --git a/bgpd/Makefile.am b/bgpd/Makefile.am
index 3559652..9cb3a90 100644
--- a/bgpd/Makefile.am
+++ b/bgpd/Makefile.am
@@ -26,7 +26,8 @@
bgpd_LDADD = ../lib/libzebra.a @LIBCAP@
-dist_sysconf_DATA = bgpd.conf.sample bgpd.conf.sample2
+examplesdir = $(exampledir)
+dist_examples_DATA = bgpd.conf.sample bgpd.conf.sample2
EXTRA_DIST = BGP4-MIB.txt