From aa1a988c7403cac81638c195b753fab7ac3600f9 Mon Sep 17 00:00:00 2001 From: Lionel Elie Mamane Date: Fri, 21 Jun 2013 13:31:37 +0200 Subject: Reintroduce --with-linked-git option With slightly different semantics: Instead of pointing at a previous checkout, point at base directory of all repos. Change-Id: I254ecc33071be53067c44610b030f737cf75a7ee --- configure.ac | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'configure.ac') diff --git a/configure.ac b/configure.ac index c7e64387ea13..b9810f36f2e0 100644 --- a/configure.ac +++ b/configure.ac @@ -1238,6 +1238,13 @@ AC_ARG_WITH(referenced-git, GIT_REFERENCE_SRC=$withval , ) +AC_ARG_WITH(linked-git, + AS_HELP_STRING([--with-linked-git=], + [Specify a directory where the repositories of submodules are located. + This uses a method similar to git-new-workdir to get submodules.]), + GIT_LINK_SRC=$withval , +) + AC_ARG_WITH(galleries, AS_HELP_STRING([--with-galleries], [Specify how galleries should be built. It is possible either to @@ -11616,6 +11623,17 @@ if test -n "${GIT_REFERENCE_SRC}"; then fi AC_SUBST(GIT_REFERENCE_SRC) +dnl git submodules linked dirs +dnl =================================================================== +if test -n "${GIT_LINK_SRC}"; then + for repo in ${GIT_NEEDED_SUBMODULES}; do + if ! test -d "${GIT_LINK_SRC}"/${repo}; then + AC_MSG_ERROR([linked git: required repository does not exist: ${GIT_LINK_SRC}/${repo}]) + fi + done +fi +AC_SUBST(GIT_LINK_SRC) + dnl branding dnl =================================================================== AC_MSG_CHECKING([for alternative branding images directory]) -- cgit