pike.git/
src/
modules/
_Stdio/
configure.in
Branch:
Tag:
Non-build tags
All tags
No tags
2017-07-12
2017-07-12 18:43:16 by William Welliver <william@welliver.org>
968cc55e59252be868fa7aa7571be609eb39683f (
47
lines) (+
47
/-
0
)
[
Show
|
Annotate
]
Branch:
8.1
Stdio: include fstype name on systems that provide it as a string (Darwin)
1049:
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.