mirror of
https://github.com/linux-apfs/apfstests.git
synced 2026-05-01 15:01:44 -07:00
Update configure scripts in xfstests directory.
This commit is contained in:
@@ -20,11 +20,12 @@ AC_DEFUN([AC_PACKAGE_NEED_ATTR_ERROR_H],
|
||||
fi
|
||||
])
|
||||
|
||||
AC_DEFUN([AC_PACKAGE_NEED_ATTR_ATTRIBUTES_H],
|
||||
[ AC_CHECK_HEADERS([attr/attributes.h])
|
||||
if test "$ac_cv_header_attr_attributes_h" != "yes"; then
|
||||
AC_DEFUN([AC_PACKAGE_NEED_ATTRIBUTES_H],
|
||||
[ have_attributes_h=false
|
||||
AC_CHECK_HEADERS([attr/attributes.h sys/attributes.h], [have_attributes_h=true], )
|
||||
if test "$have_attributes_h" = "false"; then
|
||||
echo
|
||||
echo 'FATAL ERROR: attr/attributes.h does not exist.'
|
||||
echo 'FATAL ERROR: attributes.h does not exist.'
|
||||
echo 'Install the extended attributes (attr) development package.'
|
||||
echo 'Alternatively, run "make install-lib" from the attr source.'
|
||||
exit 1
|
||||
|
||||
@@ -61,6 +61,21 @@ AC_DEFUN([AC_PACKAGE_NEED_OPEN_BY_FSHANDLE],
|
||||
AC_SUBST(libhdl)
|
||||
])
|
||||
|
||||
AC_DEFUN([AC_PACKAGE_NEED_ATTRLIST_LIBHANDLE],
|
||||
[ AC_CHECK_LIB(handle, attr_list_by_handle,, [
|
||||
echo
|
||||
echo 'FATAL ERROR: could not find a current XFS handle library.'
|
||||
echo 'Install or upgrade the XFS library package.'
|
||||
echo 'Alternatively, run "make install-lib" from the xfsprogs source.'
|
||||
exit 1
|
||||
])
|
||||
libhdl="-lhandle"
|
||||
test -f `pwd`/../xfsprogs/libhandle/libhandle.la && \
|
||||
libhdl="`pwd`/../xfsprogs/libhandle/libhandle.la"
|
||||
test -f /usr/lib/libhandle.la && libhdl="/usr/lib/libhandle.la"
|
||||
AC_SUBST(libhdl)
|
||||
])
|
||||
|
||||
AC_DEFUN([AC_PACKAGE_NEED_XFSCTL_MACRO],
|
||||
[ AC_MSG_CHECKING([xfsctl from xfs/libxfs.h])
|
||||
AC_TRY_LINK([#include <xfs/libxfs.h>], [ int x = xfsctl(0, 0, 0, 0); ],
|
||||
|
||||
Reference in New Issue
Block a user