package/config: add gettext helper

From Bernhards tree (2b693d78)
This commit is contained in:
Peter Korsgaard 2008-06-19 19:06:08 +00:00
parent e31844e307
commit 9991e8c7fb

14
package/config/check.sh Executable file
View File

@ -0,0 +1,14 @@
#!/bin/sh
# Needed for systems without gettext
$* -xc -o /dev/null - > /dev/null 2>&1 << EOF
#include <libintl.h>
int main()
{
gettext("");
return 0;
}
EOF
if [ ! "$?" -eq "0" ]; then
echo -DKBUILD_NO_NLS;
fi