configure.ac: fix autoconf-2.72 compatibility

`autoconf-2.72` slightly changed `AS_IF`/`AC_CHECL_LIB` definitions and
exposed the bug of missng quoting around the arguments:

    editline> ./configure: line 13944: syntax error near unexpected token `;;'
    editline> ./configure: line 13944: ` ;;'

The change adds quoting as suggested by https://savannah.gnu.org/support/index.php?110990
This commit is contained in:
Sergei Trofimovich 2023-12-23 19:12:42 +00:00
parent 7633fbceee
commit f444a316f5

View File

@ -89,7 +89,7 @@ AS_IF([test "x$enable_terminal_bell" = "xyes"],
AM_CONDITIONAL([ENABLE_EXAMPLES], [test "$enable_examples" = yes])
# Check for a termcap compatible library if enabled
AS_IF([test "x$enable_termcap" = "xyes"],
AS_IF([test "x$enable_termcap" = "xyes"], [
AC_DEFINE(CONFIG_USE_TERMCAP, 1, [Define to use the termcap library for terminal size.])
AC_CHECK_LIB(terminfo, tgetent, , [
AC_CHECK_LIB(termcap, tgetent, , [
@ -100,7 +100,7 @@ AS_IF([test "x$enable_termcap" = "xyes"],
])
])
])
]))
])])
# Generate all files
AC_OUTPUT