powerpc-unknown-linux-yellowdog2.3.
* include/{mount_headers2.h, am_defs.h}: safer setup before
inclusion of <linux/nfs_mount.h>, which is broken on several
systems.
* configure.in: test for <linux/nfs2.h>. Separate special test
for <linux/nfs_mount.h> because we need to define __KERNEL__ for
that test, as well as optionally define struct nfs2_fh for some
systems (gentoo with 2.4 kernel, yellowdog 2.3, and others).
* config.guess.long: support Gentoo and Yellow Dog Linux distros.
* minor new ports: i386-pc-linux-suse9.2 and
i386-unknown-freebsd5.4.
A.powerpc64-unknown-linux-rhel4
A.powerpc64-unknown-linux-sles9
A.powerpc-apple-darwin7.9.0
+A.i386-pc-linux-suse9.2
+A.i386-unknown-freebsd5.4
+A.i386-pc-linux-gentoo1.4.16
+A.powerpc-unknown-linux-yellowdog2.3
+2005-05-20 Erez Zadok <ezk@cs.sunysb.edu>
+
+ * minor new ports: i386-pc-linux-gentoo1.4.16 and
+ powerpc-unknown-linux-yellowdog2.3.
+
+ * include/{mount_headers2.h, am_defs.h}: safer setup before
+ inclusion of <linux/nfs_mount.h>, which is broken on several
+ systems.
+
+ * configure.in: test for <linux/nfs2.h>. Separate special test
+ for <linux/nfs_mount.h> because we need to define __KERNEL__ for
+ that test, as well as optionally define struct nfs2_fh for some
+ systems (gentoo with 2.4 kernel, yellowdog 2.3, and others).
+
+ * config.guess.long: support Gentoo and Yellow Dog Linux distros.
+
2005-05-18 Erez Zadok <ezk@cs.sunysb.edu>
+ * minor new ports: i386-pc-linux-suse9.2 and
+ i386-unknown-freebsd5.4.
+
* amd/nfs_subr.c: use NFS_FHSIZE, not FHSIZE.
2005-05-17 Erez Zadok <ezk@cs.sunysb.edu>
*** Notes specific to am-utils version 6.1-rc6
+- minor new ports:
+ i386-pc-linux-gentoo1.4.16
+ i386-pc-linux-suse9.2
+ i386-unknown-freebsd5.4
+ powerpc-unknown-linux-yellowdog2.3
+
- bugs fixed:
* minor compile error of nfs_subr.c on some systems.
long=`getver /etc/debian_version`
echo ${GCONFIG}-deb${long}
exit 0
+ elif test -f /etc/gentoo-release ; then
+ long=`getver /etc/gentoo-release`
+ echo ${GCONFIG}-gentoo${long}
+ exit 0
+ elif test -f /etc/yellowdog-release ; then
+ long=`getver /etc/yellowdog-release`
+ echo ${GCONFIG}-yellowdog${long}
+ exit 0
else
echo ${GCONFIG}
fi
dnl INITIALIZATION
dnl AC_INIT
dnl new init style: PACKAGE, VERSION, BUG-REPORTING-ADDRESS
+dnl UPDATE LIBAMU VERSION BEFORE OFFICIAL RELEASE!!!
+dnl UPDATE LIBAMU VERSION BEFORE OFFICIAL RELEASE!!!
+dnl UPDATE LIBAMU VERSION BEFORE OFFICIAL RELEASE!!!
AC_INIT([am-utils],[6.1-rc6],[am-utils@am-utils.org])
+dnl UPDATE LIBAMU VERSION BEFORE OFFICIAL RELEASE!!!
+dnl UPDATE LIBAMU VERSION BEFORE OFFICIAL RELEASE!!!
+dnl UPDATE LIBAMU VERSION BEFORE OFFICIAL RELEASE!!!
AC_MSG_NOTICE(*** INITIALIZATION ***)
AC_CONFIG_SRCDIR([amd/amd.c])
AM_CONFIG_HEADER(config.h)
dnl
dnl AC_CONFIG_AUX_DIR(m4)
AC_PREREQ(2.52)
-AC_REVISION($Revision: 1.89 $)
+AC_REVISION($Revision: 1.90 $)
AC_COPYRIGHT([Copyright (c) 1997-2005 Erez Zadok])
dnl find out system type
AC_MSG_NOTICE(*** SYSTEM TYPES ***)
linux/kdev_t.h \
linux/list.h \
linux/nfs.h \
+ linux/nfs2.h \
linux/posix_types.h \
machine/endian.h \
msdosfs/msdosfsmount.h \
linux/auto_fs.h \
linux/auto_fs4.h \
linux/loop.h \
+], [], [],
+[
+#ifdef HAVE_SYS_SOCKET_H
+# include <sys/socket.h>
+#endif /* HAVE_SYS_SOCKET_H */
+#ifdef HAVE_LIMITS_H
+# include <limits.h>
+#endif /* HAVE_LIMITS_H */
+#ifdef HAVE_LINUX_POSIX_TYPES_H
+# include <linux/posix_types.h>
+#endif /* HAVE_LINUX_POSIX_TYPES_H */
+/* next dev_t lines needed due to changes in kernel code */
+#undef dev_t
+#define dev_t unsigned short /* compatible with Red Hat and SuSE */
+])
+dnl even more special checks for Linux nfs headers
+AC_CHECK_HEADERS([ \
linux/nfs_mount.h \
], [], [],
[
#ifdef HAVE_LINUX_POSIX_TYPES_H
# include <linux/posix_types.h>
#endif /* HAVE_LINUX_POSIX_TYPES_H */
+#ifdef HAVE_LINUX_NFS2_H
+struct nfs2_fh {
+ char data[FHSIZE];
+};
+# define _LINUX_NFS2_H
+#endif /* HAVE_LINUX_NFS2_H */
/* next dev_t lines needed due to changes in kernel code */
#undef dev_t
#define dev_t unsigned short /* compatible with Red Hat and SuSE */
+/* needed to find nfs2_fh and nfs_fh on older systems (yellowdog2.3, gentoo, etc.) */
+# ifndef __KERNEL__
+# define __KERNEL__
+# endif /* __KERNEL__ */
])
dnl ======================================================================
* SUCH DAMAGE.
*
*
- * $Id: am_defs.h,v 1.56 2005/04/17 03:05:54 ezk Exp $
+ * $Id: am_defs.h,v 1.57 2005/05/20 14:34:26 ezk Exp $
*
*/
#ifdef HAVE_SYS_FS_NFS_CLNT_H
# include <sys/fs/nfs_clnt.h>
#endif /* HAVE_SYS_FS_NFS_CLNT_H */
+
+/* complex rules for linux/nfs_mount.h: broken on so many systems */
#ifdef HAVE_LINUX_NFS_MOUNT_H
-# define _LINUX_NFS_H
-# define _LINUX_NFS2_H
-# define _LINUX_NFS3_H
-# define _LINUX_NFS_FS_H
-# define _LINUX_IN_H
+# ifndef _LINUX_NFS_H
+# define _LINUX_NFS_H
+# endif /* not _LINUX_NFS_H */
+# ifndef _LINUX_NFS2_H
+# define _LINUX_NFS2_H
+# endif /* not _LINUX_NFS2_H */
+# ifndef _LINUX_NFS3_H
+# define _LINUX_NFS3_H
+# endif /* not _LINUX_NFS3_H */
+# ifndef _LINUX_NFS_FS_H
+# define _LINUX_NFS_FS_H
+# endif /* not _LINUX_NFS_FS_H */
+# ifndef _LINUX_IN_H
+# define _LINUX_IN_H
+# endif /* not _LINUX_IN_H */
+# ifndef __KERNEL__
+# define __KERNEL__
+# endif /* __KERNEL__ */
# include <linux/nfs_mount.h>
+# undef __KERNEL__
#endif /* HAVE_LINUX_NFS_MOUNT_H */
/*
# include <sys/fs/nfs_clnt.h>
#endif /* HAVE_SYS_FS_NFS_CLNT_H */
-#ifdef HAVE_LINUX_NFS_MOUNT_H
-# define _LINUX_NFS_H
-# define _LINUX_NFS2_H
-# define _LINUX_NFS3_H
-# define _LINUX_NFS_FS_H
-# define _LINUX_IN_H
+# ifndef _LINUX_NFS_H
+# define _LINUX_NFS_H
+# endif /* not _LINUX_NFS_H */
+# ifndef _LINUX_NFS2_H
+# define _LINUX_NFS2_H
+# endif /* not _LINUX_NFS2_H */
+# ifndef _LINUX_NFS3_H
+# define _LINUX_NFS3_H
+# endif /* not _LINUX_NFS3_H */
+# ifndef _LINUX_NFS_FS_H
+# define _LINUX_NFS_FS_H
+# endif /* not _LINUX_NFS_FS_H */
+# ifndef _LINUX_IN_H
+# define _LINUX_IN_H
+# endif /* not _LINUX_IN_H */
+# ifndef __KERNEL__
+# define __KERNEL__
+# endif /* __KERNEL__ */
# include <linux/nfs_mount.h>
+# undef __KERNEL__
#endif /* HAVE_LINUX_NFS_MOUNT_H */