diff options
author | James O'Gorman <james@netinertia.co.uk> | 2008-10-05 13:20:21 +0000 |
---|---|---|
committer | James O'Gorman <james@netinertia.co.uk> | 2008-10-05 13:20:21 +0000 |
commit | 31c892532d5be4ebb92d26f35f726c1fbbfd6fba (patch) | |
tree | f0c5766a482e761ddfb76784b12182b4a0a171c8 /infrastructure/m4/ax_check_nonaligned_access.m4 | |
parent | bbab844d269b4d748291f8fbffbfd59b356fc893 (diff) |
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_
Diffstat (limited to 'infrastructure/m4/ax_check_nonaligned_access.m4')
-rw-r--r-- | infrastructure/m4/ax_check_nonaligned_access.m4 | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/infrastructure/m4/ax_check_nonaligned_access.m4 b/infrastructure/m4/ax_check_nonaligned_access.m4 index 8a6cd0c6..ab2d0b7e 100644 --- a/infrastructure/m4/ax_check_nonaligned_access.m4 +++ b/infrastructure/m4/ax_check_nonaligned_access.m4 @@ -12,7 +12,7 @@ dnl @version 2005/07/12 dnl @license AllPermissive AC_DEFUN([AX_CHECK_NONALIGNED_ACCESS], [ - AC_CACHE_CHECK([if non-aligned 16 bit word accesses fail], [have_aligned_only_int16], + AC_CACHE_CHECK([if non-aligned 16 bit word accesses fail], [box_cv_have_aligned_only_int16], [AC_RUN_IFELSE([AC_LANG_PROGRAM([[$ac_includes_default]], [[ #ifndef HAVE_UINT16_T #define uint16_t u_int16_t; @@ -21,12 +21,12 @@ AC_DEFUN([AX_CHECK_NONALIGNED_ACCESS], [ memset(scratch, 0, sizeof(scratch)); return *(uint16_t*)((char*)scratch+1); ]])], - [have_aligned_only_int16=no], [have_aligned_only_int16=yes] + [box_cv_have_aligned_only_int16=no], [box_cv_have_aligned_only_int16=yes] )]) - if test "x$have_aligned_only_int16" = "xyes"; then + if test "x$box_cv_have_aligned_only_int16" = "xyes"; then AC_DEFINE([HAVE_ALIGNED_ONLY_INT16], 1, [Define to 1 if non-aligned int16 access will fail]) fi - AC_CACHE_CHECK([if non-aligned 32 bit word accesses fail], [have_aligned_only_int32], + AC_CACHE_CHECK([if non-aligned 32 bit word accesses fail], [box_cv_have_aligned_only_int32], [AC_RUN_IFELSE([AC_LANG_PROGRAM([[$ac_includes_default]], [[ #ifndef HAVE_UINT32_T #define uint32_t u_int32_t; @@ -35,12 +35,12 @@ AC_DEFUN([AX_CHECK_NONALIGNED_ACCESS], [ memset(scratch, 0, sizeof(scratch)); return *(uint32_t*)((char*)scratch+1); ]])], - [have_aligned_only_int32=no], [have_aligned_only_int32=yes] + [box_cv_have_aligned_only_int32=no], [box_cv_have_aligned_only_int32=yes] )]) - if test "x$have_aligned_only_int32" = "xyes"; then + if test "x$box_cv_have_aligned_only_int32" = "xyes"; then AC_DEFINE([HAVE_ALIGNED_ONLY_INT32], 1, [Define to 1 if non-aligned int32 access will fail]) fi - AC_CACHE_CHECK([if non-aligned 64 bit word accesses fail], [have_aligned_only_int64], + AC_CACHE_CHECK([if non-aligned 64 bit word accesses fail], [box_cv_have_aligned_only_int64], [AC_RUN_IFELSE([AC_LANG_PROGRAM([[$ac_includes_default]], [[ #ifndef HAVE_UINT64_T #define uint64_t u_int64_t; @@ -49,9 +49,9 @@ AC_DEFUN([AX_CHECK_NONALIGNED_ACCESS], [ memset(scratch, 0, sizeof(scratch)); return *(uint64_t*)((char*)scratch+1); ]])], - [have_aligned_only_int64=no], [have_aligned_only_int64=yes] + [box_cv_have_aligned_only_int64=no], [box_cv_have_aligned_only_int64=yes] )]) - if test "x$have_aligned_only_int64" = "xyes"; then + if test "x$box_cv_have_aligned_only_int64" = "xyes"; then AC_DEFINE([HAVE_ALIGNED_ONLY_INT64], 1, [Define to 1 if non-aligned int64 access will fail]) fi ])dnl |