From: Peter Korsgaard Date: Thu, 19 Jun 2008 19:06:08 +0000 (-0000) Subject: package/config: add gettext helper X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=9991e8c7fbd18bf12af66b7cf040d2d7de3ed6c0;p=buildroot.git package/config: add gettext helper From Bernhards tree (2b693d78) --- diff --git a/package/config/check.sh b/package/config/check.sh new file mode 100755 index 0000000000..fa59cbf9d6 --- /dev/null +++ b/package/config/check.sh @@ -0,0 +1,14 @@ +#!/bin/sh +# Needed for systems without gettext +$* -xc -o /dev/null - > /dev/null 2>&1 << EOF +#include +int main() +{ + gettext(""); + return 0; +} +EOF +if [ ! "$?" -eq "0" ]; then + echo -DKBUILD_NO_NLS; +fi +