From: Jeremy Kerr Date: Wed, 19 Jun 2013 07:28:22 +0000 (+0800) Subject: Add pkgsysconfdir X-Git-Tag: v1.0.0~571 X-Git-Url: https://git.ozlabs.org/?p=petitboot;a=commitdiff_plain;h=56294d02a1422a3e83d2507c462ce53091135fa1 Add pkgsysconfdir We'll need a sysconf dir to store the boot hooks. Signed-off-by: Jeremy Kerr --- diff --git a/configure.ac.in b/configure.ac.in index 1d6703b..51cfdb8 100644 --- a/configure.ac.in +++ b/configure.ac.in @@ -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([ diff --git a/discover/Makefile.am b/discover/Makefile.am index a449818..0feb3e5 100644 --- a/discover/Makefile.am +++ b/discover/Makefile.am @@ -12,11 +12,14 @@ # 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