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
This commit is contained in:
Vadim Yanitskiy 2022-12-28 05:20:49 +07:00
parent 5e63151f9f
commit fe1b9cef40
1 changed files with 6 additions and 1 deletions

View File

@ -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 "$srcdir/$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,