Add pkgsysconfdir
authorJeremy Kerr <jk@ozlabs.org>
Wed, 19 Jun 2013 07:28:22 +0000 (15:28 +0800)
committerJeremy Kerr <jk@ozlabs.org>
Mon, 24 Jun 2013 05:07:58 +0000 (13:07 +0800)
We'll need a sysconf dir to store the boot hooks.

Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
configure.ac.in
discover/Makefile.am

index 1d6703b0c4f27e679fd0074b8d063b6dbb7dba3d..51cfdb8d8a444b63831b31a8f46f748388dfdb9c 100644 (file)
@@ -219,6 +219,7 @@ AS_IF(
 
 AC_SUBST([LIBTOOL_DEPS])
 AC_SUBST([DESTDIR])
+AC_SUBST([pkgsysconfdir], ["${sysconfdir}/${package}"])
 
 AC_CONFIG_HEADERS([config.h])
 AC_CONFIG_FILES([
index a4498187170fd66a6d2e1368093565c433623704..0feb3e5a000d77c47dae0f792006dcd6ad0c8912 100644 (file)
 #  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 #
 
+pkgsysconfdir = @sysconfdir@/@PACKAGE@
+
 AM_CPPFLAGS = -I$(top_srcdir)/lib $(DEFAULT_CPPFLAGS)
 
 AM_CFLAGS = $(DEFAULT_CFLAGS)  \
        -DPREFIX='"$(prefix)"' \
        -DPKG_SHARE_DIR='"$(pkgdatadir)"' \
+       -DPKG_SYSCONF_DIR='"$(pkgsysconfdir)"' \
        -DLOCAL_STATE_DIR='"$(localstatedir)"'
 
 noinst_LIBRARIES = libparser.o