Mercurial > noffle
comparison configure.in @ 217:b4f1731a6470 noffle
[svn] * Makefile.in,aclocal.m4,config.h.in,configure,configure.in
docs/Makefile.in,src/Makefile.in: Regularise format of Noffle
default parameters in configure.in and regenerate.
author | bears |
---|---|
date | Thu, 22 Nov 2001 22:25:12 +0000 |
parents | 79e324213734 |
children | 9fb4b7d7e64b |
comparison
equal
deleted
inserted
replaced
216:a652fc5b7ced | 217:b4f1731a6470 |
---|---|
139 fi | 139 fi |
140 | 140 |
141 | 141 |
142 # [ This is adapted from mutt. ] | 142 # [ This is adapted from mutt. ] |
143 AC_ARG_WITH(docdir, | 143 AC_ARG_WITH(docdir, |
144 [ --with-docdir=PATH specify where to put the documentation], | 144 [ --with-docdir=DIR other documentation [PREFIX/doc/noffle]], |
145 [noffle_cv_docdir=$withval], | 145 [noffle_cv_docdir=$withval], |
146 [ AC_CACHE_CHECK(where to put the documentation, noffle_cv_docdir, | 146 [ AC_CACHE_CHECK(other documentation directory, noffle_cv_docdir, |
147 [if test x$prefix = xNONE; then | 147 [if test x$prefix = xNONE; then |
148 noffle_cv_prefix=$ac_default_prefix | 148 noffle_cv_prefix=$ac_default_prefix |
149 else | 149 else |
150 noffle_cv_prefix=$prefix | 150 noffle_cv_prefix=$prefix |
151 fi | 151 fi |
154 ]) | 154 ]) |
155 | 155 |
156 dnl check where to put the spooldir - taken from leafnode 2.0beta. | 156 dnl check where to put the spooldir - taken from leafnode 2.0beta. |
157 AC_MSG_CHECKING(spooldir) | 157 AC_MSG_CHECKING(spooldir) |
158 AC_ARG_WITH(spooldir, | 158 AC_ARG_WITH(spooldir, |
159 [ --with-spooldir=PATH news spool directory (/var/spool/noffle)], | 159 [ --with-spooldir=DIR news spool directory [/var/spool/noffle]], |
160 if echo "$withval" | egrep >/dev/null -v '^/' ; then | 160 if echo "$withval" | egrep >/dev/null -v '^/' ; then |
161 AC_MSG_ERROR(you must give an absolute path) | 161 AC_MSG_ERROR(you must give an absolute path) |
162 fi | 162 fi |
163 withval=`echo "$withval" | sed 'sx/*$xx;'` | 163 withval=`echo "$withval" | sed 'sx/*$xx;'` |
164 , | 164 , |
170 AC_SUBST(SPOOLDIR) | 170 AC_SUBST(SPOOLDIR) |
171 | 171 |
172 dnl check where to put the config file | 172 dnl check where to put the config file |
173 AC_MSG_CHECKING(configfile) | 173 AC_MSG_CHECKING(configfile) |
174 AC_ARG_WITH(configfile, | 174 AC_ARG_WITH(configfile, |
175 [ --with-configfile=PATH configuration file (/etc/noffle.conf)], | 175 [ --with-configfile=FILE configuration file [/etc/noffle.conf]], |
176 if echo "$withval" | egrep >/dev/null -v '^/' ; then | 176 if echo "$withval" | egrep >/dev/null -v '^/' ; then |
177 AC_MSG_ERROR(you must give an absolute path) | 177 AC_MSG_ERROR(you must give an absolute path) |
178 fi | 178 fi |
179 withval=`echo "$withval" | sed 'sx/*$xx;'` | 179 withval=`echo "$withval" | sed 'sx/*$xx;'` |
180 , | 180 , |