comparison configure @ 1050:3691af49291c 3.0-integration

Start including Vamp SDK into main build, as we do with Sonic Annotator
author Chris Cannam
date Fri, 18 Mar 2016 14:25:05 +0000
parents 9fc23e778bfa
children
comparison
equal deleted inserted replaced
1049:40480e4bab6a 1050:3691af49291c
644 lrdf_CFLAGS 644 lrdf_CFLAGS
645 libpulse_LIBS 645 libpulse_LIBS
646 libpulse_CFLAGS 646 libpulse_CFLAGS
647 JACK_LIBS 647 JACK_LIBS
648 JACK_CFLAGS 648 JACK_CFLAGS
649 portaudio_2_0_LIBS 649 portaudio_LIBS
650 portaudio_2_0_CFLAGS 650 portaudio_CFLAGS
651 liblo_LIBS 651 liblo_LIBS
652 liblo_CFLAGS 652 liblo_CFLAGS
653 rubberband_LIBS 653 rubberband_LIBS
654 rubberband_CFLAGS 654 rubberband_CFLAGS
655 vamphostsdk_LIBS
656 vamphostsdk_CFLAGS
657 vamp_LIBS
658 vamp_CFLAGS
659 samplerate_LIBS 655 samplerate_LIBS
660 samplerate_CFLAGS 656 samplerate_CFLAGS
661 sndfile_LIBS 657 sndfile_LIBS
662 sndfile_CFLAGS 658 sndfile_CFLAGS
663 fftw3f_LIBS 659 fftw3f_LIBS
754 fftw3f_LIBS 750 fftw3f_LIBS
755 sndfile_CFLAGS 751 sndfile_CFLAGS
756 sndfile_LIBS 752 sndfile_LIBS
757 samplerate_CFLAGS 753 samplerate_CFLAGS
758 samplerate_LIBS 754 samplerate_LIBS
759 vamp_CFLAGS
760 vamp_LIBS
761 vamphostsdk_CFLAGS
762 vamphostsdk_LIBS
763 rubberband_CFLAGS 755 rubberband_CFLAGS
764 rubberband_LIBS 756 rubberband_LIBS
765 liblo_CFLAGS 757 liblo_CFLAGS
766 liblo_LIBS 758 liblo_LIBS
767 portaudio_2_0_CFLAGS 759 portaudio_CFLAGS
768 portaudio_2_0_LIBS 760 portaudio_LIBS
769 JACK_CFLAGS 761 JACK_CFLAGS
770 JACK_LIBS 762 JACK_LIBS
771 libpulse_CFLAGS 763 libpulse_CFLAGS
772 libpulse_LIBS 764 libpulse_LIBS
773 lrdf_CFLAGS 765 lrdf_CFLAGS
1421 linker flags for sndfile, overriding pkg-config 1413 linker flags for sndfile, overriding pkg-config
1422 samplerate_CFLAGS 1414 samplerate_CFLAGS
1423 C compiler flags for samplerate, overriding pkg-config 1415 C compiler flags for samplerate, overriding pkg-config
1424 samplerate_LIBS 1416 samplerate_LIBS
1425 linker flags for samplerate, overriding pkg-config 1417 linker flags for samplerate, overriding pkg-config
1426 vamp_CFLAGS C compiler flags for vamp, overriding pkg-config
1427 vamp_LIBS linker flags for vamp, overriding pkg-config
1428 vamphostsdk_CFLAGS
1429 C compiler flags for vamphostsdk, overriding pkg-config
1430 vamphostsdk_LIBS
1431 linker flags for vamphostsdk, overriding pkg-config
1432 rubberband_CFLAGS 1418 rubberband_CFLAGS
1433 C compiler flags for rubberband, overriding pkg-config 1419 C compiler flags for rubberband, overriding pkg-config
1434 rubberband_LIBS 1420 rubberband_LIBS
1435 linker flags for rubberband, overriding pkg-config 1421 linker flags for rubberband, overriding pkg-config
1436 liblo_CFLAGS 1422 liblo_CFLAGS
1437 C compiler flags for liblo, overriding pkg-config 1423 C compiler flags for liblo, overriding pkg-config
1438 liblo_LIBS linker flags for liblo, overriding pkg-config 1424 liblo_LIBS linker flags for liblo, overriding pkg-config
1439 portaudio_2_0_CFLAGS 1425 portaudio_CFLAGS
1440 C compiler flags for portaudio_2_0, overriding pkg-config 1426 C compiler flags for portaudio, overriding pkg-config
1441 portaudio_2_0_LIBS 1427 portaudio_LIBS
1442 linker flags for portaudio_2_0, overriding pkg-config 1428 linker flags for portaudio, overriding pkg-config
1443 JACK_CFLAGS C compiler flags for JACK, overriding pkg-config 1429 JACK_CFLAGS C compiler flags for JACK, overriding pkg-config
1444 JACK_LIBS linker flags for JACK, overriding pkg-config 1430 JACK_LIBS linker flags for JACK, overriding pkg-config
1445 libpulse_CFLAGS 1431 libpulse_CFLAGS
1446 C compiler flags for libpulse, overriding pkg-config 1432 C compiler flags for libpulse, overriding pkg-config
1447 libpulse_LIBS 1433 libpulse_LIBS
5224 5210
5225 fi 5211 fi
5226 fi 5212 fi
5227 5213
5228 5214
5229 SV_MODULE_MODULE=vamp 5215 SV_MODULE_MODULE=rubberband
5230 SV_MODULE_VERSION_TEST="vamp >= 2.1" 5216 SV_MODULE_VERSION_TEST="rubberband"
5231 SV_MODULE_HEADER=vamp/vamp.h 5217 SV_MODULE_HEADER=rubberband/RubberBandStretcher.h
5232 SV_MODULE_LIB= 5218 SV_MODULE_LIB=rubberband
5233 SV_MODULE_FUNC= 5219 SV_MODULE_FUNC=rubberband_new
5234 SV_MODULE_HAVE=HAVE_$(echo vamp | tr 'a-z' 'A-Z') 5220 SV_MODULE_HAVE=HAVE_$(echo rubberband | tr 'a-z' 'A-Z')
5235 SV_MODULE_FAILED=1 5221 SV_MODULE_FAILED=1
5236 if test -n "$vamp_LIBS" ; then 5222 if test -n "$rubberband_LIBS" ; then
5237 { $as_echo "$as_me:${as_lineno-$LINENO}: User set ${SV_MODULE_MODULE}_LIBS explicitly, skipping test for $SV_MODULE_MODULE" >&5 5223 { $as_echo "$as_me:${as_lineno-$LINENO}: User set ${SV_MODULE_MODULE}_LIBS explicitly, skipping test for $SV_MODULE_MODULE" >&5
5238 $as_echo "$as_me: User set ${SV_MODULE_MODULE}_LIBS explicitly, skipping test for $SV_MODULE_MODULE" >&6;} 5224 $as_echo "$as_me: User set ${SV_MODULE_MODULE}_LIBS explicitly, skipping test for $SV_MODULE_MODULE" >&6;}
5239 CXXFLAGS="$CXXFLAGS $vamp_CFLAGS" 5225 CXXFLAGS="$CXXFLAGS $rubberband_CFLAGS"
5240 LIBS="$LIBS $vamp_LIBS" 5226 LIBS="$LIBS $rubberband_LIBS"
5241 SV_MODULE_FAILED="" 5227 SV_MODULE_FAILED=""
5242 fi 5228 fi
5243 if test -z "$SV_MODULE_VERSION_TEST" ; then 5229 if test -z "$SV_MODULE_VERSION_TEST" ; then
5244 SV_MODULE_VERSION_TEST=$SV_MODULE_MODULE 5230 SV_MODULE_VERSION_TEST=$SV_MODULE_MODULE
5245 fi 5231 fi
5246 if test -n "$SV_MODULE_FAILED" && test -n "$PKG_CONFIG"; then 5232 if test -n "$SV_MODULE_FAILED" && test -n "$PKG_CONFIG"; then
5247 5233
5248 pkg_failed=no 5234 pkg_failed=no
5249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for vamp" >&5 5235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rubberband" >&5
5250 $as_echo_n "checking for vamp... " >&6; } 5236 $as_echo_n "checking for rubberband... " >&6; }
5251 5237
5252 if test -n "$vamp_CFLAGS"; then 5238 if test -n "$rubberband_CFLAGS"; then
5253 pkg_cv_vamp_CFLAGS="$vamp_CFLAGS" 5239 pkg_cv_rubberband_CFLAGS="$rubberband_CFLAGS"
5254 elif test -n "$PKG_CONFIG"; then 5240 elif test -n "$PKG_CONFIG"; then
5255 if test -n "$PKG_CONFIG" && \ 5241 if test -n "$PKG_CONFIG" && \
5256 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$SV_MODULE_VERSION_TEST\""; } >&5 5242 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$SV_MODULE_VERSION_TEST\""; } >&5
5257 ($PKG_CONFIG --exists --print-errors "$SV_MODULE_VERSION_TEST") 2>&5 5243 ($PKG_CONFIG --exists --print-errors "$SV_MODULE_VERSION_TEST") 2>&5
5258 ac_status=$? 5244 ac_status=$?
5259 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5245 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5260 test $ac_status = 0; }; then 5246 test $ac_status = 0; }; then
5261 pkg_cv_vamp_CFLAGS=`$PKG_CONFIG --cflags "$SV_MODULE_VERSION_TEST" 2>/dev/null` 5247 pkg_cv_rubberband_CFLAGS=`$PKG_CONFIG --cflags "$SV_MODULE_VERSION_TEST" 2>/dev/null`
5262 test "x$?" != "x0" && pkg_failed=yes 5248 test "x$?" != "x0" && pkg_failed=yes
5263 else 5249 else
5264 pkg_failed=yes 5250 pkg_failed=yes
5265 fi 5251 fi
5266 else 5252 else
5267 pkg_failed=untried 5253 pkg_failed=untried
5268 fi 5254 fi
5269 if test -n "$vamp_LIBS"; then 5255 if test -n "$rubberband_LIBS"; then
5270 pkg_cv_vamp_LIBS="$vamp_LIBS" 5256 pkg_cv_rubberband_LIBS="$rubberband_LIBS"
5271 elif test -n "$PKG_CONFIG"; then 5257 elif test -n "$PKG_CONFIG"; then
5272 if test -n "$PKG_CONFIG" && \ 5258 if test -n "$PKG_CONFIG" && \
5273 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$SV_MODULE_VERSION_TEST\""; } >&5 5259 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$SV_MODULE_VERSION_TEST\""; } >&5
5274 ($PKG_CONFIG --exists --print-errors "$SV_MODULE_VERSION_TEST") 2>&5 5260 ($PKG_CONFIG --exists --print-errors "$SV_MODULE_VERSION_TEST") 2>&5
5275 ac_status=$? 5261 ac_status=$?
5276 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5262 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5277 test $ac_status = 0; }; then 5263 test $ac_status = 0; }; then
5278 pkg_cv_vamp_LIBS=`$PKG_CONFIG --libs "$SV_MODULE_VERSION_TEST" 2>/dev/null` 5264 pkg_cv_rubberband_LIBS=`$PKG_CONFIG --libs "$SV_MODULE_VERSION_TEST" 2>/dev/null`
5279 test "x$?" != "x0" && pkg_failed=yes 5265 test "x$?" != "x0" && pkg_failed=yes
5280 else 5266 else
5281 pkg_failed=yes 5267 pkg_failed=yes
5282 fi 5268 fi
5283 else 5269 else
5294 _pkg_short_errors_supported=yes 5280 _pkg_short_errors_supported=yes
5295 else 5281 else
5296 _pkg_short_errors_supported=no 5282 _pkg_short_errors_supported=no
5297 fi 5283 fi
5298 if test $_pkg_short_errors_supported = yes; then 5284 if test $_pkg_short_errors_supported = yes; then
5299 vamp_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$SV_MODULE_VERSION_TEST" 2>&1` 5285 rubberband_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$SV_MODULE_VERSION_TEST" 2>&1`
5300 else 5286 else
5301 vamp_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$SV_MODULE_VERSION_TEST" 2>&1` 5287 rubberband_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$SV_MODULE_VERSION_TEST" 2>&1`
5302 fi 5288 fi
5303 # Put the nasty error message in config.log where it belongs 5289 # Put the nasty error message in config.log where it belongs
5304 echo "$vamp_PKG_ERRORS" >&5 5290 echo "$rubberband_PKG_ERRORS" >&5
5305 5291
5306 { $as_echo "$as_me:${as_lineno-$LINENO}: Failed to find required module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&5 5292 { $as_echo "$as_me:${as_lineno-$LINENO}: Failed to find required module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&5
5307 $as_echo "$as_me: Failed to find required module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&6;} 5293 $as_echo "$as_me: Failed to find required module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&6;}
5308 elif test $pkg_failed = untried; then 5294 elif test $pkg_failed = untried; then
5309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5310 $as_echo "no" >&6; } 5296 $as_echo "no" >&6; }
5311 { $as_echo "$as_me:${as_lineno-$LINENO}: Failed to find required module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&5 5297 { $as_echo "$as_me:${as_lineno-$LINENO}: Failed to find required module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&5
5312 $as_echo "$as_me: Failed to find required module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&6;} 5298 $as_echo "$as_me: Failed to find required module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&6;}
5313 else 5299 else
5314 vamp_CFLAGS=$pkg_cv_vamp_CFLAGS 5300 rubberband_CFLAGS=$pkg_cv_rubberband_CFLAGS
5315 vamp_LIBS=$pkg_cv_vamp_LIBS 5301 rubberband_LIBS=$pkg_cv_rubberband_LIBS
5316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5317 $as_echo "yes" >&6; } 5303 $as_echo "yes" >&6; }
5318 HAVES="$HAVES $SV_MODULE_HAVE";CXXFLAGS="$CXXFLAGS $vamp_CFLAGS";LIBS="$LIBS $vamp_LIBS";SV_MODULE_FAILED="" 5304 HAVES="$HAVES $SV_MODULE_HAVE";CXXFLAGS="$CXXFLAGS $rubberband_CFLAGS";LIBS="$LIBS $rubberband_LIBS";SV_MODULE_FAILED=""
5319 fi 5305 fi
5320 fi 5306 fi
5321 if test -n "$SV_MODULE_FAILED"; then 5307 if test -n "$SV_MODULE_FAILED"; then
5322 as_ac_Header=`$as_echo "ac_cv_header_$SV_MODULE_HEADER" | $as_tr_sh` 5308 as_ac_Header=`$as_echo "ac_cv_header_$SV_MODULE_HEADER" | $as_tr_sh`
5323 ac_fn_cxx_check_header_mongrel "$LINENO" "$SV_MODULE_HEADER" "$as_ac_Header" "$ac_includes_default" 5309 ac_fn_cxx_check_header_mongrel "$LINENO" "$SV_MODULE_HEADER" "$as_ac_Header" "$ac_includes_default"
5375 5361
5376 fi 5362 fi
5377 fi 5363 fi
5378 5364
5379 5365
5380 SV_MODULE_MODULE=vamphostsdk 5366
5381 SV_MODULE_VERSION_TEST="vamp-hostsdk >= 2.5" 5367 SV_MODULE_MODULE=liblo
5382 SV_MODULE_HEADER=vamp-hostsdk/PluginLoader.h 5368 SV_MODULE_VERSION_TEST=""
5383 SV_MODULE_LIB=vamp-hostsdk 5369 SV_MODULE_HEADER=lo/lo.h
5384 SV_MODULE_FUNC=libvamphostsdk_v_2_5_present 5370 SV_MODULE_LIB=lo
5385 SV_MODULE_HAVE=HAVE_$(echo vamphostsdk | tr 'a-z' 'A-Z') 5371 SV_MODULE_FUNC=lo_address_new
5372 SV_MODULE_HAVE=HAVE_$(echo liblo | tr 'a-z' 'A-Z')
5386 SV_MODULE_FAILED=1 5373 SV_MODULE_FAILED=1
5387 if test -n "$vamphostsdk_LIBS" ; then 5374 if test -n "$liblo_LIBS" ; then
5388 { $as_echo "$as_me:${as_lineno-$LINENO}: User set ${SV_MODULE_MODULE}_LIBS explicitly, skipping test for $SV_MODULE_MODULE" >&5 5375 { $as_echo "$as_me:${as_lineno-$LINENO}: User set ${SV_MODULE_MODULE}_LIBS explicitly, skipping test for $SV_MODULE_MODULE" >&5
5389 $as_echo "$as_me: User set ${SV_MODULE_MODULE}_LIBS explicitly, skipping test for $SV_MODULE_MODULE" >&6;} 5376 $as_echo "$as_me: User set ${SV_MODULE_MODULE}_LIBS explicitly, skipping test for $SV_MODULE_MODULE" >&6;}
5390 CXXFLAGS="$CXXFLAGS $vamphostsdk_CFLAGS" 5377 CXXFLAGS="$CXXFLAGS $liblo_CFLAGS"
5391 LIBS="$LIBS $vamphostsdk_LIBS" 5378 LIBS="$LIBS $liblo_LIBS"
5392 SV_MODULE_FAILED="" 5379 SV_MODULE_FAILED=""
5393 fi 5380 fi
5394 if test -z "$SV_MODULE_VERSION_TEST" ; then 5381 if test -z "$SV_MODULE_VERSION_TEST" ; then
5395 SV_MODULE_VERSION_TEST=$SV_MODULE_MODULE 5382 SV_MODULE_VERSION_TEST=$SV_MODULE_MODULE
5396 fi 5383 fi
5397 if test -n "$SV_MODULE_FAILED" && test -n "$PKG_CONFIG"; then 5384 if test -n "$SV_MODULE_FAILED" && test -n "$PKG_CONFIG"; then
5398 5385
5399 pkg_failed=no 5386 pkg_failed=no
5400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for vamphostsdk" >&5 5387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for liblo" >&5
5401 $as_echo_n "checking for vamphostsdk... " >&6; } 5388 $as_echo_n "checking for liblo... " >&6; }
5402 5389
5403 if test -n "$vamphostsdk_CFLAGS"; then 5390 if test -n "$liblo_CFLAGS"; then
5404 pkg_cv_vamphostsdk_CFLAGS="$vamphostsdk_CFLAGS" 5391 pkg_cv_liblo_CFLAGS="$liblo_CFLAGS"
5405 elif test -n "$PKG_CONFIG"; then 5392 elif test -n "$PKG_CONFIG"; then
5406 if test -n "$PKG_CONFIG" && \ 5393 if test -n "$PKG_CONFIG" && \
5407 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$SV_MODULE_VERSION_TEST\""; } >&5 5394 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$SV_MODULE_VERSION_TEST\""; } >&5
5408 ($PKG_CONFIG --exists --print-errors "$SV_MODULE_VERSION_TEST") 2>&5 5395 ($PKG_CONFIG --exists --print-errors "$SV_MODULE_VERSION_TEST") 2>&5
5409 ac_status=$? 5396 ac_status=$?
5410 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5397 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5411 test $ac_status = 0; }; then 5398 test $ac_status = 0; }; then
5412 pkg_cv_vamphostsdk_CFLAGS=`$PKG_CONFIG --cflags "$SV_MODULE_VERSION_TEST" 2>/dev/null` 5399 pkg_cv_liblo_CFLAGS=`$PKG_CONFIG --cflags "$SV_MODULE_VERSION_TEST" 2>/dev/null`
5413 test "x$?" != "x0" && pkg_failed=yes 5400 test "x$?" != "x0" && pkg_failed=yes
5414 else 5401 else
5415 pkg_failed=yes 5402 pkg_failed=yes
5416 fi 5403 fi
5417 else 5404 else
5418 pkg_failed=untried 5405 pkg_failed=untried
5419 fi 5406 fi
5420 if test -n "$vamphostsdk_LIBS"; then 5407 if test -n "$liblo_LIBS"; then
5421 pkg_cv_vamphostsdk_LIBS="$vamphostsdk_LIBS" 5408 pkg_cv_liblo_LIBS="$liblo_LIBS"
5422 elif test -n "$PKG_CONFIG"; then 5409 elif test -n "$PKG_CONFIG"; then
5423 if test -n "$PKG_CONFIG" && \ 5410 if test -n "$PKG_CONFIG" && \
5424 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$SV_MODULE_VERSION_TEST\""; } >&5 5411 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$SV_MODULE_VERSION_TEST\""; } >&5
5425 ($PKG_CONFIG --exists --print-errors "$SV_MODULE_VERSION_TEST") 2>&5 5412 ($PKG_CONFIG --exists --print-errors "$SV_MODULE_VERSION_TEST") 2>&5
5426 ac_status=$? 5413 ac_status=$?
5427 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5414 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5428 test $ac_status = 0; }; then 5415 test $ac_status = 0; }; then
5429 pkg_cv_vamphostsdk_LIBS=`$PKG_CONFIG --libs "$SV_MODULE_VERSION_TEST" 2>/dev/null` 5416 pkg_cv_liblo_LIBS=`$PKG_CONFIG --libs "$SV_MODULE_VERSION_TEST" 2>/dev/null`
5430 test "x$?" != "x0" && pkg_failed=yes 5417 test "x$?" != "x0" && pkg_failed=yes
5431 else 5418 else
5432 pkg_failed=yes 5419 pkg_failed=yes
5433 fi 5420 fi
5434 else 5421 else
5445 _pkg_short_errors_supported=yes 5432 _pkg_short_errors_supported=yes
5446 else 5433 else
5447 _pkg_short_errors_supported=no 5434 _pkg_short_errors_supported=no
5448 fi 5435 fi
5449 if test $_pkg_short_errors_supported = yes; then 5436 if test $_pkg_short_errors_supported = yes; then
5450 vamphostsdk_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$SV_MODULE_VERSION_TEST" 2>&1` 5437 liblo_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$SV_MODULE_VERSION_TEST" 2>&1`
5451 else 5438 else
5452 vamphostsdk_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$SV_MODULE_VERSION_TEST" 2>&1` 5439 liblo_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$SV_MODULE_VERSION_TEST" 2>&1`
5453 fi 5440 fi
5454 # Put the nasty error message in config.log where it belongs 5441 # Put the nasty error message in config.log where it belongs
5455 echo "$vamphostsdk_PKG_ERRORS" >&5 5442 echo "$liblo_PKG_ERRORS" >&5
5456 5443
5457 { $as_echo "$as_me:${as_lineno-$LINENO}: Failed to find required module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&5 5444 { $as_echo "$as_me:${as_lineno-$LINENO}: Failed to find optional module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&5
5458 $as_echo "$as_me: Failed to find required module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&6;} 5445 $as_echo "$as_me: Failed to find optional module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&6;}
5459 elif test $pkg_failed = untried; then 5446 elif test $pkg_failed = untried; then
5460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5461 $as_echo "no" >&6; } 5448 $as_echo "no" >&6; }
5462 { $as_echo "$as_me:${as_lineno-$LINENO}: Failed to find required module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&5 5449 { $as_echo "$as_me:${as_lineno-$LINENO}: Failed to find optional module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&5
5463 $as_echo "$as_me: Failed to find required module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&6;} 5450 $as_echo "$as_me: Failed to find optional module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&6;}
5464 else 5451 else
5465 vamphostsdk_CFLAGS=$pkg_cv_vamphostsdk_CFLAGS 5452 liblo_CFLAGS=$pkg_cv_liblo_CFLAGS
5466 vamphostsdk_LIBS=$pkg_cv_vamphostsdk_LIBS 5453 liblo_LIBS=$pkg_cv_liblo_LIBS
5467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5468 $as_echo "yes" >&6; } 5455 $as_echo "yes" >&6; }
5469 HAVES="$HAVES $SV_MODULE_HAVE";CXXFLAGS="$CXXFLAGS $vamphostsdk_CFLAGS";LIBS="$LIBS $vamphostsdk_LIBS";SV_MODULE_FAILED="" 5456 HAVES="$HAVES $SV_MODULE_HAVE";CXXFLAGS="$CXXFLAGS $liblo_CFLAGS";LIBS="$LIBS $liblo_LIBS";SV_MODULE_FAILED=""
5470 fi 5457 fi
5471 fi 5458 fi
5472 if test -n "$SV_MODULE_FAILED"; then 5459 if test -n "$SV_MODULE_FAILED"; then
5473 as_ac_Header=`$as_echo "ac_cv_header_$SV_MODULE_HEADER" | $as_tr_sh` 5460 as_ac_Header=`$as_echo "ac_cv_header_$SV_MODULE_HEADER" | $as_tr_sh`
5474 ac_fn_cxx_check_header_mongrel "$LINENO" "$SV_MODULE_HEADER" "$as_ac_Header" "$ac_includes_default" 5461 ac_fn_cxx_check_header_mongrel "$LINENO" "$SV_MODULE_HEADER" "$as_ac_Header" "$ac_includes_default"
5475 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 5462 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5476 HAVES="$HAVES $SV_MODULE_HAVE" 5463 HAVES="$HAVES $SV_MODULE_HAVE";SV_MODULE_FAILED=""
5477 else 5464 else
5478 as_fn_error $? "Failed to find header $SV_MODULE_HEADER for required module $SV_MODULE_MODULE" "$LINENO" 5 5465 { $as_echo "$as_me:${as_lineno-$LINENO}: Failed to find header $SV_MODULE_HEADER for optional module $SV_MODULE_MODULE" >&5
5479 fi 5466 $as_echo "$as_me: Failed to find header $SV_MODULE_HEADER for optional module $SV_MODULE_MODULE" >&6;}
5480 5467 fi
5481 5468
5482 if test -n "$SV_MODULE_LIB"; then 5469
5483 as_ac_Lib=`$as_echo "ac_cv_lib_$SV_MODULE_LIB''_$SV_MODULE_FUNC" | $as_tr_sh` 5470 if test -z "$SV_MODULE_FAILED"; then
5471 if test -n "$SV_MODULE_LIB"; then
5472 as_ac_Lib=`$as_echo "ac_cv_lib_$SV_MODULE_LIB''_$SV_MODULE_FUNC" | $as_tr_sh`
5484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $SV_MODULE_FUNC in -l$SV_MODULE_LIB" >&5 5473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $SV_MODULE_FUNC in -l$SV_MODULE_LIB" >&5
5485 $as_echo_n "checking for $SV_MODULE_FUNC in -l$SV_MODULE_LIB... " >&6; } 5474 $as_echo_n "checking for $SV_MODULE_FUNC in -l$SV_MODULE_LIB... " >&6; }
5486 if eval \${$as_ac_Lib+:} false; then : 5475 if eval \${$as_ac_Lib+:} false; then :
5487 $as_echo_n "(cached) " >&6 5476 $as_echo_n "(cached) " >&6
5488 else 5477 else
5519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 5508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5520 $as_echo "$ac_res" >&6; } 5509 $as_echo "$ac_res" >&6; }
5521 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 5510 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
5522 LIBS="$LIBS -l$SV_MODULE_LIB" 5511 LIBS="$LIBS -l$SV_MODULE_LIB"
5523 else 5512 else
5524 as_fn_error $? "Failed to find library $SV_MODULE_LIB for required module $SV_MODULE_MODULE" "$LINENO" 5 5513 { $as_echo "$as_me:${as_lineno-$LINENO}: Failed to find library $SV_MODULE_LIB for optional module $SV_MODULE_MODULE" >&5
5525 fi 5514 $as_echo "$as_me: Failed to find library $SV_MODULE_LIB for optional module $SV_MODULE_MODULE" >&6;}
5526 5515 fi
5516
5517 fi
5527 fi 5518 fi
5528 fi 5519 fi
5529 5520
5530 5521
5531 SV_MODULE_MODULE=rubberband 5522 SV_MODULE_MODULE=portaudio
5532 SV_MODULE_VERSION_TEST="rubberband" 5523 SV_MODULE_VERSION_TEST="portaudio-2.0 >= 19"
5533 SV_MODULE_HEADER=rubberband/RubberBandStretcher.h 5524 SV_MODULE_HEADER=portaudio.h
5534 SV_MODULE_LIB=rubberband 5525 SV_MODULE_LIB=portaudio
5535 SV_MODULE_FUNC=rubberband_new 5526 SV_MODULE_FUNC=Pa_IsFormatSupported
5536 SV_MODULE_HAVE=HAVE_$(echo rubberband | tr 'a-z' 'A-Z') 5527 SV_MODULE_HAVE=HAVE_$(echo portaudio | tr 'a-z' 'A-Z')
5537 SV_MODULE_FAILED=1 5528 SV_MODULE_FAILED=1
5538 if test -n "$rubberband_LIBS" ; then 5529 if test -n "$portaudio_LIBS" ; then
5539 { $as_echo "$as_me:${as_lineno-$LINENO}: User set ${SV_MODULE_MODULE}_LIBS explicitly, skipping test for $SV_MODULE_MODULE" >&5 5530 { $as_echo "$as_me:${as_lineno-$LINENO}: User set ${SV_MODULE_MODULE}_LIBS explicitly, skipping test for $SV_MODULE_MODULE" >&5
5540 $as_echo "$as_me: User set ${SV_MODULE_MODULE}_LIBS explicitly, skipping test for $SV_MODULE_MODULE" >&6;} 5531 $as_echo "$as_me: User set ${SV_MODULE_MODULE}_LIBS explicitly, skipping test for $SV_MODULE_MODULE" >&6;}
5541 CXXFLAGS="$CXXFLAGS $rubberband_CFLAGS" 5532 CXXFLAGS="$CXXFLAGS $portaudio_CFLAGS"
5542 LIBS="$LIBS $rubberband_LIBS" 5533 LIBS="$LIBS $portaudio_LIBS"
5543 SV_MODULE_FAILED="" 5534 SV_MODULE_FAILED=""
5544 fi 5535 fi
5545 if test -z "$SV_MODULE_VERSION_TEST" ; then 5536 if test -z "$SV_MODULE_VERSION_TEST" ; then
5546 SV_MODULE_VERSION_TEST=$SV_MODULE_MODULE 5537 SV_MODULE_VERSION_TEST=$SV_MODULE_MODULE
5547 fi 5538 fi
5548 if test -n "$SV_MODULE_FAILED" && test -n "$PKG_CONFIG"; then 5539 if test -n "$SV_MODULE_FAILED" && test -n "$PKG_CONFIG"; then
5549 5540
5550 pkg_failed=no 5541 pkg_failed=no
5551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rubberband" >&5 5542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for portaudio" >&5
5552 $as_echo_n "checking for rubberband... " >&6; } 5543 $as_echo_n "checking for portaudio... " >&6; }
5553 5544
5554 if test -n "$rubberband_CFLAGS"; then 5545 if test -n "$portaudio_CFLAGS"; then
5555 pkg_cv_rubberband_CFLAGS="$rubberband_CFLAGS" 5546 pkg_cv_portaudio_CFLAGS="$portaudio_CFLAGS"
5556 elif test -n "$PKG_CONFIG"; then 5547 elif test -n "$PKG_CONFIG"; then
5557 if test -n "$PKG_CONFIG" && \ 5548 if test -n "$PKG_CONFIG" && \
5558 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$SV_MODULE_VERSION_TEST\""; } >&5 5549 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$SV_MODULE_VERSION_TEST\""; } >&5
5559 ($PKG_CONFIG --exists --print-errors "$SV_MODULE_VERSION_TEST") 2>&5 5550 ($PKG_CONFIG --exists --print-errors "$SV_MODULE_VERSION_TEST") 2>&5
5560 ac_status=$? 5551 ac_status=$?
5561 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5552 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5562 test $ac_status = 0; }; then 5553 test $ac_status = 0; }; then
5563 pkg_cv_rubberband_CFLAGS=`$PKG_CONFIG --cflags "$SV_MODULE_VERSION_TEST" 2>/dev/null` 5554 pkg_cv_portaudio_CFLAGS=`$PKG_CONFIG --cflags "$SV_MODULE_VERSION_TEST" 2>/dev/null`
5564 test "x$?" != "x0" && pkg_failed=yes 5555 test "x$?" != "x0" && pkg_failed=yes
5565 else 5556 else
5566 pkg_failed=yes 5557 pkg_failed=yes
5567 fi 5558 fi
5568 else 5559 else
5569 pkg_failed=untried 5560 pkg_failed=untried
5570 fi 5561 fi
5571 if test -n "$rubberband_LIBS"; then 5562 if test -n "$portaudio_LIBS"; then
5572 pkg_cv_rubberband_LIBS="$rubberband_LIBS" 5563 pkg_cv_portaudio_LIBS="$portaudio_LIBS"
5573 elif test -n "$PKG_CONFIG"; then 5564 elif test -n "$PKG_CONFIG"; then
5574 if test -n "$PKG_CONFIG" && \ 5565 if test -n "$PKG_CONFIG" && \
5575 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$SV_MODULE_VERSION_TEST\""; } >&5 5566 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$SV_MODULE_VERSION_TEST\""; } >&5
5576 ($PKG_CONFIG --exists --print-errors "$SV_MODULE_VERSION_TEST") 2>&5 5567 ($PKG_CONFIG --exists --print-errors "$SV_MODULE_VERSION_TEST") 2>&5
5577 ac_status=$? 5568 ac_status=$?
5578 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5569 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5579 test $ac_status = 0; }; then 5570 test $ac_status = 0; }; then
5580 pkg_cv_rubberband_LIBS=`$PKG_CONFIG --libs "$SV_MODULE_VERSION_TEST" 2>/dev/null` 5571 pkg_cv_portaudio_LIBS=`$PKG_CONFIG --libs "$SV_MODULE_VERSION_TEST" 2>/dev/null`
5581 test "x$?" != "x0" && pkg_failed=yes 5572 test "x$?" != "x0" && pkg_failed=yes
5582 else 5573 else
5583 pkg_failed=yes 5574 pkg_failed=yes
5584 fi 5575 fi
5585 else 5576 else
5596 _pkg_short_errors_supported=yes 5587 _pkg_short_errors_supported=yes
5597 else 5588 else
5598 _pkg_short_errors_supported=no 5589 _pkg_short_errors_supported=no
5599 fi 5590 fi
5600 if test $_pkg_short_errors_supported = yes; then 5591 if test $_pkg_short_errors_supported = yes; then
5601 rubberband_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$SV_MODULE_VERSION_TEST" 2>&1` 5592 portaudio_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$SV_MODULE_VERSION_TEST" 2>&1`
5602 else 5593 else
5603 rubberband_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$SV_MODULE_VERSION_TEST" 2>&1` 5594 portaudio_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$SV_MODULE_VERSION_TEST" 2>&1`
5604 fi 5595 fi
5605 # Put the nasty error message in config.log where it belongs 5596 # Put the nasty error message in config.log where it belongs
5606 echo "$rubberband_PKG_ERRORS" >&5 5597 echo "$portaudio_PKG_ERRORS" >&5
5607
5608 { $as_echo "$as_me:${as_lineno-$LINENO}: Failed to find required module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&5
5609 $as_echo "$as_me: Failed to find required module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&6;}
5610 elif test $pkg_failed = untried; then
5611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5612 $as_echo "no" >&6; }
5613 { $as_echo "$as_me:${as_lineno-$LINENO}: Failed to find required module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&5
5614 $as_echo "$as_me: Failed to find required module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&6;}
5615 else
5616 rubberband_CFLAGS=$pkg_cv_rubberband_CFLAGS
5617 rubberband_LIBS=$pkg_cv_rubberband_LIBS
5618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5619 $as_echo "yes" >&6; }
5620 HAVES="$HAVES $SV_MODULE_HAVE";CXXFLAGS="$CXXFLAGS $rubberband_CFLAGS";LIBS="$LIBS $rubberband_LIBS";SV_MODULE_FAILED=""
5621 fi
5622 fi
5623 if test -n "$SV_MODULE_FAILED"; then
5624 as_ac_Header=`$as_echo "ac_cv_header_$SV_MODULE_HEADER" | $as_tr_sh`
5625 ac_fn_cxx_check_header_mongrel "$LINENO" "$SV_MODULE_HEADER" "$as_ac_Header" "$ac_includes_default"
5626 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5627 HAVES="$HAVES $SV_MODULE_HAVE"
5628 else
5629 as_fn_error $? "Failed to find header $SV_MODULE_HEADER for required module $SV_MODULE_MODULE" "$LINENO" 5
5630 fi
5631
5632
5633 if test -n "$SV_MODULE_LIB"; then
5634 as_ac_Lib=`$as_echo "ac_cv_lib_$SV_MODULE_LIB''_$SV_MODULE_FUNC" | $as_tr_sh`
5635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $SV_MODULE_FUNC in -l$SV_MODULE_LIB" >&5
5636 $as_echo_n "checking for $SV_MODULE_FUNC in -l$SV_MODULE_LIB... " >&6; }
5637 if eval \${$as_ac_Lib+:} false; then :
5638 $as_echo_n "(cached) " >&6
5639 else
5640 ac_check_lib_save_LIBS=$LIBS
5641 LIBS="-l$SV_MODULE_LIB $LIBS"
5642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5643 /* end confdefs.h. */
5644
5645 /* Override any GCC internal prototype to avoid an error.
5646 Use char because int might match the return type of a GCC
5647 builtin and then its argument prototype would still apply. */
5648 #ifdef __cplusplus
5649 extern "C"
5650 #endif
5651 char $SV_MODULE_FUNC ();
5652 int
5653 main ()
5654 {
5655 return $SV_MODULE_FUNC ();
5656 ;
5657 return 0;
5658 }
5659 _ACEOF
5660 if ac_fn_cxx_try_link "$LINENO"; then :
5661 eval "$as_ac_Lib=yes"
5662 else
5663 eval "$as_ac_Lib=no"
5664 fi
5665 rm -f core conftest.err conftest.$ac_objext \
5666 conftest$ac_exeext conftest.$ac_ext
5667 LIBS=$ac_check_lib_save_LIBS
5668 fi
5669 eval ac_res=\$$as_ac_Lib
5670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5671 $as_echo "$ac_res" >&6; }
5672 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
5673 LIBS="$LIBS -l$SV_MODULE_LIB"
5674 else
5675 as_fn_error $? "Failed to find library $SV_MODULE_LIB for required module $SV_MODULE_MODULE" "$LINENO" 5
5676 fi
5677
5678 fi
5679 fi
5680
5681
5682
5683 SV_MODULE_MODULE=liblo
5684 SV_MODULE_VERSION_TEST=""
5685 SV_MODULE_HEADER=lo/lo.h
5686 SV_MODULE_LIB=lo
5687 SV_MODULE_FUNC=lo_address_new
5688 SV_MODULE_HAVE=HAVE_$(echo liblo | tr 'a-z' 'A-Z')
5689 SV_MODULE_FAILED=1
5690 if test -n "$liblo_LIBS" ; then
5691 { $as_echo "$as_me:${as_lineno-$LINENO}: User set ${SV_MODULE_MODULE}_LIBS explicitly, skipping test for $SV_MODULE_MODULE" >&5
5692 $as_echo "$as_me: User set ${SV_MODULE_MODULE}_LIBS explicitly, skipping test for $SV_MODULE_MODULE" >&6;}
5693 CXXFLAGS="$CXXFLAGS $liblo_CFLAGS"
5694 LIBS="$LIBS $liblo_LIBS"
5695 SV_MODULE_FAILED=""
5696 fi
5697 if test -z "$SV_MODULE_VERSION_TEST" ; then
5698 SV_MODULE_VERSION_TEST=$SV_MODULE_MODULE
5699 fi
5700 if test -n "$SV_MODULE_FAILED" && test -n "$PKG_CONFIG"; then
5701
5702 pkg_failed=no
5703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for liblo" >&5
5704 $as_echo_n "checking for liblo... " >&6; }
5705
5706 if test -n "$liblo_CFLAGS"; then
5707 pkg_cv_liblo_CFLAGS="$liblo_CFLAGS"
5708 elif test -n "$PKG_CONFIG"; then
5709 if test -n "$PKG_CONFIG" && \
5710 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$SV_MODULE_VERSION_TEST\""; } >&5
5711 ($PKG_CONFIG --exists --print-errors "$SV_MODULE_VERSION_TEST") 2>&5
5712 ac_status=$?
5713 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5714 test $ac_status = 0; }; then
5715 pkg_cv_liblo_CFLAGS=`$PKG_CONFIG --cflags "$SV_MODULE_VERSION_TEST" 2>/dev/null`
5716 test "x$?" != "x0" && pkg_failed=yes
5717 else
5718 pkg_failed=yes
5719 fi
5720 else
5721 pkg_failed=untried
5722 fi
5723 if test -n "$liblo_LIBS"; then
5724 pkg_cv_liblo_LIBS="$liblo_LIBS"
5725 elif test -n "$PKG_CONFIG"; then
5726 if test -n "$PKG_CONFIG" && \
5727 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$SV_MODULE_VERSION_TEST\""; } >&5
5728 ($PKG_CONFIG --exists --print-errors "$SV_MODULE_VERSION_TEST") 2>&5
5729 ac_status=$?
5730 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5731 test $ac_status = 0; }; then
5732 pkg_cv_liblo_LIBS=`$PKG_CONFIG --libs "$SV_MODULE_VERSION_TEST" 2>/dev/null`
5733 test "x$?" != "x0" && pkg_failed=yes
5734 else
5735 pkg_failed=yes
5736 fi
5737 else
5738 pkg_failed=untried
5739 fi
5740
5741
5742
5743 if test $pkg_failed = yes; then
5744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5745 $as_echo "no" >&6; }
5746
5747 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
5748 _pkg_short_errors_supported=yes
5749 else
5750 _pkg_short_errors_supported=no
5751 fi
5752 if test $_pkg_short_errors_supported = yes; then
5753 liblo_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$SV_MODULE_VERSION_TEST" 2>&1`
5754 else
5755 liblo_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$SV_MODULE_VERSION_TEST" 2>&1`
5756 fi
5757 # Put the nasty error message in config.log where it belongs
5758 echo "$liblo_PKG_ERRORS" >&5
5759 5598
5760 { $as_echo "$as_me:${as_lineno-$LINENO}: Failed to find optional module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&5 5599 { $as_echo "$as_me:${as_lineno-$LINENO}: Failed to find optional module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&5
5761 $as_echo "$as_me: Failed to find optional module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&6;} 5600 $as_echo "$as_me: Failed to find optional module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&6;}
5762 elif test $pkg_failed = untried; then 5601 elif test $pkg_failed = untried; then
5763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5764 $as_echo "no" >&6; } 5603 $as_echo "no" >&6; }
5765 { $as_echo "$as_me:${as_lineno-$LINENO}: Failed to find optional module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&5 5604 { $as_echo "$as_me:${as_lineno-$LINENO}: Failed to find optional module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&5
5766 $as_echo "$as_me: Failed to find optional module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&6;} 5605 $as_echo "$as_me: Failed to find optional module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&6;}
5767 else 5606 else
5768 liblo_CFLAGS=$pkg_cv_liblo_CFLAGS 5607 portaudio_CFLAGS=$pkg_cv_portaudio_CFLAGS
5769 liblo_LIBS=$pkg_cv_liblo_LIBS 5608 portaudio_LIBS=$pkg_cv_portaudio_LIBS
5770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5771 $as_echo "yes" >&6; } 5610 $as_echo "yes" >&6; }
5772 HAVES="$HAVES $SV_MODULE_HAVE";CXXFLAGS="$CXXFLAGS $liblo_CFLAGS";LIBS="$LIBS $liblo_LIBS";SV_MODULE_FAILED="" 5611 HAVES="$HAVES $SV_MODULE_HAVE";CXXFLAGS="$CXXFLAGS $portaudio_CFLAGS";LIBS="$LIBS $portaudio_LIBS";SV_MODULE_FAILED=""
5773 fi
5774 fi
5775 if test -n "$SV_MODULE_FAILED"; then
5776 as_ac_Header=`$as_echo "ac_cv_header_$SV_MODULE_HEADER" | $as_tr_sh`
5777 ac_fn_cxx_check_header_mongrel "$LINENO" "$SV_MODULE_HEADER" "$as_ac_Header" "$ac_includes_default"
5778 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5779 HAVES="$HAVES $SV_MODULE_HAVE";SV_MODULE_FAILED=""
5780 else
5781 { $as_echo "$as_me:${as_lineno-$LINENO}: Failed to find header $SV_MODULE_HEADER for optional module $SV_MODULE_MODULE" >&5
5782 $as_echo "$as_me: Failed to find header $SV_MODULE_HEADER for optional module $SV_MODULE_MODULE" >&6;}
5783 fi
5784
5785
5786 if test -z "$SV_MODULE_FAILED"; then
5787 if test -n "$SV_MODULE_LIB"; then
5788 as_ac_Lib=`$as_echo "ac_cv_lib_$SV_MODULE_LIB''_$SV_MODULE_FUNC" | $as_tr_sh`
5789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $SV_MODULE_FUNC in -l$SV_MODULE_LIB" >&5
5790 $as_echo_n "checking for $SV_MODULE_FUNC in -l$SV_MODULE_LIB... " >&6; }
5791 if eval \${$as_ac_Lib+:} false; then :
5792 $as_echo_n "(cached) " >&6
5793 else
5794 ac_check_lib_save_LIBS=$LIBS
5795 LIBS="-l$SV_MODULE_LIB $LIBS"
5796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5797 /* end confdefs.h. */
5798
5799 /* Override any GCC internal prototype to avoid an error.
5800 Use char because int might match the return type of a GCC
5801 builtin and then its argument prototype would still apply. */
5802 #ifdef __cplusplus
5803 extern "C"
5804 #endif
5805 char $SV_MODULE_FUNC ();
5806 int
5807 main ()
5808 {
5809 return $SV_MODULE_FUNC ();
5810 ;
5811 return 0;
5812 }
5813 _ACEOF
5814 if ac_fn_cxx_try_link "$LINENO"; then :
5815 eval "$as_ac_Lib=yes"
5816 else
5817 eval "$as_ac_Lib=no"
5818 fi
5819 rm -f core conftest.err conftest.$ac_objext \
5820 conftest$ac_exeext conftest.$ac_ext
5821 LIBS=$ac_check_lib_save_LIBS
5822 fi
5823 eval ac_res=\$$as_ac_Lib
5824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5825 $as_echo "$ac_res" >&6; }
5826 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
5827 LIBS="$LIBS -l$SV_MODULE_LIB"
5828 else
5829 { $as_echo "$as_me:${as_lineno-$LINENO}: Failed to find library $SV_MODULE_LIB for optional module $SV_MODULE_MODULE" >&5
5830 $as_echo "$as_me: Failed to find library $SV_MODULE_LIB for optional module $SV_MODULE_MODULE" >&6;}
5831 fi
5832
5833 fi
5834 fi
5835 fi
5836
5837
5838 SV_MODULE_MODULE=portaudio_2_0
5839 SV_MODULE_VERSION_TEST="portaudio-2.0 >= 19"
5840 SV_MODULE_HEADER=portaudio.h
5841 SV_MODULE_LIB=portaudio
5842 SV_MODULE_FUNC=Pa_IsFormatSupported
5843 SV_MODULE_HAVE=HAVE_$(echo portaudio_2_0 | tr 'a-z' 'A-Z')
5844 SV_MODULE_FAILED=1
5845 if test -n "$portaudio_2_0_LIBS" ; then
5846 { $as_echo "$as_me:${as_lineno-$LINENO}: User set ${SV_MODULE_MODULE}_LIBS explicitly, skipping test for $SV_MODULE_MODULE" >&5
5847 $as_echo "$as_me: User set ${SV_MODULE_MODULE}_LIBS explicitly, skipping test for $SV_MODULE_MODULE" >&6;}
5848 CXXFLAGS="$CXXFLAGS $portaudio_2_0_CFLAGS"
5849 LIBS="$LIBS $portaudio_2_0_LIBS"
5850 SV_MODULE_FAILED=""
5851 fi
5852 if test -z "$SV_MODULE_VERSION_TEST" ; then
5853 SV_MODULE_VERSION_TEST=$SV_MODULE_MODULE
5854 fi
5855 if test -n "$SV_MODULE_FAILED" && test -n "$PKG_CONFIG"; then
5856
5857 pkg_failed=no
5858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for portaudio_2_0" >&5
5859 $as_echo_n "checking for portaudio_2_0... " >&6; }
5860
5861 if test -n "$portaudio_2_0_CFLAGS"; then
5862 pkg_cv_portaudio_2_0_CFLAGS="$portaudio_2_0_CFLAGS"
5863 elif test -n "$PKG_CONFIG"; then
5864 if test -n "$PKG_CONFIG" && \
5865 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$SV_MODULE_VERSION_TEST\""; } >&5
5866 ($PKG_CONFIG --exists --print-errors "$SV_MODULE_VERSION_TEST") 2>&5
5867 ac_status=$?
5868 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5869 test $ac_status = 0; }; then
5870 pkg_cv_portaudio_2_0_CFLAGS=`$PKG_CONFIG --cflags "$SV_MODULE_VERSION_TEST" 2>/dev/null`
5871 test "x$?" != "x0" && pkg_failed=yes
5872 else
5873 pkg_failed=yes
5874 fi
5875 else
5876 pkg_failed=untried
5877 fi
5878 if test -n "$portaudio_2_0_LIBS"; then
5879 pkg_cv_portaudio_2_0_LIBS="$portaudio_2_0_LIBS"
5880 elif test -n "$PKG_CONFIG"; then
5881 if test -n "$PKG_CONFIG" && \
5882 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$SV_MODULE_VERSION_TEST\""; } >&5
5883 ($PKG_CONFIG --exists --print-errors "$SV_MODULE_VERSION_TEST") 2>&5
5884 ac_status=$?
5885 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5886 test $ac_status = 0; }; then
5887 pkg_cv_portaudio_2_0_LIBS=`$PKG_CONFIG --libs "$SV_MODULE_VERSION_TEST" 2>/dev/null`
5888 test "x$?" != "x0" && pkg_failed=yes
5889 else
5890 pkg_failed=yes
5891 fi
5892 else
5893 pkg_failed=untried
5894 fi
5895
5896
5897
5898 if test $pkg_failed = yes; then
5899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5900 $as_echo "no" >&6; }
5901
5902 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
5903 _pkg_short_errors_supported=yes
5904 else
5905 _pkg_short_errors_supported=no
5906 fi
5907 if test $_pkg_short_errors_supported = yes; then
5908 portaudio_2_0_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$SV_MODULE_VERSION_TEST" 2>&1`
5909 else
5910 portaudio_2_0_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$SV_MODULE_VERSION_TEST" 2>&1`
5911 fi
5912 # Put the nasty error message in config.log where it belongs
5913 echo "$portaudio_2_0_PKG_ERRORS" >&5
5914
5915 { $as_echo "$as_me:${as_lineno-$LINENO}: Failed to find optional module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&5
5916 $as_echo "$as_me: Failed to find optional module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&6;}
5917 elif test $pkg_failed = untried; then
5918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5919 $as_echo "no" >&6; }
5920 { $as_echo "$as_me:${as_lineno-$LINENO}: Failed to find optional module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&5
5921 $as_echo "$as_me: Failed to find optional module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&6;}
5922 else
5923 portaudio_2_0_CFLAGS=$pkg_cv_portaudio_2_0_CFLAGS
5924 portaudio_2_0_LIBS=$pkg_cv_portaudio_2_0_LIBS
5925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5926 $as_echo "yes" >&6; }
5927 HAVES="$HAVES $SV_MODULE_HAVE";CXXFLAGS="$CXXFLAGS $portaudio_2_0_CFLAGS";LIBS="$LIBS $portaudio_2_0_LIBS";SV_MODULE_FAILED=""
5928 fi 5612 fi
5929 fi 5613 fi
5930 if test -n "$SV_MODULE_FAILED"; then 5614 if test -n "$SV_MODULE_FAILED"; then
5931 as_ac_Header=`$as_echo "ac_cv_header_$SV_MODULE_HEADER" | $as_tr_sh` 5615 as_ac_Header=`$as_echo "ac_cv_header_$SV_MODULE_HEADER" | $as_tr_sh`
5932 ac_fn_cxx_check_header_mongrel "$LINENO" "$SV_MODULE_HEADER" "$as_ac_Header" "$ac_includes_default" 5616 ac_fn_cxx_check_header_mongrel "$LINENO" "$SV_MODULE_HEADER" "$as_ac_Header" "$ac_includes_default"