Mercurial > dovecot > core-2.2
changeset 6177:abec53314897 HEAD
Build rquota_xdr.c with rpcgen from rquota.x.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Mon, 06 Aug 2007 19:07:36 +0300 |
parents | 0f6d4f8dd587 |
children | 66971adb55e5 |
files | configure.in src/plugins/quota/Makefile.am src/plugins/quota/quota-fs.c |
diffstat | 3 files changed, 21 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/configure.in Mon Aug 06 18:25:30 2007 +0300 +++ b/configure.in Mon Aug 06 19:07:36 2007 +0300 @@ -1921,11 +1921,17 @@ ]) AM_CONDITIONAL(BUILD_ZLIB, test "$have_zlib" = "yes") +RPCGEN=${RPCGEN-rpcgen} +if ! $RPCGEN -c /dev/null > /dev/null; then + RPCGEN= +fi +AC_SUBST(RPCGEN) + have_rquota=no -AC_CHECK_HEADER(rpcsvc/rquota.h, [ +if test -f /usr/include/rpcsvc/rquota.x && test -n "$RPCGEN"; then AC_DEFINE(HAVE_RQUOTA,, Define if you wish to retrieve quota of NFS mounted mailboxes) have_rquota=yes -]) +fi AM_CONDITIONAL(HAVE_RQUOTA, test "$have_rquota" = "yes") dnl **
--- a/src/plugins/quota/Makefile.am Mon Aug 06 18:25:30 2007 +0300 +++ b/src/plugins/quota/Makefile.am Mon Aug 06 19:07:36 2007 +0300 @@ -27,6 +27,13 @@ quota-plugin.c \ quota-storage.c +if HAVE_RQUOTA +rquota_xdr.c: Makefile + $(RPCGEN) -c /usr/include/rpcsvc/rquota.x | \ + $(SED) -e 's/IXDR_PUT/(void)IXDR_PUT/g' \ + -e 's/int32_t \*buf/int32_t *buf __attr_unused__/' > rquota_xdr.c +endif + noinst_HEADERS = \ quota.h \ quota-fs.h \ @@ -39,3 +46,8 @@ rm -f $(DESTDIR)$(moduledir)/$$d/lib10_quota_plugin.so; \ $(LN_S) ../lib10_quota_plugin.so $(DESTDIR)$(moduledir)/$$d; \ done + +DISTFILES = $(DIST_COMMON) $(dist_sources) $(HEADERS) $(TEXINFOS) $(EXTRA_DIST) + +distclean-generic: + rm -f Makefile rquota_xdr.c