diff options
author | Paul Smith <psmith@gnu.org> | 2000-01-22 08:57:17 +0000 |
---|---|---|
committer | Paul Smith <psmith@gnu.org> | 2000-01-22 08:57:17 +0000 |
commit | 2fd5b943d10664ddd815348e86b082aa2c5d2bfb (patch) | |
tree | cbaa9ce561306ae1d2c547d25d66c1494fbed0a2 /make.h | |
parent | 74fca88bf3cfc802308018faf69b0231876c633c (diff) | |
download | gunmake-2fd5b943d10664ddd815348e86b082aa2c5d2bfb.tar.gz |
* Implement GNU gettext internationalization support in GNU make.
Diffstat (limited to 'make.h')
-rw-r--r-- | make.h | 24 |
1 files changed, 19 insertions, 5 deletions
@@ -40,11 +40,25 @@ Boston, MA 02111-1307, USA. */ #endif /* C++ or ANSI C. */ -/* For now, set gettext macro to a no-op. */ -#undef _ -#undef N_ -#define _(s) s -#define N_(s) s +#if HAVE_LOCALE_H +# include <locale.h> +#endif +#if !HAVE_SETLOCALE +# define setlocale(Category, Locale) /* empty */ +#endif + +#if ENABLE_NLS +# include <libintl.h> +# define _(Text) gettext (Text) +#else +# undef bindtextdomain +# define bindtextdomain(Domain, Directory) /* empty */ +# undef textdomain +# define textdomain(Domain) /* empty */ +# define _(Text) Text +# define gettext(Text) Text +#endif +#define N_(Text) Text #ifdef CRAY |