diff options
author | Sami Kerola | 2012-06-23 07:05:14 +0200 |
---|---|---|
committer | Karel Zak | 2012-07-10 12:56:46 +0200 |
commit | 07a16b9d1e5a48550a0d19abb9a900853433ffa2 (patch) | |
tree | 580c7c566bd7d05ff6c0f29f95a92880bdd61171 /configure.ac | |
parent | utmpdump: cleanup file descriptor usage (diff) | |
download | kernel-qcow2-util-linux-07a16b9d1e5a48550a0d19abb9a900853433ffa2.tar.gz kernel-qcow2-util-linux-07a16b9d1e5a48550a0d19abb9a900853433ffa2.tar.xz kernel-qcow2-util-linux-07a16b9d1e5a48550a0d19abb9a900853433ffa2.zip |
build-sys: change --localstatedir to /run
Enable user to define where run state files are wrote. Default for
these files is /run. See reference for rationale why /var/run is no
longer the default.
Reference: http://lists.fedoraproject.org/pipermail/devel/2011-March/150031.html
CC: Mike Frysinger <vapier@gentoo.org>
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index 400576833..a86d42e53 100644 --- a/configure.ac +++ b/configure.ac @@ -60,6 +60,21 @@ NONE:NONE | NONE:/usr | /usr:*) esac ;; esac +case $prefix:$localstatedir in + NONE:'${prefix}/var') + localstatedir=/run + AC_MSG_NOTICE([ --localstatedir defaults to /run]) + ;; + *:'${prefix}/var') + localstatedir=${prefix}/run + ;; + NONE:*) + ;; + *:*) + localstatedir=${prefix}/${localstatedir} + ;; +esac + libdirname=`basename "$libdir"` AC_SUBST([libdirname]) |