openbsc: Check for the presence of the gsm_data_shared.h header file

This commit is contained in:
Holger Hans Peter Freyther 2012-12-20 00:21:38 +01:00
parent db51f0d73e
commit 56698b84e0
1 changed files with 8 additions and 1 deletions

View File

@ -40,9 +40,16 @@ 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"])
[openbsc_incdir="`cd $srcdir; pwd`/../openbsc/openbsc/include"])
AC_SUBST([OPENBSC_INCDIR], $openbsc_incdir)
oldCPPFLAGS=$CPPFLAGS
CPPFLAGS="$CPPFLAGS -I$OPENBSC_INCDIR $LIBOSMOCORE_CFLAGS"
AC_CHECK_HEADER([openbsc/gsm_data_shared.h],[],
[AC_MSG_ERROR([openbsc/gsm_data_shared.h can not be found in $openbsc_incdir])],
[])
CPPFLAGS=$oldCPPFLAGS
AC_OUTPUT(
src/Makefile
src/common/Makefile