]> xenbits.xensource.com Git - people/julieng/boot-wrapper-aarch64.git/commitdiff
configure: Fixes for --enable-xxx
authorGeoff Levand <geoff@infradead.org>
Thu, 12 Jun 2014 00:12:56 +0000 (01:12 +0100)
committerMark Rutland <mark.rutland@arm.com>
Wed, 18 Jun 2014 17:11:53 +0000 (18:11 +0100)
When the --enable-psci=no or --enable-gicv3=no form of configure option
was passed our configure script was setting the option to yes.  This
changes the logic slightly to fix the problem.

Signed-off-by: Geoff Levand <geoff@infradead.org>
[Mark: fit with exiting USE_FEATURE naming scheme, fix whitespace]
Signed-off-by: Mark Rutland <mark.rutland@arm.com>
configure.ac

index b60f8697bf68dac9aa321a6cc41c10746882ce51..929da13e68870d7709ab28cf12607a514868dc1b 100644 (file)
@@ -41,12 +41,11 @@ AC_SUBST([KERNEL_IMAGE], [$KERN_IMAGE])
 AC_SUBST([KERNEL_DTB], [$KERN_DTB])
 
 # Allow a user to pass --enable-psci
-USE_PSCI=no
 AC_ARG_ENABLE([psci],
        AS_HELP_STRING([--enable-psci], [enable the psci boot method]),
-       [USE_PSCI=yes],
-       [USE_PSCI=no])
+       [USE_PSCI=$enableval])
 AM_CONDITIONAL([PSCI], [test "x$USE_PSCI" = "xyes"])
+AS_IF([test "x$USE_PSCI" = "xyes"], [], [USE_PSCI=no])
 
 # Allow a user to pass --with-cpu-ids
 C_CPU_IDS="0x0,0x1,0x2,0x3"
@@ -69,12 +68,11 @@ AC_ARG_WITH([cmdline],
 AC_SUBST([CMDLINE], [$C_CMDLINE])
 
 # Allow a user to pass --enable-gicv3
-USE_GICV3=no
 AC_ARG_ENABLE([gicv3],
        AS_HELP_STRING([--enable-gicv3], [enable GICv3 instead of GICv2]),
-       [USE_GICV3=yes],
-       [USE_GICV3=no])
+       [USE_GICV3=$enableval])
 AM_CONDITIONAL([GICV3], [test "x$USE_GICV3" = "xyes"])
+AS_IF([test "x$USE_GICV3" = "xyes"], [], [USE_GICV3=no])
 
 # Ensure that we have all the needed programs
 AC_PROG_CC