1 AC_DEFUN([AC_PACKAGE_NEED_XFS_XFS_H],
2 [ AC_CHECK_HEADERS([xfs/xfs.h])
3 if test "$ac_cv_header_xfs_xfs_h" != "yes"; then
5 echo 'FATAL ERROR: cannot find a valid <xfs/xfs.h> header file.'
6 echo 'Run "make install-qa" from the xfsprogs source.'
11 AC_DEFUN([AC_PACKAGE_WANT_LIBXFS_H],
12 [ AC_CHECK_HEADERS([xfs/libxfs.h], [ have_libxfs=true ], [ have_libxfs=false ])
16 AC_DEFUN([AC_PACKAGE_WANT_XLOG_ASSIGN_LSN],
17 [ AC_CHECK_DECL(xlog_assign_lsn,
18 [ have_xlog_assign_lsn=true ], [ have_xlog_assign_lsn=false ],
19 [[#include <xfs/libxfs.h>]])
20 AC_SUBST(have_xlog_assign_lsn)
23 AC_DEFUN([AC_PACKAGE_NEED_XFS_XQM_H],
24 [ AC_CHECK_HEADERS([xfs/xqm.h])
25 if test "$ac_cv_header_xfs_xqm_h" != "yes"; then
27 echo 'FATAL ERROR: cannot find a valid <xfs/xqm.h> header file.'
28 echo 'Install or upgrade the XFS development package.'
29 echo 'Alternatively, run "make install-dev" from the xfsprogs source.'
34 AC_DEFUN([AC_PACKAGE_NEED_XFS_HANDLE_H],
35 [ AC_CHECK_HEADERS([xfs/handle.h])
36 if test "$ac_cv_header_xfs_handle_h" != "yes"; then
38 echo 'FATAL ERROR: cannot find a valid <xfs/handle.h> header file.'
39 echo 'Install or upgrade the XFS development package.'
40 echo 'Alternatively, run "make install-dev" from the xfsprogs source.'
45 AC_DEFUN([AC_PACKAGE_NEED_LIBXFSINIT_LIBXFS],
46 [ AC_CHECK_LIB(xfs, libxfs_init,, [
48 echo 'FATAL ERROR: could not find a valid XFS base library.'
49 echo 'Install or upgrade the XFS library package.'
50 echo 'Alternatively, run "make install-dev" from the xfsprogs source.'
54 test -f ${libexecdir}${libdirsuffix}/libxfs.la && \
55 libxfs="${libexecdir}${libdirsuffix}/libxfs.la"
59 AC_DEFUN([AC_PACKAGE_NEED_OPEN_BY_FSHANDLE],
60 [ AC_CHECK_LIB(handle, open_by_fshandle,, [
62 echo 'FATAL ERROR: could not find a current XFS handle library.'
63 echo 'Install or upgrade the XFS library package.'
64 echo 'Alternatively, run "make install-dev" from the xfsprogs source.'
68 test -f ${libexecdir}${libdirsuffix}/libhandle.la && \
69 libhdl="${libexecdir}${libdirsuffix}/libhandle.la"
73 AC_DEFUN([AC_PACKAGE_NEED_ATTRLIST_LIBHANDLE],
74 [ AC_CHECK_LIB(handle, attr_list_by_handle,, [
76 echo 'FATAL ERROR: could not find a current XFS handle library.'
77 echo 'Install or upgrade the XFS library package.'
78 echo 'Alternatively, run "make install-lib" from the xfsprogs source.'
82 test -f ${libexecdir}${libdirsuffix}/libhandle.la && \
83 libhdl="${libexecdir}${libdirsuffix}/libhandle.la"
87 AC_DEFUN([AC_PACKAGE_NEED_IRIX_LIBHANDLE],
89 AC_MSG_CHECKING([libhandle.a for IRIX])
90 libhdl="`pwd`/../irix/libhandle/libhandle.a"
91 if ! test -f $libhdl; then
93 echo 'FATAL ERROR: could not find IRIX XFS handle library.'
100 AC_DEFUN([AC_PACKAGE_NEED_XFSCTL_MACRO],
101 [ AC_MSG_CHECKING([xfsctl from xfs/xfs.h])
102 AC_TRY_LINK([#include <xfs/xfs.h>], [ int x = xfsctl(0, 0, 0, 0); ],
105 echo 'FATAL ERROR: cannot find required macros in the XFS headers.'
106 echo 'Upgrade your XFS programs (xfsprogs) development package.'
107 echo 'Alternatively, run "make install-dev" from the xfsprogs source.'