diff options
| author | Vibhav Pant | 2020-08-21 14:04:35 +0530 |
|---|---|---|
| committer | Vibhav Pant | 2020-08-21 14:04:35 +0530 |
| commit | f0f8d7b82492e741950c363a03b886965c91b1b0 (patch) | |
| tree | 19b716830b1ebabc0d7d75949c4e6800c0f104ad /m4/include_next.m4 | |
| parent | 9e64a087c4d167e7ec1c4e22bea3e6af53b563de (diff) | |
| parent | c818c29771d3cb51875643b2f6c894073e429dd2 (diff) | |
| download | emacs-feature/native-comp-macos-fixes.tar.gz emacs-feature/native-comp-macos-fixes.zip | |
Merge branch 'feature/native-comp' into feature/native-comp-macos-fixesfeature/native-comp-macos-fixes
Diffstat (limited to 'm4/include_next.m4')
| -rw-r--r-- | m4/include_next.m4 | 18 |
1 files changed, 8 insertions, 10 deletions
diff --git a/m4/include_next.m4 b/m4/include_next.m4 index 9009e293b53..33601aa3b43 100644 --- a/m4/include_next.m4 +++ b/m4/include_next.m4 | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | # include_next.m4 serial 24 | 1 | # include_next.m4 serial 25 |
| 2 | dnl Copyright (C) 2006-2020 Free Software Foundation, Inc. | 2 | dnl Copyright (C) 2006-2020 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, |
| @@ -176,42 +176,40 @@ AC_DEFUN([gl_NEXT_HEADERS_INTERNAL], | |||
| 176 | [AC_CHECK_HEADERS_ONCE([$1]) | 176 | [AC_CHECK_HEADERS_ONCE([$1]) |
| 177 | ]) | 177 | ]) |
| 178 | 178 | ||
| 179 | dnl FIXME: gl_next_header and gl_header_exists must be used unquoted | ||
| 180 | dnl until we can assume autoconf 2.64 or newer. | ||
| 181 | m4_foreach_w([gl_HEADER_NAME], [$1], | 179 | m4_foreach_w([gl_HEADER_NAME], [$1], |
| 182 | [AS_VAR_PUSHDEF([gl_next_header], | 180 | [AS_VAR_PUSHDEF([gl_next_header], |
| 183 | [gl_cv_next_]m4_defn([gl_HEADER_NAME])) | 181 | [gl_cv_next_]m4_defn([gl_HEADER_NAME])) |
| 184 | if test $gl_cv_have_include_next = yes; then | 182 | if test $gl_cv_have_include_next = yes; then |
| 185 | AS_VAR_SET(gl_next_header, ['<'gl_HEADER_NAME'>']) | 183 | AS_VAR_SET([gl_next_header], ['<'gl_HEADER_NAME'>']) |
| 186 | else | 184 | else |
| 187 | AC_CACHE_CHECK( | 185 | AC_CACHE_CHECK( |
| 188 | [absolute name of <]m4_defn([gl_HEADER_NAME])[>], | 186 | [absolute name of <]m4_defn([gl_HEADER_NAME])[>], |
| 189 | m4_defn([gl_next_header]), | 187 | [gl_next_header], |
| 190 | [m4_if([$2], [check], | 188 | [m4_if([$2], [check], |
| 191 | [AS_VAR_PUSHDEF([gl_header_exists], | 189 | [AS_VAR_PUSHDEF([gl_header_exists], |
| 192 | [ac_cv_header_]m4_defn([gl_HEADER_NAME])) | 190 | [ac_cv_header_]m4_defn([gl_HEADER_NAME])) |
| 193 | if test AS_VAR_GET(gl_header_exists) = yes; then | 191 | if test AS_VAR_GET([gl_header_exists]) = yes; then |
| 194 | AS_VAR_POPDEF([gl_header_exists]) | 192 | AS_VAR_POPDEF([gl_header_exists]) |
| 195 | ]) | 193 | ]) |
| 196 | gl_ABSOLUTE_HEADER_ONE(gl_HEADER_NAME) | 194 | gl_ABSOLUTE_HEADER_ONE(gl_HEADER_NAME) |
| 197 | AS_VAR_COPY([gl_header], [gl_cv_absolute_]AS_TR_SH(gl_HEADER_NAME)) | 195 | AS_VAR_COPY([gl_header], [gl_cv_absolute_]AS_TR_SH(gl_HEADER_NAME)) |
| 198 | AS_VAR_SET(gl_next_header, ['"'$gl_header'"']) | 196 | AS_VAR_SET([gl_next_header], ['"'$gl_header'"']) |
| 199 | m4_if([$2], [check], | 197 | m4_if([$2], [check], |
| 200 | [else | 198 | [else |
| 201 | AS_VAR_SET(gl_next_header, ['<'gl_HEADER_NAME'>']) | 199 | AS_VAR_SET([gl_next_header], ['<'gl_HEADER_NAME'>']) |
| 202 | fi | 200 | fi |
| 203 | ]) | 201 | ]) |
| 204 | ]) | 202 | ]) |
| 205 | fi | 203 | fi |
| 206 | AC_SUBST( | 204 | AC_SUBST( |
| 207 | AS_TR_CPP([NEXT_]m4_defn([gl_HEADER_NAME])), | 205 | AS_TR_CPP([NEXT_]m4_defn([gl_HEADER_NAME])), |
| 208 | [AS_VAR_GET(gl_next_header)]) | 206 | [AS_VAR_GET([gl_next_header])]) |
| 209 | if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then | 207 | if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then |
| 210 | # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next' | 208 | # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next' |
| 211 | gl_next_as_first_directive='<'gl_HEADER_NAME'>' | 209 | gl_next_as_first_directive='<'gl_HEADER_NAME'>' |
| 212 | else | 210 | else |
| 213 | # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include' | 211 | # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include' |
| 214 | gl_next_as_first_directive=AS_VAR_GET(gl_next_header) | 212 | gl_next_as_first_directive=AS_VAR_GET([gl_next_header]) |
| 215 | fi | 213 | fi |
| 216 | AC_SUBST( | 214 | AC_SUBST( |
| 217 | AS_TR_CPP([NEXT_AS_FIRST_DIRECTIVE_]m4_defn([gl_HEADER_NAME])), | 215 | AS_TR_CPP([NEXT_AS_FIRST_DIRECTIVE_]m4_defn([gl_HEADER_NAME])), |