python: use autoconf pre-processor when building via autoconf
* configure.ac: Add AC_PROG_CPP. * lang/python/Makefile.am: Set CPP environment for setup.py to use. Signed-off-by: Alon Bar-Lev <alon.barlev@gmail.com>
This commit is contained in:
parent
d785c053a9
commit
a827382caf
@ -109,6 +109,7 @@ AH_VERBATIM([_REENTRANT],
|
|||||||
#endif])
|
#endif])
|
||||||
|
|
||||||
AC_PROG_CC
|
AC_PROG_CC
|
||||||
|
AC_PROG_CPP
|
||||||
AC_PROG_CXX
|
AC_PROG_CXX
|
||||||
|
|
||||||
# Note: A suitable gitlog-to-changelog script can be found in GnuPG master.
|
# Note: A suitable gitlog-to-changelog script can be found in GnuPG master.
|
||||||
|
@ -39,6 +39,7 @@ copystamp:
|
|||||||
|
|
||||||
all-local: copystamp
|
all-local: copystamp
|
||||||
set -e ; for PYTHON in $(PYTHONS); do \
|
set -e ; for PYTHON in $(PYTHONS); do \
|
||||||
|
CPP="$(CPP)" \
|
||||||
CFLAGS="$(CFLAGS)" \
|
CFLAGS="$(CFLAGS)" \
|
||||||
srcdir="$(srcdir)" \
|
srcdir="$(srcdir)" \
|
||||||
top_builddir="$(top_builddir)" \
|
top_builddir="$(top_builddir)" \
|
||||||
@ -47,6 +48,7 @@ all-local: copystamp
|
|||||||
|
|
||||||
python$(PYTHON_VERSION)-gpg/dist/gpg-$(VERSION).tar.gz.asc: copystamp
|
python$(PYTHON_VERSION)-gpg/dist/gpg-$(VERSION).tar.gz.asc: copystamp
|
||||||
$(MKDIR_P) python$(PYTHON_VERSION)-gpg-dist
|
$(MKDIR_P) python$(PYTHON_VERSION)-gpg-dist
|
||||||
|
CPP="$(CPP)" \
|
||||||
CFLAGS="$(CFLAGS)" \
|
CFLAGS="$(CFLAGS)" \
|
||||||
srcdir="$(srcdir)" \
|
srcdir="$(srcdir)" \
|
||||||
top_builddir="$(top_builddir)" \
|
top_builddir="$(top_builddir)" \
|
||||||
@ -80,6 +82,8 @@ clean-local:
|
|||||||
|
|
||||||
install-exec-local:
|
install-exec-local:
|
||||||
set -e ; for PYTHON in $(PYTHONS); do \
|
set -e ; for PYTHON in $(PYTHONS); do \
|
||||||
|
CPP="$(CPP)" \
|
||||||
|
CFLAGS="$(CFLAGS)" \
|
||||||
srcdir="$(srcdir)" \
|
srcdir="$(srcdir)" \
|
||||||
top_builddir="$(top_builddir)" \
|
top_builddir="$(top_builddir)" \
|
||||||
$$PYTHON setup.py \
|
$$PYTHON setup.py \
|
||||||
|
Loading…
Reference in New Issue
Block a user