Mercurial > hg > sonic-visualiser
comparison configure @ 1614:e5ead8c8f5ed
Update configure check for Cap'n Proto to avoid directly looking up mangled symbols
author | Chris Cannam |
---|---|
date | Mon, 27 Feb 2017 13:24:29 +0000 |
parents | 782025ae1249 |
children | cc481995c96d |
comparison
equal
deleted
inserted
replaced
1613:3f6c18fcc075 | 1614:e5ead8c8f5ed |
---|---|
648 JACK_CFLAGS | 648 JACK_CFLAGS |
649 portaudio_LIBS | 649 portaudio_LIBS |
650 portaudio_CFLAGS | 650 portaudio_CFLAGS |
651 liblo_LIBS | 651 liblo_LIBS |
652 liblo_CFLAGS | 652 liblo_CFLAGS |
653 kj_LIBS | |
654 kj_CFLAGS | |
655 capnp_LIBS | 653 capnp_LIBS |
656 capnp_CFLAGS | 654 capnp_CFLAGS |
657 serd_LIBS | 655 serd_LIBS |
658 serd_CFLAGS | 656 serd_CFLAGS |
659 sord_LIBS | 657 sord_LIBS |
766 sord_LIBS | 764 sord_LIBS |
767 serd_CFLAGS | 765 serd_CFLAGS |
768 serd_LIBS | 766 serd_LIBS |
769 capnp_CFLAGS | 767 capnp_CFLAGS |
770 capnp_LIBS | 768 capnp_LIBS |
771 kj_CFLAGS | |
772 kj_LIBS | |
773 liblo_CFLAGS | 769 liblo_CFLAGS |
774 liblo_LIBS | 770 liblo_LIBS |
775 portaudio_CFLAGS | 771 portaudio_CFLAGS |
776 portaudio_LIBS | 772 portaudio_LIBS |
777 JACK_CFLAGS | 773 JACK_CFLAGS |
1440 serd_CFLAGS C compiler flags for serd, overriding pkg-config | 1436 serd_CFLAGS C compiler flags for serd, overriding pkg-config |
1441 serd_LIBS linker flags for serd, overriding pkg-config | 1437 serd_LIBS linker flags for serd, overriding pkg-config |
1442 capnp_CFLAGS | 1438 capnp_CFLAGS |
1443 C compiler flags for capnp, overriding pkg-config | 1439 C compiler flags for capnp, overriding pkg-config |
1444 capnp_LIBS linker flags for capnp, overriding pkg-config | 1440 capnp_LIBS linker flags for capnp, overriding pkg-config |
1445 kj_CFLAGS C compiler flags for kj, overriding pkg-config | |
1446 kj_LIBS linker flags for kj, overriding pkg-config | |
1447 liblo_CFLAGS | 1441 liblo_CFLAGS |
1448 C compiler flags for liblo, overriding pkg-config | 1442 C compiler flags for liblo, overriding pkg-config |
1449 liblo_LIBS linker flags for liblo, overriding pkg-config | 1443 liblo_LIBS linker flags for liblo, overriding pkg-config |
1450 portaudio_CFLAGS | 1444 portaudio_CFLAGS |
1451 C compiler flags for portaudio, overriding pkg-config | 1445 C compiler flags for portaudio, overriding pkg-config |
5688 fi | 5682 fi |
5689 | 5683 |
5690 | 5684 |
5691 # Cap'n Proto 0.5.3 is the latest release at the time of writing, but | 5685 # Cap'n Proto 0.5.3 is the latest release at the time of writing, but |
5692 # it lacks the expectedSizeInWordsFromPrefix function which exists in | 5686 # it lacks the expectedSizeInWordsFromPrefix function which exists in |
5693 # the git repo. Check for a newer release or, if that's not found with | 5687 # the git repo. Our check is for that specific symbol, which would |
5694 # pkg-config, check for that specific symbol (mangled). | 5688 # indicate a git checkout, or release 0.5.4 or later. |
5695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking specifically for a newer Cap'n Proto than the 0.5.3 release" >&5 | |
5696 $as_echo "$as_me: checking specifically for a newer Cap'n Proto than the 0.5.3 release" >&6;} | |
5697 | |
5698 SV_MODULE_MODULE=capnp | |
5699 SV_MODULE_VERSION_TEST="capnp >= 0.5.4" | |
5700 SV_MODULE_HEADER=capnp/common.h | |
5701 SV_MODULE_LIB=capnp | |
5702 SV_MODULE_FUNC=_ZN5capnp29expectedSizeInWordsFromPrefixEN2kj8ArrayPtrIKNS_4wordEEE | |
5703 SV_MODULE_HAVE=HAVE_$(echo capnp | tr 'a-z' 'A-Z') | |
5704 SV_MODULE_FAILED=1 | |
5705 if test -n "$capnp_LIBS" ; then | |
5706 { $as_echo "$as_me:${as_lineno-$LINENO}: User set ${SV_MODULE_MODULE}_LIBS explicitly, skipping test for $SV_MODULE_MODULE" >&5 | |
5707 $as_echo "$as_me: User set ${SV_MODULE_MODULE}_LIBS explicitly, skipping test for $SV_MODULE_MODULE" >&6;} | |
5708 CXXFLAGS="$CXXFLAGS $capnp_CFLAGS" | |
5709 LIBS="$LIBS $capnp_LIBS" | |
5710 SV_MODULE_FAILED="" | |
5711 fi | |
5712 if test -z "$SV_MODULE_VERSION_TEST" ; then | |
5713 SV_MODULE_VERSION_TEST=$SV_MODULE_MODULE | |
5714 fi | |
5715 if test -n "$SV_MODULE_FAILED" && test -n "$PKG_CONFIG"; then | |
5716 | 5689 |
5717 pkg_failed=no | 5690 pkg_failed=no |
5718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for capnp" >&5 | 5691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for capnp" >&5 |
5719 $as_echo_n "checking for capnp... " >&6; } | 5692 $as_echo_n "checking for capnp... " >&6; } |
5720 | 5693 |
5721 if test -n "$capnp_CFLAGS"; then | 5694 if test -n "$capnp_CFLAGS"; then |
5722 pkg_cv_capnp_CFLAGS="$capnp_CFLAGS" | 5695 pkg_cv_capnp_CFLAGS="$capnp_CFLAGS" |
5723 elif test -n "$PKG_CONFIG"; then | 5696 elif test -n "$PKG_CONFIG"; then |
5724 if test -n "$PKG_CONFIG" && \ | 5697 if test -n "$PKG_CONFIG" && \ |
5725 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$SV_MODULE_VERSION_TEST\""; } >&5 | 5698 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"capnp => 0.5.4\""; } >&5 |
5726 ($PKG_CONFIG --exists --print-errors "$SV_MODULE_VERSION_TEST") 2>&5 | 5699 ($PKG_CONFIG --exists --print-errors "capnp => 0.5.4") 2>&5 |
5727 ac_status=$? | 5700 ac_status=$? |
5728 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | 5701 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
5729 test $ac_status = 0; }; then | 5702 test $ac_status = 0; }; then |
5730 pkg_cv_capnp_CFLAGS=`$PKG_CONFIG --cflags "$SV_MODULE_VERSION_TEST" 2>/dev/null` | 5703 pkg_cv_capnp_CFLAGS=`$PKG_CONFIG --cflags "capnp => 0.5.4" 2>/dev/null` |
5731 test "x$?" != "x0" && pkg_failed=yes | 5704 test "x$?" != "x0" && pkg_failed=yes |
5732 else | 5705 else |
5733 pkg_failed=yes | 5706 pkg_failed=yes |
5734 fi | 5707 fi |
5735 else | 5708 else |
5737 fi | 5710 fi |
5738 if test -n "$capnp_LIBS"; then | 5711 if test -n "$capnp_LIBS"; then |
5739 pkg_cv_capnp_LIBS="$capnp_LIBS" | 5712 pkg_cv_capnp_LIBS="$capnp_LIBS" |
5740 elif test -n "$PKG_CONFIG"; then | 5713 elif test -n "$PKG_CONFIG"; then |
5741 if test -n "$PKG_CONFIG" && \ | 5714 if test -n "$PKG_CONFIG" && \ |
5742 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$SV_MODULE_VERSION_TEST\""; } >&5 | 5715 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"capnp => 0.5.4\""; } >&5 |
5743 ($PKG_CONFIG --exists --print-errors "$SV_MODULE_VERSION_TEST") 2>&5 | 5716 ($PKG_CONFIG --exists --print-errors "capnp => 0.5.4") 2>&5 |
5744 ac_status=$? | 5717 ac_status=$? |
5745 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | 5718 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
5746 test $ac_status = 0; }; then | 5719 test $ac_status = 0; }; then |
5747 pkg_cv_capnp_LIBS=`$PKG_CONFIG --libs "$SV_MODULE_VERSION_TEST" 2>/dev/null` | 5720 pkg_cv_capnp_LIBS=`$PKG_CONFIG --libs "capnp => 0.5.4" 2>/dev/null` |
5748 test "x$?" != "x0" && pkg_failed=yes | 5721 test "x$?" != "x0" && pkg_failed=yes |
5749 else | 5722 else |
5750 pkg_failed=yes | 5723 pkg_failed=yes |
5751 fi | 5724 fi |
5752 else | 5725 else |
5763 _pkg_short_errors_supported=yes | 5736 _pkg_short_errors_supported=yes |
5764 else | 5737 else |
5765 _pkg_short_errors_supported=no | 5738 _pkg_short_errors_supported=no |
5766 fi | 5739 fi |
5767 if test $_pkg_short_errors_supported = yes; then | 5740 if test $_pkg_short_errors_supported = yes; then |
5768 capnp_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$SV_MODULE_VERSION_TEST" 2>&1` | 5741 capnp_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "capnp => 0.5.4" 2>&1` |
5769 else | 5742 else |
5770 capnp_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$SV_MODULE_VERSION_TEST" 2>&1` | 5743 capnp_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "capnp => 0.5.4" 2>&1` |
5771 fi | 5744 fi |
5772 # Put the nasty error message in config.log where it belongs | 5745 # Put the nasty error message in config.log where it belongs |
5773 echo "$capnp_PKG_ERRORS" >&5 | 5746 echo "$capnp_PKG_ERRORS" >&5 |
5774 | 5747 |
5775 { $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 | 5748 { $as_echo "$as_me:${as_lineno-$LINENO}: Failed to find required module capnp using pkg-config, trying again by old-fashioned means" >&5 |
5776 $as_echo "$as_me: Failed to find required module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&6;} | 5749 $as_echo "$as_me: Failed to find required module capnp using pkg-config, trying again by old-fashioned means" >&6;} |
5777 elif test $pkg_failed = untried; then | 5750 elif test $pkg_failed = untried; then |
5778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 5751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5779 $as_echo "no" >&6; } | 5752 $as_echo "no" >&6; } |
5780 { $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 | 5753 { $as_echo "$as_me:${as_lineno-$LINENO}: Failed to find required module capnp using pkg-config, trying again by old-fashioned means" >&5 |
5781 $as_echo "$as_me: Failed to find required module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&6;} | 5754 $as_echo "$as_me: Failed to find required module capnp using pkg-config, trying again by old-fashioned means" >&6;} |
5782 else | 5755 else |
5783 capnp_CFLAGS=$pkg_cv_capnp_CFLAGS | 5756 capnp_CFLAGS=$pkg_cv_capnp_CFLAGS |
5784 capnp_LIBS=$pkg_cv_capnp_LIBS | 5757 capnp_LIBS=$pkg_cv_capnp_LIBS |
5785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 5758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
5786 $as_echo "yes" >&6; } | 5759 $as_echo "yes" >&6; } |
5787 HAVES="$HAVES $SV_MODULE_HAVE";CXXFLAGS="$CXXFLAGS $capnp_CFLAGS";LIBS="$LIBS $capnp_LIBS";SV_MODULE_FAILED="" | 5760 HAVES="$HAVES HAVE_CAPNP";CXXFLAGS="$CXXFLAGS $capnp_CFLAGS";LIBS="$LIBS $capnp_LIBS" |
5788 fi | 5761 fi |
5789 fi | 5762 if test -z "$capnp_LIBS" ; then |
5790 if test -n "$SV_MODULE_FAILED"; then | 5763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
5791 as_ac_Header=`$as_echo "ac_cv_header_$SV_MODULE_HEADER" | $as_tr_sh` | |
5792 ac_fn_cxx_check_header_mongrel "$LINENO" "$SV_MODULE_HEADER" "$as_ac_Header" "$ac_includes_default" | |
5793 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | |
5794 HAVES="$HAVES $SV_MODULE_HAVE" | |
5795 else | |
5796 as_fn_error $? "Failed to find header $SV_MODULE_HEADER for required module $SV_MODULE_MODULE" "$LINENO" 5 | |
5797 fi | |
5798 | |
5799 | |
5800 if test -n "$SV_MODULE_LIB"; then | |
5801 as_ac_Lib=`$as_echo "ac_cv_lib_$SV_MODULE_LIB''_$SV_MODULE_FUNC" | $as_tr_sh` | |
5802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $SV_MODULE_FUNC in -l$SV_MODULE_LIB" >&5 | |
5803 $as_echo_n "checking for $SV_MODULE_FUNC in -l$SV_MODULE_LIB... " >&6; } | |
5804 if eval \${$as_ac_Lib+:} false; then : | |
5805 $as_echo_n "(cached) " >&6 | |
5806 else | |
5807 ac_check_lib_save_LIBS=$LIBS | |
5808 LIBS="-l$SV_MODULE_LIB $LIBS" | |
5809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5810 /* end confdefs.h. */ | 5764 /* end confdefs.h. */ |
5811 | 5765 |
5812 /* Override any GCC internal prototype to avoid an error. | 5766 |
5813 Use char because int might match the return type of a GCC | 5767 #include <capnp/serialize.h> |
5814 builtin and then its argument prototype would still apply. */ | 5768 int main() { |
5815 #ifdef __cplusplus | 5769 kj::Array<capnp::word> prefix; |
5816 extern "C" | 5770 return capnp::expectedSizeInWordsFromPrefix(prefix.asPtr()); |
5817 #endif | 5771 } |
5818 char $SV_MODULE_FUNC (); | |
5819 int | |
5820 main () | |
5821 { | |
5822 return $SV_MODULE_FUNC (); | |
5823 ; | |
5824 return 0; | |
5825 } | |
5826 _ACEOF | 5772 _ACEOF |
5827 if ac_fn_cxx_try_link "$LINENO"; then : | 5773 if ac_fn_cxx_try_compile "$LINENO"; then : |
5828 eval "$as_ac_Lib=yes" | 5774 HAVES="$HAVES HAVE_CAPNP";LIBS="$LIBS -lcapnp -lkj" |
5829 else | 5775 else |
5830 eval "$as_ac_Lib=no" | 5776 as_fn_error $? "Failed to find appropriate capnp library" "$LINENO" 5 |
5831 fi | 5777 |
5832 rm -f core conftest.err conftest.$ac_objext \ | 5778 fi |
5833 conftest$ac_exeext conftest.$ac_ext | 5779 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
5834 LIBS=$ac_check_lib_save_LIBS | 5780 fi |
5835 fi | |
5836 eval ac_res=\$$as_ac_Lib | |
5837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
5838 $as_echo "$ac_res" >&6; } | |
5839 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : | |
5840 LIBS="$LIBS -l$SV_MODULE_LIB" | |
5841 else | |
5842 as_fn_error $? "Failed to find library $SV_MODULE_LIB for required module $SV_MODULE_MODULE" "$LINENO" 5 | |
5843 fi | |
5844 | |
5845 fi | |
5846 fi | |
5847 | |
5848 | |
5849 SV_MODULE_MODULE=kj | |
5850 SV_MODULE_VERSION_TEST="kj >= 0.5.4" | |
5851 SV_MODULE_HEADER=kj/common.h | |
5852 SV_MODULE_LIB=kj | |
5853 SV_MODULE_FUNC=_ZN2kj20BufferedOutputStreamD0Ev | |
5854 SV_MODULE_HAVE=HAVE_$(echo kj | tr 'a-z' 'A-Z') | |
5855 SV_MODULE_FAILED=1 | |
5856 if test -n "$kj_LIBS" ; then | |
5857 { $as_echo "$as_me:${as_lineno-$LINENO}: User set ${SV_MODULE_MODULE}_LIBS explicitly, skipping test for $SV_MODULE_MODULE" >&5 | |
5858 $as_echo "$as_me: User set ${SV_MODULE_MODULE}_LIBS explicitly, skipping test for $SV_MODULE_MODULE" >&6;} | |
5859 CXXFLAGS="$CXXFLAGS $kj_CFLAGS" | |
5860 LIBS="$LIBS $kj_LIBS" | |
5861 SV_MODULE_FAILED="" | |
5862 fi | |
5863 if test -z "$SV_MODULE_VERSION_TEST" ; then | |
5864 SV_MODULE_VERSION_TEST=$SV_MODULE_MODULE | |
5865 fi | |
5866 if test -n "$SV_MODULE_FAILED" && test -n "$PKG_CONFIG"; then | |
5867 | |
5868 pkg_failed=no | |
5869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kj" >&5 | |
5870 $as_echo_n "checking for kj... " >&6; } | |
5871 | |
5872 if test -n "$kj_CFLAGS"; then | |
5873 pkg_cv_kj_CFLAGS="$kj_CFLAGS" | |
5874 elif test -n "$PKG_CONFIG"; then | |
5875 if test -n "$PKG_CONFIG" && \ | |
5876 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$SV_MODULE_VERSION_TEST\""; } >&5 | |
5877 ($PKG_CONFIG --exists --print-errors "$SV_MODULE_VERSION_TEST") 2>&5 | |
5878 ac_status=$? | |
5879 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
5880 test $ac_status = 0; }; then | |
5881 pkg_cv_kj_CFLAGS=`$PKG_CONFIG --cflags "$SV_MODULE_VERSION_TEST" 2>/dev/null` | |
5882 test "x$?" != "x0" && pkg_failed=yes | |
5883 else | |
5884 pkg_failed=yes | |
5885 fi | |
5886 else | |
5887 pkg_failed=untried | |
5888 fi | |
5889 if test -n "$kj_LIBS"; then | |
5890 pkg_cv_kj_LIBS="$kj_LIBS" | |
5891 elif test -n "$PKG_CONFIG"; then | |
5892 if test -n "$PKG_CONFIG" && \ | |
5893 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$SV_MODULE_VERSION_TEST\""; } >&5 | |
5894 ($PKG_CONFIG --exists --print-errors "$SV_MODULE_VERSION_TEST") 2>&5 | |
5895 ac_status=$? | |
5896 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
5897 test $ac_status = 0; }; then | |
5898 pkg_cv_kj_LIBS=`$PKG_CONFIG --libs "$SV_MODULE_VERSION_TEST" 2>/dev/null` | |
5899 test "x$?" != "x0" && pkg_failed=yes | |
5900 else | |
5901 pkg_failed=yes | |
5902 fi | |
5903 else | |
5904 pkg_failed=untried | |
5905 fi | |
5906 | |
5907 | |
5908 | |
5909 if test $pkg_failed = yes; then | |
5910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5911 $as_echo "no" >&6; } | |
5912 | |
5913 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
5914 _pkg_short_errors_supported=yes | |
5915 else | |
5916 _pkg_short_errors_supported=no | |
5917 fi | |
5918 if test $_pkg_short_errors_supported = yes; then | |
5919 kj_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$SV_MODULE_VERSION_TEST" 2>&1` | |
5920 else | |
5921 kj_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$SV_MODULE_VERSION_TEST" 2>&1` | |
5922 fi | |
5923 # Put the nasty error message in config.log where it belongs | |
5924 echo "$kj_PKG_ERRORS" >&5 | |
5925 | |
5926 { $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 | |
5927 $as_echo "$as_me: Failed to find required module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&6;} | |
5928 elif test $pkg_failed = untried; then | |
5929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5930 $as_echo "no" >&6; } | |
5931 { $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 | |
5932 $as_echo "$as_me: Failed to find required module $SV_MODULE_MODULE using pkg-config, trying again by old-fashioned means" >&6;} | |
5933 else | |
5934 kj_CFLAGS=$pkg_cv_kj_CFLAGS | |
5935 kj_LIBS=$pkg_cv_kj_LIBS | |
5936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
5937 $as_echo "yes" >&6; } | |
5938 HAVES="$HAVES $SV_MODULE_HAVE";CXXFLAGS="$CXXFLAGS $kj_CFLAGS";LIBS="$LIBS $kj_LIBS";SV_MODULE_FAILED="" | |
5939 fi | |
5940 fi | |
5941 if test -n "$SV_MODULE_FAILED"; then | |
5942 as_ac_Header=`$as_echo "ac_cv_header_$SV_MODULE_HEADER" | $as_tr_sh` | |
5943 ac_fn_cxx_check_header_mongrel "$LINENO" "$SV_MODULE_HEADER" "$as_ac_Header" "$ac_includes_default" | |
5944 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | |
5945 HAVES="$HAVES $SV_MODULE_HAVE" | |
5946 else | |
5947 as_fn_error $? "Failed to find header $SV_MODULE_HEADER for required module $SV_MODULE_MODULE" "$LINENO" 5 | |
5948 fi | |
5949 | |
5950 | |
5951 if test -n "$SV_MODULE_LIB"; then | |
5952 as_ac_Lib=`$as_echo "ac_cv_lib_$SV_MODULE_LIB''_$SV_MODULE_FUNC" | $as_tr_sh` | |
5953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $SV_MODULE_FUNC in -l$SV_MODULE_LIB" >&5 | |
5954 $as_echo_n "checking for $SV_MODULE_FUNC in -l$SV_MODULE_LIB... " >&6; } | |
5955 if eval \${$as_ac_Lib+:} false; then : | |
5956 $as_echo_n "(cached) " >&6 | |
5957 else | |
5958 ac_check_lib_save_LIBS=$LIBS | |
5959 LIBS="-l$SV_MODULE_LIB $LIBS" | |
5960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5961 /* end confdefs.h. */ | |
5962 | |
5963 /* Override any GCC internal prototype to avoid an error. | |
5964 Use char because int might match the return type of a GCC | |
5965 builtin and then its argument prototype would still apply. */ | |
5966 #ifdef __cplusplus | |
5967 extern "C" | |
5968 #endif | |
5969 char $SV_MODULE_FUNC (); | |
5970 int | |
5971 main () | |
5972 { | |
5973 return $SV_MODULE_FUNC (); | |
5974 ; | |
5975 return 0; | |
5976 } | |
5977 _ACEOF | |
5978 if ac_fn_cxx_try_link "$LINENO"; then : | |
5979 eval "$as_ac_Lib=yes" | |
5980 else | |
5981 eval "$as_ac_Lib=no" | |
5982 fi | |
5983 rm -f core conftest.err conftest.$ac_objext \ | |
5984 conftest$ac_exeext conftest.$ac_ext | |
5985 LIBS=$ac_check_lib_save_LIBS | |
5986 fi | |
5987 eval ac_res=\$$as_ac_Lib | |
5988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
5989 $as_echo "$ac_res" >&6; } | |
5990 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : | |
5991 LIBS="$LIBS -l$SV_MODULE_LIB" | |
5992 else | |
5993 as_fn_error $? "Failed to find library $SV_MODULE_LIB for required module $SV_MODULE_MODULE" "$LINENO" 5 | |
5994 fi | |
5995 | |
5996 fi | |
5997 fi | |
5998 | |
5999 | 5781 |
6000 | 5782 |
6001 SV_MODULE_MODULE=liblo | 5783 SV_MODULE_MODULE=liblo |
6002 SV_MODULE_VERSION_TEST="" | 5784 SV_MODULE_VERSION_TEST="" |
6003 SV_MODULE_HEADER=lo/lo.h | 5785 SV_MODULE_HEADER=lo/lo.h |