openbsc: Introduce autoconf support to set the OpenBSC include directory

Add autoconf support to set the path to the OpenBSC include directory
so that openbsc/gsm_data_shared.h can be found there.
This commit is contained in:
Holger Hans Peter Freyther 2012-12-20 00:04:20 +01:00
parent bcae2abff8
commit db51f0d73e
1 changed files with 5 additions and 1 deletions

View File

@ -36,7 +36,11 @@ AM_CONDITIONAL(ENABLE_SYSMOBTS, test "x$enable_sysmocom_bts" = "xyes")
# We share gsm_data.h with OpenBSC and need to be pointed to the source
# directory of OpenBSC for now.
openbsc_incdir="\$(abs_top_srcdir)/../openbsc/openbsc/include"
AC_ARG_WITH([openbsc],
[AS_HELP_STRING([--with-openbsc=INCLUDE_DIR],
[OpenBSC include directory for openbsc/gsm_data_shared.h])],
[openbsc_incdir="$withval"],
[openbsc_incdir="\$(abs_top_srcdir)/../openbsc/openbsc/include"])
AC_SUBST([OPENBSC_INCDIR], $openbsc_incdir)
AC_OUTPUT(