-
Notifications
You must be signed in to change notification settings - Fork 323
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
Replace obsolete macros AC_TRY_FOO with AC_FOO_IFELSE #403
Conversation
Redacted: I've now replaced all obsolete See commit message for more info... |
config.m4
Outdated
[ ac_cv_memc_sasl_support="yes" ], | ||
[ ac_cv_memc_sasl_support="no" ] | ||
) | ||
]])],[ac_cv_memc_sasl_support="yes"],[ac_cv_memc_sasl_support="no"]) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nit: keep the same line split.
config.m4
Outdated
AC_TRY_COMPILE( | ||
[ #include <libmemcachedprotocol-0.0/handler.h> ], | ||
[ memcached_binary_protocol_callback_st s_test_impl; | ||
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <libmemcachedprotocol-0.0/handler.h>]], [[memcached_binary_protocol_callback_st s_test_impl; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nit: split long line.
config.m4
Outdated
[ ac_cv_have_libmemcachedprotocol="yes" ], | ||
[ ac_cv_have_libmemcachedprotocol="no" ] | ||
) | ||
]])],[ac_cv_have_libmemcachedprotocol="yes"],[ac_cv_have_libmemcachedprotocol="no"]) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same
Autoconf made several macros obsolete including the AC_TRY_COMPILE and AC_TRY_LINK in 2000 and since Autoconf 2.50: http://git.savannah.gnu.org/cgit/autoconf.git/tree/ChangeLog.2 These macros should be replaced with the current AC_FOO_IFELSE instead. It is fairly safe to upgrade and take the recommendation advice of autoconf upgrade manual since the upgrade should be compatible at least with PHP versions 5.4 and up, on some systems even with PHP 5.3. PHP versions from 5.4 to 7.1 require Autoconf 2.59+ and PHP 7.2+ require Autoconf 2.64+. This patch was created with the help of autoupdate script. Reference docs: - https://www.gnu.org/software/autoconf/manual/autoconf-2.69/html_node/Obsolete-Macros.html - https://www.gnu.org/software/autoconf/manual/autoconf-2.59/autoconf.pdf
Longer lines have been split as suggested. Yes, I'm not much familiar with any coding style for the M4 files, so feel free to refactor or suggest if there is something missing here. This is mostly done as autoupdate has done it automatically and what is in the manual... |
Hello, Autoconf made several macros obsolete in several versions behind very long time ago, including the
AC_TRY_COMPILE
which should be replaced with currentAC_COMPILE_IFELSE
instead.Refs:
This patch has been done with the help of
autoupdate
script:Thanks for considering checking this out or merging it.