Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
N
nghttp2
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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Libraries
nghttp2
Commits
9d630901
Commit
9d630901
authored
Dec 16, 2013
by
Tatsuhiro Tsujikawa
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add check for cython and substitute python and cython in Makefile.am
parent
ff2eb0de
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
4 deletions
+16
-4
configure.ac
configure.ac
+6
-0
python/Makefile.am
python/Makefile.am
+10
-4
No files found.
configure.ac
View file @
9d630901
...
...
@@ -73,6 +73,9 @@ AC_ARG_WITH([libxml2],
[disable support for libxml2])],
[], [with_libxml2=yes])
dnl Define variables
AC_ARG_VAR([CYTHON], [the Cython executable])
dnl Checks for programs
AC_PROG_CC
AC_PROG_CXX
...
...
@@ -82,6 +85,7 @@ AC_PROG_MAKE_SET
AM_PROG_CC_C_O
PKG_PROG_PKG_CONFIG([0.20])
AM_PATH_PYTHON([2.6],, [:])
AC_CHECK_PROGS([CYTHON], [cython.py cython])
AX_CXX_COMPILE_STDCXX_11([noext], [optional])
...
...
@@ -354,4 +358,6 @@ AC_MSG_NOTICE([summary of build options:
Examples: ${enable_examples}
Hdtest: ${enable_hdtest}
Failmalloc: ${request_failmalloc}
Python: ${PYTHON} ${PYTHON_VERSION}
Cython: ${CYTHON}
])
python/Makefile.am
View file @
9d630901
...
...
@@ -25,12 +25,18 @@ EXTRA_DIST = README.rst cnghttp2.pxd nghttp2.pyx setup.py
PYSETUP_INCLUDE_DIRS
=
$(top_srcdir)
/lib/includes:
$(top_srcdir)
/lib
PYSETUP_LIBDIRS
=
$(top_builddir)
/lib/.libs
CYTHON
=
@CYTHON@
PYTHON
=
@PYTHON@
nghttp2.c
:
nghttp2.pyx cnghttp2.pxd
cython nghttp2.pyx
.PHONY
:
help build_ext
help
:
@
echo
"Please use
\`
make <target>
\`
where <target> is one of"
@
echo
" build_ext to build Python @PYTHON_VERSION@ nghttp2 extension"
.PHONY
:
build_ext
nghttp2.c
:
nghttp2.pyx cnghttp2.pxd
$(CYTHON)
nghttp2.pyx
build_ext
:
nghttp2.c
python
setup.py build_ext
--include-dirs
=
$(PYSETUP_INCLUDE_DIRS)
\
$(PYTHON)
setup.py build_ext
--include-dirs
=
$(PYSETUP_INCLUDE_DIRS)
\
--library-dirs
=
$(PYSETUP_LIBDIRS)
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