instance method Kernel#with_config
with_config(config, default = nil) -> bool | String
[added by mkmf]with_config(config, default = nil) {|config, default| ... } -> bool | String
[added by mkmf]-
configure のオプションを検査します。
configure のオプションに --with-<config> が指定された場合は真を返しま す。--without-<config> が指定された場合は偽を返します。どちらでもない場 合は default を返します。
これはデバッグ情報などのカスタム定義を、追加するのに役立ちます。
- [PARAM] config:
- configure のオプションの名前を指定します。
- [PARAM] default:
- デフォルト値を返します。
例
if with_config("debug") $defs.push("-DOSSL_DEBUG") unless $defs.include? "-DOSSL_DEBUG" end
module Kernel