diff options
author | Alan Coopersmith <alan.coopersmith@sun.com> | 2010-01-15 22:20:56 -0800 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@sun.com> | 2010-01-29 22:39:19 -0800 |
commit | 12a1392fc96e32ed6d55208a2a7fc040617a9cb7 (patch) | |
tree | 51f01517b3aed8af3773e0aad43603152f73a2b1 /xfd.c | |
parent | b83ec6e3a79e30b8a7a3947679221ad76441b27f (diff) |
Integrate gettext support with autotools build system
Signed-off-by: Alan Coopersmith <alan.coopersmith@sun.com>
Diffstat (limited to 'xfd.c')
-rw-r--r-- | xfd.c | 14 |
1 files changed, 11 insertions, 3 deletions
@@ -28,6 +28,10 @@ in this Software without prior written authorization from The Open Group. */ /* $XFree86: xc/programs/xfd/xfd.c,v 1.8 2003/02/20 02:56:40 dawes Exp $ */ +#ifdef HAVE_CONFIG_H +# include "config.h" +#endif + #include <X11/Intrinsic.h> #include <X11/StringDefs.h> #include <X11/Xos.h> @@ -40,8 +44,12 @@ in this Software without prior written authorization from The Open Group. #include <X11/Xaw/Command.h> #include <stdio.h> #include <stdlib.h> -#include <libintl.h> -#include <locale.h> +#ifdef USE_GETTEXT +# include <X11/Xlocale.h> +# include <libintl.h> +#else +# define gettext(a) (a) +#endif #include "grid.h" #ifdef XRENDER #include <X11/Xft/Xft.h> @@ -192,7 +200,7 @@ main(int argc, char *argv[]) /* mainly for debugging */ if ((domaindir = getenv ("TEXTDOMAINDIR")) == NULL) { - domaindir = "/usr/share/locale"; + domaindir = LOCALEDIR; } bindtextdomain ("xfd", domaindir); |