diff mbox

[PATCHv4,1/3] configure.ac: add sysroot-path variable

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

Commit Message

Anders Roxell July 29, 2014, 9:16 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..e625c3a 100644
--- a/configure.ac
+++ b/configure.ac
@@ -51,6 +51,15 @@  AC_ARG_WITH([platform],
 
 AC_SUBST([with_platform])
 
+AC_ARG_WITH([sysroot-path],
+AC_HELP_STRING([--with-sysroot-path=DIR Path to external libs and headers],
+               [(or in the default path if not specified).]),
+[SYSROOT_PATH=$withval SYSROOT_PATH_=1],[SYSROOT_PATH_=])
+
+AC_SUBST(SYSROOT_PATH)
+
+AM_CONDITIONAL([SYSROOT_PATH_], [test "x${SYSROOT_PATH_}" = "x1"])
+
 ##########################################################################
 # Enable/disable netmap support
 ##########################################################################