diff options
| author | Paul Eggert | 2011-07-28 09:35:19 -0700 |
|---|---|---|
| committer | Paul Eggert | 2011-07-28 09:35:19 -0700 |
| commit | 5402029425ceee114d7ed071ac981227f0d1fc38 (patch) | |
| tree | 20451e9445b32b2a447d7e0d022d490aac3838aa | |
| parent | 70c2e72ae5368e39277de78a414c9d42292886c5 (diff) | |
| download | emacs-5402029425ceee114d7ed071ac981227f0d1fc38.tar.gz emacs-5402029425ceee114d7ed071ac981227f0d1fc38.zip | |
Merge from gnulib.
| -rw-r--r-- | m4/dup2.m4 | 23 | ||||
| -rw-r--r-- | m4/gl-comp.m4 | 5 | ||||
| -rw-r--r-- | m4/include_next.m4 | 14 |
3 files changed, 23 insertions, 19 deletions
diff --git a/m4/dup2.m4 b/m4/dup2.m4 index 8d7f62c8876..5c2cc9674c1 100644 --- a/m4/dup2.m4 +++ b/m4/dup2.m4 | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | #serial 13 | 1 | #serial 14 |
| 2 | dnl Copyright (C) 2002, 2005, 2007, 2009-2011 Free Software Foundation, Inc. | 2 | dnl Copyright (C) 2002, 2005, 2007, 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, |
| @@ -12,7 +12,6 @@ AC_DEFUN([gl_FUNC_DUP2], | |||
| 12 | AC_CHECK_FUNCS_ONCE([dup2]) | 12 | AC_CHECK_FUNCS_ONCE([dup2]) |
| 13 | if test $ac_cv_func_dup2 = no; then | 13 | if test $ac_cv_func_dup2 = no; then |
| 14 | HAVE_DUP2=0 | 14 | HAVE_DUP2=0 |
| 15 | AC_LIBOBJ([dup2]) | ||
| 16 | fi | 15 | fi |
| 17 | ], [ | 16 | ], [ |
| 18 | AC_DEFINE([HAVE_DUP2], [1], [Define to 1 if you have the 'dup2' function.]) | 17 | AC_DEFINE([HAVE_DUP2], [1], [Define to 1 if you have the 'dup2' function.]) |
| @@ -60,17 +59,15 @@ AC_DEFUN([gl_FUNC_DUP2], | |||
| 60 | esac]) | 59 | esac]) |
| 61 | ]) | 60 | ]) |
| 62 | if test "$gl_cv_func_dup2_works" = no; then | 61 | if test "$gl_cv_func_dup2_works" = no; then |
| 63 | gl_REPLACE_DUP2 | 62 | REPLACE_DUP2=1 |
| 64 | fi | 63 | fi |
| 65 | fi | 64 | fi |
| 66 | ]) | 65 | dnl Replace dup2() for supporting the gnulib-defined fchdir() function, |
| 67 | 66 | dnl to keep fchdir's bookkeeping up-to-date. | |
| 68 | AC_DEFUN([gl_REPLACE_DUP2], | 67 | m4_ifdef([gl_FUNC_FCHDIR], [ |
| 69 | [ | 68 | gl_TEST_FCHDIR |
| 70 | AC_REQUIRE([gl_UNISTD_H_DEFAULTS]) | 69 | if test $HAVE_FCHDIR = 0; then |
| 71 | AC_CHECK_FUNCS_ONCE([dup2]) | 70 | REPLACE_DUP2=1 |
| 72 | if test $ac_cv_func_dup2 = yes; then | 71 | fi |
| 73 | REPLACE_DUP2=1 | 72 | ]) |
| 74 | fi | ||
| 75 | AC_LIBOBJ([dup2]) | ||
| 76 | ]) | 73 | ]) |
diff --git a/m4/gl-comp.m4 b/m4/gl-comp.m4 index bdeccfd31fa..becf95bef71 100644 --- a/m4/gl-comp.m4 +++ b/m4/gl-comp.m4 | |||
| @@ -47,6 +47,7 @@ AC_DEFUN([gl_EARLY], | |||
| 47 | # Code from module include_next: | 47 | # Code from module include_next: |
| 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 lstat: | 51 | # Code from module lstat: |
| 51 | # Code from module mktime: | 52 | # Code from module mktime: |
| 52 | # Code from module multiarch: | 53 | # Code from module multiarch: |
| @@ -111,6 +112,9 @@ gl_SHA256 | |||
| 111 | gl_SHA512 | 112 | gl_SHA512 |
| 112 | AC_REQUIRE([gl_C99_STRTOLD]) | 113 | AC_REQUIRE([gl_C99_STRTOLD]) |
| 113 | gl_FUNC_DUP2 | 114 | gl_FUNC_DUP2 |
| 115 | if test $HAVE_DUP2 = 0 || test $REPLACE_DUP2 = 1; then | ||
| 116 | AC_LIBOBJ([dup2]) | ||
| 117 | fi | ||
| 114 | gl_UNISTD_MODULE_INDICATOR([dup2]) | 118 | gl_UNISTD_MODULE_INDICATOR([dup2]) |
| 115 | gl_FILEMODE | 119 | gl_FILEMODE |
| 116 | gl_GETLOADAVG | 120 | gl_GETLOADAVG |
| @@ -527,6 +531,7 @@ AC_DEFUN([gl_FILE_LIST], [ | |||
| 527 | m4/gnulib-common.m4 | 531 | m4/gnulib-common.m4 |
| 528 | m4/include_next.m4 | 532 | m4/include_next.m4 |
| 529 | m4/inttypes.m4 | 533 | m4/inttypes.m4 |
| 534 | m4/largefile.m4 | ||
| 530 | m4/longlong.m4 | 535 | m4/longlong.m4 |
| 531 | m4/lstat.m4 | 536 | m4/lstat.m4 |
| 532 | m4/md5.m4 | 537 | m4/md5.m4 |
diff --git a/m4/include_next.m4 b/m4/include_next.m4 index b3c78491855..ebf081a1101 100644 --- a/m4/include_next.m4 +++ b/m4/include_next.m4 | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | # include_next.m4 serial 18 | 1 | # include_next.m4 serial 20 |
| 2 | dnl Copyright (C) 2006-2011 Free Software Foundation, Inc. | 2 | dnl Copyright (C) 2006-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, |
| @@ -175,11 +175,13 @@ AC_DEFUN([gl_NEXT_HEADERS_INTERNAL], | |||
| 175 | [AC_CHECK_HEADERS_ONCE([$1]) | 175 | [AC_CHECK_HEADERS_ONCE([$1]) |
| 176 | ]) | 176 | ]) |
| 177 | 177 | ||
| 178 | dnl FIXME: gl_next_header and gl_header_exists must be used unquoted | ||
| 179 | dnl until we can assume autoconf 2.64 or newer. | ||
| 178 | m4_foreach_w([gl_HEADER_NAME], [$1], | 180 | m4_foreach_w([gl_HEADER_NAME], [$1], |
| 179 | [AS_VAR_PUSHDEF([gl_next_header], | 181 | [AS_VAR_PUSHDEF([gl_next_header], |
| 180 | [gl_cv_next_]m4_defn([gl_HEADER_NAME])) | 182 | [gl_cv_next_]m4_defn([gl_HEADER_NAME])) |
| 181 | if test $gl_cv_have_include_next = yes; then | 183 | if test $gl_cv_have_include_next = yes; then |
| 182 | AS_VAR_SET([gl_next_header], ['<'gl_HEADER_NAME'>']) | 184 | AS_VAR_SET(gl_next_header, ['<'gl_HEADER_NAME'>']) |
| 183 | else | 185 | else |
| 184 | AC_CACHE_CHECK( | 186 | AC_CACHE_CHECK( |
| 185 | [absolute name of <]m4_defn([gl_HEADER_NAME])[>], | 187 | [absolute name of <]m4_defn([gl_HEADER_NAME])[>], |
| @@ -208,7 +210,7 @@ AC_DEFUN([gl_NEXT_HEADERS_INTERNAL], | |||
| 208 | dnl eval is necessary to expand gl_absname_cpp. | 210 | dnl eval is necessary to expand gl_absname_cpp. |
| 209 | dnl Ultrix and Pyramid sh refuse to redirect output of eval, | 211 | dnl Ultrix and Pyramid sh refuse to redirect output of eval, |
| 210 | dnl so use subshell. | 212 | dnl so use subshell. |
| 211 | AS_VAR_SET([gl_next_header], | 213 | AS_VAR_SET(gl_next_header, |
| 212 | ['"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&AS_MESSAGE_LOG_FD | | 214 | ['"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&AS_MESSAGE_LOG_FD | |
| 213 | sed -n '\#/]m4_defn([gl_HEADER_NAME])[#{ | 215 | sed -n '\#/]m4_defn([gl_HEADER_NAME])[#{ |
| 214 | s#.*"\(.*/]m4_defn([gl_HEADER_NAME])[\)".*#\1# | 216 | s#.*"\(.*/]m4_defn([gl_HEADER_NAME])[\)".*#\1# |
| @@ -218,20 +220,20 @@ AC_DEFUN([gl_NEXT_HEADERS_INTERNAL], | |||
| 218 | }'`'"']) | 220 | }'`'"']) |
| 219 | m4_if([$2], [check], | 221 | m4_if([$2], [check], |
| 220 | [else | 222 | [else |
| 221 | AS_VAR_SET([gl_next_header], ['<'gl_HEADER_NAME'>']) | 223 | AS_VAR_SET(gl_next_header, ['<'gl_HEADER_NAME'>']) |
| 222 | fi | 224 | fi |
| 223 | ]) | 225 | ]) |
| 224 | ]) | 226 | ]) |
| 225 | fi | 227 | fi |
| 226 | AC_SUBST( | 228 | AC_SUBST( |
| 227 | AS_TR_CPP([NEXT_]m4_defn([gl_HEADER_NAME])), | 229 | AS_TR_CPP([NEXT_]m4_defn([gl_HEADER_NAME])), |
| 228 | [AS_VAR_GET([gl_next_header])]) | 230 | [AS_VAR_GET(gl_next_header)]) |
| 229 | if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then | 231 | if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then |
| 230 | # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next' | 232 | # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next' |
| 231 | gl_next_as_first_directive='<'gl_HEADER_NAME'>' | 233 | gl_next_as_first_directive='<'gl_HEADER_NAME'>' |
| 232 | else | 234 | else |
| 233 | # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include' | 235 | # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include' |
| 234 | gl_next_as_first_directive=AS_VAR_GET([gl_next_header]) | 236 | gl_next_as_first_directive=AS_VAR_GET(gl_next_header) |
| 235 | fi | 237 | fi |
| 236 | AC_SUBST( | 238 | AC_SUBST( |
| 237 | AS_TR_CPP([NEXT_AS_FIRST_DIRECTIVE_]m4_defn([gl_HEADER_NAME])), | 239 | AS_TR_CPP([NEXT_AS_FIRST_DIRECTIVE_]m4_defn([gl_HEADER_NAME])), |