comparison configure @ 2130:59fc24be0280

Merge from branch rubberband-static
author Chris Cannam
date Wed, 28 Nov 2018 14:15:57 +0000
parents f474b3931217
children af4df56ad040
comparison
equal deleted inserted replaced
2124:ac587ccb08bd 2130:59fc24be0280
654 capnp_CFLAGS 654 capnp_CFLAGS
655 serd_LIBS 655 serd_LIBS
656 serd_CFLAGS 656 serd_CFLAGS
657 sord_LIBS 657 sord_LIBS
658 sord_CFLAGS 658 sord_CFLAGS
659 rubberband_LIBS
660 rubberband_CFLAGS
661 libsamplerate_LIBS 659 libsamplerate_LIBS
662 libsamplerate_CFLAGS 660 libsamplerate_CFLAGS
663 sndfile_LIBS 661 sndfile_LIBS
664 sndfile_CFLAGS 662 sndfile_CFLAGS
665 fftw3f_LIBS 663 fftw3f_LIBS
756 fftw3f_LIBS 754 fftw3f_LIBS
757 sndfile_CFLAGS 755 sndfile_CFLAGS
758 sndfile_LIBS 756 sndfile_LIBS
759 libsamplerate_CFLAGS 757 libsamplerate_CFLAGS
760 libsamplerate_LIBS 758 libsamplerate_LIBS
761 rubberband_CFLAGS
762 rubberband_LIBS
763 sord_CFLAGS 759 sord_CFLAGS
764 sord_LIBS 760 sord_LIBS
765 serd_CFLAGS 761 serd_CFLAGS
766 serd_LIBS 762 serd_LIBS
767 capnp_CFLAGS 763 capnp_CFLAGS
1425 linker flags for sndfile, overriding pkg-config 1421 linker flags for sndfile, overriding pkg-config
1426 libsamplerate_CFLAGS 1422 libsamplerate_CFLAGS
1427 C compiler flags for libsamplerate, overriding pkg-config 1423 C compiler flags for libsamplerate, overriding pkg-config
1428 libsamplerate_LIBS 1424 libsamplerate_LIBS
1429 linker flags for libsamplerate, overriding pkg-config 1425 linker flags for libsamplerate, overriding pkg-config
1430 rubberband_CFLAGS
1431 C compiler flags for rubberband, overriding pkg-config
1432 rubberband_LIBS
1433 linker flags for rubberband, overriding pkg-config
1434 sord_CFLAGS C compiler flags for sord, overriding pkg-config 1426 sord_CFLAGS C compiler flags for sord, overriding pkg-config
1435 sord_LIBS linker flags for sord, overriding pkg-config 1427 sord_LIBS linker flags for sord, overriding pkg-config
1436 serd_CFLAGS C compiler flags for serd, overriding pkg-config 1428 serd_CFLAGS C compiler flags for serd, overriding pkg-config
1437 serd_LIBS linker flags for serd, overriding pkg-config 1429 serd_LIBS linker flags for serd, overriding pkg-config
1438 capnp_CFLAGS 1430 capnp_CFLAGS
5276 5268
5277 fi 5269 fi
5278 fi 5270 fi
5279 5271
5280 5272
5281 SV_MODULE_MODULE=rubberband
5282 SV_MODULE_VERSION_TEST="rubberband"
5283 SV_MODULE_HEADER=rubberband/RubberBandStretcher.h
5284 SV_MODULE_LIB=rubberband
5285 SV_MODULE_FUNC=rubberband_new
5286 SV_MODULE_HAVE=HAVE_$(echo rubberband | tr 'a-z' 'A-Z')
5287 SV_MODULE_FAILED=1
5288 if test -n "$rubberband_LIBS" ; then
5289 { $as_echo "$as_me:${as_lineno-$LINENO}: User set ${SV_MODULE_MODULE}_LIBS explicitly, skipping test for $SV_MODULE_MODULE" >&5
5290 $as_echo "$as_me: User set ${SV_MODULE_MODULE}_LIBS explicitly, skipping test for $SV_MODULE_MODULE" >&6;}
5291 CXXFLAGS="$CXXFLAGS $rubberband_CFLAGS"
5292 LIBS="$LIBS $rubberband_LIBS"
5293 SV_MODULE_FAILED=""
5294 fi
5295 if test -z "$SV_MODULE_VERSION_TEST" ; then
5296 SV_MODULE_VERSION_TEST=$SV_MODULE_MODULE
5297 fi
5298 if test -n "$SV_MODULE_FAILED" && test -n "$PKG_CONFIG"; then
5299
5300 pkg_failed=no
5301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rubberband" >&5
5302 $as_echo_n "checking for rubberband... " >&6; }
5303
5304 if test -n "$rubberband_CFLAGS"; then
5305 pkg_cv_rubberband_CFLAGS="$rubberband_CFLAGS"
5306 elif test -n "$PKG_CONFIG"; then
5307 if test -n "$PKG_CONFIG" && \
5308 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$SV_MODULE_VERSION_TEST\""; } >&5
5309 ($PKG_CONFIG --exists --print-errors "$SV_MODULE_VERSION_TEST") 2>&5
5310 ac_status=$?
5311 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5312 test $ac_status = 0; }; then
5313 pkg_cv_rubberband_CFLAGS=`$PKG_CONFIG --cflags "$SV_MODULE_VERSION_TEST" 2>/dev/null`
5314 test "x$?" != "x0" && pkg_failed=yes
5315 else
5316 pkg_failed=yes
5317 fi
5318 else
5319 pkg_failed=untried
5320 fi
5321 if test -n "$rubberband_LIBS"; then
5322 pkg_cv_rubberband_LIBS="$rubberband_LIBS"
5323 elif test -n "$PKG_CONFIG"; then
5324 if test -n "$PKG_CONFIG" && \
5325 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$SV_MODULE_VERSION_TEST\""; } >&5
5326 ($PKG_CONFIG --exists --print-errors "$SV_MODULE_VERSION_TEST") 2>&5
5327 ac_status=$?
5328 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5329 test $ac_status = 0; }; then
5330 pkg_cv_rubberband_LIBS=`$PKG_CONFIG --libs "$SV_MODULE_VERSION_TEST" 2>/dev/null`
5331 test "x$?" != "x0" && pkg_failed=yes
5332 else
5333 pkg_failed=yes
5334 fi
5335 else
5336 pkg_failed=untried
5337 fi
5338
5339
5340
5341 if test $pkg_failed = yes; then
5342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5343 $as_echo "no" >&6; }
5344
5345 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
5346 _pkg_short_errors_supported=yes
5347 else
5348 _pkg_short_errors_supported=no
5349 fi
5350 if test $_pkg_short_errors_supported = yes; then
5351 rubberband_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$SV_MODULE_VERSION_TEST" 2>&1`
5352 else
5353 rubberband_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$SV_MODULE_VERSION_TEST" 2>&1`
5354 fi
5355 # Put the nasty error message in config.log where it belongs
5356 echo "$rubberband_PKG_ERRORS" >&5
5357
5358 { $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
5359 $as_echo "$as_me: Failed to find required module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&6;}
5360 elif test $pkg_failed = untried; then
5361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5362 $as_echo "no" >&6; }
5363 { $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
5364 $as_echo "$as_me: Failed to find required module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&6;}
5365 else
5366 rubberband_CFLAGS=$pkg_cv_rubberband_CFLAGS
5367 rubberband_LIBS=$pkg_cv_rubberband_LIBS
5368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5369 $as_echo "yes" >&6; }
5370 HAVES="$HAVES $SV_MODULE_HAVE";CXXFLAGS="$CXXFLAGS $rubberband_CFLAGS";LIBS="$LIBS $rubberband_LIBS";SV_MODULE_FAILED=""
5371 fi
5372 fi
5373 if test -n "$SV_MODULE_FAILED"; then
5374 as_ac_Header=`$as_echo "ac_cv_header_$SV_MODULE_HEADER" | $as_tr_sh`
5375 ac_fn_cxx_check_header_mongrel "$LINENO" "$SV_MODULE_HEADER" "$as_ac_Header" "$ac_includes_default"
5376 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5377 HAVES="$HAVES $SV_MODULE_HAVE"
5378 else
5379 as_fn_error $? "Failed to find header $SV_MODULE_HEADER for required module $SV_MODULE_MODULE" "$LINENO" 5
5380 fi
5381
5382
5383 if test -n "$SV_MODULE_LIB"; then
5384 as_ac_Lib=`$as_echo "ac_cv_lib_$SV_MODULE_LIB''_$SV_MODULE_FUNC" | $as_tr_sh`
5385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $SV_MODULE_FUNC in -l$SV_MODULE_LIB" >&5
5386 $as_echo_n "checking for $SV_MODULE_FUNC in -l$SV_MODULE_LIB... " >&6; }
5387 if eval \${$as_ac_Lib+:} false; then :
5388 $as_echo_n "(cached) " >&6
5389 else
5390 ac_check_lib_save_LIBS=$LIBS
5391 LIBS="-l$SV_MODULE_LIB $LIBS"
5392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5393 /* end confdefs.h. */
5394
5395 /* Override any GCC internal prototype to avoid an error.
5396 Use char because int might match the return type of a GCC
5397 builtin and then its argument prototype would still apply. */
5398 #ifdef __cplusplus
5399 extern "C"
5400 #endif
5401 char $SV_MODULE_FUNC ();
5402 int
5403 main ()
5404 {
5405 return $SV_MODULE_FUNC ();
5406 ;
5407 return 0;
5408 }
5409 _ACEOF
5410 if ac_fn_cxx_try_link "$LINENO"; then :
5411 eval "$as_ac_Lib=yes"
5412 else
5413 eval "$as_ac_Lib=no"
5414 fi
5415 rm -f core conftest.err conftest.$ac_objext \
5416 conftest$ac_exeext conftest.$ac_ext
5417 LIBS=$ac_check_lib_save_LIBS
5418 fi
5419 eval ac_res=\$$as_ac_Lib
5420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5421 $as_echo "$ac_res" >&6; }
5422 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
5423 LIBS="$LIBS -l$SV_MODULE_LIB"
5424 else
5425 as_fn_error $? "Failed to find library $SV_MODULE_LIB for required module $SV_MODULE_MODULE" "$LINENO" 5
5426 fi
5427
5428 fi
5429 fi
5430
5431
5432 SV_MODULE_MODULE=sord 5273 SV_MODULE_MODULE=sord
5433 SV_MODULE_VERSION_TEST="sord-0 >= 0.5" 5274 SV_MODULE_VERSION_TEST="sord-0 >= 0.5"
5434 SV_MODULE_HEADER=sord/sord.h 5275 SV_MODULE_HEADER=sord/sord.h
5435 SV_MODULE_LIB=sord-0 5276 SV_MODULE_LIB=sord-0
5436 SV_MODULE_FUNC=sord_world_new 5277 SV_MODULE_FUNC=sord_world_new