fixeria has uploaded this change for review. ( https://gerrit.osmocom.org/c/osmo-trx/+/30795 )
Change subject: configure.ac: check if LIBTRXCON_DIR (submodule) exists ......................................................................
configure.ac: check if LIBTRXCON_DIR (submodule) exists
Fail during the configure stage if the submodule is not fetched.
Change-Id: I06456c2087e160032f5bf8b36304477390f117d0 Related: OS#5599 --- M configure.ac 1 file changed, 6 insertions(+), 1 deletion(-)
git pull ssh://gerrit.osmocom.org:29418/osmo-trx refs/changes/95/30795/1
diff --git a/configure.ac b/configure.ac index 2c4bb28..5d45c27 100644 --- a/configure.ac +++ b/configure.ac @@ -212,7 +212,12 @@ AC_MSG_CHECKING([whether to enable building MS TRX]) AS_IF([test "x$with_mstrx" = "xyes"], [ AC_CONFIG_SUBDIRS([osmocom-bb/src/host/trxcon]) - AC_SUBST(LIBTRXCON_DIR, "osmocom-bb/src/host/trxcon") + LIBTRXCON_DIR="osmocom-bb/src/host/trxcon" + if ! test -d "$LIBTRXCON_DIR"; then + AC_MSG_RESULT([no]) + AC_MSG_ERROR([$LIBTRXCON_DIR does not exist]) + fi + AC_SUBST(LIBTRXCON_DIR) AC_MSG_RESULT([yes]) ], [ # Despite LIBTRXCON_DIR is added to SUBDIRS conditionally,