diff options
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index 113009a..f6e438f 100644 --- a/configure.ac +++ b/configure.ac @@ -57,6 +57,14 @@ AC_ARG_WITH( fi ] ) +AC_MSG_CHECKING([whether ${SH} supports \`local']) +if test x"$(${SH} -c 'f() { local v=2; }; v=1; f; printf "%d\n" "${v}";' \ + 2>&AS_MESSAGE_LOG_FD)" = x'1'; then + AC_MSG_RESULT([yes]) +else + AC_MSG_RESULT([no]) + AC_MSG_ERROR([a shell with \`local' is required]) +fi AC_MSG_CHECKING([whether ${SH} supports 64-bit arithmetic]) if test x"$(${SH} -c 'printf "%s\n" "$((2 << 61))"' 2>&AS_MESSAGE_LOG_FD)" = \ x'4611686018427387904'; then |