From 582a20b74731ac9506f5c518ffc3f94a49d39d00 Mon Sep 17 00:00:00 2001 From: Samuel Thibault Date: Sun, 1 Jul 2012 21:33:00 +0000 Subject: Use path to x11 locales from x11.pc instead of our prefix * configure.in (X11_PREFIX): Define from x11.pc's prefix variable. * console-client/xkb/compose.c (get_compile_file_for_locale): Use X11_PREFIX "/share" instead of DATADIR. --- console-client/xkb/compose.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'console-client') diff --git a/console-client/xkb/compose.c b/console-client/xkb/compose.c index 65854e14..78bce7ff 100644 --- a/console-client/xkb/compose.c +++ b/console-client/xkb/compose.c @@ -548,7 +548,7 @@ get_compose_file_for_locale() } context.value = setlocale (LC_ALL, NULL); - map_iterate (DATADIR "/X11/locale/locale.alias", match_left_set_right, &context); + map_iterate (X11_PREFIX "/share/X11/locale/locale.alias", match_left_set_right, &context); to_be_freed = context.result; if (context.result != NULL) @@ -557,12 +557,12 @@ get_compose_file_for_locale() context.value = context.result; } context.result = NULL; - map_iterate (DATADIR "/X11/locale/compose.dir", match_right_set_left, &context); + map_iterate (X11_PREFIX "/share/X11/locale/compose.dir", match_right_set_left, &context); free (to_be_freed); /* compose.dir contains relative paths to compose files. */ to_be_freed = context.result; - err = asprintf (&context.result, DATADIR "/X11/locale/%s", context.result); + err = asprintf (&context.result, X11_PREFIX "/share/X11/locale/%s", context.result); if (err == -1) context.result = NULL; -- cgit v1.2.3