Updated configure.in to make sure bison and lex are installed.

Fixes issue #7
This commit is contained in:
Richard Marshall 2012-11-19 20:20:22 -08:00
parent 4d94ed5f6b
commit a2c4bd8f09

View file

@ -68,7 +68,7 @@ AM_PROG_CC_C_O
AC_PROG_INSTALL
AM_PROG_LIBTOOL
AM_PROG_LEX
AC_PROG_YACC
AC_CHECK_PROGS(YACC, 'bison -y')
AC_C_CONST
AC_C_INLINE
@ -118,6 +118,19 @@ python/netlink/route/Makefile
include/netlink/version.h
])
ac_errcount=0
if test -z "$YACC"; then
AC_MSG_WARN(bison not found. Please install before continuing.)
ac_errcount=$((ac_errcount + 1))
fi
if test -z "$LEXLIB"; then
AC_MSG_WARN(flex or lex not found. Please install before continuing.)
ac_errcount=$((ac_errcount + 1))
fi
if test $ac_errcount -gt 0; then
AC_MSG_ERROR(Required packages are missing. Please install them and rerun ./configure)
fi
AC_OUTPUT
echo "-------------------------------------------------------------------------------"