patch-configure 2.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. $OpenBSD: patch-configure,v 1.2 2017/04/17 21:43:15 sthen Exp $
  2. Disable some questionable/broken/dangerous features.
  3. We also don't require -lipc anymore.
  4. --- configure.orig Tue Oct 21 04:32:25 2003
  5. +++ configure Mon Apr 17 14:24:03 2017
  6. @@ -463,26 +463,10 @@ case "$FEATURE_XFT" in
  7. ;;
  8. esac
  9. -# if network protocols are unspecified, and the network header files are
  10. -# present, then assume they should be used.
  11. -if [ "$PROTOCOL_HTTP" = "" -a "$inet" ]
  12. -then
  13. - why "Assuming HTTP should be supported because Internet headers were found"
  14. - PROTOCOL_HTTP=define
  15. -elif [ "$PROTOCOL_HTTP" = "" ]
  16. -then
  17. - why "Assuming HTTP should not be supported because Internet headers were not found"
  18. - PROTOCOL_HTTP=undef
  19. -fi
  20. -if [ "$PROTOCOL_FTP" = "" -a "$inet" ]
  21. -then
  22. - why "Assuming FTP should be supported because Internet headers were found"
  23. - PROTOCOL_FTP=define
  24. -elif [ "$PROTOCOL_FTP" = "" ]
  25. -then
  26. - why "Assuming FTP should not be supported because Internet headers were not found"
  27. - PROTOCOL_FTP=undef
  28. -fi
  29. +why "Assuming HTTP should not be supported because it's dangerous"
  30. +PROTOCOL_HTTP=undef
  31. +why "Assuming FTP should not be supported because it's dangerous"
  32. +PROTOCOL_FTP=undef
  33. ################################################################################
  34. @@ -794,8 +778,6 @@ case "$SYS" in
  35. why "For OpenBSD, we ignore the <sys/select.h> file"
  36. NEED_SELECT_H="undef"
  37. TLIBS="-lcurses"
  38. - who " To support X11, it also requires -lipc"
  39. - XLIBS=" -lipc"
  40. ;;
  41. *netbsd*)
  42. @@ -979,15 +961,15 @@ cat >config.h <<eof-config
  43. */
  44. #define DISPLAY_HEX /* hex interactive hex dump */
  45. #define DISPLAY_HTML /* html formatted text */
  46. -#define DISPLAY_MAN /* man formatted text */
  47. -#define DISPLAY_TEX /* tex formatted text */
  48. +#undef DISPLAY_MAN /* man formatted text */
  49. +#undef DISPLAY_TEX /* tex formatted text */
  50. #define DISPLAY_SYNTAX /* syntax generic syntax coloring */
  51. #${PROTOCOL_HTTP} PROTOCOL_HTTP /* define to enable HTTP; undef to disable */
  52. #${PROTOCOL_FTP} PROTOCOL_FTP /* define to enable FTP; undef to disable */
  53. #define FEATURE_ALIAS /* the :alias command */
  54. #define FEATURE_ARRAY /* arrays in :calc expressions */
  55. #define FEATURE_AUTOCMD /* the :autocmd command */
  56. -#define FEATURE_BACKTICK /* the \`program\` notation in file names */
  57. +#undef FEATURE_BACKTICK /* the \`program\` notation in file names */
  58. #define FEATURE_BROWSE /* the :browse and :sbrowse commands */
  59. #define FEATURE_CACHEDESC /* store syntax/markup descriptions in RAM */
  60. #define FEATURE_CALC /* built-in calculator -- see command below */