mirror of
https://github.com/samba-team/samba.git
synced 2025-01-12 09:18:10 +03:00
Reformat configure checks for broken capabilities.h.
Michael
This commit is contained in:
parent
8ec10c4ab1
commit
834a16225a
@ -20,28 +20,36 @@ case "$host_os" in
|
||||
*linux*)
|
||||
AC_CACHE_CHECK([for broken RedHat 7.2 system header files],samba_cv_BROKEN_REDHAT_7_SYSTEM_HEADERS,[
|
||||
AC_TRY_COMPILE([
|
||||
#ifdef HAVE_SYS_VFS_H
|
||||
#include <sys/vfs.h>
|
||||
#endif
|
||||
#ifdef HAVE_SYS_CAPABILITY_H
|
||||
#include <sys/capability.h>
|
||||
#endif
|
||||
],[int i;],
|
||||
samba_cv_BROKEN_REDHAT_7_SYSTEM_HEADERS=no,samba_cv_BROKEN_REDHAT_7_SYSTEM_HEADERS=yes)])
|
||||
#ifdef HAVE_SYS_VFS_H
|
||||
#include <sys/vfs.h>
|
||||
#endif
|
||||
#ifdef HAVE_SYS_CAPABILITY_H
|
||||
#include <sys/capability.h>
|
||||
#endif
|
||||
],[
|
||||
int i;
|
||||
],
|
||||
samba_cv_BROKEN_REDHAT_7_SYSTEM_HEADERS=no,
|
||||
samba_cv_BROKEN_REDHAT_7_SYSTEM_HEADERS=yes
|
||||
)])
|
||||
if test x"$samba_cv_BROKEN_REDHAT_7_SYSTEM_HEADERS" = x"yes"; then
|
||||
AC_DEFINE(BROKEN_REDHAT_7_SYSTEM_HEADERS,1,[Broken RedHat 7.2 system header files])
|
||||
AC_DEFINE(BROKEN_REDHAT_7_SYSTEM_HEADERS,1,[Broken RedHat 7.2 system header files])
|
||||
fi
|
||||
|
||||
AC_CACHE_CHECK([for broken RHEL5 sys/capability.h],samba_cv_BROKEN_RHEL5_SYS_CAP_HEADER,[
|
||||
AC_TRY_COMPILE([
|
||||
#ifdef HAVE_SYS_CAPABILITY_H
|
||||
#include <sys/capability.h>
|
||||
#endif
|
||||
#include <linux/types.h>
|
||||
],[__s8 i;],
|
||||
samba_cv_BROKEN_RHEL5_SYS_CAP_HEADER=no,samba_cv_BROKEN_RHEL5_SYS_CAP_HEADER=yes)])
|
||||
#ifdef HAVE_SYS_CAPABILITY_H
|
||||
#include <sys/capability.h>
|
||||
#endif
|
||||
#include <linux/types.h>
|
||||
],[
|
||||
__s8 i;
|
||||
],
|
||||
samba_cv_BROKEN_RHEL5_SYS_CAP_HEADER=no,
|
||||
samba_cv_BROKEN_RHEL5_SYS_CAP_HEADER=yes
|
||||
)])
|
||||
if test x"$samba_cv_BROKEN_RHEL5_SYS_CAP_HEADER" = x"yes"; then
|
||||
AC_DEFINE(BROKEN_RHEL5_SYS_CAP_HEADER,1,[Broken RHEL5 sys/capability.h])
|
||||
AC_DEFINE(BROKEN_RHEL5_SYS_CAP_HEADER,1,[Broken RHEL5 sys/capability.h])
|
||||
fi
|
||||
;;
|
||||
esac
|
||||
|
Loading…
Reference in New Issue
Block a user