patch-configure 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106
  1. $OpenBSD: patch-configure,v 1.8 2013/08/09 18:45:32 ajacoutot Exp $
  2. --- configure.orig Sat Nov 27 09:46:40 2004
  3. +++ configure Wed May 19 17:08:39 2010
  4. @@ -20225,15 +20225,17 @@ cat >>confdefs.h <<_ACEOF
  5. _ACEOF
  6. -echo $ac_n "checking for rxvt... "
  7. -if rxvt -help 2>&1 | grep geom >/dev/null ; then
  8. - XTERM_CMD="rxvt -fn %F -bg Navy -fg White " ;
  9. - echo "yes" ;
  10. -else
  11. - XTERM_CMD="xterm" ;
  12. - echo "no" ;
  13. +if [ -z "$XTERM_CMD" ]; then
  14. + echo $ac_n "checking for rxvt... "
  15. + if rxvt -help 2>&1 | grep geom >/dev/null ; then
  16. + XTERM_CMD="rxvt -fn %F -bg Navy -fg White " ;
  17. + echo "yes" ;
  18. + else
  19. + XTERM_CMD="xterm" ;
  20. + echo "no" ;
  21. + fi
  22. + rm -f conftestrxvt
  23. fi
  24. -rm -f conftestrxvt
  25. cat >>confdefs.h <<_ACEOF
  26. #define XTERM_CMD "${XTERM_CMD}"
  27. @@ -21654,32 +21656,14 @@ echo "$as_me:$LINENO: checking for python" >&5
  28. echo $ECHO_N "checking for python... $ECHO_C" >&6
  29. EPATH=`echo $PATH | sed -e 's+/bin:+ +g' -e 's+:+ +g'`
  30. +if test x$NOPYTHON = x; then
  31. +PYTHON_LIBDIR="${LOCALBASE}/lib/python${PYTHON_VER}/config"
  32. +LIBPY="python${PYTHON_VER}"
  33. +have_python_config=yes
  34. +PYTHON_INCLUDEDIR="${LOCALBASE}/include/python${PYTHON_VER}"
  35. +have_python_include=yes
  36. +fi
  37. -for i in / /opt /usr /usr/local /home $EPATH ; do
  38. - for j in . gnu local python ; do
  39. - for k in . gnu local python ; do
  40. - for l in lib . ; do
  41. - pylib=`echo $i/$j/$k/$l/python[0-9].[0-9]/config/libpython[0-9].[0-9].a`
  42. - for f in $pylib; do
  43. - if test -f "$f" && test $have_python_config = no ; then
  44. - PYTHON_LIBDIR=`echo $f | sed -e 's,/[^/]*$,,'`
  45. - LIBPY=`echo $f | sed -e 's,^.*/lib\(python.[.].\)[.]a$,\1,'`
  46. - have_python_config=yes
  47. - fi
  48. - done
  49. - done
  50. - pyinclude=`echo $i/$j/$k/include/python[0-9].[0-9]/Python.h`
  51. - for f in $pyinclude; do
  52. - if test -f "$f" && test $have_python_include = no ; then
  53. - PYTHON_INCLUDEDIR=`echo $f | sed -e 's,/[^/]*$,,'`
  54. - have_python_include=yes
  55. - fi
  56. - done
  57. - done
  58. - done
  59. -done
  60. -
  61. -
  62. if test x$have_python_config = xyes && test x$have_python_include = xyes ; then
  63. have_python=yes
  64. echo "$as_me:$LINENO: result: yes" >&5
  65. @@ -27610,7 +27594,7 @@ if test "${ac_cv_lib_intl_tolower+set}" = set; then
  66. echo $ECHO_N "(cached) $ECHO_C" >&6
  67. else
  68. ac_check_lib_save_LIBS=$LIBS
  69. -LIBS="-lintl $LIBS"
  70. +LIBS="-lintl -liconv $LIBS"
  71. cat >conftest.$ac_ext <<_ACEOF
  72. /* confdefs.h. */
  73. _ACEOF
  74. @@ -27673,7 +27657,7 @@ if test $ac_cv_lib_intl_tolower = yes; then
  75. #define HAVE_LIBINTL 1
  76. _ACEOF
  77. - LIBS="-lintl $LIBS"
  78. + LIBS="-lintl -liconv $LIBS"
  79. fi
  80. @@ -31046,7 +31030,7 @@ _ACEOF
  81. - INTLLIBS="$LIBINTL"
  82. + INTLLIBS="$LTLIBINTL"
  83. @@ -31834,7 +31818,7 @@ s,@USE_NLS@,$USE_NLS,;t t
  84. s,@LIBICONV@,$LIBICONV,;t t
  85. s,@LTLIBICONV@,$LTLIBICONV,;t t
  86. s,@INTLLIBS@,$INTLLIBS,;t t
  87. -s,@LIBINTL@,$LIBINTL,;t t
  88. +s,@LIBINTL@,$LTLIBINTL,;t t
  89. s,@LTLIBINTL@,$LTLIBINTL,;t t
  90. s,@POSUB@,$POSUB,;t t
  91. s,@LIBOBJS@,$LIBOBJS,;t t