5302 |
status. For such preprocessors an internal variable is set that causes |
status. For such preprocessors an internal variable is set that causes |
5303 |
other macros to check the standard error from the preprocessor and |
other macros to check the standard error from the preprocessor and |
5304 |
consider the test failed if any warnings have been reported. |
consider the test failed if any warnings have been reported. |
5305 |
|
For most preprocessors, though, warnings do not cause include-file |
5306 |
|
tests to fail unless @code{AC_PROG_CPP_WERROR} is also specified. |
5307 |
|
@end defmac |
5308 |
|
|
5309 |
|
@defmac AC_PROG_CPP_WERROR |
5310 |
|
@acindex{PROG_CPP_WERROR} |
5311 |
|
@ovindex CPP |
5312 |
|
This acts like @code{AC_PROG_CPP}, except it treats warnings from the |
5313 |
|
preprocessor as errors even if the preprocessor exit status indicates |
5314 |
|
success. This is useful for avoiding headers that generate mandatory |
5315 |
|
warnings, such as deprecation notices. |
5316 |
@end defmac |
@end defmac |
5317 |
|
|
5318 |
|
|
10220 |
whether some arbitrary file exists. To do so, use @samp{test -f} or |
whether some arbitrary file exists. To do so, use @samp{test -f} or |
10221 |
@samp{test -r}. Do not use @samp{test -x}, because 4.3@acronym{BSD} does not |
@samp{test -r}. Do not use @samp{test -x}, because 4.3@acronym{BSD} does not |
10222 |
have it. Do not use @samp{test -e} either, because Solaris 2.5 does not |
have it. Do not use @samp{test -e} either, because Solaris 2.5 does not |
10223 |
have it. |
have it. To test for symbolic links on systems that have them, use |
10224 |
|
@samp{test -h} rather than @samp{test -L}; either form conforms to |
10225 |
|
@acronym{POSIX} 1003.1-2001, but older shells like Solaris 8 |
10226 |
|
@code{/bin/sh} support only @option{-h}. |
10227 |
|
|
10228 |
@item @command{test} (strings) |
@item @command{test} (strings) |
10229 |
@c --------------------------- |
@c --------------------------- |