From 3ceca52b2e172450818c6c5a6770f2093e8c46a9 Mon Sep 17 00:00:00 2001
From: jacob <jacob>
Date: Wed, 22 Dec 2004 01:35:02 +0000
Subject: [PATCH] liblustre fixes

---
 lustre/autoconf/lustre-core.m4 | 9 ++++++---
 lustre/liblustre/genlib.sh     | 6 +++---
 2 files changed, 9 insertions(+), 6 deletions(-)

diff --git a/lustre/autoconf/lustre-core.m4 b/lustre/autoconf/lustre-core.m4
index be1bed5ecc..0389f3dd2c 100644
--- a/lustre/autoconf/lustre-core.m4
+++ b/lustre/autoconf/lustre-core.m4
@@ -354,7 +354,6 @@ AC_MSG_RESULT([$enable_smfs])
 AC_DEFUN([LC_PROG_LINUX],
 [LC_CONFIG_BACKINGFS
 LC_CONFIG_PINGER
-LC_CONFIG_OBD_BUFFER_SIZE
 LC_CONFIG_SNAPFS
 LC_CONFIG_SMFS
 
@@ -377,8 +376,10 @@ AC_DEFUN([LC_CONFIG_LIBLUSTRE],
 AC_ARG_ENABLE([liblustre],
 	AC_HELP_STRING([--disable-liblustre],
 			[disable building of Lustre library]),
-	[],[enable_liblustre=$enable_libsysio])
+	[],[enable_liblustre=$with_sysio])
 AC_MSG_RESULT([$enable_liblustre])
+# only build sysio if liblustre is built
+with_sysio="$enable_liblustre"
 
 AC_MSG_CHECKING([whether to build mpitests])
 AC_ARG_ENABLE([mpitests],
@@ -394,7 +395,9 @@ AC_MSG_RESULT([$enable_mpitests])
 # other configure checks
 #
 AC_DEFUN([LC_CONFIGURE],
-[# include/liblustre.h
+[LC_CONFIG_OBD_BUFFER_SIZE
+
+# include/liblustre.h
 AC_CHECK_HEADERS([asm/page.h sys/user.h stdint.h])
 
 # liblustre/llite_lib.h
diff --git a/lustre/liblustre/genlib.sh b/lustre/liblustre/genlib.sh
index efbae700a8..1324cf93b7 100755
--- a/lustre/liblustre/genlib.sh
+++ b/lustre/liblustre/genlib.sh
@@ -86,11 +86,11 @@ build_obj_list ../obdclass liblustreclass.a
 build_obj_list ../lvfs liblvfs.a
 
 # portals components libs
-build_obj_list ../portals/utils libuptlctl.a
+build_obj_list ../../portals/utils libuptlctl.a
 
 if [ "x$CRAY_PORTALS_PATH" = "x" ]; then
-  build_obj_list ../portals/unals libtcpnal.a
-  build_obj_list ../portals/portals libportals.a
+  build_obj_list ../../portals/unals libtcpnal.a
+  build_obj_list ../../portals/portals libportals.a
 else
   build_cray_portals_obj_list $CRAY_PORTALS_PATH/lib_TV/snos64/libportals.a
 fi
-- 
GitLab