Changeset 5630 for pjproject/trunk/aconfigure.ac
- Timestamp:
- Jul 19, 2017 10:29:10 AM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/aconfigure.ac
r5624 r5630 1788 1788 ]) 1789 1789 1790 dnl # bcg729 prefix 1791 AC_ARG_WITH(bcg729, 1792 AS_HELP_STRING([--with-bcg729=DIR], 1793 [Specify alternate bcg729 prefix]), 1794 [], 1795 [with_bcg729=no] 1796 ) 1797 1798 dnl # Do not use default bcg729 installation if we are cross-compiling 1799 if test "x$ac_cross_compile" != "x" -a "x$with_bcg729" = "xno"; then 1800 enable_bcg729=no 1801 fi 1802 1803 dnl # bcg729 1804 AC_SUBST(ac_no_bcg729) 1805 AC_ARG_ENABLE(bcg729, 1806 AS_HELP_STRING([--disable-bcg729], 1807 [Disable bcg729 (default: not disabled)]), 1808 [ 1809 if test "$enable_bcg729" = "no"; then 1810 [ac_no_bcg729=1] 1811 AC_DEFINE(PJMEDIA_HAS_BCG729,0) 1812 AC_MSG_RESULT([Checking if bcg729 is disabled... yes]) 1813 fi 1814 ], 1815 [ 1816 if test "x$with_bcg729" != "xno" -a "x$with_bcg729" != "x"; then 1817 BCG729_PREFIX=$with_bcg729 1818 BCG729_CFLAGS="-I$BCG729_PREFIX/include" 1819 BCG729_LDFLAGS="-L$BCG729_PREFIX/lib" 1820 AC_MSG_RESULT([Using bcg729 prefix... $with_bcg729]) 1821 else 1822 BCG729_CFLAGS="" 1823 BCG729_LDFLAGS="" 1824 fi 1825 1826 AC_MSG_CHECKING([bcg729 usability]) 1827 1828 BCG729_LIBS="-lbcg729" 1829 1830 SAVED_LIBS="$LIBS" 1831 SAVED_LDFLAGS="$LDFLAGS" 1832 SAVED_CFLAGS="$CFLAGS" 1833 1834 LIBS="$BCG729_LIBS $LIBS" 1835 LDFLAGS="$BCG729_LDFLAGS $LDFLAGS" 1836 CFLAGS="$BCG729_CFLAGS $CFLAGS" 1837 1838 AC_LINK_IFELSE([AC_LANG_PROGRAM([[#include <bcg729/encoder.h> 1839 #include <bcg729/decoder.h> 1840 ]], 1841 [initBcg729EncoderChannel(0);] 1842 )], 1843 [ 1844 AC_DEFINE(PJMEDIA_HAS_BCG729,1) 1845 AC_MSG_RESULT(ok) 1846 ], 1847 [ 1848 [ac_no_bcg729=1] 1849 AC_DEFINE(PJMEDIA_HAS_BCG729,0) 1850 LIBS="$SAVED_LIBS" 1851 LDFLAGS="$SAVED_LDFLAGS" 1852 CFLAGS="$SAVED_CFLAGS" 1853 AC_MSG_RESULT(no) 1854 ]) 1855 1856 ]) 1857 1858 1790 1859 dnl # Include libyuv 1791 1860 AC_SUBST(ac_no_yuv)
Note: See TracChangeset
for help on using the changeset viewer.