Changeset 5814
- Timestamp:
- Jun 26, 2018 7:08:24 AM (6 years ago)
- Location:
- pjproject/trunk
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/aconfigure
r5804 r5814 683 683 ac_pjmedia_video_has_android 684 684 ac_pjmedia_video 685 ac_pa_use_oss686 ac_pa_use_alsa687 685 ac_pjmedia_audiodev_objs 688 686 ac_pa_cflags … … 797 795 enable_sound 798 796 with_external_pa 799 enable_oss800 797 enable_video 801 798 enable_ext_sound … … 1482 1479 --disable-resample Disable resampling implementations 1483 1480 --disable-sound Exclude sound (i.e. use null sound) 1484 --disable-oss Disable OSS audio (default: not disabled)1485 1481 --disable-video Disable video feature 1486 1482 --enable-ext-sound PJMEDIA will not provide any sound device backend … … 1548 1544 use CFLAGS and LDFLAGS env var to set the 1549 1545 include/lib paths) 1550 --with-external-pa Use external PortAudio development files, not the 1551 one in "third_party" directory. When this option is 1552 set, make sure that PortAudio is accessible to use 1553 (hint: use CFLAGS and LDFLAGS env var to set the 1554 include/lib paths) 1546 --with-external-pa Use external PortAudio development files. When this 1547 option is set, make sure that PortAudio is 1548 accessible to use (hint: use CFLAGS and LDFLAGS env 1549 var to set the include/lib paths) 1555 1550 --with-sdl=DIR Specify alternate libSDL prefix 1556 1551 --with-ffmpeg=DIR Specify alternate FFMPEG prefix … … 1742 1737 1743 1738 } # ac_fn_cxx_try_compile 1739 1740 # ac_fn_cxx_try_link LINENO 1741 # ------------------------- 1742 # Try to link conftest.$ac_ext, and return whether this succeeded. 1743 ac_fn_cxx_try_link () 1744 { 1745 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1746 rm -f conftest.$ac_objext conftest$ac_exeext 1747 if { { ac_try="$ac_link" 1748 case "(($ac_try" in 1749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1750 *) ac_try_echo=$ac_try;; 1751 esac 1752 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1753 $as_echo "$ac_try_echo"; } >&5 1754 (eval "$ac_link") 2>conftest.err 1755 ac_status=$? 1756 if test -s conftest.err; then 1757 grep -v '^ *+' conftest.err >conftest.er1 1758 cat conftest.er1 >&5 1759 mv -f conftest.er1 conftest.err 1760 fi 1761 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1762 test $ac_status = 0; } && { 1763 test -z "$ac_cxx_werror_flag" || 1764 test ! -s conftest.err 1765 } && test -s conftest$ac_exeext && { 1766 test "$cross_compiling" = yes || 1767 test -x conftest$ac_exeext 1768 }; then : 1769 ac_retval=0 1770 else 1771 $as_echo "$as_me: failed program was:" >&5 1772 sed 's/^/| /' conftest.$ac_ext >&5 1773 1774 ac_retval=1 1775 fi 1776 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1777 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1778 # interfere with the next link command; also delete a directory that is 1779 # left behind by Apple's compiler. We do this before executing the actions. 1780 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1781 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1782 as_fn_set_status $ac_retval 1783 1784 } # ac_fn_cxx_try_link 1744 1785 1745 1786 # ac_fn_c_try_link LINENO … … 3663 3704 3664 3705 3706 ac_ext=cpp 3707 ac_cpp='$CXXCPP $CPPFLAGS' 3708 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3709 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3710 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 3711 3712 3713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3714 /* end confdefs.h. */ 3715 3716 int 3717 main () 3718 { 3719 3720 ; 3721 return 0; 3722 } 3723 _ACEOF 3724 if ac_fn_cxx_try_link "$LINENO"; then : 3725 3726 else 3727 as_fn_error $? "C++ compiler does not work" "$LINENO" 5 3728 fi 3729 rm -f core conftest.err conftest.$ac_objext \ 3730 conftest$ac_exeext conftest.$ac_ext 3731 ac_ext=c 3732 ac_cpp='$CPP $CPPFLAGS' 3733 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3734 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3735 ac_compiler_gnu=$ac_cv_c_compiler_gnu 3736 3737 3665 3738 if test -n "$ac_tool_prefix"; then 3666 3739 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. … … 6354 6427 #ac_pa_cflags="$ac_pa_cflags -DPA_OLD_CORE_AUDIO -DMOSX_USE_NON_ATOMIC_FLAG_BITS" 6355 6428 #AC_MSG_RESULT([Setting additional PortAudio CFLAGS.. -DPA_OLD_CORE_AUDIO -DMOSX_USE_NON_ATOMIC_FLAG_BITS]) 6356 ac_pjmedia_snd=pa_old_darwinos6429 #ac_pjmedia_snd=pa_old_darwinos 6357 6430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking sound device backend... old coreaudio" >&5 6358 6431 $as_echo "Checking sound device backend... old coreaudio" >&6; } … … 6375 6448 *) 6376 6449 if test "x$ac_external_pa" != "x1"; then 6377 ac_pjmedia_snd=alsa 6378 ac_pa_use_alsa=1 6379 6380 ac_fn_c_check_header_mongrel "$LINENO" "alsa/version.h" "ac_cv_header_alsa_version_h" "$ac_includes_default" 6450 ac_fn_c_check_header_mongrel "$LINENO" "alsa/version.h" "ac_cv_header_alsa_version_h" "$ac_includes_default" 6381 6451 if test "x$ac_cv_header_alsa_version_h" = xyes; then : 6382 6452 LIBS="$LIBS -lasound" 6383 else 6384 ac_pa_use_alsa=0 6385 fi 6386 6387 6388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking sound device backend... unix" >&5 6389 $as_echo "Checking sound device backend... unix" >&6; } 6390 6391 ac_pa_use_oss=1 6392 6393 # Check whether --enable-oss was given. 6394 if test "${enable_oss+set}" = set; then : 6395 enableval=$enable_oss; 6396 if test "$enable_oss" = "no"; then 6397 ac_pa_use_oss=0 6398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if OSS audio is disabled... yes" >&5 6399 $as_echo "Checking if OSS audio is disabled... yes" >&6; } 6400 fi 6401 6402 fi 6403 6453 ac_pjmedia_snd=alsa 6454 fi 6455 6456 6457 if test "x$ac_pjmedia_snd" = "xalsa"; then 6458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking sound device backend... alsa" >&5 6459 $as_echo "Checking sound device backend... alsa" >&6; } 6460 else 6461 ac_pjmedia_snd=null 6462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking sound device backend... null sound" >&5 6463 $as_echo "Checking sound device backend... null sound" >&6; } 6464 fi 6404 6465 fi 6405 6466 ;; -
pjproject/trunk/aconfigure.ac
r5804 r5814 36 36 AC_PROG_CXX 37 37 AC_LANG([C]) 38 39 dnl Make sure C++ compiler works 40 AC_LANG_PUSH([C++]) 41 AC_TRY_LINK([], [], , AC_MSG_ERROR([C++ compiler does not work])) 42 AC_LANG_POP([C++]) 38 43 39 44 AC_PROG_RANLIB … … 670 675 AC_ARG_WITH(external-pa, 671 676 AS_HELP_STRING([--with-external-pa], 672 [Use external PortAudio development files , not the one in "third_party" directory. When this option is set, make sure that PortAudio is accessible to use (hint: use CFLAGS and LDFLAGS env var to set the include/lib paths)]),677 [Use external PortAudio development files. When this option is set, make sure that PortAudio is accessible to use (hint: use CFLAGS and LDFLAGS env var to set the include/lib paths)]), 673 678 [ 674 679 if test "x$with_external_pa" != "xno"; then … … 720 725 #ac_pa_cflags="$ac_pa_cflags -DPA_OLD_CORE_AUDIO -DMOSX_USE_NON_ATOMIC_FLAG_BITS" 721 726 #AC_MSG_RESULT([Setting additional PortAudio CFLAGS.. -DPA_OLD_CORE_AUDIO -DMOSX_USE_NON_ATOMIC_FLAG_BITS]) 722 ac_pjmedia_snd=pa_old_darwinos727 #ac_pjmedia_snd=pa_old_darwinos 723 728 AC_MSG_RESULT([Checking sound device backend... old coreaudio]) 724 729 else … … 738 743 if test "x$ac_external_pa" != "x1"; then 739 744 dnl # Check if ALSA is available 740 ac_pjmedia_snd=alsa741 AC_SUBST(ac_pa_use_alsa,1)742 745 AC_CHECK_HEADER(alsa/version.h, 743 [LIBS="$LIBS -lasound"], 744 [ac_pa_use_alsa=0]) 745 AC_MSG_RESULT([Checking sound device backend... unix]) 746 747 dnl # Check if OSS is disabled 748 AC_SUBST(ac_pa_use_oss,1) 749 AC_ARG_ENABLE(oss, 750 AS_HELP_STRING([--disable-oss], 751 [Disable OSS audio (default: not disabled)]), 752 [ 753 if test "$enable_oss" = "no"; then 754 [ac_pa_use_oss=0] 755 AC_MSG_RESULT([Checking if OSS audio is disabled... yes]) 756 fi 757 ]) 746 [LIBS="$LIBS -lasound" 747 ac_pjmedia_snd=alsa]) 748 if test "x$ac_pjmedia_snd" = "xalsa"; then 749 AC_MSG_RESULT([Checking sound device backend... alsa]) 750 else 751 ac_pjmedia_snd=null 752 AC_MSG_RESULT([Checking sound device backend... null sound]) 753 fi 758 754 fi 759 755 ;; -
pjproject/trunk/pjmedia/build/os-auto.mak.in
r5779 r5814 44 44 # Define the desired sound device backend 45 45 # Valid values are: 46 # - pa_unix: PortAudio on Unix (OSS or ALSA)47 # - pa_darwinos: PortAudio on MacOSX (CoreAudio)48 # - pa_old_darwinos: PortAudio on MacOSX (old CoreAudio, for OSX 10.2)49 # - pa_win32: PortAudio on Win32 (WMME)50 46 # - win32: Win32 MME (wmme_dev.c) 51 47 # - coreaudio: MaxOSX CoreAudio (coreaudio_dev.m) … … 54 50 # - external: Link with no sounddev (app will provide) 55 51 AC_PJMEDIA_SND=@ac_pjmedia_snd@ 56 57 # For Unix, specify if ALSA should be supported58 AC_PA_USE_ALSA=@ac_pa_use_alsa@59 60 # Additional PortAudio CFLAGS are in @ac_pa_cflags@61 52 62 53 #
Note: See TracChangeset
for help on using the changeset viewer.