Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
pike
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
pikelang
pike
Commits
5f3bc1b5
Commit
5f3bc1b5
authored
25 years ago
by
Per Hedbor
Browse files
Options
Downloads
Patches
Plain Diff
Added test for f_fsid for filesystem_stat(), fixed the tests for statvfs() members.
Rev: src/modules/files/configure.in:1.68
parent
e7752c11
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/modules/files/configure.in
+53
-5
53 additions, 5 deletions
src/modules/files/configure.in
with
53 additions
and
5 deletions
src/modules/files/configure.in
+
53
−
5
View file @
5f3bc1b5
# $Id: configure.in,v 1.6
7
1999/06/2
3 19:06:57 grubba
Exp $
# $Id: configure.in,v 1.6
8
1999/06/2
5 20:44:39 per
Exp $
AC_INIT(file.c)
AC_INIT(file.c)
AC_CONFIG_HEADER(file_machine.h)
AC_CONFIG_HEADER(file_machine.h)
...
@@ -135,7 +135,7 @@ AC_MSG_RESULT($pike_cv_func_mkdir_args)
...
@@ -135,7 +135,7 @@ AC_MSG_RESULT($pike_cv_func_mkdir_args)
AC_DEFINE_UNQUOTED(MKDIR_ARGS,$pike_cv_func_mkdir_args)
AC_DEFINE_UNQUOTED(MKDIR_ARGS,$pike_cv_func_mkdir_args)
if test x$ac_cv_func_readdir_r = xyes ; then
if test x$ac_cv_func_readdir_r = xyes ; then
AC_MSG_CHECKING(if readdir_r takes 2(Solaris & HPUX) or 3(Posix) arguments)
AC_MSG_CHECKING(if readdir_r takes 2(
old
Solaris & HPUX) or 3(Posix) arguments)
AC_CACHE_VAL(pike_cv_func_posix_readdir_r, [
AC_CACHE_VAL(pike_cv_func_posix_readdir_r, [
AC_TRY_COMPILE([
AC_TRY_COMPILE([
#ifndef _LARGEFILE_SOURCE
#ifndef _LARGEFILE_SOURCE
...
@@ -447,10 +447,11 @@ if test x$ac_cv_func_statvfs = xyes ; then
...
@@ -447,10 +447,11 @@ if test x$ac_cv_func_statvfs = xyes ; then
])
])
])
])
AC_MSG_RESULT($pike_cv_struct_statvfs_f_fstr)
AC_MSG_RESULT($pike_cv_struct_statvfs_f_fstr)
if test x$pike_cv_struct_statfs_f_fstr = xyes; then
if test x$pike_cv_struct_stat
v
fs_f_fstr = xyes; then
AC_DEFINE(HAVE_STATVFS_F_FSTR)
AC_DEFINE(HAVE_STATVFS_F_FSTR)
else :; fi
else :; fi
AC_MSG_CHECKING(if the struct statfs has the member f_basetype)
AC_MSG_CHECKING(if the struct statvfs has the member f_basetype)
AC_CACHE_VAL(pike_cv_struct_statvfs_f_basetype, [
AC_CACHE_VAL(pike_cv_struct_statvfs_f_basetype, [
AC_TRY_COMPILE([
AC_TRY_COMPILE([
#ifndef _LARGEFILE_SOURCE
#ifndef _LARGEFILE_SOURCE
...
@@ -493,7 +494,7 @@ if test x$ac_cv_func_statvfs = xyes ; then
...
@@ -493,7 +494,7 @@ if test x$ac_cv_func_statvfs = xyes ; then
])
])
])
])
AC_MSG_RESULT($pike_cv_struct_statvfs_f_basetype)
AC_MSG_RESULT($pike_cv_struct_statvfs_f_basetype)
if test x$pike_cv_struct_statfs_f_basetype = xyes; then
if test x$pike_cv_struct_stat
v
fs_f_basetype = xyes; then
AC_DEFINE(HAVE_STATVFS_F_BASETYPE)
AC_DEFINE(HAVE_STATVFS_F_BASETYPE)
else :; fi
else :; fi
else :; fi
else :; fi
...
@@ -603,6 +604,53 @@ if test x$ac_cv_func_statfs = xyes ; then
...
@@ -603,6 +604,53 @@ if test x$ac_cv_func_statfs = xyes ; then
if test x$pike_cv_struct_statfs = xyes; then
if test x$pike_cv_struct_statfs = xyes; then
AC_DEFINE(HAVE_STRUCT_STATFS)
AC_DEFINE(HAVE_STRUCT_STATFS)
AC_MSG_CHECKING(if the struct statfs has the member f_fsid)
AC_CACHE_VAL(pike_cv_struct_statfs_f_fsid, [
AC_TRY_COMPILE([
#ifndef _LARGEFILE_SOURCE
# define _FILE_OFFSET_BITS 64
# define _LARGEFILE_SOURCE
# define _LARGEFILE64_SOURCE 1
#endif
/* HPUX needs these too... */
#ifndef __STDC_EXT__
# define __STDC_EXT__
#endif /* !__STDC_EXT__ */
#ifndef POSIX_SOURCE
#define POSIX_SOURCE
#endif
#ifdef HAVE_SYS_PARAM_H
#include <sys/param.h>
#endif
#ifdef HAVE_SYS_SYSPROTO_H
#include <sys/sysproto.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#include <sys/stat.h>
#ifdef HAVE_SYS_VFS_H
#include <sys/vfs.h>
#endif
#ifdef HAVE_SYS_STATFS_H
#include <sys/statfs.h>
#endif
#ifdef HAVE_SYS_MOUNT_H
#include <sys/mount.h>
#endif
], [
struct statfs st;
st.f_fsid = 0;
], [ pike_cv_struct_statfs_f_fsid=yes
], [ pike_cv_struct_statfs_f_fsid=no
])
])
AC_MSG_RESULT($pike_cv_struct_statfs_f_fsid)
if test x$pike_cv_struct_statfs_f_fsid = xyes; then
AC_DEFINE(HAVE_STATFS_F_FSID)
else :; fi
AC_MSG_CHECKING(if the struct statfs has the member f_bavail)
AC_MSG_CHECKING(if the struct statfs has the member f_bavail)
AC_CACHE_VAL(pike_cv_struct_statfs_f_bavail, [
AC_CACHE_VAL(pike_cv_struct_statfs_f_bavail, [
AC_TRY_COMPILE([
AC_TRY_COMPILE([
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment