summaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorGustavo Sverzut Barbieri <barbieri@gmail.com>2012-12-31 18:18:00 +0000
committerGustavo Sverzut Barbieri <barbieri@gmail.com>2012-12-31 18:18:00 +0000
commit8ba0561e49183a1421e4eaf5f93d2551d48daae2 (patch)
treecf67aded3d5d4b813c28a9d9de2f4364ed846a58 /configure.ac
parent66ebe6a3f8900173cd706dd03d22624f116b8205 (diff)
efl: remove lstat and fchmod checks.
- fchmod() was isolated by HAVE_CHMOD, which was always present before... then fchmod() is also present as no errors were reported since its introduction. - fchmod() is POSIX for a while now. - lstat() is POSIX for a while now. - setxattr is supported by EFL_CHECK_FUNCS() as is used by eina. - splice() check added to EFL_CHECK_FUNCS() SVN revision: 81938
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac69
1 files changed, 1 insertions, 68 deletions
diff --git a/configure.ac b/configure.ac
index cc31fcae46..1c5f93f4dd 100644
--- a/configure.ac
+++ b/configure.ac
@@ -3055,74 +3055,7 @@ EFL_ADD_LIBS([EIO], [-lm])
3055### Checks for linker characteristics 3055### Checks for linker characteristics
3056 3056
3057### Checks for library functions 3057### Checks for library functions
3058 3058EFL_CHECK_FUNCS([EIO], [splice setxattr])
3059# Check for splice system call
3060
3061AC_MSG_CHECKING([whether to use splice for file copy])
3062AC_TRY_LINK(
3063 [
3064#if defined(HAVE_UNISTD_H)
3065# include <unistd.h>
3066#endif
3067#include <fcntl.h>
3068 ],
3069 [
3070long ret = splice(0,0,1,0,400,0);
3071 ],
3072 [have_splice="yes"],
3073 [have_splice="no"])
3074AC_MSG_RESULT([${have_splice}])
3075
3076if test "x${have_splice}" = "xyes" ; then
3077 AC_DEFINE([HAVE_SPLICE], [1], [Define to mention that splice syscall is supported])
3078fi
3079
3080# Check for lstat
3081
3082AC_MSG_CHECKING([whether lstat is available])
3083AC_TRY_LINK(
3084 [
3085#include <sys/types.h>
3086#include <sys/stat.h>
3087#if defined(HAVE_UNISTD_H)
3088# include <unistd.h>
3089#endif
3090 ],
3091 [
3092struct stat st;
3093lstat("/tmp", &st);
3094 ],
3095 [have_lstat="yes"],
3096 [have_lstat="no"])
3097AC_MSG_RESULT([${have_lstat}])
3098
3099if test "x${have_lstat}" = "xyes" ; then
3100 AC_DEFINE([HAVE_LSTAT], [1], [Define to mention that lstat syscall is supported])
3101fi
3102
3103# extended attribute
3104
3105AC_MSG_CHECKING([for extended attributes])
3106
3107AC_COMPILE_IFELSE(
3108 [AC_LANG_PROGRAM(
3109 [[
3110#include <stdlib.h>
3111#include <sys/types.h>
3112#include <sys/xattr.h>
3113 ]],
3114 [[
3115size_t tmp = listxattr("/", NULL, 0);
3116tmp = getxattr("/", "user.ethumb.md5", NULL, 0);
3117setxattr("/", "user.ethumb.md5", NULL, 0, 0);
3118 ]])],
3119 [
3120 AC_DEFINE([HAVE_XATTR], [1], [Define to 1 if you have the `listxattr', `setxattr' and `getxattr' functions.])
3121 have_xattr="yes"
3122 ],
3123 [have_xattr="no"])
3124
3125AC_MSG_RESULT([${have_xattr}])
3126 3059
3127EFL_LIB_END([Eio]) 3060EFL_LIB_END([Eio])
3128#### End of Eio 3061#### End of Eio