mirror of
https://github.com/php/php-src.git
synced 2025-08-16 05:58:45 +02:00
- Made it possible to do "make test" for phpized extensions
This commit is contained in:
parent
0f2986fe9d
commit
ee5fd96e37
7 changed files with 30 additions and 14 deletions
|
@ -1,12 +1,17 @@
|
|||
#! /bin/sh
|
||||
|
||||
prefix="@prefix@"
|
||||
exec_prefix="@exec_prefix@"
|
||||
version="@PHP_VERSION@"
|
||||
includedir="@includedir@/php"
|
||||
includes="-I$includedir -I$includedir/main -I$includedir/TSRM -I$includedir/Zend"
|
||||
ldflags="@PHP_LDFLAGS@"
|
||||
libs="@EXTRA_LIBS@"
|
||||
extension_dir='@EXTENSION_DIR@'
|
||||
program_prefix="@program_prefix@"
|
||||
program_suffix="@program_suffix@"
|
||||
exe_extension="@EXEEXT@"
|
||||
php_binary="@bindir@/${program_prefix}php${program_suffix}${exe_extension}"
|
||||
|
||||
case "$1" in
|
||||
--prefix)
|
||||
|
@ -19,10 +24,12 @@ case "$1" in
|
|||
echo $libs;;
|
||||
--extension-dir)
|
||||
echo $extension_dir;;
|
||||
--php-binary)
|
||||
echo $php_binary;;
|
||||
--version)
|
||||
echo $version;;
|
||||
*)
|
||||
echo "Usage: $0 [--prefix|--includes|--ldflags|--libs|--extension-dir|--version]"
|
||||
echo "Usage: $0 [--prefix|--includes|--ldflags|--libs|--extension-dir|--php-binary|--version]"
|
||||
exit 1;;
|
||||
esac
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue