svn commit: r252457 - head/usr.bin/svn/lib/libapr_util
Peter Wemm
peter at FreeBSD.org
Mon Jul 1 07:07:36 UTC 2013
Author: peter
Date: Mon Jul 1 07:07:35 2013
New Revision: 252457
URL: http://svnweb.freebsd.org/changeset/base/252457
Log:
If you've compiled your base system with WITH_ICONV, then use it for svn
alongside the other consumers (bsdtar, csh etc).
The svnlite build gets upset when it hits non-ascii characters in
inconvenient places.
Modified:
head/usr.bin/svn/lib/libapr_util/Makefile
head/usr.bin/svn/lib/libapr_util/apu.h
Modified: head/usr.bin/svn/lib/libapr_util/Makefile
==============================================================================
--- head/usr.bin/svn/lib/libapr_util/Makefile Mon Jul 1 07:03:38 2013 (r252456)
+++ head/usr.bin/svn/lib/libapr_util/Makefile Mon Jul 1 07:07:35 2013 (r252457)
@@ -28,5 +28,11 @@ CFLAGS+= -DHAVE_CONFIG_H \
-I${APR}/include/arch/unix \
-I${APR}/include
+.include <bsd.own.mk>
+
+.if ${MK_ICONV} == "yes"
+CFLAGS+= -DHAVE_ICONV_H=1 -DAPU_HAVE_ICONV=1
+.endif
+
.include <bsd.lib.mk>
Modified: head/usr.bin/svn/lib/libapr_util/apu.h
==============================================================================
--- head/usr.bin/svn/lib/libapr_util/apu.h Mon Jul 1 07:03:38 2013 (r252456)
+++ head/usr.bin/svn/lib/libapr_util/apu.h Mon Jul 1 07:07:35 2013 (r252457)
@@ -107,8 +107,12 @@
#define APU_HAVE_OPENSSL 0
#define APU_HAVE_NSS 0
+#ifndef APU_HAVE_APR_ICONV
#define APU_HAVE_APR_ICONV 0
+#endif
+#ifndef APU_HAVE_ICONV
#define APU_HAVE_ICONV 0
+#endif
#define APR_HAS_XLATE (APU_HAVE_APR_ICONV || APU_HAVE_ICONV)
#endif /* APU_H */
More information about the svn-src-head
mailing list