1 AC_DEFUN([AC_PACKAGE_NEED_ATTR_XATTR_H],
2 [ AC_CHECK_HEADERS([attr/xattr.h])
3 if test "$ac_cv_header_attr_xattr_h" != "yes"; then
5 echo 'FATAL ERROR: attr/xattr.h does not exist.'
6 echo 'Install the extended attributes (attr) development package.'
7 echo 'Alternatively, run "make install-lib" from the attr source.'
12 AC_DEFUN([AC_PACKAGE_NEED_ATTR_ERROR_H],
13 [ AC_CHECK_HEADERS([attr/error_context.h])
14 if test "$ac_cv_header_attr_error_context_h" != "yes"; then
16 echo 'FATAL ERROR: attr/error_context.h does not exist.'
17 echo 'Install the extended attributes (attr) development package.'
18 echo 'Alternatively, run "make install-lib" from the attr source.'
23 AC_DEFUN([AC_PACKAGE_NEED_ATTRIBUTES_H],
24 [ have_attributes_h=false
25 AC_CHECK_HEADERS([attr/attributes.h sys/attributes.h], [have_attributes_h=true], )
26 if test "$have_attributes_h" = "false"; then
28 echo 'FATAL ERROR: attributes.h does not exist.'
29 echo 'Install the extended attributes (attr) development package.'
30 echo 'Alternatively, run "make install-lib" from the attr source.'
35 AC_DEFUN([AC_PACKAGE_NEED_GETXATTR_LIBATTR],
36 [ AC_CHECK_LIB(attr, getxattr,, [
38 echo 'FATAL ERROR: could not find a valid Extended Attributes library.'
39 echo 'Install the extended attributes (attr) development package.'
40 echo 'Alternatively, run "make install-lib" from the attr source.'
44 test -f `pwd`/../attr/libattr/libattr.la && \
45 libattr="`pwd`/../attr/libattr/libattr.la"
46 test -f /usr/lib/libattr.la && libattr="/usr/lib/libattr.la"
50 AC_DEFUN([AC_PACKAGE_NEED_ATTRGET_LIBATTR],
51 [ AC_CHECK_LIB(attr, attr_get,, [
53 echo 'FATAL ERROR: could not find a valid Extended Attributes library.'
54 echo 'Install the extended attributes (attr) development package.'
55 echo 'Alternatively, run "make install-lib" from the attr source.'
59 test -f `pwd`/../attr/libattr/libattr.la && \
60 libattr="`pwd`/../attr/libattr/libattr.la"
61 test -f /usr/lib/libattr.la && libattr="/usr/lib/libattr.la"
65 AC_DEFUN([AC_PACKAGE_NEED_ATTRIBUTES_MACROS],
66 [ AC_MSG_CHECKING([macros in attr/attributes.h])
68 #include <sys/types.h>
69 #include <attr/attributes.h>],
70 [ int x = ATTR_SECURE; ], [ echo ok ], [
72 echo 'FATAL ERROR: could not find a current attributes header.'
73 echo 'Upgrade the extended attributes (attr) development package.'
74 echo 'Alternatively, run "make install-dev" from the attr source.'