The test(1) string comparison uses =, not ==

The test(1) command string comparison operator is a single
equals sign, not a double equals sign.

Pointed out by @mcuee at https://github.com/avrdudes/avrdude/pull/1663?#issuecomment-1931024192
This commit is contained in:
Hans Ulrich Niedermann
2024-02-07 01:37:51 +01:00
parent 1a64d3831b
commit a97e71a321

View File

@@ -51,7 +51,7 @@ AC_PROG_AR
AH_TEMPLATE([HAVE_YYLEX_DESTROY],
[Define if lex/flex has yylex_destroy])
# flex should have this
if test "x$LEX" == xflex; then
if test "x$LEX" = xflex; then
AC_MSG_CHECKING([whether yylex_destroy is generated by flex])
flex_version=`$LEX -V -v --version 2>/dev/null | $SED -e 's/^.* //'`
case $flex_version in