diff mbox series

[psplash,2/2] configure.ac: fix autoconf code for img_fullscreen

Message ID 20250512160500.244466-3-florent.allard@savoirfairelinux.com
State New
Headers show
Series Fixing autoconf options handling | expand

Commit Message

Florent Allard May 12, 2025, 4:05 p.m. UTC
This commit makes the autoconf code for img_fullscreen more standard, by
using the default variable name "enable_img_fullscreen", and also use
the default `yes` and `no` variable values.

The documentation for this feature of autoconf is available here:
https://autotools.info/autoconf/arguments.html

Signed-off-by: Florent Allard <florent.allard@savoirfairelinux.com>
---
 configure.ac | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
diff mbox series

Patch

diff --git a/configure.ac b/configure.ac
index 4543d1d..110ce32 100644
--- a/configure.ac
+++ b/configure.ac
@@ -47,9 +47,9 @@  AS_IF([test "x$enable_progress_bar" = "xno"], [
 
 AC_ARG_ENABLE([img-fullscreen],
     AS_HELP_STRING([--enable-img-fullscreen], [Enable the logo image in fullscreen mode)]),
-    [img_fullscreen=true],
-    [img_fullscreen=false])
-AS_IF([test x$img_fullscreen = xtrue], [
+    [enable_img_fullscreen=$enableval],
+    [enable_img_fullscreen=no])
+AS_IF([test "x$enable_img_fullscreen" = "xyes"], [
     EXTRA_GCC_FLAGS="$EXTRA_GCC_FLAGS -DPSPLASH_IMG_FULLSCREEN=1"
 ])