From d7eaf278638568853add9b182a87efb5e8d9bc1d Mon Sep 17 00:00:00 2001 From: "Robb, Sam" Date: Sat, 4 Feb 2006 23:28:06 -0800 Subject: [PATCH] --- yaml --- r: 19816 b: refs/heads/master c: 5e375bc7d586e0df971734a5a5f1f080ffd89b68 h: refs/heads/master v: v3 --- [refs] | 2 +- trunk/scripts/kconfig/Makefile | 12 +++++++++++- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/[refs] b/[refs] index 0f99ed6be4bc..a5f5c0724b12 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 4be68a783d25b4dab0ef4077a4c6b13161a2d6e4 +refs/heads/master: 5e375bc7d586e0df971734a5a5f1f080ffd89b68 diff --git a/trunk/scripts/kconfig/Makefile b/trunk/scripts/kconfig/Makefile index 5760e057ecba..d64aae85c378 100644 --- a/trunk/scripts/kconfig/Makefile +++ b/trunk/scripts/kconfig/Makefile @@ -123,7 +123,17 @@ KBUILD_HAVE_NLS := $(shell \ then echo yes ; \ else echo no ; fi) ifeq ($(KBUILD_HAVE_NLS),no) -HOSTCFLAGS += -DKBUILD_NO_NLS + HOSTCFLAGS += -DKBUILD_NO_NLS +else + KBUILD_NEED_LINTL := $(shell \ + if echo -e "\#include \nint main(int a, char** b) { gettext(\"\"); return 0; }\n" | \ + $(HOSTCC) $(HOSTCFLAGS) -x c - -o /dev/null> /dev/null 2>&1 ; \ + then echo no ; \ + else echo yes ; fi) + ifeq ($(KBUILD_NEED_LINTL),yes) + HOSTLOADLIBES_conf += -lintl + HOSTLOADLIBES_mconf += -lintl + endif endif # generated files seem to need this to find local include files