Mercurial > hg > sonic-visualiser
comparison configure @ 358:a5aa8d268817
* Add test for PortAudio; add missing OS/X frameworks
author | Chris Cannam |
---|---|
date | Fri, 08 Oct 2010 11:58:04 +0100 |
parents | 518224ea73ca |
children | 698c3d6f79a2 |
comparison
equal
deleted
inserted
replaced
357:dbc1d2d72cf1 | 358:a5aa8d268817 |
---|---|
616 lrdf_CFLAGS | 616 lrdf_CFLAGS |
617 libpulse_LIBS | 617 libpulse_LIBS |
618 libpulse_CFLAGS | 618 libpulse_CFLAGS |
619 JACK_LIBS | 619 JACK_LIBS |
620 JACK_CFLAGS | 620 JACK_CFLAGS |
621 portaudio_2_0_LIBS | |
622 portaudio_2_0_CFLAGS | |
621 liblo_LIBS | 623 liblo_LIBS |
622 liblo_CFLAGS | 624 liblo_CFLAGS |
623 redland_LIBS | 625 redland_LIBS |
624 redland_CFLAGS | 626 redland_CFLAGS |
625 rasqal_LIBS | 627 rasqal_LIBS |
739 rasqal_LIBS | 741 rasqal_LIBS |
740 redland_CFLAGS | 742 redland_CFLAGS |
741 redland_LIBS | 743 redland_LIBS |
742 liblo_CFLAGS | 744 liblo_CFLAGS |
743 liblo_LIBS | 745 liblo_LIBS |
746 portaudio_2_0_CFLAGS | |
747 portaudio_2_0_LIBS | |
744 JACK_CFLAGS | 748 JACK_CFLAGS |
745 JACK_LIBS | 749 JACK_LIBS |
746 libpulse_CFLAGS | 750 libpulse_CFLAGS |
747 libpulse_LIBS | 751 libpulse_LIBS |
748 lrdf_CFLAGS | 752 lrdf_CFLAGS |
1417 redland_LIBS | 1421 redland_LIBS |
1418 linker flags for redland, overriding pkg-config | 1422 linker flags for redland, overriding pkg-config |
1419 liblo_CFLAGS | 1423 liblo_CFLAGS |
1420 C compiler flags for liblo, overriding pkg-config | 1424 C compiler flags for liblo, overriding pkg-config |
1421 liblo_LIBS linker flags for liblo, overriding pkg-config | 1425 liblo_LIBS linker flags for liblo, overriding pkg-config |
1426 portaudio_2_0_CFLAGS | |
1427 C compiler flags for portaudio_2_0, overriding pkg-config | |
1428 portaudio_2_0_LIBS | |
1429 linker flags for portaudio_2_0, overriding pkg-config | |
1422 JACK_CFLAGS C compiler flags for JACK, overriding pkg-config | 1430 JACK_CFLAGS C compiler flags for JACK, overriding pkg-config |
1423 JACK_LIBS linker flags for JACK, overriding pkg-config | 1431 JACK_LIBS linker flags for JACK, overriding pkg-config |
1424 libpulse_CFLAGS | 1432 libpulse_CFLAGS |
1425 C compiler flags for libpulse, overriding pkg-config | 1433 C compiler flags for libpulse, overriding pkg-config |
1426 libpulse_LIBS | 1434 libpulse_LIBS |
5966 fi | 5974 fi |
5967 fi | 5975 fi |
5968 fi | 5976 fi |
5969 | 5977 |
5970 | 5978 |
5979 SV_MODULE_MODULE=portaudio_2_0 | |
5980 SV_MODULE_VERSION_TEST="portaudio-2.0 >= 19" | |
5981 SV_MODULE_HEADER=portaudio.h | |
5982 SV_MODULE_LIB=portaudio | |
5983 SV_MODULE_FUNC=Pa_IsFormatSupported | |
5984 SV_MODULE_HAVE=HAVE_$(echo portaudio_2_0 | tr 'a-z' 'A-Z') | |
5985 SV_MODULE_FAILED=1 | |
5986 if test -z "$SV_MODULE_VERSION_TEST" ; then | |
5987 SV_MODULE_VERSION_TEST=$SV_MODULE_MODULE | |
5988 fi | |
5989 if test -n "$PKG_CONFIG"; then | |
5990 | |
5991 pkg_failed=no | |
5992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for portaudio_2_0" >&5 | |
5993 $as_echo_n "checking for portaudio_2_0... " >&6; } | |
5994 | |
5995 if test -n "$PKG_CONFIG"; then | |
5996 if test -n "$portaudio_2_0_CFLAGS"; then | |
5997 pkg_cv_portaudio_2_0_CFLAGS="$portaudio_2_0_CFLAGS" | |
5998 else | |
5999 if test -n "$PKG_CONFIG" && \ | |
6000 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$SV_MODULE_VERSION_TEST\""; } >&5 | |
6001 ($PKG_CONFIG --exists --print-errors "$SV_MODULE_VERSION_TEST") 2>&5 | |
6002 ac_status=$? | |
6003 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
6004 test $ac_status = 0; }; then | |
6005 pkg_cv_portaudio_2_0_CFLAGS=`$PKG_CONFIG --cflags "$SV_MODULE_VERSION_TEST" 2>/dev/null` | |
6006 else | |
6007 pkg_failed=yes | |
6008 fi | |
6009 fi | |
6010 else | |
6011 pkg_failed=untried | |
6012 fi | |
6013 if test -n "$PKG_CONFIG"; then | |
6014 if test -n "$portaudio_2_0_LIBS"; then | |
6015 pkg_cv_portaudio_2_0_LIBS="$portaudio_2_0_LIBS" | |
6016 else | |
6017 if test -n "$PKG_CONFIG" && \ | |
6018 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$SV_MODULE_VERSION_TEST\""; } >&5 | |
6019 ($PKG_CONFIG --exists --print-errors "$SV_MODULE_VERSION_TEST") 2>&5 | |
6020 ac_status=$? | |
6021 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
6022 test $ac_status = 0; }; then | |
6023 pkg_cv_portaudio_2_0_LIBS=`$PKG_CONFIG --libs "$SV_MODULE_VERSION_TEST" 2>/dev/null` | |
6024 else | |
6025 pkg_failed=yes | |
6026 fi | |
6027 fi | |
6028 else | |
6029 pkg_failed=untried | |
6030 fi | |
6031 | |
6032 | |
6033 | |
6034 if test $pkg_failed = yes; then | |
6035 | |
6036 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
6037 _pkg_short_errors_supported=yes | |
6038 else | |
6039 _pkg_short_errors_supported=no | |
6040 fi | |
6041 if test $_pkg_short_errors_supported = yes; then | |
6042 portaudio_2_0_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "$SV_MODULE_VERSION_TEST"` | |
6043 else | |
6044 portaudio_2_0_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$SV_MODULE_VERSION_TEST"` | |
6045 fi | |
6046 # Put the nasty error message in config.log where it belongs | |
6047 echo "$portaudio_2_0_PKG_ERRORS" >&5 | |
6048 | |
6049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6050 $as_echo "no" >&6; } | |
6051 { $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 | |
6052 $as_echo "$as_me: Failed to find optional module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&6;} | |
6053 elif test $pkg_failed = untried; then | |
6054 { $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 | |
6055 $as_echo "$as_me: Failed to find optional module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&6;} | |
6056 else | |
6057 portaudio_2_0_CFLAGS=$pkg_cv_portaudio_2_0_CFLAGS | |
6058 portaudio_2_0_LIBS=$pkg_cv_portaudio_2_0_LIBS | |
6059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
6060 $as_echo "yes" >&6; } | |
6061 HAVES="$HAVES $SV_MODULE_HAVE";CXXFLAGS="$CXXFLAGS $portaudio_2_0_CFLAGS";LIBS="$LIBS $portaudio_2_0_LIBS";SV_MODULE_FAILED="" | |
6062 fi | |
6063 fi | |
6064 if test -n "$SV_MODULE_FAILED"; then | |
6065 as_ac_Header=`$as_echo "ac_cv_header_$SV_MODULE_HEADER" | $as_tr_sh` | |
6066 ac_fn_cxx_check_header_mongrel "$LINENO" "$SV_MODULE_HEADER" "$as_ac_Header" "$ac_includes_default" | |
6067 eval as_val=\$$as_ac_Header | |
6068 if test "x$as_val" = x""yes; then : | |
6069 HAVES="$HAVES $SV_MODULE_HAVE";SV_MODULE_FAILED="" | |
6070 else | |
6071 { $as_echo "$as_me:${as_lineno-$LINENO}: Failed to find header $SV_MODULE_HEADER for optional module $SV_MODULE_MODULE" >&5 | |
6072 $as_echo "$as_me: Failed to find header $SV_MODULE_HEADER for optional module $SV_MODULE_MODULE" >&6;} | |
6073 fi | |
6074 | |
6075 | |
6076 if test -z "$SV_MODULE_FAILED"; then | |
6077 if test -n "$SV_MODULE_LIB"; then | |
6078 as_ac_Lib=`$as_echo "ac_cv_lib_$SV_MODULE_LIB''_$SV_MODULE_FUNC" | $as_tr_sh` | |
6079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $SV_MODULE_FUNC in -l$SV_MODULE_LIB" >&5 | |
6080 $as_echo_n "checking for $SV_MODULE_FUNC in -l$SV_MODULE_LIB... " >&6; } | |
6081 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then : | |
6082 $as_echo_n "(cached) " >&6 | |
6083 else | |
6084 ac_check_lib_save_LIBS=$LIBS | |
6085 LIBS="-l$SV_MODULE_LIB $LIBS" | |
6086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6087 /* end confdefs.h. */ | |
6088 | |
6089 /* Override any GCC internal prototype to avoid an error. | |
6090 Use char because int might match the return type of a GCC | |
6091 builtin and then its argument prototype would still apply. */ | |
6092 #ifdef __cplusplus | |
6093 extern "C" | |
6094 #endif | |
6095 char $SV_MODULE_FUNC (); | |
6096 int | |
6097 main () | |
6098 { | |
6099 return $SV_MODULE_FUNC (); | |
6100 ; | |
6101 return 0; | |
6102 } | |
6103 _ACEOF | |
6104 if ac_fn_cxx_try_link "$LINENO"; then : | |
6105 eval "$as_ac_Lib=yes" | |
6106 else | |
6107 eval "$as_ac_Lib=no" | |
6108 fi | |
6109 rm -f core conftest.err conftest.$ac_objext \ | |
6110 conftest$ac_exeext conftest.$ac_ext | |
6111 LIBS=$ac_check_lib_save_LIBS | |
6112 fi | |
6113 eval ac_res=\$$as_ac_Lib | |
6114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
6115 $as_echo "$ac_res" >&6; } | |
6116 eval as_val=\$$as_ac_Lib | |
6117 if test "x$as_val" = x""yes; then : | |
6118 LIBS="$LIBS -l$SV_MODULE_LIB" | |
6119 else | |
6120 { $as_echo "$as_me:${as_lineno-$LINENO}: Failed to find library $SV_MODULE_LIB for optional module $SV_MODULE_MODULE" >&5 | |
6121 $as_echo "$as_me: Failed to find library $SV_MODULE_LIB for optional module $SV_MODULE_MODULE" >&6;} | |
6122 fi | |
6123 | |
6124 fi | |
6125 fi | |
6126 fi | |
6127 | |
6128 | |
5971 SV_MODULE_MODULE=JACK | 6129 SV_MODULE_MODULE=JACK |
5972 SV_MODULE_VERSION_TEST="jack >= 0.100" | 6130 SV_MODULE_VERSION_TEST="jack >= 0.100" |
5973 SV_MODULE_HEADER=jack/jack.h | 6131 SV_MODULE_HEADER=jack/jack.h |
5974 SV_MODULE_LIB=jack | 6132 SV_MODULE_LIB=jack |
5975 SV_MODULE_FUNC=jack_client_open | 6133 SV_MODULE_FUNC=jack_client_open |