mirror of
https://github.com/vim/vim.git
synced 2025-07-26 11:04:33 -04:00
updated for version 7.4.254
Problem: Smack support detection is incomplete. Solution: Check for attr/xattr.h and specific macro.
This commit is contained in:
parent
5a4e160ce4
commit
c09551ab79
50
src/auto/configure
vendored
50
src/auto/configure
vendored
@ -4611,13 +4611,41 @@ fi
|
|||||||
|
|
||||||
|
|
||||||
else
|
else
|
||||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
||||||
$as_echo "yes" >&6; }
|
$as_echo "yes" >&6; }
|
||||||
fi
|
fi
|
||||||
if test "$enable_smack" = "yes"; then
|
if test "$enable_smack" = "yes"; then
|
||||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for llistxattr in -lattr" >&5
|
ac_fn_c_check_header_mongrel "$LINENO" "attr/xattr.h" "ac_cv_header_attr_xattr_h" "$ac_includes_default"
|
||||||
$as_echo_n "checking for llistxattr in -lattr... " >&6; }
|
if test "x$ac_cv_header_attr_xattr_h" = xyes; then :
|
||||||
if ${ac_cv_lib_attr_llistxattr+:} false; then :
|
true
|
||||||
|
else
|
||||||
|
enable_smack="no"
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
fi
|
||||||
|
if test "$enable_smack" = "yes"; then
|
||||||
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XATTR_NAME_SMACKEXEC in linux/xattr.h" >&5
|
||||||
|
$as_echo_n "checking for XATTR_NAME_SMACKEXEC in linux/xattr.h... " >&6; }
|
||||||
|
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
||||||
|
/* end confdefs.h. */
|
||||||
|
#include <linux/xattr.h>
|
||||||
|
_ACEOF
|
||||||
|
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
||||||
|
$EGREP "XATTR_NAME_SMACKEXEC" >/dev/null 2>&1; then :
|
||||||
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
||||||
|
$as_echo "yes" >&6; }
|
||||||
|
else
|
||||||
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
||||||
|
$as_echo "no" >&6; }; enable_smack = "no"
|
||||||
|
fi
|
||||||
|
rm -f conftest*
|
||||||
|
|
||||||
|
fi
|
||||||
|
if test "$enable_smack" = "yes"; then
|
||||||
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for setxattr in -lattr" >&5
|
||||||
|
$as_echo_n "checking for setxattr in -lattr... " >&6; }
|
||||||
|
if ${ac_cv_lib_attr_setxattr+:} false; then :
|
||||||
$as_echo_n "(cached) " >&6
|
$as_echo_n "(cached) " >&6
|
||||||
else
|
else
|
||||||
ac_check_lib_save_LIBS=$LIBS
|
ac_check_lib_save_LIBS=$LIBS
|
||||||
@ -4631,27 +4659,27 @@ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
extern "C"
|
extern "C"
|
||||||
#endif
|
#endif
|
||||||
char llistxattr ();
|
char setxattr ();
|
||||||
int
|
int
|
||||||
main ()
|
main ()
|
||||||
{
|
{
|
||||||
return llistxattr ();
|
return setxattr ();
|
||||||
;
|
;
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
_ACEOF
|
_ACEOF
|
||||||
if ac_fn_c_try_link "$LINENO"; then :
|
if ac_fn_c_try_link "$LINENO"; then :
|
||||||
ac_cv_lib_attr_llistxattr=yes
|
ac_cv_lib_attr_setxattr=yes
|
||||||
else
|
else
|
||||||
ac_cv_lib_attr_llistxattr=no
|
ac_cv_lib_attr_setxattr=no
|
||||||
fi
|
fi
|
||||||
rm -f core conftest.err conftest.$ac_objext \
|
rm -f core conftest.err conftest.$ac_objext \
|
||||||
conftest$ac_exeext conftest.$ac_ext
|
conftest$ac_exeext conftest.$ac_ext
|
||||||
LIBS=$ac_check_lib_save_LIBS
|
LIBS=$ac_check_lib_save_LIBS
|
||||||
fi
|
fi
|
||||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_attr_llistxattr" >&5
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_attr_setxattr" >&5
|
||||||
$as_echo "$ac_cv_lib_attr_llistxattr" >&6; }
|
$as_echo "$ac_cv_lib_attr_setxattr" >&6; }
|
||||||
if test "x$ac_cv_lib_attr_llistxattr" = xyes; then :
|
if test "x$ac_cv_lib_attr_setxattr" = xyes; then :
|
||||||
LIBS="$LIBS -lattr"
|
LIBS="$LIBS -lattr"
|
||||||
found_smack="yes"
|
found_smack="yes"
|
||||||
$as_echo "#define HAVE_SMACK 1" >>confdefs.h
|
$as_echo "#define HAVE_SMACK 1" >>confdefs.h
|
||||||
|
@ -396,10 +396,19 @@ if test "$enable_smack" = "yes"; then
|
|||||||
AC_MSG_RESULT(no)
|
AC_MSG_RESULT(no)
|
||||||
AC_CHECK_HEADER([linux/xattr.h], true, enable_smack="no")
|
AC_CHECK_HEADER([linux/xattr.h], true, enable_smack="no")
|
||||||
else
|
else
|
||||||
AC_MSG_RESULT(yes)
|
AC_MSG_RESULT(yes)
|
||||||
fi
|
fi
|
||||||
if test "$enable_smack" = "yes"; then
|
if test "$enable_smack" = "yes"; then
|
||||||
AC_CHECK_LIB(attr, llistxattr,
|
AC_CHECK_HEADER([attr/xattr.h], true, enable_smack="no")
|
||||||
|
fi
|
||||||
|
if test "$enable_smack" = "yes"; then
|
||||||
|
AC_MSG_CHECKING(for XATTR_NAME_SMACKEXEC in linux/xattr.h)
|
||||||
|
AC_EGREP_CPP(XATTR_NAME_SMACKEXEC, [#include <linux/xattr.h>],
|
||||||
|
AC_MSG_RESULT(yes),
|
||||||
|
AC_MSG_RESULT(no); enable_smack = "no")
|
||||||
|
fi
|
||||||
|
if test "$enable_smack" = "yes"; then
|
||||||
|
AC_CHECK_LIB(attr, setxattr,
|
||||||
[LIBS="$LIBS -lattr"
|
[LIBS="$LIBS -lattr"
|
||||||
found_smack="yes"
|
found_smack="yes"
|
||||||
AC_DEFINE(HAVE_SMACK)])
|
AC_DEFINE(HAVE_SMACK)])
|
||||||
|
@ -734,6 +734,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
254,
|
||||||
/**/
|
/**/
|
||||||
253,
|
253,
|
||||||
/**/
|
/**/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user