cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: [PATCH] save metadata to extended file attributes

From: Dan Fandrich <dan_at_coneharvesters.com>
Date: Sun, 7 Nov 2010 15:14:57 -0800

On Sun, Nov 07, 2010 at 05:26:31PM +0100, Stefan Tomanek wrote:
> For some reason, configure does not enable xattr support here:
>
> configure:30318: checking if setxattr can be linked
> configure:30347: gcc -o conftest -g0 -O2 -Wno-system-headers conftest.c -lidn -lssh2 -lssl -lcrypto -lldap -lrt -lssl -lcrypto -lz >&5
> configure:30347: $? = 0
> configure:30349: result: yes
> configure:30364: checking if setxattr is prototyped
> configure:30381: result: no
> configure:30440: checking if setxattr might be used
> configure:30455: result: no

Here, too. Oddly, the CURL_CHECK_FUNC_SETXATTR autoconf macro doesn't
actually attempt to #include <sys/xattr.h>, but for some reason includes
sys/uio.h instead; I can't figure out what's supposed to go on in there.
That macro is 83 lines long but doesn't seem to me to do anything more useful
than a simple macro like this:

AC_LINK_IFELSE([
#include <sys/xattr.h>
int main(void) { (void)setxattr(NULL,NULL,NULL,0,0); }
],[ AC_MSG_RESULT(yes)
AC_DEFINE_UNQUOTED(HAVE_SETXATTR, 1, [Define to 1 if you have the setxattr function])
],AC_MSG_RESULT(no))

>>> Dan
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-users
FAQ: http://curl.haxx.se/docs/faq.html
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2010-11-08