Changeset 4050

Show
Ignore:
Timestamp:
04/06/06 19:09:41 (2 years ago)
Author:
morris
Message:

Bring back largefile option

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trackerd/trunk/config.h.in

    r4044 r4050  
    7373#undef WT_VERSION 
    7474 
     75/* Number of bits in a file offset, on hosts where this is settable. */ 
     76#undef _FILE_OFFSET_BITS 
     77 
     78/* Define for large files, on AIX-style hosts. */ 
     79#undef _LARGE_FILES 
     80 
    7581/* Define on Solaris to get sigwait() to work using pthreads semantics. */ 
    7682#undef _POSIX_PTHREAD_SEMANTICS 
  • trackerd/trunk/configure

    r4046 r4050  
    853853  --enable-maintainer-mode 
    854854                          enable maintainer mode 
     855  --disable-largefile     omit support for large files 
    855856 
    856857Optional Packages: 
     
    53845385 
    53855386done 
     5387 
     5388 
     5389 
     5390####################################################################### 
     5391# Checks for typedefs, structures, and compiler characteristics 
     5392 
     5393# Check whether --enable-largefile or --disable-largefile was given. 
     5394if test "${enable_largefile+set}" = set; then 
     5395  enableval="$enable_largefile" 
     5396 
     5397fi; 
     5398if test "$enable_largefile" != no; then 
     5399 
     5400  echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5 
     5401echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6 
     5402if test "${ac_cv_sys_largefile_CC+set}" = set; then 
     5403  echo $ECHO_N "(cached) $ECHO_C" >&6 
     5404else 
     5405  ac_cv_sys_largefile_CC=no 
     5406     if test "$GCC" != yes; then 
     5407       ac_save_CC=$CC 
     5408       while :; do 
     5409         # IRIX 6.2 and later do not support large files by default, 
     5410         # so use the C compiler's -n32 option if that helps. 
     5411         cat >conftest.$ac_ext <<_ACEOF 
     5412/* confdefs.h.  */ 
     5413_ACEOF 
     5414cat confdefs.h >>conftest.$ac_ext 
     5415cat >>conftest.$ac_ext <<_ACEOF 
     5416/* end confdefs.h.  */ 
     5417#include <sys/types.h> 
     5418 /* Check that off_t can represent 2**63 - 1 correctly. 
     5419    We can't simply define LARGE_OFF_T to be 9223372036854775807, 
     5420    since some C++ compilers masquerading as C compilers 
     5421    incorrectly reject 9223372036854775807.  */ 
     5422#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 
     5423  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 
     5424                       && LARGE_OFF_T % 2147483647 == 1) 
     5425                      ? 1 : -1]; 
     5426int 
     5427main () 
     5428{ 
     5429 
     5430  ; 
     5431  return 0; 
     5432} 
     5433_ACEOF 
     5434         rm -f conftest.$ac_objext 
     5435if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 
     5436  (eval $ac_compile) 2>conftest.er1 
     5437  ac_status=$? 
     5438  grep -v '^ *+' conftest.er1 >conftest.err 
     5439  rm -f conftest.er1 
     5440  cat conftest.err >&5 
     5441  echo "$as_me:$LINENO: \$? = $ac_status" >&5 
     5442  (exit $ac_status); } && 
     5443         { ac_try='test -z "$ac_c_werror_flag" 
     5444                         || test ! -s conftest.err' 
     5445  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 
     5446  (eval $ac_try) 2>&5 
     5447  ac_status=$? 
     5448  echo "$as_me:$LINENO: \$? = $ac_status" >&5 
     5449  (exit $ac_status); }; } && 
     5450         { ac_try='test -s conftest.$ac_objext' 
     5451  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 
     5452  (eval $ac_try) 2>&5 
     5453  ac_status=$? 
     5454  echo "$as_me:$LINENO: \$? = $ac_status" >&5 
     5455  (exit $ac_status); }; }; then 
     5456  break 
     5457else 
     5458  echo "$as_me: failed program was:" >&5 
     5459sed 's/^/| /' conftest.$ac_ext >&5 
     5460 
     5461fi 
     5462rm -f conftest.err conftest.$ac_objext 
     5463         CC="$CC -n32" 
     5464         rm -f conftest.$ac_objext 
     5465if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 
     5466  (eval $ac_compile) 2>conftest.er1 
     5467  ac_status=$? 
     5468  grep -v '^ *+' conftest.er1 >conftest.err 
     5469  rm -f conftest.er1 
     5470  cat conftest.err >&5 
     5471  echo "$as_me:$LINENO: \$? = $ac_status" >&5 
     5472  (exit $ac_status); } && 
     5473         { ac_try='test -z "$ac_c_werror_flag" 
     5474                         || test ! -s conftest.err' 
     5475  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 
     5476  (eval $ac_try) 2>&5 
     5477  ac_status=$? 
     5478  echo "$as_me:$LINENO: \$? = $ac_status" >&5 
     5479  (exit $ac_status); }; } && 
     5480         { ac_try='test -s conftest.$ac_objext' 
     5481  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 
     5482  (eval $ac_try) 2>&5 
     5483  ac_status=$? 
     5484  echo "$as_me:$LINENO: \$? = $ac_status" >&5 
     5485  (exit $ac_status); }; }; then 
     5486  ac_cv_sys_largefile_CC=' -n32'; break 
     5487else 
     5488  echo "$as_me: failed program was:" >&5 
     5489sed 's/^/| /' conftest.$ac_ext >&5 
     5490 
     5491fi 
     5492rm -f conftest.err conftest.$ac_objext 
     5493         break 
     5494       done 
     5495       CC=$ac_save_CC 
     5496       rm -f conftest.$ac_ext 
     5497    fi 
     5498fi 
     5499echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5 
     5500echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6 
     5501  if test "$ac_cv_sys_largefile_CC" != no; then 
     5502    CC=$CC$ac_cv_sys_largefile_CC 
     5503  fi 
     5504 
     5505  echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5 
     5506echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6 
     5507if test "${ac_cv_sys_file_offset_bits+set}" = set; then 
     5508  echo $ECHO_N "(cached) $ECHO_C" >&6 
     5509else 
     5510  while :; do 
     5511  ac_cv_sys_file_offset_bits=no 
     5512  cat >conftest.$ac_ext <<_ACEOF 
     5513/* confdefs.h.  */ 
     5514_ACEOF 
     5515cat confdefs.h >>conftest.$ac_ext 
     5516cat >>conftest.$ac_ext <<_ACEOF 
     5517/* end confdefs.h.  */ 
     5518#include <sys/types.h> 
     5519 /* Check that off_t can represent 2**63 - 1 correctly. 
     5520    We can't simply define LARGE_OFF_T to be 9223372036854775807, 
     5521    since some C++ compilers masquerading as C compilers 
     5522    incorrectly reject 9223372036854775807.  */ 
     5523#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 
     5524  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 
     5525                       && LARGE_OFF_T % 2147483647 == 1) 
     5526                      ? 1 : -1]; 
     5527int 
     5528main () 
     5529{ 
     5530 
     5531  ; 
     5532  return 0; 
     5533} 
     5534_ACEOF 
     5535rm -f conftest.$ac_objext 
     5536if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 
     5537  (eval $ac_compile) 2>conftest.er1 
     5538  ac_status=$? 
     5539  grep -v '^ *+' conftest.er1 >conftest.err 
     5540  rm -f conftest.er1 
     5541  cat conftest.err >&5 
     5542  echo "$as_me:$LINENO: \$? = $ac_status" >&5 
     5543  (exit $ac_status); } && 
     5544         { ac_try='test -z "$ac_c_werror_flag" 
     5545                         || test ! -s conftest.err' 
     5546  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 
     5547  (eval $ac_try) 2>&5 
     5548  ac_status=$? 
     5549  echo "$as_me:$LINENO: \$? = $ac_status" >&5 
     5550  (exit $ac_status); }; } && 
     5551         { ac_try='test -s conftest.$ac_objext' 
     5552  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 
     5553  (eval $ac_try) 2>&5 
     5554  ac_status=$? 
     5555  echo "$as_me:$LINENO: \$? = $ac_status" >&5 
     5556  (exit $ac_status); }; }; then 
     5557  break 
     5558else 
     5559  echo "$as_me: failed program was:" >&5 
     5560sed 's/^/| /' conftest.$ac_ext >&5 
     5561 
     5562fi 
     5563rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 
     5564  cat >conftest.$ac_ext <<_ACEOF 
     5565/* confdefs.h.  */ 
     5566_ACEOF 
     5567cat confdefs.h >>conftest.$ac_ext 
     5568cat >>conftest.$ac_ext <<_ACEOF 
     5569/* end confdefs.h.  */ 
     5570#define _FILE_OFFSET_BITS 64 
     5571#include <sys/types.h> 
     5572 /* Check that off_t can represent 2**63 - 1 correctly. 
     5573    We can't simply define LARGE_OFF_T to be 9223372036854775807, 
     5574    since some C++ compilers masquerading as C compilers 
     5575    incorrectly reject 9223372036854775807.  */ 
     5576#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 
     5577  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 
     5578                       && LARGE_OFF_T % 2147483647 == 1) 
     5579                      ? 1 : -1]; 
     5580int 
     5581main () 
     5582{ 
     5583 
     5584  ; 
     5585  return 0; 
     5586} 
     5587_ACEOF 
     5588rm -f conftest.$ac_objext 
     5589if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 
     5590  (eval $ac_compile) 2>conftest.er1 
     5591  ac_status=$? 
     5592  grep -v '^ *+' conftest.er1 >conftest.err 
     5593  rm -f conftest.er1 
     5594  cat conftest.err >&5 
     5595  echo "$as_me:$LINENO: \$? = $ac_status" >&5 
     5596  (exit $ac_status); } && 
     5597         { ac_try='test -z "$ac_c_werror_flag" 
     5598                         || test ! -s conftest.err' 
     5599  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 
     5600  (eval $ac_try) 2>&5 
     5601  ac_status=$? 
     5602  echo "$as_me:$LINENO: \$? = $ac_status" >&5 
     5603  (exit $ac_status); }; } && 
     5604         { ac_try='test -s conftest.$ac_objext' 
     5605  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 
     5606  (eval $ac_try) 2>&5 
     5607  ac_status=$? 
     5608  echo "$as_me:$LINENO: \$? = $ac_status" >&5 
     5609  (exit $ac_status); }; }; then 
     5610  ac_cv_sys_file_offset_bits=64; break 
     5611else 
     5612  echo "$as_me: failed program was:" >&5 
     5613sed 's/^/| /' conftest.$ac_ext >&5 
     5614 
     5615fi 
     5616rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 
     5617  break 
     5618done 
     5619fi 
     5620echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5 
     5621echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6 
     5622if test "$ac_cv_sys_file_offset_bits" != no; then 
     5623 
     5624cat >>confdefs.h <<_ACEOF 
     5625#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits 
     5626_ACEOF 
     5627 
     5628fi 
     5629rm -f conftest* 
     5630  echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5 
     5631echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6 
     5632if test "${ac_cv_sys_large_files+set}" = set; then 
     5633  echo $ECHO_N "(cached) $ECHO_C" >&6 
     5634else 
     5635  while :; do 
     5636  ac_cv_sys_large_files=no 
     5637  cat >conftest.$ac_ext <<_ACEOF 
     5638/* confdefs.h.  */ 
     5639_ACEOF 
     5640cat confdefs.h >>conftest.$ac_ext 
     5641cat >>conftest.$ac_ext <<_ACEOF 
     5642/* end confdefs.h.  */ 
     5643#include <sys/types.h> 
     5644 /* Check that off_t can represent 2**63 - 1 correctly. 
     5645    We can't simply define LARGE_OFF_T to be 9223372036854775807, 
     5646    since some C++ compilers masquerading as C compilers 
     5647    incorrectly reject 9223372036854775807.  */ 
     5648#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 
     5649  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 
     5650                       && LARGE_OFF_T % 2147483647 == 1) 
     5651                      ? 1 : -1]; 
     5652int 
     5653main () 
     5654{ 
     5655 
     5656  ; 
     5657  return 0; 
     5658} 
     5659_ACEOF 
     5660rm -f conftest.$ac_objext 
     5661if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 
     5662  (eval $ac_compile) 2>conftest.er1 
     5663  ac_status=$? 
     5664  grep -v '^ *+' conftest.er1 >conftest.err 
     5665  rm -f conftest.er1 
     5666  cat conftest.err >&5 
     5667  echo "$as_me:$LINENO: \$? = $ac_status" >&5 
     5668  (exit $ac_status); } && 
     5669         { ac_try='test -z "$ac_c_werror_flag" 
     5670                         || test ! -s conftest.err' 
     5671  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 
     5672  (eval $ac_try) 2>&5 
     5673  ac_status=$? 
     5674  echo "$as_me:$LINENO: \$? = $ac_status" >&5 
     5675  (exit $ac_status); }; } && 
     5676         { ac_try='test -s conftest.$ac_objext' 
     5677  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 
     5678  (eval $ac_try) 2>&5 
     5679  ac_status=$? 
     5680  echo "$as_me:$LINENO: \$? = $ac_status" >&5 
     5681  (exit $ac_status); }; }; then 
     5682  break 
     5683else 
     5684  echo "$as_me: failed program was:" >&5 
     5685sed 's/^/| /' conftest.$ac_ext >&5 
     5686 
     5687fi 
     5688rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 
     5689  cat >conftest.$ac_ext <<_ACEOF 
     5690/* confdefs.h.  */ 
     5691_ACEOF 
     5692cat confdefs.h >>conftest.$ac_ext 
     5693cat >>conftest.$ac_ext <<_ACEOF 
     5694/* end confdefs.h.  */ 
     5695#define _LARGE_FILES 1 
     5696#include <sys/types.h> 
     5697 /* Check that off_t can represent 2**63 - 1 correctly. 
     5698    We can't simply define LARGE_OFF_T to be 9223372036854775807, 
     5699    since some C++ compilers masquerading as C compilers 
     5700    incorrectly reject 9223372036854775807.  */ 
     5701#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 
     5702  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 
     5703                       && LARGE_OFF_T % 2147483647 == 1) 
     5704                      ? 1 : -1]; 
     5705int 
     5706main () 
     5707{ 
     5708 
     5709  ; 
     5710  return 0; 
     5711} 
     5712_ACEOF 
     5713rm -f conftest.$ac_objext 
     5714if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 
     5715  (eval $ac_compile) 2>conftest.er1 
     5716  ac_status=$? 
     5717  grep -v '^ *+' conftest.er1 >conftest.err 
     5718  rm -f conftest.er1 
     5719  cat conftest.err >&5 
     5720  echo "$as_me:$LINENO: \$? = $ac_status" >&5 
     5721  (exit $ac_status); } && 
     5722         { ac_try='test -z "$ac_c_werror_flag" 
     5723                         || test ! -s conftest.err' 
     5724  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 
     5725  (eval $ac_try) 2>&5 
     5726  ac_status=$? 
     5727  echo "$as_me:$LINENO: \$? = $ac_status" >&5 
     5728  (exit $ac_status); }; } && 
     5729         { ac_try='test -s conftest.$ac_objext' 
     5730  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 
     5731  (eval $ac_try) 2>&5 
     5732  ac_status=$? 
     5733  echo "$as_me:$LINENO: \$? = $ac_status" >&5 
     5734  (exit $ac_status); }; }; then 
     5735  ac_cv_sys_large_files=1; break 
     5736else 
     5737  echo "$as_me: failed program was:" >&5 
     5738sed 's/^/| /' conftest.$ac_ext >&5 
     5739 
     5740fi 
     5741rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 
     5742  break 
     5743done 
     5744fi 
     5745echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5 
     5746echo "${ECHO_T}$ac_cv_sys_large_files" >&6 
     5747if test "$ac_cv_sys_large_files" != no; then 
     5748 
     5749cat >>confdefs.h <<_ACEOF 
     5750#define _LARGE_FILES $ac_cv_sys_large_files 
     5751_ACEOF 
     5752 
     5753fi 
     5754rm -f conftest* 
     5755fi 
    53865756 
    53875757 
  • trackerd/trunk/configure.in

    r4046 r4050  
    353353 
    354354####################################################################### 
     355# Checks for typedefs, structures, and compiler characteristics 
     356 
     357AC_SYS_LARGEFILE 
     358 
     359 
     360####################################################################### 
    355361# Output 
    356362