1 |
commit: 24c0098b3bd3b118774b6915c4eb217063dc4376 |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Feb 19 05:50:18 2018 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Feb 19 05:50:18 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/sandbox.git/commit/?id=24c0098b |
7 |
|
8 |
Update autotools files |
9 |
|
10 |
INSTALL | 320 ++++++++++++++++++------------------ |
11 |
m4/ax_append_compile_flags.m4 | 16 +- |
12 |
m4/ax_append_flag.m4 | 8 +- |
13 |
m4/ax_append_link_flags.m4 | 12 +- |
14 |
m4/ax_cflags_force_c89.m4 | 6 +- |
15 |
m4/ax_cflags_no_writable_strings.m4 | 10 +- |
16 |
m4/ax_cflags_strict_prototypes.m4 | 14 +- |
17 |
m4/ax_cflags_warn_all.m4 | 6 +- |
18 |
m4/ax_check_compile_flag.m4 | 6 +- |
19 |
m4/ax_check_link_flag.m4 | 6 +- |
20 |
m4/ax_compiler_flags.m4 | 6 +- |
21 |
m4/ax_compiler_flags_cflags.m4 | 24 ++- |
22 |
m4/ax_compiler_flags_cxxflags.m4 | 24 ++- |
23 |
m4/ax_compiler_flags_gir.m4 | 6 +- |
24 |
m4/ax_compiler_flags_ldflags.m4 | 41 +++-- |
25 |
m4/ax_require_defined.m4 | 4 +- |
26 |
16 files changed, 272 insertions(+), 237 deletions(-) |
27 |
|
28 |
diff --git a/INSTALL b/INSTALL |
29 |
index 2099840..8865734 100644 |
30 |
--- a/INSTALL |
31 |
+++ b/INSTALL |
32 |
@@ -1,8 +1,8 @@ |
33 |
Installation Instructions |
34 |
************************* |
35 |
|
36 |
-Copyright (C) 1994-1996, 1999-2002, 2004-2013 Free Software Foundation, |
37 |
-Inc. |
38 |
+ Copyright (C) 1994-1996, 1999-2002, 2004-2016 Free Software |
39 |
+Foundation, Inc. |
40 |
|
41 |
Copying and distribution of this file, with or without modification, |
42 |
are permitted in any medium without royalty provided the copyright |
43 |
@@ -12,97 +12,96 @@ without warranty of any kind. |
44 |
Basic Installation |
45 |
================== |
46 |
|
47 |
- Briefly, the shell command `./configure && make && make install' |
48 |
+ Briefly, the shell command './configure && make && make install' |
49 |
should configure, build, and install this package. The following |
50 |
-more-detailed instructions are generic; see the `README' file for |
51 |
+more-detailed instructions are generic; see the 'README' file for |
52 |
instructions specific to this package. Some packages provide this |
53 |
-`INSTALL' file but do not implement all of the features documented |
54 |
+'INSTALL' file but do not implement all of the features documented |
55 |
below. The lack of an optional feature in a given package is not |
56 |
necessarily a bug. More recommendations for GNU packages can be found |
57 |
in *note Makefile Conventions: (standards)Makefile Conventions. |
58 |
|
59 |
- The `configure' shell script attempts to guess correct values for |
60 |
+ The 'configure' shell script attempts to guess correct values for |
61 |
various system-dependent variables used during compilation. It uses |
62 |
-those values to create a `Makefile' in each directory of the package. |
63 |
-It may also create one or more `.h' files containing system-dependent |
64 |
-definitions. Finally, it creates a shell script `config.status' that |
65 |
+those values to create a 'Makefile' in each directory of the package. |
66 |
+It may also create one or more '.h' files containing system-dependent |
67 |
+definitions. Finally, it creates a shell script 'config.status' that |
68 |
you can run in the future to recreate the current configuration, and a |
69 |
-file `config.log' containing compiler output (useful mainly for |
70 |
-debugging `configure'). |
71 |
+file 'config.log' containing compiler output (useful mainly for |
72 |
+debugging 'configure'). |
73 |
|
74 |
- It can also use an optional file (typically called `config.cache' |
75 |
-and enabled with `--cache-file=config.cache' or simply `-C') that saves |
76 |
-the results of its tests to speed up reconfiguring. Caching is |
77 |
-disabled by default to prevent problems with accidental use of stale |
78 |
-cache files. |
79 |
+ It can also use an optional file (typically called 'config.cache' and |
80 |
+enabled with '--cache-file=config.cache' or simply '-C') that saves the |
81 |
+results of its tests to speed up reconfiguring. Caching is disabled by |
82 |
+default to prevent problems with accidental use of stale cache files. |
83 |
|
84 |
If you need to do unusual things to compile the package, please try |
85 |
-to figure out how `configure' could check whether to do them, and mail |
86 |
-diffs or instructions to the address given in the `README' so they can |
87 |
+to figure out how 'configure' could check whether to do them, and mail |
88 |
+diffs or instructions to the address given in the 'README' so they can |
89 |
be considered for the next release. If you are using the cache, and at |
90 |
-some point `config.cache' contains results you don't want to keep, you |
91 |
+some point 'config.cache' contains results you don't want to keep, you |
92 |
may remove or edit it. |
93 |
|
94 |
- The file `configure.ac' (or `configure.in') is used to create |
95 |
-`configure' by a program called `autoconf'. You need `configure.ac' if |
96 |
-you want to change it or regenerate `configure' using a newer version |
97 |
-of `autoconf'. |
98 |
+ The file 'configure.ac' (or 'configure.in') is used to create |
99 |
+'configure' by a program called 'autoconf'. You need 'configure.ac' if |
100 |
+you want to change it or regenerate 'configure' using a newer version of |
101 |
+'autoconf'. |
102 |
|
103 |
The simplest way to compile this package is: |
104 |
|
105 |
- 1. `cd' to the directory containing the package's source code and type |
106 |
- `./configure' to configure the package for your system. |
107 |
+ 1. 'cd' to the directory containing the package's source code and type |
108 |
+ './configure' to configure the package for your system. |
109 |
|
110 |
- Running `configure' might take a while. While running, it prints |
111 |
+ Running 'configure' might take a while. While running, it prints |
112 |
some messages telling which features it is checking for. |
113 |
|
114 |
- 2. Type `make' to compile the package. |
115 |
+ 2. Type 'make' to compile the package. |
116 |
|
117 |
- 3. Optionally, type `make check' to run any self-tests that come with |
118 |
+ 3. Optionally, type 'make check' to run any self-tests that come with |
119 |
the package, generally using the just-built uninstalled binaries. |
120 |
|
121 |
- 4. Type `make install' to install the programs and any data files and |
122 |
+ 4. Type 'make install' to install the programs and any data files and |
123 |
documentation. When installing into a prefix owned by root, it is |
124 |
recommended that the package be configured and built as a regular |
125 |
- user, and only the `make install' phase executed with root |
126 |
+ user, and only the 'make install' phase executed with root |
127 |
privileges. |
128 |
|
129 |
- 5. Optionally, type `make installcheck' to repeat any self-tests, but |
130 |
+ 5. Optionally, type 'make installcheck' to repeat any self-tests, but |
131 |
this time using the binaries in their final installed location. |
132 |
This target does not install anything. Running this target as a |
133 |
- regular user, particularly if the prior `make install' required |
134 |
+ regular user, particularly if the prior 'make install' required |
135 |
root privileges, verifies that the installation completed |
136 |
correctly. |
137 |
|
138 |
6. You can remove the program binaries and object files from the |
139 |
- source code directory by typing `make clean'. To also remove the |
140 |
- files that `configure' created (so you can compile the package for |
141 |
- a different kind of computer), type `make distclean'. There is |
142 |
- also a `make maintainer-clean' target, but that is intended mainly |
143 |
+ source code directory by typing 'make clean'. To also remove the |
144 |
+ files that 'configure' created (so you can compile the package for |
145 |
+ a different kind of computer), type 'make distclean'. There is |
146 |
+ also a 'make maintainer-clean' target, but that is intended mainly |
147 |
for the package's developers. If you use it, you may have to get |
148 |
all sorts of other programs in order to regenerate files that came |
149 |
with the distribution. |
150 |
|
151 |
- 7. Often, you can also type `make uninstall' to remove the installed |
152 |
+ 7. Often, you can also type 'make uninstall' to remove the installed |
153 |
files again. In practice, not all packages have tested that |
154 |
uninstallation works correctly, even though it is required by the |
155 |
GNU Coding Standards. |
156 |
|
157 |
- 8. Some packages, particularly those that use Automake, provide `make |
158 |
+ 8. Some packages, particularly those that use Automake, provide 'make |
159 |
distcheck', which can by used by developers to test that all other |
160 |
- targets like `make install' and `make uninstall' work correctly. |
161 |
+ targets like 'make install' and 'make uninstall' work correctly. |
162 |
This target is generally not run by end users. |
163 |
|
164 |
Compilers and Options |
165 |
===================== |
166 |
|
167 |
Some systems require unusual options for compilation or linking that |
168 |
-the `configure' script does not know about. Run `./configure --help' |
169 |
+the 'configure' script does not know about. Run './configure --help' |
170 |
for details on some of the pertinent environment variables. |
171 |
|
172 |
- You can give `configure' initial values for configuration parameters |
173 |
-by setting variables in the command line or in the environment. Here |
174 |
-is an example: |
175 |
+ You can give 'configure' initial values for configuration parameters |
176 |
+by setting variables in the command line or in the environment. Here is |
177 |
+an example: |
178 |
|
179 |
./configure CC=c99 CFLAGS=-g LIBS=-lposix |
180 |
|
181 |
@@ -113,21 +112,21 @@ Compiling For Multiple Architectures |
182 |
|
183 |
You can compile the package for more than one kind of computer at the |
184 |
same time, by placing the object files for each architecture in their |
185 |
-own directory. To do this, you can use GNU `make'. `cd' to the |
186 |
+own directory. To do this, you can use GNU 'make'. 'cd' to the |
187 |
directory where you want the object files and executables to go and run |
188 |
-the `configure' script. `configure' automatically checks for the |
189 |
-source code in the directory that `configure' is in and in `..'. This |
190 |
-is known as a "VPATH" build. |
191 |
+the 'configure' script. 'configure' automatically checks for the source |
192 |
+code in the directory that 'configure' is in and in '..'. This is known |
193 |
+as a "VPATH" build. |
194 |
|
195 |
- With a non-GNU `make', it is safer to compile the package for one |
196 |
+ With a non-GNU 'make', it is safer to compile the package for one |
197 |
architecture at a time in the source code directory. After you have |
198 |
-installed the package for one architecture, use `make distclean' before |
199 |
+installed the package for one architecture, use 'make distclean' before |
200 |
reconfiguring for another architecture. |
201 |
|
202 |
On MacOS X 10.5 and later systems, you can create libraries and |
203 |
executables that work on multiple system types--known as "fat" or |
204 |
-"universal" binaries--by specifying multiple `-arch' options to the |
205 |
-compiler but only a single `-arch' option to the preprocessor. Like |
206 |
+"universal" binaries--by specifying multiple '-arch' options to the |
207 |
+compiler but only a single '-arch' option to the preprocessor. Like |
208 |
this: |
209 |
|
210 |
./configure CC="gcc -arch i386 -arch x86_64 -arch ppc -arch ppc64" \ |
211 |
@@ -136,105 +135,104 @@ this: |
212 |
|
213 |
This is not guaranteed to produce working output in all cases, you |
214 |
may have to build one architecture at a time and combine the results |
215 |
-using the `lipo' tool if you have problems. |
216 |
+using the 'lipo' tool if you have problems. |
217 |
|
218 |
Installation Names |
219 |
================== |
220 |
|
221 |
- By default, `make install' installs the package's commands under |
222 |
-`/usr/local/bin', include files under `/usr/local/include', etc. You |
223 |
-can specify an installation prefix other than `/usr/local' by giving |
224 |
-`configure' the option `--prefix=PREFIX', where PREFIX must be an |
225 |
+ By default, 'make install' installs the package's commands under |
226 |
+'/usr/local/bin', include files under '/usr/local/include', etc. You |
227 |
+can specify an installation prefix other than '/usr/local' by giving |
228 |
+'configure' the option '--prefix=PREFIX', where PREFIX must be an |
229 |
absolute file name. |
230 |
|
231 |
You can specify separate installation prefixes for |
232 |
architecture-specific files and architecture-independent files. If you |
233 |
-pass the option `--exec-prefix=PREFIX' to `configure', the package uses |
234 |
+pass the option '--exec-prefix=PREFIX' to 'configure', the package uses |
235 |
PREFIX as the prefix for installing programs and libraries. |
236 |
Documentation and other data files still use the regular prefix. |
237 |
|
238 |
In addition, if you use an unusual directory layout you can give |
239 |
-options like `--bindir=DIR' to specify different values for particular |
240 |
-kinds of files. Run `configure --help' for a list of the directories |
241 |
-you can set and what kinds of files go in them. In general, the |
242 |
-default for these options is expressed in terms of `${prefix}', so that |
243 |
-specifying just `--prefix' will affect all of the other directory |
244 |
+options like '--bindir=DIR' to specify different values for particular |
245 |
+kinds of files. Run 'configure --help' for a list of the directories |
246 |
+you can set and what kinds of files go in them. In general, the default |
247 |
+for these options is expressed in terms of '${prefix}', so that |
248 |
+specifying just '--prefix' will affect all of the other directory |
249 |
specifications that were not explicitly provided. |
250 |
|
251 |
The most portable way to affect installation locations is to pass the |
252 |
-correct locations to `configure'; however, many packages provide one or |
253 |
+correct locations to 'configure'; however, many packages provide one or |
254 |
both of the following shortcuts of passing variable assignments to the |
255 |
-`make install' command line to change installation locations without |
256 |
+'make install' command line to change installation locations without |
257 |
having to reconfigure or recompile. |
258 |
|
259 |
The first method involves providing an override variable for each |
260 |
-affected directory. For example, `make install |
261 |
+affected directory. For example, 'make install |
262 |
prefix=/alternate/directory' will choose an alternate location for all |
263 |
directory configuration variables that were expressed in terms of |
264 |
-`${prefix}'. Any directories that were specified during `configure', |
265 |
-but not in terms of `${prefix}', must each be overridden at install |
266 |
-time for the entire installation to be relocated. The approach of |
267 |
-makefile variable overrides for each directory variable is required by |
268 |
-the GNU Coding Standards, and ideally causes no recompilation. |
269 |
-However, some platforms have known limitations with the semantics of |
270 |
-shared libraries that end up requiring recompilation when using this |
271 |
-method, particularly noticeable in packages that use GNU Libtool. |
272 |
- |
273 |
- The second method involves providing the `DESTDIR' variable. For |
274 |
-example, `make install DESTDIR=/alternate/directory' will prepend |
275 |
-`/alternate/directory' before all installation names. The approach of |
276 |
-`DESTDIR' overrides is not required by the GNU Coding Standards, and |
277 |
+'${prefix}'. Any directories that were specified during 'configure', |
278 |
+but not in terms of '${prefix}', must each be overridden at install time |
279 |
+for the entire installation to be relocated. The approach of makefile |
280 |
+variable overrides for each directory variable is required by the GNU |
281 |
+Coding Standards, and ideally causes no recompilation. However, some |
282 |
+platforms have known limitations with the semantics of shared libraries |
283 |
+that end up requiring recompilation when using this method, particularly |
284 |
+noticeable in packages that use GNU Libtool. |
285 |
+ |
286 |
+ The second method involves providing the 'DESTDIR' variable. For |
287 |
+example, 'make install DESTDIR=/alternate/directory' will prepend |
288 |
+'/alternate/directory' before all installation names. The approach of |
289 |
+'DESTDIR' overrides is not required by the GNU Coding Standards, and |
290 |
does not work on platforms that have drive letters. On the other hand, |
291 |
it does better at avoiding recompilation issues, and works well even |
292 |
-when some directory options were not specified in terms of `${prefix}' |
293 |
-at `configure' time. |
294 |
+when some directory options were not specified in terms of '${prefix}' |
295 |
+at 'configure' time. |
296 |
|
297 |
Optional Features |
298 |
================= |
299 |
|
300 |
If the package supports it, you can cause programs to be installed |
301 |
-with an extra prefix or suffix on their names by giving `configure' the |
302 |
-option `--program-prefix=PREFIX' or `--program-suffix=SUFFIX'. |
303 |
- |
304 |
- Some packages pay attention to `--enable-FEATURE' options to |
305 |
-`configure', where FEATURE indicates an optional part of the package. |
306 |
-They may also pay attention to `--with-PACKAGE' options, where PACKAGE |
307 |
-is something like `gnu-as' or `x' (for the X Window System). The |
308 |
-`README' should mention any `--enable-' and `--with-' options that the |
309 |
+with an extra prefix or suffix on their names by giving 'configure' the |
310 |
+option '--program-prefix=PREFIX' or '--program-suffix=SUFFIX'. |
311 |
+ |
312 |
+ Some packages pay attention to '--enable-FEATURE' options to |
313 |
+'configure', where FEATURE indicates an optional part of the package. |
314 |
+They may also pay attention to '--with-PACKAGE' options, where PACKAGE |
315 |
+is something like 'gnu-as' or 'x' (for the X Window System). The |
316 |
+'README' should mention any '--enable-' and '--with-' options that the |
317 |
package recognizes. |
318 |
|
319 |
- For packages that use the X Window System, `configure' can usually |
320 |
+ For packages that use the X Window System, 'configure' can usually |
321 |
find the X include and library files automatically, but if it doesn't, |
322 |
-you can use the `configure' options `--x-includes=DIR' and |
323 |
-`--x-libraries=DIR' to specify their locations. |
324 |
+you can use the 'configure' options '--x-includes=DIR' and |
325 |
+'--x-libraries=DIR' to specify their locations. |
326 |
|
327 |
Some packages offer the ability to configure how verbose the |
328 |
-execution of `make' will be. For these packages, running `./configure |
329 |
+execution of 'make' will be. For these packages, running './configure |
330 |
--enable-silent-rules' sets the default to minimal output, which can be |
331 |
-overridden with `make V=1'; while running `./configure |
332 |
+overridden with 'make V=1'; while running './configure |
333 |
--disable-silent-rules' sets the default to verbose, which can be |
334 |
-overridden with `make V=0'. |
335 |
+overridden with 'make V=0'. |
336 |
|
337 |
Particular systems |
338 |
================== |
339 |
|
340 |
- On HP-UX, the default C compiler is not ANSI C compatible. If GNU |
341 |
-CC is not installed, it is recommended to use the following options in |
342 |
+ On HP-UX, the default C compiler is not ANSI C compatible. If GNU CC |
343 |
+is not installed, it is recommended to use the following options in |
344 |
order to use an ANSI C compiler: |
345 |
|
346 |
./configure CC="cc -Ae -D_XOPEN_SOURCE=500" |
347 |
|
348 |
and if that doesn't work, install pre-built binaries of GCC for HP-UX. |
349 |
|
350 |
- HP-UX `make' updates targets which have the same time stamps as |
351 |
-their prerequisites, which makes it generally unusable when shipped |
352 |
-generated files such as `configure' are involved. Use GNU `make' |
353 |
-instead. |
354 |
+ HP-UX 'make' updates targets which have the same time stamps as their |
355 |
+prerequisites, which makes it generally unusable when shipped generated |
356 |
+files such as 'configure' are involved. Use GNU 'make' instead. |
357 |
|
358 |
On OSF/1 a.k.a. Tru64, some versions of the default C compiler cannot |
359 |
-parse its `<wchar.h>' header file. The option `-nodtk' can be used as |
360 |
-a workaround. If GNU CC is not installed, it is therefore recommended |
361 |
-to try |
362 |
+parse its '<wchar.h>' header file. The option '-nodtk' can be used as a |
363 |
+workaround. If GNU CC is not installed, it is therefore recommended to |
364 |
+try |
365 |
|
366 |
./configure CC="cc" |
367 |
|
368 |
@@ -242,26 +240,26 @@ and if that doesn't work, try |
369 |
|
370 |
./configure CC="cc -nodtk" |
371 |
|
372 |
- On Solaris, don't put `/usr/ucb' early in your `PATH'. This |
373 |
+ On Solaris, don't put '/usr/ucb' early in your 'PATH'. This |
374 |
directory contains several dysfunctional programs; working variants of |
375 |
-these programs are available in `/usr/bin'. So, if you need `/usr/ucb' |
376 |
-in your `PATH', put it _after_ `/usr/bin'. |
377 |
+these programs are available in '/usr/bin'. So, if you need '/usr/ucb' |
378 |
+in your 'PATH', put it _after_ '/usr/bin'. |
379 |
|
380 |
- On Haiku, software installed for all users goes in `/boot/common', |
381 |
-not `/usr/local'. It is recommended to use the following options: |
382 |
+ On Haiku, software installed for all users goes in '/boot/common', |
383 |
+not '/usr/local'. It is recommended to use the following options: |
384 |
|
385 |
./configure --prefix=/boot/common |
386 |
|
387 |
Specifying the System Type |
388 |
========================== |
389 |
|
390 |
- There may be some features `configure' cannot figure out |
391 |
+ There may be some features 'configure' cannot figure out |
392 |
automatically, but needs to determine by the type of machine the package |
393 |
will run on. Usually, assuming the package is built to be run on the |
394 |
-_same_ architectures, `configure' can figure that out, but if it prints |
395 |
+_same_ architectures, 'configure' can figure that out, but if it prints |
396 |
a message saying it cannot guess the machine type, give it the |
397 |
-`--build=TYPE' option. TYPE can either be a short name for the system |
398 |
-type, such as `sun4', or a canonical name which has the form: |
399 |
+'--build=TYPE' option. TYPE can either be a short name for the system |
400 |
+type, such as 'sun4', or a canonical name which has the form: |
401 |
|
402 |
CPU-COMPANY-SYSTEM |
403 |
|
404 |
@@ -270,101 +268,101 @@ where SYSTEM can have one of these forms: |
405 |
OS |
406 |
KERNEL-OS |
407 |
|
408 |
- See the file `config.sub' for the possible values of each field. If |
409 |
-`config.sub' isn't included in this package, then this package doesn't |
410 |
+ See the file 'config.sub' for the possible values of each field. If |
411 |
+'config.sub' isn't included in this package, then this package doesn't |
412 |
need to know the machine type. |
413 |
|
414 |
If you are _building_ compiler tools for cross-compiling, you should |
415 |
-use the option `--target=TYPE' to select the type of system they will |
416 |
+use the option '--target=TYPE' to select the type of system they will |
417 |
produce code for. |
418 |
|
419 |
If you want to _use_ a cross compiler, that generates code for a |
420 |
platform different from the build platform, you should specify the |
421 |
"host" platform (i.e., that on which the generated programs will |
422 |
-eventually be run) with `--host=TYPE'. |
423 |
+eventually be run) with '--host=TYPE'. |
424 |
|
425 |
Sharing Defaults |
426 |
================ |
427 |
|
428 |
- If you want to set default values for `configure' scripts to share, |
429 |
-you can create a site shell script called `config.site' that gives |
430 |
-default values for variables like `CC', `cache_file', and `prefix'. |
431 |
-`configure' looks for `PREFIX/share/config.site' if it exists, then |
432 |
-`PREFIX/etc/config.site' if it exists. Or, you can set the |
433 |
-`CONFIG_SITE' environment variable to the location of the site script. |
434 |
-A warning: not all `configure' scripts look for a site script. |
435 |
+ If you want to set default values for 'configure' scripts to share, |
436 |
+you can create a site shell script called 'config.site' that gives |
437 |
+default values for variables like 'CC', 'cache_file', and 'prefix'. |
438 |
+'configure' looks for 'PREFIX/share/config.site' if it exists, then |
439 |
+'PREFIX/etc/config.site' if it exists. Or, you can set the |
440 |
+'CONFIG_SITE' environment variable to the location of the site script. |
441 |
+A warning: not all 'configure' scripts look for a site script. |
442 |
|
443 |
Defining Variables |
444 |
================== |
445 |
|
446 |
Variables not defined in a site shell script can be set in the |
447 |
-environment passed to `configure'. However, some packages may run |
448 |
+environment passed to 'configure'. However, some packages may run |
449 |
configure again during the build, and the customized values of these |
450 |
variables may be lost. In order to avoid this problem, you should set |
451 |
-them in the `configure' command line, using `VAR=value'. For example: |
452 |
+them in the 'configure' command line, using 'VAR=value'. For example: |
453 |
|
454 |
./configure CC=/usr/local2/bin/gcc |
455 |
|
456 |
-causes the specified `gcc' to be used as the C compiler (unless it is |
457 |
+causes the specified 'gcc' to be used as the C compiler (unless it is |
458 |
overridden in the site shell script). |
459 |
|
460 |
-Unfortunately, this technique does not work for `CONFIG_SHELL' due to |
461 |
-an Autoconf limitation. Until the limitation is lifted, you can use |
462 |
-this workaround: |
463 |
+Unfortunately, this technique does not work for 'CONFIG_SHELL' due to an |
464 |
+Autoconf limitation. Until the limitation is lifted, you can use this |
465 |
+workaround: |
466 |
|
467 |
CONFIG_SHELL=/bin/bash ./configure CONFIG_SHELL=/bin/bash |
468 |
|
469 |
-`configure' Invocation |
470 |
+'configure' Invocation |
471 |
====================== |
472 |
|
473 |
- `configure' recognizes the following options to control how it |
474 |
+ 'configure' recognizes the following options to control how it |
475 |
operates. |
476 |
|
477 |
-`--help' |
478 |
-`-h' |
479 |
- Print a summary of all of the options to `configure', and exit. |
480 |
+'--help' |
481 |
+'-h' |
482 |
+ Print a summary of all of the options to 'configure', and exit. |
483 |
|
484 |
-`--help=short' |
485 |
-`--help=recursive' |
486 |
+'--help=short' |
487 |
+'--help=recursive' |
488 |
Print a summary of the options unique to this package's |
489 |
- `configure', and exit. The `short' variant lists options used |
490 |
- only in the top level, while the `recursive' variant lists options |
491 |
- also present in any nested packages. |
492 |
+ 'configure', and exit. The 'short' variant lists options used only |
493 |
+ in the top level, while the 'recursive' variant lists options also |
494 |
+ present in any nested packages. |
495 |
|
496 |
-`--version' |
497 |
-`-V' |
498 |
- Print the version of Autoconf used to generate the `configure' |
499 |
+'--version' |
500 |
+'-V' |
501 |
+ Print the version of Autoconf used to generate the 'configure' |
502 |
script, and exit. |
503 |
|
504 |
-`--cache-file=FILE' |
505 |
+'--cache-file=FILE' |
506 |
Enable the cache: use and save the results of the tests in FILE, |
507 |
- traditionally `config.cache'. FILE defaults to `/dev/null' to |
508 |
+ traditionally 'config.cache'. FILE defaults to '/dev/null' to |
509 |
disable caching. |
510 |
|
511 |
-`--config-cache' |
512 |
-`-C' |
513 |
- Alias for `--cache-file=config.cache'. |
514 |
+'--config-cache' |
515 |
+'-C' |
516 |
+ Alias for '--cache-file=config.cache'. |
517 |
|
518 |
-`--quiet' |
519 |
-`--silent' |
520 |
-`-q' |
521 |
+'--quiet' |
522 |
+'--silent' |
523 |
+'-q' |
524 |
Do not print messages saying which checks are being made. To |
525 |
- suppress all normal output, redirect it to `/dev/null' (any error |
526 |
+ suppress all normal output, redirect it to '/dev/null' (any error |
527 |
messages will still be shown). |
528 |
|
529 |
-`--srcdir=DIR' |
530 |
+'--srcdir=DIR' |
531 |
Look for the package's source code in directory DIR. Usually |
532 |
- `configure' can determine that directory automatically. |
533 |
+ 'configure' can determine that directory automatically. |
534 |
|
535 |
-`--prefix=DIR' |
536 |
- Use DIR as the installation prefix. *note Installation Names:: |
537 |
- for more details, including other options available for fine-tuning |
538 |
- the installation locations. |
539 |
+'--prefix=DIR' |
540 |
+ Use DIR as the installation prefix. *note Installation Names:: for |
541 |
+ more details, including other options available for fine-tuning the |
542 |
+ installation locations. |
543 |
|
544 |
-`--no-create' |
545 |
-`-n' |
546 |
+'--no-create' |
547 |
+'-n' |
548 |
Run the configure checks, but stop before creating any output |
549 |
files. |
550 |
|
551 |
-`configure' also accepts some other, not widely useful, options. Run |
552 |
-`configure --help' for more details. |
553 |
+'configure' also accepts some other, not widely useful, options. Run |
554 |
+'configure --help' for more details. |
555 |
|
556 |
diff --git a/m4/ax_append_compile_flags.m4 b/m4/ax_append_compile_flags.m4 |
557 |
index dc7b866..5b6f1af 100644 |
558 |
--- a/m4/ax_append_compile_flags.m4 |
559 |
+++ b/m4/ax_append_compile_flags.m4 |
560 |
@@ -1,10 +1,10 @@ |
561 |
-# =========================================================================== |
562 |
-# http://www.gnu.org/software/autoconf-archive/ax_append_compile_flags.html |
563 |
-# =========================================================================== |
564 |
+# ============================================================================ |
565 |
+# https://www.gnu.org/software/autoconf-archive/ax_append_compile_flags.html |
566 |
+# ============================================================================ |
567 |
# |
568 |
# SYNOPSIS |
569 |
# |
570 |
-# AX_APPEND_COMPILE_FLAGS([FLAG1 FLAG2 ...], [FLAGS-VARIABLE], [EXTRA-FLAGS]) |
571 |
+# AX_APPEND_COMPILE_FLAGS([FLAG1 FLAG2 ...], [FLAGS-VARIABLE], [EXTRA-FLAGS], [INPUT]) |
572 |
# |
573 |
# DESCRIPTION |
574 |
# |
575 |
@@ -20,6 +20,8 @@ |
576 |
# the flags: "CFLAGS EXTRA-FLAGS FLAG". This can for example be used to |
577 |
# force the compiler to issue an error when a bad flag is given. |
578 |
# |
579 |
+# INPUT gives an alternative input source to AC_COMPILE_IFELSE. |
580 |
+# |
581 |
# NOTE: This macro depends on the AX_APPEND_FLAG and |
582 |
# AX_CHECK_COMPILE_FLAG. Please keep this macro in sync with |
583 |
# AX_APPEND_LINK_FLAGS. |
584 |
@@ -39,7 +41,7 @@ |
585 |
# Public License for more details. |
586 |
# |
587 |
# You should have received a copy of the GNU General Public License along |
588 |
-# with this program. If not, see <http://www.gnu.org/licenses/>. |
589 |
+# with this program. If not, see <https://www.gnu.org/licenses/>. |
590 |
# |
591 |
# As a special exception, the respective Autoconf Macro's copyright owner |
592 |
# gives unlimited permission to copy, distribute and modify the configure |
593 |
@@ -54,12 +56,12 @@ |
594 |
# modified version of the Autoconf Macro, you may extend this special |
595 |
# exception to the GPL to apply to your modified version as well. |
596 |
|
597 |
-#serial 4 |
598 |
+#serial 6 |
599 |
|
600 |
AC_DEFUN([AX_APPEND_COMPILE_FLAGS], |
601 |
[AX_REQUIRE_DEFINED([AX_CHECK_COMPILE_FLAG]) |
602 |
AX_REQUIRE_DEFINED([AX_APPEND_FLAG]) |
603 |
for flag in $1; do |
604 |
- AX_CHECK_COMPILE_FLAG([$flag], [AX_APPEND_FLAG([$flag], [$2])], [], [$3]) |
605 |
+ AX_CHECK_COMPILE_FLAG([$flag], [AX_APPEND_FLAG([$flag], [$2])], [], [$3], [$4]) |
606 |
done |
607 |
])dnl AX_APPEND_COMPILE_FLAGS |
608 |
|
609 |
diff --git a/m4/ax_append_flag.m4 b/m4/ax_append_flag.m4 |
610 |
index aeab899..e8c5312 100644 |
611 |
--- a/m4/ax_append_flag.m4 |
612 |
+++ b/m4/ax_append_flag.m4 |
613 |
@@ -1,5 +1,5 @@ |
614 |
# =========================================================================== |
615 |
-# http://www.gnu.org/software/autoconf-archive/ax_append_flag.html |
616 |
+# https://www.gnu.org/software/autoconf-archive/ax_append_flag.html |
617 |
# =========================================================================== |
618 |
# |
619 |
# SYNOPSIS |
620 |
@@ -34,7 +34,7 @@ |
621 |
# Public License for more details. |
622 |
# |
623 |
# You should have received a copy of the GNU General Public License along |
624 |
-# with this program. If not, see <http://www.gnu.org/licenses/>. |
625 |
+# with this program. If not, see <https://www.gnu.org/licenses/>. |
626 |
# |
627 |
# As a special exception, the respective Autoconf Macro's copyright owner |
628 |
# gives unlimited permission to copy, distribute and modify the configure |
629 |
@@ -49,7 +49,7 @@ |
630 |
# modified version of the Autoconf Macro, you may extend this special |
631 |
# exception to the GPL to apply to your modified version as well. |
632 |
|
633 |
-#serial 5 |
634 |
+#serial 7 |
635 |
|
636 |
AC_DEFUN([AX_APPEND_FLAG], |
637 |
[dnl |
638 |
@@ -59,7 +59,7 @@ AS_VAR_SET_IF(FLAGS,[ |
639 |
AS_CASE([" AS_VAR_GET(FLAGS) "], |
640 |
[*" $1 "*], [AC_RUN_LOG([: FLAGS already contains $1])], |
641 |
[ |
642 |
- AS_VAR_APPEND(FLAGS," $1") |
643 |
+ AS_VAR_APPEND(FLAGS,[" $1"]) |
644 |
AC_RUN_LOG([: FLAGS="$FLAGS"]) |
645 |
]) |
646 |
], |
647 |
|
648 |
diff --git a/m4/ax_append_link_flags.m4 b/m4/ax_append_link_flags.m4 |
649 |
index c73ddaf..6f7f174 100644 |
650 |
--- a/m4/ax_append_link_flags.m4 |
651 |
+++ b/m4/ax_append_link_flags.m4 |
652 |
@@ -1,10 +1,10 @@ |
653 |
# =========================================================================== |
654 |
-# http://www.gnu.org/software/autoconf-archive/ax_append_link_flags.html |
655 |
+# https://www.gnu.org/software/autoconf-archive/ax_append_link_flags.html |
656 |
# =========================================================================== |
657 |
# |
658 |
# SYNOPSIS |
659 |
# |
660 |
-# AX_APPEND_LINK_FLAGS([FLAG1 FLAG2 ...], [FLAGS-VARIABLE], [EXTRA-FLAGS]) |
661 |
+# AX_APPEND_LINK_FLAGS([FLAG1 FLAG2 ...], [FLAGS-VARIABLE], [EXTRA-FLAGS], [INPUT]) |
662 |
# |
663 |
# DESCRIPTION |
664 |
# |
665 |
@@ -19,6 +19,8 @@ |
666 |
# EXTRA-FLAGS FLAG". This can for example be used to force the linker to |
667 |
# issue an error when a bad flag is given. |
668 |
# |
669 |
+# INPUT gives an alternative input source to AC_COMPILE_IFELSE. |
670 |
+# |
671 |
# NOTE: This macro depends on the AX_APPEND_FLAG and AX_CHECK_LINK_FLAG. |
672 |
# Please keep this macro in sync with AX_APPEND_COMPILE_FLAGS. |
673 |
# |
674 |
@@ -37,7 +39,7 @@ |
675 |
# Public License for more details. |
676 |
# |
677 |
# You should have received a copy of the GNU General Public License along |
678 |
-# with this program. If not, see <http://www.gnu.org/licenses/>. |
679 |
+# with this program. If not, see <https://www.gnu.org/licenses/>. |
680 |
# |
681 |
# As a special exception, the respective Autoconf Macro's copyright owner |
682 |
# gives unlimited permission to copy, distribute and modify the configure |
683 |
@@ -52,12 +54,12 @@ |
684 |
# modified version of the Autoconf Macro, you may extend this special |
685 |
# exception to the GPL to apply to your modified version as well. |
686 |
|
687 |
-#serial 4 |
688 |
+#serial 6 |
689 |
|
690 |
AC_DEFUN([AX_APPEND_LINK_FLAGS], |
691 |
[AX_REQUIRE_DEFINED([AX_CHECK_LINK_FLAG]) |
692 |
AX_REQUIRE_DEFINED([AX_APPEND_FLAG]) |
693 |
for flag in $1; do |
694 |
- AX_CHECK_LINK_FLAG([$flag], [AX_APPEND_FLAG([$flag], [m4_default([$2], [LDFLAGS])])], [], [$3]) |
695 |
+ AX_CHECK_LINK_FLAG([$flag], [AX_APPEND_FLAG([$flag], [m4_default([$2], [LDFLAGS])])], [], [$3], [$4]) |
696 |
done |
697 |
])dnl AX_APPEND_LINK_FLAGS |
698 |
|
699 |
diff --git a/m4/ax_cflags_force_c89.m4 b/m4/ax_cflags_force_c89.m4 |
700 |
index 1597b25..59b33c1 100644 |
701 |
--- a/m4/ax_cflags_force_c89.m4 |
702 |
+++ b/m4/ax_cflags_force_c89.m4 |
703 |
@@ -1,5 +1,5 @@ |
704 |
# =========================================================================== |
705 |
-# http://www.gnu.org/software/autoconf-archive/ax_cflags_force_c89.html |
706 |
+# https://www.gnu.org/software/autoconf-archive/ax_cflags_force_c89.html |
707 |
# =========================================================================== |
708 |
# |
709 |
# SYNOPSIS |
710 |
@@ -40,7 +40,7 @@ |
711 |
# Public License for more details. |
712 |
# |
713 |
# You should have received a copy of the GNU General Public License along |
714 |
-# with this program. If not, see <http://www.gnu.org/licenses/>. |
715 |
+# with this program. If not, see <https://www.gnu.org/licenses/>. |
716 |
# |
717 |
# As a special exception, the respective Autoconf Macro's copyright owner |
718 |
# gives unlimited permission to copy, distribute and modify the configure |
719 |
@@ -55,7 +55,7 @@ |
720 |
# modified version of the Autoconf Macro, you may extend this special |
721 |
# exception to the GPL to apply to your modified version as well. |
722 |
|
723 |
-#serial 9 |
724 |
+#serial 10 |
725 |
|
726 |
AC_DEFUN([AX_CFLAGS_FORCE_C89],[dnl |
727 |
AS_VAR_PUSHDEF([FLAGS],[CFLAGS])dnl |
728 |
|
729 |
diff --git a/m4/ax_cflags_no_writable_strings.m4 b/m4/ax_cflags_no_writable_strings.m4 |
730 |
index 2fb6f12..48831fa 100644 |
731 |
--- a/m4/ax_cflags_no_writable_strings.m4 |
732 |
+++ b/m4/ax_cflags_no_writable_strings.m4 |
733 |
@@ -1,6 +1,6 @@ |
734 |
-# ================================================================================= |
735 |
-# http://www.gnu.org/software/autoconf-archive/ax_cflags_no_writable_strings.html |
736 |
-# ================================================================================= |
737 |
+# ================================================================================== |
738 |
+# https://www.gnu.org/software/autoconf-archive/ax_cflags_no_writable_strings.html |
739 |
+# ================================================================================== |
740 |
# |
741 |
# SYNOPSIS |
742 |
# |
743 |
@@ -41,7 +41,7 @@ |
744 |
# Public License for more details. |
745 |
# |
746 |
# You should have received a copy of the GNU General Public License along |
747 |
-# with this program. If not, see <http://www.gnu.org/licenses/>. |
748 |
+# with this program. If not, see <https://www.gnu.org/licenses/>. |
749 |
# |
750 |
# As a special exception, the respective Autoconf Macro's copyright owner |
751 |
# gives unlimited permission to copy, distribute and modify the configure |
752 |
@@ -56,7 +56,7 @@ |
753 |
# modified version of the Autoconf Macro, you may extend this special |
754 |
# exception to the GPL to apply to your modified version as well. |
755 |
|
756 |
-#serial 13 |
757 |
+#serial 14 |
758 |
|
759 |
AC_DEFUN([AX_FLAGS_NO_WRITABLE_STRINGS],[dnl |
760 |
AS_VAR_PUSHDEF([FLAGS],[_AC_LANG_PREFIX[]FLAGS])dnl |
761 |
|
762 |
diff --git a/m4/ax_cflags_strict_prototypes.m4 b/m4/ax_cflags_strict_prototypes.m4 |
763 |
index 3ad4bf0..1bc5db4 100644 |
764 |
--- a/m4/ax_cflags_strict_prototypes.m4 |
765 |
+++ b/m4/ax_cflags_strict_prototypes.m4 |
766 |
@@ -1,6 +1,6 @@ |
767 |
-# =============================================================================== |
768 |
-# http://www.gnu.org/software/autoconf-archive/ax_cflags_strict_prototypes.html |
769 |
-# =============================================================================== |
770 |
+# ================================================================================ |
771 |
+# https://www.gnu.org/software/autoconf-archive/ax_cflags_strict_prototypes.html |
772 |
+# ================================================================================ |
773 |
# |
774 |
# SYNOPSIS |
775 |
# |
776 |
@@ -43,7 +43,7 @@ |
777 |
# Public License for more details. |
778 |
# |
779 |
# You should have received a copy of the GNU General Public License along |
780 |
-# with this program. If not, see <http://www.gnu.org/licenses/>. |
781 |
+# with this program. If not, see <https://www.gnu.org/licenses/>. |
782 |
# |
783 |
# As a special exception, the respective Autoconf Macro's copyright owner |
784 |
# gives unlimited permission to copy, distribute and modify the configure |
785 |
@@ -58,7 +58,7 @@ |
786 |
# modified version of the Autoconf Macro, you may extend this special |
787 |
# exception to the GPL to apply to your modified version as well. |
788 |
|
789 |
-#serial 13 |
790 |
+#serial 16 |
791 |
|
792 |
AC_DEFUN([AX_FLAGS_STRICT_PROTOTYPES],[dnl |
793 |
AS_VAR_PUSHDEF([FLAGS],[_AC_LANG_PREFIX[]FLAGS])dnl |
794 |
@@ -68,8 +68,8 @@ VAR,[VAR="no, unknown" |
795 |
ac_save_[]FLAGS="$[]FLAGS" |
796 |
for ac_arg dnl |
797 |
in "-pedantic -Werror % -fstrict-prototypes -Wstrict-prototypes" dnl GCC |
798 |
- "-pedantic -Werror % -Wstrict-prototypes" dnl try to warn atleast |
799 |
- "-pedantic -Werror % -Wmissing-prototypes" dnl try to warn atleast |
800 |
+ "-pedantic -Werror % -Wstrict-prototypes" dnl try to warn at least |
801 |
+ "-pedantic -Werror % -Wmissing-prototypes" dnl try to warn at least |
802 |
"-pedantic -Werror % -Werror-implicit-function-declaration" dnl |
803 |
"-pedantic -Werror % -Wimplicit-function-declaration" dnl |
804 |
"-pedantic % -Wstrict-prototypes %% no, unsupported" dnl oops |
805 |
|
806 |
diff --git a/m4/ax_cflags_warn_all.m4 b/m4/ax_cflags_warn_all.m4 |
807 |
index 1f07799..094577e 100644 |
808 |
--- a/m4/ax_cflags_warn_all.m4 |
809 |
+++ b/m4/ax_cflags_warn_all.m4 |
810 |
@@ -1,5 +1,5 @@ |
811 |
# =========================================================================== |
812 |
-# http://www.gnu.org/software/autoconf-archive/ax_cflags_warn_all.html |
813 |
+# https://www.gnu.org/software/autoconf-archive/ax_cflags_warn_all.html |
814 |
# =========================================================================== |
815 |
# |
816 |
# SYNOPSIS |
817 |
@@ -43,7 +43,7 @@ |
818 |
# Public License for more details. |
819 |
# |
820 |
# You should have received a copy of the GNU General Public License along |
821 |
-# with this program. If not, see <http://www.gnu.org/licenses/>. |
822 |
+# with this program. If not, see <https://www.gnu.org/licenses/>. |
823 |
# |
824 |
# As a special exception, the respective Autoconf Macro's copyright owner |
825 |
# gives unlimited permission to copy, distribute and modify the configure |
826 |
@@ -58,7 +58,7 @@ |
827 |
# modified version of the Autoconf Macro, you may extend this special |
828 |
# exception to the GPL to apply to your modified version as well. |
829 |
|
830 |
-#serial 15 |
831 |
+#serial 16 |
832 |
|
833 |
AC_DEFUN([AX_FLAGS_WARN_ALL],[dnl |
834 |
AS_VAR_PUSHDEF([FLAGS],[_AC_LANG_PREFIX[]FLAGS])dnl |
835 |
|
836 |
diff --git a/m4/ax_check_compile_flag.m4 b/m4/ax_check_compile_flag.m4 |
837 |
index ca36397..dcabb92 100644 |
838 |
--- a/m4/ax_check_compile_flag.m4 |
839 |
+++ b/m4/ax_check_compile_flag.m4 |
840 |
@@ -1,5 +1,5 @@ |
841 |
# =========================================================================== |
842 |
-# http://www.gnu.org/software/autoconf-archive/ax_check_compile_flag.html |
843 |
+# https://www.gnu.org/software/autoconf-archive/ax_check_compile_flag.html |
844 |
# =========================================================================== |
845 |
# |
846 |
# SYNOPSIS |
847 |
@@ -40,7 +40,7 @@ |
848 |
# Public License for more details. |
849 |
# |
850 |
# You should have received a copy of the GNU General Public License along |
851 |
-# with this program. If not, see <http://www.gnu.org/licenses/>. |
852 |
+# with this program. If not, see <https://www.gnu.org/licenses/>. |
853 |
# |
854 |
# As a special exception, the respective Autoconf Macro's copyright owner |
855 |
# gives unlimited permission to copy, distribute and modify the configure |
856 |
@@ -55,7 +55,7 @@ |
857 |
# modified version of the Autoconf Macro, you may extend this special |
858 |
# exception to the GPL to apply to your modified version as well. |
859 |
|
860 |
-#serial 4 |
861 |
+#serial 5 |
862 |
|
863 |
AC_DEFUN([AX_CHECK_COMPILE_FLAG], |
864 |
[AC_PREREQ(2.64)dnl for _AC_LANG_PREFIX and AS_VAR_IF |
865 |
|
866 |
diff --git a/m4/ax_check_link_flag.m4 b/m4/ax_check_link_flag.m4 |
867 |
index eb01a6c..819409a 100644 |
868 |
--- a/m4/ax_check_link_flag.m4 |
869 |
+++ b/m4/ax_check_link_flag.m4 |
870 |
@@ -1,5 +1,5 @@ |
871 |
# =========================================================================== |
872 |
-# http://www.gnu.org/software/autoconf-archive/ax_check_link_flag.html |
873 |
+# https://www.gnu.org/software/autoconf-archive/ax_check_link_flag.html |
874 |
# =========================================================================== |
875 |
# |
876 |
# SYNOPSIS |
877 |
@@ -40,7 +40,7 @@ |
878 |
# Public License for more details. |
879 |
# |
880 |
# You should have received a copy of the GNU General Public License along |
881 |
-# with this program. If not, see <http://www.gnu.org/licenses/>. |
882 |
+# with this program. If not, see <https://www.gnu.org/licenses/>. |
883 |
# |
884 |
# As a special exception, the respective Autoconf Macro's copyright owner |
885 |
# gives unlimited permission to copy, distribute and modify the configure |
886 |
@@ -55,7 +55,7 @@ |
887 |
# modified version of the Autoconf Macro, you may extend this special |
888 |
# exception to the GPL to apply to your modified version as well. |
889 |
|
890 |
-#serial 4 |
891 |
+#serial 5 |
892 |
|
893 |
AC_DEFUN([AX_CHECK_LINK_FLAG], |
894 |
[AC_PREREQ(2.64)dnl for _AC_LANG_PREFIX and AS_VAR_IF |
895 |
|
896 |
diff --git a/m4/ax_compiler_flags.m4 b/m4/ax_compiler_flags.m4 |
897 |
index c52ae7d..ddb0456 100644 |
898 |
--- a/m4/ax_compiler_flags.m4 |
899 |
+++ b/m4/ax_compiler_flags.m4 |
900 |
@@ -1,5 +1,5 @@ |
901 |
# =========================================================================== |
902 |
-# http://www.gnu.org/software/autoconf-archive/ax_compiler_flags.html |
903 |
+# https://www.gnu.org/software/autoconf-archive/ax_compiler_flags.html |
904 |
# =========================================================================== |
905 |
# |
906 |
# SYNOPSIS |
907 |
@@ -101,7 +101,7 @@ |
908 |
# and this notice are preserved. This file is offered as-is, without any |
909 |
# warranty. |
910 |
|
911 |
-#serial 12 |
912 |
+#serial 14 |
913 |
|
914 |
# _AX_COMPILER_FLAGS_LANG([LANGNAME]) |
915 |
m4_defun([_AX_COMPILER_FLAGS_LANG], |
916 |
@@ -138,7 +138,7 @@ AC_DEFUN([AX_COMPILER_FLAGS],[ |
917 |
[Unconditionally make all compiler warnings non-fatal]),, |
918 |
[enable_Werror=maybe]) |
919 |
|
920 |
- # Return the user’s chosen warning level |
921 |
+ # Return the user's chosen warning level |
922 |
AS_IF([test "$enable_Werror" = "no" -a \ |
923 |
"$enable_compile_warnings" = "error"],[ |
924 |
enable_compile_warnings="yes" |
925 |
|
926 |
diff --git a/m4/ax_compiler_flags_cflags.m4 b/m4/ax_compiler_flags_cflags.m4 |
927 |
index 295d7fe..aeb16e3 100644 |
928 |
--- a/m4/ax_compiler_flags_cflags.m4 |
929 |
+++ b/m4/ax_compiler_flags_cflags.m4 |
930 |
@@ -1,6 +1,6 @@ |
931 |
-# ============================================================================ |
932 |
-# http://www.gnu.org/software/autoconf-archive/ax_compiler_flags_cflags.html |
933 |
-# ============================================================================ |
934 |
+# ============================================================================= |
935 |
+# https://www.gnu.org/software/autoconf-archive/ax_compiler_flags_cflags.html |
936 |
+# ============================================================================= |
937 |
# |
938 |
# SYNOPSIS |
939 |
# |
940 |
@@ -25,15 +25,16 @@ |
941 |
# and this notice are preserved. This file is offered as-is, without any |
942 |
# warranty. |
943 |
|
944 |
-#serial 8 |
945 |
+#serial 14 |
946 |
|
947 |
AC_DEFUN([AX_COMPILER_FLAGS_CFLAGS],[ |
948 |
+ AC_REQUIRE([AC_PROG_SED]) |
949 |
AX_REQUIRE_DEFINED([AX_APPEND_COMPILE_FLAGS]) |
950 |
AX_REQUIRE_DEFINED([AX_APPEND_FLAG]) |
951 |
AX_REQUIRE_DEFINED([AX_CHECK_COMPILE_FLAG]) |
952 |
|
953 |
# Variable names |
954 |
- m4_define(ax_warn_cflags_variable, |
955 |
+ m4_define([ax_warn_cflags_variable], |
956 |
[m4_normalize(ifelse([$1],,[WARN_CFLAGS],[$1]))]) |
957 |
|
958 |
AC_LANG_PUSH([C]) |
959 |
@@ -49,6 +50,13 @@ AC_DEFUN([AX_COMPILER_FLAGS_CFLAGS],[ |
960 |
ax_compiler_flags_test="" |
961 |
]) |
962 |
|
963 |
+ # Check that -Wno-suggest-attribute=format is supported |
964 |
+ AX_CHECK_COMPILE_FLAG([-Wno-suggest-attribute=format],[ |
965 |
+ ax_compiler_no_suggest_attribute_flags="-Wno-suggest-attribute=format" |
966 |
+ ],[ |
967 |
+ ax_compiler_no_suggest_attribute_flags="" |
968 |
+ ]) |
969 |
+ |
970 |
# Base flags |
971 |
AX_APPEND_COMPILE_FLAGS([ dnl |
972 |
-fno-strict-aliasing dnl |
973 |
@@ -100,14 +108,14 @@ AC_DEFUN([AX_COMPILER_FLAGS_CFLAGS],[ |
974 |
]) |
975 |
AS_IF([test "$ax_enable_compile_warnings" = "error"],[ |
976 |
# "error" flags; -Werror has to be appended unconditionally because |
977 |
- # it’s not possible to test for |
978 |
+ # it's not possible to test for |
979 |
# |
980 |
# suggest-attribute=format is disabled because it gives too many false |
981 |
# positives |
982 |
AX_APPEND_FLAG([-Werror],ax_warn_cflags_variable) |
983 |
|
984 |
AX_APPEND_COMPILE_FLAGS([ dnl |
985 |
- -Wno-suggest-attribute=format dnl |
986 |
+ [$ax_compiler_no_suggest_attribute_flags] dnl |
987 |
],ax_warn_cflags_variable,[$ax_compiler_flags_test]) |
988 |
]) |
989 |
|
990 |
@@ -119,7 +127,7 @@ AC_DEFUN([AX_COMPILER_FLAGS_CFLAGS],[ |
991 |
AS_CASE([$flag], |
992 |
[-Wno-*=*],[], |
993 |
[-Wno-*],[ |
994 |
- AX_APPEND_COMPILE_FLAGS([-Wno-error=${flag:5}], |
995 |
+ AX_APPEND_COMPILE_FLAGS([-Wno-error=$(AS_ECHO([$flag]) | $SED 's/^-Wno-//')], |
996 |
ax_warn_cflags_variable, |
997 |
[$ax_compiler_flags_test]) |
998 |
]) |
999 |
|
1000 |
diff --git a/m4/ax_compiler_flags_cxxflags.m4 b/m4/ax_compiler_flags_cxxflags.m4 |
1001 |
index b768cfa..3067d9b 100644 |
1002 |
--- a/m4/ax_compiler_flags_cxxflags.m4 |
1003 |
+++ b/m4/ax_compiler_flags_cxxflags.m4 |
1004 |
@@ -1,6 +1,6 @@ |
1005 |
-# ============================================================================== |
1006 |
-# http://www.gnu.org/software/autoconf-archive/ax_compiler_flags_cxxflags.html |
1007 |
-# ============================================================================== |
1008 |
+# =============================================================================== |
1009 |
+# https://www.gnu.org/software/autoconf-archive/ax_compiler_flags_cxxflags.html |
1010 |
+# =============================================================================== |
1011 |
# |
1012 |
# SYNOPSIS |
1013 |
# |
1014 |
@@ -26,15 +26,16 @@ |
1015 |
# and this notice are preserved. This file is offered as-is, without any |
1016 |
# warranty. |
1017 |
|
1018 |
-#serial 4 |
1019 |
+#serial 10 |
1020 |
|
1021 |
AC_DEFUN([AX_COMPILER_FLAGS_CXXFLAGS],[ |
1022 |
+ AC_REQUIRE([AC_PROG_SED]) |
1023 |
AX_REQUIRE_DEFINED([AX_APPEND_COMPILE_FLAGS]) |
1024 |
AX_REQUIRE_DEFINED([AX_APPEND_FLAG]) |
1025 |
AX_REQUIRE_DEFINED([AX_CHECK_COMPILE_FLAG]) |
1026 |
|
1027 |
# Variable names |
1028 |
- m4_define(ax_warn_cxxflags_variable, |
1029 |
+ m4_define([ax_warn_cxxflags_variable], |
1030 |
[m4_normalize(ifelse([$1],,[WARN_CXXFLAGS],[$1]))]) |
1031 |
|
1032 |
AC_LANG_PUSH([C++]) |
1033 |
@@ -50,6 +51,13 @@ AC_DEFUN([AX_COMPILER_FLAGS_CXXFLAGS],[ |
1034 |
ax_compiler_flags_test="" |
1035 |
]) |
1036 |
|
1037 |
+ # Check that -Wno-suggest-attribute=format is supported |
1038 |
+ AX_CHECK_COMPILE_FLAG([-Wno-suggest-attribute=format],[ |
1039 |
+ ax_compiler_no_suggest_attribute_flags="-Wno-suggest-attribute=format" |
1040 |
+ ],[ |
1041 |
+ ax_compiler_no_suggest_attribute_flags="" |
1042 |
+ ]) |
1043 |
+ |
1044 |
# Base flags |
1045 |
AX_APPEND_COMPILE_FLAGS([ dnl |
1046 |
-fno-strict-aliasing dnl |
1047 |
@@ -96,14 +104,14 @@ AC_DEFUN([AX_COMPILER_FLAGS_CXXFLAGS],[ |
1048 |
]) |
1049 |
AS_IF([test "$ax_enable_compile_warnings" = "error"],[ |
1050 |
# "error" flags; -Werror has to be appended unconditionally because |
1051 |
- # it’s not possible to test for |
1052 |
+ # it's not possible to test for |
1053 |
# |
1054 |
# suggest-attribute=format is disabled because it gives too many false |
1055 |
# positives |
1056 |
AX_APPEND_FLAG([-Werror],ax_warn_cxxflags_variable) |
1057 |
|
1058 |
AX_APPEND_COMPILE_FLAGS([ dnl |
1059 |
- -Wno-suggest-attribute=format dnl |
1060 |
+ [$ax_compiler_no_suggest_attribute_flags] dnl |
1061 |
],ax_warn_cxxflags_variable,[$ax_compiler_flags_test]) |
1062 |
]) |
1063 |
|
1064 |
@@ -115,7 +123,7 @@ AC_DEFUN([AX_COMPILER_FLAGS_CXXFLAGS],[ |
1065 |
AS_CASE([$flag], |
1066 |
[-Wno-*=*],[], |
1067 |
[-Wno-*],[ |
1068 |
- AX_APPEND_COMPILE_FLAGS([-Wno-error=${flag:5}], |
1069 |
+ AX_APPEND_COMPILE_FLAGS([-Wno-error=$(AS_ECHO([$flag]) | $SED 's/^-Wno-//')], |
1070 |
ax_warn_cxxflags_variable, |
1071 |
[$ax_compiler_flags_test]) |
1072 |
]) |
1073 |
|
1074 |
diff --git a/m4/ax_compiler_flags_gir.m4 b/m4/ax_compiler_flags_gir.m4 |
1075 |
index 180f50d..5b4924a 100644 |
1076 |
--- a/m4/ax_compiler_flags_gir.m4 |
1077 |
+++ b/m4/ax_compiler_flags_gir.m4 |
1078 |
@@ -1,5 +1,5 @@ |
1079 |
# =========================================================================== |
1080 |
-# http://www.gnu.org/software/autoconf-archive/ax_compiler_flags_gir.html |
1081 |
+# https://www.gnu.org/software/autoconf-archive/ax_compiler_flags_gir.html |
1082 |
# =========================================================================== |
1083 |
# |
1084 |
# SYNOPSIS |
1085 |
@@ -26,13 +26,13 @@ |
1086 |
# and this notice are preserved. This file is offered as-is, without any |
1087 |
# warranty. |
1088 |
|
1089 |
-#serial 4 |
1090 |
+#serial 6 |
1091 |
|
1092 |
AC_DEFUN([AX_COMPILER_FLAGS_GIR],[ |
1093 |
AX_REQUIRE_DEFINED([AX_APPEND_FLAG]) |
1094 |
|
1095 |
# Variable names |
1096 |
- m4_define(ax_warn_scannerflags_variable, |
1097 |
+ m4_define([ax_warn_scannerflags_variable], |
1098 |
[m4_normalize(ifelse([$1],,[WARN_SCANNERFLAGS],[$1]))]) |
1099 |
|
1100 |
# Base flags |
1101 |
|
1102 |
diff --git a/m4/ax_compiler_flags_ldflags.m4 b/m4/ax_compiler_flags_ldflags.m4 |
1103 |
index f9077fc..842e329 100644 |
1104 |
--- a/m4/ax_compiler_flags_ldflags.m4 |
1105 |
+++ b/m4/ax_compiler_flags_ldflags.m4 |
1106 |
@@ -1,6 +1,6 @@ |
1107 |
-# ============================================================================= |
1108 |
-# http://www.gnu.org/software/autoconf-archive/ax_compiler_flags_ldflags.html |
1109 |
-# ============================================================================= |
1110 |
+# ============================================================================== |
1111 |
+# https://www.gnu.org/software/autoconf-archive/ax_compiler_flags_ldflags.html |
1112 |
+# ============================================================================== |
1113 |
# |
1114 |
# SYNOPSIS |
1115 |
# |
1116 |
@@ -25,15 +25,16 @@ |
1117 |
# and this notice are preserved. This file is offered as-is, without any |
1118 |
# warranty. |
1119 |
|
1120 |
-#serial 3 |
1121 |
+#serial 8 |
1122 |
|
1123 |
AC_DEFUN([AX_COMPILER_FLAGS_LDFLAGS],[ |
1124 |
- AX_REQUIRE_DEFINED([AX_APPEND_COMPILE_FLAGS]) |
1125 |
+ AX_REQUIRE_DEFINED([AX_APPEND_LINK_FLAGS]) |
1126 |
AX_REQUIRE_DEFINED([AX_APPEND_FLAG]) |
1127 |
AX_REQUIRE_DEFINED([AX_CHECK_COMPILE_FLAG]) |
1128 |
+ AX_REQUIRE_DEFINED([AX_CHECK_LINK_FLAG]) |
1129 |
|
1130 |
# Variable names |
1131 |
- m4_define(ax_warn_ldflags_variable, |
1132 |
+ m4_define([ax_warn_ldflags_variable], |
1133 |
[m4_normalize(ifelse([$1],,[WARN_LDFLAGS],[$1]))]) |
1134 |
|
1135 |
# Always pass -Werror=unknown-warning-option to get Clang to fail on bad |
1136 |
@@ -47,26 +48,42 @@ AC_DEFUN([AX_COMPILER_FLAGS_LDFLAGS],[ |
1137 |
ax_compiler_flags_test="" |
1138 |
]) |
1139 |
|
1140 |
+ # macOS linker does not have --as-needed |
1141 |
+ AX_CHECK_LINK_FLAG([-Wl,--no-as-needed], [ |
1142 |
+ ax_compiler_flags_as_needed_option="-Wl,--no-as-needed" |
1143 |
+ ], [ |
1144 |
+ ax_compiler_flags_as_needed_option="" |
1145 |
+ ]) |
1146 |
+ |
1147 |
+ # macOS linker speaks with a different accent |
1148 |
+ ax_compiler_flags_fatal_warnings_option="" |
1149 |
+ AX_CHECK_LINK_FLAG([-Wl,--fatal-warnings], [ |
1150 |
+ ax_compiler_flags_fatal_warnings_option="-Wl,--fatal-warnings" |
1151 |
+ ]) |
1152 |
+ AX_CHECK_LINK_FLAG([-Wl,-fatal_warnings], [ |
1153 |
+ ax_compiler_flags_fatal_warnings_option="-Wl,-fatal_warnings" |
1154 |
+ ]) |
1155 |
+ |
1156 |
# Base flags |
1157 |
- AX_APPEND_COMPILE_FLAGS([ dnl |
1158 |
- -Wl,--no-as-needed dnl |
1159 |
+ AX_APPEND_LINK_FLAGS([ dnl |
1160 |
+ $ax_compiler_flags_as_needed_option dnl |
1161 |
$3 dnl |
1162 |
],ax_warn_ldflags_variable,[$ax_compiler_flags_test]) |
1163 |
|
1164 |
AS_IF([test "$ax_enable_compile_warnings" != "no"],[ |
1165 |
# "yes" flags |
1166 |
- AX_APPEND_COMPILE_FLAGS([$4 $5 $6 $7], |
1167 |
+ AX_APPEND_LINK_FLAGS([$4 $5 $6 $7], |
1168 |
ax_warn_ldflags_variable, |
1169 |
[$ax_compiler_flags_test]) |
1170 |
]) |
1171 |
AS_IF([test "$ax_enable_compile_warnings" = "error"],[ |
1172 |
# "error" flags; -Werror has to be appended unconditionally because |
1173 |
- # it’s not possible to test for |
1174 |
+ # it's not possible to test for |
1175 |
# |
1176 |
# suggest-attribute=format is disabled because it gives too many false |
1177 |
# positives |
1178 |
- AX_APPEND_COMPILE_FLAGS([ dnl |
1179 |
- -Wl,--fatal-warnings dnl |
1180 |
+ AX_APPEND_LINK_FLAGS([ dnl |
1181 |
+ $ax_compiler_flags_fatal_warnings_option dnl |
1182 |
],ax_warn_ldflags_variable,[$ax_compiler_flags_test]) |
1183 |
]) |
1184 |
|
1185 |
|
1186 |
diff --git a/m4/ax_require_defined.m4 b/m4/ax_require_defined.m4 |
1187 |
index cae1111..17c3eab 100644 |
1188 |
--- a/m4/ax_require_defined.m4 |
1189 |
+++ b/m4/ax_require_defined.m4 |
1190 |
@@ -1,5 +1,5 @@ |
1191 |
# =========================================================================== |
1192 |
-# http://www.gnu.org/software/autoconf-archive/ax_require_defined.html |
1193 |
+# https://www.gnu.org/software/autoconf-archive/ax_require_defined.html |
1194 |
# =========================================================================== |
1195 |
# |
1196 |
# SYNOPSIS |
1197 |
@@ -30,7 +30,7 @@ |
1198 |
# and this notice are preserved. This file is offered as-is, without any |
1199 |
# warranty. |
1200 |
|
1201 |
-#serial 1 |
1202 |
+#serial 2 |
1203 |
|
1204 |
AC_DEFUN([AX_REQUIRE_DEFINED], [dnl |
1205 |
m4_ifndef([$1], [m4_fatal([macro ]$1[ is not defined; is a m4 file missing?])]) |