From b9c7927b03f2eca83ae59e8e71f67e7f6a43bfd9 Mon Sep 17 00:00:00 2001 From: zam <zam> Date: Mon, 23 Apr 2007 17:56:57 +0000 Subject: [PATCH] b=11879 r=alex@clusterfs.com Allow user-level OST build. This patch adds --enable-uoss configure switch, .am files are modified to include OST and obdfilter subdirectories in user-level build pass, lustre/ost/ost_main.c (a stub file) added. --- build/autoconf/lustre-build.m4 | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/build/autoconf/lustre-build.m4 b/build/autoconf/lustre-build.m4 index 42b20b915e..77117ef01d 100644 --- a/build/autoconf/lustre-build.m4 +++ b/build/autoconf/lustre-build.m4 @@ -22,6 +22,9 @@ AC_DEFUN([LB_CANONICAL_SYSTEM], darwin*) lb_target_os="darwin" ;; + solaris2.11*) + lb_target_os="SunOS" + ;; esac AC_SUBST(lb_target_os) ]) @@ -197,6 +200,23 @@ if test x$enable_bgl != xno; then fi ]) + +# +# LB_CONFIG_UOSS +# +# +AC_DEFUN([LB_CONFIG_UOSS], +[AC_MSG_CHECKING([whether to build user-level oss]) +AC_ARG_ENABLE([uoss], + AC_HELP_STRING([--enable-uoss], + [enable building of user-level oss]), + [enable_uoss='yes'],[enable_uoss='no']) +if test x$enable_uoss != xno; then + AC_DEFINE(UOSS_SUPPORT, 1, Enable user-level OSS) + enable_modules='no' +fi +]) + # # LB_PATH_SNMP # @@ -453,6 +473,7 @@ AM_CONDITIONAL(INIT_SCRIPTS, test x$ENABLE_INIT_SCRIPTS = "x1") AM_CONDITIONAL(LINUX, test x$lb_target_os = "xlinux") AM_CONDITIONAL(DARWIN, test x$lb_target_os = "xdarwin") AM_CONDITIONAL(CRAY_XT3, test x$enable_cray_xt3 = "xyes") +AM_CONDITIONAL(SUNOS, test x$lb_target_os = "xSunOS") # this lets lustre cancel libsysio, per-branch or if liblustre is # disabled @@ -467,6 +488,7 @@ AC_SUBST(SYSIO) LB_LINUX_CONDITIONALS LB_DARWIN_CONDITIONALS +LB_SUNOS_CONDITIONALS LN_CONDITIONALS LC_CONDITIONALS @@ -484,6 +506,7 @@ LB_INCLUDE_RULES LB_CONFIG_CRAY_XT3 LB_CONFIG_BGL +LB_CONFIG_UOSS LB_PATH_DEFAULTS LB_PROG_CC -- GitLab