Whamcloud - gitweb
add LLCPP flags to enable extra functions to use in user-level libcfs code.
[fs/lustre-release.git] / build / autoconf / lustre-build.m4
index dcdddca..b34e9b8 100644 (file)
@@ -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,24 @@ 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)
+        AC_DEFINE(LUSTRE_ULEVEL_MT, 1, Multi-threaded user-level lustre port)
+        enable_modules='no'
+fi
+])
+
 #
 # LB_PATH_SNMP
 #
@@ -426,9 +447,11 @@ fi
 
 ])
 
+AC_CHECK_FUNCS(strnlen pread pwrite directio)
+
 CPPFLAGS="-I\$(top_builddir)/lnet/include -I\$(top_srcdir)/lnet/include -I\$(top_builddir)/lustre/include -I\$(top_srcdir)/lustre/include $CPPFLAGS"
 
-LLCPPFLAGS="-D__arch_lib__ -D_LARGEFILE64_SOURCE=1"
+LLCPPFLAGS="-D__arch_lib__ -D_LARGEFILE64_SOURCE=1 -D_GNU_SOURCE -D_XOPEN_SOURCE=500"
 AC_SUBST(LLCPPFLAGS)
 
 LLCFLAGS="-g -Wall -fPIC"
@@ -452,6 +475,8 @@ AM_CONDITIONAL(DOC, test x$ENABLE_DOC = x1)
 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
@@ -466,6 +491,7 @@ AC_SUBST(SYSIO)
 
 LB_LINUX_CONDITIONALS
 LB_DARWIN_CONDITIONALS
+# LB_SUNOS_CONDITIONALS
 
 LN_CONDITIONALS
 LC_CONDITIONALS
@@ -483,6 +509,7 @@ LB_INCLUDE_RULES
 
 LB_CONFIG_CRAY_XT3
 LB_CONFIG_BGL
+LB_CONFIG_UOSS
 LB_PATH_DEFAULTS
 
 LB_PROG_CC
@@ -494,10 +521,13 @@ LB_CONFIG_DOCS
 LB_CONFIG_UTILS
 LB_CONFIG_TESTS
 LC_CONFIG_CLIENT_SERVER
+
+# three macros for cmd3 
 LC_CONFIG_SPLIT
+LC_CONFIG_LDISKFS
+LN_CONFIG_CDEBUG
 
 LB_CONFIG_MODULES
-LC_CONFIG_GSS
 
 LC_CONFIG_LIBLUSTRE
 LN_CONFIGURE