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_
File:
1 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 
Note: See TracChangeset for help on using the changeset viewer.