view modules/strtoimax @ 15556:d67698854fea

strtoimax: Avoid link error on OSF/1 with DTK cc. * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Always test whether strtoimax is defined as a function. * modules/strtoimax (Depends-on, configure.ac): Test only whether strtoimax is defined, not whether it is declared.
author Bruno Haible <bruno@clisp.org>
date Fri, 02 Sep 2011 01:35:53 +0200
parents 50a0061f67fe
children f9e137049132
line wrap: on
line source

Description:
strtoimax() function: convert string to 'intmax_t'.

Files:
lib/strtoimax.c
m4/longlong.m4
m4/strtoimax.m4

Depends-on:
inttypes-incomplete
verify          [test $ac_cv_func_strtoimax = no]
stdint          [test $ac_cv_func_strtoimax = no]
strtoll         [test $ac_cv_func_strtoimax = no && test $ac_cv_type_long_long_int = yes]

configure.ac:
gl_FUNC_STRTOIMAX
if test $ac_cv_func_strtoimax = no; then
  AC_LIBOBJ([strtoimax])
  gl_PREREQ_STRTOIMAX
fi
gl_INTTYPES_MODULE_INDICATOR([strtoimax])

Makefile.am:

Include:
<inttypes.h>

License:
LGPL

Maintainer:
Paul Eggert