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.

79 lines
3.0 KiB

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