]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
From: Daniel Lezcano <dlezcano@fr.ibm.com>
authordlezcano <dlezcano>
Tue, 4 Nov 2008 22:16:21 +0000 (22:16 +0000)
committerdlezcano <dlezcano>
Tue, 4 Nov 2008 22:16:21 +0000 (22:16 +0000)
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 <dlezcano@fr.ibm.com>
src/lxc/Makefile.am

index c22f7574076c2535bfc8cec5893ea45408bdf8ab..fa7e3eccc8a04d06ab99463eb9d574c5158ad92d 100644 (file)
@@ -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)