From: dlezcano Date: Tue, 4 Nov 2008 22:16:21 +0000 (+0000) Subject: From: Daniel Lezcano X-Git-Tag: lxc_0_5_0~56 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=96950ed0f432f9373ed4081f74ec30f43f539a6a;p=thirdparty%2Flxc.git From: Daniel Lezcano To allow user to properly configure the location of lxcpath (/var/lxc), it should be build based on variable 'localstatedir' instead of 'prefix'. By default, localstatedir=$prefix/var localstatedir can be set by the user during configure: ./configure --localstatedir=/var Signed-off-by: Daniel Lezcano --- diff --git a/src/lxc/Makefile.am b/src/lxc/Makefile.am index c22f75740..fa7e3eccc 100644 --- a/src/lxc/Makefile.am +++ b/src/lxc/Makefile.am @@ -1,5 +1,4 @@ -lxcpath=$(prefix)/var/lxc -INCLUDES= -I$(top_srcdir)/src -DLXCPATH="\"$(lxcpath)\"" +INCLUDES= -I$(top_srcdir)/src -DLXCPATH="\"$(localstatedir)/lxc\"" lib_LTLIBRARIES = liblxc.la pkginclude_HEADERS = \ monitor.h \ @@ -127,4 +126,4 @@ install-exec-local: echo "* and you will need to run them as 'root' yourself. *" && \ echo "* *" && \ echo "*****************************************************************" && \ - echo && echo) \ No newline at end of file + echo && echo)