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
ba6a6cfb
Commit
ba6a6cfb
authored
Oct 16, 2012
by
Benjamin Peterson
Browse files
Options
Browse Files
Download
Plain Diff
merge heads
parents
bf67ba8f
d86ceecf
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
35 additions
and
0 deletions
+35
-0
Makefile.pre.in
Makefile.pre.in
+1
-0
configure
configure
+18
-0
configure.ac
configure.ac
+16
-0
No files found.
Makefile.pre.in
View file @
ba6a6cfb
...
...
@@ -27,6 +27,7 @@ MODLIBS= _MODLIBS_
VERSION
=
@VERSION@
srcdir
=
@srcdir@
VPATH
=
@srcdir@
BUILDDIR
=
@BUILDDIR@
CC
=
@CC@
CXX
=
@CXX@
...
...
configure
View file @
ba6a6cfb
...
...
@@ -648,6 +648,8 @@ HAS_HG
HGBRANCH
HGTAG
HGVERSION
BASECPPFLAGS
BUILDDIR
SVNVERSION
ARFLAGS
AR
...
...
@@ -5175,6 +5177,22 @@ else
SVNVERSION
=
"echo Unversioned directory"
fi
BUILDDIR
=
"
`
pwd
`
"
if
test
"
$srcdir
"
!=
"
$BUILDDIR
"
;
then
# If we're building out-of-tree make sure Include (in the current dir)
# gets picked up before its $srcdir counterpart in order for Python-ast.h
# and graminit.h to get picked up from the correct directory.
# (A side effect of this is that these resources will automatically be
# regenerated when building out-of-tree, regardless of whether or not
# the $srcdir counterpart is up-to-date. This is an acceptable trade
# off.)
BASECPPFLAGS
=
"-IInclude"
else
BASECPPFLAGS
=
""
fi
...
...
configure.ac
View file @
ba6a6cfb
...
...
@@ -854,6 +854,22 @@ else
SVNVERSION="echo Unversioned directory"
fi
BUILDDIR="`pwd`"
AC_SUBST(BUILDDIR)
AC_SUBST(BASECPPFLAGS)
if test "$srcdir" != "$BUILDDIR"; then
# If we're building out-of-tree make sure Include (in the current dir)
# gets picked up before its $srcdir counterpart in order for Python-ast.h
# and graminit.h to get picked up from the correct directory.
# (A side effect of this is that these resources will automatically be
# regenerated when building out-of-tree, regardless of whether or not
# the $srcdir counterpart is up-to-date. This is an acceptable trade
# off.)
BASECPPFLAGS="-IInclude"
else
BASECPPFLAGS=""
fi
AC_SUBST(HGVERSION)
AC_SUBST(HGTAG)
AC_SUBST(HGBRANCH)
...
...
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