]> git.pld-linux.org Git - packages/abiword.git/blob - abiword-python24.patch
- do not associate any text format on this planet with abiword, especially
[packages/abiword.git] / abiword-python24.patch
1 --- abiword-2.0.14/abiword-plugins/tools/gypsython/plugin.m4.orig       2004-12-23 14:01:57.074696040 +0100
2 +++ abiword-2.0.14/abiword-plugins/tools/gypsython/plugin.m4    2004-12-23 14:02:20.946626000 +0100
3 @@ -28,27 +28,27 @@
4  # Checks for libraries.
5  # Checks for header files.
6  
7 -AC_ARG_WITH(python,[  --with-python=DIR        Python 2.3 library in DIR],[
8 +AC_ARG_WITH(python,[  --with-python=DIR        Python 2.4 library in DIR],[
9         if test "x$withval" = "xno"; then
10                 ABI_PLUGIN_REPORT([gypsython: Python support disabled])
11                 abi_plugin_disable=yes
12         elif test "x$withval" != "xyes"; then
13 -               ABI_GYPSY_CPPFLAGS="-I$withval/include/python2.3"
14 +               ABI_GYPSY_CPPFLAGS="-I$withval/include/python2.4 -I$withval/include/python2.3"
15                 ABI_GYPSY_LDFLAGS="-L$withval/lib"
16 -               CPPFLAGS="$CPPFLAGS -I$withval/include/python2.3"
17 +               CPPFLAGS="$CPPFLAGS -I$withval/include/python2.4 -I$withval/include/python2.3"
18                 LDFLAGS="$LDFLAGS -L$withval/lib"
19         else
20 -               ABI_GYPSY_CPPFLAGS="-I/usr/include/python2.3"
21 -               CPPFLAGS="$CPPFLAGS -I/usr/include/python2.3"
22 +               ABI_GYPSY_CPPFLAGS="-I/usr/include/python2.4 -I/usr/include/python2.3"
23 +               CPPFLAGS="$CPPFLAGS -I/usr/include/python2.4 -I/usr/include/python2.3"
24         fi
25 -],[    ABI_GYPSY_CPPFLAGS="-I/usr/include/python2.3"
26 -       CPPFLAGS="$CPPFLAGS -I/usr/include/python2.3"
27 +],[    ABI_GYPSY_CPPFLAGS="-I/usr/include/python2.4 -I/usr/include/python2.3"
28 +       CPPFLAGS="$CPPFLAGS -I/usr/include/python2.4 -I/usr/include/python2.3"
29  ])
30  
31  if test $abi_plugin_disable != yes; then
32         AC_CHECK_HEADER(Python.h,[
33 -               AC_CHECK_LIB(python2.3,Py_Initialize,[
34 -                       ABI_GYPSY_LDFLAGS="$ABI_GYPSY_LDFLAGS -lpython2.3"
35 +               AC_CHECK_LIB(python,Py_Initialize,[
36 +                       ABI_GYPSY_LDFLAGS="$ABI_GYPSY_LDFLAGS -lpython"
37                         ABI_PLUGIN_REPORT([gypsython: okay])
38                 ],[     ABI_PLUGIN_REPORT([gypsython: error - Python library not found])
39                         abi_plugin_disable=yes
40 --- abiword-2.0.14/abiword-plugins/tools/gypsython/xp/Gypsython.h.orig  2004-12-23 14:10:50.111645632 +0100
41 +++ abiword-2.0.14/abiword-plugins/tools/gypsython/xp/Gypsython.h       2004-12-23 14:11:02.641740768 +0100
42 @@ -37,7 +37,7 @@
43  #include "xap_Dlg_Language.h"
44  #include "xap_Frame.h"
45  
46 -#include <python2.3/Python.h>
47 +#include <Python.h>
48   
49   
50   
This page took 0.105207 seconds and 3 git commands to generate.