From: braam Date: Fri, 18 Oct 2002 05:00:26 +0000 (+0000) Subject: I believe this makefile change fixes the problems in the build outside X-Git-Tag: 0.5.15~88 X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=bb3910d58de3ad88517fad3683294463b7ef64df;p=fs%2Flustre-release.git I believe this makefile change fixes the problems in the build outside the source tree. Interestingly I did NOT need Amrut patches, but only tested this for UML. --- diff --git a/lustre/configure.in b/lustre/configure.in index d4bed74..9365acb 100644 --- a/lustre/configure.in +++ b/lustre/configure.in @@ -54,6 +54,12 @@ AC_ARG_ENABLE(portalsdir, [ --enable-portalsdir=[path] (deprecated) set path to 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) diff --git a/lustre/utils/Makefile.am b/lustre/utils/Makefile.am index f01b8ed..497fc75 100644 --- a/lustre/utils/Makefile.am +++ b/lustre/utils/Makefile.am @@ -1,8 +1,7 @@ # 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)