diff options
author | Mike Frysinger <vapier@gentoo.org> | 2016-12-22 17:34:28 -0500 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2016-12-22 17:36:01 -0500 |
commit | acab2831eac296a423c8204013f0290f2c4f3b5b (patch) | |
tree | 54eacda1f740b4473460a44088d38b7fe4113316 /app-crypt/mit-krb5/files | |
parent | sci-mathematics/octave: Fix QScintilla detection for Qt5 (diff) | |
download | gentoo-acab2831eac296a423c8204013f0290f2c4f3b5b.tar.gz gentoo-acab2831eac296a423c8204013f0290f2c4f3b5b.tar.bz2 gentoo-acab2831eac296a423c8204013f0290f2c4f3b5b.zip |
app-crypt/mit-krb5: respect USE=nls
Patch from Chromium OS.
Diffstat (limited to 'app-crypt/mit-krb5/files')
-rw-r--r-- | app-crypt/mit-krb5/files/mit-krb5-1.14.4-disable-nls.patch | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/app-crypt/mit-krb5/files/mit-krb5-1.14.4-disable-nls.patch b/app-crypt/mit-krb5/files/mit-krb5-1.14.4-disable-nls.patch new file mode 100644 index 000000000000..63cb0fc0c55f --- /dev/null +++ b/app-crypt/mit-krb5/files/mit-krb5-1.14.4-disable-nls.patch @@ -0,0 +1,45 @@ +Adds support for --(enable|disable)-nls configure option. + +This enables\disables the generation of language files and +sets the ENABLE_NLS define appropriately. + +Default value is enabled to preserve current behavior. + +Patch by Zentaro Kavanagh <zentaro@google.com> +https://crbug.com/654842 + +https://github.com/krb5/krb5/pull/584 + +--- src/configure.in ++++ src/configure.in +@@ -118,15 +118,22 @@ + ]) + AC_SUBST(LIBUTIL) + +-AC_CHECK_HEADER(libintl.h, [ +- AC_SEARCH_LIBS(dgettext, intl, [ +- AC_DEFINE(ENABLE_NLS, 1, +- [Define if translation functions should be used.])])]) +- +-AC_CHECK_PROG(MSGFMT,msgfmt,msgfmt) ++# Determine if NLS is desired and supported. + po= +-if test x"$MSGFMT" != x; then +- po=po ++AC_ARG_ENABLE([nls], ++AC_HELP_STRING([--disable-nls], ++ [Disable Native Language Support(NLS).]), , ++ enableval=yes) ++if test "$enableval" = yes ; then ++ AC_CHECK_HEADER(libintl.h, [ ++ AC_SEARCH_LIBS(dgettext, intl, [ ++ AC_DEFINE(ENABLE_NLS, 1, ++ [Define if translation functions should be used.])])]) ++ ++ AC_CHECK_PROG(MSGFMT,msgfmt,msgfmt) ++ if test x"$MSGFMT" != x; then ++ po=po ++ fi + fi + AC_SUBST(po) + |