Skip to content

Autotools: Replace PHP_DEF_HAVE with AC_DEFINE_UNQUTED #15119

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 27, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 6 additions & 3 deletions build/php.m4
Original file line number Diff line number Diff line change
Expand Up @@ -1453,8 +1453,10 @@ AC_DEFUN([PHP_CHECK_FUNC_LIB],[

if test "$found" = "yes"; then
PHP_ADD_LIBRARY($2)
PHP_DEF_HAVE($1)
PHP_DEF_HAVE(lib$2)
AC_DEFINE_UNQUOTED(AS_TR_CPP([HAVE_$1]), [1],
[Define to 1 if you have the '$1' function.])
AC_DEFINE_UNQUOTED(AS_TR_CPP([HAVE_LIB$2]), [1],
[Define to 1 if you have the '$2' library (-l$2).])
ac_cv_func_$1=yes
else
PHP_CHECK_FUNC_LIB($1,phpshift(phpshift($@)))
Expand All @@ -1478,7 +1480,8 @@ AC_DEFUN([PHP_CHECK_FUNC],[

case $found in
yes[)]
PHP_DEF_HAVE($1)
AC_DEFINE_UNQUOTED(AS_TR_CPP([HAVE_$1]), [1],
[Define to 1 if you have the '$1' function.])
ac_cv_func_$1=yes
;;
ifelse($#,1,,[
Expand Down
Loading