mirror of
https://github.com/php/php-src.git
synced 2025-08-15 21:48:51 +02:00

On Windows, phpize happily builds configure even if there is no config.w32, but running configure then error with "Must be run from the root of the extension source". This is confusing. We bring phpize's behavior on par with POSIX systems, where the missing config.m4 is detected and reported right away.
11 lines
314 B
Batchfile
11 lines
314 B
Batchfile
@echo off
|
|
SET PHP_BUILDCONF_PATH=%~dp0
|
|
cscript /nologo /e:jscript %PHP_BUILDCONF_PATH%\script\phpize.js %*
|
|
IF ERRORLEVEL 0 exit /b 3
|
|
IF NOT EXIST configure.bat (
|
|
echo Error generating configure script, configure script was not copied
|
|
exit /b 3
|
|
) ELSE (
|
|
echo Now run 'configure --help'
|
|
)
|
|
SET PHP_BUILDCONF_PATH=
|