endif
exec_prefix ?= $(prefix)
bindir = $(exec_prefix)/bin
-srcdir := $(prefix)/src
+srcdir = $(prefix)/src
ifdef TRAVIS_BUILD_DIR
curdir ?= $(TRAVIS_BUILD_DIR)
else
.PHONY: check
check: $(PHP_RELEASES)
@if test -z "$(PHP)"; then echo "No php version specified, e.g. PHP=5.6"; exit 1; fi
+ @if test -z "$(PHP_VERSION)"; then echo "No PHP version akin to $(PHP) available"; exit 1; fi
if test -d $(srcdir)/php-$(PHP_VERSION)/.git; then cd $(srcdir)/php-$(PHP_VERSION)/; git pull; fi
.PHONY: reconf
fi; \
else \
mkdir -p $(PECL_DIR); \
- curl -Ss $(PECL_MIRROR)/$(PECL_EXTENSION)$(if $(PECL_VERSION),/$(PECL_VERSION)) \
+ curl -LSs $(PECL_MIRROR)/$(PECL_EXTENSION)$(if $(PECL_VERSION),/$(PECL_VERSION)) \
| tar xz --strip-components 1 -C $(PECL_DIR); \
fi