patch-configure 5.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132
  1. $OpenBSD: patch-configure,v 1.16 2015/07/17 23:11:52 jasper Exp $
  2. - last hunk: use ',' as separator, otherwise the paths in $pa_libs get
  3. interpreted as part of the regex.
  4. --- configure.orig Mon Aug 31 04:45:37 2009
  5. +++ configure Fri Jul 17 16:07:12 2015
  6. @@ -822,7 +822,6 @@ JACK_CFLAGS
  7. JACK_LIBS'
  8. ac_subdirs_all='"lib-src/FileDialog"
  9. $CONFIG_SUBDIRS
  10. -lib-src/portaudio-v19
  11. lib-src/portmixer'
  12. # Initialize some variables set by options.
  13. @@ -6933,7 +6932,7 @@ if test "${ac_cv_lib_FLAC_FLAC__stream_decoder_new+set
  14. $as_echo_n "(cached) " >&6
  15. else
  16. ac_check_lib_save_LIBS=$LIBS
  17. -LIBS="-lFLAC -lFLAC++ -lFLAC $LIBS"
  18. +LIBS="-lFLAC -lFLAC++ -lFLAC -logg $LIBS"
  19. cat >conftest.$ac_ext <<_ACEOF
  20. /* confdefs.h. */
  21. _ACEOF
  22. @@ -7136,7 +7135,7 @@ fi
  23. if test "x$lib_found" = "xyes" && test "x$header_found" = "xyes" ; then
  24. LIBFLAC_SYSTEM_AVAILABLE="yes"
  25. - LIBFLAC_SYSTEM_LIBS="-lFLAC++ -lFLAC"
  26. + LIBFLAC_SYSTEM_LIBS="-lFLAC++ -lFLAC -logg"
  27. LIBFLAC_SYSTEM_CPPSYMBOLS="USE_LIBFLAC"
  28. { $as_echo "$as_me:$LINENO: FLAC libraries are available as system libraries" >&5
  29. $as_echo "$as_me: FLAC libraries are available as system libraries" >&6;}
  30. @@ -7684,12 +7683,12 @@ if test -n "$SOUNDTOUCH_CFLAGS"; then
  31. pkg_cv_SOUNDTOUCH_CFLAGS="$SOUNDTOUCH_CFLAGS"
  32. elif test -n "$PKG_CONFIG"; then
  33. if test -n "$PKG_CONFIG" && \
  34. - { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"soundtouch-1.0 >= 1.3.0\"") >&5
  35. - ($PKG_CONFIG --exists --print-errors "soundtouch-1.0 >= 1.3.0") 2>&5
  36. + { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"soundtouch >= 1.3.0\"") >&5
  37. + ($PKG_CONFIG --exists --print-errors "soundtouch >= 1.3.0") 2>&5
  38. ac_status=$?
  39. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  40. (exit $ac_status); }; then
  41. - pkg_cv_SOUNDTOUCH_CFLAGS=`$PKG_CONFIG --cflags "soundtouch-1.0 >= 1.3.0" 2>/dev/null`
  42. + pkg_cv_SOUNDTOUCH_CFLAGS=`$PKG_CONFIG --cflags "soundtouch >= 1.3.0" 2>/dev/null`
  43. else
  44. pkg_failed=yes
  45. fi
  46. @@ -7700,12 +7699,12 @@ if test -n "$SOUNDTOUCH_LIBS"; then
  47. pkg_cv_SOUNDTOUCH_LIBS="$SOUNDTOUCH_LIBS"
  48. elif test -n "$PKG_CONFIG"; then
  49. if test -n "$PKG_CONFIG" && \
  50. - { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"soundtouch-1.0 >= 1.3.0\"") >&5
  51. - ($PKG_CONFIG --exists --print-errors "soundtouch-1.0 >= 1.3.0") 2>&5
  52. + { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"soundtouch >= 1.3.0\"") >&5
  53. + ($PKG_CONFIG --exists --print-errors "soundtouch >= 1.3.0") 2>&5
  54. ac_status=$?
  55. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  56. (exit $ac_status); }; then
  57. - pkg_cv_SOUNDTOUCH_LIBS=`$PKG_CONFIG --libs "soundtouch-1.0 >= 1.3.0" 2>/dev/null`
  58. + pkg_cv_SOUNDTOUCH_LIBS=`$PKG_CONFIG --libs "soundtouch >= 1.3.0" 2>/dev/null`
  59. else
  60. pkg_failed=yes
  61. fi
  62. @@ -7723,9 +7722,9 @@ else
  63. _pkg_short_errors_supported=no
  64. fi
  65. if test $_pkg_short_errors_supported = yes; then
  66. - SOUNDTOUCH_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "soundtouch-1.0 >= 1.3.0" 2>&1`
  67. + SOUNDTOUCH_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "soundtouch >= 1.3.0" 2>&1`
  68. else
  69. - SOUNDTOUCH_PKG_ERRORS=`$PKG_CONFIG --print-errors "soundtouch-1.0 >= 1.3.0" 2>&1`
  70. + SOUNDTOUCH_PKG_ERRORS=`$PKG_CONFIG --print-errors "soundtouch >= 1.3.0" 2>&1`
  71. fi
  72. # Put the nasty error message in config.log where it belongs
  73. echo "$SOUNDTOUCH_PKG_ERRORS" >&5
  74. @@ -9215,13 +9214,8 @@ _ACEOF
  75. esac
  76. -LOCAL_LIBS="$LOCAL_LIBS portaudio-v19/lib/libportaudio.a"
  77. -EXTRAOBJS="$EXTRAOBJS ../lib-src/portaudio-v19/lib/libportaudio.a"
  78. -CXXFLAGS="-I\$(top_srcdir)/lib-src/portaudio-v19/include $CXXFLAGS"
  79. -subdirs="$subdirs lib-src/portaudio-v19"
  80. -
  81. case "${host_os}" in
  82. darwin* | rhapsody*)
  83. LIBS="-framework AudioUnit -framework AudioToolbox $LIBS"
  84. @@ -9371,9 +9365,7 @@ else
  85. $as_echo "yes" >&6; }
  86. have_jack=yes
  87. fi
  88. - if [ $have_jack = "yes" ] ; then
  89. - LIBS="$LIBS $JACK_LIBS"
  90. - fi
  91. +
  92. { $as_echo "$as_me:$LINENO: checking for HPI_SubSysCreate in -lhpi" >&5
  93. $as_echo_n "checking for HPI_SubSysCreate in -lhpi... " >&6; }
  94. if test "${ac_cv_lib_hpi_HPI_SubSysCreate+set}" = set; then
  95. @@ -9637,7 +9629,6 @@ _ACEOF
  96. subdirs="$subdirs lib-src/portmixer"
  97. - ac_configure_args="$ac_configure_args --with-pa-include=../portaudio-v19/include"
  98. fi
  99. { $as_echo "$as_me:$LINENO: checking for lrint" >&5
  100. @@ -11255,7 +11246,7 @@ $as_echo "$as_me: WARNING: no configuration informatio
  101. { $as_echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
  102. $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
  103. # The eval makes quoting arguments work.
  104. - eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
  105. + eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args CFLAGS='"$CFLAGS"' CXXFLAGS='"$CXXFLAGS"' LDFLAGS='"$LDFLAGS"' \
  106. --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
  107. { { $as_echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
  108. $as_echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
  109. @@ -11271,9 +11262,8 @@ $as_echo "$as_me: WARNING: unrecognized options: $ac_u
  110. fi
  111. -pa_libs=
  112. -pa_libs=`grep 'Libs:' lib-src/portaudio-v19/portaudio-2.0.pc | sed -e 's/Libs://;s/-L${libdir}//;s/-lportaudio//'`
  113. -sed -i -e "s/@PA_LIBS@/$pa_libs/" src/Makefile
  114. +pa_libs=`pkg-config --libs portaudio-2.0`
  115. +sed -i -e "s,@PA_LIBS@,$pa_libs," src/Makefile
  116. echo ""
  117. echo "Finished configure:"