]> git.ipfire.org Git - thirdparty/grub.git/commitdiff
configure.ac: Fix typo by adding missing $
authorMichał Grzelak <mchl.grzlk@gmail.com>
Thu, 29 Jun 2023 18:11:04 +0000 (20:11 +0200)
committerDaniel Kiper <daniel.kiper@oracle.com>
Mon, 3 Jul 2023 12:15:44 +0000 (14:15 +0200)
During configuration of SDL, variable enable_grub_emu_sdl is checked
whether to throw an error message. However, error could not happen
because two unequal strings were compared. Fix this by referencing
value of enable_grub_emu_sdl, not name.

Fixes: 17d6ac1a7 (emu: Add SDL2 support)
Signed-off-by: Michał Grzelak <mchl.grzlk@gmail.com>
Reviewed-by: Daniel Kiper <daniel.kiper@oracle.com>
configure.ac

index 9d7854d35fe1aed0a413a56bd84871e115f78140..278e5a81f8050c1152c439bdeaaab75ccfe4c035 100644 (file)
@@ -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