[Libsysio-commit] cplant: libsysio configure.in
Brought to you by:
lward
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 # |