Changeset 2327


Ignore:
Timestamp:
05/10/2008 14:20:21 (4 years ago)
Author:
jamesog
Message:

Update autoconf to silence warnings on autoconf >= 2.62

  • AC_SUBST now only works with one variable per call
  • When using AC_CACHE the variable must contain the string '_cv_', thus prefix all cache variables with box_cv_
Location:
box/trunk
Files:
8 edited

Legend:

Unmodified
Added
Removed
  • box/trunk/configure.ac

    r2290 r2327  
    239239## Check for large file support active. AC_SYS_LARGEFILE has already worked 
    240240## 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], 
     241AC_CACHE_CHECK([if we have large file support enabled], [box_cv_have_large_file_support], 
    242242  [AC_RUN_IFELSE([AC_LANG_PROGRAM([[$ac_includes_default]], [[ 
    243243      return sizeof(off_t)==4; 
    244244    ]])], 
    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] 
    246246  )]) 
    247247 
    248 if test "x$have_large_file_support" = "xyes"; then 
     248if test "x$box_cv_have_large_file_support" = "xyes"; then 
    249249        AC_DEFINE([HAVE_LARGE_FILE_SUPPORT], [1], 
    250250                [Define to 1 if large files are supported]) 
     
    302302prefix=$saved_prefix 
    303303exec_prefix=$saved_exec_prefix 
    304 AC_SUBST([bindir_expanded sbindir_expanded sysconfdir_expanded localstatedir_expanded]) 
     304AC_SUBST([bindir_expanded]) 
     305AC_SUBST([sbindir_expanded]) 
     306AC_SUBST([sysconfdir_expanded]) 
     307AC_SUBST([localstatedir_expanded]) 
    305308 
    306309 
     
    356359 
    357360Regular expressions: $have_regex_support 
    358 Large files:         $have_large_file_support 
     361Large files:         $box_cv_have_large_file_support 
    359362Berkeley DB:         $ax_path_bdb_ok 
    360363Readline:            $have_libreadline 
     
    365368### Warnings at end for visibility 
    366369 
    367 if test "x$gcc_3_plus" != "xyes" && test "x$malloc_workaround" != "xyes"; then 
     370if test "x$box_cv_gcc_3_plus" != "xyes" && test "x$box_cv_malloc_workaround" != "xyes"; then 
    368371  echo 
    369372  AC_MSG_WARN([[the implementation of the C++ STL on this platform may 
  • box/trunk/infrastructure/m4/ax_bswap64.m4

    r362 r2327  
    1414  AC_CHECK_HEADERS([sys/endian.h asm/byteorder.h]) 
    1515  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], 
    1717      [AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[ 
    1818          $ac_includes_default 
     
    2222          return 1; 
    2323        ]])], 
    24         [have_htobe64=yes], [have_htobe64=no] 
     24        [box_cv_have_htobe64=yes], [box_cv_have_htobe64=no] 
    2525      )]) 
    26     if test "x$have_htobe64" = "xyes"; then 
     26    if test "x$box_cv_have_htobe64" = "xyes"; then 
    2727      bswap64_function=htobe64 
    2828    fi 
     
    3030  if test "x$bswap64_function" = "x" && \ 
    3131     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], 
    3333      [AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[ 
    3434          $ac_includes_default 
     
    3838          return 1; 
    3939        ]])], 
    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] 
    4141      )]) 
    42     if test "x$have___cpu_to_be64" = "xyes"; then 
     42    if test "x$box_cv_have___cpu_to_be64" = "xyes"; then 
    4343      bswap64_function=__cpu_to_be64 
    4444    fi 
  • box/trunk/infrastructure/m4/ax_check_define_pragma.m4

    r217 r2327  
    1111 
    1212AC_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], 
    1414    [AC_COMPILE_IFELSE([AC_LANG_SOURCE([[ 
    1515        #define TEST_DEFINE #pragma pack(1) 
    1616        TEST_DEFINE 
    1717      ]])], 
    18       [have_define_pragma=yes], [have_define_pragma=no] 
     18      [box_cv_have_define_pragma=yes], [box_cv_have_define_pragma=no] 
    1919    )]) 
    20   if test "x$have_define_pragma" = "xyes"; then 
     20  if test "x$box_cv_have_define_pragma" = "xyes"; then 
    2121    AC_DEFINE([HAVE_DEFINE_PRAGMA], 1, [Define to 1 if #define of pragmas works]) 
    2222    m4_ifvaln([$1],[$1],[:])dnl 
  • box/trunk/infrastructure/m4/ax_check_dirent_d_type.m4

    r2011 r2327  
    1616  AC_CHECK_MEMBERS([struct dirent.d_type],,, [[#include <dirent.h>]]) 
    1717  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], 
    1919      [AC_RUN_IFELSE( 
    2020        [AC_LANG_PROGRAM([[ 
     
    2727          return res ? (res->d_type != DT_FILE && res->d_type != DT_DIR) : 1; 
    2828        ]])], 
    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] 
    3030      )]) 
    31     if test "x$have_valid_dirent_d_type" = "xyes"; then 
     31    if test "x$box_cv_have_valid_dirent_d_type" = "xyes"; then 
    3232      AC_DEFINE([HAVE_VALID_DIRENT_D_TYPE], 1, [Define to 1 if struct dirent.d_type is valid]) 
    3333    fi 
    3434  fi 
    3535  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" 
    3737  then 
    3838    m4_ifvaln([$1],[$1],[:])dnl 
  • box/trunk/infrastructure/m4/ax_check_malloc_workaround.m4

    r217 r2327  
    1111AC_DEFUN([AX_CHECK_MALLOC_WORKAROUND], [ 
    1212  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], 
    1414      [AC_COMPILE_IFELSE([AC_LANG_SOURCE([[ 
    1515          #if __GNUC__ < 3 
     
    1717          #endif 
    1818          ]])], 
    19       [gcc_3_plus=yes], [gcc_3_plus=no] 
     19      [box_cv_gcc_3_plus=yes], [box_cv_gcc_3_plus=no] 
    2020    )]) 
    21     if test "x$gcc_3_plus" = "xno"; then 
    22       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], 
    2323        [AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[ 
    2424            #define __USE_MALLOC 
     
    2828            s = "test"; 
    2929        ]])], 
    30         [malloc_workaround=yes], [malloc_workaround=no] 
     30        [box_cv_malloc_workaround=yes], [box_cv_malloc_workaround=no] 
    3131      )]) 
    32       if test "x$malloc_workaround" = "xyes"; then 
     32      if test "x$box_cv_malloc_workaround" = "xyes"; then 
    3333        AC_DEFINE([__USE_MALLOC], 1, 
    3434                  [Define to 1 if __USE_MALLOC is required work around STL memory leaks]) 
  • box/trunk/infrastructure/m4/ax_check_nonaligned_access.m4

    r217 r2327  
    1313 
    1414AC_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], 
    1616    [AC_RUN_IFELSE([AC_LANG_PROGRAM([[$ac_includes_default]], [[ 
    1717        #ifndef HAVE_UINT16_T 
     
    2222        return *(uint16_t*)((char*)scratch+1); 
    2323      ]])], 
    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] 
    2525    )]) 
    26   if test "x$have_aligned_only_int16" = "xyes"; then 
     26  if test "x$box_cv_have_aligned_only_int16" = "xyes"; then 
    2727    AC_DEFINE([HAVE_ALIGNED_ONLY_INT16], 1, [Define to 1 if non-aligned int16 access will fail]) 
    2828  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], 
    3030    [AC_RUN_IFELSE([AC_LANG_PROGRAM([[$ac_includes_default]], [[ 
    3131        #ifndef HAVE_UINT32_T 
     
    3636        return *(uint32_t*)((char*)scratch+1); 
    3737      ]])], 
    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] 
    3939    )]) 
    40   if test "x$have_aligned_only_int32" = "xyes"; then 
     40  if test "x$box_cv_have_aligned_only_int32" = "xyes"; then 
    4141    AC_DEFINE([HAVE_ALIGNED_ONLY_INT32], 1, [Define to 1 if non-aligned int32 access will fail]) 
    4242  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], 
    4444    [AC_RUN_IFELSE([AC_LANG_PROGRAM([[$ac_includes_default]], [[ 
    4545        #ifndef HAVE_UINT64_T 
     
    5050        return *(uint64_t*)((char*)scratch+1); 
    5151      ]])], 
    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] 
    5353    )]) 
    54   if test "x$have_aligned_only_int64" = "xyes"; then 
     54  if test "x$box_cv_have_aligned_only_int64" = "xyes"; then 
    5555    AC_DEFINE([HAVE_ALIGNED_ONLY_INT64], 1, [Define to 1 if non-aligned int64 access will fail]) 
    5656  fi 
  • box/trunk/infrastructure/m4/ax_check_syscall_lseek.m4

    r2059 r2327  
    1616  AC_REQUIRE([AX_FUNC_SYSCALL])dnl 
    1717  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], 
    1919      [AC_RUN_IFELSE( 
    2020        [AC_LANG_PROGRAM([[ 
     
    5151          return res!=-1; 
    5252        ]])], 
    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] 
    5454      )]) 
    55     if test "x$have_lseek_dummy_param" = "xyes"; then 
     55    if test "x$box_cv_have_lseek_dummy_param" = "xyes"; then 
    5656      AC_DEFINE([HAVE_LSEEK_DUMMY_PARAM], 1, 
    5757                [Define to 1 if syscall lseek requires a dummy middle parameter]) 
    5858    fi 
    5959  fi 
    60   if test "x$have_lseek_dummy_param" = "xno" 
     60  if test "x$box_cv_have_lseek_dummy_param" = "xno" 
    6161  then 
    6262    m4_ifvaln([$1],[$1],[:])dnl 
  • box/trunk/infrastructure/m4/ax_func_syscall.m4

    r217 r2327  
    1919  if test "x$ac_cv_func_syscall" != "xyes" && 
    2020     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], 
    2222      [AC_RUN_IFELSE([AC_LANG_PROGRAM([[ 
    2323          $ac_includes_default 
     
    3030          return 1; 
    3131        ]])], 
    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] 
    3333      )]) 
    34     if test "x$have___syscall_need_defn" = "xyes"; then 
     34    if test "x$box_cv_have___syscall_need_defn" = "xyes"; then 
    3535      AC_DEFINE([HAVE___SYSCALL_NEED_DEFN], 1, 
    3636                [Define to 1 if __syscall is available but needs a definition]) 
Note: See TracChangeset for help on using the changeset viewer.