fix --with-cligen build option
This commit is contained in:
parent
d87ab39a7e
commit
ea14b4fa24
1 changed files with 5 additions and 2 deletions
|
|
@ -180,6 +180,9 @@ SH_SUFFIX=".so"
|
||||||
# Postfix for static libs
|
# Postfix for static libs
|
||||||
LIBSTATIC_SUFFIX=".a"
|
LIBSTATIC_SUFFIX=".a"
|
||||||
|
|
||||||
|
CPPFLAGS="-I$(eval echo ${includedir}) ${CPPFLAGS}"
|
||||||
|
LDFLAGS="-L$(eval echo ${libdir}) ${LDFLAGS}"
|
||||||
|
|
||||||
# This is for cligen
|
# This is for cligen
|
||||||
AC_ARG_WITH([cligen], [AS_HELP_STRING([--with-cligen=dir], [Use CLIGEN installation in this dir])], [
|
AC_ARG_WITH([cligen], [AS_HELP_STRING([--with-cligen=dir], [Use CLIGEN installation in this dir])], [
|
||||||
CLIGEN_DIR="$withval"
|
CLIGEN_DIR="$withval"
|
||||||
|
|
@ -187,8 +190,8 @@ AC_ARG_WITH([cligen], [AS_HELP_STRING([--with-cligen=dir], [Use CLIGEN installat
|
||||||
AC_SUBST(CLIGEN_DIR)
|
AC_SUBST(CLIGEN_DIR)
|
||||||
if test -n "${CLIGEN_DIR}" -a -d "${CLIGEN_DIR}"; then
|
if test -n "${CLIGEN_DIR}" -a -d "${CLIGEN_DIR}"; then
|
||||||
echo "Using CLIGEN here: ${CLIGEN_DIR}"
|
echo "Using CLIGEN here: ${CLIGEN_DIR}"
|
||||||
CPPFLAGS="-I${CLIGEN_DIR}$(eval echo ${includedir}) ${CPPFLAGS}"
|
CPPFLAGS="-I${CLIGEN_DIR}/include ${CPPFLAGS}"
|
||||||
LDFLAGS="-L${CLIGEN_DIR}$(eval echo ${libdir}) ${LDFLAGS}"
|
LDFLAGS="-L${CLIGEN_DIR}/lib ${LDFLAGS}"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Disable/enable yang patch
|
# Disable/enable yang patch
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue