mirror of
https://github.com/php/php-src.git
synced 2025-08-15 21:48:51 +02:00
Fix negation in shell tests (#14662)
According to documentation the `if test ! ...` is preferred to `if ! test ...`. The later is not portable: https://www.gnu.org/software/autoconf/manual/autoconf-2.72/autoconf.html
This commit is contained in:
parent
bc585cd87a
commit
604e0a7bbe
2 changed files with 4 additions and 6 deletions
|
@ -1,8 +1,6 @@
|
||||||
AC_DEFUN([PHP_ODBC_CHECK_HEADER],[
|
AC_DEFUN([PHP_ODBC_CHECK_HEADER],
|
||||||
if ! test -f "$ODBC_INCDIR/$1"; then
|
[AS_IF([test ! -f "$ODBC_INCDIR/$1"],
|
||||||
AC_MSG_ERROR([ODBC header file '$ODBC_INCDIR/$1' not found!])
|
[AC_MSG_ERROR([ODBC header file '$ODBC_INCDIR/$1' not found!])])])
|
||||||
fi
|
|
||||||
])
|
|
||||||
|
|
||||||
dnl
|
dnl
|
||||||
dnl Figure out which library file to link with for the Solid support.
|
dnl Figure out which library file to link with for the Solid support.
|
||||||
|
|
|
@ -95,7 +95,7 @@ else
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Check if make exists.
|
# Check if make exists.
|
||||||
if ! test -x "$(command -v $MAKE)"; then
|
if test ! -x "$(command -v $MAKE)"; then
|
||||||
echo "genfiles: make not found. Please install make to generate files." >&2
|
echo "genfiles: make not found. Please install make to generate files." >&2
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue