AC_TRY_LINK([
#include <sys/types.h>
#include <attr/attributes.h>],
- [ int x = ATTR_SHIFT; ], [
+ [ int x = ATTR_SECURE; ], [ echo ok ], [
echo
- echo 'FATAL ERROR: incorrect macros exist in attributes.h header file.'
+ echo 'FATAL ERROR: could not find a current attributes header.'
echo 'Upgrade the extended attributes (attr) development package.'
echo 'Alternatively, run "make install-dev" from the attr source.'
- exit 1 ],
- [ echo ok ])
+ exit 1 ])
])
AC_SUBST(libxfs)
])
-AC_DEFUN([AC_PACKAGE_NEED_ATTRLIST_LIBHANDLE],
- [ AC_CHECK_LIB(handle, attr_list_by_handle,, [
+AC_DEFUN([AC_PACKAGE_NEED_OPEN_BY_FSHANDLE],
+ [ AC_CHECK_LIB(handle, open_by_fshandle,, [
echo
echo 'FATAL ERROR: could not find a current XFS handle library.'
echo 'Install or upgrade the XFS library package.'