source: branches/samba-3.2.x/source/m4/check_path.m4@ 201

Last change on this file since 201 was 133, checked in by Paul Smedley, 18 years ago

Update trunk to 3.2.0pre3

File size: 8.3 KB
Line 
1dnl
2dnl Samba3 build environment path checks
3dnl
4dnl Copyright (C) Michael Adam 2008
5dnl
6dnl Released under the GNU General Public License
7dnl http://www.gnu.org/licenses/
8dnl
9
10AC_LIBREPLACE_LOCATION_CHECKS
11
12#################################################
13# Directory handling stuff to support both the
14# legacy SAMBA directories and FHS compliant
15# ones...
16AC_PREFIX_DEFAULT(/usr/local/samba)
17
18rootsbindir="\${SBINDIR}"
19lockdir="\${VARDIR}/locks"
20piddir="\${VARDIR}/locks"
21test "${mandir}" || mandir="\${prefix}/man"
22logfilebase="\${VARDIR}"
23privatedir="\${prefix}/private"
24test "${libdir}" || libdir="\${prefix}/lib"
25pammodulesdir="\${LIBDIR}/security"
26configdir="\${LIBDIR}"
27swatdir="\${prefix}/swat"
28codepagedir="\${LIBDIR}"
29statedir="\${LOCKDIR}"
30cachedir="\${LOCKDIR}"
31
32AC_ARG_WITH(fhs,
33[AS_HELP_STRING([--with-fhs],[Use FHS-compliant paths (default=no)])],
34[ case "$withval" in
35 yes)
36 lockdir="\${VARDIR}/lib/samba"
37 piddir="\${VARDIR}/run"
38 mandir="\${prefix}/share/man"
39 logfilebase="\${VARDIR}/log/samba"
40 privatedir="\${CONFIGDIR}/private"
41 test "${libdir}" || libdir="\${prefix}/lib/samba"
42 configdir="\${sysconfdir}/samba"
43 swatdir="\${DATADIR}/samba/swat"
44 codepagedir="\${LIBDIR}"
45 statedir="\${VARDIR}/lib/samba"
46 cachedir="\${VARDIR}/lib/samba"
47 AC_DEFINE(FHS_COMPATIBLE, 1, [Whether to use fully FHS-compatible paths])
48 ;;
49 esac])
50
51#################################################
52# set private directory location
53AC_ARG_WITH(privatedir,
54[AS_HELP_STRING([--with-privatedir=DIR], [Where to put smbpasswd ($ac_default_prefix/private)])],
55[ case "$withval" in
56 yes|no)
57 #
58 # Just in case anybody calls it without argument
59 #
60 AC_MSG_WARN([--with-privatedir called without argument - will use default])
61 ;;
62 * )