Next: , Previous: , Up: The Macros  


ax_cond_with_level

Synopsis

AX_COND_WITH_LEVEL(PACKAGE [,DEFAULT [,YESLEVEL]])

Description

Actually used after an AC_ARG_WITH(PKG,...) option-directive, where AC_ARG_WITH is a part of the standard autoconf to define a ‘configure‘ –with-PKG option.

This macros works almost like AC_COND_WITH(PACKAGE [,DEFAULT]), but the definition is set to a numeric value. The level of a simple "yes" is given (or assumed "2" if absent), otherwise the level can be given in mnemonic names, being:

 1 = some
 2 = many
 3 = all
 4 = extra
 5 = extrasome more
 6 = extramany muchmore much
 7 = super everything
 8 = ultra experimental
 9 = insane

this macro is most handily it making Makefile.in/Makefile.am that have a set of with-level declarations, especially optimization-levels

the $withval shell-variable is set for further examination (it carries the numeric value of the various mnemonics above)

Source Code

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

License

Copyright © 2008 Guido U. Draheim guidod@gmx.de

Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. This file is offered as-is, without any warranty.