Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
4cd6f2ab
Commit
4cd6f2ab
authored
Oct 14, 2000
by
Greg Ward
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bastian Kleineidam: make 'check_lib()' more like AC_CHECK_LIB by adding
an 'other_libraries()' parameter.
parent
0b4dafc3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
3 deletions
+6
-3
Lib/distutils/command/config.py
Lib/distutils/command/config.py
+6
-3
No files found.
Lib/distutils/command/config.py
View file @
4cd6f2ab
...
...
@@ -325,16 +325,19 @@ class config (Command):
# check_func ()
def
check_lib
(
self
,
library
,
library_dirs
=
None
,
headers
=
None
,
include_dirs
=
None
):
headers
=
None
,
include_dirs
=
None
,
other_libraries
=
[]
):
"""Determine if 'library' is available to be linked against,
without actually checking that any particular symbols are provided
by it. 'headers' will be used in constructing the source file to
be compiled, but the only effect of this is to check if all the
header files listed are available.
header files listed are available. Any libraries listed in
'other_libraries' will be included in the link, in case 'library'
has symbols that depend on other libraries.
"""
self
.
_check_compiler
()
return
self
.
try_link
(
"int main (void) { }"
,
headers
,
include_dirs
,
[
library
],
library_dirs
)
headers
,
include_dirs
,
[
library
]
+
other_libraries
,
library_dirs
)
def
check_header
(
self
,
header
,
include_dirs
=
None
,
library_dirs
=
None
,
lang
=
"c"
):
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment