|
|
|
@ -181,14 +181,19 @@ fi
|
|
|
|
|
|
|
|
|
|
AH_TEMPLATE([Libisofs_with_aaip_acL], [Define to use ACL capabilities])
|
|
|
|
|
AC_ARG_ENABLE(libacl,
|
|
|
|
|
[ --enable-libacl Enable use of libacl by libisofs, default=yes],
|
|
|
|
|
[ --enable-libacl Enable use of ACL functions by libisofs, default=yes],
|
|
|
|
|
, enable_libacl=yes)
|
|
|
|
|
if test x$enable_libacl = xyes; then
|
|
|
|
|
dnl Check whether there is libacl-devel and libacl-runtime.
|
|
|
|
|
dnl If not, erase this macro which would enable use of acl_to_text and others
|
|
|
|
|
LIBACL_DEF="-DLibisofs_with_aaip_acL"
|
|
|
|
|
dnl The empty yes case obviously causes -lacl to be linked
|
|
|
|
|
AC_CHECK_HEADER(sys/acl.h, AC_CHECK_LIB(acl, acl_to_text, , LIBACL_DEF= ), LIBACL_DEF= )
|
|
|
|
|
has_acl_h_but_no_func=0
|
|
|
|
|
AC_CHECK_HEADER(sys/acl.h, AC_CHECK_LIB(acl, acl_to_text, , has_acl_h_but_no_libacl=1 ), LIBACL_DEF= )
|
|
|
|
|
if test "$has_acl_h_but_no_libacl" = 1
|
|
|
|
|
then
|
|
|
|
|
AC_CHECK_LIB(c, acl_to_text, X= , LIBACL_DEF= )
|
|
|
|
|
fi
|
|
|
|
|
else
|
|
|
|
|
LIBACL_DEF=
|
|
|
|
|
fi
|
|
|
|
@ -199,6 +204,7 @@ fi
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
AH_TEMPLATE([Libisofs_with_aaip_xattR], [Define to use xattr capabilities])
|
|
|
|
|
AH_TEMPLATE([Libisofs_with_freebsd_extattR], [Define to use extattr capabilities])
|
|
|
|
|
AC_ARG_ENABLE(xattr,
|
|
|
|
|
[ --enable-xattr Enable use of xattr by libisofs, default=yes],
|
|
|
|
|
, enable_xattr=yes)
|
|
|
|
@ -207,6 +213,11 @@ dnl Check whether there is the header for GNU/Linux xattr.
|
|
|
|
|
dnl If not, erase this macro which would enable use of listxattr and others
|
|
|
|
|
XATTR_DEF="-DLibisofs_with_aaip_xattR"
|
|
|
|
|
AC_CHECK_HEADER(attr/xattr.h, AC_CHECK_LIB(c, listxattr, X= , XATTR_DEF= ), XATTR_DEF= )
|
|
|
|
|
if test "x$XATTR_DEF" = x
|
|
|
|
|
then
|
|
|
|
|
XATTR_DEF="-DLibisofs_with_freebsd_extattR"
|
|
|
|
|
AC_CHECK_HEADER(sys/extattr.h, AC_CHECK_LIB(c, extattr_list_file, X=, XATTR_DEF= ), XATTR_DEF= )
|
|
|
|
|
fi
|
|
|
|
|
else
|
|
|
|
|
XATTR_DEF=
|
|
|
|
|
fi
|
|
|
|
@ -214,6 +225,10 @@ if test x$XATTR_DEF = x-DLibisofs_with_aaip_xattR
|
|
|
|
|
then
|
|
|
|
|
AC_DEFINE([Libisofs_with_aaip_xattR], [])
|
|
|
|
|
fi
|
|
|
|
|
if test x$XATTR_DEF = x-DLibisofs_with_freebsd_extattR
|
|
|
|
|
then
|
|
|
|
|
AC_DEFINE([Libisofs_with_freebsd_extattR], [])
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
AH_TEMPLATE([Libisofs_with_zliB], [Define to use compression via zlib])
|
|
|
|
@ -313,14 +328,6 @@ then
|
|
|
|
|
fi
|
|
|
|
|
else
|
|
|
|
|
echo "enabled EXPERIMENTAL use of libcdio as system adapter"
|
|
|
|
|
|
|
|
|
|
# ------- Visible mark in configure : Start of library check
|
|
|
|
|
|
|
|
|
|
LIBCDIO_REQUIRED=0.83
|
|
|
|
|
PKG_CHECK_MODULES(LIBCDIO, libcdio >= $LIBCDIO_REQUIRED)
|
|
|
|
|
|
|
|
|
|
# ------- Visible mark in configure : End of library check
|
|
|
|
|
|
|
|
|
|
fi
|
|
|
|
|
if test x$LIBCDIO_DEF = x-DLibburn_use_libcdiO
|
|
|
|
|
then
|
|
|
|
@ -396,6 +403,35 @@ then
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# ------- Visible mark in configure : Start of library check
|
|
|
|
|
|
|
|
|
|
# Check for proper library versions if this is desired.
|
|
|
|
|
# (It fails too often on too many systems.)
|
|
|
|
|
AC_ARG_ENABLE(pkg-check-modules,
|
|
|
|
|
[ --enable-pkg-check-modules Enable pkg-config check for libburn and libisofs , default=no],
|
|
|
|
|
, enable_pkg_check_modules=no)
|
|
|
|
|
if test x$enable_pkg_check_modules = xyes; then
|
|
|
|
|
|
|
|
|
|
dnl If PKG_CHECK_MODULES is to be used after this if-block,
|
|
|
|
|
dnl then it might be necessary to perform PKG_PROG_PKG_CONFIG before the block.
|
|
|
|
|
|
|
|
|
|
if test x$LIBCDIO_DEF = x; then
|
|
|
|
|
dummy=dummy
|
|
|
|
|
else
|
|
|
|
|
LIBCDIO_REQUIRED=0.83
|
|
|
|
|
PKG_CHECK_MODULES(LIBCDIO, libcdio >= $LIBCDIO_REQUIRED)
|
|
|
|
|
fi
|
|
|
|
|
else
|
|
|
|
|
if test x$LIBCDIO_DEF = x; then
|
|
|
|
|
dummy=dummy
|
|
|
|
|
else
|
|
|
|
|
echo "checking for LIBCDIO... skipped, no --enable-pkg-check-modules"
|
|
|
|
|
fi
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
# ------- Visible mark in configure : End of library check
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
AC_CONFIG_FILES([
|
|
|
|
|
Makefile
|
|
|
|
|
version.h
|
|
|
|
|