Commit c722ac44 c722ac44a25551e82eadb03b622e1b23d70d8b40 by Sergey Poznyakoff

New configuration options to disable groups of utilities.

* am/enable.m4 (MU_ENABLE_BUILD): Take optional 6th argument.  If
given, append $1 to it.
* configure.ac: New options: --enable-build-servers and
--enable-build-clients.
Print a list of selected utilities at the end of the run.
* README: Document new options.
1 parent fca5c9e3
...@@ -303,8 +303,20 @@ features: ...@@ -303,8 +303,20 @@ features:
303 Disables support for authentication using 303 Disables support for authentication using
304 virtual mail domains. 304 virtual mail domains.
305 305
306 Special options are provided that control whether each particular 306 Mailutils is shipped with a set of various utilities, which are built
307 Mailutils program is built. These are: 307 by default. These utilities fall into two groups:
308
309 a) Server utilities: pop3d, imap4d and comsat.
310 b) Client utilities: frm, maidag, mail, sieve, messages, readmsg,
311 dotlock, movemail mimeview, and MH utilities.
312
313 The following options disable each group:
314
315 --disable-build-servers do not build server utilities
316 --disable-build-clients do not build client utilities
317
318 Each particular program can be disabled using its individual
319 `--disable-build' option:
308 320
309 --disable-build-frm do not build frm 321 --disable-build-frm do not build frm
310 --disable-build-pop3d do not build pop3d 322 --disable-build-pop3d do not build pop3d
...@@ -319,7 +331,7 @@ Mailutils program is built. These are: ...@@ -319,7 +331,7 @@ Mailutils program is built. These are:
319 --disable-build-dotlock do not build dotlock 331 --disable-build-dotlock do not build dotlock
320 --disable-build-movemail do not build movemail 332 --disable-build-movemail do not build movemail
321 --disable-build-mimeview do not build mimeview 333 --disable-build-mimeview do not build mimeview
322 --disable-build-mh do not build mh utilities 334 --disable-build-mh do not build MH utilities
323 335
324 Several environment variables affect the configuration. Currently, 336 Several environment variables affect the configuration. Currently,
325 the only mailutils-specific variable is DEFAULT_CUPS_CONFDIR. It 337 the only mailutils-specific variable is DEFAULT_CUPS_CONFDIR. It
......
...@@ -53,7 +53,7 @@ AC_DEFUN([MU_ENABLE_SUPPORT], [ ...@@ -53,7 +53,7 @@ AC_DEFUN([MU_ENABLE_SUPPORT], [
53 ]) 53 ])
54 54
55 dnl MU_ENABLE_BUILD(feature, [action-if-true], [action-if-false], 55 dnl MU_ENABLE_BUILD(feature, [action-if-true], [action-if-false],
56 dnl [additional-cond], [default-value]) 56 dnl [additional-cond], [default-value], [listvar])
57 AC_DEFUN([MU_ENABLE_BUILD], [ 57 AC_DEFUN([MU_ENABLE_BUILD], [
58 pushdef([mu_upcase],translit($1,[a-z+-],[A-ZX_])) 58 pushdef([mu_upcase],translit($1,[a-z+-],[A-ZX_]))
59 pushdef([mu_cache_var],[mu_cv_enable_build_]translit($1,[+-],[x_])) 59 pushdef([mu_cache_var],[mu_cv_enable_build_]translit($1,[+-],[x_]))
...@@ -73,6 +73,7 @@ AC_DEFUN([MU_ENABLE_BUILD], [ ...@@ -73,6 +73,7 @@ AC_DEFUN([MU_ENABLE_BUILD], [
73 73
74 if test "[$]mu_cache_var" = "yes"; then 74 if test "[$]mu_cache_var" = "yes"; then
75 ifelse([$2],,:,[$2]) 75 ifelse([$2],,:,[$2])
76 ifelse([$6],,,[$6="$[]$6 $1"])
76 ifelse([$3],,,else 77 ifelse([$3],,,else
77 [$3]) 78 [$3])
78 fi 79 fi
......
...@@ -1180,20 +1180,36 @@ dnl *********************************************************************** ...@@ -1180,20 +1180,36 @@ dnl ***********************************************************************
1180 dnl Configure particular utilities 1180 dnl Configure particular utilities
1181 dnl *********************************************************************** 1181 dnl ***********************************************************************
1182 1182
1183 MU_ENABLE_BUILD(frm) 1183 AC_ARG_ENABLE([build-servers],
1184 MU_ENABLE_BUILD(pop3d) 1184 AC_HELP_STRING([--enable-build-servers],
1185 MU_ENABLE_BUILD(imap4d) 1185 [build servers]),
1186 MU_ENABLE_BUILD(comsat) 1186 [mu_build_servers="${enableval}"],
1187 MU_ENABLE_BUILD(maidag) 1187 [mu_build_servers=yes])
1188 MU_ENABLE_BUILD(mail) 1188
1189 MU_ENABLE_BUILD(sieve) 1189 AC_ARG_ENABLE([build-clients],
1190 MU_ENABLE_BUILD(messages) 1190 AC_HELP_STRING([--enable-build-clients],
1191 MU_ENABLE_BUILD(readmsg) 1191 [build client utilities]),
1192 MU_ENABLE_BUILD(dotlock) 1192 [mu_build_clients="${enableval}"],
1193 MU_ENABLE_BUILD(movemail) 1193 [mu_build_clients=yes])
1194 MU_ENABLE_BUILD(mimeview) 1194
1195 1195 server_list=
1196 MU_ENABLE_BUILD(mh,,,["$mu_cv_enable_mh" = yes]) 1196 client_list=
1197
1198 MU_ENABLE_BUILD(pop3d,,,["$mu_build_servers" = yes],,[server_list])
1199 MU_ENABLE_BUILD(imap4d,,,["$mu_build_servers" = yes],,[server_list])
1200 MU_ENABLE_BUILD(comsat,,,["$mu_build_servers" = yes],,[server_list])
1201
1202 MU_ENABLE_BUILD(frm,,,["$mu_build_clients" = yes],,[client_list])
1203 MU_ENABLE_BUILD(maidag,,,["$mu_build_clients" = yes],,[client_list])
1204 MU_ENABLE_BUILD(mail,,,["$mu_build_clients" = yes],,[client_list])
1205 MU_ENABLE_BUILD(sieve,,,["$mu_build_clients" = yes],,[client_list])
1206 MU_ENABLE_BUILD(messages,,,["$mu_build_clients" = yes],,[client_list])
1207 MU_ENABLE_BUILD(readmsg,,,["$mu_build_clients" = yes],,[client_list])
1208 MU_ENABLE_BUILD(dotlock,,,["$mu_build_clients" = yes],,[client_list])
1209 MU_ENABLE_BUILD(movemail,,,["$mu_build_clients" = yes],,[client_list])
1210 MU_ENABLE_BUILD(mimeview,,,["$mu_build_clients" = yes],,[client_list])
1211
1212 MU_ENABLE_BUILD(mh,,,["$mu_build_clients$mu_cv_enable_mh" = yesyes],,[client_list])
1197 1213
1198 AC_SUBST(MH_BIN_DIR) 1214 AC_SUBST(MH_BIN_DIR)
1199 1215
...@@ -1206,6 +1222,8 @@ AC_ARG_WITH([mh-bindir], ...@@ -1206,6 +1222,8 @@ AC_ARG_WITH([mh-bindir],
1206 esac], 1222 esac],
1207 [MH_BIN_DIR='${exec_prefix}/bin/mu-mh']) 1223 [MH_BIN_DIR='${exec_prefix}/bin/mu-mh'])
1208 1224
1225 test -z "$server_list" && server_list=" [NONE]"
1226 test -z "$client_list" && client_list=" [NONE]"
1209 1227
1210 # Initialize the (autotest) test suite. 1228 # Initialize the (autotest) test suite.
1211 AC_CONFIG_TESTDIR(libmailutils/tests) 1229 AC_CONFIG_TESTDIR(libmailutils/tests)
...@@ -1309,6 +1327,11 @@ Mailers: ...@@ -1309,6 +1327,11 @@ Mailers:
1309 SMTP .......................... $status_smtp 1327 SMTP .......................... $status_smtp
1310 Sendmail ...................... $status_sendmail 1328 Sendmail ...................... $status_sendmail
1311 1329
1330 Utilities to build:
1331
1332 Servers .......................$server_list
1333 Clients .......................$client_list
1334
1312 ******************************************************************* 1335 *******************************************************************
1313 1336
1314 Before proceeding, verify if these satisfy your requirements. 1337 Before proceeding, verify if these satisfy your requirements.
...@@ -1339,6 +1362,8 @@ status_maildir=$mu_cv_enable_maildir ...@@ -1339,6 +1362,8 @@ status_maildir=$mu_cv_enable_maildir
1339 status_smtp=$mu_cv_enable_smtp 1362 status_smtp=$mu_cv_enable_smtp
1340 status_sendmail=$mu_cv_enable_sendmail 1363 status_sendmail=$mu_cv_enable_sendmail
1341 status_ipv6=$status_ipv6 1364 status_ipv6=$status_ipv6
1365 server_list="$server_list"
1366 client_list="$client_list"
1342 ]) 1367 ])
1343 1368
1344 dnl Output Makefiles 1369 dnl Output Makefiles
......