pike.git / src / modules / _Stdio / configure.in

version» Context lines:

pike.git/src/modules/_Stdio/configure.in:1042:    struct statfs st;    st.f_bavail = 0;    ], [ pike_cv_struct_statfs_f_bavail=yes    ], [ pike_cv_struct_statfs_f_bavail=no    ])    ])    AC_MSG_RESULT($pike_cv_struct_statfs_f_bavail)    if test x$pike_cv_struct_statfs_f_bavail = xyes; then    AC_DEFINE(HAVE_STATFS_F_BAVAIL)    else :; fi +  AC_MSG_CHECKING(if the struct statfs has the member f_fstypename) +  AC_CACHE_VAL(pike_cv_struct_statfs_f_fstypename, [ +  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; +  char * x = st.f_fstypename; +  ], [ pike_cv_struct_statfs_f_fstypename=yes +  ], [ pike_cv_struct_statfs_f_fstypename=no +  ]) +  ]) +  AC_MSG_RESULT($pike_cv_struct_statfs_f_fstypename) +  if test x$pike_cv_struct_statfs_f_fstypename = xyes; then +  AC_DEFINE(HAVE_STATFS_F_FSTYPENAME) +  else :; fi    else    # No struct statfs. We might be running ULTRIX,    # so check for struct fs_data.    AC_MSG_CHECKING(if the struct fs_data exists)    AC_CACHE_VAL(pike_cv_struct_fs_data, [    AC_TRY_COMPILE([   #ifndef _LARGEFILE_SOURCE   # define _FILE_OFFSET_BITS 64   # define _LARGEFILE_SOURCE   # define _LARGEFILE64_SOURCE 1