diff mbox

[1/3] configure.ac: add external-sysroot variable

Message ID 1406213816-22711-2-git-send-email-anders.roxell@linaro.org
State New
Headers show

Commit Message

Anders Roxell July 24, 2014, 2:56 p.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 7320162..7807db5 100644
--- a/configure.ac
+++ b/configure.ac
@@ -51,6 +51,15 @@  AC_ARG_WITH([platform],
 
 AC_SUBST([with_platform])
 
+AC_ARG_WITH([external-sysroot],
+AC_HELP_STRING([--with-external-sysroot=DIR Path to external sysroot directory],
+               [(or in the default path if not specified).]),
+[EXTERNAL_SYSROOT=$withval EXTERNAL_SYSROOT_=1],[EXTERNAL_SYSROOT_=])
+
+AC_SUBST(EXTERNAL_SYSROOT)
+
+AM_CONDITIONAL([EXTERNAL_SYSROOT_], [test "x${EXTERNAL_SYSROOT_}" = "x1"])
+
 ##########################################################################
 # Enable/disable netmap support
 ##########################################################################