aboutsummaryrefslogtreecommitdiffstats
path: root/config/user.m4
diff options
context:
space:
mode:
authorChris Dunlap <[email protected]>2014-01-06 16:15:45 -0800
committerBrian Behlendorf <[email protected]>2014-03-31 16:11:13 -0700
commit07917db9908516aa3fd55d39d2c1792aca8bebcd (patch)
tree16f130e7e36fe8d7e579e60c1830aa6fadce74e5 /config/user.m4
parent9b101a73203faecdc6d466fe446d787bc341ee14 (diff)
Add defs for makefile installation dir vars
Add macro definitions to AM_CPPFLAGS to propagate makefile installation directory variables for libexecdir, runstatedir, sbindir, and sysconfdir. https://www.gnu.org/software/autoconf/manual/autoconf-2.69/html_node/Installation-Directory-Variables.html A corollary is that you should not use these variables except in makefiles. For instance, instead of trying to evaluate datadir in configure and hard-coding it in makefiles using e.g., 'AC_DEFINE_UNQUOTED([DATADIR], ["$datadir"], [Data directory.])', you should add -DDATADIR='$(datadir)' to your makefile's definition of CPPFLAGS (AM_CPPFLAGS if you are also using Automake). The runstatedir directory is for "installing data files which the programs modify while they run, that pertain to one specific machine, and which need not persist longer than the execution of the program". https://www.gnu.org/prep/standards/html_node/Directory-Variables.html It will be defined by autoconf 2.70 or later, and default to "$(localstatedir)/run". http://git.savannah.gnu.org/gitweb/?p=autoconf.git;a=commit;h=a197431414088a417b407b9b20583b2e8f7363bd Signed-off-by: Chris Dunlap <[email protected]> Signed-off-by: Brian Behlendorf <[email protected]> Issue #2
Diffstat (limited to 'config/user.m4')
-rw-r--r--config/user.m41
1 files changed, 1 insertions, 0 deletions
diff --git a/config/user.m4 b/config/user.m4
index da1cdea33..6c127820c 100644
--- a/config/user.m4
+++ b/config/user.m4
@@ -12,4 +12,5 @@ AC_DEFUN([ZFS_AC_CONFIG_USER], [
ZFS_AC_CONFIG_USER_LIBUUID
ZFS_AC_CONFIG_USER_LIBBLKID
ZFS_AC_CONFIG_USER_FRAME_LARGER_THAN
+ ZFS_AC_CONFIG_USER_RUNSTATEDIR
])