I use a little hack to find the appropriate apxs, you need csh for tha though, but that is installed on almost any unix:
APXS := $(wildcard $(shell csh -c "which apxs2" 2>/dev/null)) APXS := $(if $(APXS),$(APXS),$(wildcard $(shell csh -c "which apxs" 2>/dev/null))) Jan Schukat
