the source tree. Interestingly I did NOT need Amrut patches, but only
tested this for UML.
PORTALS=$enable_portalsdir
AC_SUBST(PORTALS)
PORTALS=$enable_portalsdir
AC_SUBST(PORTALS)
+portalslib_def='$(top_srcdir)/../portals'
+AC_ARG_WITH(portalslib, [ --with-portalslib=[path] set path to Portals library (default=../portals/linux/utils)], enable_portalslib=$withval)
+AC_ARG_ENABLE(portalslib, [ --enable-portalslib=[path] (deprecated) set path to Portals lib (default=../portals/linux/utils)],, enable_portalslib=$portalslib_def)
+PORTALSLIB=$enable_portalslib/linux/utils
+AC_SUBST(PORTALSLIB)
+
AC_MSG_CHECKING(if make dep has been run in kernel source)
if test -f $LINUX/include/linux/config.h ; then
AC_MSG_RESULT(yes)
AC_MSG_CHECKING(if make dep has been run in kernel source)
if test -f $LINUX/include/linux/config.h ; then
AC_MSG_RESULT(yes)
# Administration utilities Makefile
DEFS=
# Administration utilities Makefile
DEFS=
-CFLAGS:=-g -O2 -I. -I$(PORTALS)/include -I$(srcdir)/../include -Wall\
- -L$(PORTALS)/linux/utils
+CFLAGS:=-g -O2 -I$(top_srcdir)/utils -I$(PORTALS)/include -I$(srcdir)/../include -Wall -L$(PORTALSLIB)
KFLAGS:=
CPPFLAGS = $(HAVE_LIBREADLINE)
obdctl_LDADD := $(LIBREADLINE)
KFLAGS:=
CPPFLAGS = $(HAVE_LIBREADLINE)
obdctl_LDADD := $(LIBREADLINE)