From 575dea0f6d59f501f79d3ef4d5b1657e9b46e4b4 Mon Sep 17 00:00:00 2001 From: Adeel Kazmi Date: Thu, 7 Aug 2014 15:20:38 +0100 Subject: [PATCH] Ensure a valid profile is selected [Problem] It was possible to pass any old junk when using --enable-profile and there would be no error. [Cause] we never actually checked if it matched any of the profiles we support. [Solutin] Ensure we check all profiles and show an error when the profile does not match any of the ones we support. Change-Id: Ide85946093a06e7dd1f7ef97585a42b1bae71c81 --- build/tizen/configure.ac | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/build/tizen/configure.ac b/build/tizen/configure.ac index cf4d542..11627da 100644 --- a/build/tizen/configure.ac +++ b/build/tizen/configure.ac @@ -106,6 +106,11 @@ AC_ARG_ENABLE([profile], [enable_profile=$enableval], [enable_profile=COMMON]) +# Ensure valid profile selected +if test "x$enable_profile" != "xCOMMON" -a "x$enable_profile" != "xMOBILE" -a "x$enable_profile" != "xLITE" -a "x$enable_profile" != "xWEARABLE" -a "x$enable_profile" != "xTV" -a "x$enable_profile" != "xUBUNTU"; then + AC_MSG_ERROR([$enable_profile is an invalid profile]) +fi + AC_ARG_ENABLE(wayland, [ --enable-wayland Build on Wayland], enable_wayland=yes, -- 2.7.4