From 00ffe083371c05b5f68d29baa85d30ea0a0fdefe Mon Sep 17 00:00:00 2001
From: jacob <jacob>
Date: Wed, 22 Dec 2004 00:48:44 +0000
Subject: [PATCH] Fix some liblustre typos

---
 build/autoconf/lustre-build.m4 | 15 ++++++++++++---
 1 file changed, 12 insertions(+), 3 deletions(-)

diff --git a/build/autoconf/lustre-build.m4 b/build/autoconf/lustre-build.m4
index 2a1b1d005d..5b59a20fea 100644
--- a/build/autoconf/lustre-build.m4
+++ b/build/autoconf/lustre-build.m4
@@ -27,9 +27,8 @@ case x$with_sysio in
 		AC_CHECK_FILE([$srcdir/libsysio/src/rmdir.c],[],[
 			AC_MSG_ERROR([A complete internal libsysio was not found.])
 		])
-		AC_CONFIG_SUBDIRS(libsysio)
 		LIBSYSIO_SUBDIR="libsysio"
-		SYSIO='$(top_srcdir)/libsysio'
+		SYSIO="$PWD/libsysio"
 		;;
 	xno)
 		AC_MSG_RESULT([disabled])
@@ -40,7 +39,7 @@ case x$with_sysio in
 			AC_MSG_ERROR([A complete (built) external libsysio was not found.])
 		])
 		SYSIO=$with_sysio
-		enable_sysio="yes"
+		with_sysio="yes"
 		;;
 esac
 AC_SUBST(LIBSYSIO_SUBDIR)
@@ -383,6 +382,16 @@ LB_CONFIG_MODULES
 
 LC_CONFIG_LIBLUSTRE
 
+# this lets lustre cancel libsysio, per-branch or if liblustre is
+# disabled
+if text x$LIBSYSIO_SUBDIR = xlibsysio ; then
+	if test x$with_sysio = xyes ; then
+		AC_CONFIG_SUBDIRS(libsysio)
+	else
+		LIBSYSIO_SUBDIR=
+	fi
+fi
+
 LP_CONFIGURE
 LC_CONFIGURE
 
-- 
GitLab