configure.ac: Fix typo by adding missing $
PATCH 1/1 configure.ac: Fix typo by adding missing $
During configuration of sdl, variable enable_grub_emu_sdl is checked whether to throw an error message. Howerever, error could not happen because two unequal strings were compared. Fix this by referencing value of enable_grub_emu_sdl, not name.
Signed-off-by Michał Grzelak <[email protected]>
--- configure.ac | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
configure.ac +1 -1
@@ -1638,7 +1638,7 @@ AC_CHECK_LIB([SDL], [SDL_Init], [LIBSDL="-lSDL"], [grub_emu_sdl_excuse=["libSDL header file is required to build \`grub-emu' with SDL support"]]) [fi] - if test x"enable_grub_emu_sdl" = xyes && test x"$grub_emu_sdl_excuse" != x ; then + if test x"$enable_grub_emu_sdl" = xyes && test x"$grub_emu_sdl_excuse" != x ; then AC_MSG_ERROR([SDL support for grub-emu was explicitly requested but can't be compiled ($grub_emu_sdl_excuse)]) fi if test x"$grub_emu_sdl_excuse" = x ; then
Signature · 1 line
2.37.3
Quoted 6 lines · Michał Grzelak
During configuration of sdl, variable
enable_grub_emu_sdlis checked whether to throw an error message. Howerever, error could not happen because two unequal strings were compared. Fix this by referencing value ofenable_grub_emu_sdl, not name.Signed-off-by Michał Grzelak <[email protected]>
Reviewed-by Daniel Kiper <[email protected]>
Daniel