git.samba.org
/
amitay
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a0e5f91
)
Prevent prefix=/usr being used without --with-fhs.
author
Matthias Dieter Wallnoefer
<mwallnoefer@yahoo.de>
Thu, 18 Sep 2008 16:40:47 +0000
(18:40 +0200)
committer
Jelmer Vernooij
<jelmer@samba.org>
Thu, 18 Sep 2008 16:40:47 +0000
(18:40 +0200)
source4/build/m4/check_path.m4
patch
|
blob
|
history
diff --git
a/source4/build/m4/check_path.m4
b/source4/build/m4/check_path.m4
index c45a80363375335eb63bb891d1981a31cf7fd4dd..51d5daa913d4149a0d06992f50d94d69b2f78ce1 100644
(file)
--- a/
source4/build/m4/check_path.m4
+++ b/
source4/build/m4/check_path.m4
@@
-23,6
+23,11
@@
winbindd_socket_dir="${localstatedir}/run/winbindd"
winbindd_privileged_socket_dir="${localstatedir}/lib/winbindd_privileged"
ntp_signd_socket_dir="${localstatedir}/run/ntp_signd"
+# Check to prevent installing directly under /usr without the FHS
+AS_IF([test ${prefix} == /usr],[
+ AC_MSG_ERROR([Don't install directly under "/usr" without using the FHS option (--with-fhs). This could lead to file loss!])
+])
+
AC_ARG_WITH(fhs,
[AS_HELP_STRING([--with-fhs],[Use FHS-compliant paths (default=no)])],
lockdir="${localstatedir}/lib/samba"