#! /bin/sh SED="/usr/bin/sed" prefix="/usr/local/php84" datarootdir="/usr/local/php84/php" exec_prefix="${prefix}" version="8.4.1" vernum="80401" include_dir="${prefix}/include/php" lib_dir="${exec_prefix}/lib" includes="-I$include_dir -I$include_dir/main -I$include_dir/TSRM -I$include_dir/Zend -I$include_dir/ext -I$include_dir/ext/date/lib" ldflags="" libs=" -lstdc++ -lm -lreadline -lxml2 -lsqlite3 -licuio -licui18n -licuuc -licudata -lonig -lsqlite3 -lsodium -largon2 -lrt -ldl -lz -lssl -lcrypto" extension_dir="/usr/local/php84/lib/php/extensions/no-debug-non-zts-20240924" man_dir=`eval echo ${datarootdir}/man` program_prefix="" program_suffix="" exe_extension="" php_cli_binary=NONE php_cgi_binary=NONE configure_options=" '--prefix=/usr/local/php84' '--datadir=/usr/local/php84/share' '--localstatedir=/usr/local/php84/var' '--disable-gcc-global-regs' '--without-pear' '--with-config-file-path=/etc/php84' '--with-config-file-scan-dir=/etc/php84/conf.d' '--with-zend-vm=GOTO' '--enable-cgi' '--enable-fpm' '--enable-hash' '--enable-intl' '--enable-json' '--enable-libxml=shared' '--enable-bcmath=shared' '--enable-calendar=shared' '--enable-ctype=shared' '--enable-dom=shared' '--enable-exif=shared' '--enable-fileinfo=shared' '--enable-filter' '--enable-ftp=shared' '--enable-gd=shared' '--with-jpeg' '--with-xpm' '--with-freetype' '--enable-mbstring' '--enable-mbregex' '--enable-mbregex-backtrack' '--enable-opcache' '--enable-pcntl=shared' '--enable-pdo' '--enable-phar=shared' '--enable-posix=shared' '--enable-session=shared' '--enable-shmop=shared' '--enable-simplexml=shared' '--enable-soap=shared' '--enable-sockets=shared' '--enable-sysvmsg=shared' '--enable-sysvsem=shared' '--enable-sysvshm=shared' '--enable-tokenizer=shared' '--enable-wddx=shared' '--enable-xml=shared' '--enable-xmlreader=shared' '--enable-xmlwriter=shared' '--with-gd=shared' '--with-jpeg-dir=/usr' '--with-png-dir=/usr' '--with-zlib-dir=/usr' '--with-xpm-dir=/usr' '--with-freetype-dir=/usr' '--with-webp' '--with-openssl=shared' '--with-kerberos' '--with-pcre-regex' '--with-pcre-jit' '--with-sqlite3' '--with-zlib=shared' '--with-bz2=shared' '--with-curl=shared' '--with-gettext=shared' '--with-gmp=shared' '--with-mhash=shared' '--with-iconv=shared' '--with-imap=shared' '--with-imap-ssl' '--with-mysql-sock=/No-MySQL-hostname-was-specified' '--with-mysqli=shared,mysqlnd' '--with-pdo-mysql=shared,mysqlnd' '--with-pdo-pgsql=shared' '--with-pdo-sqlite' '--with-pgsql=shared' '--with-pspell=shared' '--with-readline=shared' '--with-tidy=shared' '--with-xsl=shared' '--with-sodium' '--with-password-argon2=/usr' '--with-zip=shared'" php_sapis=" cli fpm phpdbg cgi" ini_dir="/etc/php84/conf.d" ini_path="/etc/php84" php_embed_type="" # Set php_cli_binary and php_cgi_binary if available for sapi in $php_sapis; do case $sapi in cli) php_cli_binary="${exec_prefix}/bin/${program_prefix}php${program_suffix}${exe_extension}" ;; cgi) php_cgi_binary="${exec_prefix}/bin/${program_prefix}php-cgi${program_suffix}${exe_extension}" ;; esac done # Determine which (if any) php binary is available if test "$php_cli_binary" != "NONE"; then php_binary="$php_cli_binary" else php_binary="$php_cgi_binary" fi # Set embed SAPI library path if test "$php_embed_type" = "shared"; then php_embed_lib=libphp.so elif test "$php_embed_type" = "static"; then php_embed_lib=libphp.a fi # Remove quotes configure_options=`echo $configure_options | $SED -e "s#'##g"` case "$1" in --prefix) echo $prefix;; --includes) echo $includes;; --ldflags) echo $ldflags;; --libs) echo $libs;; --extension-dir) echo $extension_dir;; --include-dir) echo $include_dir;; --lib-dir) echo $lib_dir;; --lib-embed) echo $php_embed_lib;; --php-binary) echo $php_binary;; --php-sapis) echo $php_sapis;; --configure-options) echo $configure_options;; --man-dir) echo $man_dir;; --ini-path) echo $ini_path;; --ini-dir) echo $ini_dir;; --version) echo $version;; --vernum) echo $vernum;; *) cat << EOF Usage: $0 [OPTION] Options: --prefix [$prefix] --includes [$includes] --ldflags [$ldflags] --libs [$libs] --extension-dir [$extension_dir] --include-dir [$include_dir] --lib-dir [$lib_dir] --lib-embed [$php_embed_lib] --man-dir [$man_dir] --php-binary [$php_binary] --php-sapis [$php_sapis] --ini-path [$ini_path] --ini-dir [$ini_dir] --configure-options [$configure_options] --version [$version] --vernum [$vernum] EOF exit 1;; esac exit 0