diff options
author | Jim Meyering <jim@meyering.net> | 2002-01-26 19:03:43 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 2002-01-26 19:03:43 +0000 |
commit | bae9a65da4c4a9a8eff59af184401d9bf4a9552c (patch) | |
tree | d9a6481d778d7cc1cbdb2d6ad85e534a02e6c6f0 /m4/strnlen.m4 | |
parent | a08c6469bee602ad03d7b43f0ee4e3dc992d4138 (diff) | |
download | coreutils-bae9a65da4c4a9a8eff59af184401d9bf4a9552c.tar.xz |
.
Diffstat (limited to 'm4/strnlen.m4')
-rw-r--r-- | m4/strnlen.m4 | 31 |
1 files changed, 0 insertions, 31 deletions
diff --git a/m4/strnlen.m4 b/m4/strnlen.m4 deleted file mode 100644 index a5bd2ef00..000000000 --- a/m4/strnlen.m4 +++ /dev/null @@ -1,31 +0,0 @@ -#serial 1 - -# This is already in cvs autoconf -- what will be 2.52g. -# Define it here for those who aren't on the bleeding edge. -# FIXME: remove this file once the next autoconf release comes out. - -undefine([AC_FUNC_STRNLEN]) - -# AC_FUNC_STRNLEN -# -------------- -AC_DEFUN([AC_FUNC_STRNLEN], -[AC_CACHE_CHECK([for working strnlen], ac_cv_func_strnlen_working, -[AC_RUN_IFELSE([AC_LANG_PROGRAM([], [[ -#define S "foobar" -#define S_LEN (sizeof S - 1) - - /* At least one implementation is buggy: that of AIX 4.3. */ - int i; - for (i = 0; i < S_LEN + 1; ++i) - { - int result = i <= S_LEN ? i : S_LEN; - if (strnlen (S, i) != result) - exit (1); - } - exit (0); -]])], - [ac_cv_func_strnlen_working=yes], - [ac_cv_func_strnlen_working=no], - [ac_cv_func_strnlen_working=no])]) -test $ac_cv_func_strnlen_working = no && AC_LIBOBJ([strnlen]) -])# AC_FUNC_STRNLEN |