[Libsysio-commit] HEAD: libsysio Makefile.am Rules.make configure.in
Brought to you by:
lward
From: Lee W. <lw...@us...> - 2004-01-21 14:44:57
|
Update of /cvsroot/libsysio/libsysio In directory sc8-pr-cvs1:/tmp/cvs-serv23555 Modified Files: Makefile.am Rules.make configure.in Log Message: A roll-up patch from CFS (Eric Mei <er...@cl...>) - intent.diff small changes on intent related behavior. I simply follow the lustre kernel code here. - open() need to pass down param 'flags'. - 'setattr' related syscalls, like chown/chmod/utime/..., don't need intent during path resolution. - sockets.diff your socket driver. - nativefs.diff only add fcntl code into native driver. not sure whether it's complete, but ok for current testing. - trace.diff this patch add SYSIO_ENTER/SYSIO_LEAVE macros. Index: Makefile.am =================================================================== RCS file: /cvsroot/libsysio/libsysio/Makefile.am,v retrieving revision 1.9 retrieving revision 1.10 diff -u -w -b -B -p -r1.9 -r1.10 --- Makefile.am 16 Dec 2003 15:43:14 -0000 1.9 +++ Makefile.am 21 Jan 2004 14:44:53 -0000 1.10 @@ -13,17 +13,61 @@ include $(top_srcdir)/dev/stdfd/module.m include $(top_srcdir)/drivers/incore/module.mk include $(top_srcdir)/drivers/native/module.mk include $(top_srcdir)/drivers/yod/module.mk +include $(top_srcdir)/drivers/sockets/module.mk lib_LIBRARIES = ${LIBBUILD_DIR}/libsysio.a -__LIBBUILD_DIR__libsysio_a_SOURCES = $(SRCDIR_SRCS) $(STDFD_SRCS) \ - $(INCORE_SRCS) $(NATIVE_SRCS) $(YOD_SRCS) +if WITH_STDFD_DEV +OPTIONAL_STDFD_SRCS = $(STDFD_SRCS) +else +OPTIONAL_STDFD_SRCS = +endif + +if WITH_INCORE_DRIVER +OPTIONAL_INCORE_SRCS = $(INCORE_SRCS) +else +OPTIONAL_INCORE_SRCS = +endif + +if WITH_NATIVE_DRIVER +OPTIONAL_NATIVE_SRCS = $(NATIVE_SRCS) +else +OPTIONAL_NATIVE_SRCS = +endif + +if WITH_SOCKETS_DRIVER +OPTIONAL_SOCKETS_SRCS = $(SOCKETS_SRCS) +else +OPTIONAL_SOCKETS_SRCS = +endif + +if WITH_CPLANT_YOD +OPTIONAL_YOD_SRCS = $(YOD_SRCS) +else +OPTIONAL_YOD_SRCS = +endif + +__LIBBUILD_DIR__libsysio_a_SOURCES = \ + $(SRCDIR_SRCS) \ + $(OPTIONAL_STDFD_SRCS) \ + $(OPTIONAL_INCORE_SRCS) \ + $(OPTIONAL_SOCKETS_SRCS) \ + $(OPTIONAL_NATIVE_SRCS) \ + $(OPTIONAL_YOD_SRCS) + +# +# Cygwin related? Configure seems to do this for us when appropriate. Why +# was this here? +# +# Commented out by Lee; Wed Jan 21 08:21:33 EST 2004 +# +#__LIBBUILD_DIR__libsysio_a_CFLAGS = -fPIC include $(top_srcdir)/Rules.make EXTRA_DIST = Rules.make $(TESTS_EXTRA) $(SRCDIR_EXTRA) \ $(INCLUDE_EXTRA) $(STDFD_EXTRA) $(INCORE_EXTRA) \ - $(NATIVE_EXTRA) $(YOD_EXTRA) + $(SOCKETS_EXTRA) $(NATIVE_EXTRA) $(YOD_EXTRA) AM_CPPFLAGS += ${YOD_DRIVER_FLAGS} Index: Rules.make =================================================================== RCS file: /cvsroot/libsysio/libsysio/Rules.make,v retrieving revision 1.4 retrieving revision 1.5 diff -u -w -b -B -p -r1.4 -r1.5 --- Rules.make 24 Mar 2003 22:06:38 -0000 1.4 +++ Rules.make 21 Jan 2004 14:44:53 -0000 1.5 @@ -5,6 +5,14 @@ else STFD_DEV_CPPFLAGS = endif +if WITH_SOCKETS_DRIVER +SOCKETS_CPPFLAGS=-DWITH_SOCKETS=1 +else +SOCKETS_CPPFLAGS= +endif + DEV_CPPFLAGS = $(STDFD_DEV_CPPFLAGS) -AM_CPPFLAGS = $(AUTOMOUNT) $(DEV_CPPFLAGS) -I$(top_srcdir)/include +AM_CPPFLAGS = \ + $(AUTOMOUNT) $(DEV_CPPFLAGS) $(SOCKETS_CPPFLAGS) \ + -I$(top_srcdir)/include Index: configure.in =================================================================== RCS file: /cvsroot/libsysio/libsysio/configure.in,v retrieving revision 1.13 retrieving revision 1.14 diff -u -w -b -B -p -r1.13 -r1.14 --- configure.in 12 Jan 2004 18:10:32 -0000 1.13 +++ configure.in 21 Jan 2004 14:44:53 -0000 1.14 @@ -122,6 +122,17 @@ AC_ARG_WITH(cplant_tests, [with_cplant_tests=no]) AM_CONDITIONAL(WITH_CPLANT_TESTS, test x$with_cplant_tests != xno) +AC_ARG_WITH(sockets, + AC_HELP_STRING([--with-sockets], + [build sockets interface driver]), + [ case "${withval}" in + yes) ;; + no) ;; + *) AC_MSG_ERROR(bad value ${withval} for --with-sockets) ;; + esac], + [with_sockets=no]) +AM_CONDITIONAL(WITH_SOCKETS_DRIVER, test x$with_sockets = xyes) + # We keep the original values in `$config_*' and never modify them, so we # can write them unchanged into config.make. Everything else uses # $machine, $vendor, and $os, and changes them whenever convenient. |