ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/IO-AIO/autoconf/configure
(Generate patch)

Comparing IO-AIO/autoconf/configure (file contents):
Revision 1.4 by root, Mon Aug 22 23:20:37 2005 UTC vs.
Revision 1.6 by root, Tue Aug 23 12:37:19 2005 UTC

2341cat >>confdefs.h <<\_ACEOF 2341cat >>confdefs.h <<\_ACEOF
2342#define HAVE_PREADWRITE 1 2342#define HAVE_PREADWRITE 1
2343_ACEOF 2343_ACEOF
2344 2344
2345 2345
2346echo "$as_me:$LINENO: checking for readdir_r" >&5
2347echo $ECHO_N "checking for readdir_r... $ECHO_C" >&6
2348if test "${ac_cv_readdir_r+set}" = set; then
2349 echo $ECHO_N "(cached) $ECHO_C" >&6
2350else
2351 cat >conftest.$ac_ext <<_ACEOF
2352
2353#include <dirent.h>
2354int main(void)
2355{
2356 DIR *dir = 0;
2357 struct dirent ent, *eres;
2358 int res = readdir_r (dir, &ent, &eres);
2359 return 0;
2360}
2361
2362_ACEOF
2363rm -f conftest.$ac_objext conftest$ac_exeext
2364if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2365 (eval $ac_link) 2>conftest.er1
2366 ac_status=$?
2367 grep -v '^ *+' conftest.er1 >conftest.err
2368 rm -f conftest.er1
2369 cat conftest.err >&5
2370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2371 (exit $ac_status); } &&
2372 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2374 (eval $ac_try) 2>&5
2375 ac_status=$?
2376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2377 (exit $ac_status); }; } &&
2378 { ac_try='test -s conftest$ac_exeext'
2379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2380 (eval $ac_try) 2>&5
2381 ac_status=$?
2382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2383 (exit $ac_status); }; }; then
2384 ac_cv_readdir_r=yes
2385else
2386 echo "$as_me: failed program was:" >&5
2387sed 's/^/| /' conftest.$ac_ext >&5
2388
2389ac_cv_readdir_r=no
2390fi
2391rm -f conftest.err conftest.$ac_objext \
2392 conftest$ac_exeext conftest.$ac_ext
2393fi
2394echo "$as_me:$LINENO: result: $ac_cv_readdir_r" >&5
2395echo "${ECHO_T}$ac_cv_readdir_r" >&6
2396test $ac_cv_readdir_r = yes &&
2397cat >>confdefs.h <<\_ACEOF
2398#define HAVE_READDIR_R 1
2399_ACEOF
2400
2401
2346echo "$as_me:$LINENO: checking for sendfile" >&5 2402echo "$as_me:$LINENO: checking for sendfile" >&5
2347echo $ECHO_N "checking for sendfile... $ECHO_C" >&6 2403echo $ECHO_N "checking for sendfile... $ECHO_C" >&6
2348if test "${ac_cv_sendfile+set}" = set; then 2404if test "${ac_cv_sendfile+set}" = set; then
2349 echo $ECHO_N "(cached) $ECHO_C" >&6 2405 echo $ECHO_N "(cached) $ECHO_C" >&6
2350else 2406else
2356#elif __freebsd 2412#elif __freebsd
2357# include <sys/socket.h> 2413# include <sys/socket.h>
2358# include <sys/uio.h> 2414# include <sys/uio.h>
2359#elif __hpux 2415#elif __hpux
2360# include <sys/socket.h> 2416# include <sys/socket.h>
2417#else
2418# error unsupported architecture
2361#endif 2419#endif
2362int main(void) 2420int main(void)
2363{ 2421{
2364 int fd = 0; 2422 int fd = 0;
2365 off_t offset = 1; 2423 off_t offset = 1;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines