Next: , Previous: , Up: The Macros  


ax_cc_tentdef

Synopsis

AX_CC_TENTDEF

Description

Determine whether the C compiler supports C tentative defintions. See K&R book Appendix A10.2 on ’extern’ and tentative definitions. Some compilers use a ’strict definition-reference model’ Traditionally most UNIX C compilers support tentative definitions, whereas some compiler such as Metrowerks or WATCOM C do not.

The $ac_cv_tentdef variable will be either no or yes, and can be overridden on the command line using –with-tentdef

See also: ax_cc_attrcommon.m4 for a __attribute__(( __common__)) test

Source Code

Download the latest version of ax_cc_tentdef.m4 or browse the macro’s revision history.

License

Copyright © 1996-2023 David Stes

This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program. If not, see <https://www.gnu.org/licenses/>.