dovecot-1.2: quota: Fixed compiling with older automakes.

dovecot at dovecot.org dovecot at dovecot.org
Fri Jul 10 18:08:42 EEST 2009


details:   http://hg.dovecot.org/dovecot-1.2/rev/66040bffc1a5
changeset: 9223:66040bffc1a5
user:      Timo Sirainen <tss at iki.fi>
date:      Fri Jul 10 11:08:35 2009 -0400
description:
quota: Fixed compiling with older automakes.

diffstat:

1 file changed, 4 insertions(+), 3 deletions(-)
src/plugins/quota/Makefile.am |    7 ++++---

diffs (20 lines):

diff -r f850d37fae04 -r 66040bffc1a5 src/plugins/quota/Makefile.am
--- a/src/plugins/quota/Makefile.am	Thu Jul 09 22:56:51 2009 -0400
+++ b/src/plugins/quota/Makefile.am	Fri Jul 10 11:08:35 2009 -0400
@@ -37,12 +37,13 @@ RQUOTA_XDR = rquota_xdr.c
 #RQUOTA_X = /usr/include/rpcsvc/rquota.x
 RQUOTA_X = $(srcdir)/rquota.x
 rquota_xdr.c: Makefile $(RQUOTA_X)
-	if [ "$(builddir)" != "" ] && [ "$(srcdir)" != "$(builddir)" ]; then \
-	  cp $(RQUOTA_X) $(builddir); \
+	if [ "$(builddir)" = "" ]; then dir="."; else dir="$(builddir)"; fi; \
+	if [ "$(srcdir)" != "$$dir" ]; then \
+	  cp $(RQUOTA_X) $$dir; \
 	fi; \
 	(echo '#include "lib.h"'; \
 	 echo '#include <rpc/rpc.h>'; \
-	 $(RPCGEN) -c $(builddir)/rquota.x | \
+	 $(RPCGEN) -c $$dir/rquota.x | \
 	  sed -e 's/IXDR_PUT/(void)IXDR_PUT/g' \
 	    -e 's,/usr/include/rpcsvc/rquota.h,rquota.h,' \
 	    -e 's/int32_t \*buf/int32_t *buf ATTR_UNUSED/' \


More information about the dovecot-cvs mailing list