chiark
/
gitweb
/
~mdw
/
misc
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Release 1.3.1.
[misc]
/
configure.ac
diff --git
a/configure.ac
b/configure.ac
index 2ee58af647b876dded1e6ac76d1cfdbc2df8eeae..97e1c30bf889fd28300e1ce5447cc265cc804329 100644
(file)
--- a/
configure.ac
+++ b/
configure.ac
@@
-31,6
+31,16
@@
AC_CONFIG_AUX_DIR([config])
AM_INIT_AUTOMAKE([foreign])
mdw_SILENT_RULES
AM_INIT_AUTOMAKE([foreign])
mdw_SILENT_RULES
+AC_ARG_WITH([logdir],
+ AS_HELP_STRING([--with-logdir=DIR],
+ [Write log files here.]),
+ [logdir=$withval],
+ [logdir=/var/log
+ for i in /var/log /var/adm; do
+ if test -d $i; then logdir=$i; break; fi
+ done])
+AC_SUBST(logdir)
+
AC_CANONICAL_HOST
dnl--------------------------------------------------------------------------
AC_CANONICAL_HOST
dnl--------------------------------------------------------------------------
@@
-49,9
+59,6
@@
LIBS=$OLIBS
AC_CHECK_LIB([cdb], [cdb_seek], [have_cdb=yes], [have_cdb=no])
AM_CONDITIONAL([HAVE_LIBCDB], [test $have_cdb = yes])
AC_CHECK_LIB([cdb], [cdb_seek], [have_cdb=yes], [have_cdb=no])
AM_CONDITIONAL([HAVE_LIBCDB], [test $have_cdb = yes])
-AC_CHECK_LIB([spamc], [message_filter], [have_spamc=yes], [have_spamc=no])
-AM_CONDITIONAL([HAVE_LIBSPAMC], [test $have_spamc = yes])
-
## Packages.
PKG_CHECK_MODULES([mLib], [mLib >= 2.0.4], [have_mLib=yes], [have_mLib=no])
AM_CONDITIONAL([HAVE_MLIB], [test $have_mLib = yes])
## Packages.
PKG_CHECK_MODULES([mLib], [mLib >= 2.0.4], [have_mLib=yes], [have_mLib=no])
AM_CONDITIONAL([HAVE_MLIB], [test $have_mLib = yes])
@@
-65,7
+72,7
@@
AC_CHECK_FUNC([prlimit], [have_prlimit=yes], [have_prlimit=no])
AM_CONDITIONAL([HAVE_PRLIMIT], [test $have_prlimit = yes])
## Processor type.
AM_CONDITIONAL([HAVE_PRLIMIT], [test $have_prlimit = yes])
## Processor type.
-case "$host_cpu" in i?86) x86=yes;; *) x86=no;; esac
+case "$host_cpu" in i?86
| x86_64
) x86=yes;; *) x86=no;; esac
AM_CONDITIONAL([X86], [test $x86 = yes -a $GCC = yes])
dnl--------------------------------------------------------------------------
AM_CONDITIONAL([X86], [test $x86 = yes -a $GCC = yes])
dnl--------------------------------------------------------------------------
@@
-84,9
+91,8
@@
AC_PATH_PROGS([PERL], [perl perl5], [false])
AX_PROG_PERL_VERSION([5.004], [have_perl=yes], [have_perl=no])
AM_CONDITIONAL([HAVE_PERL], [test $have_perl = yes])
AX_PROG_PERL_VERSION([5.004], [have_perl=yes], [have_perl=no])
AM_CONDITIONAL([HAVE_PERL], [test $have_perl = yes])
-AC_ARG_WITH(
- [perlmoddir],
- AS_HELP_STRING([--perlmoddir=DIR],
+AC_ARG_WITH([perlmoddir],
+ AS_HELP_STRING([--with-perlmoddir=DIR],
[Install Perl modules here.]),
[perlmoddir=$withval],
[perlmoddir='${libdir}/site_perl'])
[Install Perl modules here.]),
[perlmoddir=$withval],
[perlmoddir='${libdir}/site_perl'])