Skip to content

Commit

Permalink
Replace PHP_DEF_HAVE with AC_DEFINE_UNQUOTED
Browse files Browse the repository at this point in the history
The upstream PHP_DEF_HAVE macro is a bit simplistic wrapper around the
recommended AC_DEFINE or AC_DEFINE_UNQUOTED (when shell variables are
used in arguments). This also adds some basic help texts to macros.
  • Loading branch information
petk committed Jul 27, 2024
1 parent f4299e7 commit 63c4839
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion config.m4
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,8 @@ AC_DEFUN([PDO_ODBC_CHECK_HEADER],[
AC_MSG_CHECKING([for $1 in $PDO_ODBC_INCDIR])
if test -f "$PDO_ODBC_INCDIR/$1"; then
php_pdo_have_header=yes
PHP_DEF_HAVE(translit($1,.,_))
AC_DEFINE_UNQUOTED(AS_TR_CPP([HAVE_$1]), [1],
[Define to 1 if you have the <$1> header file.])
AC_MSG_RESULT(yes)
else
AC_MSG_RESULT(no)
Expand Down

0 comments on commit 63c4839

Please sign in to comment.