mirror of the now-defunct rocklinux.org
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.

217 lines
7.0 KiB

  1. # --- ROCK-COPYRIGHT-NOTE-BEGIN ---
  2. #
  3. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  4. # Please add additional copyright information _after_ the line containing
  5. # the ROCK-COPYRIGHT-NOTE-END tag. Otherwise it might get removed by
  6. # the ./scripts/Create-CopyPatch script. Do not edit this copyright text!
  7. #
  8. # ROCK Linux: rock-src/package/rene/xemacs-beta/xft-configure.patch
  9. # ROCK Linux is Copyright (C) 1998 - 2004 Clifford Wolf
  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. #
  18. # --- ROCK-COPYRIGHT-NOTE-END ---
  19. The pre-generated configure. Recent autoconf fail to generate it - so I used
  20. and ancient system to do so. Clean up majorly since each line-number reference
  21. changed and we do not want a multiple hundret kB diff ...
  22. - Rene Rebe <rene@exactcode.de>
  23. diff -ur xemacs-21.5.17/configure xemacs-21.5.17-xft/configure
  24. --- xemacs-21.5.17/configure 2004-03-22 09:50:04.000000000 +0100
  25. +++ xemacs-21.5.17-xft/configure 2004-04-27 05:03:40.000000000 +0200
  26. @@ -364,6 +364,7 @@
  27. with_hesiod | \
  28. with_dnet | \
  29. with_infodock | \
  30. + with_xft | \
  31. with_netinstall | \
  32. with_ipv6_cname | \
  33. external_widget | \
  34. @@ -7393,25 +7387,156 @@
  35. fi
  36. fi
  37. +
  38. + if test "$with_xft" = "yes"; then
  39. + echo "checking xft-config program" 1>&6
  40. +echo "configure:7396: checking xft-config program" >&5
  41. + # Extract the first word of "xft-config", so it can be a program name with args.
  42. +set dummy xft-config; ac_word=$2
  43. +echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  44. +echo "configure:7400: checking for $ac_word" >&5
  45. +
  46. +if test -n "$XFT_CONFIG"; then
  47. + ac_cv_prog_XFT_CONFIG="$XFT_CONFIG" # Let the user override the test.
  48. +else
  49. + IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  50. + ac_dummy="$PATH"
  51. + for ac_dir in $ac_dummy; do
  52. + test -z "$ac_dir" && ac_dir=.
  53. + if test -f $ac_dir/$ac_word; then
  54. + ac_cv_prog_XFT_CONFIG=""yes""
  55. + break
  56. + fi
  57. + done
  58. + IFS="$ac_save_ifs"
  59. + test -z "$ac_cv_prog_XFT_CONFIG" && ac_cv_prog_XFT_CONFIG=""no""
  60. +fi
  61. +XFT_CONFIG="$ac_cv_prog_XFT_CONFIG"
  62. +if test -n "$XFT_CONFIG"; then
  63. + echo "$ac_t""$XFT_CONFIG" 1>&6
  64. +else
  65. + echo "$ac_t""no" 1>&6
  66. +fi
  67. +
  68. +
  69. + if test "$XFT_CONFIG" = "yes"; then
  70. + echo "$ac_t""found" 1>&6
  71. + libs_x="`xft-config --libs` $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"`xft-config --libs`\" to \$libs_x"; fi
  72. + X_CFLAGS="`xft-config --cflags` $X_CFLAGS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"`xft-config --cflags`\" to \$X_CFLAGS"; fi
  73. + else
  74. + echo "$ac_t""not found, checking for Xft 1.x" 1>&6
  75. +
  76. +echo $ac_n "checking for XRenderQueryExtension in -lXrender""... $ac_c" 1>&6
  77. +echo "configure:7433: checking for XRenderQueryExtension in -lXrender" >&5
  78. +ac_lib_var=`echo Xrender'_'XRenderQueryExtension | sed 'y%./+-%__p_%'`
  79. +
  80. +xe_check_libs=" -lXrender "
  81. +cat > conftest.$ac_ext <<EOF
  82. +#line 7438 "configure"
  83. +#include "confdefs.h"
  84. +/* Override any gcc2 internal prototype to avoid an error. */
  85. +/* We use char because int might match the return type of a gcc2
  86. + builtin and then its argument prototype would still apply. */
  87. +char XRenderQueryExtension();
  88. +
  89. +int main() {
  90. +XRenderQueryExtension()
  91. +; return 0; }
  92. +EOF
  93. +if { (eval echo configure:7449: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  94. + rm -rf conftest*
  95. + eval "ac_cv_lib_$ac_lib_var=yes"
  96. +else
  97. + echo "configure: failed program was:" >&5
  98. + cat conftest.$ac_ext >&5
  99. + rm -rf conftest*
  100. + eval "ac_cv_lib_$ac_lib_var=no"
  101. +fi
  102. +rm -f conftest*
  103. +xe_check_libs=""
  104. +
  105. +if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
  106. + echo "$ac_t""yes" 1>&6
  107. + libs_x="-lXrender $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXrender\" to \$libs_x"; fi
  108. +else
  109. + echo "$ac_t""no" 1>&6
  110. +(echo "$progname: Usage error:"
  111. +echo " " "Unable to find libXrender for --with-xft"
  112. +echo " Use \`$progname --help' to show usage.") >&2 && exit 1
  113. +fi
  114. +
  115. +
  116. +
  117. +echo $ac_n "checking for XftFontOpen in -lXft""... $ac_c" 1>&6
  118. +echo "configure:7474: checking for XftFontOpen in -lXft" >&5
  119. +ac_lib_var=`echo Xft'_'XftFontOpen | sed 'y%./+-%__p_%'`
  120. +
  121. +xe_check_libs=" -lXft "
  122. +cat > conftest.$ac_ext <<EOF
  123. +#line 7479 "configure"
  124. +#include "confdefs.h"
  125. +/* Override any gcc2 internal prototype to avoid an error. */
  126. +/* We use char because int might match the return type of a gcc2
  127. + builtin and then its argument prototype would still apply. */
  128. +char XftFontOpen();
  129. +
  130. +int main() {
  131. +XftFontOpen()
  132. +; return 0; }
  133. +EOF
  134. +if { (eval echo configure:7490: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  135. + rm -rf conftest*
  136. + eval "ac_cv_lib_$ac_lib_var=yes"
  137. +else
  138. + echo "configure: failed program was:" >&5
  139. + cat conftest.$ac_ext >&5
  140. + rm -rf conftest*
  141. + eval "ac_cv_lib_$ac_lib_var=no"
  142. +fi
  143. +rm -f conftest*
  144. +xe_check_libs=""
  145. +
  146. +if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
  147. + echo "$ac_t""yes" 1>&6
  148. + libs_x="-lXft $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXft\" to \$libs_x"; fi
  149. +else
  150. + echo "$ac_t""no" 1>&6
  151. +(echo "$progname: Usage error:"
  152. +echo " " "Unable to find libXft for --with-xft"
  153. +echo " Use \`$progname --help' to show usage.") >&2 && exit 1
  154. +fi
  155. +
  156. +
  157. + fi
  158. + { test "$extra_verbose" = "yes" && cat << \EOF
  159. + Defining USE_XFT
  160. +EOF
  161. +cat >> confdefs.h <<\EOF
  162. +#define USE_XFT 1
  163. +EOF
  164. +}
  165. +
  166. + fi
  167. +
  168. fi
  169. if test "$with_msw" != "no"; then
  170. echo "checking for MS-Windows" 1>&6
  171. -echo "configure:7400: checking for MS-Windows" >&5
  172. +echo "configure:7527: checking for MS-Windows" >&5
  173. echo $ac_n "checking for main in -lgdi32""... $ac_c" 1>&6
  174. -echo "configure:7403: checking for main in -lgdi32" >&5
  175. +echo "configure:7530: checking for main in -lgdi32" >&5
  176. ac_lib_var=`echo gdi32'_'main | sed 'y%./+-%__p_%'`
  177. xe_check_libs=" -lgdi32 "
  178. cat > conftest.$ac_ext <<EOF
  179. -#line 7408 "configure"
  180. +#line 7535 "configure"
  181. #include "confdefs.h"
  182. int main() {
  183. main()
  184. ; return 0; }
  185. EOF
  186. -if { (eval echo configure:7415: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  187. +if { (eval echo configure:7542: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  188. rm -rf conftest*
  189. eval "ac_cv_lib_$ac_lib_var=yes"
  190. else
  191. @@ -16173,6 +16298,9 @@
  192. if test "$with_xauth" != yes; then
  193. echo " - Xau (X authority) not available."
  194. fi
  195. + if test "$with_xft" = "yes"; then
  196. + echo " Compiling in support for Xft antialiased fonts."
  197. + fi
  198. if test "$with_xmu" != yes; then
  199. echo " - Xmu library not available; substituting equivalent routines."
  200. fi
  201. @@ -16460,6 +16588,7 @@
  202. s%@X_PRE_LIBS@%$X_PRE_LIBS%g
  203. s%@X_LIBS@%$X_LIBS%g
  204. s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
  205. +s%@XFT_CONFIG@%$XFT_CONFIG%g
  206. s%@install_pp@%$install_pp%g
  207. s%@libs_xauth@%$libs_xauth%g
  208. s%@dnd_objs@%$dnd_objs%g