Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

simplify config.m4 as PHP 7.4 is required #71

Merged
merged 1 commit into from
Dec 2, 2024

Conversation

remicollet
Copy link
Member

  • use PKG_CHECK_MODULES (php < 7.4 is not supported)
  • cleanup PHP_SETUP_LIBXML (no need for dependent action, defaults are fine)
  • cleanup PHP version check (php 5 is not supported for a long time)

@@ -93,7 +93,6 @@ Then you can pass libcurl prefix to the configure script for CURL and LIBXML res
during the configuration phase as shown here :

export PKG_CONFIG_PATH=/root/custom/software/lib/pkgconfig
export PATH=$PATH:/root/custom/software/bin
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Only needed to find xml2-config, which is no more used (pkg-config only)

config.m4 Show resolved Hide resolved
config.m4 Show resolved Hide resolved
@@ -115,7 +82,4 @@ if test "$PHP_SOLR" != "no"; then
$ext_shared,, [$COVERAGE_CFLAGS])
PHP_ADD_BUILD_DIR($abs_builddir/$subdir, 1)
PHP_SUBST(SOLR_SHARED_LIBADD)
], [
AC_MSG_ERROR([xml2-config not found. Please check your libxml2 installation.])
])
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Already raised by PHP_SETUP_LIBXML

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

shouldn't we have a check for libxml like curl?
if test -x "$PKG_CONFIG" && $PKG_CONFIG --exists libcurl

@remicollet

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I see, so PHP_SETUP_LIBXML, would do the check for the actual libxml2 ?

Copy link
Member Author

@remicollet remicollet May 23, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes, PHP_SETUP_LIBXML is enough (and xml2-config is no more used, since 7.4)

config.m4 Outdated
@@ -1,33 +1,18 @@
dnl config.m4 for the solr extension

PHP_ARG_ENABLE(solr, whether to enable the Solr extension,
[ --enable-solr Enable solr support])
[AS_HELP_STRING([--enable-solr], [Enable solr support])])
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ensure everything is properly aligned

@remicollet remicollet mentioned this pull request Jan 12, 2024
@omars44
Copy link
Collaborator

omars44 commented May 18, 2024

@remicollet please resolve the conflicts

@remicollet
Copy link
Member Author

Rebased

@omars44
Copy link
Collaborator

omars44 commented May 23, 2024

@remicollet shouldn't we have a check for libxml like curl?
if test -x "$PKG_CONFIG" && $PKG_CONFIG --exists libcurl

config.m4 Show resolved Hide resolved
config.m4 Show resolved Hide resolved
@@ -115,7 +82,4 @@ if test "$PHP_SOLR" != "no"; then
$ext_shared,, [$COVERAGE_CFLAGS])
PHP_ADD_BUILD_DIR($abs_builddir/$subdir, 1)
PHP_SUBST(SOLR_SHARED_LIBADD)
], [
AC_MSG_ERROR([xml2-config not found. Please check your libxml2 installation.])
])
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

shouldn't we have a check for libxml like curl?
if test -x "$PKG_CONFIG" && $PKG_CONFIG --exists libcurl

@remicollet

@bix0r bix0r merged commit 18a4ad9 into php:master Dec 2, 2024
25 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants