OpenSDE Packages Database (without history before r20070)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

80 lines
3.0 KiB

  1. # --- SDE-COPYRIGHT-NOTE-BEGIN ---
  2. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  3. #
  4. # Filename: package/.../paragui/python24.patch
  5. # Copyright (C) 2008 The OpenSDE Project
  6. # Copyright (C) 2004 - 2006 The T2 SDE Project
  7. # Copyright (C) 1998 - 2003 Clifford Wolf
  8. #
  9. # More information can be found in the files COPYING and README.
  10. #
  11. # This patch file is dual-licensed. It is available under the license the
  12. # patched project is licensed under, as long as it is an OpenSource license
  13. # as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
  14. # of the GNU General Public License as published by the Free Software
  15. # Foundation; either version 2 of the License, or (at your option) any later
  16. # version.
  17. # --- SDE-COPYRIGHT-NOTE-END ---
  18. Adds support for detecting python2.4
  19. diff -ruN paragui-1.0.4/configure paragui-1.0.4-avm/configure
  20. --- paragui-1.0.4/configure 2003-06-27 10:34:29.000000000 +0200
  21. +++ paragui-1.0.4-avm/configure 2003-09-27 18:31:27.000000000 +0200
  22. @@ -7381,10 +7381,46 @@
  23. if test "x$PYTHON" = xno; then
  24. { echo "configure: error: *** Unable to find python interpreter! ***" 1>&2; exit 1; }
  25. fi
  26. - PYTHON_INCLUDE_DIR=""
  27. + PYTHON_INCLUDE_DIR=""
  28. PYTHON_LIB_DIR=""
  29. have_python_include=no
  30. - ac_safe=`echo "python2.2/Python.h" | sed 'y%./+-%__p_%'`
  31. + ac_safe=`echo "python2.4/Python.h" | sed 'y%./+-%__p_%'`
  32. +echo $ac_n "checking for python2.4/Python.h""... $ac_c" 1>&6
  33. +echo "configure:7426: checking for python2.4/Python.h" >&5
  34. +if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  35. + echo $ac_n "(cached) $ac_c" 1>&6
  36. +else
  37. + cat > conftest.$ac_ext <<EOF
  38. +#line 7431 "configure"
  39. +#include "confdefs.h"
  40. +#include <python2.4/Python.h>
  41. +EOF
  42. +ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  43. +{ (eval echo configure:7436: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  44. +ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  45. +if test -z "$ac_err"; then
  46. + rm -rf conftest*
  47. + eval "ac_cv_header_$ac_safe=yes"
  48. +else
  49. + echo "$ac_err" >&5
  50. + echo "configure: failed program was:" >&5
  51. + cat conftest.$ac_ext >&5
  52. + rm -rf conftest*
  53. + eval "ac_cv_header_$ac_safe=no"
  54. +fi
  55. +rm -f conftest*
  56. +fi
  57. +if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  58. + echo "$ac_t""yes" 1>&6
  59. + have_python_include=yes
  60. +else
  61. + echo "$ac_t""no" 1>&6
  62. +fi
  63. +
  64. + PYTHON_INCLUDE_DIR=$prefix/include/python2.4
  65. + PYTHON_LIB_DIR=$libdir/python2.4
  66. + if test x$have_python_include = xno; then
  67. + ac_safe=`echo "python2.2/Python.h" | sed 'y%./+-%__p_%'`
  68. echo $ac_n "checking for python2.2/Python.h""... $ac_c" 1>&6
  69. echo "configure:7390: checking for python2.2/Python.h" >&5
  70. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  71. @@ -7419,6 +7455,7 @@
  72. PYTHON_INCLUDE_DIR=$prefix/include/python2.2
  73. PYTHON_LIB_DIR=$libdir/python2.2
  74. + fi
  75. if test x$have_python_include = xno; then
  76. ac_safe=`echo "python2.1/Python.h" | sed 'y%./+-%__p_%'`
  77. echo $ac_n "checking for python2.1/Python.h""... $ac_c" 1>&6