[PATCHv14,1/5] configure.ac: include configure.m4 if platform explicitly selected

Message ID 1428915147-14871-2-git-send-email-maxim.uvarov@linaro.org
State New
Headers show

Commit Message

Maxim Uvarov April 13, 2015, 8:52 a.m.
configure script selects linux-generic as default platform and includes
platfrom specific configure scripts: ./platform/linux-generic/m4/configure.m4
In case if --with-platfrom=linux-generic was provided to configure platform
specific file is not included and that branch of code does not run.
This change has to be done for each platform since we have there pktio_env
scripts but m4_include macro does not recognize bash variables. So that there
is if check.

Signed-off-by: Maxim Uvarov <maxim.uvarov@linaro.org>
Reviewed-by: Anders Roxell <anders.roxell@linaro.org>
Reviewed-by: Mike Holmes <mike.holmes@linaro.org>
Reviewed-by: Ciprian Barbu <ciprian.barbu@linaro.org>
 configure.ac | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)


diff --git a/configure.ac b/configure.ac
index c92f5fd..3eab18e 100644
--- a/configure.ac
+++ b/configure.ac
@@ -63,11 +63,18 @@  AC_ARG_WITH([platform],
         [select platform to be used, default linux-generic])],
-     m4_include([./platform/linux-generic/m4/configure.m4])
+if test "${with_platform}" == "linux-generic";
+    m4_include([./platform/linux-generic/m4/configure.m4])
+    echo "UNSUPPORTED PLATFORM: ${with_platform}"
+    exit 1
 AC_HELP_STRING([--with-sdk-install-path=DIR path to external libs and headers],
              [(or in the default path if not specified).]),