1
0
mirror of https://github.com/php/php-src.git synced 2026-03-24 00:02:20 +01:00

Autotools: Add min-version argument to PHP_PROG_PHP macro (#15477)

This makes a bit simpler to use this macro by optionally passing the
required minimum PHP version. If version is not passed it falls back
to 7.4 as before. Minimum version also added to configure.ac.
This commit is contained in:
Peter Kokot
2024-08-22 17:30:08 +02:00
committed by GitHub
parent 4e193b4113
commit 1b3c204033
3 changed files with 24 additions and 23 deletions

View File

@@ -148,7 +148,8 @@ PHP_RUNPATH_SWITCH
dnl Checks for some support/generator progs.
PHP_PROG_BISON([3.0.0])
PHP_PROG_RE2C([1.0.3], [--no-generation-date])
PHP_PROG_PHP()
dnl Find installed PHP. Minimum supported version for gen_stub.php is PHP 7.4.
PHP_PROG_PHP([7.4])
PHP_ARG_ENABLE([re2c-cgoto],
[whether to enable computed goto extension with re2c],