annotate m4/include_next.m4 @ 441:7b8d89435f30 3.0

Fixed error with forced size pcr operands
author lost@l-w.ca
date Sat, 30 Oct 2010 11:51:25 -0600
parents b8bf63962a99
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
434
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
1 # include_next.m4 serial 14
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
2 dnl Copyright (C) 2006-2010 Free Software Foundation, Inc.
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
3 dnl This file is free software; the Free Software Foundation
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
4 dnl gives unlimited permission to copy and/or distribute it,
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
5 dnl with or without modifications, as long as this notice is preserved.
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
6
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
7 dnl From Paul Eggert and Derek Price.
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
8
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
9 dnl Sets INCLUDE_NEXT and PRAGMA_SYSTEM_HEADER.
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
10 dnl
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
11 dnl INCLUDE_NEXT expands to 'include_next' if the compiler supports it, or to
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
12 dnl 'include' otherwise.
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
13 dnl
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
14 dnl INCLUDE_NEXT_AS_FIRST_DIRECTIVE expands to 'include_next' if the compiler
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
15 dnl supports it in the special case that it is the first include directive in
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
16 dnl the given file, or to 'include' otherwise.
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
17 dnl
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
18 dnl PRAGMA_SYSTEM_HEADER can be used in files that contain #include_next,
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
19 dnl so as to avoid GCC warnings when the gcc option -pedantic is used.
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
20 dnl '#pragma GCC system_header' has the same effect as if the file was found
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
21 dnl through the include search path specified with '-isystem' options (as
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
22 dnl opposed to the search path specified with '-I' options). Namely, gcc
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
23 dnl does not warn about some things, and on some systems (Solaris and Interix)
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
24 dnl __STDC__ evaluates to 0 instead of to 1. The latter is an undesired side
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
25 dnl effect; we are therefore careful to use 'defined __STDC__' or '1' instead
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
26 dnl of plain '__STDC__'.
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
27
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
28 AC_DEFUN([gl_INCLUDE_NEXT],
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
29 [
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
30 AC_LANG_PREPROC_REQUIRE()
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
31 AC_CACHE_CHECK([whether the preprocessor supports include_next],
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
32 [gl_cv_have_include_next],
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
33 [rm -rf conftestd1a conftestd1b conftestd2
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
34 mkdir conftestd1a conftestd1b conftestd2
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
35 dnl IBM C 9.0, 10.1 (original versions, prior to the 2009-01 updates) on
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
36 dnl AIX 6.1 support include_next when used as first preprocessor directive
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
37 dnl in a file, but not when preceded by another include directive. Check
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
38 dnl for this bug by including <stdio.h>.
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
39 dnl Additionally, with this same compiler, include_next is a no-op when
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
40 dnl used in a header file that was included by specifying its absolute
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
41 dnl file name. Despite these two bugs, include_next is used in the
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
42 dnl compiler's <math.h>. By virtue of the second bug, we need to use
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
43 dnl include_next as well in this case.
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
44 cat <<EOF > conftestd1a/conftest.h
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
45 #define DEFINED_IN_CONFTESTD1
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
46 #include_next <conftest.h>
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
47 #ifdef DEFINED_IN_CONFTESTD2
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
48 int foo;
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
49 #else
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
50 #error "include_next doesn't work"
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
51 #endif
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
52 EOF
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
53 cat <<EOF > conftestd1b/conftest.h
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
54 #define DEFINED_IN_CONFTESTD1
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
55 #include <stdio.h>
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
56 #include_next <conftest.h>
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
57 #ifdef DEFINED_IN_CONFTESTD2
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
58 int foo;
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
59 #else
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
60 #error "include_next doesn't work"
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
61 #endif
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
62 EOF
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
63 cat <<EOF > conftestd2/conftest.h
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
64 #ifndef DEFINED_IN_CONFTESTD1
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
65 #error "include_next test doesn't work"
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
66 #endif
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
67 #define DEFINED_IN_CONFTESTD2
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
68 EOF
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
69 gl_save_CPPFLAGS="$CPPFLAGS"
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
70 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1b -Iconftestd2"
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
71 AC_COMPILE_IFELSE([#include <conftest.h>],
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
72 [gl_cv_have_include_next=yes],
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
73 [CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1a -Iconftestd2"
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
74 AC_COMPILE_IFELSE([#include <conftest.h>],
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
75 [gl_cv_have_include_next=buggy],
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
76 [gl_cv_have_include_next=no])
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
77 ])
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
78 CPPFLAGS="$gl_save_CPPFLAGS"
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
79 rm -rf conftestd1a conftestd1b conftestd2
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
80 ])
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
81 PRAGMA_SYSTEM_HEADER=
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
82 if test $gl_cv_have_include_next = yes; then
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
83 INCLUDE_NEXT=include_next
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
84 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
85 if test -n "$GCC"; then
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
86 PRAGMA_SYSTEM_HEADER='#pragma GCC system_header'
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
87 fi
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
88 else
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
89 if test $gl_cv_have_include_next = buggy; then
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
90 INCLUDE_NEXT=include
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
91 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
92 else
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
93 INCLUDE_NEXT=include
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
94 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
95 fi
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
96 fi
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
97 AC_SUBST([INCLUDE_NEXT])
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
98 AC_SUBST([INCLUDE_NEXT_AS_FIRST_DIRECTIVE])
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
99 AC_SUBST([PRAGMA_SYSTEM_HEADER])
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
100 ])
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
101
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
102 # gl_CHECK_NEXT_HEADERS(HEADER1 HEADER2 ...)
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
103 # ------------------------------------------
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
104 # For each arg foo.h, if #include_next works, define NEXT_FOO_H to be
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
105 # '<foo.h>'; otherwise define it to be
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
106 # '"///usr/include/foo.h"', or whatever other absolute file name is suitable.
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
107 # Also, if #include_next works as first preprocessing directive in a file,
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
108 # define NEXT_AS_FIRST_DIRECTIVE_FOO_H to be '<foo.h>'; otherwise define it to
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
109 # be
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
110 # '"///usr/include/foo.h"', or whatever other absolute file name is suitable.
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
111 # That way, a header file with the following line:
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
112 # #@INCLUDE_NEXT@ @NEXT_FOO_H@
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
113 # or
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
114 # #@INCLUDE_NEXT_AS_FIRST_DIRECTIVE@ @NEXT_AS_FIRST_DIRECTIVE_FOO_H@
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
115 # behaves (after sed substitution) as if it contained
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
116 # #include_next <foo.h>
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
117 # even if the compiler does not support include_next.
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
118 # The three "///" are to pacify Sun C 5.8, which otherwise would say
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
119 # "warning: #include of /usr/include/... may be non-portable".
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
120 # Use `""', not `<>', so that the /// cannot be confused with a C99 comment.
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
121 # Note: This macro assumes that the header file is not empty after
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
122 # preprocessing, i.e. it does not only define preprocessor macros but also
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
123 # provides some type/enum definitions or function/variable declarations.
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
124 AC_DEFUN([gl_CHECK_NEXT_HEADERS],
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
125 [
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
126 AC_REQUIRE([gl_INCLUDE_NEXT])
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
127 AC_REQUIRE([AC_CANONICAL_HOST])
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
128 AC_CHECK_HEADERS_ONCE([$1])
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
129
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
130 m4_foreach_w([gl_HEADER_NAME], [$1],
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
131 [AS_VAR_PUSHDEF([gl_next_header],
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
132 [gl_cv_next_]m4_defn([gl_HEADER_NAME]))
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
133 if test $gl_cv_have_include_next = yes; then
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
134 AS_VAR_SET([gl_next_header], ['<'gl_HEADER_NAME'>'])
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
135 else
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
136 AC_CACHE_CHECK(
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
137 [absolute name of <]m4_defn([gl_HEADER_NAME])[>],
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
138 m4_defn([gl_next_header]),
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
139 [AS_VAR_PUSHDEF([gl_header_exists],
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
140 [ac_cv_header_]m4_defn([gl_HEADER_NAME]))
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
141 if test AS_VAR_GET(gl_header_exists) = yes; then
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
142 AC_LANG_CONFTEST(
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
143 [AC_LANG_SOURCE(
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
144 [[#include <]]m4_dquote(m4_defn([gl_HEADER_NAME]))[[>]]
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
145 )])
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
146 dnl AIX "xlc -E" and "cc -E" omit #line directives for header files
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
147 dnl that contain only a #include of other header files and no
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
148 dnl non-comment tokens of their own. This leads to a failure to
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
149 dnl detect the absolute name of <dirent.h>, <signal.h>, <poll.h>
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
150 dnl and others. The workaround is to force preservation of comments
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
151 dnl through option -C. This ensures all necessary #line directives
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
152 dnl are present. GCC supports option -C as well.
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
153 case "$host_os" in
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
154 aix*) gl_absname_cpp="$ac_cpp -C" ;;
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
155 *) gl_absname_cpp="$ac_cpp" ;;
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
156 esac
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
157 dnl eval is necessary to expand gl_absname_cpp.
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
158 dnl Ultrix and Pyramid sh refuse to redirect output of eval,
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
159 dnl so use subshell.
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
160 AS_VAR_SET([gl_next_header],
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
161 ['"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&AS_MESSAGE_LOG_FD |
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
162 sed -n '\#/]m4_defn([gl_HEADER_NAME])[#{
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
163 s#.*"\(.*/]m4_defn([gl_HEADER_NAME])[\)".*#\1#
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
164 s#^/[^/]#//&#
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
165 p
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
166 q
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
167 }'`'"'])
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
168 else
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
169 AS_VAR_SET([gl_next_header], ['<'gl_HEADER_NAME'>'])
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
170 fi
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
171 AS_VAR_POPDEF([gl_header_exists])])
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
172 fi
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
173 AC_SUBST(
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
174 AS_TR_CPP([NEXT_]m4_defn([gl_HEADER_NAME])),
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
175 [AS_VAR_GET([gl_next_header])])
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
176 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
177 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
178 gl_next_as_first_directive='<'gl_HEADER_NAME'>'
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
179 else
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
180 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
181 gl_next_as_first_directive=AS_VAR_GET([gl_next_header])
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
182 fi
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
183 AC_SUBST(
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
184 AS_TR_CPP([NEXT_AS_FIRST_DIRECTIVE_]m4_defn([gl_HEADER_NAME])),
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
185 [$gl_next_as_first_directive])
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
186 AS_VAR_POPDEF([gl_next_header])])
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
187 ])