comparison modules/strtoumax @ 37198:5bd4e95e689f

strtoimax, strtoumax: port to HP-UX 11.11 Problem reported by Daniel Richard G. in <http://lists.gnu.org/archive/html/bug-gnulib/2013-10/msg00023.html>. * lib/inttypes.in.h (strtoumax): Replace strtoumax if REPLACE_STRTOUMAX, thus treating it consistently with strtoimax. * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Add default for REPLACE_STRTOUMAX. * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Replace the function if defined as a macro but not as a function. * modules/inttypes-incomplete (inttypes.h): Substitute REPLACE_STRTOUMAX. * modules/strtoumax (configure.ac): Replace strtoumax if REPLACE_STRTOUMAX.
author Paul Eggert <eggert@cs.ucla.edu>
date Wed, 09 Oct 2013 08:05:24 -0700
parents dd8cc782c33d
children 796d7689f6de
comparison
equal deleted inserted replaced
37197:b1fa62588059 37198:5bd4e95e689f
13 stdint [test $ac_cv_func_strtoumax = no] 13 stdint [test $ac_cv_func_strtoumax = no]
14 strtoull [test $ac_cv_func_strtoumax = no && test $ac_cv_type_unsigned_long_long_int = yes] 14 strtoull [test $ac_cv_func_strtoumax = no && test $ac_cv_type_unsigned_long_long_int = yes]
15 15
16 configure.ac: 16 configure.ac:
17 gl_FUNC_STRTOUMAX 17 gl_FUNC_STRTOUMAX
18 if test $ac_cv_func_strtoumax = no; then 18 if test $HAVE_STRTOUMAX = 0 || test $REPLACE_STRTOUMAX = 1; then
19 AC_LIBOBJ([strtoumax]) 19 AC_LIBOBJ([strtoumax])
20 gl_PREREQ_STRTOUMAX 20 gl_PREREQ_STRTOUMAX
21 fi 21 fi
22 gl_INTTYPES_MODULE_INDICATOR([strtoumax]) 22 gl_INTTYPES_MODULE_INDICATOR([strtoumax])
23 23