patch-configure 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107
  1. $OpenBSD: patch-configure,v 1.17 2017/01/03 19:30:58 landry Exp $
  2. --- configure.orig.port Mon Oct 31 15:43:29 2016
  3. +++ configure Mon Oct 31 15:46:17 2016
  4. @@ -1,4 +1,4 @@
  5. -#! /bin/sh
  6. +#!/usr/bin/env bash
  7. # Guess values for system-dependent variables and create Makefiles.
  8. # Generated by GNU Autoconf 2.69 for LibreOffice 5.2.2.2.0+.
  9. #
  10. @@ -273,7 +273,7 @@ $0: the script under such a shell if you do have one."
  11. fi
  12. fi
  13. fi
  14. -SHELL=${CONFIG_SHELL-/bin/sh}
  15. +SHELL=${CONFIG_SHELL-/usr/bin/env bash}
  16. export SHELL
  17. # Unset more variables known to interfere with behavior of common tools.
  18. CLICOLOR_FORCE= GREP_OPTIONS=
  19. @@ -5942,6 +5942,7 @@ openbsd*)
  20. test_gtk=yes
  21. test_tde=yes
  22. test_freetype=yes
  23. + test_kde4=yes
  24. PTHREAD_CFLAGS="-D_THREAD_SAFE"
  25. PTHREAD_LIBS="-pthread"
  26. _os=OpenBSD
  27. @@ -9847,7 +9848,7 @@ fi
  28. # Use -isystem (gcc) if possible, to avoid warnigs in 3rd party headers.
  29. # NOTE: must _not_ be used for bundled external libraries!
  30. ISYSTEM=
  31. -if test "$GCC" = "yes"; then
  32. +if test "$GCC" = "yes" -a "$_os" != "OpenBSD" ; then
  33. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -isystem " >&5
  34. $as_echo_n "checking for -isystem ... " >&6; }
  35. save_CFLAGS=$CFLAGS
  36. @@ -23123,7 +23124,7 @@ if ${am_cv_pathless_PYTHON+:} false; then :
  37. $as_echo_n "(cached) " >&6
  38. else
  39. - for am_cv_pathless_PYTHON in python python2 python3 python3.3 python3.2 python3.1 python3.0 python2.7 python2.6 python2.5 python2.4 python2.3 python2.2 python2.1 python2.0 none; do
  40. + for am_cv_pathless_PYTHON in python${MODPY_DEFAULT_VERSION_3} python python2 python3 python3.3 python3.2 python3.1 python3.0 python2.7 python2.6 python2.5 python2.4 python2.3 python2.2 python2.1 python2.0 none; do
  41. test "$am_cv_pathless_PYTHON" = none && break
  42. prog="import sys
  43. # split strings by '.' and convert to numeric. Append some zeros
  44. @@ -23424,7 +23425,7 @@ if ${am_cv_pathless_PYTHON+:} false; then :
  45. $as_echo_n "(cached) " >&6
  46. else
  47. - for am_cv_pathless_PYTHON in python python2 python3 python3.3 python3.2 python3.1 python3.0 python2.7 python2.6 python2.5 python2.4 python2.3 python2.2 python2.1 python2.0 none; do
  48. + for am_cv_pathless_PYTHON in python${MODPY_DEFAULT_VERSION_3} python python2 python3 python3.3 python3.2 python3.1 python3.0 python2.7 python2.6 python2.5 python2.4 python2.3 python2.2 python2.1 python2.0 none; do
  49. test "$am_cv_pathless_PYTHON" = none && break
  50. prog="import sys
  51. # split strings by '.' and convert to numeric. Append some zeros
  52. @@ -23744,7 +23745,7 @@ if ${am_cv_pathless_PYTHON+:} false; then :
  53. $as_echo_n "(cached) " >&6
  54. else
  55. - for am_cv_pathless_PYTHON in python python2 python3 python3.3 python3.2 python3.1 python3.0 python2.7 python2.6 python2.5 python2.4 python2.3 python2.2 python2.1 python2.0 none; do
  56. + for am_cv_pathless_PYTHON in python${MODPY_DEFAULT_VERSION_3} python python2 python3 python3.3 python3.2 python3.1 python3.0 python2.7 python2.6 python2.5 python2.4 python2.3 python2.2 python2.1 python2.0 none; do
  57. test "$am_cv_pathless_PYTHON" = none && break
  58. prog="import sys
  59. # split strings by '.' and convert to numeric. Append some zeros
  60. @@ -37262,8 +37263,8 @@ if test "$test_kde4" = "yes" -a "$ENABLE_KDE4" = "TRUE
  61. qt_incdirs="$QT4INC /usr/include/qt4 /usr/include $x_includes"
  62. qt_libdirs="$QT4LIB /usr/lib/qt4 /usr/lib $x_libraries"
  63. - kde_incdirs="/usr/include /usr/include/kde4 $x_includes"
  64. - kde_libdirs="/usr/lib /usr/lib/kde4 /usr/lib/kde4/devel $x_libraries"
  65. + kde_incdirs="$KDE4INC /usr/include /usr/include/kde4 $x_includes"
  66. + kde_libdirs="$KDE4LIB /usr/lib /usr/lib/kde4 /usr/lib/kde4/devel $x_libraries"
  67. if test -n "$supports_multilib"; then
  68. qt_libdirs="$qt_libdirs /usr/lib64/qt4 /usr/lib64/qt /usr/lib64"
  69. @@ -37288,11 +37289,11 @@ if test "$test_kde4" = "yes" -a "$ENABLE_KDE4" = "TRUE
  70. fi
  71. if test -n "$KDEDIR"; then
  72. - kde_incdirs="$KDEDIR/include $kde_incdirs"
  73. + kde_incdirs="$KDEDIR/include/kde $KDEDIR/include $kde_incdirs"
  74. if test -z "$supports_multilib"; then
  75. - kde_libdirs="$KDEDIR/lib $kde_libdirs"
  76. + kde_libdirs="$KDEDIR/lib/kde3 $KDEDIR/lib $kde_libdirs"
  77. else
  78. - kde_libdirs="$KDEDIR/lib64 $KDEDIR/lib $kde_libdirs"
  79. + kde_libdirs="$KDEDIR/lib64 $KDEDIR/lib/kde3 $KDEDIR/lib $kde_libdirs"
  80. fi
  81. fi
  82. if test -n "$KDE4DIR"; then
  83. @@ -37422,7 +37423,7 @@ the root of your Qt installation by exporting QT4DIR b
  84. $as_echo_n "checking for Qt4 libraries... " >&6; }
  85. qt_lib_dir="no"
  86. for lib_dir in $qt_libdirs; do
  87. - if test -r "$lib_dir/$qt_test_library"; then
  88. + if ls $lib_dir/$qt_test_library* /dev/null 2>&1 >/dev/null; then
  89. qt_lib_dir="$lib_dir"
  90. PKG_CONFIG_PATH="$qt_lib_dir"/pkgconfig:$PKG_CONFIG_PATH
  91. break
  92. @@ -37549,7 +37550,7 @@ $as_echo "$kde_incdir" >&6; }
  93. $as_echo_n "checking for KDE4 libraries... " >&6; }
  94. kde_libdir="no"
  95. for kde_check in $kde_libdirs; do
  96. - if test -r "$kde_check/$kde_test_library"; then
  97. + if ls $kde_check/$kde_test_library* /dev/null 2>&1 >/dev/null; then
  98. kde_libdir="$kde_check"
  99. break
  100. fi