Changeset 2327
- Timestamp:
- 05/10/2008 14:20:21 (4 years ago)
- Location:
- box/trunk
- Files:
-
- 8 edited
-
configure.ac (modified) (4 diffs)
-
infrastructure/m4/ax_bswap64.m4 (modified) (4 diffs)
-
infrastructure/m4/ax_check_define_pragma.m4 (modified) (1 diff)
-
infrastructure/m4/ax_check_dirent_d_type.m4 (modified) (2 diffs)
-
infrastructure/m4/ax_check_malloc_workaround.m4 (modified) (3 diffs)
-
infrastructure/m4/ax_check_nonaligned_access.m4 (modified) (4 diffs)
-
infrastructure/m4/ax_check_syscall_lseek.m4 (modified) (2 diffs)
-
infrastructure/m4/ax_func_syscall.m4 (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
box/trunk/configure.ac
r2290 r2327 239 239 ## Check for large file support active. AC_SYS_LARGEFILE has already worked 240 240 ## out how to enable it if necessary, we just use this to report to the user 241 AC_CACHE_CHECK([if we have large file support enabled], [ have_large_file_support],241 AC_CACHE_CHECK([if we have large file support enabled], [box_cv_have_large_file_support], 242 242 [AC_RUN_IFELSE([AC_LANG_PROGRAM([[$ac_includes_default]], [[ 243 243 return sizeof(off_t)==4; 244 244 ]])], 245 [ have_large_file_support=yes], [have_large_file_support=no]245 [box_cv_have_large_file_support=yes], [box_cv_have_large_file_support=no] 246 246 )]) 247 247 248 if test "x$ have_large_file_support" = "xyes"; then248 if test "x$box_cv_have_large_file_support" = "xyes"; then 249 249 AC_DEFINE([HAVE_LARGE_FILE_SUPPORT], [1], 250 250 [Define to 1 if large files are supported]) … … 302 302 prefix=$saved_prefix 303 303 exec_prefix=$saved_exec_prefix 304 AC_SUBST([bindir_expanded sbindir_expanded sysconfdir_expanded localstatedir_expanded]) 304 AC_SUBST([bindir_expanded]) 305 AC_SUBST([sbindir_expanded]) 306 AC_SUBST([sysconfdir_expanded]) 307 AC_SUBST([localstatedir_expanded]) 305 308 306 309 … … 356 359 357 360 Regular expressions: $have_regex_support 358 Large files: $ have_large_file_support361 Large files: $box_cv_have_large_file_support 359 362 Berkeley DB: $ax_path_bdb_ok 360 363 Readline: $have_libreadline … … 365 368 ### Warnings at end for visibility 366 369 367 if test "x$ gcc_3_plus" != "xyes" && test "x$malloc_workaround" != "xyes"; then370 if test "x$box_cv_gcc_3_plus" != "xyes" && test "x$box_cv_malloc_workaround" != "xyes"; then 368 371 echo 369 372 AC_MSG_WARN([[the implementation of the C++ STL on this platform may -
box/trunk/infrastructure/m4/ax_bswap64.m4
r362 r2327 14 14 AC_CHECK_HEADERS([sys/endian.h asm/byteorder.h]) 15 15 if test "x$ac_cv_header_sys_endian_h" = "xyes"; then 16 AC_CACHE_CHECK([for htobe64], [ have_htobe64],16 AC_CACHE_CHECK([for htobe64], [box_cv_have_htobe64], 17 17 [AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[ 18 18 $ac_includes_default … … 22 22 return 1; 23 23 ]])], 24 [ have_htobe64=yes], [have_htobe64=no]24 [box_cv_have_htobe64=yes], [box_cv_have_htobe64=no] 25 25 )]) 26 if test "x$ have_htobe64" = "xyes"; then26 if test "x$box_cv_have_htobe64" = "xyes"; then 27 27 bswap64_function=htobe64 28 28 fi … … 30 30 if test "x$bswap64_function" = "x" && \ 31 31 test "x$ac_cv_header_asm_byteorder_h" = "xyes"; then 32 AC_CACHE_CHECK([for __cpu_to_be64], [ have___cpu_to_be64],32 AC_CACHE_CHECK([for __cpu_to_be64], [box_cv_have___cpu_to_be64], 33 33 [AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[ 34 34 $ac_includes_default … … 38 38 return 1; 39 39 ]])], 40 [ have___cpu_to_be64=yes], [have___cpu_to_be64=no]40 [box_cv_have___cpu_to_be64=yes], [box_cv_have___cpu_to_be64=no] 41 41 )]) 42 if test "x$ have___cpu_to_be64" = "xyes"; then42 if test "x$box_cv_have___cpu_to_be64" = "xyes"; then 43 43 bswap64_function=__cpu_to_be64 44 44 fi -
box/trunk/infrastructure/m4/ax_check_define_pragma.m4
r217 r2327 11 11 12 12 AC_DEFUN([AX_CHECK_DEFINE_PRAGMA], [ 13 AC_CACHE_CHECK([for pre-processor pragma defines], [ have_define_pragma],13 AC_CACHE_CHECK([for pre-processor pragma defines], [box_cv_have_define_pragma], 14 14 [AC_COMPILE_IFELSE([AC_LANG_SOURCE([[ 15 15 #define TEST_DEFINE #pragma pack(1) 16 16 TEST_DEFINE 17 17 ]])], 18 [ have_define_pragma=yes], [have_define_pragma=no]18 [box_cv_have_define_pragma=yes], [box_cv_have_define_pragma=no] 19 19 )]) 20 if test "x$ have_define_pragma" = "xyes"; then20 if test "x$box_cv_have_define_pragma" = "xyes"; then 21 21 AC_DEFINE([HAVE_DEFINE_PRAGMA], 1, [Define to 1 if #define of pragmas works]) 22 22 m4_ifvaln([$1],[$1],[:])dnl -
box/trunk/infrastructure/m4/ax_check_dirent_d_type.m4
r2011 r2327 16 16 AC_CHECK_MEMBERS([struct dirent.d_type],,, [[#include <dirent.h>]]) 17 17 if test "x$ac_cv_member_struct_dirent_d_type" = "xyes"; then 18 AC_CACHE_CHECK([[whether struct dirent.d_type is valid]], [ have_valid_dirent_d_type],18 AC_CACHE_CHECK([[whether struct dirent.d_type is valid]], [box_cv_have_valid_dirent_d_type], 19 19 [AC_RUN_IFELSE( 20 20 [AC_LANG_PROGRAM([[ … … 27 27 return res ? (res->d_type != DT_FILE && res->d_type != DT_DIR) : 1; 28 28 ]])], 29 [ have_valid_dirent_d_type=yes], [have_valid_dirent_d_type=no]29 [box_cv_have_valid_dirent_d_type=yes], [box_cv_have_valid_dirent_d_type=no] 30 30 )]) 31 if test "x$ have_valid_dirent_d_type" = "xyes"; then31 if test "x$box_cv_have_valid_dirent_d_type" = "xyes"; then 32 32 AC_DEFINE([HAVE_VALID_DIRENT_D_TYPE], 1, [Define to 1 if struct dirent.d_type is valid]) 33 33 fi 34 34 fi 35 35 if test "x$ac_cv_member_struct_dirent_d_type" = "xyes" || \ 36 test "x$ have_valid_dirent_d_type" = "xyes"36 test "x$box_cv_have_valid_dirent_d_type" = "xyes" 37 37 then 38 38 m4_ifvaln([$1],[$1],[:])dnl -
box/trunk/infrastructure/m4/ax_check_malloc_workaround.m4
r217 r2327 11 11 AC_DEFUN([AX_CHECK_MALLOC_WORKAROUND], [ 12 12 if test "x$GXX" = "xyes"; then 13 AC_CACHE_CHECK([for gcc version 3 or later], [ gcc_3_plus],13 AC_CACHE_CHECK([for gcc version 3 or later], [box_cv_gcc_3_plus], 14 14 [AC_COMPILE_IFELSE([AC_LANG_SOURCE([[ 15 15 #if __GNUC__ < 3 … … 17 17 #endif 18 18 ]])], 19 [ gcc_3_plus=yes], [gcc_3_plus=no]19 [box_cv_gcc_3_plus=yes], [box_cv_gcc_3_plus=no] 20 20 )]) 21 if test "x$ gcc_3_plus" = "xno"; then22 AC_CACHE_CHECK([for malloc workaround], [ malloc_workaround],21 if test "x$box_cv_gcc_3_plus" = "xno"; then 22 AC_CACHE_CHECK([for malloc workaround], [box_cv_malloc_workaround], 23 23 [AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[ 24 24 #define __USE_MALLOC … … 28 28 s = "test"; 29 29 ]])], 30 [ malloc_workaround=yes], [malloc_workaround=no]30 [box_cv_malloc_workaround=yes], [box_cv_malloc_workaround=no] 31 31 )]) 32 if test "x$ malloc_workaround" = "xyes"; then32 if test "x$box_cv_malloc_workaround" = "xyes"; then 33 33 AC_DEFINE([__USE_MALLOC], 1, 34 34 [Define to 1 if __USE_MALLOC is required work around STL memory leaks]) -
box/trunk/infrastructure/m4/ax_check_nonaligned_access.m4
r217 r2327 13 13 14 14 AC_DEFUN([AX_CHECK_NONALIGNED_ACCESS], [ 15 AC_CACHE_CHECK([if non-aligned 16 bit word accesses fail], [ have_aligned_only_int16],15 AC_CACHE_CHECK([if non-aligned 16 bit word accesses fail], [box_cv_have_aligned_only_int16], 16 16 [AC_RUN_IFELSE([AC_LANG_PROGRAM([[$ac_includes_default]], [[ 17 17 #ifndef HAVE_UINT16_T … … 22 22 return *(uint16_t*)((char*)scratch+1); 23 23 ]])], 24 [ have_aligned_only_int16=no], [have_aligned_only_int16=yes]24 [box_cv_have_aligned_only_int16=no], [box_cv_have_aligned_only_int16=yes] 25 25 )]) 26 if test "x$ have_aligned_only_int16" = "xyes"; then26 if test "x$box_cv_have_aligned_only_int16" = "xyes"; then 27 27 AC_DEFINE([HAVE_ALIGNED_ONLY_INT16], 1, [Define to 1 if non-aligned int16 access will fail]) 28 28 fi 29 AC_CACHE_CHECK([if non-aligned 32 bit word accesses fail], [ have_aligned_only_int32],29 AC_CACHE_CHECK([if non-aligned 32 bit word accesses fail], [box_cv_have_aligned_only_int32], 30 30 [AC_RUN_IFELSE([AC_LANG_PROGRAM([[$ac_includes_default]], [[ 31 31 #ifndef HAVE_UINT32_T … … 36 36 return *(uint32_t*)((char*)scratch+1); 37 37 ]])], 38 [ have_aligned_only_int32=no], [have_aligned_only_int32=yes]38 [box_cv_have_aligned_only_int32=no], [box_cv_have_aligned_only_int32=yes] 39 39 )]) 40 if test "x$ have_aligned_only_int32" = "xyes"; then40 if test "x$box_cv_have_aligned_only_int32" = "xyes"; then 41 41 AC_DEFINE([HAVE_ALIGNED_ONLY_INT32], 1, [Define to 1 if non-aligned int32 access will fail]) 42 42 fi 43 AC_CACHE_CHECK([if non-aligned 64 bit word accesses fail], [ have_aligned_only_int64],43 AC_CACHE_CHECK([if non-aligned 64 bit word accesses fail], [box_cv_have_aligned_only_int64], 44 44 [AC_RUN_IFELSE([AC_LANG_PROGRAM([[$ac_includes_default]], [[ 45 45 #ifndef HAVE_UINT64_T … … 50 50 return *(uint64_t*)((char*)scratch+1); 51 51 ]])], 52 [ have_aligned_only_int64=no], [have_aligned_only_int64=yes]52 [box_cv_have_aligned_only_int64=no], [box_cv_have_aligned_only_int64=yes] 53 53 )]) 54 if test "x$ have_aligned_only_int64" = "xyes"; then54 if test "x$box_cv_have_aligned_only_int64" = "xyes"; then 55 55 AC_DEFINE([HAVE_ALIGNED_ONLY_INT64], 1, [Define to 1 if non-aligned int64 access will fail]) 56 56 fi -
box/trunk/infrastructure/m4/ax_check_syscall_lseek.m4
r2059 r2327 16 16 AC_REQUIRE([AX_FUNC_SYSCALL])dnl 17 17 if test "x$ac_cv_header_sys_syscall_h" = "xyes"; then 18 AC_CACHE_CHECK([[whether syscall lseek requires dummy parameter]], [ have_lseek_dummy_param],18 AC_CACHE_CHECK([[whether syscall lseek requires dummy parameter]], [box_cv_have_lseek_dummy_param], 19 19 [AC_RUN_IFELSE( 20 20 [AC_LANG_PROGRAM([[ … … 51 51 return res!=-1; 52 52 ]])], 53 [ have_lseek_dummy_param=yes], [have_lseek_dummy_param=no]53 [box_cv_have_lseek_dummy_param=yes], [box_cv_have_lseek_dummy_param=no] 54 54 )]) 55 if test "x$ have_lseek_dummy_param" = "xyes"; then55 if test "x$box_cv_have_lseek_dummy_param" = "xyes"; then 56 56 AC_DEFINE([HAVE_LSEEK_DUMMY_PARAM], 1, 57 57 [Define to 1 if syscall lseek requires a dummy middle parameter]) 58 58 fi 59 59 fi 60 if test "x$ have_lseek_dummy_param" = "xno"60 if test "x$box_cv_have_lseek_dummy_param" = "xno" 61 61 then 62 62 m4_ifvaln([$1],[$1],[:])dnl -
box/trunk/infrastructure/m4/ax_func_syscall.m4
r217 r2327 19 19 if test "x$ac_cv_func_syscall" != "xyes" && 20 20 test "x$ac_cv_func___syscall" != "xyes"; then 21 AC_CACHE_CHECK([for __syscall needing definition], [ have___syscall_need_defn],21 AC_CACHE_CHECK([for __syscall needing definition], [box_cv_have___syscall_need_defn], 22 22 [AC_RUN_IFELSE([AC_LANG_PROGRAM([[ 23 23 $ac_includes_default … … 30 30 return 1; 31 31 ]])], 32 [ have___syscall_need_defn=yes], [have___syscall_need_defn=no]32 [box_cv_have___syscall_need_defn=yes], [box_cv_have___syscall_need_defn=no] 33 33 )]) 34 if test "x$ have___syscall_need_defn" = "xyes"; then34 if test "x$box_cv_have___syscall_need_defn" = "xyes"; then 35 35 AC_DEFINE([HAVE___SYSCALL_NEED_DEFN], 1, 36 36 [Define to 1 if __syscall is available but needs a definition])
Note: See TracChangeset
for help on using the changeset viewer.
