phpのconfigureオプションを確認
phpのビルド(コンパイル)時の設定を確認しようとしたときの覚書。
環境: FreeBSD 14.1-RELEASE-p6, PHP 8.3.6
確認コマンド
# php-config --configure-options
改行に置換して見やすくする。
# php-config --configure-options | sed -e 's/ --/\n--/g'
--disable-all--program-prefix=--with-config-file-scan-dir=/usr/local/etc/php--with-layout=GNU--with-libxml--with-openssl--with-password-argon2=/usr/local--enable-dtrace--enable-embed--enable-fpm--with-fpm-group=www--with-fpm-user=www--enable-mysqlnd--with-external-pcre=/usr/local--prefix=/usr/local--localstatedir=/var--mandir=/usr/local/share/man--infodir=/usr/local/share/info/--build=amd64-portbld-freebsd14.0 build_alias=amd64-portbld-freebsd14.0 PKG_CONFIG=pkgconf PKG_CONFIG_LIBDIR=/wrkdirs/usr/ports/lang/php83/work/.pkgconfig:/usr/local/libdata/pkgconfig:/usr/local/share/pkgconfig:/usr/libdata/pkgconfig CFLAGS=-O2 -pipe -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing LDFLAGS= -L/usr/lib -lcrypto -lssl -fstack-protector-strong CPP=cpp CXXFLAGS=-O2 -pipe -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing -isystem /usr/local/include OPENSSL_CFLAGS=-I/usr/include OPENSSL_LIBS=-L/usr/lib -lssl -lcrypto