diff options
author | Yuri Vasilevski <yvasilev@duke.math.cinvestav.mx> | 2005-10-30 18:03:20 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2005-10-30 20:37:28 -0500 |
commit | 70a6a0cb92f24fd6bbe2e75299168909f735676a (patch) | |
tree | d57dc83325198a74c3b190930f73cf7c5edff42e /scripts/kconfig/Makefile | |
parent | b39f72fef241ce0ce971ed21922b4d64aefaf916 (diff) |
[PATCH] fix build on nls free systems
I made a patch that detects if libintl.h (needed for nls) is present on the
host system and if it's not, it nls support is disabled by providing
dummies for the used nls functions.
This way if there is nls support on the host system the *config targets
will build according to Arnaldo Carvalho de Melo's i18n modifications, else
it just uses the original English messages.
I have also made a bug report at kernel's bugzilla:
http://bugzilla.kernel.org/show_bug.cgi?id=5501
And there is a discussion about this problem in Gentoo's bugzilla:
http://bugs.gentoo.org/show_bug.cgi?id=99810
Cc: Sam Ravnborg <sam@ravnborg.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'scripts/kconfig/Makefile')
-rw-r--r-- | scripts/kconfig/Makefile | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/scripts/kconfig/Makefile b/scripts/kconfig/Makefile index 2fcb244a9e18..0dd96919de3e 100644 --- a/scripts/kconfig/Makefile +++ b/scripts/kconfig/Makefile | |||
@@ -116,6 +116,15 @@ endif | |||
116 | clean-files := lkc_defs.h qconf.moc .tmp_qtcheck \ | 116 | clean-files := lkc_defs.h qconf.moc .tmp_qtcheck \ |
117 | .tmp_gtkcheck zconf.tab.c zconf.tab.h lex.zconf.c | 117 | .tmp_gtkcheck zconf.tab.c zconf.tab.h lex.zconf.c |
118 | 118 | ||
119 | # Needed for systems without gettext | ||
120 | KBUILD_HAVE_NLS := $(shell \ | ||
121 | if echo "\#include <libint.h>" | $(HOSTCC) $(HOSTCFLAGS) -E - > /dev/null 2>&1 ; \ | ||
122 | then echo yes ; \ | ||
123 | else echo no ; fi) | ||
124 | ifeq ($(KBUILD_HAVE_NLS),no) | ||
125 | HOSTCFLAGS += -DKBUILD_NO_NLS | ||
126 | endif | ||
127 | |||
119 | # generated files seem to need this to find local include files | 128 | # generated files seem to need this to find local include files |
120 | HOSTCFLAGS_lex.zconf.o := -I$(src) | 129 | HOSTCFLAGS_lex.zconf.o := -I$(src) |
121 | HOSTCFLAGS_zconf.tab.o := -I$(src) | 130 | HOSTCFLAGS_zconf.tab.o := -I$(src) |