2 # Copyright (C) 2006 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
9 if [ -f $(TMP_DIR)/.prereq-error ]; then \
11 cat $(TMP_DIR)/.prereq-error; \
12 rm -f $(TMP_DIR)/.prereq-error; \
21 ifeq ($$(CHECK_$(1)),)
25 echo -n "Checking '$(1)'... "
26 if $(NO_TRACE_MAKE) -f $(firstword $(MAKEFILE_LIST)) check-$(1) >/dev/null 2>/dev/null; then \
30 echo -e "$(PKG_NAME): $(strip $(2))" | perl -ne 's/\\\s*/\n/g,print' >> $(TMP_DIR)/.prereq-error; \
37 .SILENT: prereq-$(1) check-$(1)
47 $$(eval $$(call Require,$(1),$(2)))