summaryrefslogtreecommitdiff
path: root/dynconfig
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2012-01-18 08:33:37 +0100
committerStefan Metzmacher <metze@samba.org>2012-09-21 16:04:52 +0200
commitae037670b83557d8591c633896186a3634de30cc (patch)
treef1b539a419c23dad80b39c7d7660c6093becbc04 /dynconfig
parent914b02be5a3e7805110f517e39ed9f6fe760c2bc (diff)
downloadsamba-ae037670b83557d8591c633896186a3634de30cc.tar.gz
samba-ae037670b83557d8591c633896186a3634de30cc.tar.bz2
samba-ae037670b83557d8591c633896186a3634de30cc.zip
dynconfig/config.m4: disallow --prefix=/usr and --prefix=/usr/local without --enable-fhs
This matches the waf configure behavior and catches the case where old build scripts try '--with-fhs' instead of '--enable-fhs'. metze
Diffstat (limited to 'dynconfig')
-rw-r--r--dynconfig/config.m44
1 files changed, 4 insertions, 0 deletions
diff --git a/dynconfig/config.m4 b/dynconfig/config.m4
index 842a960cd6..6b5dfdbadd 100644
--- a/dynconfig/config.m4
+++ b/dynconfig/config.m4
@@ -19,6 +19,10 @@ AC_ARG_ENABLE(fhs,
[AS_HELP_STRING([--enable-fhs], [Turn on FHS support (default=no)])])
if test x$enable_fhs != xyes; then
+ if test x"$prefix" = x"/usr" -o x"$prefix" = x"/usr/local"; then
+ AC_MSG_WARN([Don't install directly under /usr or /usr/local without using the FHS option (--enable-fhs)])
+ AC_MSG_ERROR([invalid --prefix=$prefix])
+ fi
MODULESDIR="${libdir}"
INCLUDEDIR="${includedir}"
SETUPDIR="${datadir}/setup"