#!/bin/sh# Variable declarationprefix='@prefix@'datarootdir='@datarootdir@'exec_prefix="`eval echo @exec_prefix@`"phpdir="`eval echo @libdir@`/build"includedir="`eval echo @includedir@`/php"builddir="`pwd`"SED="@SED@"FILES_BUILD="php.m4 shtool libtool.m4 ax_check_compile_flag.m4 ax_gcc_func_attribute.m4 php_cxx_compile_stdcxx.m4 pkg.m4 config.guess config.sub ltmain.sh Makefile.global"FILES="run-tests*.php"CLEAN_FILES="$FILES *.o *.lo *.la .libs/ build/ modules/ \config.nice configure configure.ac \config.h config.h.in conftest* libtool config.cache autom4te.cache/ \config.log config.status Makefile Makefile.fragments Makefile.objects confdefs.h \run-tests*.php tests/*.diff tests/*.exp tests/*.log tests/*.out tests/*.php"# function declarationphpize_usage(){echo "Usage: 0ドル [--clean|--help|--version|-v]"}phpize_no_configm4(){if test $@ -eq 1; thenclean=" --clean"fiecho "Cannot find config.m4. "echo "Make sure that you run '0ドル$clean' in the top level source directory of the module"echo}phpize_clean(){echo "Cleaning.."for i in $CLEAN_FILES; doif test -f "$i"; thenrm -f $ielif test -d "$i"; thenrm -rf $ifidone}phpize_check_configm4(){if test ! -r config.m4; thenphpize_no_configm4 $@exit 1fi}phpize_get_api_numbers(){# extracting API NOs:PHP_API_VERSION=`grep '#define PHP_API_VERSION' $includedir/main/php.h|$SED 's/#define PHP_API_VERSION//'`ZEND_MODULE_API_NO=`grep '#define ZEND_MODULE_API_NO' $includedir/Zend/zend_modules.h|$SED 's/#define ZEND_MODULE_API_NO//'`ZEND_EXTENSION_API_NO=`grep '#define ZEND_EXTENSION_API_NO' $includedir/Zend/zend_extensions.h|$SED 's/#define ZEND_EXTENSION_API_NO//'`}phpize_print_api_numbers(){phpize_get_api_numbersecho "Configuring for:"echo "PHP Api Version: "$PHP_API_VERSIONecho "Zend Module Api No: "$ZEND_MODULE_API_NOecho "Zend Extension Api No: "$ZEND_EXTENSION_API_NO}phpize_check_build_files(){if test ! -d "$phpdir"; thencat <<EOFCannot find build files at '$phpdir'. Please check your PHP installation.EOFexit 1ficase "$phpdir" in*\ * | *\ *)cat <<EOFInvalid source path '$phpdir'. Whitespace is not allowed in source path.EOFexit 1;;esaccase "$builddir" in*\ * | *\ *)cat <<EOFInvalid build path '$builddir'. Whitespace is not allowed in build path.EOFexit 1;;esac}phpize_check_shtool(){test -x "$builddir/build/shtool" || chmod +x "$builddir/build/shtool"if test ! -x "$builddir/build/shtool"; thencat <<EOFshtool at '$builddir/build/shtool' does not exist or is not executable.Make sure that the file exists and is executable and then rerun this script.EOFexit 1elsephp_shtool=$builddir/build/shtoolfi}phpize_check_autotools(){test -z "$PHP_AUTOCONF" && PHP_AUTOCONF=autoconftest -z "$PHP_AUTOHEADER" && PHP_AUTOHEADER=autoheaderif test ! -x "$PHP_AUTOCONF" && test ! -x "`$php_shtool path $PHP_AUTOCONF`"; thencat <<EOFCannot find autoconf. Please check your autoconf installation and the\$PHP_AUTOCONF environment variable. Then, rerun this script.EOFexit 1fiif test ! -x "$PHP_AUTOHEADER" && test ! -x "`$php_shtool path $PHP_AUTOHEADER`"; thencat <<EOFCannot find autoheader. Please check your autoconf installation and the\$PHP_AUTOHEADER environment variable. Then, rerun this script.EOFexit 1fi}phpize_copy_files(){test -d build || mkdir build(cd "$phpdir" && cp $FILES_BUILD "$builddir"/build)(cd "$phpdir" && cp $FILES "$builddir")}phpize_replace_prefix(){$SED \-e "s#@prefix@#$prefix#" \< "$phpdir/phpize.m4" > configure.ac}phpize_autotools(){# Remove aclocal.m4 if present. It is automatically included by autoconf but# not used by the PHP build system since PHP 7.4.rm -f aclocal.m4$PHP_AUTOCONF || exit 1$PHP_AUTOHEADER || exit 1}# Main scriptcase "1ドル" in# Cleanup--clean)phpize_check_configm4 1phpize_cleanexit 0;;# Usage--help)phpize_usageexit 0;;# Version--version|-v)phpize_print_api_numbersexit 0;;# Default*)phpize_check_configm4 0phpize_check_build_filesphpize_print_api_numbersphpize_copy_filesphpize_replace_prefixphpize_check_shtoolphpize_check_autotoolsphpize_autotools;;esacexit 0
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。