diff options
author | Bruno Haible <bruno@clisp.org> | 2008-10-19 19:11:37 +0200 |
---|---|---|
committer | Bruno Haible <bruno@clisp.org> | 2008-10-19 19:11:37 +0200 |
commit | 2fbd31539f6349ef22c716a574a1a2547a4688b3 (patch) | |
tree | 33d2caffbeee2770db692ed82fcb200d0474611f /m4/atoll.m4 | |
parent | 17e17901bb654bcd5659550231c16ca8cbdb92bf (diff) | |
download | gnulib-2fbd31539f6349ef22c716a574a1a2547a4688b3.tar.gz |
New module 'atoll'.
Diffstat (limited to 'm4/atoll.m4')
-rw-r--r-- | m4/atoll.m4 | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/m4/atoll.m4 b/m4/atoll.m4 new file mode 100644 index 0000000000..aa8a0d97d5 --- /dev/null +++ b/m4/atoll.m4 @@ -0,0 +1,26 @@ +# atoll.m4 serial 1 +dnl Copyright (C) 2008 Free Software Foundation, Inc. +dnl This file is free software; the Free Software Foundation +dnl gives unlimited permission to copy and/or distribute it, +dnl with or without modifications, as long as this notice is preserved. + +AC_DEFUN([gl_FUNC_ATOLL], +[ + AC_REQUIRE([gl_STDLIB_H_DEFAULTS]) + dnl We don't need (and can't compile) the replacement strtoll + dnl unless the type 'long long int' exists. + AC_REQUIRE([AC_TYPE_LONG_LONG_INT]) + if test "$ac_cv_type_long_long_int" = yes; then + AC_CHECK_FUNCS([atoll]) + if test $ac_cv_func_atoll = no; then + HAVE_ATOLL=0 + AC_LIBOBJ([atoll]) + gl_PREREQ_ATOLL + fi + fi +]) + +# Prerequisites of lib/atoll.c. +AC_DEFUN([gl_PREREQ_ATOLL], [ + : +]) |