diff options
| author | Paul Eggert | 2011-09-03 16:08:32 -0700 |
|---|---|---|
| committer | Paul Eggert | 2011-09-03 16:08:32 -0700 |
| commit | 7f59d9c856de33b97bc3f2708dcc8dadf24ee040 (patch) | |
| tree | eb0c7bb18b57498965581881a5cccd5f1de48166 /m4 | |
| parent | b49e353d9d01adbe60bc5d0b1658b4ef978b0b06 (diff) | |
| download | emacs-7f59d9c856de33b97bc3f2708dcc8dadf24ee040.tar.gz emacs-7f59d9c856de33b97bc3f2708dcc8dadf24ee040.zip | |
Merge from gnulib.
Diffstat (limited to 'm4')
| -rw-r--r-- | m4/gl-comp.m4 | 15 | ||||
| -rw-r--r-- | m4/gnulib-common.m4 | 56 | ||||
| -rw-r--r-- | m4/largefile.m4 | 20 | ||||
| -rw-r--r-- | m4/pthread_sigmask.m4 | 6 | ||||
| -rw-r--r-- | m4/strtoimax.m4 | 6 | ||||
| -rw-r--r-- | m4/strtoumax.m4 | 6 |
6 files changed, 82 insertions, 27 deletions
diff --git a/m4/gl-comp.m4 b/m4/gl-comp.m4 index becf95bef71..f7d99ca6f44 100644 --- a/m4/gl-comp.m4 +++ b/m4/gl-comp.m4 | |||
| @@ -25,7 +25,7 @@ AC_DEFUN([gl_EARLY], | |||
| 25 | m4_pattern_allow([^gl_ES$])dnl a valid locale name | 25 | m4_pattern_allow([^gl_ES$])dnl a valid locale name |
| 26 | m4_pattern_allow([^gl_LIBOBJS$])dnl a variable | 26 | m4_pattern_allow([^gl_LIBOBJS$])dnl a variable |
| 27 | m4_pattern_allow([^gl_LTLIBOBJS$])dnl a variable | 27 | m4_pattern_allow([^gl_LTLIBOBJS$])dnl a variable |
| 28 | AC_REQUIRE([AC_PROG_RANLIB]) | 28 | AC_REQUIRE([gl_PROG_AR_RANLIB]) |
| 29 | # Code from module alloca-opt: | 29 | # Code from module alloca-opt: |
| 30 | # Code from module allocator: | 30 | # Code from module allocator: |
| 31 | # Code from module careadlinkat: | 31 | # Code from module careadlinkat: |
| @@ -48,6 +48,7 @@ AC_DEFUN([gl_EARLY], | |||
| 48 | # Code from module intprops: | 48 | # Code from module intprops: |
| 49 | # Code from module inttypes-incomplete: | 49 | # Code from module inttypes-incomplete: |
| 50 | # Code from module largefile: | 50 | # Code from module largefile: |
| 51 | AC_REQUIRE([AC_SYS_LARGEFILE]) | ||
| 51 | # Code from module lstat: | 52 | # Code from module lstat: |
| 52 | # Code from module mktime: | 53 | # Code from module mktime: |
| 53 | # Code from module multiarch: | 54 | # Code from module multiarch: |
| @@ -174,13 +175,13 @@ gl_STDIO_H | |||
| 174 | gl_STDLIB_H | 175 | gl_STDLIB_H |
| 175 | gl_FUNC_GNU_STRFTIME | 176 | gl_FUNC_GNU_STRFTIME |
| 176 | gl_FUNC_STRTOIMAX | 177 | gl_FUNC_STRTOIMAX |
| 177 | if test "$ac_cv_have_decl_strtoimax" != yes && test $ac_cv_func_strtoimax = no; then | 178 | if test $ac_cv_func_strtoimax = no; then |
| 178 | AC_LIBOBJ([strtoimax]) | 179 | AC_LIBOBJ([strtoimax]) |
| 179 | gl_PREREQ_STRTOIMAX | 180 | gl_PREREQ_STRTOIMAX |
| 180 | fi | 181 | fi |
| 181 | gl_INTTYPES_MODULE_INDICATOR([strtoimax]) | 182 | gl_INTTYPES_MODULE_INDICATOR([strtoimax]) |
| 182 | gl_FUNC_STRTOUMAX | 183 | gl_FUNC_STRTOUMAX |
| 183 | if test "$ac_cv_have_decl_strtoumax" != yes && test $ac_cv_func_strtoumax = no; then | 184 | if test $ac_cv_func_strtoumax = no; then |
| 184 | AC_LIBOBJ([strtoumax]) | 185 | AC_LIBOBJ([strtoumax]) |
| 185 | gl_PREREQ_STRTOUMAX | 186 | gl_PREREQ_STRTOUMAX |
| 186 | fi | 187 | fi |
| @@ -297,16 +298,16 @@ gl_STDLIB_MODULE_INDICATOR([strtoull]) | |||
| 297 | if test $HAVE_READLINK = 0 || test $REPLACE_READLINK = 1; then | 298 | if test $HAVE_READLINK = 0 || test $REPLACE_READLINK = 1; then |
| 298 | func_gl_gnulib_m4code_stat | 299 | func_gl_gnulib_m4code_stat |
| 299 | fi | 300 | fi |
| 300 | if test "$ac_cv_have_decl_strtoimax" != yes && test $ac_cv_func_strtoimax = no; then | 301 | if test $ac_cv_func_strtoimax = no; then |
| 301 | func_gl_gnulib_m4code_verify | 302 | func_gl_gnulib_m4code_verify |
| 302 | fi | 303 | fi |
| 303 | if test "$ac_cv_have_decl_strtoimax" != yes && test $ac_cv_func_strtoimax = no && test $ac_cv_type_long_long_int = yes; then | 304 | if test $ac_cv_func_strtoimax = no && test $ac_cv_type_long_long_int = yes; then |
| 304 | func_gl_gnulib_m4code_strtoll | 305 | func_gl_gnulib_m4code_strtoll |
| 305 | fi | 306 | fi |
| 306 | if test "$ac_cv_have_decl_strtoumax" != yes && test $ac_cv_func_strtoumax = no; then | 307 | if test $ac_cv_func_strtoumax = no; then |
| 307 | func_gl_gnulib_m4code_verify | 308 | func_gl_gnulib_m4code_verify |
| 308 | fi | 309 | fi |
| 309 | if test "$ac_cv_have_decl_strtoumax" != yes && test $ac_cv_func_strtoumax = no && test $ac_cv_type_unsigned_long_long_int = yes; then | 310 | if test $ac_cv_func_strtoumax = no && test $ac_cv_type_unsigned_long_long_int = yes; then |
| 310 | func_gl_gnulib_m4code_strtoull | 311 | func_gl_gnulib_m4code_strtoull |
| 311 | fi | 312 | fi |
| 312 | m4_pattern_allow([^gl_GNULIB_ENABLED_]) | 313 | m4_pattern_allow([^gl_GNULIB_ENABLED_]) |
diff --git a/m4/gnulib-common.m4 b/m4/gnulib-common.m4 index 6b5923a0ea6..8fc448fdc8f 100644 --- a/m4/gnulib-common.m4 +++ b/m4/gnulib-common.m4 | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | # gnulib-common.m4 serial 28 | 1 | # gnulib-common.m4 serial 30 |
| 2 | dnl Copyright (C) 2007-2011 Free Software Foundation, Inc. | 2 | dnl Copyright (C) 2007-2011 Free Software Foundation, Inc. |
| 3 | dnl This file is free software; the Free Software Foundation | 3 | dnl This file is free software; the Free Software Foundation |
| 4 | dnl gives unlimited permission to copy and/or distribute it, | 4 | dnl gives unlimited permission to copy and/or distribute it, |
| @@ -211,6 +211,60 @@ m4_ifndef([AS_VAR_IF], | |||
| 211 | [m4_define([AS_VAR_IF], | 211 | [m4_define([AS_VAR_IF], |
| 212 | [AS_IF([test x"AS_VAR_GET([$1])" = x""$2], [$3], [$4])])]) | 212 | [AS_IF([test x"AS_VAR_GET([$1])" = x""$2], [$3], [$4])])]) |
| 213 | 213 | ||
| 214 | # gl_PROG_AR_RANLIB | ||
| 215 | # Determines the values for AR, ARFLAGS, RANLIB that fit with the compiler. | ||
| 216 | # The user can set the variables AR, ARFLAGS, RANLIB if he wants to override | ||
| 217 | # the values. | ||
| 218 | AC_DEFUN([gl_PROG_AR_RANLIB], | ||
| 219 | [ | ||
| 220 | dnl Minix 3 comes with two toolchains: The Amsterdam Compiler Kit compiler | ||
| 221 | dnl as "cc", and GCC as "gcc". They have different object file formats and | ||
| 222 | dnl library formats. In particular, the GNU binutils programs ar, ranlib | ||
| 223 | dnl produce libraries that work only with gcc, not with cc. | ||
| 224 | AC_REQUIRE([AC_PROG_CC]) | ||
| 225 | AC_CACHE_CHECK([for Minix Amsterdam compiler], [gl_cv_c_amsterdam_compiler], | ||
| 226 | [ | ||
| 227 | AC_EGREP_CPP([Amsterdam], | ||
| 228 | [ | ||
| 229 | #ifdef __ACK__ | ||
| 230 | Amsterdam | ||
| 231 | #endif | ||
| 232 | ], | ||
| 233 | [gl_cv_c_amsterdam_compiler=yes], | ||
| 234 | [gl_cv_c_amsterdam_compiler=no]) | ||
| 235 | ]) | ||
| 236 | if test -z "$AR"; then | ||
| 237 | if test $gl_cv_c_amsterdam_compiler = yes; then | ||
| 238 | AR='cc -c.a' | ||
| 239 | if test -z "$ARFLAGS"; then | ||
| 240 | ARFLAGS='-o' | ||
| 241 | fi | ||
| 242 | else | ||
| 243 | dnl Use the Automake-documented default values for AR and ARFLAGS, | ||
| 244 | dnl but prefer ${host}-ar over ar (useful for cross-compiling). | ||
| 245 | AC_CHECK_TOOL([AR], [ar], [ar]) | ||
| 246 | if test -z "$ARFLAGS"; then | ||
| 247 | ARFLAGS='cru' | ||
| 248 | fi | ||
| 249 | fi | ||
| 250 | else | ||
| 251 | if test -z "$ARFLAGS"; then | ||
| 252 | ARFLAGS='cru' | ||
| 253 | fi | ||
| 254 | fi | ||
| 255 | AC_SUBST([AR]) | ||
| 256 | AC_SUBST([ARFLAGS]) | ||
| 257 | if test -z "$RANLIB"; then | ||
| 258 | if test $gl_cv_c_amsterdam_compiler = yes; then | ||
| 259 | RANLIB=':' | ||
| 260 | else | ||
| 261 | dnl Use the ranlib program if it is available. | ||
| 262 | AC_PROG_RANLIB | ||
| 263 | fi | ||
| 264 | fi | ||
| 265 | AC_SUBST([RANLIB]) | ||
| 266 | ]) | ||
| 267 | |||
| 214 | # AC_PROG_MKDIR_P | 268 | # AC_PROG_MKDIR_P |
| 215 | # is a backport of autoconf-2.60's AC_PROG_MKDIR_P, with a fix | 269 | # is a backport of autoconf-2.60's AC_PROG_MKDIR_P, with a fix |
| 216 | # for interoperability with automake-1.9.6 from autoconf-2.62. | 270 | # for interoperability with automake-1.9.6 from autoconf-2.62. |
diff --git a/m4/largefile.m4 b/m4/largefile.m4 index 6986244b396..d83fea1233d 100644 --- a/m4/largefile.m4 +++ b/m4/largefile.m4 | |||
| @@ -19,8 +19,8 @@ m4_define([_AC_SYS_LARGEFILE_TEST_INCLUDES], | |||
| 19 | incorrectly reject 9223372036854775807. */ | 19 | incorrectly reject 9223372036854775807. */ |
| 20 | @%:@define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | 20 | @%:@define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) |
| 21 | int off_t_is_large[[(LARGE_OFF_T % 2147483629 == 721 | 21 | int off_t_is_large[[(LARGE_OFF_T % 2147483629 == 721 |
| 22 | && LARGE_OFF_T % 2147483647 == 1) | 22 | && LARGE_OFF_T % 2147483647 == 1) |
| 23 | ? 1 : -1]];[]dnl | 23 | ? 1 : -1]];[]dnl |
| 24 | ]) | 24 | ]) |
| 25 | 25 | ||
| 26 | 26 | ||
| @@ -58,7 +58,7 @@ rm -rf conftest*[]dnl | |||
| 58 | # http://www.unix-systems.org/version2/whatsnew/lfs20mar.html | 58 | # http://www.unix-systems.org/version2/whatsnew/lfs20mar.html |
| 59 | AC_DEFUN([AC_SYS_LARGEFILE], | 59 | AC_DEFUN([AC_SYS_LARGEFILE], |
| 60 | [AC_ARG_ENABLE(largefile, | 60 | [AC_ARG_ENABLE(largefile, |
| 61 | [ --disable-largefile omit support for large files]) | 61 | [ --disable-largefile omit support for large files]) |
| 62 | if test "$enable_largefile" != no; then | 62 | if test "$enable_largefile" != no; then |
| 63 | 63 | ||
| 64 | AC_CACHE_CHECK([for special C compiler options needed for large files], | 64 | AC_CACHE_CHECK([for special C compiler options needed for large files], |
| @@ -67,13 +67,13 @@ if test "$enable_largefile" != no; then | |||
| 67 | if test "$GCC" != yes; then | 67 | if test "$GCC" != yes; then |
| 68 | ac_save_CC=$CC | 68 | ac_save_CC=$CC |
| 69 | while :; do | 69 | while :; do |
| 70 | # IRIX 6.2 and later do not support large files by default, | 70 | # IRIX 6.2 and later do not support large files by default, |
| 71 | # so use the C compiler's -n32 option if that helps. | 71 | # so use the C compiler's -n32 option if that helps. |
| 72 | AC_LANG_CONFTEST([AC_LANG_PROGRAM([_AC_SYS_LARGEFILE_TEST_INCLUDES])]) | 72 | AC_LANG_CONFTEST([AC_LANG_PROGRAM([_AC_SYS_LARGEFILE_TEST_INCLUDES])]) |
| 73 | AC_COMPILE_IFELSE([], [break]) | 73 | AC_COMPILE_IFELSE([], [break]) |
| 74 | CC="$CC -n32" | 74 | CC="$CC -n32" |
| 75 | AC_COMPILE_IFELSE([], [ac_cv_sys_largefile_CC=' -n32'; break]) | 75 | AC_COMPILE_IFELSE([], [ac_cv_sys_largefile_CC=' -n32'; break]) |
| 76 | break | 76 | break |
| 77 | done | 77 | done |
| 78 | CC=$ac_save_CC | 78 | CC=$ac_save_CC |
| 79 | rm -f conftest.$ac_ext | 79 | rm -f conftest.$ac_ext |
diff --git a/m4/pthread_sigmask.m4 b/m4/pthread_sigmask.m4 index f3522496cd5..f06bc119ff3 100644 --- a/m4/pthread_sigmask.m4 +++ b/m4/pthread_sigmask.m4 | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | # pthread_sigmask.m4 serial 11 | 1 | # pthread_sigmask.m4 serial 12 |
| 2 | dnl Copyright (C) 2011 Free Software Foundation, Inc. | 2 | dnl Copyright (C) 2011 Free Software Foundation, Inc. |
| 3 | dnl This file is free software; the Free Software Foundation | 3 | dnl This file is free software; the Free Software Foundation |
| 4 | dnl gives unlimited permission to copy and/or distribute it, | 4 | dnl gives unlimited permission to copy and/or distribute it, |
| @@ -13,8 +13,8 @@ AC_DEFUN([gl_FUNC_PTHREAD_SIGMASK], | |||
| 13 | dnl Some packages like Emacs use --avoid=threadlib. | 13 | dnl Some packages like Emacs use --avoid=threadlib. |
| 14 | dnl Write the symbol in such a way that it does not cause 'aclocal' to pick | 14 | dnl Write the symbol in such a way that it does not cause 'aclocal' to pick |
| 15 | dnl the threadlib.m4 file that is installed in $PREFIX/share/aclocal/. | 15 | dnl the threadlib.m4 file that is installed in $PREFIX/share/aclocal/. |
| 16 | m4_ifdef([gl_[]THREADLIB], [ | 16 | m4_ifdef([gl_][THREADLIB], [ |
| 17 | AC_REQUIRE([gl_[]THREADLIB]) | 17 | AC_REQUIRE([gl_][THREADLIB]) |
| 18 | 18 | ||
| 19 | if test "$gl_threads_api" = posix; then | 19 | if test "$gl_threads_api" = posix; then |
| 20 | if test $ac_cv_func_pthread_sigmask = yes; then | 20 | if test $ac_cv_func_pthread_sigmask = yes; then |
diff --git a/m4/strtoimax.m4 b/m4/strtoimax.m4 index 47fb1bc9c38..a8d0b69c205 100644 --- a/m4/strtoimax.m4 +++ b/m4/strtoimax.m4 | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | # strtoimax.m4 serial 10 | 1 | # strtoimax.m4 serial 11 |
| 2 | dnl Copyright (C) 2002-2004, 2006, 2009-2011 Free Software Foundation, Inc. | 2 | dnl Copyright (C) 2002-2004, 2006, 2009-2011 Free Software Foundation, Inc. |
| 3 | dnl This file is free software; the Free Software Foundation | 3 | dnl This file is free software; the Free Software Foundation |
| 4 | dnl gives unlimited permission to copy and/or distribute it, | 4 | dnl gives unlimited permission to copy and/or distribute it, |
| @@ -8,11 +8,11 @@ AC_DEFUN([gl_FUNC_STRTOIMAX], | |||
| 8 | [ | 8 | [ |
| 9 | AC_REQUIRE([gl_INTTYPES_H_DEFAULTS]) | 9 | AC_REQUIRE([gl_INTTYPES_H_DEFAULTS]) |
| 10 | 10 | ||
| 11 | dnl On OSF/1 5.1 with cc, this function is declared but not defined. | ||
| 12 | AC_CHECK_FUNCS_ONCE([strtoimax]) | ||
| 11 | AC_CHECK_DECLS_ONCE([strtoimax]) | 13 | AC_CHECK_DECLS_ONCE([strtoimax]) |
| 12 | if test "$ac_cv_have_decl_strtoimax" != yes; then | 14 | if test "$ac_cv_have_decl_strtoimax" != yes; then |
| 13 | HAVE_DECL_STRTOIMAX=0 | 15 | HAVE_DECL_STRTOIMAX=0 |
| 14 | |||
| 15 | AC_CHECK_FUNCS([strtoimax]) | ||
| 16 | fi | 16 | fi |
| 17 | ]) | 17 | ]) |
| 18 | 18 | ||
diff --git a/m4/strtoumax.m4 b/m4/strtoumax.m4 index 58b310de85a..1ddf6820e3f 100644 --- a/m4/strtoumax.m4 +++ b/m4/strtoumax.m4 | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | # strtoumax.m4 serial 10 | 1 | # strtoumax.m4 serial 11 |
| 2 | dnl Copyright (C) 2002-2004, 2006, 2009-2011 Free Software Foundation, Inc. | 2 | dnl Copyright (C) 2002-2004, 2006, 2009-2011 Free Software Foundation, Inc. |
| 3 | dnl This file is free software; the Free Software Foundation | 3 | dnl This file is free software; the Free Software Foundation |
| 4 | dnl gives unlimited permission to copy and/or distribute it, | 4 | dnl gives unlimited permission to copy and/or distribute it, |
| @@ -8,11 +8,11 @@ AC_DEFUN([gl_FUNC_STRTOUMAX], | |||
| 8 | [ | 8 | [ |
| 9 | AC_REQUIRE([gl_INTTYPES_H_DEFAULTS]) | 9 | AC_REQUIRE([gl_INTTYPES_H_DEFAULTS]) |
| 10 | 10 | ||
| 11 | dnl On OSF/1 5.1 with cc, this function is declared but not defined. | ||
| 12 | AC_CHECK_FUNCS_ONCE([strtoumax]) | ||
| 11 | AC_CHECK_DECLS_ONCE([strtoumax]) | 13 | AC_CHECK_DECLS_ONCE([strtoumax]) |
| 12 | if test "$ac_cv_have_decl_strtoumax" != yes; then | 14 | if test "$ac_cv_have_decl_strtoumax" != yes; then |
| 13 | HAVE_DECL_STRTOUMAX=0 | 15 | HAVE_DECL_STRTOUMAX=0 |
| 14 | |||
| 15 | AC_CHECK_FUNCS([strtoumax]) | ||
| 16 | fi | 16 | fi |
| 17 | ]) | 17 | ]) |
| 18 | 18 | ||