[Libsysio-commit] RedStorm: libsysio configure.in
Brought to you by:
lward
|
From: Lee W. <lw...@us...> - 2003-05-12 11:48:48
|
Update of /cvsroot/libsysio/libsysio
In directory sc8-pr-cvs1:/tmp/cvs-serv27060
Modified Files:
Tag: RedStorm
configure.in
Log Message:
Modifications for the Cray RedStorm compute node operating system. This is
a BSD-based libc.
Index: configure.in
===================================================================
RCS file: /cvsroot/libsysio/libsysio/configure.in,v
retrieving revision 1.5
retrieving revision 1.5.6.1
diff -u -w -b -B -p -r1.5 -r1.5.6.1
--- configure.in 26 Mar 2003 00:05:59 -0000 1.5
+++ configure.in 12 May 2003 11:48:45 -0000 1.5.6.1
@@ -120,7 +120,7 @@ AC_TRY_COMPILE([
#include <sys/types.h>
#include <sys/stat.h>
#include <unistd.h>], [
-struct stat64 st64; printf("%u\n", sizeof(struct stat64));],
+struct stat64 st64;],
sysio_largefile64_source_required=no,
sysio_largefile64_source_required=maybe)
if test x$sysio_largefile64_source_required = xmaybe; then
@@ -129,7 +129,7 @@ if test x$sysio_largefile64_source_requi
#include <sys/types.h>
#include <sys/stat.h>
#include <unistd.h>], [
-int i; i = 0;],
+struct stat64 st64;],
sysio_largefile64_source_required=yes,
sysio_largefile64_source_required=no)
fi
@@ -173,15 +173,19 @@ fi
# Check for fdatasync syscall
#
AC_MSG_CHECKING(for fdatasync system call)
+if test x$alpha_linux_env == xyes; then
+ _syscallnum=SYS_osf_fdatasync
+else
+ _syscallnum=SYS_fdatasync
+fi
AC_TRY_COMPILE([
-#include <syscall.h>],
-[int fd = 0;
-syscall(SYS_fdatasync, fd);],
+#include <syscall.h>], [
+syscall($_syscallnum, 0);],
syscall_fdatasync_exists=yes,
syscall_fdatasync_exists=no)
AC_MSG_RESULT($syscall_fdatasync_exists)
-if test x$syscall_fdatasync_exists = xno; then
- AC_DEFINE(USE_NATIVE_FDATASYNC)
+if test x$syscall_fdatasync_exists = xyes; then
+ AC_DEFINE_UNQUOTED(NATIVE_FDATASYNC, $_syscallnum)
fi
# Check for SYS_utime
@@ -208,6 +212,20 @@ st.__st_ino = 0;],
AC_MSG_RESULT($have__st_ino)
if test x$have__st_ino = xyes; then
AC_DEFINE(HAVE__ST_INO)
+fi
+
+# Check for getdents64 call
+#
+AC_MSG_CHECKING(for getdents64 system call)
+AC_TRY_COMPILE([
+#include <syscall.h>],
+[
+ syscall(SYS_getdents64, 0, (char *)0, 0);],
+ syscall_getdents64_exists=yes,
+ syscall_getdents64_exists=no)
+AC_MSG_RESULT($syscall_getdents64_exists)
+if test x$syscall_getdents64_exists = xno; then
+ AC_DEFINE(USE_NATURAL_GETDENTS)
fi
AC_MSG_CHECKING(whether .text pseudo-op must be used)
|