Author: mturk Date: Tue Jun 16 10:46:06 2009 New Revision: 785153 URL: http://svn.apache.org/viewvc?rev=785153&view=rev Log: Check for off64_t and add presence define
Modified: commons/sandbox/runtime/trunk/src/main/native/configure Modified: commons/sandbox/runtime/trunk/src/main/native/configure URL: http://svn.apache.org/viewvc/commons/sandbox/runtime/trunk/src/main/native/configure?rev=785153&r1=785152&r2=785153&view=diff ============================================================================== --- commons/sandbox/runtime/trunk/src/main/native/configure (original) +++ commons/sandbox/runtime/trunk/src/main/native/configure Tue Jun 16 10:46:06 2009 @@ -616,9 +616,15 @@ have_libaio=0 have_windows=1 have_uuid_uuid=0 + have_off64t=0 else have_fileextd=0 have_ktmw32=0 + have_off64t=1 + sizeof_off64t=`test_csizeof off64_t` + if [ ".$sizeof_off64t" = ".0" ]; then + have_off64t=0 + fi have_aio=`have_include aio` have_libaio=`have_include libaio` have_windows=0 @@ -685,6 +691,7 @@ #define HAVE_DUP3 `have_function dup3` #define HAVE_EPOLL_CREATE1 `have_function epoll_create1` #define HAVE_SOCK_CLOEXEC `have_sock_cloexec` +#define HAVE_OFF64_T $have_off64t #define HAVE_LONG_LONG $have_long_long #define HAVE_LONG_DOUBLE $have_long_double @@ -695,7 +702,7 @@ #define CC_SIZEOF_LONG_DOUBLE $sizeof_long_double #define CC_SIZEOF_VOIDP `test_csizeof 'void *'` #define CC_SIZEOF_SIZE_T `test_csizeof size_t` -#define CC_SIZEOF_OFF64_T `test_csizeof off64_t` +#define CC_SIZEOF_OFF64_T $sizeof_off64t EOF