From: Tobias Oetiker Date: Wed, 7 Feb 2007 21:35:07 +0000 (+0000) Subject: use setup.py for python install and build work instad of trying todo it on our own X-Git-Tag: 1.2.20~35 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7a83911daa9225a7229b2d6fc4e0128703537a22;p=thirdparty%2Frrdtool-1.x.git use setup.py for python install and build work instad of trying todo it on our own git-svn-id: svn://svn.oetiker.ch/rrdtool/branches/1.2/program@993 a5681a0c-68f1-0310-ab6d-d61299d08faa --- diff --git a/Makefile.am b/Makefile.am index 0fa53a37..1ed16705 100644 --- a/Makefile.am +++ b/Makefile.am @@ -45,6 +45,6 @@ site-tcl-install: all cd bindings/tcl && $(MAKE) tcl-install site-python-install: all - cd bindings/python && $(MAKE) python-install + cd bindings/python && $(PYTHON) setup.py install ##END## diff --git a/configure.ac b/configure.ac index ca95a1b8..19fae7be 100644 --- a/configure.ac +++ b/configure.ac @@ -504,6 +504,7 @@ else fi + AC_MSG_CHECKING(Ruby Modules to build) AC_MSG_RESULT(${COMP_RUBY:-No Ruby Modules will be built}) @@ -583,7 +584,13 @@ AM_PATH_PYTHON(2.3,[],[enable_python=no]) AM_CHECK_PYTHON_HEADERS(,[enable_python=no;AC_MSG_WARN(could not find Python headers)]) fi -AM_CONDITIONAL(BUILD_PYTHON,[test "$enable_python" = "yes"]) +if test x$enable_python = xno; then + COMP_PYTHON= +else + COMP_PYTHON="python" +fi + +AC_SUBST(COMP_PYTHON) dnl Check for nroff AC_PATH_PROGS(NROFF, gnroff nroff)