kconfig/check-gettext.sh
author "Horst Kronstorfer" <horst.kronstorfer@aon.at>
Sat Jan 08 18:07:02 2011 +0100 (2011-01-08)
branch1.9
changeset 2258 587e1dd6d423
permissions -rw-r--r--
debug/ltrace: fix building for mips

ltrace 0.5.3 currently fails to build for target mips because MY_TARGET
(introduced by patches/ltrace/0.5.3/150-allow-configurable-arch.patch)
is set to 'mips' via CT_ARCH, while the mips specific stuff in ltrace
(0.5.3) is stored under sysdeps/linux-gnu/mipsel:

result: *** No rule to make target `mips/arch.h', needed by `sysdep.h'.
Stop.

The following patch fixes this issue

Signed-off-by: "Horst Kronstorfer" <horst.kronstorfer@aon.at>
[yann.morin.1998@anciens.enib.fr: reformat commit log]
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
(transplanted from 2115901c7f07181d92ddbd7dd7ebeaa72e4fb176)
yann@943
     1
#!/bin/sh
yann@943
     2
# Needed for systems without gettext
yann@943
     3
$* -xc -o /dev/null - > /dev/null 2>&1 << EOF
yann@943
     4
#include <libintl.h>
yann@943
     5
int main()
yann@943
     6
{
yann@943
     7
	gettext("");
yann@943
     8
	return 0;
yann@943
     9
}
yann@943
    10
EOF
yann@943
    11
if [ ! "$?" -eq "0"  ]; then
yann@943
    12
	echo -DKBUILD_NO_NLS;
yann@943
    13
fi
yann@943
    14