From 9e0c4274336f76dc54d945013c1e9e9680f95fdd Mon Sep 17 00:00:00 2001 From: moritz Date: Thu, 1 Mar 2007 00:10:12 +0000 Subject: [PATCH] Make the example configuration files directory configurable. git-svn-id: https://svn.xiph.org/trunk/ezstream@12594 0101bb08-14d6-0310-b084-bc0e0c8e3800 --- README | 2 ++ configure.in | 11 +++++++++-- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/README b/README index ebaffba..37ba5b7 100644 --- a/README +++ b/README @@ -43,6 +43,8 @@ The ezstream software uses the GNU auto-tools to configure, build and install on a variety of systems. Aside from the standard autoconf options of the configure script, a couple of additional options are available: + --enable-examplesdir=DIR example configuration files installation directory + (default: DATADIR/examples/ezstream) --with-xml-config=PATH use xml-config in PATH to find libxml --with-ogg=PREFIX Prefix where libogg is installed (optional) --with-vorbis=PREFIX Prefix where libvorbis is installed (optional) diff --git a/configure.in b/configure.in index 65ce3c5..75394aa 100644 --- a/configure.in +++ b/configure.in @@ -12,8 +12,15 @@ AC_USE_SYSTEM_EXTENSIONS dnl SETUP -dnl XXX This should be made configurable. -EXAMPLES_DIR="\$(datadir)/examples/${PACKAGE}" +EXAMPLES_DIR="\$(datadir)/examples/${PACKAGE_TARNAME}" +AC_ARG_ENABLE(examplesdir, + AS_HELP_STRING([--enable-examplesdir=DIR], + [example configuration files installation directory (default: DATADIR/examples/ezstream)]), +[case "$enableval" in + yes) ;; + no) AC_MSG_ERROR([Must have an example configuration files install dir.]) ;; + *) EXAMPLES_DIR="$enableval" ;; +esac], []) AC_SUBST(EXAMPLES_DIR) AC_CANONICAL_HOST