kconfig/check.sh
author Austin Morton <austinpmorton@gmail.com>
Sun Aug 12 07:45:42 2012 -0400 (2012-08-12)
changeset 3048 2858a24a5846
parent 943 1cca90ce0481
permissions -rw-r--r--
scripts: add option to only use the mirror

Currently, if downloads are forbidden, the mirror is still tried for.

Change this way:
- if downlaods forbidden, do not try neither upstream locations nor mirror
- add option to only use the mirror, and avoid upstream locations

Signed-off-by: Austin Morton <austinpmorton@gmail.com>
[yann.morin.1998@free.fr: broaden the if USE_MIRRORto enclode mirror location]
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
     1 #!/bin/sh
     2 # Needed for systems without gettext
     3 $* -xc -o /dev/null - > /dev/null 2>&1 << EOF
     4 #include <libintl.h>
     5 int main()
     6 {
     7 	gettext("");
     8 	return 0;
     9 }
    10 EOF
    11 if [ ! "$?" -eq "0"  ]; then
    12 	echo -DKBUILD_NO_NLS;
    13 fi
    14