Rewrite conditional compilation support.
* Makefile.am: Conditionally add directories to SUBDIRS. * am/enable.m4 (MU_ENABLE_BUILD): New macro. * configure.ac: Require automake 1.11 Add MU_ENABLE_BUILDs for each utility. Remove unused substitution variables. * guimb/Makefile.am: Remove substitution variables. * guimb/scm/Makefile.am: Likewise. * libmu_scm/Makefile.am: Likewise. * mh/Makefile.am: Likewise. * python/libmu_py/Makefile.am: Likewise. * python/mailutils/Makefile.am: Likewise. * README: Document --disable-build-* options.
Showing
10 changed files
with
194 additions
and
129 deletions
... | @@ -20,6 +20,70 @@ | ... | @@ -20,6 +20,70 @@ |
20 | 20 | ||
21 | ACLOCAL_AMFLAGS = -I m4 -I am | 21 | ACLOCAL_AMFLAGS = -I m4 -I am |
22 | 22 | ||
23 | if MU_COND_PYTHON | ||
24 | PYTHON_DIR = python | ||
25 | endif | ||
26 | |||
27 | if MU_COND_MH | ||
28 | MH_DIR = mh | ||
29 | endif | ||
30 | |||
31 | if MU_COND_FRM | ||
32 | FRM_DIR = frm | ||
33 | endif | ||
34 | |||
35 | if MU_COND_POP3D | ||
36 | POP3D_DIR = pop3d | ||
37 | endif | ||
38 | |||
39 | if MU_COND_IMAP4D | ||
40 | IMAP4D_DIR = imap4d | ||
41 | endif | ||
42 | |||
43 | if MU_COND_MAIDAG | ||
44 | MAIDAG_DIR = maidag | ||
45 | endif | ||
46 | |||
47 | if MU_COND_MAIL | ||
48 | MAIL_DIR = mail | ||
49 | endif | ||
50 | |||
51 | if MU_COND_SIEVE | ||
52 | SIEVE_DIR = sieve | ||
53 | endif | ||
54 | |||
55 | if MU_COND_GUIMB | ||
56 | GUIMB_DIR = guimb | ||
57 | endif | ||
58 | |||
59 | if MU_COND_MESSAGES | ||
60 | MESSAGES_DIR = messages | ||
61 | endif | ||
62 | |||
63 | if MU_COND_COMSAT | ||
64 | COMSAT_DIR = comsat | ||
65 | endif | ||
66 | |||
67 | if MU_COND_READMSG | ||
68 | READMSG_DIR = readmsg | ||
69 | endif | ||
70 | |||
71 | if MU_COND_DOTLOCK | ||
72 | DOTLOCK_DIR = dotlock | ||
73 | endif | ||
74 | |||
75 | if MU_COND_MOVEMAIL | ||
76 | MOVEMAIL_DIR = movemail | ||
77 | endif | ||
78 | |||
79 | if MU_COND_MIMEVIEW | ||
80 | MIMEVIEW_DIR = mimeview | ||
81 | endif | ||
82 | |||
83 | if MU_COND_LIBMU_SCM | ||
84 | LIBMU_SCM_DIR = libmu_scm | ||
85 | endif | ||
86 | |||
23 | SUBDIRS = \ | 87 | SUBDIRS = \ |
24 | mu-aux\ | 88 | mu-aux\ |
25 | include\ | 89 | include\ |
... | @@ -33,26 +97,26 @@ SUBDIRS = \ | ... | @@ -33,26 +97,26 @@ SUBDIRS = \ |
33 | libmu_argp\ | 97 | libmu_argp\ |
34 | libmu_cfg\ | 98 | libmu_cfg\ |
35 | libmu_cpp\ | 99 | libmu_cpp\ |
36 | libmu_scm\ | 100 | $(LIBMU_SCM_DIR)\ |
37 | libmu_sieve\ | 101 | libmu_sieve\ |
38 | python\ | 102 | $(PYTHON_DIR)\ |
39 | doc\ | 103 | doc\ |
40 | config\ | 104 | config\ |
41 | examples\ | 105 | examples\ |
42 | frm\ | 106 | $(FRM_DIR)\ |
43 | pop3d\ | 107 | $(POP3D_DIR)\ |
44 | imap4d\ | 108 | $(IMAP4D_DIR)\ |
45 | maidag\ | 109 | $(MAIDAG_DIR)\ |
46 | mail\ | 110 | $(MAIL_DIR)\ |
47 | sieve\ | 111 | $(SIEVE_DIR)\ |
48 | guimb\ | 112 | $(GUIMB_DIR)\ |
49 | messages\ | 113 | $(MESSAGES_DIR)\ |
50 | comsat\ | 114 | $(COMSAT_DIR)\ |
51 | readmsg\ | 115 | $(READMSG_DIR)\ |
52 | dotlock\ | 116 | $(DOTLOCK_DIR)\ |
53 | mh\ | 117 | $(MH_DIR)\ |
54 | movemail\ | 118 | $(MOVEMAIL_DIR)\ |
55 | mimeview | 119 | $(MIMEVIEW_DIR) |
56 | 120 | ||
57 | EXTRA_DIST = COPYING.LESSER paths | 121 | EXTRA_DIST = COPYING.LESSER paths |
58 | 122 | ... | ... |
... | @@ -134,18 +134,6 @@ mailutils-specific configuration options: | ... | @@ -134,18 +134,6 @@ mailutils-specific configuration options: |
134 | You may have to explicitly specify LIBS and CPPFLAGS (see | 134 | You may have to explicitly specify LIBS and CPPFLAGS (see |
135 | above). | 135 | above). |
136 | 136 | ||
137 | --enable-mh-utils | ||
138 | |||
139 | Build a suite of MH utilities. The GNU implementation of MH | ||
140 | primarily aims to provide an interface between Mailutils' | ||
141 | functionality and Emacs, using the mh-e module. | ||
142 | For more information, refer to the TODO file in the mh | ||
143 | subdirectory, and to the section `MH' in the accompanying | ||
144 | documentation. To access it, run | ||
145 | `info -f ./doc/texinfo/mailutils.info mh' from the Mailutils | ||
146 | root directory. After installation, it will become available | ||
147 | by running `info mailutils mh'. | ||
148 | |||
149 | --with-mh-bindir=DIR | 137 | --with-mh-bindir=DIR |
150 | 138 | ||
151 | By default the MH binaries are installed in | 139 | By default the MH binaries are installed in |
... | @@ -308,14 +296,31 @@ features: | ... | @@ -308,14 +296,31 @@ features: |
308 | 296 | ||
309 | --disable-imap Disables IMAP protocol support. | 297 | --disable-imap Disables IMAP protocol support. |
310 | --disable-pop Disables POP protocol support. | 298 | --disable-pop Disables POP protocol support. |
311 | --disable-smtp Disables support for SMTP mailer. With this | 299 | --disable-smtp Disables support for SMTP mailer. |
312 | option `mail.remote' is not built. | ||
313 | --disable-sendmail Disables support for `Sendmail' mailer. | 300 | --disable-sendmail Disables support for `Sendmail' mailer. |
314 | --disable-mh Disables support for MH mailbox format. | 301 | --disable-mh Disables support for MH mailbox format. |
315 | --disable-virtual-domains | 302 | --disable-virtual-domains |
316 | Disables support for authentication using | 303 | Disables support for authentication using |
317 | virtual mail domains. | 304 | virtual mail domains. |
318 | 305 | ||
306 | Special options are provided that control whether each particular | ||
307 | Mailutils program is built. These are: | ||
308 | |||
309 | --disable-build-frm do not build frm | ||
310 | --disable-build-pop3d do not build pop3d | ||
311 | --disable-build-imap4d do not build imap4d | ||
312 | --disable-build-comsat do not build comsat | ||
313 | --disable-build-maidag do not build maidag | ||
314 | --disable-build-mail do not build mail | ||
315 | --disable-build-sieve do not build sieve | ||
316 | --disable-build-guimb do not build guimb | ||
317 | --disable-build-messages do not build messages | ||
318 | --disable-build-readmsg do not build readmsg | ||
319 | --disable-build-dotlock do not build dotlock | ||
320 | --disable-build-movemail do not build movemail | ||
321 | --disable-build-mimeview do not build mimeview | ||
322 | --disable-build-mh do not build mh utilities | ||
323 | |||
319 | Several environment variables affect the configuration. Currently, | 324 | Several environment variables affect the configuration. Currently, |
320 | the only mailutils-specific variable is DEFAULT_CUPS_CONFDIR. It | 325 | the only mailutils-specific variable is DEFAULT_CUPS_CONFDIR. It |
321 | sets the location of CUPS (Common UNIX Printing System) configuration | 326 | sets the location of CUPS (Common UNIX Printing System) configuration | ... | ... |
... | @@ -46,5 +46,36 @@ AC_DEFUN([MU_ENABLE_SUPPORT], [ | ... | @@ -46,5 +46,36 @@ AC_DEFUN([MU_ENABLE_SUPPORT], [ |
46 | popdef([mu_cache_var]) | 46 | popdef([mu_cache_var]) |
47 | ]) | 47 | ]) |
48 | 48 | ||
49 | AC_DEFUN([MU_ENABLE_BUILD], [ | ||
50 | pushdef([mu_upcase],translit($1,[a-z+-],[A-ZX_])) | ||
51 | pushdef([mu_cache_var],[mu_cv_enable_build_]translit($1,[+-],[x_])) | ||
52 | pushdef([mu_cond],[MU_COND_]mu_upcase) | ||
53 | |||
54 | AC_ARG_ENABLE(build-$1, | ||
55 | AC_HELP_STRING([--disable-build-]$1, | ||
56 | [do not build ]$1), | ||
57 | [ | ||
58 | case "${enableval}" in | ||
59 | yes) mu_cache_var=yes;; | ||
60 | no) mu_cache_var=no;; | ||
61 | *) AC_MSG_ERROR([bad value ${enableval} for --disable-$1]) ;; | ||
62 | esac], | ||
63 | [ifelse([$4],,mu_cache_var=yes,[$4])]) | ||
64 | |||
65 | if test x"[$]mu_cache_var" = x"yes"; then | ||
66 | ifelse([$2],,:,[$2]) | ||
67 | ifelse([$3],,,else | ||
68 | [$3]) | ||
69 | fi | ||
70 | if test x"[$]mu_cache_var" = x"yes"; then | ||
71 | AC_DEFINE([MU_BUILD_]mu_upcase,1,[Define this if you build $1]) | ||
72 | fi | ||
73 | AM_CONDITIONAL(mu_cond, | ||
74 | [test x"[$]mu_cache_var" = x"yes"]) | ||
75 | |||
76 | popdef([mu_upcase]) | ||
77 | popdef([mu_cache_var]) | ||
78 | popdef([mu_cond]) | ||
79 | ]) | ||
49 | 80 | ||
50 | 81 | ... | ... |
... | @@ -21,7 +21,7 @@ AC_PREREQ(2.63) | ... | @@ -21,7 +21,7 @@ AC_PREREQ(2.63) |
21 | AC_INIT([GNU Mailutils], [2.0.90], [bug-mailutils@gnu.org], [mailutils]) | 21 | AC_INIT([GNU Mailutils], [2.0.90], [bug-mailutils@gnu.org], [mailutils]) |
22 | AC_CONFIG_SRCDIR([mailbox/mailbox.c]) | 22 | AC_CONFIG_SRCDIR([mailbox/mailbox.c]) |
23 | AC_CONFIG_AUX_DIR([build-aux]) | 23 | AC_CONFIG_AUX_DIR([build-aux]) |
24 | AM_INIT_AUTOMAKE([gnits 1.8.5 dist-bzip2 std-options silent-rules]) | 24 | AM_INIT_AUTOMAKE([gnits 1.11 dist-bzip2 std-options silent-rules]) |
25 | AC_CONFIG_HEADERS([config.h]) | 25 | AC_CONFIG_HEADERS([config.h]) |
26 | AC_CONFIG_MACRO_DIR([m4]) | 26 | AC_CONFIG_MACRO_DIR([m4]) |
27 | 27 | ||
... | @@ -808,14 +808,8 @@ MU_ENABLE_SUPPORT(sendmail) | ... | @@ -808,14 +808,8 @@ MU_ENABLE_SUPPORT(sendmail) |
808 | 808 | ||
809 | MU_ENABLE_SUPPORT(prog) | 809 | MU_ENABLE_SUPPORT(prog) |
810 | 810 | ||
811 | AC_SUBST(MU_MH_PROGRAMS_BUILD) | 811 | MU_ENABLE_SUPPORT(mh) |
812 | AC_SUBST(MU_MH_LIBRARIES_BUILD) | ||
813 | AC_SUBST(MU_MH_EXEC_HOOK) | ||
814 | 812 | ||
815 | MU_ENABLE_SUPPORT(mh, | ||
816 | [MU_MH_PROGRAMS_BUILD='$(MU_MH_PROGRAMS_LIST)'; | ||
817 | MU_MH_LIBRARIES_BUILD='$(MU_MH_LIBRARIES_LIST)'; | ||
818 | MU_MH_EXEC_HOOK=mh_finish_install]) | ||
819 | MU_ENABLE_SUPPORT(maildir) | 813 | MU_ENABLE_SUPPORT(maildir) |
820 | 814 | ||
821 | # FIXME: Should be --with-radius | 815 | # FIXME: Should be --with-radius |
... | @@ -825,17 +819,6 @@ MU_ENABLE_SUPPORT(radius, | ... | @@ -825,17 +819,6 @@ MU_ENABLE_SUPPORT(radius, |
825 | mu_cv_enable_radius=yes], | 819 | mu_cv_enable_radius=yes], |
826 | [mu_cv_enable_radius=no])]) | 820 | [mu_cv_enable_radius=no])]) |
827 | 821 | ||
828 | AC_SUBST(MH_BIN_DIR) | ||
829 | |||
830 | AC_ARG_WITH([mh-bindir], | ||
831 | AC_HELP_STRING([--with-mh-bindir], | ||
832 | [Set the directory where to install the MH binaries. If it starts with '/' it is taken as an absolute path specification, otherwise ${prefix} is prepended to it. (Default: ${exec_prefix}/bin/mu-mh)]), | ||
833 | [case "${withval}" in | ||
834 | /*) MH_BIN_DIR=${withval};; | ||
835 | *) MH_BIN_DIR="\${prefix}/${withval}";; | ||
836 | esac], | ||
837 | [MH_BIN_DIR='${exec_prefix}/bin/mu-mh']) | ||
838 | |||
839 | AC_ARG_ENABLE([experimental], | 822 | AC_ARG_ENABLE([experimental], |
840 | AC_HELP_STRING([--enable-experimental], | 823 | AC_HELP_STRING([--enable-experimental], |
841 | [build experimental and/or unfinished utilities]), | 824 | [build experimental and/or unfinished utilities]), |
... | @@ -1070,15 +1053,10 @@ fi | ... | @@ -1070,15 +1053,10 @@ fi |
1070 | 1053 | ||
1071 | dnl Check for Guile | 1054 | dnl Check for Guile |
1072 | AC_SUBST(GUILE_BINDIR) | 1055 | AC_SUBST(GUILE_BINDIR) |
1073 | AC_SUBST(MU_SCM_BIN_PROGRAMS_BUILD) | ||
1074 | AC_SUBST(MU_SCM_LTLIBRARIES_BUILD) | ||
1075 | AC_SUBST(LIBMU_SCM) | 1056 | AC_SUBST(LIBMU_SCM) |
1076 | AC_SUBST(LIBMU_SCM_DEPS) | 1057 | AC_SUBST(LIBMU_SCM_DEPS) |
1077 | AC_SUBST(GUILE_SITE_DATA) | ||
1078 | AC_SUBST(GUILE_BUILT_SOURCES) | ||
1079 | AC_SUBST(MU_GUILE_SITE_DIR) | 1058 | AC_SUBST(MU_GUILE_SITE_DIR) |
1080 | AC_SUBST(MU_GUILE_SIEVE_MOD_DIR) | 1059 | AC_SUBST(MU_GUILE_SIEVE_MOD_DIR) |
1081 | AC_SUBST(MU_GUILE_SIEVE_SCRIPTS) | ||
1082 | AC_SUBST(MU_GUILE_SIEVE_MOD_DATA) | 1060 | AC_SUBST(MU_GUILE_SIEVE_MOD_DATA) |
1083 | 1061 | ||
1084 | if test "$useguile" != "no"; then | 1062 | if test "$useguile" != "no"; then |
... | @@ -1086,16 +1064,11 @@ if test "$useguile" != "no"; then | ... | @@ -1086,16 +1064,11 @@ if test "$useguile" != "no"; then |
1086 | [useguile=yes | 1064 | [useguile=yes |
1087 | AC_DEFINE(WITH_GUILE,1,[Enable Guile support]) | 1065 | AC_DEFINE(WITH_GUILE,1,[Enable Guile support]) |
1088 | GUILE_BINDIR=`guile-config info bindir` | 1066 | GUILE_BINDIR=`guile-config info bindir` |
1089 | MU_SCM_BIN_PROGRAMS_BUILD='$(MU_SCM_BIN_PROGRAMS_LIST)' | ||
1090 | MU_SCM_LTLIBRARIES_BUILD='$(MU_SCM_LTLIBRARIES_LIST)' | ||
1091 | LIBMU_SCM=../libmu_scm/libmu_scm.la | 1067 | LIBMU_SCM=../libmu_scm/libmu_scm.la |
1092 | LIBMU_SCM_DEPS='${MU_LIB_MBOX} ${MU_LIB_IMAP} ${MU_LIB_POP} ${MU_LIB_MH} ${MU_LIB_MAILDIR} ${MU_LIB_MAILER}' | 1068 | LIBMU_SCM_DEPS='${MU_LIB_MBOX} ${MU_LIB_IMAP} ${MU_LIB_POP} ${MU_LIB_MH} ${MU_LIB_MAILDIR} ${MU_LIB_MAILER}' |
1093 | GUILE_SITE_DATA='$(GUILE_SITE_DATA_X)' | ||
1094 | MU_GUILE_SITE_DIR='$(GUILE_SITE)/$(PACKAGE)' | 1069 | MU_GUILE_SITE_DIR='$(GUILE_SITE)/$(PACKAGE)' |
1095 | MU_GUILE_SIEVE_MOD_DIR='$(GUILE_SITE)/sieve-modules' | 1070 | MU_GUILE_SIEVE_MOD_DIR='$(GUILE_SITE)/sieve-modules' |
1096 | MU_GUILE_SIEVE_SCRIPTS='$(MU_GUILE_SIEVE_SCRIPTS_X)' | ||
1097 | MU_GUILE_SIEVE_MOD_DATA='$(MU_GUILE_SIEVE_MOD_DATA_X)' | 1071 | MU_GUILE_SIEVE_MOD_DATA='$(MU_GUILE_SIEVE_MOD_DATA_X)' |
1098 | GUILE_BUILT_SOURCES='$(GUILE_BUILT_SOURCES_X)' | ||
1099 | ],[useguile=no]) | 1072 | ],[useguile=no]) |
1100 | 1073 | ||
1101 | if test "$useguile" = "yes"; then | 1074 | if test "$useguile" = "yes"; then |
... | @@ -1120,6 +1093,8 @@ if test "$useguile" != "no"; then | ... | @@ -1120,6 +1093,8 @@ if test "$useguile" != "no"; then |
1120 | fi | 1093 | fi |
1121 | fi | 1094 | fi |
1122 | 1095 | ||
1096 | AM_CONDITIONAL([MU_COND_LIBMU_SCM],[test "$useguile" = "yes"]) | ||
1097 | |||
1123 | AC_SUBST(GUILE_SITE) | 1098 | AC_SUBST(GUILE_SITE) |
1124 | 1099 | ||
1125 | dnl Check for Emacs site-lisp directory | 1100 | dnl Check for Emacs site-lisp directory |
... | @@ -1143,9 +1118,6 @@ esac],[status_python=yes]) | ... | @@ -1143,9 +1118,6 @@ esac],[status_python=yes]) |
1143 | 1118 | ||
1144 | AC_SUBST(PYTHON_LIBS) | 1119 | AC_SUBST(PYTHON_LIBS) |
1145 | AC_SUBST(PYTHON_INCLUDES) | 1120 | AC_SUBST(PYTHON_INCLUDES) |
1146 | AC_SUBST(MU_PY_LIB_LTLIBRARIES_BUILD) | ||
1147 | AC_SUBST(MU_PY_PKGPYEXEC_LTLIBRARIES_BUILD) | ||
1148 | AC_SUBST(MU_PY_PKGPYTHON_BUILD) | ||
1149 | 1121 | ||
1150 | if test "$status_python" = yes; then | 1122 | if test "$status_python" = yes; then |
1151 | AM_PATH_PYTHON(2.5.0,, [status_python=no]) | 1123 | AM_PATH_PYTHON(2.5.0,, [status_python=no]) |
... | @@ -1161,13 +1133,11 @@ if test "$status_python" = yes; then | ... | @@ -1161,13 +1133,11 @@ if test "$status_python" = yes; then |
1161 | 1133 | ||
1162 | if test "$status_python" = yes; then | 1134 | if test "$status_python" = yes; then |
1163 | AC_DEFINE(WITH_PYTHON,1,[Enable Python support]) | 1135 | AC_DEFINE(WITH_PYTHON,1,[Enable Python support]) |
1164 | MU_PY_LIB_LTLIBRARIES_BUILD='$(MU_PY_LIB_LTLIBRARIES_LIST)' | ||
1165 | MU_PY_PKGPYEXEC_LTLIBRARIES_BUILD='$(MU_PY_PKGPYEXEC_LTLIBRARIES_LIST)' | ||
1166 | MU_PY_PKGPYTHON_BUILD='$(MU_PY_PKGPYTHON_LIST)' | ||
1167 | MU_LIB_PY='${top_builddir}/python/libmu_py/libmu_py.la' | 1136 | MU_LIB_PY='${top_builddir}/python/libmu_py/libmu_py.la' |
1168 | fi | 1137 | fi |
1169 | fi | 1138 | fi |
1170 | fi | 1139 | fi |
1140 | AM_CONDITIONAL([MU_COND_PYTHON], [test "$status_python" = yes]) | ||
1171 | 1141 | ||
1172 | AC_SUBST(MU_CXX_LTLIBRARIES_BUILD) | 1142 | AC_SUBST(MU_CXX_LTLIBRARIES_BUILD) |
1173 | AC_SUBST(MU_CXX_EXAMPLES_BUILD) | 1143 | AC_SUBST(MU_CXX_EXAMPLES_BUILD) |
... | @@ -1208,6 +1178,43 @@ if test -z "$DEFAULT_CUPS_CONFDIR"; then | ... | @@ -1208,6 +1178,43 @@ if test -z "$DEFAULT_CUPS_CONFDIR"; then |
1208 | DEFAULT_CUPS_CONFDIR='$(sysconfdir)/cups' | 1178 | DEFAULT_CUPS_CONFDIR='$(sysconfdir)/cups' |
1209 | fi | 1179 | fi |
1210 | 1180 | ||
1181 | dnl *********************************************************************** | ||
1182 | dnl Configure particular utilities | ||
1183 | dnl *********************************************************************** | ||
1184 | |||
1185 | MU_ENABLE_BUILD(frm) | ||
1186 | MU_ENABLE_BUILD(pop3d) | ||
1187 | MU_ENABLE_BUILD(imap4d) | ||
1188 | MU_ENABLE_BUILD(comsat) | ||
1189 | MU_ENABLE_BUILD(maidag) | ||
1190 | MU_ENABLE_BUILD(mail) | ||
1191 | MU_ENABLE_BUILD(sieve) | ||
1192 | if test "$useguile" = yes; then | ||
1193 | MU_ENABLE_BUILD(guimb) | ||
1194 | fi | ||
1195 | MU_ENABLE_BUILD(messages) | ||
1196 | MU_ENABLE_BUILD(readmsg) | ||
1197 | MU_ENABLE_BUILD(dotlock) | ||
1198 | MU_ENABLE_BUILD(movemail) | ||
1199 | MU_ENABLE_BUILD(mimeview) | ||
1200 | |||
1201 | if test "$mu_cv_enable_mh" = yes; then | ||
1202 | MU_ENABLE_BUILD(mh) | ||
1203 | fi | ||
1204 | |||
1205 | AC_SUBST(MH_BIN_DIR) | ||
1206 | |||
1207 | AC_ARG_WITH([mh-bindir], | ||
1208 | AC_HELP_STRING([--with-mh-bindir], | ||
1209 | [Set the directory where to install the MH binaries. If it starts with '/' it is taken as an absolute path specification, otherwise ${prefix} is prepended to it. (Default: ${exec_prefix}/bin/mu-mh)]), | ||
1210 | [case "${withval}" in | ||
1211 | /*) MH_BIN_DIR=${withval};; | ||
1212 | *) MH_BIN_DIR="\${prefix}/${withval}";; | ||
1213 | esac], | ||
1214 | [MH_BIN_DIR='${exec_prefix}/bin/mu-mh']) | ||
1215 | |||
1216 | |||
1217 | |||
1211 | dnl Make sysconfdir available to the application | 1218 | dnl Make sysconfdir available to the application |
1212 | dnl This must be done LAST, since CPPFLAGS is passed by configure | 1219 | dnl This must be done LAST, since CPPFLAGS is passed by configure |
1213 | dnl to build tests, but this relies on being run in make to | 1220 | dnl to build tests, but this relies on being run in make to |
... | @@ -1273,7 +1280,6 @@ Mailers: | ... | @@ -1273,7 +1280,6 @@ Mailers: |
1273 | SMTP .......................... $status_smtp | 1280 | SMTP .......................... $status_smtp |
1274 | Sendmail ...................... $status_sendmail | 1281 | Sendmail ...................... $status_sendmail |
1275 | 1282 | ||
1276 | |||
1277 | ******************************************************************* | 1283 | ******************************************************************* |
1278 | 1284 | ||
1279 | Before proceeding, verify if these satisfy your requirements. | 1285 | Before proceeding, verify if these satisfy your requirements. | ... | ... |
... | @@ -21,9 +21,7 @@ INCLUDES = @MU_APP_COMMON_INCLUDES@ @GUILE_INCLUDES@ | ... | @@ -21,9 +21,7 @@ INCLUDES = @MU_APP_COMMON_INCLUDES@ @GUILE_INCLUDES@ |
21 | 21 | ||
22 | SUBDIRS=scm | 22 | SUBDIRS=scm |
23 | 23 | ||
24 | MU_SCM_BIN_PROGRAMS_LIST=guimb # FIXME: does it need $(EXEEXT)? | 24 | bin_PROGRAMS=guimb |
25 | bin_PROGRAMS=@MU_SCM_BIN_PROGRAMS_BUILD@ | ||
26 | EXTRA_PROGRAMS=$(MU_SCM_BIN_PROGRAMS_LIST) | ||
27 | guimb_SOURCES=main.c collect.c util.c guimb.h | 25 | guimb_SOURCES=main.c collect.c util.c guimb.h |
28 | guimb_LDADD = \ | 26 | guimb_LDADD = \ |
29 | ${MU_APP_LIBRARIES}\ | 27 | ${MU_APP_LIBRARIES}\ | ... | ... |
... | @@ -18,7 +18,7 @@ | ... | @@ -18,7 +18,7 @@ |
18 | ## 02110-1301 USA | 18 | ## 02110-1301 USA |
19 | 19 | ||
20 | MU_GUILE_SIEVE_SCRIPTS_X=sieve.scm | 20 | MU_GUILE_SIEVE_SCRIPTS_X=sieve.scm |
21 | bin_SCRIPTS = @MU_GUILE_SIEVE_SCRIPTS@ | 21 | bin_SCRIPTS = sieve.scm |
22 | EXTRA_SCRIPTS=sieve.scm | 22 | EXTRA_SCRIPTS=sieve.scm |
23 | 23 | ||
24 | sievemoddir=@MU_GUILE_SIEVE_MOD_DIR@ | 24 | sievemoddir=@MU_GUILE_SIEVE_MOD_DIR@ |
... | @@ -37,8 +37,7 @@ sieve.sed: Makefile | ... | @@ -37,8 +37,7 @@ sieve.sed: Makefile |
37 | CLEANFILES = sieve.scm sieve.sed | 37 | CLEANFILES = sieve.scm sieve.sed |
38 | 38 | ||
39 | sitedir=@MU_GUILE_SITE_DIR@ | 39 | sitedir=@MU_GUILE_SITE_DIR@ |
40 | GUILE_SITE_DATA_X=sieve-core.scm | 40 | site_DATA=sieve-core.scm |
41 | site_DATA=@GUILE_SITE_DATA@ | ||
42 | 41 | ||
43 | MU_GUILE_SIEVE_MOD_DATA_X=\ | 42 | MU_GUILE_SIEVE_MOD_DATA_X=\ |
44 | mimeheader.scm\ | 43 | mimeheader.scm\ | ... | ... |
... | @@ -20,9 +20,8 @@ | ... | @@ -20,9 +20,8 @@ |
20 | 20 | ||
21 | INCLUDES = -I. @MU_LIB_COMMON_INCLUDES@ @GUILE_INCLUDES@ | 21 | INCLUDES = -I. @MU_LIB_COMMON_INCLUDES@ @GUILE_INCLUDES@ |
22 | 22 | ||
23 | MU_SCM_LTLIBRARIES_LIST = libmu_scm.la | 23 | lib_LTLIBRARIES=libmu_scm.la |
24 | lib_LTLIBRARIES=@MU_SCM_LTLIBRARIES_BUILD@ | 24 | |
25 | EXTRA_LTLIBRARIES=libmu_scm.la | ||
26 | C_SRCS=\ | 25 | C_SRCS=\ |
27 | mu_address.c\ | 26 | mu_address.c\ |
28 | mu_body.c\ | 27 | mu_body.c\ |
... | @@ -52,11 +51,10 @@ libmu_scm_la_LIBADD = \ | ... | @@ -52,11 +51,10 @@ libmu_scm_la_LIBADD = \ |
52 | ${MU_LIB_MAILUTILS}\ | 51 | ${MU_LIB_MAILUTILS}\ |
53 | @GUILE_LIBS@ | 52 | @GUILE_LIBS@ |
54 | 53 | ||
55 | EXTRA_DIST=mailutils.scm mailutils.scm.in | 54 | EXTRA_DIST=mailutils.scm mailutils.scm.in guile-procedures.texi guile-procedures.txt |
56 | 55 | ||
57 | sitedir=@MU_GUILE_SITE_DIR@ | 56 | sitedir=@MU_GUILE_SITE_DIR@ |
58 | GUILE_SITE_DATA_X=guile-procedures.txt mailutils.scm | 57 | site_DATA=guile-procedures.txt mailutils.scm |
59 | site_DATA=@GUILE_SITE_DATA@ | ||
60 | 58 | ||
61 | DOT_X_FILES=\ | 59 | DOT_X_FILES=\ |
62 | mu_address.x\ | 60 | mu_address.x\ |
... | @@ -80,11 +78,15 @@ DOT_DOC_FILES=\ | ... | @@ -80,11 +78,15 @@ DOT_DOC_FILES=\ |
80 | mu_scm.doc\ | 78 | mu_scm.doc\ |
81 | mu_util.doc | 79 | mu_util.doc |
82 | 80 | ||
83 | GUILE_BUILT_SOURCES_X=$(DOT_X_FILES) $(DOT_DOC_FILES) guile-procedures.texi | 81 | BUILT_SOURCES=$(DOT_X_FILES) $(DOT_DOC_FILES) guile-procedures.texi |
84 | 82 | ||
85 | BUILT_SOURCES=@GUILE_BUILT_SOURCES@ | 83 | DISTCLEANFILES=\ |
84 | $(DOT_X_FILES)\ | ||
85 | $(DOT_DOC_FILES)\ | ||
86 | guile-procedures.texi\ | ||
87 | guile-procedures.txt\ | ||
88 | mailutils.scm | ||
86 | 89 | ||
87 | DISTCLEANFILES=$(DOT_X_FILES) $(DOT_DOC_FILES) guile-procedures.texi @GUILE_SITE_DATA@ | ||
88 | CLEANFILES=*.inc | 90 | CLEANFILES=*.inc |
89 | 91 | ||
90 | AM_CPPFLAGS=-DDATADIR=\"$(pkgdatadir)\" | 92 | AM_CPPFLAGS=-DDATADIR=\"$(pkgdatadir)\" | ... | ... |
... | @@ -17,35 +17,9 @@ | ... | @@ -17,35 +17,9 @@ |
17 | ## Foundation, Inc. 51 Franklin Street, Fifth Floor, Boston, MA | 17 | ## Foundation, Inc. 51 Franklin Street, Fifth Floor, Boston, MA |
18 | ## 02110-1301 USA | 18 | ## 02110-1301 USA |
19 | 19 | ||
20 | # All MH programs. Note that we have to explicitely append EXEEXT, Makefile | 20 | bindir = @MH_BIN_DIR@ |
21 | # won't do that. | 21 | mhlibdir = $(pkgdatadir)/mh |
22 | MU_MH_PROGRAMS_LIST = \ | 22 | bin_PROGRAMS = \ |
23 | ali$(EXEEXT)\ | ||
24 | anno$(EXEEXT)\ | ||
25 | burst$(EXEEXT)\ | ||
26 | comp$(EXEEXT)\ | ||
27 | fmtcheck$(EXEEXT)\ | ||
28 | folder$(EXEEXT)\ | ||
29 | forw$(EXEEXT)\ | ||
30 | inc$(EXEEXT)\ | ||
31 | install-mh$(EXEEXT)\ | ||
32 | mark$(EXEEXT)\ | ||
33 | mhl$(EXEEXT)\ | ||
34 | mhn$(EXEEXT)\ | ||
35 | mhparam$(EXEEXT)\ | ||
36 | mhpath$(EXEEXT)\ | ||
37 | pick$(EXEEXT)\ | ||
38 | refile$(EXEEXT)\ | ||
39 | repl$(EXEEXT)\ | ||
40 | rmf$(EXEEXT)\ | ||
41 | rmm$(EXEEXT)\ | ||
42 | scan$(EXEEXT)\ | ||
43 | send$(EXEEXT)\ | ||
44 | sortm$(EXEEXT)\ | ||
45 | whatnow$(EXEEXT)\ | ||
46 | whom$(EXEEXT) | ||
47 | |||
48 | EXTRA_PROGRAMS = \ | ||
49 | ali\ | 23 | ali\ |
50 | anno\ | 24 | anno\ |
51 | burst\ | 25 | burst\ |
... | @@ -71,13 +45,7 @@ EXTRA_PROGRAMS = \ | ... | @@ -71,13 +45,7 @@ EXTRA_PROGRAMS = \ |
71 | whatnow\ | 45 | whatnow\ |
72 | whom | 46 | whom |
73 | 47 | ||
74 | MU_MH_LIBRARIES_LIST = libmh.a | 48 | noinst_LIBRARIES = libmh.a |
75 | EXTRA_LIBRARIES = libmh.a | ||
76 | |||
77 | bindir = @MH_BIN_DIR@ | ||
78 | mhlibdir = $(pkgdatadir)/mh | ||
79 | bin_PROGRAMS = @MU_MH_PROGRAMS_BUILD@ | ||
80 | noinst_LIBRARIES = @MU_MH_LIBRARIES_BUILD@ | ||
81 | 49 | ||
82 | libmh_a_SOURCES= \ | 50 | libmh_a_SOURCES= \ |
83 | compcommon.c\ | 51 | compcommon.c\ |
... | @@ -168,9 +136,7 @@ mh_alias_lex.c: $(srcdir)/mh_alias.l mh_alias.h | ... | @@ -168,9 +136,7 @@ mh_alias_lex.c: $(srcdir)/mh_alias.l mh_alias.h |
168 | $(srcdir)/mh_alias.l lex.yy.c mh_alias_lex.c \ | 136 | $(srcdir)/mh_alias.l lex.yy.c mh_alias_lex.c \ |
169 | -- -yy ali_yy | 137 | -- -yy ali_yy |
170 | 138 | ||
171 | install-exec-hook: @MU_MH_EXEC_HOOK@ | 139 | install-exec-hook: |
172 | |||
173 | mh_finish_install: | ||
174 | @here=`pwd`; \ | 140 | @here=`pwd`; \ |
175 | cd $(DESTDIR)$(bindir); \ | 141 | cd $(DESTDIR)$(bindir); \ |
176 | rm -f folders; \ | 142 | rm -f folders; \ | ... | ... |
... | @@ -19,10 +19,7 @@ | ... | @@ -19,10 +19,7 @@ |
19 | 19 | ||
20 | INCLUDES = @MU_LIB_COMMON_INCLUDES@ $(PYTHON_INCLUDES) | 20 | INCLUDES = @MU_LIB_COMMON_INCLUDES@ $(PYTHON_INCLUDES) |
21 | 21 | ||
22 | EXTRA_LTLIBRARIES = libmu_py.la c_api.la | 22 | lib_LTLIBRARIES=libmu_py.la |
23 | |||
24 | MU_PY_LIB_LTLIBRARIES_LIST=libmu_py.la | ||
25 | lib_LTLIBRARIES=@MU_PY_LIB_LTLIBRARIES_BUILD@ | ||
26 | libmu_py_la_SOURCES = \ | 23 | libmu_py_la_SOURCES = \ |
27 | error.c \ | 24 | error.c \ |
28 | address.c \ | 25 | address.c \ |
... | @@ -66,8 +63,7 @@ libmu_py_la_LIBADD = $(PYTHON_LIBS) @MU_COMMON_LIBRARIES@ \ | ... | @@ -66,8 +63,7 @@ libmu_py_la_LIBADD = $(PYTHON_LIBS) @MU_COMMON_LIBRARIES@ \ |
66 | @MU_AUTHLIBS@\ | 63 | @MU_AUTHLIBS@\ |
67 | ${MU_LIB_MAILUTILS} | 64 | ${MU_LIB_MAILUTILS} |
68 | 65 | ||
69 | MU_PY_PKGPYEXEC_LTLIBRARIES_LIST = c_api.la | 66 | pkgpyexec_LTLIBRARIES = c_api.la |
70 | pkgpyexec_LTLIBRARIES = @MU_PY_PKGPYEXEC_LTLIBRARIES_BUILD@ | ||
71 | c_api_la_LDFLAGS = -avoid-version -module -rpath $(pkgpyexecdir) | 67 | c_api_la_LDFLAGS = -avoid-version -module -rpath $(pkgpyexecdir) |
72 | c_api_la_LIBADD = $(PYTHON_LIBS) ${MU_LIB_PY} | 68 | c_api_la_LIBADD = $(PYTHON_LIBS) ${MU_LIB_PY} |
73 | c_api_la_SOURCES = c_api.c | 69 | c_api_la_SOURCES = c_api.c | ... | ... |
... | @@ -17,7 +17,7 @@ | ... | @@ -17,7 +17,7 @@ |
17 | ## Foundation, Inc. 51 Franklin Street, Fifth Floor, Boston, MA | 17 | ## Foundation, Inc. 51 Franklin Street, Fifth Floor, Boston, MA |
18 | ## 02110-1301 USA | 18 | ## 02110-1301 USA |
19 | 19 | ||
20 | MU_PY_PKGPYTHON_LIST=\ | 20 | pkgpython_PYTHON=\ |
21 | __init__.py \ | 21 | __init__.py \ |
22 | error.py \ | 22 | error.py \ |
23 | address.py \ | 23 | address.py \ |
... | @@ -42,5 +42,3 @@ MU_PY_PKGPYTHON_LIST=\ | ... | @@ -42,5 +42,3 @@ MU_PY_PKGPYTHON_LIST=\ |
42 | url.py \ | 42 | url.py \ |
43 | util.py | 43 | util.py |
44 | 44 | ||
45 | pkgpython_PYTHON=@MU_PY_PKGPYTHON_BUILD@ | ||
46 | EXTRA_PYTHON=$(MU_PY_PKGPYTHON_LIST) | ... | ... |
-
Please register or sign in to post a comment