/[linux-patches]/genpatches-2.6/tags/2.6.14-6/1910_kconfig-no-nls.patch
Gentoo

Contents of /genpatches-2.6/tags/2.6.14-6/1910_kconfig-no-nls.patch

Parent Directory Parent Directory | Revision Log Revision Log


Revision 233 - (show annotations) (download)
Thu Dec 15 16:43:31 2005 UTC (12 years, 8 months ago) by dsd
File size: 1376 byte(s)
2.6.14-6 release
1 diff -Naur linux-2.6.14_rc2.orig/scripts/kconfig/Makefile linux-2.6.14_rc2/scripts/kconfig/Makefile
2 --- linux-2.6.14_rc2.orig/scripts/kconfig/Makefile 2005-11-06 04:13:01 +0000
3 +++ linux-2.6.14_rc2/scripts/kconfig/Makefile 2005-11-18 03:52:03 +0000
4 @@ -116,6 +116,15 @@
5 clean-files := lkc_defs.h qconf.moc .tmp_qtcheck \
6 .tmp_gtkcheck zconf.tab.c zconf.tab.h lex.zconf.c
7
8 +# Needed for systems without gettext
9 +KBUILD_HAVE_NLS := $(shell \
10 + if echo "\#include <libintl.h>" | $(HOSTCC) $(HOSTCFLAGS) -E - > /dev/null 2>&1 ; \
11 + then echo yes ; \
12 + else echo no ; fi)
13 +ifeq ($(KBUILD_HAVE_NLS),no)
14 +HOSTCFLAGS += -DKBUILD_NO_NLS
15 +endif
16 +
17 # generated files seem to need this to find local include files
18 HOSTCFLAGS_lex.zconf.o := -I$(src)
19 HOSTCFLAGS_zconf.tab.o := -I$(src)
20 diff -Naur linux-2.6.14_rc2.orig/scripts/kconfig/lkc.h linux-2.6.14_rc2/scripts/kconfig/lkc.h
21 --- linux-2.6.14_rc2.orig/scripts/kconfig/lkc.h 2005-11-06 04:13:01 +0000
22 +++ linux-2.6.14_rc2/scripts/kconfig/lkc.h 2005-11-18 02:23:07 +0000
23 @@ -8,7 +8,13 @@
24
25 #include "expr.h"
26
27 -#include <libintl.h>
28 +#ifndef KBUILD_NO_NLS
29 +# include <libintl.h>
30 +#else
31 +# define gettext(Msgid) ((const char *) (Msgid))
32 +# define textdomain(Domainname) ((const char *) (Domainname))
33 +# define bindtextdomain(Domainname, Dirname) ((const char *) (Dirname))
34 +#endif
35
36 #ifdef __cplusplus
37 extern "C" {

  ViewVC Help
Powered by ViewVC 1.1.20