summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorfukachan <fukachan>2001-11-17 14:51:31 +0000
committerfukachan <fukachan>2001-11-17 14:51:31 +0000
commit67504d803460c77cb52433ac094da3c7fcebb894 (patch)
tree6acc3a162b01d0556625af684d4e78c92a567b98
parentb5db5fc3e1d68dfab93494c6891c4d384e26f664 (diff)
downloadfml8-67504d803460c77cb52433ac094da3c7fcebb894.tar.gz
fml8-67504d803460c77cb52433ac094da3c7fcebb894.tar.bz2
fml8-67504d803460c77cb52433ac094da3c7fcebb894.zip
--with-mlspooldir=DIR use DIR instead of /var/spool/ml
--with-fml-owner=USER use USER instead of fml
-rwxr-xr-xconfig.sh.in7
-rwxr-xr-xconfigure30
-rw-r--r--configure.in16
3 files changed, 47 insertions, 6 deletions
diff --git a/config.sh.in b/config.sh.in
index a81f1319..7179baac 100755
--- a/config.sh.in
+++ b/config.sh.in
@@ -4,7 +4,7 @@
# All rights reserved. This program is free software; you can
# redistribute it and/or modify it under the same terms as Perl itself.
#
-# $FML: config.sh.in,v 1.1 2001/11/12 13:38:15 fukachan Exp $
+# $FML: config.sh.in,v 1.2 2001/11/12 23:46:39 fukachan Exp $
#
@@ -27,8 +27,9 @@ lib_dir=@libdir@/fml
# ml spool
-ml_spool_dir=/var/spool/ml
+ml_spool_dir=@mlspooldir@
# owner of /var/spool/ml
-owner=fml
+owner=@fml_owner@
+
diff --git a/configure b/configure
index f16a5f88..fd39bdb0 100755
--- a/configure
+++ b/configure
@@ -13,6 +13,10 @@
ac_help=
ac_default_prefix=/usr/local
# Any additions from configure.in:
+ac_help="$ac_help
+ --with-mlspooldir=DIR use DIR instead of /var/spool/ml"
+ac_help="$ac_help
+ --with-fml-owner=USER use USER instead of fml"
# Initialize some variables set by options.
# The variables have the same names as the options, with
@@ -534,7 +538,7 @@ do
# Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
-echo "configure:538: checking for $ac_word" >&5
+echo "configure:542: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_prog_have_perl'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
@@ -569,7 +573,7 @@ fi
# Extract the first word of "perl", so it can be a program name with args.
set dummy perl; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
-echo "configure:573: checking for $ac_word" >&5
+echo "configure:577: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_path_PERL'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
@@ -602,6 +606,26 @@ else
fi
+mlspooldir=/var/spool/ml
+# Check whether --with-mlspooldir or --without-mlspooldir was given.
+if test "${with_mlspooldir+set}" = set; then
+ withval="$with_mlspooldir"
+ mlspooldir=$withval
+fi
+
+
+
+
+fml_owner=fml
+# Check whether --with-fml_owner or --without-fml_owner was given.
+if test "${with_fml_owner+set}" = set; then
+ withval="$with_fml_owner"
+ fml_owner=$withval
+fi
+
+
+
+
trap '' 1 2 15
@@ -760,6 +784,8 @@ s%@infodir@%$infodir%g
s%@mandir@%$mandir%g
s%@have_perl@%$have_perl%g
s%@PERL@%$PERL%g
+s%@mlspooldir@%$mlspooldir%g
+s%@fml_owner@%$fml_owner%g
CEOF
EOF
diff --git a/configure.in b/configure.in
index e47bfc5b..63910a9a 100644
--- a/configure.in
+++ b/configure.in
@@ -1,5 +1,5 @@
dnl
-dnl $FML$
+dnl $FML: configure.in,v 1.4 2001/11/17 14:22:17 fukachan Exp $
dnl
AC_REVISION($Revision$)
@@ -19,6 +19,20 @@ if test ! -n "$have_perl" ; then
fi
AC_PATH_PROG(PERL, perl)
+mlspooldir=/var/spool/ml
+AC_ARG_WITH(mlspooldir,
+[ --with-mlspooldir=DIR use DIR instead of /var/spool/ml],
+ mlspooldir=$withval)
+AC_SUBST(mlspooldir)
+
+
+fml_owner=fml
+AC_ARG_WITH(fml_owner,
+[ --with-fml-owner=USER use USER instead of fml],
+ fml_owner=$withval)
+AC_SUBST(fml_owner)
+
+
AC_SUBST(SHELL)
AC_OUTPUT(\