Skip to content

Commit

Permalink
Fix Autoconf check for development versions (php#11532)
Browse files Browse the repository at this point in the history
When Autoconf version includes also development patch character (for
example, 2.72c), such as in unreleased Autoconf versions, this now
sets proper number for checking minimum required Autoconf version.
  • Loading branch information
petk authored Jul 18, 2023
1 parent c322da0 commit 700f691
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion buildconf
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ echo "buildconf: Checking installation"
min_version=$(sed -n 's/AC_PREREQ(\[\(.*\)\])/\1/p' configure.ac)

# Check if autoconf exists.
ac_version=$($PHP_AUTOCONF --version 2>/dev/null|head -n 1|sed -e 's/^[^0-9]*//' -e 's/[a-z]* *$//')
ac_version=$($PHP_AUTOCONF --version 2>/dev/null|head -n 1|sed -e 's/^[^0-9]*//' -e 's/[^0-9.]*$//')

if test -z "$ac_version"; then
echo "buildconf: autoconf not found." >&2
Expand Down

0 comments on commit 700f691

Please sign in to comment.