mirror of
https://github.com/php/php-src.git
synced 2026-03-24 00:02:20 +01:00
Autotools: Quote and fix PHP_SELECT_SAPI arguments (#15118)
This macro once had also the 5th argument (the build target), which was
removed via 2a6da0f24c. This quotes all
PHP_SELECT_SAPI arguments and removes the redundant ones. The basic
macro usage help text is moved to the macros section from the obsolete
docs file.
This commit is contained in:
@@ -92,23 +92,6 @@ Make sure to prefix *all* relative paths correctly with either `$(builddir)` or
|
||||
anymore, we must use either absolute paths or relative ones to the top
|
||||
build-directory. Correct prefixing ensures that.
|
||||
|
||||
### SAPI developers
|
||||
|
||||
Instead of using `PHP_SAPI=foo/PHP_BUILD_XYZ`, you will need to type
|
||||
|
||||
```m4
|
||||
PHP_SELECT_SAPI(name, type, sources.c)
|
||||
```
|
||||
|
||||
I.e. specify the source-code files as above and also pass the information
|
||||
regarding how PHP is supposed to be built (shared module, program, etc).
|
||||
|
||||
For example for APXS:
|
||||
|
||||
```m4
|
||||
PHP_SELECT_SAPI(apache, shared, sapi_apache.c mod_php.c php_apache.c)
|
||||
```
|
||||
|
||||
## General info
|
||||
|
||||
The foundation for the new system is the flexible handling of sources and their
|
||||
|
||||
Reference in New Issue
Block a user