SHELL=/bin/sh
MYGREP=$(WXBASEDIR)/setup/general/mygrep
checkneeds:
	@if test "x$(NEEDED_DEFINES)" != x ; then \
	  RESULT=0 ; \
	  for each in $(NEEDED_DEFINES) xxx; do \
	    if test "$$each" != xxx ; then \
	      LINE=`$(MYGREP) " $$each " $(SETUP_DIR)/wx_setup.h \
	            | $(MYGREP) "#define" \
	            | $(MYGREP) "1" ` ; \
	      if test "x$$LINE" = x ; then \
	        echo "$$each needed to compile..."; \
	        RESULT=1 ; \
	      fi \
	    fi \
	  done ;\
	  exit $$RESULT; \
	fi

