buildrootschalter/package/config/check.sh
Peter Korsgaard 9991e8c7fb package/config: add gettext helper
From Bernhards tree (2b693d78)
2008-06-19 19:06:08 +00:00

15 lines
214 B
Bash
Executable File

#!/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