Subject: Re: bug#55970: 29.0.50; Emacs crashes when dragging the scroll bar with "--with-pgtk" and "--without-toolkit-scroll-bars" configure flags

From: Po Lu <[email-masked]>
Date: Thu, 16 Jun 2022 08:53:38 +0800

Robert Pluim <[email-masked]> writes:

> configure is written in sh, not in C, so you need
>
> diff --git a/configure.ac b/configure.ac
> index 5b86e90925..c91b7de322 100644
> --- a/configure.ac
> +++ b/configure.ac
> @@ -3436,7 +3436,7 @@ AC_DEFUN
>      AC_DEFINE(USE_TOOLKIT_SCROLL_BARS)
>      USE_TOOLKIT_SCROLL_BARS=yes
>    fi
> -elif test "${window_system}" != "x11" && "${window_system}" != "none"; then
> +elif test "${window_system}" != "x11" && test "${window_system}" != "none"; then
>    AC_MSG_ERROR(Non-toolkit scroll bars are not implemented for your system)
>  fi
>  
>
> (or use -a to avoid repeating the 'test')
>
> Robert

Ah, right, that should've been obvious.

Feel free to install that change and close this bug.