diff mbox

[PATCHv5,1/3] configure.ac: add sdk-install-path variable

Message ID 1406630637-26294-2-git-send-email-anders.roxell@linaro.org
State Superseded
Headers show

Commit Message

Anders Roxell July 29, 2014, 10:43 a.m. UTC
Makes it easier for external libs and headers if they aren't in the
default path.

Signed-off-by: Anders Roxell <anders.roxell@linaro.org>
---
 configure.ac | 9 +++++++++
 1 file changed, 9 insertions(+)
diff mbox

Patch

diff --git a/configure.ac b/configure.ac
index 97089e9..3791802 100644
--- a/configure.ac
+++ b/configure.ac
@@ -51,6 +51,15 @@  AC_ARG_WITH([platform],
 
 AC_SUBST([with_platform])
 
+AC_ARG_WITH([sdk-install-path],
+AC_HELP_STRING([--with-sdk-install-path=DIR Path to external libs and headers],
+               [(or in the default path if not specified).]),
+[SDK_INSTALL_PATH=$withval SDK_INSTALL_PATH_=1],[SDK_INSTALL_PATH_=])
+
+AC_SUBST(SDK_INSTALL_PATH)
+
+AM_CONDITIONAL([SDK_INSTALL_PATH_], [test "x${SDK_INSTALL_PATH_}" = "x1"])
+
 ##########################################################################
 # Enable/disable netmap support
 ##########################################################################