comparison configure.ac @ 421:f37384470855

Changed lockdir to /var/lock/masqmail; Create lockdir and piddir on startup. Moved the lockdir out of the spool dir. (When /var/lock is a ramdisk we do well to have the lock files there.) Added the new configure option --with-lockdir to change that location. Nontheless, if we run_as_user, then lock files are always stored in the spool dir directly. Instead of installing the lockdir and piddir at installation time, we create them on startup time now if they are missing. This is necessary if lockdir or piddir are a tmpfs.
author markus schnalke <meillo@marmaro.de>
date Wed, 30 May 2012 09:38:38 +0200
parents d209b4846f2b
children bdbedce60247
comparison
equal deleted inserted replaced
420:09da6e72cd30 421:f37384470855
195 with_piddir='/var/run' 195 with_piddir='/var/run'
196 ) 196 )
197 AC_DEFINE_UNQUOTED(PID_DIR, "${with_piddir}", [The pid file location]) 197 AC_DEFINE_UNQUOTED(PID_DIR, "${with_piddir}", [The pid file location])
198 AC_SUBST(with_piddir) 198 AC_SUBST(with_piddir)
199 199
200 dnl dir for lock files
201 AC_ARG_WITH(lockdir,
202 [ --with-lockdir=DIR directory for lock files [/var/lock/masqmail]],
203 ,
204 with_lockdir='/var/lock/masqmail'
205 )
206 AC_DEFINE_UNQUOTED(LOCK_DIR, "${with_lockdir}", [The lock file location])
207 AC_SUBST(with_lockdir)
208
200 test "x$prefix" = xNONE && prefix="$ac_default_prefix" 209 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
201 210
202 dnl well, /me/ thought that autoconf should make things _easy_ ... -- oku 211 dnl well, /me/ thought that autoconf should make things _easy_ ... -- oku
203 dnl I needed the two `eval's to get the variable expanded in all cases -- meillo 212 dnl I needed the two `eval's to get the variable expanded in all cases -- meillo
204 dnl this is just horrible! -- meillo 213 dnl this is just horrible! -- meillo