]> git.ipfire.org Git - thirdparty/krb5.git/commitdiff
Make localedir work in build with autoconf 2.5x
authorGreg Hudson <ghudson@mit.edu>
Mon, 19 Mar 2012 04:40:52 +0000 (04:40 +0000)
committerTom Yu <tlyu@mit.edu>
Tue, 15 May 2012 20:22:45 +0000 (16:22 -0400)
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

index 8c786764e1bc033381383307da2d31d16d295485..81eca47937e1b50f2c573aeb4f35ad4d6f0f8da0 100644 (file)
@@ -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(.