Skip to content

Autotools: Sync CS in opcache Capstone check #15084

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

Merged
merged 1 commit into from
Jul 24, 2024

Conversation

petk
Copy link
Member

@petk petk commented Jul 23, 2024

  • Added Capstone check message in configure log
  • PKG_CHECK_MODULES already errors out by default if Capstone is not found with a bit more informative message
  • Autoconf syntax used
  • HAVE_CAPSTONE help text synced and updated

- Added Capstone check message in configure log
- PKG_CHECK_MODULES already errors out by default if Capstone is not
  found with a bit more informative message
- Autoconf syntax used
- HAVE_CAPSTONE help text synced and updated
Comment on lines -90 to -93
],[
AC_MSG_ERROR([capstone >= 3.0 required but not found])
])
])
Copy link
Member

Choose a reason for hiding this comment

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

What is the reason to remove this?

Copy link
Member Author

Choose a reason for hiding this comment

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

Default PKG_CHECK_MODULES error message is thrown if the 4th argument is empty:

checking whether to enable JIT... yes
checking whether to support opcache JIT dissasembly through Capstone... yes
checking for capstone >= 3.0.0... no
configure: error: Package requirements (capstone >= 3.0.0) were not met:

Package 'capstone' not found

Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.

Alternatively, you may set the environment variables CAPSTONE_CFLAGS
and CAPSTONE_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.

otherwise if the 4th argument is added, the error message is like this:

checking whether to enable JIT... yes
checking for capstone >= 3.0.0... no
configure: error: capstone >= 3.0 required but not found

@petk petk merged commit da69755 into php:master Jul 24, 2024
11 checks passed
@petk petk deleted the patch-opcache-capstone branch July 24, 2024 17:55
deAtog pushed a commit to deAtog/php-src that referenced this pull request Jul 26, 2024
- Added Capstone check message in configure log
- PKG_CHECK_MODULES already errors out by default if Capstone is not
  found with a bit more informative message
- Autoconf syntax used
- HAVE_CAPSTONE help text synced and updated
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants