diff options
author | Robert Schwebel <r.schwebel@pengutronix.de> | 2006-08-31 08:26:55 +0000 |
---|---|---|
committer | Robert Schwebel <r.schwebel@pengutronix.de> | 2006-08-31 08:26:55 +0000 |
commit | 29b011627069459f69666562b2d34d9814a42155 (patch) | |
tree | e1ce42369fd1ac175a13f5655b17bce15d65e500 /patches/mod_python-3.2.8/generic/configure.in-apache-version.diff | |
parent | 23a7c93b4575a6c244e19e637ad8b79b30569062 (diff) | |
download | ptxdist-29b011627069459f69666562b2d34d9814a42155.tar.gz ptxdist-29b011627069459f69666562b2d34d9814a42155.tar.xz |
* mod_python: add patches to cross compile mod_python
git-svn-id: https://svn.pengutronix.de/svn/ptxdist/trunks/ptxdist-trunk@6025 33e552b5-05e3-0310-8538-816dae2090ed
Diffstat (limited to 'patches/mod_python-3.2.8/generic/configure.in-apache-version.diff')
-rw-r--r-- | patches/mod_python-3.2.8/generic/configure.in-apache-version.diff | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/patches/mod_python-3.2.8/generic/configure.in-apache-version.diff b/patches/mod_python-3.2.8/generic/configure.in-apache-version.diff new file mode 100644 index 000000000..5aa91bfe7 --- /dev/null +++ b/patches/mod_python-3.2.8/generic/configure.in-apache-version.diff @@ -0,0 +1,32 @@ +Index: mod_python-3.2.8/configure.in +=================================================================== +--- mod_python-3.2.8.orig/configure.in ++++ mod_python-3.2.8/configure.in +@@ -108,6 +108,7 @@ else + + # check Apache version + AC_MSG_CHECKING(Apache version) ++ if test "x$cross_compiling" = "xno"; then + HTTPD="`${APXS} -q SBINDIR`/`${APXS} -q TARGET`" + ver=`$HTTPD -v | awk '/version/ {print $3}' | awk -F/ '{print $2}'` + AC_MSG_RESULT($ver) +@@ -126,7 +127,9 @@ else + AC_MSG_CHECKING([for Apache include directory]) + AP_INCLUDES="-I`${APXS} -q INCLUDEDIR`" + AC_MSG_RESULT($AP_INCLUDES) +- ++ else ++ AC_MSG_RESULT([cross_compiling, assuming recent new version...]) ++ fi + dnl Small hack to work around _eprintf.o problem on Solaris + if test "`uname`" = "SunOS"; then + AC_MSG_CHECKING([for gcc on Solaris possible missing _eprintf problem]) +@@ -287,7 +290,7 @@ MOD_PYTHON_SO="`pwd`/src/mod_python.so" + # get the mod_python version + AC_SUBST(MP_VERSION) + MP_VERSION=`awk '/MPV_STRING/ {print $3}' src/include/mpversion.h` +-MP_VERSION=`echo $MP_VERSION | sed s/\\"//g` ++MP_VERSION=`echo $MP_VERSION | sed s/\"//g` + + # get --with-python-src. The python src is required to generate the documentation + # It is not required to compile or install mod_python itself |