aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVadim Yanitskiy <vyanitskiy@sysmocom.de>2022-12-28 05:20:49 +0700
committerVadim Yanitskiy <vyanitskiy@sysmocom.de>2022-12-28 05:22:58 +0700
commit6e02b3078b5b80e1a4976759b815264c3b114be6 (patch)
treefba36effce44b15526143359be1f44ca929ec972
parent0ce64705e0415c33204d194848d548c86341cf98 (diff)
configure.ac: check if LIBTRXCON_DIR (submodule) existsfixeria/ms
Fail during the configure stage if the submodule is not fetched. Change-Id: I06456c2087e160032f5bf8b36304477390f117d0 Related: OS#5599
-rw-r--r--configure.ac7
1 files changed, 6 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac
index 2c4bb28..5d45c27 100644
--- a/configure.ac
+++ b/configure.ac
@@ -212,7 +212,12 @@ AS_IF([test "x$with_bladerf" = "xyes"], [
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,