Changeset 5513 for pjproject/branches/projects/uwp/aconfigure
- Timestamp:
- Dec 28, 2016 3:40:07 AM (8 years ago)
- Location:
- pjproject/branches/projects/uwp
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/branches/projects/uwp
- Property svn:mergeinfo changed
/pjproject/trunk (added) merged: 5209,5212-5234,5237-5253,5255,5257-5292,5294-5297,5299-5332,5334-5394,5396-5438,5440-5469,5471-5496,5498-5510
- Property svn:mergeinfo changed
-
pjproject/branches/projects/uwp/aconfigure
r5199 r5513 623 623 ac_main_obj 624 624 ac_host 625 ac_linux_poll 625 ac_webrtc_ldflags 626 ac_webrtc_cflags 627 ac_webrtc_instset 628 ac_no_webrtc 629 ac_no_yuv 630 opus_present 631 opus_h_present 632 ac_no_opus 626 633 silk_present 627 634 silk_h_present … … 635 642 ac_no_opencore_amrwb 636 643 ac_no_opencore_amrnb 644 ec_curve_present 645 set_curve_present 637 646 libcrypto_present 638 647 libssl_present 639 648 openssl_h_present 649 ac_ssl_has_sigalg 650 ac_ssl_has_ec 651 ac_ssl_has_aes_gcm 640 652 ac_no_ssl 641 ac_webrtc_ldflags642 ac_webrtc_cflags643 ac_libyuv_ldflags644 ac_libyuv_cflags645 653 ac_openh264_ldflags 646 654 ac_openh264_cflags … … 668 676 ac_qt_cflags 669 677 ac_pjmedia_video_has_qt 670 ac_ios_cflags 671 ac_pjmedia_video_has_ios 678 ac_darwin_cflags 679 ac_pjmedia_video_has_ios_opengl 680 ac_pjmedia_video_has_darwin 672 681 ac_android_cflags 673 682 ac_pjmedia_video_has_android … … 680 689 ac_pjmedia_snd 681 690 ac_pjmedia_resample 691 ac_external_webrtc 692 ac_external_yuv 682 693 ac_srtp_shutdown_present 683 694 ac_srtp_deinit_present … … 686 697 ac_external_speex 687 698 ac_shared_libraries 699 ac_linux_poll 688 700 ac_os_objs 689 701 EGREP … … 776 788 with_external_gsm 777 789 with_external_srtp 790 with_external_yuv 791 with_external_webrtc 778 792 enable_resample 779 793 enable_sound … … 801 815 with_openh264 802 816 enable_openh264 803 with_libyuv804 enable_libyuv805 with_webrtc806 enable_webrtc807 817 enable_ipp 808 818 with_ipp … … 817 827 with_silk 818 828 enable_silk 829 with_opus 830 enable_opus 831 enable_libyuv 832 enable_libwebrtc 819 833 ' 820 834 ac_precious_vars='build_alias … … 1469 1483 --disable-v4l2 Disable Video4Linux2 (default: not disabled) 1470 1484 --disable-openh264 Disable OpenH264 (default: not disabled) 1471 --disable-libyuv Exclude libyuv in the build1472 --disable-webrtc Exclude webrtc in the build1473 1485 --enable-ipp Enable Intel IPP support. Specify the Intel IPP 1474 1486 package and samples location using IPPROOT and … … 1483 1495 autodetect) 1484 1496 1497 --disable-opus Exclude OPUS support from the build (default: 1498 autodetect) 1499 1500 --disable-libyuv Exclude libyuv in the build 1501 --disable-libwebrtc Exclude libwebrtc in the build 1485 1502 1486 1503 Optional Packages: … … 1502 1519 CFLAGS and LDFLAGS env var to set the include/lib 1503 1520 paths) 1521 --with-external-yuv Use external libyuv development files, not the one 1522 in "third_party" directory. When this option is set, 1523 make sure that libyuv is accessible to use (hint: 1524 use CFLAGS and LDFLAGS env var to set the 1525 include/lib paths) 1526 --with-external-webrtc Use external webrtc development files, not the one 1527 in "third_party" directory. When this option is set, 1528 make sure that webrtc is accessible to use (hint: 1529 use CFLAGS and LDFLAGS env var to set the 1530 include/lib paths) 1504 1531 --with-external-pa Use external PortAudio development files, not the 1505 1532 one in "third_party" directory. When this option is … … 1510 1537 --with-ffmpeg=DIR Specify alternate FFMPEG prefix 1511 1538 --with-openh264=DIR Specify alternate OpenH264 prefix 1512 --with-libyuv=DIR Specify alternate libyuv prefix1513 --with-webrtc=DIR Specify alternate WebRtc prefix1514 1539 --with-ipp=DIR Specify the Intel IPP location 1515 1540 --with-ipp-samples=DIR Specify the Intel IPP samples location … … 1524 1549 Specify alternate libvo-amrwbenc prefix 1525 1550 --with-silk=DIR Specify alternate SILK prefix 1551 --with-opus=DIR Specify alternate OPUS prefix 1526 1552 1527 1553 Some influential environment variables: … … 2002 2028 2003 2029 } # ac_fn_c_check_func 2030 2031 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES 2032 # ------------------------------------------- 2033 # Tests whether TYPE exists after having included INCLUDES, setting cache 2034 # variable VAR accordingly. 2035 ac_fn_c_check_type () 2036 { 2037 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2039 $as_echo_n "checking for $2... " >&6; } 2040 if eval \${$3+:} false; then : 2041 $as_echo_n "(cached) " >&6 2042 else 2043 eval "$3=no" 2044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2045 /* end confdefs.h. */ 2046 $4 2047 int 2048 main () 2049 { 2050 if (sizeof ($2)) 2051 return 0; 2052 ; 2053 return 0; 2054 } 2055 _ACEOF 2056 if ac_fn_c_try_compile "$LINENO"; then : 2057 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2058 /* end confdefs.h. */ 2059 $4 2060 int 2061 main () 2062 { 2063 if (sizeof (($2))) 2064 return 0; 2065 ; 2066 return 0; 2067 } 2068 _ACEOF 2069 if ac_fn_c_try_compile "$LINENO"; then : 2070 2071 else 2072 eval "$3=yes" 2073 fi 2074 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2075 fi 2076 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2077 fi 2078 eval ac_res=\$$3 2079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2080 $as_echo "$ac_res" >&6; } 2081 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2082 2083 } # ac_fn_c_check_type 2004 2084 cat >config.log <<_ACEOF 2005 2085 This file contains any messages produced by compilers while … … 2265 2345 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2266 2346 as_fn_error $? "failed to load site script $ac_site_file 2267 See \`config.log' for more details" "$LINENO" 5 ; }2347 See \`config.log' for more details" "$LINENO" 5 ; } 2268 2348 fi 2269 2349 done … … 2408 2488 case $ac_cv_build in 2409 2489 *-*-*) ;; 2410 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5 ;;2490 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5 ;; 2411 2491 esac 2412 2492 build=$ac_cv_build … … 2441 2521 case $ac_cv_host in 2442 2522 *-*-*) ;; 2443 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5 ;;2523 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5 ;; 2444 2524 esac 2445 2525 host=$ac_cv_host … … 2474 2554 case $ac_cv_target in 2475 2555 *-*-*) ;; 2476 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5 ;;2556 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5 ;; 2477 2557 esac 2478 2558 target=$ac_cv_target … … 2498 2578 ac_config_headers="$ac_config_headers pjlib/include/pj/compat/os_auto.h pjlib/include/pj/compat/m_auto.h pjmedia/include/pjmedia/config_auto.h pjmedia/include/pjmedia-codec/config_auto.h pjsip/include/pjsip/sip_autoconf.h" 2499 2579 2500 ac_config_files="$ac_config_files build.mak build/os-auto.mak build/cc-auto.mak pjlib/build/os-auto.mak pjlib-util/build/os-auto.mak pjmedia/build/os-auto.mak pjsip/build/os-auto.mak third_party/build/os-auto.mak third_party/build/portaudio/os-auto.mak"2580 ac_config_files="$ac_config_files build.mak build/os-auto.mak build/cc-auto.mak pjlib/build/os-auto.mak pjlib-util/build/os-auto.mak pjmedia/build/os-auto.mak pjsip/build/os-auto.mak third_party/build/os-auto.mak" 2501 2581 2502 2582 … … 2811 2891 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2812 2892 as_fn_error $? "no acceptable C compiler found in \$PATH 2813 See \`config.log' for more details" "$LINENO" 5 ; }2893 See \`config.log' for more details" "$LINENO" 5 ; } 2814 2894 2815 2895 # Provide some information about the compiler. … … 2926 3006 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2927 3007 as_fn_error 77 "C compiler cannot create executables 2928 See \`config.log' for more details" "$LINENO" 5 ; }3008 See \`config.log' for more details" "$LINENO" 5 ; } 2929 3009 else 2930 3010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 … … 2969 3049 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2970 3050 as_fn_error $? "cannot compute suffix of executables: cannot compile and link 2971 See \`config.log' for more details" "$LINENO" 5 ; }3051 See \`config.log' for more details" "$LINENO" 5 ; } 2972 3052 fi 2973 3053 rm -f conftest conftest$ac_cv_exeext … … 3028 3108 as_fn_error $? "cannot run C compiled programs. 3029 3109 If you meant to cross compile, use \`--host'. 3030 See \`config.log' for more details" "$LINENO" 5 ; }3110 See \`config.log' for more details" "$LINENO" 5 ; } 3031 3111 fi 3032 3112 fi … … 3080 3160 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3081 3161 as_fn_error $? "cannot compute suffix of object files: cannot compile 3082 See \`config.log' for more details" "$LINENO" 5 ; }3162 See \`config.log' for more details" "$LINENO" 5 ; } 3083 3163 fi 3084 3164 rm -f conftest.$ac_cv_objext conftest.$ac_ext … … 4474 4554 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4475 4555 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 4476 See \`config.log' for more details" "$LINENO" 5 ; }4556 See \`config.log' for more details" "$LINENO" 5 ; } 4477 4557 fi 4478 4558 … … 4964 5044 *) 4965 5045 as_fn_error $? "unknown endianness 4966 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;5046 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;; 4967 5047 esac 4968 5048 … … 5335 5415 if test "x$ac_cv_header_net_if_h" = xyes; then : 5336 5416 $as_echo "#define PJ_HAS_NET_IF_H 1" >>confdefs.h 5417 5418 fi 5419 5420 5421 5422 ac_fn_c_check_func "$LINENO" "localtime_r" "ac_cv_func_localtime_r" 5423 if test "x$ac_cv_func_localtime_r" = xyes; then : 5424 $as_echo "#define PJ_HAS_LOCALTIME_R 1" >>confdefs.h 5337 5425 5338 5426 fi … … 5518 5606 if ac_fn_c_try_compile "$LINENO"; then : 5519 5607 $as_echo "#define PJ_HAS_SOCKLEN_T 1" >>confdefs.h 5608 5609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5610 $as_echo "yes" >&6; } 5611 else 5612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5613 $as_echo "no" >&6; } 5614 fi 5615 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5616 5617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IPV6_V6ONLY is available" >&5 5618 $as_echo_n "checking if IPV6_V6ONLY is available... " >&6; } 5619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5620 /* end confdefs.h. */ 5621 #include <sys/socket.h> 5622 #include <netinet/in.h> 5623 int 5624 main () 5625 { 5626 int opt = IPV6_V6ONLY; 5627 ; 5628 return 0; 5629 } 5630 _ACEOF 5631 if ac_fn_c_try_compile "$LINENO"; then : 5632 $as_echo "#define PJ_SOCK_HAS_IPV6_V6ONLY 1" >>confdefs.h 5520 5633 5521 5634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 … … 5673 5786 5674 5787 5788 5675 5789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ioqueue backend" >&5 5676 5790 $as_echo_n "checking ioqueue backend... " >&6; } … … 5681 5795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: /dev/epoll" >&5 5682 5796 $as_echo "/dev/epoll" >&6; } 5797 $as_echo "#define PJ_HAS_LINUX_EPOLL 1" >>confdefs.h 5798 5799 ac_linux_poll=epoll 5683 5800 5684 5801 else 5685 5802 5686 5803 ac_os_objs=ioqueue_select.o 5687 5804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: select()" >&5 5688 5805 $as_echo "select()" >&6; } 5806 ac_linux_poll=select 5689 5807 5690 5808 fi … … 5719 5837 ;; 5720 5838 esac 5839 # QoS 5840 case $target in 5841 *darwin*) 5842 ;; 5843 *) 5844 ac_os_objs="$ac_os_objs sock_qos_bsd.o" 5845 ;; 5846 esac 5721 5847 # UUID 5722 if test "$ac_has_uuid_lib" = "1" -a "$ac_has_uuid_h" = "1"; then 5723 ac_os_objs="$ac_os_objs guid_uuid.o" 5724 else 5725 ac_os_objs="$ac_os_objs guid_simple.o" 5726 fi 5848 case $target in 5849 *android*) 5850 ac_os_objs="$ac_os_objs guid_android.o" 5851 ;; 5852 *) 5853 if test "$ac_has_uuid_lib" = "1" -a "$ac_has_uuid_h" = "1"; then 5854 ac_os_objs="$ac_os_objs guid_uuid.o" 5855 else 5856 ac_os_objs="$ac_os_objs guid_simple.o" 5857 fi 5858 ;; 5859 esac 5727 5860 ;; 5728 5861 esac … … 5730 5863 case $target in 5731 5864 *darwin*) 5732 ac_os_objs="$ac_os_objs os_core_darwin.o"5865 ac_os_objs="$ac_os_objs sock_qos_darwin.o os_core_darwin.o" 5733 5866 ;; 5734 5867 esac … … 5973 6106 fi 5974 6107 fi 6108 6109 6110 ac_external_yuv=0 6111 6112 6113 # Check whether --with-external-yuv was given. 6114 if test "${with_external_yuv+set}" = set; then : 6115 withval=$with_external_yuv; 6116 if test "x$with_external_yuv" != "xno"; then 6117 # Test libyuv installation 6118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if external libyuv devkit is installed" >&5 6119 $as_echo_n "checking if external libyuv devkit is installed... " >&6; } 6120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6121 /* end confdefs.h. */ 6122 #include <libyuv.h> 6123 int 6124 main () 6125 { 6126 RGB24ToI420(0,0,0,0,0,0,0,0,0,0); 6127 ; 6128 return 0; 6129 } 6130 _ACEOF 6131 if ac_fn_c_try_compile "$LINENO"; then : 6132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes!!" >&5 6133 $as_echo "yes!!" >&6; } 6134 ac_external_yuv="1" 6135 6136 else 6137 as_fn_error $? "Unable to use external libyuv. If libyuv development files are not available in the default locations, use CFLAGS and LDFLAGS env var to set the include/lib paths" "$LINENO" 5 6138 fi 6139 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6140 fi 6141 6142 6143 fi 6144 6145 6146 6147 ac_external_webrtc=0 6148 6149 6150 # Check whether --with-external-webrtc was given. 6151 if test "${with_external_webrtc+set}" = set; then : 6152 withval=$with_external_webrtc; 6153 if test "x$with_external_webrtc" != "xno"; then 6154 # Test webrtc installation 6155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if external webrtc devkit is installed" >&5 6156 $as_echo_n "checking if external webrtc devkit is installed... " >&6; } 6157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6158 /* end confdefs.h. */ 6159 #include <webrtc/modules/audio_processing/aec/aec_core.h> 6160 #include <webrtc/modules/audio_processing/aec/include/echo_cancellation.h> 6161 6162 int 6163 main () 6164 { 6165 WebRtcAec_Create(); 6166 ; 6167 return 0; 6168 } 6169 _ACEOF 6170 if ac_fn_c_try_compile "$LINENO"; then : 6171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes!!" >&5 6172 $as_echo "yes!!" >&6; } 6173 ac_external_webrtc="1" 6174 6175 else 6176 as_fn_error $? "Unable to use external webrtc. If webrtc development files are not available in the default locations, use CFLAGS and LDFLAGS env var to set the include/lib paths" "$LINENO" 5 6177 fi 6178 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6179 fi 6180 6181 6182 fi 6183 6184 5975 6185 5976 6186 ac_pjmedia_resample=libresample … … 6104 6314 ;; 6105 6315 *) 6106 ac_pjmedia_snd=pa_unix 6316 ac_pjmedia_snd=alsa 6317 ac_pa_use_alsa=1 6318 6107 6319 ac_fn_c_check_header_mongrel "$LINENO" "alsa/version.h" "ac_cv_header_alsa_version_h" "$ac_includes_default" 6108 6320 if test "x$ac_cv_header_alsa_version_h" = xyes; then : 6109 ac_pa_use_alsa=1 6110 6111 ac_pjmedia_snd=alsa 6112 6113 LIBS="$LIBS -lasound" 6114 6321 LIBS="$LIBS -lasound" 6115 6322 else 6116 6323 ac_pa_use_alsa=0 6117 6118 6324 fi 6119 6325 … … 6140 6346 6141 6347 6348 6349 # Disable video on mingw 6350 case $target in 6351 *mingw*) 6352 enable_video="no" 6353 ;; 6354 esac 6142 6355 6143 6356 # Check whether --enable-video was given. … … 6208 6421 ac_android_cflags="$ac_android_cflags -DPJMEDIA_VIDEO_DEV_HAS_ANDROID=1" 6209 6422 ;; 6210 *-apple-darwin_ios*) 6211 ac_pjmedia_video=iphone_os 6423 *darwin*) 6424 ac_pjmedia_video=darwin_os 6425 6212 6426 6213 6427 … … 6226 6440 _ACEOF 6227 6441 if ac_fn_c_try_link "$LINENO"; then : 6228 ac_pjmedia_video_has_ios=yes 6229 else 6230 ac_pjmedia_video_has_ios=no 6442 ac_pjmedia_video_has_darwin=yes 6443 else 6444 ac_pjmedia_video_has_darwin=no 6445 fi 6446 rm -f core conftest.err conftest.$ac_objext \ 6447 conftest$ac_exeext conftest.$ac_ext 6448 LIBS="-framework OpenGLES" 6449 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6450 /* end confdefs.h. */ 6451 6452 int 6453 main () 6454 { 6455 6456 ; 6457 return 0; 6458 } 6459 _ACEOF 6460 if ac_fn_c_try_link "$LINENO"; then : 6461 ac_pjmedia_video_has_ios_opengl=yes 6462 else 6463 ac_pjmedia_video_has_ios_opengl=no 6231 6464 fi 6232 6465 rm -f core conftest.err conftest.$ac_objext \ 6233 6466 conftest$ac_exeext conftest.$ac_ext 6234 6467 LIBS="$SAVED_LIBS" 6235 if test "$ac_pjmedia_video_has_ ios" = "yes"; then6236 ac_ ios_cflags="-DPJMEDIA_VIDEO_DEV_HAS_IOS=1 -DPJMEDIA_VIDEO_DEV_HAS_IOS_OPENGL=1"6237 LIBS="$LIBS -framework OpenGLES -frameworkAVFoundation -framework CoreGraphics -framework QuartzCore -framework CoreVideo -framework CoreMedia"6468 if test "$ac_pjmedia_video_has_darwin" = "yes"; then 6469 ac_darwin_cflags="-DPJMEDIA_VIDEO_DEV_HAS_DARWIN=1" 6470 LIBS="$LIBS -framework AVFoundation -framework CoreGraphics -framework QuartzCore -framework CoreVideo -framework CoreMedia" 6238 6471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if AVFoundation framework is available... yes" >&5 6239 6472 $as_echo "Checking if AVFoundation framework is available... yes" >&6; } … … 6242 6475 $as_echo "Checking if AVFoundation framework is available... no" >&6; } 6243 6476 fi 6244 ;; 6245 *darwin*) 6246 ac_pjmedia_video=mac_os 6247 6248 6249 SAVED_LIBS="$LIBS" 6250 LIBS="-framework QTKit" 6251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6477 if test "$ac_pjmedia_video_has_ios_opengl" = "yes"; then 6478 ac_darwin_cflags+=" -DPJMEDIA_VIDEO_DEV_HAS_IOS_OPENGL=1" 6479 LIBS="$LIBS -framework OpenGLES" 6480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if OpenGLES framework is available... yes" >&5 6481 $as_echo "Checking if OpenGLES framework is available... yes" >&6; } 6482 else 6483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if OpenGLES framework is available... no" >&5 6484 $as_echo "Checking if OpenGLES framework is available... no" >&6; } 6485 fi 6486 if false; then 6487 # QTKit is deprecated, see ticket #1931. 6488 ac_pjmedia_video=mac_os 6489 6490 6491 SAVED_LIBS="$LIBS" 6492 LIBS="-framework QTKit" 6493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6252 6494 /* end confdefs.h. */ 6253 6495 … … 6267 6509 rm -f core conftest.err conftest.$ac_objext \ 6268 6510 conftest$ac_exeext conftest.$ac_ext 6269 LIBS="$SAVED_LIBS"6270 if test "$ac_pjmedia_video_has_qt" = "yes"; then6271 ac_qt_cflags="-DPJMEDIA_VIDEO_DEV_HAS_QT=1"6272 LIBS="$LIBS -framework QTKit -framework QuartzCore -framework OpenGL"6273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if QTKit framework is available... yes" >&56511 LIBS="$SAVED_LIBS" 6512 if test "$ac_pjmedia_video_has_qt" = "yes"; then 6513 ac_qt_cflags="-DPJMEDIA_VIDEO_DEV_HAS_QT=1" 6514 LIBS="$LIBS -framework QTKit -framework QuartzCore -framework OpenGL" 6515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if QTKit framework is available... yes" >&5 6274 6516 $as_echo "Checking if QTKit framework is available... yes" >&6; } 6275 else6276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if QTKit framework is available... no" >&56517 else 6518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if QTKit framework is available... no" >&5 6277 6519 $as_echo "Checking if QTKit framework is available... no" >&6; } 6278 fi 6279 ;; 6520 fi 6521 fi 6522 ;; 6280 6523 esac 6281 6524 fi … … 6754 6997 $as_echo_n "checking ffmpeg packages... " >&6; } 6755 6998 av_pkg="" 6756 if $PKG_CONFIG --exists lib device; then6999 if $PKG_CONFIG --exists libavdevice; then 6757 7000 ac_ffmpeg_cflags="$ac_ffmpeg_cflags -DPJMEDIA_HAS_LIBAVDEVICE=1" 6758 av_pkg="$av_pkg lib device"7001 av_pkg="$av_pkg libavdevice" 6759 7002 fi 6760 7003 if $PKG_CONFIG --exists libavformat; then … … 6774 7017 av_pkg="$av_pkg libavutil" 6775 7018 fi 6776 if $PKG_CONFIG --exists libavcore; then6777 ac_ffmpeg_cflags="$ac_ffmpeg_cflags -DPJMEDIA_HAS_LIBAVCORE=1"6778 av_pkg="$av_pkg libavcore"6779 fi6780 7019 6781 7020 if test "x$av_pkg" == "x"; then … … 7059 7298 7060 7299 fi 7300 7301 ac_fn_c_check_type "$LINENO" "enum AVPixelFormat" "ac_cv_type_enum_AVPixelFormat" "#include <libavformat/avformat.h> 7302 7303 " 7304 if test "x$ac_cv_type_enum_AVPixelFormat" = xyes; then : 7305 7306 cat >>confdefs.h <<_ACEOF 7307 #define HAVE_ENUM_AVPIXELFORMAT 1 7308 _ACEOF 7309 7310 7311 else 7312 ac_ffmpeg_cflags="$ac_ffmpeg_cflags -DPJMEDIA_USE_OLD_FFMPEG=1" 7313 fi 7314 7061 7315 7062 7316 LIBS="$LIBS $ac_ffmpeg_ldflags" … … 7212 7466 fi 7213 7467 7214 7215 7216 # Check whether --with-libyuv was given.7217 if test "${with_libyuv+set}" = set; then :7218 withval=$with_libyuv;7219 else7220 with_libyuv=no7221 7222 fi7223 7224 7225 if test "x$ac_cross_compile" != "x" -a "x$with_libyuv" = "xno"; then7226 enable_libyuv=no7227 fi7228 7229 7230 7231 # Check whether --enable-libyuv was given.7232 if test "${enable_libyuv+set}" = set; then :7233 enableval=$enable_libyuv; if test "$enable_libyuv" = "no"; then7234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if libyuv is disabled...yes" >&57235 $as_echo "Checking if libyuv is disabled...yes" >&6; }7236 fi7237 else7238 7239 if test "x$with_libyuv" != "xno" -a "x$with_libyuv" != "x"; then7240 LIBYUV_PREFIX=$with_libyuv7241 LIBYUV_CFLAGS="-I$LIBYUV_PREFIX/include"7242 7243 case $target in7244 *-apple-darwin_ios*)7245 LIBYUV_LDFLAGS="-L$LIBYUV_PREFIX/out_ios/Release-iphoneos"7246 case $ARCH in7247 *arm*)7248 LIBYUV_LIBS="-lyuv_neon"7249 ;;7250 *)7251 ;;7252 esac7253 ;;7254 *mingw* | *cygw* | *win32* | *w32* | *darwin* | *linux* | *android*)7255 LIBYUV_LDFLAGS="-L$LIBYUV_PREFIX/out/Release"7256 ;;7257 *)7258 LIBYUV_CFLAGS=""7259 LIBYUV_LDFLAGS=""7260 ;;7261 esac7262 7263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using libyuv prefix... $with_libyuv" >&57264 $as_echo "Using libyuv prefix... $with_libyuv" >&6; }7265 else7266 LIBYUV_CFLAGS=""7267 LIBYUV_LDFLAGS=""7268 fi7269 7270 LIBYUV_LIBS="$LIBYUV_LIBS -lyuv"7271 7272 SAVED_LIBS="$LIBS"7273 SAVED_LDFLAGS="$LDFLAGS"7274 SAVED_CFLAGS="$CFLAGS"7275 7276 LIBS="$LIBYUV_LIBS $LIBS"7277 LDFLAGS="$LIBYUV_LDFLAGS $LDFLAGS"7278 CFLAGS="$LIBYUV_CFLAGS $CFLAGS"7279 7280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for I420Scale in -lyuv" >&57281 $as_echo_n "checking for I420Scale in -lyuv... " >&6; }7282 if ${ac_cv_lib_yuv_I420Scale+:} false; then :7283 $as_echo_n "(cached) " >&67284 else7285 ac_check_lib_save_LIBS=$LIBS7286 LIBS="-lyuv7287 $LIBS"7288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext7289 /* end confdefs.h. */7290 7291 /* Override any GCC internal prototype to avoid an error.7292 Use char because int might match the return type of a GCC7293 builtin and then its argument prototype would still apply. */7294 #ifdef __cplusplus7295 extern "C"7296 #endif7297 char I420Scale ();7298 int7299 main ()7300 {7301 return I420Scale ();7302 ;7303 return 0;7304 }7305 _ACEOF7306 if ac_fn_c_try_link "$LINENO"; then :7307 ac_cv_lib_yuv_I420Scale=yes7308 else7309 ac_cv_lib_yuv_I420Scale=no7310 fi7311 rm -f core conftest.err conftest.$ac_objext \7312 conftest$ac_exeext conftest.$ac_ext7313 LIBS=$ac_check_lib_save_LIBS7314 fi7315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_yuv_I420Scale" >&57316 $as_echo "$ac_cv_lib_yuv_I420Scale" >&6; }7317 if test "x$ac_cv_lib_yuv_I420Scale" = xyes; then :7318 ac_libyuv_cflags="-DPJMEDIA_HAS_LIBYUV=1 $LIBYUV_CFLAGS"7319 ac_libyuv_ldflags="$LIBYUV_LDFLAGS $LIBYUV_LIBS"7320 7321 else7322 LIBS="$SAVED_LIBS"7323 LDFLAGS="$SAVED_LDFLAGS"7324 CFLAGS="$SAVED_CFLAGS"7325 7326 fi7327 7328 7329 fi7330 7331 7332 7333 7334 # Check whether --with-webrtc was given.7335 if test "${with_webrtc+set}" = set; then :7336 withval=$with_webrtc;7337 else7338 with_webrtc=no7339 7340 fi7341 7342 7343 if test "x$ac_cross_compile" != "x" -a "x$with_webrtc" = "xno"; then7344 enable_webrtc=no7345 fi7346 7347 7348 7349 # Check whether --enable-webrtc was given.7350 if test "${enable_webrtc+set}" = set; then :7351 enableval=$enable_webrtc; if test "$enable_webrtc" = "no"; then7352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if webrtc is disabled...yes" >&57353 $as_echo "Checking if webrtc is disabled...yes" >&6; }7354 fi7355 else7356 7357 if test "x$with_webrtc" != "xno" -a "x$with_webrtc" != "x"; then7358 WEBRTC_PREFIX=$with_webrtc7359 WEBRTC_CFLAGS="-I$WEBRTC_PREFIX/src"7360 7361 case $target in7362 *-apple-darwin_ios*)7363 case $ARCH in7364 *arm*)7365 WEBRTC_CFLAGS="-DPJMEDIA_WEBRTC_AEC_USE_MOBILE=1 $WEBRTC_CFLAGS"7366 WEBRTC_LDFLAGS="-L$WEBRTC_PREFIX/src/out_ios/Release-iphoneos"7367 WEBRTC_LIBS="-laudio_processing_neon -lcommon_audio_neon"7368 ;;7369 *)7370 ;;7371 esac7372 ;;7373 *mingw* | *cygw* | *win32* | *w32* | *darwin* | *linux* | *android*)7374 WEBRTC_LDFLAGS="-L$WEBRTC_PREFIX/src/out/Release"7375 WEBRTC_LIBS="-laudio_processing_sse2"7376 ;;7377 *)7378 ;;7379 esac7380 7381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using webrtc prefix... $with_webrtc" >&57382 $as_echo "Using webrtc prefix... $with_webrtc" >&6; }7383 else7384 WEBRTC_CFLAGS=""7385 WEBRTC_LDFLAGS=""7386 fi7387 7388 WEBRTC_LIBS="$WEBRTC_LIBS -laudio_processing -lcommon_audio -lsystem_wrappers"7389 7390 SAVED_LIBS="$LIBS"7391 SAVED_LDFLAGS="$LDFLAGS"7392 SAVED_CFLAGS="$CFLAGS"7393 7394 LIBS="$WEBRTC_LIBS $LIBS"7395 LDFLAGS="$WEBRTC_LDFLAGS $LDFLAGS"7396 CFLAGS="$WEBRTC_CFLAGS $CFLAGS"7397 7398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WebRtcAec_Process in -laudio_processing" >&57399 $as_echo_n "checking for WebRtcAec_Process in -laudio_processing... " >&6; }7400 if ${ac_cv_lib_audio_processing_WebRtcAec_Process+:} false; then :7401 $as_echo_n "(cached) " >&67402 else7403 ac_check_lib_save_LIBS=$LIBS7404 LIBS="-laudio_processing7405 $LIBS"7406 cat confdefs.h - <<_ACEOF >conftest.$ac_ext7407 /* end confdefs.h. */7408 7409 /* Override any GCC internal prototype to avoid an error.7410 Use char because int might match the return type of a GCC7411 builtin and then its argument prototype would still apply. */7412 #ifdef __cplusplus7413 extern "C"7414 #endif7415 char WebRtcAec_Process ();7416 int7417 main ()7418 {7419 return WebRtcAec_Process ();7420 ;7421 return 0;7422 }7423 _ACEOF7424 if ac_fn_c_try_link "$LINENO"; then :7425 ac_cv_lib_audio_processing_WebRtcAec_Process=yes7426 else7427 ac_cv_lib_audio_processing_WebRtcAec_Process=no7428 fi7429 rm -f core conftest.err conftest.$ac_objext \7430 conftest$ac_exeext conftest.$ac_ext7431 LIBS=$ac_check_lib_save_LIBS7432 fi7433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_audio_processing_WebRtcAec_Process" >&57434 $as_echo "$ac_cv_lib_audio_processing_WebRtcAec_Process" >&6; }7435 if test "x$ac_cv_lib_audio_processing_WebRtcAec_Process" = xyes; then :7436 ac_webrtc_cflags="-DPJMEDIA_HAS_WEBRTC_AEC=1 $WEBRTC_CFLAGS"7437 ac_webrtc_ldflags="$WEBRTC_LDFLAGS $WEBRTC_LIBS"7438 7439 else7440 LIBS="$SAVED_LIBS"7441 LDFLAGS="$SAVED_LDFLAGS"7442 CFLAGS="$SAVED_CFLAGS"7443 7444 fi7445 7446 7447 fi7448 7468 7449 7469 … … 7597 7617 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 7598 7618 as_fn_error $? "Error: unable to recognize your IPP installation. Make sure the paths and ARCH suffix are set correctly, run with --help for more info 7599 See \`config.log' for more details" "$LINENO" 5 ; }7619 See \`config.log' for more details" "$LINENO" 5 ; } 7600 7620 fi 7601 7621 rm -f core conftest.err conftest.$ac_objext \ … … 7653 7673 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 7654 7674 as_fn_error $? "Unable to find to find built binaries under $IPPSAMPLES/speech-codecs/{bin,_bin}. Have you built the IPP samples? 7655 See \`config.log' for more details" "$LINENO" 5 ; }7675 See \`config.log' for more details" "$LINENO" 5 ; } 7656 7676 fi 7657 7677 else … … 7659 7679 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 7660 7680 as_fn_error $? "unable to find $IPPSAMPLES/speech-codecs/bin/*gcc*/lib or $IPPSAMPLES/speech-codecs/_bin/*gcc*/lib directory. Have you built the samples? 7661 See \`config.log' for more details" "$LINENO" 5 ; }7681 See \`config.log' for more details" "$LINENO" 5 ; } 7662 7682 fi 7663 7683 … … 7667 7687 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 7668 7688 as_fn_error $? "There's something wrong with this script, directory $IPPSAMP_DIR does not exist 7669 See \`config.log' for more details" "$LINENO" 5 ; }7689 See \`config.log' for more details" "$LINENO" 5 ; } 7670 7690 exit 1; 7671 7691 fi … … 7681 7701 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 7682 7702 as_fn_error $? "bug in this script: unsupported IPP version 7683 See \`config.log' for more details" "$LINENO" 5 ; }7703 See \`config.log' for more details" "$LINENO" 5 ; } 7684 7704 fi 7685 7705 … … 7688 7708 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 7689 7709 as_fn_error $? "$IPPSAMP_LIBS doesn't exist in $IPPSAMP_DIR 7690 See \`config.log' for more details" "$LINENO" 5 ; }7710 See \`config.log' for more details" "$LINENO" 5 ; } 7691 7711 fi 7692 7712 … … 7724 7744 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 7725 7745 as_fn_error $? "no 7726 See \`config.log' for more details" "$LINENO" 5 ; }7746 See \`config.log' for more details" "$LINENO" 5 ; } 7727 7747 fi 7728 7748 rm -f core conftest.err conftest.$ac_objext \ … … 7767 7787 fi 7768 7788 7789 7790 ac_ssl_has_aes_gcm=0 7791 7792 ac_ssl_has_ec=0 7793 7794 ac_ssl_has_sigalg=0 7769 7795 7770 7796 # Check whether --enable-ssl was given. … … 7879 7905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: OpenSSL library found, SSL support enabled" >&5 7880 7906 $as_echo "OpenSSL library found, SSL support enabled" >&6; } 7907 7908 # Check if SRTP should be compiled with OpenSSL 7909 # support, to enable cryptos such as AES GCM 7910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EVP_aes_128_gcm in -lcrypto" >&5 7911 $as_echo_n "checking for EVP_aes_128_gcm in -lcrypto... " >&6; } 7912 if ${ac_cv_lib_crypto_EVP_aes_128_gcm+:} false; then : 7913 $as_echo_n "(cached) " >&6 7914 else 7915 ac_check_lib_save_LIBS=$LIBS 7916 LIBS="-lcrypto $LIBS" 7917 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7918 /* end confdefs.h. */ 7919 7920 /* Override any GCC internal prototype to avoid an error. 7921 Use char because int might match the return type of a GCC 7922 builtin and then its argument prototype would still apply. */ 7923 #ifdef __cplusplus 7924 extern "C" 7925 #endif 7926 char EVP_aes_128_gcm (); 7927 int 7928 main () 7929 { 7930 return EVP_aes_128_gcm (); 7931 ; 7932 return 0; 7933 } 7934 _ACEOF 7935 if ac_fn_c_try_link "$LINENO"; then : 7936 ac_cv_lib_crypto_EVP_aes_128_gcm=yes 7937 else 7938 ac_cv_lib_crypto_EVP_aes_128_gcm=no 7939 fi 7940 rm -f core conftest.err conftest.$ac_objext \ 7941 conftest$ac_exeext conftest.$ac_ext 7942 LIBS=$ac_check_lib_save_LIBS 7943 fi 7944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_EVP_aes_128_gcm" >&5 7945 $as_echo "$ac_cv_lib_crypto_EVP_aes_128_gcm" >&6; } 7946 if test "x$ac_cv_lib_crypto_EVP_aes_128_gcm" = xyes; then : 7947 ac_ssl_has_aes_gcm=1 7948 fi 7949 7950 if test "x$ac_ssl_has_aes_gcm" = "x1"; then 7951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: OpenSSL has AES GCM support, SRTP will use OpenSSL" >&5 7952 $as_echo "OpenSSL has AES GCM support, SRTP will use OpenSSL" >&6; } 7953 else 7954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: OpenSSL AES GCM support not found, SRTP will only support AES CM cryptos" >&5 7955 $as_echo "OpenSSL AES GCM support not found, SRTP will only support AES CM cryptos" >&6; } 7956 fi 7957 7958 # Check if OpenSSL supports setting curve algorithm 7959 # and has elliptic curve 7960 7961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking OpenSSL setting curve functions" >&5 7962 $as_echo_n "checking OpenSSL setting curve functions... " >&6; } 7963 set_curve_present=0 7964 7965 ec_curve_present=0 7966 7967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7968 /* end confdefs.h. */ 7969 #include <openssl/ssl.h> 7970 7971 int 7972 main () 7973 { 7974 SSL_set1_curves(NULL, NULL, 0); 7975 7976 ; 7977 return 0; 7978 } 7979 _ACEOF 7980 if ac_fn_c_try_link "$LINENO"; then : 7981 set_curve_present=1 7982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 7983 $as_echo "ok" >&6; } 7984 7985 else 7986 7987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7988 $as_echo "no" >&6; } 7989 7990 fi 7991 rm -f core conftest.err conftest.$ac_objext \ 7992 conftest$ac_exeext conftest.$ac_ext 7993 7994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EC_curve_nid2nist in -lssl" >&5 7995 $as_echo_n "checking for EC_curve_nid2nist in -lssl... " >&6; } 7996 if ${ac_cv_lib_ssl_EC_curve_nid2nist+:} false; then : 7997 $as_echo_n "(cached) " >&6 7998 else 7999 ac_check_lib_save_LIBS=$LIBS 8000 LIBS="-lssl $LIBS" 8001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8002 /* end confdefs.h. */ 8003 8004 /* Override any GCC internal prototype to avoid an error. 8005 Use char because int might match the return type of a GCC 8006 builtin and then its argument prototype would still apply. */ 8007 #ifdef __cplusplus 8008 extern "C" 8009 #endif 8010 char EC_curve_nid2nist (); 8011 int 8012 main () 8013 { 8014 return EC_curve_nid2nist (); 8015 ; 8016 return 0; 8017 } 8018 _ACEOF 8019 if ac_fn_c_try_link "$LINENO"; then : 8020 ac_cv_lib_ssl_EC_curve_nid2nist=yes 8021 else 8022 ac_cv_lib_ssl_EC_curve_nid2nist=no 8023 fi 8024 rm -f core conftest.err conftest.$ac_objext \ 8025 conftest$ac_exeext conftest.$ac_ext 8026 LIBS=$ac_check_lib_save_LIBS 8027 fi 8028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_EC_curve_nid2nist" >&5 8029 $as_echo "$ac_cv_lib_ssl_EC_curve_nid2nist" >&6; } 8030 if test "x$ac_cv_lib_ssl_EC_curve_nid2nist" = xyes; then : 8031 ec_curve_present=1 8032 fi 8033 8034 if test "x$set_curve_present" = "x1" -a "x$ec_curve_present" = "x1"; then 8035 ac_ssl_has_ec=1 8036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: OpenSSL has elliptic curve support" >&5 8037 $as_echo "OpenSSL has elliptic curve support" >&6; } 8038 else 8039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: OpenSSL elliptic curve algorithm unsupported" >&5 8040 $as_echo "OpenSSL elliptic curve algorithm unsupported" >&6; } 8041 fi 8042 8043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking OpenSSL setting sigalg" >&5 8044 $as_echo_n "checking OpenSSL setting sigalg... " >&6; } 8045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8046 /* end confdefs.h. */ 8047 #include <openssl/ssl.h> 8048 8049 int 8050 main () 8051 { 8052 SSL_set1_sigalgs_list(NULL, NULL); 8053 8054 ; 8055 return 0; 8056 } 8057 _ACEOF 8058 if ac_fn_c_try_link "$LINENO"; then : 8059 ac_ssl_has_sigalg=1 8060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 8061 $as_echo "ok" >&6; } 8062 8063 else 8064 8065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8066 $as_echo "no" >&6; } 8067 8068 fi 8069 rm -f core conftest.err conftest.$ac_objext \ 8070 conftest$ac_exeext conftest.$ac_ext 8071 7881 8072 # PJSIP_HAS_TLS_TRANSPORT setting follows PJ_HAS_SSL_SOCK 7882 8073 #AC_DEFINE(PJSIP_HAS_TLS_TRANSPORT, 1) … … 7895 8086 if test "${with_opencore_amrnb+set}" = set; then : 7896 8087 withval=$with_opencore_amrnb; as_fn_error $? "This option is obsolete and replaced by --with-opencore-amr=DIR" "$LINENO" 5 8088 else 8089 true; 8090 7897 8091 fi 7898 8092 … … 8227 8421 8228 8422 8423 if test "x$ac_cross_compile" != "x" -a "x$with_opus" = "xno"; then 8424 enable_opus=no 8425 fi 8426 8427 8428 # Check whether --with-opus was given. 8429 if test "${with_opus+set}" = set; then : 8430 withval=$with_opus; 8431 else 8432 with_opus=no 8433 8434 fi 8435 8436 8437 8438 # Check whether --enable-opus was given. 8439 if test "${enable_opus+set}" = set; then : 8440 enableval=$enable_opus; 8441 if test "$enable_opus" = "no"; then 8442 ac_no_opus=1 8443 $as_echo "#define PJMEDIA_HAS_OPUS_CODEC 0" >>confdefs.h 8444 8445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if OPUS support is disabled... yes" >&5 8446 $as_echo "Checking if OPUS support is disabled... yes" >&6; } 8447 fi 8448 8449 else 8450 8451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: checking for OPUS installations.." >&5 8452 $as_echo "checking for OPUS installations.." >&6; } 8453 if test "x$with_opus" != "xno" -a "x$with_opus" != "x"; then 8454 CFLAGS="$CFLAGS -I$with_opus/include" 8455 CPPFLAGS="$CPPFLAGS -I$with_opus/include" 8456 LDFLAGS="$LDFLAGS -L$with_opus/lib" 8457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using OPUS prefix... $with_opus" >&5 8458 $as_echo "Using OPUS prefix... $with_opus" >&6; } 8459 fi 8460 8461 8462 ac_fn_c_check_header_mongrel "$LINENO" "opus/opus.h" "ac_cv_header_opus_opus_h" "$ac_includes_default" 8463 if test "x$ac_cv_header_opus_opus_h" = xyes; then : 8464 opus_h_present=1 8465 fi 8466 8467 8468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for opus_repacketizer_get_size in -lopus" >&5 8469 $as_echo_n "checking for opus_repacketizer_get_size in -lopus... " >&6; } 8470 if ${ac_cv_lib_opus_opus_repacketizer_get_size+:} false; then : 8471 $as_echo_n "(cached) " >&6 8472 else 8473 ac_check_lib_save_LIBS=$LIBS 8474 LIBS="-lopus $LIBS" 8475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8476 /* end confdefs.h. */ 8477 8478 /* Override any GCC internal prototype to avoid an error. 8479 Use char because int might match the return type of a GCC 8480 builtin and then its argument prototype would still apply. */ 8481 #ifdef __cplusplus 8482 extern "C" 8483 #endif 8484 char opus_repacketizer_get_size (); 8485 int 8486 main () 8487 { 8488 return opus_repacketizer_get_size (); 8489 ; 8490 return 0; 8491 } 8492 _ACEOF 8493 if ac_fn_c_try_link "$LINENO"; then : 8494 ac_cv_lib_opus_opus_repacketizer_get_size=yes 8495 else 8496 ac_cv_lib_opus_opus_repacketizer_get_size=no 8497 fi 8498 rm -f core conftest.err conftest.$ac_objext \ 8499 conftest$ac_exeext conftest.$ac_ext 8500 LIBS=$ac_check_lib_save_LIBS 8501 fi 8502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_opus_opus_repacketizer_get_size" >&5 8503 $as_echo "$ac_cv_lib_opus_opus_repacketizer_get_size" >&6; } 8504 if test "x$ac_cv_lib_opus_opus_repacketizer_get_size" = xyes; then : 8505 opus_present=1 && LIBS="-lopus $LIBS" 8506 fi 8507 8508 if test "x$opus_h_present" = "x1" -a "x$opus_present" = "x1"; then 8509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: OPUS library found, OPUS support enabled" >&5 8510 $as_echo "OPUS library found, OPUS support enabled" >&6; } 8511 $as_echo "#define PJMEDIA_HAS_OPUS_CODEC 1" >>confdefs.h 8512 8513 else 8514 ac_no_opus=1 8515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: OPUS library not found, OPUS support disabled" >&5 8516 $as_echo "OPUS library not found, OPUS support disabled" >&6; } 8517 $as_echo "#define PJMEDIA_HAS_OPUS_CODEC 0" >>confdefs.h 8518 8519 fi 8520 8521 fi 8522 8523 8524 8525 # Check whether --enable-libyuv was given. 8526 if test "${enable_libyuv+set}" = set; then : 8527 enableval=$enable_libyuv; if test "$enable_libyuv" = "no"; then 8528 ac_no_yuv=1 8529 $as_echo "#define PJMEDIA_HAS_LIBYUV 0" >>confdefs.h 8530 8531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if libyuv is disabled...yes" >&5 8532 $as_echo "Checking if libyuv is disabled...yes" >&6; } 8533 fi 8534 else 8535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if libyuv is disabled...no" >&5 8536 $as_echo "Checking if libyuv is disabled...no" >&6; } 8537 fi 8538 8539 8540 8541 8542 8543 8544 8545 # Check whether --enable-libwebrtc was given. 8546 if test "${enable_libwebrtc+set}" = set; then : 8547 enableval=$enable_libwebrtc; if test "$enable_libwebrtc" = "no"; then 8548 ac_no_webrtc=1 8549 $as_echo "#define PJMEDIA_HAS_LIBWEBRTC 0" >>confdefs.h 8550 8551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if libwebrtc is disabled...yes" >&5 8552 $as_echo "Checking if libwebrtc is disabled...yes" >&6; } 8553 fi 8554 else 8555 8556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if libwebrtc is disabled...no" >&5 8557 $as_echo "Checking if libwebrtc is disabled...no" >&6; } 8558 case $target in 8559 *-apple-darwin_ios*) 8560 case $target in 8561 arm64*) 8562 ac_webrtc_instset=neon 8563 ac_webrtc_cflags="-DWEBRTC_ARCH_ARM64" 8564 ;; 8565 *arm*) 8566 ac_webrtc_instset=neon 8567 ;; 8568 *) 8569 ac_webrtc_instset=sse2 8570 ;; 8571 esac 8572 ;; 8573 *android*) 8574 case $TARGET_ABI in 8575 armeabi-v7a) 8576 ac_webrtc_instset=neon 8577 ac_webrtc_cflags="-mfloat-abi=softfp -mfpu=neon" 8578 ;; 8579 armeabi) 8580 ac_webrtc_instset=neon 8581 ac_webrtc_cflags="-mthumb -mfloat-abi=softfp -mfpu=neon -march=armv7" 8582 ;; 8583 arm64*) 8584 ac_webrtc_instset=neon 8585 ac_webrtc_cflags="-DWEBRTC_ARCH_ARM64" 8586 ;; 8587 mips64*) 8588 ac_webrtc_instset=generic 8589 ;; 8590 mips*) 8591 ac_webrtc_instset=mips 8592 ;; 8593 *) 8594 ac_webrtc_instset=sse2 8595 ;; 8596 esac 8597 ;; 8598 *mingw* | *cygw* | *win32* | *w32* | *darwin* | *linux*) 8599 ac_webrtc_instset=sse2 8600 ;; 8601 *) 8602 ;; 8603 esac 8604 8605 fi 8606 8607 8229 8608 8230 8609 … … 8302 8681 8303 8682 8304 8305 ac_linux_poll=select8306 8683 8307 8684 ac_host=unix … … 9022 9399 "pjsip/build/os-auto.mak") CONFIG_FILES="$CONFIG_FILES pjsip/build/os-auto.mak" ;; 9023 9400 "third_party/build/os-auto.mak") CONFIG_FILES="$CONFIG_FILES third_party/build/os-auto.mak" ;; 9024 "third_party/build/portaudio/os-auto.mak") CONFIG_FILES="$CONFIG_FILES third_party/build/portaudio/os-auto.mak" ;; 9025 9026 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 9401 9402 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5 ;; 9027 9403 esac 9028 9404 done … … 9341 9717 case $ac_mode$ac_tag in 9342 9718 :[FHL]*:*);; 9343 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5 ;;9719 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5 ;; 9344 9720 :[FH]-) ac_tag=-:-;; 9345 9721 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; … … 9369 9745 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 9370 9746 esac || 9371 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5 ;;9747 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5 ;; 9372 9748 esac 9373 9749 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac … … 9396 9772 case $ac_tag in 9397 9773 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 9398 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;9774 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 9399 9775 esac 9400 9776 ;;
Note: See TracChangeset
for help on using the changeset viewer.