krb5 commit [krb5-1.10]: Make localedir work in build with autoconf 2.5x
Tom Yu
tlyu at MIT.EDU
Tue May 15 16:51:36 EDT 2012
https://github.com/krb5/krb5/commit/d6186968eaaa0ae4da5605d1f14c1eb38d5f7ad5
commit d6186968eaaa0ae4da5605d1f14c1eb38d5f7ad5
Author: Greg Hudson <ghudson at mit.edu>
Date: Mon Mar 19 04:40:52 2012 +0000
Make localedir work in build with autoconf 2.5x
autoconf 2.5x does not define localedir, so we have to detect that and
do it ourselves.
(backported from commit 6abd6ef1d125af12dcf061d677e4315195be4e27)
ticket: 7095
version_fixed: 1.10.2
src/configure.in | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
diff --git a/src/configure.in b/src/configure.in
index 8c78676..81eca47 100644
--- a/src/configure.in
+++ b/src/configure.in
@@ -1240,6 +1240,12 @@ AC_SUBST([VERTO_CFLAGS])
AC_SUBST([VERTO_LIBS])
AC_SUBST([VERTO_VERSION])
+# Make localedir work in autoconf 2.5x.
+if test "${localedir+set}" != set; then
+ localedir='$(datadir)/locale'
+fi
+AC_SUBST(localedir)
+
AC_CONFIG_FILES(krb5-config, [chmod +x krb5-config])
V5_AC_OUTPUT_MAKEFILE(.
More information about the cvs-krb5
mailing list