open-src/lib/libX11/locale.paths.patch
author Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
Tue, 17 Sep 2013 21:52:38 -0700
changeset 1408 17c15e2662ba
parent 1301 371a43cad701
permissions -rw-r--r--
17472475 Mass minor bugfix update to X.Org upstream release [Sep. 2013 edition] 15702480 SUNBT7027122 imake should use /usr/lib/cpp instead of /usr/ccs/lib/cpp

Allow passing multi-directory paths to configure search for locale files

diff --git a/configure.ac b/configure.ac
index 95ab955..203a8eb 100644
--- a/configure.ac
+++ b/configure.ac
@@ -423,11 +423,16 @@ AC_ARG_WITH(locale-lib-dir,	AS_HELP_STRING([--with-locale-lib-dir=DIR],
  [Directory where locale libraries files are installed (default: $libdir/X11/locale)]),
 				[ X11_LOCALELIBDIR="$withval" ],
 				[ X11_LOCALELIBDIR="${X11_LIBDIR}/locale" ])
-AX_DEFINE_DIR(XLOCALELIBDIR, X11_LOCALELIBDIR, [Location of libX11 locale libraries])
+if test "x$XLOCALELIBDIR" = "x" ; then
+	XLOCALELIBDIR="${X11_LOCALELIBDIR}"
+fi
+AX_DEFINE_DIR(XLOCALELIBDIR, XLOCALELIBDIR, [Location of libX11 locale libraries])
 AC_SUBST(X11_LOCALELIBDIR)
 
-X11_LOCALEDIR="${X11_LOCALEDATADIR}"
-AX_DEFINE_DIR(XLOCALEDIR, X11_LOCALEDIR, [Location of libX11 locale data])
+if test "x$XLOCALEDIR" = "x" ; then
+	XLOCALEDIR="${X11_LOCALEDATADIR}"
+fi
+AX_DEFINE_DIR(XLOCALEDIR, XLOCALEDIR, [Location of libX11 locale data])
 AC_SUBST(X11_LOCALEDIR)
 
 locales="\