Thread: [Libsysio-commit] HEAD: libsysio Makefile.am configure.in
Brought to you by:
lward
From: Ruth K. <rk...@us...> - 2003-08-14 18:55:10
|
Update of /cvsroot/libsysio/libsysio In directory sc8-pr-cvs1:/tmp/cvs-serv16191 Modified Files: Makefile.am configure.in Log Message: merge cplant branch into head Index: Makefile.am =================================================================== RCS file: /cvsroot/libsysio/libsysio/Makefile.am,v retrieving revision 1.7 retrieving revision 1.8 diff -u -w -b -B -p -r1.7 -r1.8 --- Makefile.am 26 Mar 2003 00:00:15 -0000 1.7 +++ Makefile.am 14 Aug 2003 18:39:32 -0000 1.8 @@ -5,7 +5,15 @@ else TESTS = endif +if WITH_CPLANT_TESTS +SUBDIRS = $(TESTS) +else +if WITH_CPLANT_YOD +SUBDIRS = src drivers dev +else SUBDIRS = src drivers dev $(TESTS) +endif +endif EXTRA_DIST = Rules.make \ include/dev.h include/file.h include/fs.h include/inode.h \ @@ -16,6 +24,7 @@ really-clean: maintainer-clean -rm -rf .deps -rm -f Makefile.in \ drivers/native/Makefile.in drivers/incore/Makefile.in \ + drivers/yod/Makefile.in \ drivers/Makefile.in \ dev/stdfd/Makefile.in \ dev/Makefile.in \ Index: configure.in =================================================================== RCS file: /cvsroot/libsysio/libsysio/configure.in,v retrieving revision 1.6 retrieving revision 1.7 diff -u -w -b -B -p -r1.6 -r1.7 --- configure.in 25 Jul 2003 14:44:14 -0000 1.6 +++ configure.in 14 Aug 2003 18:39:32 -0000 1.7 @@ -19,21 +19,19 @@ AC_HEADER_STDC AC_HEADER_STAT AC_HEADER_TIME -AC_ARG_WITH(with_native_driver, +AC_ARG_WITH(native_driver, [ --with-native-driver build native test driver], - [ with_native_driver=${withval} - case "${withval}" in + [ case "${withval}" in yes) ;; no) ;; *) AC_MSG_ERROR(bad value ${withval} for --with-native-driver) ;; - esac], - [with_native_driver=yes]) + esac;], + [with_native_driver=yes;]) AM_CONDITIONAL(WITH_NATIVE_DRIVER, test x$with_native_driver = xyes) -AC_ARG_WITH(with_incore_driver, +AC_ARG_WITH(incore-driver, [ --with-incore-driver build incore test driver], - [ with_incore_driver=${withval} - case "${withval}" in + [ case "${withval}" in yes) ;; no) ;; *) AC_MSG_ERROR(bad value ${withval} for --with-incore-driver) ;; @@ -41,10 +39,9 @@ AC_ARG_WITH(with_incore_driver, [with_incore_driver=yes]) AM_CONDITIONAL(WITH_INCORE_DRIVER, test x$with_incore_driver = xyes) -AC_ARG_WITH(with_tests, +AC_ARG_WITH(tests, [ --with-tests build tests], - [ with_tests=${withval} - case "${withval}" in + [ case "${withval}" in yes) ;; no) ;; *) AC_MSG_ERROR(bad value ${withval} for --with-tests) ;; @@ -54,25 +51,53 @@ AM_CONDITIONAL(WITH_TESTS, test x$with_t AC_ARG_WITH(automount, [ --with-automount=[automount-file-name] with automounts], - with_automount=$withval, - [with_automount=]) -if test x$with_automount != x; then - AUTOMOUNT=-DAUTOMOUNT_FILE_NAME="\\\"$with_automount\\\"" -fi + [ if test x${withval} != x; then + AUTOMOUNT=-DAUTOMOUNT_FILE_NAME="\\\"${withval}\\\"" + fi]) AC_SUBST(AUTOMOUNT) -AC_ARG_WITH(with_stdfd_dev, +AC_ARG_WITH(stdfd-dev, [ --with-stdfd-dev build standard file descriptors pseudo-driver], - [ with_stdfd_dev=${withval} - case "${withval}" in - yes) - ;; + [ case "${withval}" in + yes) ;; no) ;; *) AC_MSG_ERROR(bad value ${withval} for --with-stdfd-dev) ;; esac], [with_stdfd_dev=yes]) AM_CONDITIONAL(WITH_STDFD_DEV, test x$with_stdfd_dev = xyes) +AC_ARG_WITH(cplant_yod, + [ --with-cplant-yod build cplant yod I/O driver], + [ case "${withval}" in + yes) if test x${with_stdfd_dev} != xyes; then + with_stdfd_dev=yes + AM_CONDITIONAL(WITH_STDFD_DEV, test x$with_stdfd_dev = xyes) + fi ;; + no) ;; + *) AC_MSG_ERROR(bad value ${withval} for --with-cplant-yod);; + esac], + [with_cplant_yod=no]) +AM_CONDITIONAL(WITH_CPLANT_YOD, test x$with_cplant_yod = xyes) + +AC_ARG_WITH(cplant_tests, + [ --with-cplant-tests=[cplant build path] build libsysio tests for cplant platform], + [ case "${withval}" in + yes) AC_MSG_ERROR(need path to compiler for --with-cplant-tests);; + no) with_cplant_tests=no;; + *) CPLANT_PATH=${withval} + CC=${CPLANT_PATH}/cplant-cc + CCDEPMODE=${CC} + CPP="${CC} -E" + AC_CHECK_FILE(${CC}, + [ if test x${with_cplant_yod} != xyes; then + with_cplant_yod=yes + AM_CONDITIONAL(WITH_CPLANT_YOD, test x$with_cplant_yod = xyes) + fi], + [ AC_MSG_ERROR(path not found ${CC} for --with-cplant-tests) ]);; + esac], + [with_cplant_tests=no]) +AM_CONDITIONAL(WITH_CPLANT_TESTS, test x$with_cplant_tests != xno) + # 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. @@ -154,7 +179,8 @@ AC_MSG_RESULT($alpha_linux_env) AC_MSG_CHECKING(for 64 bit stat and truncate syscalls) AC_TRY_COMPILE([ #include <sys/stat.h> -#include <syscall.h>], +#include <syscall.h> +extern int syscall();], [char path[] = "/"; int fd = 0; struct stat buf; @@ -174,7 +200,8 @@ fi # AC_MSG_CHECKING(for fdatasync system call) AC_TRY_COMPILE([ -#include <syscall.h>], +#include <syscall.h> +extern int syscall();], [int fd = 0; syscall(SYS_fdatasync, fd);], syscall_fdatasync_exists=yes, @@ -188,7 +215,8 @@ fi # AC_MSG_CHECKING(for utime system call) AC_TRY_COMPILE([ -#include <syscall.h>], +#include <syscall.h> +extern int syscall();], [syscall(SYS_utime);], syscall_utime_exists=yes, syscall_utime_exists=no) @@ -196,7 +224,7 @@ AC_MSG_RESULT($syscall_utime_exists) if test x$syscall_utime_exists = xno; then AC_DEFINE(USE_NATIVE_UTIME) fi -# Check for SYS_utime +# Check for __st_ino # AC_MSG_CHECKING(for __st_ino) AC_TRY_COMPILE([ @@ -332,6 +360,7 @@ AC_OUTPUT( drivers/Makefile drivers/native/Makefile drivers/incore/Makefile + drivers/yod/Makefile dev/Makefile dev/stdfd/Makefile tests/Makefile) |
From: Ruth K. <rk...@us...> - 2003-12-16 15:43:17
|
Update of /cvsroot/libsysio/libsysio In directory sc8-pr-cvs1:/tmp/cvs-serv17589 Modified Files: Makefile.am configure.in Log Message: Changes to support build of one library from sources in all sysio directories. Automake 1.6 or higher is required. Default location of libsysio.a is $(top_srcdir)/lib, but is configurable. Index: Makefile.am =================================================================== RCS file: /cvsroot/libsysio/libsysio/Makefile.am,v retrieving revision 1.8 retrieving revision 1.9 diff -u -w -b -B -p -r1.8 -r1.9 --- Makefile.am 14 Aug 2003 18:39:32 -0000 1.8 +++ Makefile.am 16 Dec 2003 15:43:14 -0000 1.9 @@ -1,34 +1,46 @@ +AUTOMAKE_OPTIONS=1.6 if WITH_TESTS -TESTS = tests +TESTDIR = tests else -TESTS = +TESTDIR = endif -if WITH_CPLANT_TESTS -SUBDIRS = $(TESTS) -else -if WITH_CPLANT_YOD -SUBDIRS = src drivers dev -else -SUBDIRS = src drivers dev $(TESTS) -endif -endif +include $(top_srcdir)/src/module.mk +include $(top_srcdir)/include/module.mk +include $(top_srcdir)/tests/module.mk +include $(top_srcdir)/dev/stdfd/module.mk +include $(top_srcdir)/drivers/incore/module.mk +include $(top_srcdir)/drivers/native/module.mk +include $(top_srcdir)/drivers/yod/module.mk + +lib_LIBRARIES = ${LIBBUILD_DIR}/libsysio.a -EXTRA_DIST = Rules.make \ - include/dev.h include/file.h include/fs.h include/inode.h \ - include/mount.h include/sysio.h include/sysio-symbols.h +__LIBBUILD_DIR__libsysio_a_SOURCES = $(SRCDIR_SRCS) $(STDFD_SRCS) \ + $(INCORE_SRCS) $(NATIVE_SRCS) $(YOD_SRCS) -really-clean: maintainer-clean +include $(top_srcdir)/Rules.make + +EXTRA_DIST = Rules.make $(TESTS_EXTRA) $(SRCDIR_EXTRA) \ + $(INCLUDE_EXTRA) $(STDFD_EXTRA) $(INCORE_EXTRA) \ + $(NATIVE_EXTRA) $(YOD_EXTRA) + +AM_CPPFLAGS += ${YOD_DRIVER_FLAGS} + +really-clean: testsclean maintainer-clean -rm -rf autom4te-2.53.cache -rm -rf .deps - -rm -f Makefile.in \ - drivers/native/Makefile.in drivers/incore/Makefile.in \ - drivers/yod/Makefile.in \ - drivers/Makefile.in \ - dev/stdfd/Makefile.in \ - dev/Makefile.in \ - src/Makefile.in tests/Makefile.in + -rm -f Makefile.in -rm -f compile depcomp INSTALL install-sh missing mkinstalldirs \ configure aclocal.m4 -rm -f config.guess config.sub + -rm -rf $(LIBBUILD_DIR) + -rm -f libsysio*.tar.gz + cd $(TESTDIR); rm -rf Makefile Makefile.in .deps + +tests: $(lib_LIBRARIES) FORCE + cd $(TESTDIR); make +testsclean: FORCE + cd $(TESTDIR); make clean +clean: testsclean clean-am +FORCE: Index: configure.in =================================================================== RCS file: /cvsroot/libsysio/libsysio/configure.in,v retrieving revision 1.11 retrieving revision 1.12 diff -u -w -b -B -p -r1.11 -r1.12 --- configure.in 23 Oct 2003 16:06:13 -0000 1.11 +++ configure.in 16 Dec 2003 15:43:14 -0000 1.12 @@ -10,7 +10,8 @@ case "$host_os" in ;; esac -AM_INIT_AUTOMAKE +AM_INIT_AUTOMAKE([subdir-objects]) +AM_PROG_CC_C_O AC_PROG_CC AC_PROG_RANLIB @@ -19,6 +20,25 @@ AC_HEADER_STDC AC_HEADER_STAT AC_HEADER_TIME +have_lib_dir=yes; +AC_ARG_WITH(lib-dir, + AC_HELP_STRING([--with-lib-dir=<sysio lib build directory>], + [directory for sysio library]), + [ case "${withval}" in + "yes"|"no"|"") have_lib_dir=no ;; + *) LIBBUILD_DIR=${withval}; + test -d ${LIBBUILD_DIR} || mkdir ${LIBBUILD_DIR} || + have_lib_dir=no;; + esac;], + [ LIBBUILD_DIR=`pwd`/lib; + test -d ${LIBBUILD_DIR} || mkdir ${LIBBUILD_DIR} || have_lib_dir=no;]) +if test x${have_lib_dir} == xyes; then + echo "Using sysio library directory ${LIBBUILD_DIR}" +else + AC_MSG_ERROR(Need writeable path to sysio library directory ${LIBBUILD_DIR}) +fi +AC_SUBST(LIBBUILD_DIR) + AC_ARG_WITH(native_driver, AC_HELP_STRING([--with-native-driver],[build native test driver]), [ case "${withval}" in @@ -367,12 +387,5 @@ fi AC_OUTPUT( Makefile - src/Makefile - drivers/Makefile - drivers/native/Makefile - drivers/incore/Makefile - drivers/yod/Makefile - dev/Makefile - dev/stdfd/Makefile tests/Makefile) |
From: Lee W. <lw...@us...> - 2004-05-20 19:31:58
|
Update of /cvsroot/libsysio/libsysio In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv19480 Modified Files: Makefile.am configure.in Log Message: Integrated CFS changes from Eric's patch dated 5-19-2004. Index: Makefile.am =================================================================== RCS file: /cvsroot/libsysio/libsysio/Makefile.am,v retrieving revision 1.11 retrieving revision 1.12 diff -u -w -b -B -p -r1.11 -r1.12 --- Makefile.am 14 Feb 2004 19:42:57 -0000 1.11 +++ Makefile.am 20 May 2004 19:31:48 -0000 1.12 @@ -55,13 +55,10 @@ __LIBBUILD_DIR__libsysio_a_SOURCES = \ $(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 +if WITH_LUSTRE_HACK +# it would be better that let configure script check this +__LIBBUILD_DIR__libsysio_a_CFLAGS = -fPIC +endif include $(top_srcdir)/Rules.make Index: configure.in =================================================================== RCS file: /cvsroot/libsysio/libsysio/configure.in,v retrieving revision 1.16 retrieving revision 1.17 diff -u -w -b -B -p -r1.16 -r1.17 --- configure.in 6 Feb 2004 20:07:28 -0000 1.16 +++ configure.in 20 May 2004 19:31:48 -0000 1.17 @@ -144,6 +144,20 @@ AC_ARG_WITH(sockets, [with_sockets=no]) AM_CONDITIONAL(WITH_SOCKETS_DRIVER, test x$with_sockets = xyes) +AC_ARG_WITH(lustre-hack, + AC_HELP_STRING([--with-lustre-hack], + [have hacking code which needed to support liblustre driver (EXPERIMENTAL)]), + [ case "${withval}" in + yes) ;; + no) ;; + *) AC_MSG_ERROR(bad value ${withval} for --with-lustre-hack) ;; + esac], + [with_lustre_hack=no]) +AM_CONDITIONAL(WITH_LUSTRE_HACK, test x$with_lustre_hack = xyes) +if test x$with_lustre_hack = xyes; then + AC_DEFINE(HAVE_LUSTRE_HACK) +fi + # 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. |
From: Lee W. <lw...@us...> - 2009-02-04 20:07:29
|
Update of /cvsroot/libsysio/libsysio In directory ddv4jf1.ch3.sourceforge.com:/tmp/cvs-serv1058 Modified Files: Makefile.am configure.in Log Message: A new API, built when --with-file-handle-interface is set to yes, is available with this deposit. The API allows operation by handles derived from exported volumes. At this point, it's not incredibly well tested. What is tested is the export/unexport functionality and the root_of, lookup, and stat functions. Hopefully, this will mature quickly. Not yet included is the ability to use credentials other than the caller's from it's process credentials. That ability should be here soon. Index: Makefile.am =================================================================== RCS file: /cvsroot/libsysio/libsysio/Makefile.am,v retrieving revision 1.18 retrieving revision 1.19 diff -u -w -b -B -p -r1.18 -r1.19 --- Makefile.am 15 Oct 2008 22:01:01 -0000 1.18 +++ Makefile.am 4 Feb 2009 20:07:22 -0000 1.19 @@ -13,6 +13,7 @@ include $(top_srcdir)/dev/module.mk include $(top_srcdir)/dev/stdfd/module.mk include $(top_srcdir)/drivers/incore/module.mk include $(top_srcdir)/drivers/native/module.mk +include $(top_srcdir)/misc/module.mk lib_LIBRARIES = ${LIBBUILD_DIR}/libsysio.a @@ -43,6 +44,7 @@ endif __LIBBUILD_DIR__libsysio_a_SOURCES = \ $(SRCDIR_SRCS) \ $(THREAD_MODEL_POSIX_SRCS) \ + $(MISCDIR_SRCS) \ $(OPTIONAL_STDDEV_SRCS) \ $(OPTIONAL_STDFD_SRCS) \ $(OPTIONAL_INCORE_SRCS) \ Index: configure.in =================================================================== RCS file: /cvsroot/libsysio/libsysio/configure.in,v retrieving revision 1.43 retrieving revision 1.44 diff -u -w -b -B -p -r1.43 -r1.44 --- configure.in 15 Oct 2008 22:01:01 -0000 1.43 +++ configure.in 4 Feb 2009 20:07:22 -0000 1.44 @@ -175,6 +175,22 @@ if test x$with_threads = xposix; then fi AM_CONDITIONAL(WITH_THREAD_MODEL_POSIX, test x$with_threads = xposix) +AC_ARG_WITH(file-handle-interface, + AC_HELP_STRING([--with-file-handle-interface], + [enable file handle API support]), + [ case "${withval}" in + yes) ;; + no) ;; + *) AC_MSG_ERROR(bad value ${withval} for --with-file-handle-interface) ;; + esac], + ) +AM_CONDITIONAL(WITH_FILE_HANDLE_INTERFACE, + test x$with_file_handle_interface = xyes) +if test x$with_file_handle_interface = xyes; then + AC_DEFINE(I_ASSOCIATIONS) + AC_DEFINE(FILE_HANDLE_INTERFACE) +fi + # 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. |