@@ -4163,7 +4163,7 @@ function calls whose arguments are not type compatible with the prototype.
41634163 </varlistentry >
41644164
41654165 <varlistentry >
4166- <term ><replaceable >context</replaceable >.<methodname >CheckLib</methodname >(<parameter >[library, symbol, header, language, autoadd=True, append=True, unique=False]</parameter >) </term >
4166+ <term ><replaceable >context</replaceable >.<methodname >CheckLib</methodname >(<parameter >[library, symbol, header, language, extra_libs=None, autoadd=True, append=True, unique=False]</parameter >) </term >
41674167 <listitem >
41684168<para >Checks if
41694169<parameter >library</parameter >
@@ -4173,12 +4173,19 @@ with the compiler selected by <parameter>language</parameter>,
41734173and optionally adds that library to the context.
41744174If supplied, the text of <parameter >header</parameter > is included at the
41754175top of the stub.
4176+ </para >
4177+ <para >
4178+ The remaining arguments should be specified in keyword style.
4179+ If <parameter >extra_libs</parameter > is specified,
4180+ it is a list off additional libraries to include when
4181+ linking the stub program (usually, dependencies of
4182+ the library being checked).
41764183If <parameter >autoadd</parameter > is true (the default),
41774184and the library provides the specified
4178- <parameter >symbol</parameter > (as defined by successfully
4179- linking the stub program) ,
4185+ <parameter >symbol</parameter >,
4186+ as defined by successfully linking the stub program,
41804187it is added to the &cv-link-LIBS; &consvar; in the context.
4181- if <parameter >append</parameter > is true (the default),
4188+ If <parameter >append</parameter > is true (the default),
41824189the library is appended, otherwise it is prepended.
41834190If <parameter >unique</parameter > is true,
41844191and the library would otherwise be added but is
@@ -4212,38 +4219,53 @@ at least one should be supplied.
42124219<emphasis >Changed in version 4.5.0: added the
42134220<parameter >append</parameter > and <parameter >unique</parameter >
42144221parameters.</emphasis >
4222+ </para >
4223+ <para >
4224+ <emphasis >Changed in version NEXT_RELEASE: added the
4225+ <parameter >extra_libs</parameter > parameter.</emphasis >
42154226</para >
42164227 </listitem >
42174228 </varlistentry >
42184229
42194230 <varlistentry >
4220- <term ><replaceable >context</replaceable >.<methodname >CheckLibWithHeader</methodname >(<parameter >library, header, [ language, call, autoadd=True, append=True, unique=False]</parameter >)</term >
4231+ <term ><replaceable >context</replaceable >.<methodname >CheckLibWithHeader</methodname >(<parameter >[ library, header, language, extra_libs=None, call=None , autoadd=True, append=True, unique=False]</parameter >)</term >
42214232 <listitem >
42224233
42234234<para >Provides an alternative to the
42244235<methodname >CheckLib</methodname > method
4225- for checking for libraries usable in a build.
4236+ for checking whether libraries are usable in a build.
4237+ The first three arguments can be given as
4238+ positional or keyword style arguments.
42264239<parameter >library</parameter >
4227- specifies a library or list of libraries to check.
4240+ specifies a library or list of libraries to check
4241+ (the default is <literal >None</literal >),
42284242<parameter >header</parameter >
4229- specifies a header to include in the test program,
4230- and <parameter >language</parameter > indicates the compiler to use.
4243+ specifies header text to include in the test program.
42314244<parameter >header</parameter >
4232- may be a list,
4245+ may also be a list,
42334246in which case the last item in the list
42344247is the header file to be checked,
42354248and the previous list items are
42364249header files whose
42374250<literal >#include</literal >
42384251lines should precede the
42394252header line being checked for.
4240- A code fragment
4241- (must be a valid expression, including a trailing semicolon)
4242- to serve as the test can be supplied in
4243- <parameter >call</parameter >;
4244- if not supplied,
4253+ The default is to include no header text.
4254+ <parameter >language</parameter > indicates the compiler to use
4255+ (default "C").
4256+ </para >
4257+
4258+ <para >
4259+ The remaining parameters should be specified in keyword style.
4260+ If provided, <parameter >call</parameter >
4261+ is a code fragment to compile as the stub test,
4262+ replacing the auto-generated stub.
4263+ The fragment must be a valid expression in <parameter >language</parameter >.
4264+ If not supplied,
42454265the default checks the ability to link against the specified
42464266<parameter >library</parameter >.
4267+ <parameter >extra_libs</parameter > can be used to add additional libraries
4268+ to link against (usually, dependencies of the library under test).
42474269If <parameter >autoadd</parameter > is true (the default),
42484270the first library that passes the check
42494271is added to the &cv-link-LIBS; &consvar; in the context
@@ -4255,11 +4277,17 @@ and the library would otherwise be added but is
42554277already present in &cv-link-LIBS; in the configure context,
42564278it will not be added again. The default is <literal >False</literal >.
42574279</para >
4280+
42584281<para >Returns a boolean indicating success or failure.</para >
4282+
42594283<para >
42604284<emphasis >Changed in version 4.5.0: added the
42614285<parameter >append</parameter > and <parameter >unique</parameter >
42624286parameters.</emphasis >
4287+ </para >
4288+ <para >
4289+ <emphasis >Changed in version NEXT_RELEASE: added the
4290+ <parameter >extra_libs</parameter > parameter.</emphasis >
42634291</para >
42644292 </listitem >
42654293 </varlistentry >
0 commit comments