Make RECOVERY_GUI configurable 83/132183/3
authorSunmin Lee <sunm.lee@samsung.com>
Thu, 1 Jun 2017 10:35:09 +0000 (19:35 +0900)
committerSunmin Lee <sunm.lee@samsung.com>
Thu, 8 Jun 2017 10:02:42 +0000 (19:02 +0900)
According to profile, gui util would not be built and pacakged.
However, RECOVERY_GUI always had been set to "GUI" so
make recovery-init to call gui util.
This patch makes RECOVERY_GUI configurable according to current profile.

Change-Id: Ia7017d099b1e4805162074a3b0ef772c5cbf1e45
Signed-off-by: Sunmin Lee <sunm.lee@samsung.com>
configure.ac

index ec19e21..7ac9a26 100644 (file)
@@ -76,9 +76,10 @@ if test "x$enable_recovery_gui" == "xyes"; then
         AC_SUBST([OUR_CFLAGS], "$OUR_CFLAGS -DRECOVERY_GUI")
        PKG_CHECK_MODULES(LIBPNG, [libpng])
        PKG_CHECK_MODULES(VCONF_INTERNAL_KEYS, [vconf-internal-keys])
+       RECOVERY_GUI="GUI"
 fi
 
-AC_SUBST([RECOVERY_GUI], ["GUI"])
+AC_SUBST([RECOVERY_GUI])
 AM_CONDITIONAL([RECOVERY_GUI], [test "x$enable_recovery_gui" != "xno"])
 
 # ------------------------------------------------------------------------------