2012-11-03 20:22:50 -04:00
|
|
|
$OpenBSD: patch-source3_configure_in,v 1.6 2012/11/04 00:22:50 brad Exp $
|
|
|
|
--- source3/configure.in.orig Mon Oct 29 05:05:46 2012
|
|
|
|
+++ source3/configure.in Tue Oct 30 02:50:04 2012
|
|
|
|
@@ -1675,8 +1675,7 @@ DSO_EXPORTS=""
|
2010-07-14 03:20:18 -04:00
|
|
|
;;
|
|
|
|
*openbsd*) BLDSHARED="true"
|
|
|
|
LDSHFLAGS="-shared"
|
|
|
|
- DYNEXP="-Wl,-Bdynamic"
|
|
|
|
- SONAMEFLAG="-Wl,-soname,"
|
|
|
|
+ DYNEXP="-Wl,--export-dynamic"
|
|
|
|
PICFLAG="-fPIC"
|
|
|
|
AC_DEFINE(STAT_ST_BLOCKSIZE,512,[The size of a block])
|
|
|
|
AC_DEFINE(BROKEN_GETGRNAM,1,[Does getgrnam work correctly])
|
2012-11-03 20:22:50 -04:00
|
|
|
@@ -6789,13 +6788,43 @@ fi
|
2012-04-16 17:58:34 -04:00
|
|
|
|
|
|
|
CFLAGS=$CFLAGS_SAVE
|
|
|
|
|
|
|
|
+# Checks for *BSD bsd_statvfs() function
|
|
|
|
+# Start
|
|
|
|
+AC_CHECK_HEADERS(sys/param.h sys/mount.h)
|
|
|
|
+
|
|
|
|
+AC_MSG_CHECKING([bsd_statvfs: checking for statfs() and struct statfs.bsize])
|
|
|
|
+AC_CACHE_VAL(bsdstatvfs_cv_statfs,[
|
|
|
|
+ AC_TRY_RUN([
|
|
|
|
+ #ifdef HAVE_SYS_PARAM_H
|
|
|
|
+ #include <sys/param.h>
|
|
|
|
+ #endif
|
|
|
|
+ #ifdef HAVE_SYS_MOUNT_H
|
|
|
|
+ #include <sys/mount.h>
|
|
|
|
+ #endif
|
|
|
|
+ int main (void)
|
|
|
|
+ {
|
|
|
|
+ struct statfs fsd;
|
|
|
|
+ fsd.f_bsize = 0;
|
|
|
|
+ exit (statfs (".", &fsd));
|
|
|
|
+ }],
|
|
|
|
+ bsdstatvfs_cv_statfs=yes,
|
|
|
|
+ bsdstatvfs_cv_statfs=no,
|
|
|
|
+ bsdstatvfs_cv_statfs=no)])
|
|
|
|
+AC_MSG_RESULT($bsdstatvfs_cv_statfs)
|
|
|
|
+
|
|
|
|
+if test $bsdstatvfs_cv_statfs = yes; then
|
|
|
|
+ AC_DEFINE(BSD_STATVFS_BSIZE,1,[Whether statfs exists and struct statfs has bsize property])
|
|
|
|
+fi
|
|
|
|
+
|
|
|
|
+# End
|
|
|
|
+
|
|
|
|
# Checks for the vfs_fileid module
|
|
|
|
# Start
|
|
|
|
AC_CHECK_FUNC(getmntent)
|
|
|
|
|
|
|
|
AC_CHECK_HEADERS(sys/statfs.h)
|
|
|
|
|
|
|
|
-AC_MSG_CHECKING([vfs_fileid: checking for statfs() and struct statfs.f_fsid)])
|
|
|
|
+AC_MSG_CHECKING([vfs_fileid: checking for statfs() and struct statfs.f_fsid])
|
|
|
|
AC_CACHE_VAL(vfsfileid_cv_statfs,[
|
|
|
|
AC_TRY_RUN([
|
|
|
|
#include <sys/types.h>
|