Thread: [Libsysio-commit] cplant: libsysio configure.in
Brought to you by:
lward
From: Ruth K. <rk...@us...> - 2003-05-01 22:46:14
|
Update of /cvsroot/libsysio/libsysio In directory sc8-pr-cvs1:/tmp/cvs-serv26814 Modified Files: Tag: cplant configure.in Log Message: Remove dependency on cplant include file Also, with CFLAGS=-Werror set some of the configure checks were failing erroneously. Index: configure.in =================================================================== RCS file: /cvsroot/libsysio/libsysio/configure.in,v retrieving revision 1.5.2.2 retrieving revision 1.5.2.3 diff -u -w -b -B -p -r1.5.2.2 -r1.5.2.3 --- configure.in 29 Apr 2003 19:08:39 -0000 1.5.2.2 +++ configure.in 1 May 2003 22:46:09 -0000 1.5.2.3 @@ -67,27 +67,17 @@ AC_ARG_WITH(stdfd-dev, AM_CONDITIONAL(WITH_STDFD_DEV, test x$with_stdfd_dev = xyes) AC_ARG_WITH(cplant_yod, - [ --with-cplant-yod=[portals-include-path] build cplant yod I/O driver], + [ --with-cplant-yod build cplant yod I/O driver], [ case "${withval}" in - yes) - AC_MSG_ERROR(missing include dir argument for --with-cplant-yod);; - no);; - *) - if test -d ${withval}; then - PORTALS_INCLUDE="-I${withval} -I${withval}/sys" - YOD_DRIVER_INCLUDE="-I../../drivers/yod" - if test x${with_stdfd_dev} != xyes; then + 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 - else - AC_MSG_ERROR(include dir ${withval} not found for --with-cplant-yod) 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 != xno) -AC_SUBST(PORTALS_INCLUDE) -AC_SUBST(YOD_DRIVER_INCLUDE) +AM_CONDITIONAL(WITH_CPLANT_YOD, test x$with_cplant_yod = xyes) # We keep the original values in `$config_*' and never modify them, so we # can write them unchanged into config.make. Everything else uses @@ -170,7 +160,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; @@ -190,7 +181,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, @@ -204,7 +196,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) @@ -212,7 +205,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([ |
From: Ruth K. <rk...@us...> - 2003-06-13 01:02:25
|
Update of /cvsroot/libsysio/libsysio In directory sc8-pr-cvs1:/tmp/cvs-serv4991 Modified Files: Tag: cplant configure.in Log Message: alternate build for tests on cplant platform Index: configure.in =================================================================== RCS file: /cvsroot/libsysio/libsysio/configure.in,v retrieving revision 1.5.2.3 retrieving revision 1.5.2.4 diff -u -w -b -B -p -r1.5.2.3 -r1.5.2.4 --- configure.in 1 May 2003 22:46:09 -0000 1.5.2.3 +++ configure.in 13 Jun 2003 01:02:22 -0000 1.5.2.4 @@ -79,6 +79,25 @@ AC_ARG_WITH(cplant_yod, [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}/bin/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. |
From: Ruth K. <rk...@us...> - 2003-07-24 22:25:10
|
Update of /cvsroot/libsysio/libsysio In directory sc8-pr-cvs1:/tmp/cvs-serv14747 Modified Files: Tag: cplant configure.in Log Message: Add check for existence of st_gen in stat struct Index: configure.in =================================================================== RCS file: /cvsroot/libsysio/libsysio/configure.in,v retrieving revision 1.5.2.4 retrieving revision 1.5.2.5 diff -u -w -b -B -p -r1.5.2.4 -r1.5.2.5 --- configure.in 13 Jun 2003 01:02:22 -0000 1.5.2.4 +++ configure.in 24 Jul 2003 22:25:06 -0000 1.5.2.5 @@ -237,6 +237,19 @@ AC_MSG_RESULT($have__st_ino) if test x$have__st_ino = xyes; then AC_DEFINE(HAVE__ST_INO) fi +# Check for __st_ino +# +AC_MSG_CHECKING(for st_gen) +AC_TRY_COMPILE([ +#include <sys/stat.h>], +[struct stat st; +st.st_gen = 0;], + have_st_gen=yes, + have_st_gen=no) +AC_MSG_RESULT($have_st_gen) +if test x$have_st_gen = xyes; then + AC_DEFINE(HAVE_GENERATION) +fi AC_MSG_CHECKING(whether .text pseudo-op must be used) AC_CACHE_VAL(sysio_asm_dot_text, [dnl |
From: Ruth K. <rk...@us...> - 2003-08-21 11:28:14
|
Update of /cvsroot/libsysio/libsysio In directory sc8-pr-cvs1:/tmp/cvs-serv20601 Modified Files: Tag: cplant configure.in Log Message: backport to RH6.2 cplant environment Index: configure.in =================================================================== RCS file: /cvsroot/libsysio/libsysio/configure.in,v retrieving revision 1.8 retrieving revision 1.8.2.1 diff -u -w -b -B -p -r1.8 -r1.8.2.1 --- configure.in 18 Aug 2003 15:52:20 -0000 1.8 +++ configure.in 20 Aug 2003 21:05:49 -0000 1.8.2.1 @@ -167,13 +167,30 @@ fi # AC_MSG_CHECKING(for alpha linux) alpha_linux_env=no -if test ${machine:0:5} = alpha && \ - test ${os:0:5} = linux; then - alpha_linux_env=yes +if test `expr ${machine} : "alpha"` = 5 && \ + test `expr ${os} : "linux"` = 5; then + alpha_linux_env=yes; AC_DEFINE(ALPHA_LINUX) fi AC_MSG_RESULT($alpha_linux_env) AM_CONDITIONAL(TEST_ALPHA_ARG, test x$alpha_linux_env = xyes) + +# check for 64 bit getdents syscall +# +AC_MSG_CHECKING(for 64 bit getdents call) +AC_TRY_COMPILE([ +#include <sys/stat.h> +#include <syscall.h> +extern int syscall();], +[int fd; char buf[10]; size_t nbytes; +syscall(SYS_getdents64, fd, buf, nbytes); +], + getdents64_exists=yes, + getdents64_exists=no) +AC_MSG_RESULT($getdents64_exists) +if test x$getdents64_exists = xyes; then + AC_DEFINE(USE_GETDENTS64) +fi # check for 64 bit stat, fstat, truncate, ftruncate syscalls # |