Changeset 5513 for pjproject/branches/projects/uwp/aconfigure.ac
- 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.ac
r5199 r5513 1 AC_INIT( pjproject,2.x)1 AC_INIT([pjproject],[2.x]) 2 2 3 3 host_orig="$host" … … 20 20 pjsip/build/os-auto.mak 21 21 third_party/build/os-auto.mak 22 third_party/build/portaudio/os-auto.mak23 22 ]) 24 23 … … 40 39 AC_PROG_CC 41 40 AC_PROG_CXX 42 AC_LANG _C41 AC_LANG([C]) 43 42 44 43 AC_PROG_RANLIB … … 182 181 dnl # --disable-floating-point option 183 182 AC_ARG_ENABLE(floating-point, 184 A C_HELP_STRING([--disable-floating-point],183 AS_HELP_STRING([--disable-floating-point], 185 184 [Disable floating point where possible]), 186 185 [if test "$enable_floating_point" = "no"; then … … 267 266 #endif 268 267 ]) 268 269 AC_CHECK_FUNC(localtime_r,[AC_DEFINE(PJ_HAS_LOCALTIME_R,1)]) 270 269 271 AC_MSG_RESULT([Setting PJ_OS_NAME to $target]) 270 272 AC_DEFINE_UNQUOTED(PJ_OS_NAME,["$target"]) … … 342 344 [socklen_t xxx = 0;])], 343 345 [AC_DEFINE(PJ_HAS_SOCKLEN_T,1) 346 AC_MSG_RESULT(yes)], 347 AC_MSG_RESULT(no)) 348 349 dnl # Determine if IPV6_V6ONLY is available 350 AC_MSG_CHECKING([if IPV6_V6ONLY is available]) 351 AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <sys/socket.h> 352 #include <netinet/in.h>]], 353 [int opt = IPV6_V6ONLY;])], 354 [AC_DEFINE(PJ_SOCK_HAS_IPV6_V6ONLY,1) 344 355 AC_MSG_RESULT(yes)], 345 356 AC_MSG_RESULT(no)) … … 411 422 dnl # 412 423 AC_SUBST(ac_os_objs) 424 AC_SUBST(ac_linux_poll) 413 425 AC_MSG_CHECKING([ioqueue backend]) 414 426 AC_ARG_ENABLE(epoll, 415 A C_HELP_STRING([--enable-epoll],427 AS_HELP_STRING([--enable-epoll], 416 428 [Use /dev/epoll ioqueue on Linux (experimental)]), 417 429 [ 418 430 ac_os_objs=ioqueue_epoll.o 419 431 AC_MSG_RESULT([/dev/epoll]) 432 AC_DEFINE(PJ_HAS_LINUX_EPOLL,1) 433 ac_linux_poll=epoll 420 434 ], 421 435 [ 422 436 ac_os_objs=ioqueue_select.o 423 AC_MSG_RESULT([select()]) 437 AC_MSG_RESULT([select()]) 438 ac_linux_poll=select 424 439 ]) 425 440 426 441 AC_SUBST(ac_shared_libraries) 427 442 AC_ARG_ENABLE(shared, 428 A C_HELP_STRING([--enable-shared],443 AS_HELP_STRING([--enable-shared], 429 444 [Build shared libraries]), 430 445 [if test "$enable_shared" = "yes"; then … … 451 466 ;; 452 467 esac 468 # QoS 469 case $target in 470 *darwin*) 471 ;; 472 *) 473 ac_os_objs="$ac_os_objs sock_qos_bsd.o" 474 ;; 475 esac 453 476 # UUID 454 if test "$ac_has_uuid_lib" = "1" -a "$ac_has_uuid_h" = "1"; then 455 ac_os_objs="$ac_os_objs guid_uuid.o" 456 else 457 ac_os_objs="$ac_os_objs guid_simple.o" 458 fi 477 case $target in 478 *android*) 479 ac_os_objs="$ac_os_objs guid_android.o" 480 ;; 481 *) 482 if test "$ac_has_uuid_lib" = "1" -a "$ac_has_uuid_h" = "1"; then 483 ac_os_objs="$ac_os_objs guid_uuid.o" 484 else 485 ac_os_objs="$ac_os_objs guid_simple.o" 486 fi 487 ;; 488 esac 459 489 ;; 460 490 esac … … 462 492 case $target in 463 493 *darwin*) 464 ac_os_objs="$ac_os_objs os_core_darwin.o"494 ac_os_objs="$ac_os_objs sock_qos_darwin.o os_core_darwin.o" 465 495 ;; 466 496 esac … … 474 504 AC_SUBST(ac_external_speex,0) 475 505 AC_ARG_WITH(external-speex, 476 A C_HELP_STRING([--with-external-speex],506 AS_HELP_STRING([--with-external-speex], 477 507 [Use external Speex development files, not the one in "third_party" directory. When this option is set, make sure that Speex is accessible to use (hint: use CFLAGS and LDFLAGS env var to set the include/lib paths)]), 478 508 [ … … 496 526 AC_SUBST(ac_external_gsm,0) 497 527 AC_ARG_WITH(external-gsm, 498 A C_HELP_STRING([--with-external-gsm],528 AS_HELP_STRING([--with-external-gsm], 499 529 [Use external GSM codec library, not the one in "third_party" directory. When this option is set, make sure that the GSM include/lib files are accessible to use (hint: use CFLAGS and LDFLAGS env var to set the include/lib paths)]), 500 530 [ … … 532 562 AC_SUBST(ac_external_srtp,0) 533 563 AC_ARG_WITH(external-srtp, 534 A C_HELP_STRING([--with-external-srtp],564 AS_HELP_STRING([--with-external-srtp], 535 565 [Use external SRTP development files, not the one in "third_party" directory. When this option is set, make sure that SRTP is accessible to use (hint: use CFLAGS and LDFLAGS env var to set the include/lib paths)]), 536 566 [ … … 559 589 fi 560 590 591 592 dnl # Use external libyuv installation 593 AC_SUBST(ac_external_yuv,0) 594 AC_ARG_WITH(external-yuv, 595 AS_HELP_STRING([--with-external-yuv], 596 [Use external libyuv development files, not the one in "third_party" directory. When this option is set, make sure that libyuv is accessible to use (hint: use CFLAGS and LDFLAGS env var to set the include/lib paths)]), 597 [ 598 if test "x$with_external_yuv" != "xno"; then 599 # Test libyuv installation 600 AC_MSG_CHECKING([if external libyuv devkit is installed]) 601 AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <libyuv.h>]], 602 [RGB24ToI420(0,0,0,0,0,0,0,0,0,0);])], 603 [AC_MSG_RESULT(yes!!) 604 ac_external_yuv="1" 605 ], 606 [AC_MSG_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])]) 607 fi 608 ] 609 ) 610 611 612 dnl # Use external webrtc installation 613 AC_SUBST(ac_external_webrtc,0) 614 AC_ARG_WITH(external-webrtc, 615 AS_HELP_STRING([--with-external-webrtc], 616 [Use external webrtc development files, not the one in "third_party" directory. When this option is set, make sure that webrtc is accessible to use (hint: use CFLAGS and LDFLAGS env var to set the include/lib paths)]), 617 [ 618 if test "x$with_external_webrtc" != "xno"; then 619 # Test webrtc installation 620 AC_MSG_CHECKING([if external webrtc devkit is installed]) 621 AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <webrtc/modules/audio_processing/aec/aec_core.h> 622 #include <webrtc/modules/audio_processing/aec/include/echo_cancellation.h> 623 ]], 624 [WebRtcAec_Create();])], 625 [AC_MSG_RESULT(yes!!) 626 ac_external_webrtc="1" 627 ], 628 [AC_MSG_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])]) 629 fi 630 ] 631 ) 632 633 561 634 dnl # Resample implementation 562 635 AC_SUBST(ac_pjmedia_resample,libresample) 563 636 AC_ARG_ENABLE(resample, 564 A C_HELP_STRING([--disable-resample],637 AS_HELP_STRING([--disable-resample], 565 638 [Disable resampling implementations]), 566 639 [if test "$enable_resample" = "no"; then … … 573 646 AC_SUBST(ac_pjmedia_snd) 574 647 AC_ARG_ENABLE(sound, 575 A C_HELP_STRING([--disable-sound],648 AS_HELP_STRING([--disable-sound], 576 649 [Exclude sound (i.e. use null sound)]), 577 650 [if test "$enable_sound" = "no"; then … … 584 657 AC_SUBST(ac_external_pa,0) 585 658 AC_ARG_WITH(external-pa, 586 A C_HELP_STRING([--with-external-pa],659 AS_HELP_STRING([--with-external-pa], 587 660 [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)]), 588 661 [ … … 652 725 *) 653 726 dnl # Check if ALSA is available 654 ac_pjmedia_snd=pa_unix 727 ac_pjmedia_snd=alsa 728 AC_SUBST(ac_pa_use_alsa,1) 655 729 AC_CHECK_HEADER(alsa/version.h, 656 [AC_SUBST(ac_pa_use_alsa,1) 657 AC_SUBST(ac_pjmedia_snd,alsa) 658 LIBS="$LIBS -lasound" 659 ], 660 [AC_SUBST(ac_pa_use_alsa,0)]) 730 [LIBS="$LIBS -lasound"], 731 [ac_pa_use_alsa=0]) 661 732 AC_MSG_RESULT([Checking sound device backend... unix]) 662 733 … … 664 735 AC_SUBST(ac_pa_use_oss,1) 665 736 AC_ARG_ENABLE(oss, 666 A C_HELP_STRING([--disable-oss],737 AS_HELP_STRING([--disable-oss], 667 738 [Disable OSS audio (default: not disabled)]), 668 739 [ … … 678 749 AC_SUBST(ac_pjmedia_video) 679 750 751 # Disable video on mingw 752 case $target in 753 *mingw*) 754 enable_video="no" 755 ;; 756 esac 757 680 758 dnl # --disable-video option 681 759 AC_ARG_ENABLE(video, 682 A C_HELP_STRING([--disable-video],760 AS_HELP_STRING([--disable-video], 683 761 [Disable video feature]), 684 762 [if test "$enable_video" = "no"; then … … 726 804 ac_android_cflags="$ac_android_cflags -DPJMEDIA_VIDEO_DEV_HAS_ANDROID=1" 727 805 ;; 728 *-apple-darwin_ios*) 729 ac_pjmedia_video=iphone_os 730 AC_SUBST(ac_pjmedia_video_has_ios) 731 AC_SUBST(ac_ios_cflags) 806 *darwin*) 807 ac_pjmedia_video=darwin_os 808 AC_SUBST(ac_pjmedia_video_has_darwin) 809 AC_SUBST(ac_pjmedia_video_has_ios_opengl) 810 AC_SUBST(ac_darwin_cflags) 732 811 SAVED_LIBS="$LIBS" 733 812 LIBS="-framework AVFoundation -framework CoreGraphics -framework QuartzCore -framework CoreVideo -framework CoreMedia" 734 AC_LINK_IFELSE([AC_LANG_PROGRAM([[]], [])],[ac_pjmedia_video_has_ios=yes],[ac_pjmedia_video_has_ios=no]) 813 AC_LINK_IFELSE([AC_LANG_PROGRAM([[]], [])], 814 [ac_pjmedia_video_has_darwin=yes], 815 [ac_pjmedia_video_has_darwin=no]) 816 LIBS="-framework OpenGLES" 817 AC_LINK_IFELSE([AC_LANG_PROGRAM([[]], [])], 818 [ac_pjmedia_video_has_ios_opengl=yes], 819 [ac_pjmedia_video_has_ios_opengl=no]) 735 820 LIBS="$SAVED_LIBS" 736 if test "$ac_pjmedia_video_has_ ios" = "yes"; then737 ac_ ios_cflags="-DPJMEDIA_VIDEO_DEV_HAS_IOS=1 -DPJMEDIA_VIDEO_DEV_HAS_IOS_OPENGL=1"738 LIBS="$LIBS -framework OpenGLES -frameworkAVFoundation -framework CoreGraphics -framework QuartzCore -framework CoreVideo -framework CoreMedia"821 if test "$ac_pjmedia_video_has_darwin" = "yes"; then 822 ac_darwin_cflags="-DPJMEDIA_VIDEO_DEV_HAS_DARWIN=1" 823 LIBS="$LIBS -framework AVFoundation -framework CoreGraphics -framework QuartzCore -framework CoreVideo -framework CoreMedia" 739 824 AC_MSG_RESULT([Checking if AVFoundation framework is available... yes]) 740 825 else 741 826 AC_MSG_RESULT([Checking if AVFoundation framework is available... no]) 742 827 fi 743 ;; 744 *darwin*) 745 ac_pjmedia_video=mac_os 746 AC_SUBST(ac_pjmedia_video_has_qt) 747 AC_SUBST(ac_qt_cflags) 748 SAVED_LIBS="$LIBS" 749 LIBS="-framework QTKit" 750 AC_LINK_IFELSE([AC_LANG_PROGRAM([[]], [])],[ac_pjmedia_video_has_qt=yes],[ac_pjmedia_video_has_qt=no]) 751 LIBS="$SAVED_LIBS" 752 if test "$ac_pjmedia_video_has_qt" = "yes"; then 753 ac_qt_cflags="-DPJMEDIA_VIDEO_DEV_HAS_QT=1" 754 LIBS="$LIBS -framework QTKit -framework QuartzCore -framework OpenGL" 755 AC_MSG_RESULT([Checking if QTKit framework is available... yes]) 828 if test "$ac_pjmedia_video_has_ios_opengl" = "yes"; then 829 ac_darwin_cflags+=" -DPJMEDIA_VIDEO_DEV_HAS_IOS_OPENGL=1" 830 LIBS="$LIBS -framework OpenGLES" 831 AC_MSG_RESULT([Checking if OpenGLES framework is available... yes]) 756 832 else 757 AC_MSG_RESULT([Checking if QTKitframework is available... no])833 AC_MSG_RESULT([Checking if OpenGLES framework is available... no]) 758 834 fi 759 ;; 835 if false; then 836 # QTKit is deprecated, see ticket #1931. 837 ac_pjmedia_video=mac_os 838 AC_SUBST(ac_pjmedia_video_has_qt) 839 AC_SUBST(ac_qt_cflags) 840 SAVED_LIBS="$LIBS" 841 LIBS="-framework QTKit" 842 AC_LINK_IFELSE([AC_LANG_PROGRAM([[]], [])],[ac_pjmedia_video_has_qt=yes],[ac_pjmedia_video_has_qt=no]) 843 LIBS="$SAVED_LIBS" 844 if test "$ac_pjmedia_video_has_qt" = "yes"; then 845 ac_qt_cflags="-DPJMEDIA_VIDEO_DEV_HAS_QT=1" 846 LIBS="$LIBS -framework QTKit -framework QuartzCore -framework OpenGL" 847 AC_MSG_RESULT([Checking if QTKit framework is available... yes]) 848 else 849 AC_MSG_RESULT([Checking if QTKit framework is available... no]) 850 fi 851 fi 852 ;; 760 853 esac 761 854 fi 762 855 763 856 AC_ARG_ENABLE(ext_sound, 764 A C_HELP_STRING([--enable-ext-sound],857 AS_HELP_STRING([--enable-ext-sound], 765 858 [PJMEDIA will not provide any sound device backend]), 766 859 [if test "$enable_ext_sound" = "yes"; then … … 773 866 AC_SUBST(ac_no_small_filter) 774 867 AC_ARG_ENABLE(small-filter, 775 A C_HELP_STRING([--disable-small-filter],868 AS_HELP_STRING([--disable-small-filter], 776 869 [Exclude small filter in resampling]), 777 870 [if test "$enable_small_filter" = "no"; then … … 784 877 AC_SUBST(ac_no_large_filter) 785 878 AC_ARG_ENABLE(large-filter, 786 A C_HELP_STRING([--disable-large-filter],879 AS_HELP_STRING([--disable-large-filter], 787 880 [Exclude large filter in resampling]), 788 881 [if test "$enable_large_filter" = "no"; then … … 795 888 AC_SUBST(ac_no_speex_aec) 796 889 AC_ARG_ENABLE(speex-aec, 797 A C_HELP_STRING([--disable-speex-aec],890 AS_HELP_STRING([--disable-speex-aec], 798 891 [Exclude Speex Acoustic Echo Canceller/AEC]), 799 892 [if test "$enable_speex_aec" = "no"; then … … 806 899 AC_SUBST(ac_no_g711_codec) 807 900 AC_ARG_ENABLE(g711-codec, 808 A C_HELP_STRING([--disable-g711-codec],901 AS_HELP_STRING([--disable-g711-codec], 809 902 [Exclude G.711 codecs from the build]), 810 903 [if test "$enable_g711_codec" = "no"; then … … 819 912 AC_SUBST(ac_no_l16_codec) 820 913 AC_ARG_ENABLE(l16-codec, 821 A C_HELP_STRING([--disable-l16-codec],914 AS_HELP_STRING([--disable-l16-codec], 822 915 [Exclude Linear/L16 codec family from the build]), 823 916 [if test "$enable_l16_codec" = "no"; then … … 832 925 AC_SUBST(ac_no_gsm_codec) 833 926 AC_ARG_ENABLE(gsm-codec, 834 A C_HELP_STRING([--disable-gsm-codec],927 AS_HELP_STRING([--disable-gsm-codec], 835 928 [Exclude GSM codec in the build]), 836 929 [if test "$enable_gsm_codec" = "no"; then … … 844 937 AC_SUBST(ac_no_g722_codec) 845 938 AC_ARG_ENABLE(g722-codec, 846 A C_HELP_STRING([--disable-g722-codec],939 AS_HELP_STRING([--disable-g722-codec], 847 940 [Exclude G.722 codec in the build]), 848 941 [if test "$enable_g722_codec" = "no"; then … … 856 949 AC_SUBST(ac_no_g7221_codec) 857 950 AC_ARG_ENABLE(g7221-codec, 858 A C_HELP_STRING([--disable-g7221-codec],951 AS_HELP_STRING([--disable-g7221-codec], 859 952 [Exclude G.7221 codec in the build]), 860 953 [if test "$enable_g7221_codec" = "no"; then … … 868 961 AC_SUBST(ac_no_speex_codec) 869 962 AC_ARG_ENABLE(speex-codec, 870 A C_HELP_STRING([--disable-speex-codec],963 AS_HELP_STRING([--disable-speex-codec], 871 964 [Exclude Speex codecs in the build]), 872 965 [if test "$enable_speex_codec" = "no"; then … … 880 973 AC_SUBST(ac_no_ilbc_codec) 881 974 AC_ARG_ENABLE(ilbc-codec, 882 A C_HELP_STRING([--disable-ilbc-codec],975 AS_HELP_STRING([--disable-ilbc-codec], 883 976 [Exclude iLBC codec in the build]), 884 977 [if test "$enable_ilbc_codec" = "no"; then … … 891 984 dnl # Include libsamplerate 892 985 AC_ARG_ENABLE(libsamplerate, 893 A C_HELP_STRING([--enable-libsamplerate],986 AS_HELP_STRING([--enable-libsamplerate], 894 987 [Link with libsamplerate when available.]), 895 988 [ … … 905 998 AC_SUBST(ac_resample_dll) 906 999 AC_ARG_ENABLE(resample_dll, 907 A C_HELP_STRING([--enable-resample-dll],1000 AS_HELP_STRING([--enable-resample-dll], 908 1001 [Build libresample as shared library]), 909 1002 [if test "$enable_resample_dll" = "yes"; then … … 916 1009 dnl # SDL alt prefix 917 1010 AC_ARG_WITH(sdl, 918 A C_HELP_STRING([--with-sdl=DIR],1011 AS_HELP_STRING([--with-sdl=DIR], 919 1012 [Specify alternate libSDL prefix]), 920 1013 [], … … 929 1022 dnl # SDL 930 1023 AC_ARG_ENABLE(sdl, 931 A C_HELP_STRING([--disable-sdl],1024 AS_HELP_STRING([--disable-sdl], 932 1025 [Disable SDL (default: not disabled)]), 933 1026 [ … … 961 1054 962 1055 AC_ARG_WITH(ffmpeg, 963 A C_HELP_STRING([--with-ffmpeg=DIR],1056 AS_HELP_STRING([--with-ffmpeg=DIR], 964 1057 [Specify alternate FFMPEG prefix]), 965 1058 [], … … 974 1067 dnl # FFMPEG stuffs 975 1068 AC_ARG_ENABLE(ffmpeg, 976 A C_HELP_STRING([--disable-ffmpeg],1069 AS_HELP_STRING([--disable-ffmpeg], 977 1070 [Disable ffmpeg (default: not disabled)]), 978 1071 [ … … 1000 1093 AC_MSG_CHECKING([ffmpeg packages]) 1001 1094 av_pkg="" 1002 if $PKG_CONFIG --exists lib device; then1095 if $PKG_CONFIG --exists libavdevice; then 1003 1096 ac_ffmpeg_cflags="$ac_ffmpeg_cflags -DPJMEDIA_HAS_LIBAVDEVICE=1" 1004 av_pkg="$av_pkg lib device"1097 av_pkg="$av_pkg libavdevice" 1005 1098 fi 1006 1099 if $PKG_CONFIG --exists libavformat; then … … 1019 1112 ac_ffmpeg_cflags="$ac_ffmpeg_cflags -DPJMEDIA_HAS_LIBAVUTIL=1" 1020 1113 av_pkg="$av_pkg libavutil" 1021 fi1022 if $PKG_CONFIG --exists libavcore; then1023 ac_ffmpeg_cflags="$ac_ffmpeg_cflags -DPJMEDIA_HAS_LIBAVCORE=1"1024 av_pkg="$av_pkg libavcore"1025 1114 fi 1026 1115 … … 1090 1179 fi 1091 1180 1181 AC_CHECK_TYPES(enum AVPixelFormat, 1182 [], 1183 [ac_ffmpeg_cflags="$ac_ffmpeg_cflags -DPJMEDIA_USE_OLD_FFMPEG=1"], 1184 [[#include <libavformat/avformat.h>]] 1185 ) 1186 1092 1187 LIBS="$LIBS $ac_ffmpeg_ldflags" 1093 1188 export PKG_CONFIG_PATH=$SAVED_PKG_CONFIG_PATH … … 1097 1192 dnl # Video for Linux 2 1098 1193 AC_ARG_ENABLE(v4l2, 1099 A C_HELP_STRING([--disable-v4l2],1194 AS_HELP_STRING([--disable-v4l2], 1100 1195 [Disable Video4Linux2 (default: not disabled)]), 1101 1196 [ … … 1118 1213 dnl # OpenH264 alt prefix 1119 1214 AC_ARG_WITH(openh264, 1120 A C_HELP_STRING([--with-openh264=DIR],1215 AS_HELP_STRING([--with-openh264=DIR], 1121 1216 [Specify alternate OpenH264 prefix]), 1122 1217 [], … … 1133 1228 AC_SUBST(ac_openh264_ldflags) 1134 1229 AC_ARG_ENABLE(openh264, 1135 A C_HELP_STRING([--disable-openh264],1230 AS_HELP_STRING([--disable-openh264], 1136 1231 [Disable OpenH264 (default: not disabled)]), 1137 1232 [ … … 1181 1276 ]) 1182 1277 1183 dnl # libyuv alt prefix1184 AC_ARG_WITH(libyuv,1185 AC_HELP_STRING([--with-libyuv=DIR],1186 [Specify alternate libyuv prefix]),1187 [],1188 [with_libyuv=no]1189 )1190 1191 dnl # Do not use default libyuv installation if we are cross-compiling1192 if test "x$ac_cross_compile" != "x" -a "x$with_libyuv" = "xno"; then1193 enable_libyuv=no1194 fi1195 1196 dnl # Include libyuv1197 AC_SUBST(ac_libyuv_cflags)1198 AC_SUBST(ac_libyuv_ldflags)1199 AC_ARG_ENABLE(libyuv,1200 AC_HELP_STRING([--disable-libyuv],1201 [Exclude libyuv in the build]),1202 [if test "$enable_libyuv" = "no"; then1203 AC_MSG_RESULT([Checking if libyuv is disabled...yes])1204 fi],1205 [1206 if test "x$with_libyuv" != "xno" -a "x$with_libyuv" != "x"; then1207 LIBYUV_PREFIX=$with_libyuv1208 LIBYUV_CFLAGS="-I$LIBYUV_PREFIX/include"1209 1210 case $target in1211 *-apple-darwin_ios*)1212 LIBYUV_LDFLAGS="-L$LIBYUV_PREFIX/out_ios/Release-iphoneos"1213 case $ARCH in1214 *arm*)1215 LIBYUV_LIBS="-lyuv_neon"1216 ;;1217 *)1218 ;;1219 esac1220 ;;1221 *mingw* | *cygw* | *win32* | *w32* | *darwin* | *linux* | *android*)1222 LIBYUV_LDFLAGS="-L$LIBYUV_PREFIX/out/Release"1223 ;;1224 *)1225 LIBYUV_CFLAGS=""1226 LIBYUV_LDFLAGS=""1227 ;;1228 esac1229 1230 AC_MSG_RESULT([Using libyuv prefix... $with_libyuv])1231 else1232 LIBYUV_CFLAGS=""1233 LIBYUV_LDFLAGS=""1234 fi1235 1236 LIBYUV_LIBS="$LIBYUV_LIBS -lyuv"1237 1238 SAVED_LIBS="$LIBS"1239 SAVED_LDFLAGS="$LDFLAGS"1240 SAVED_CFLAGS="$CFLAGS"1241 1242 LIBS="$LIBYUV_LIBS $LIBS"1243 LDFLAGS="$LIBYUV_LDFLAGS $LDFLAGS"1244 CFLAGS="$LIBYUV_CFLAGS $CFLAGS"1245 1246 AC_CHECK_LIB(yuv,1247 I420Scale,1248 [ ac_libyuv_cflags="-DPJMEDIA_HAS_LIBYUV=1 $LIBYUV_CFLAGS"1249 ac_libyuv_ldflags="$LIBYUV_LDFLAGS $LIBYUV_LIBS"1250 ],1251 [ LIBS="$SAVED_LIBS"1252 LDFLAGS="$SAVED_LDFLAGS"1253 CFLAGS="$SAVED_CFLAGS"1254 ],1255 []1256 )1257 ])1258 1259 1260 dnl # WebRtc alt prefix1261 AC_ARG_WITH(webrtc,1262 AC_HELP_STRING([--with-webrtc=DIR],1263 [Specify alternate WebRtc prefix]),1264 [],1265 [with_webrtc=no]1266 )1267 1268 dnl # Do not use default webrtc installation if we are cross-compiling1269 if test "x$ac_cross_compile" != "x" -a "x$with_webrtc" = "xno"; then1270 enable_webrtc=no1271 fi1272 1273 dnl # WebRtc1274 AC_SUBST(ac_webrtc_cflags)1275 AC_SUBST(ac_webrtc_ldflags)1276 AC_ARG_ENABLE(webrtc,1277 AC_HELP_STRING([--disable-webrtc],1278 [Exclude webrtc in the build]),1279 [if test "$enable_webrtc" = "no"; then1280 AC_MSG_RESULT([Checking if webrtc is disabled...yes])1281 fi],1282 [1283 if test "x$with_webrtc" != "xno" -a "x$with_webrtc" != "x"; then1284 WEBRTC_PREFIX=$with_webrtc1285 WEBRTC_CFLAGS="-I$WEBRTC_PREFIX/src"1286 1287 case $target in1288 *-apple-darwin_ios*)1289 case $ARCH in1290 *arm*)1291 WEBRTC_CFLAGS="-DPJMEDIA_WEBRTC_AEC_USE_MOBILE=1 $WEBRTC_CFLAGS"1292 WEBRTC_LDFLAGS="-L$WEBRTC_PREFIX/src/out_ios/Release-iphoneos"1293 WEBRTC_LIBS="-laudio_processing_neon -lcommon_audio_neon"1294 ;;1295 *)1296 ;;1297 esac1298 ;;1299 *mingw* | *cygw* | *win32* | *w32* | *darwin* | *linux* | *android*)1300 WEBRTC_LDFLAGS="-L$WEBRTC_PREFIX/src/out/Release"1301 WEBRTC_LIBS="-laudio_processing_sse2"1302 ;;1303 *)1304 ;;1305 esac1306 1307 AC_MSG_RESULT([Using webrtc prefix... $with_webrtc])1308 else1309 WEBRTC_CFLAGS=""1310 WEBRTC_LDFLAGS=""1311 fi1312 1313 WEBRTC_LIBS="$WEBRTC_LIBS -laudio_processing -lcommon_audio -lsystem_wrappers"1314 1315 SAVED_LIBS="$LIBS"1316 SAVED_LDFLAGS="$LDFLAGS"1317 SAVED_CFLAGS="$CFLAGS"1318 1319 LIBS="$WEBRTC_LIBS $LIBS"1320 LDFLAGS="$WEBRTC_LDFLAGS $LDFLAGS"1321 CFLAGS="$WEBRTC_CFLAGS $CFLAGS"1322 1323 AC_CHECK_LIB(audio_processing,1324 WebRtcAec_Process,1325 [ ac_webrtc_cflags="-DPJMEDIA_HAS_WEBRTC_AEC=1 $WEBRTC_CFLAGS"1326 ac_webrtc_ldflags="$WEBRTC_LDFLAGS $WEBRTC_LIBS"1327 ],1328 [ LIBS="$SAVED_LIBS"1329 LDFLAGS="$SAVED_LDFLAGS"1330 CFLAGS="$SAVED_CFLAGS"1331 ],1332 []1333 )1334 ])1335 1278 1336 1279 dnl ######################################################## … … 1338 1281 dnl # 1339 1282 AC_ARG_ENABLE(ipp, 1340 A C_HELP_STRING([--enable-ipp],1283 AS_HELP_STRING([--enable-ipp], 1341 1284 [Enable Intel IPP support. Specify the Intel IPP package and samples location using IPPROOT and IPPSAMPLES env var or with --with-ipp and --with-ipp-samples options]), 1342 1285 [], … … 1345 1288 1346 1289 AC_ARG_WITH(ipp, 1347 A C_HELP_STRING([--with-ipp=DIR],1290 AS_HELP_STRING([--with-ipp=DIR], 1348 1291 [Specify the Intel IPP location]), 1349 1292 [], … … 1352 1295 1353 1296 AC_ARG_WITH(ipp-samples, 1354 A C_HELP_STRING([--with-ipp-samples=DIR],1297 AS_HELP_STRING([--with-ipp-samples=DIR], 1355 1298 [Specify the Intel IPP samples location]), 1356 1299 [], … … 1359 1302 1360 1303 AC_ARG_WITH(ipp-arch, 1361 A C_HELP_STRING([--with-ipp-arch=ARCH],1304 AS_HELP_STRING([--with-ipp-arch=ARCH], 1362 1305 [Specify the Intel IPP ARCH suffix, e.g. "64" or "em64t. Default is blank for IA32"]), 1363 1306 [], … … 1577 1520 dnl # SSL alt prefix 1578 1521 AC_ARG_WITH(ssl, 1579 A C_HELP_STRING([--with-ssl=DIR],1522 AS_HELP_STRING([--with-ssl=DIR], 1580 1523 [Specify alternate libssl prefix]), 1581 1524 [], … … 1590 1533 dnl # Include SSL support 1591 1534 AC_SUBST(ac_no_ssl) 1535 AC_SUBST(ac_ssl_has_aes_gcm,0) 1536 AC_SUBST(ac_ssl_has_ec,0) 1537 AC_SUBST(ac_ssl_has_sigalg,0) 1592 1538 AC_ARG_ENABLE(ssl, 1593 A C_HELP_STRING([--disable-ssl],1539 AS_HELP_STRING([--disable-ssl], 1594 1540 [Exclude SSL support the build (default: autodetect)]) 1595 1541 , … … 1615 1561 if test "x$openssl_h_present" = "x1" -a "x$libssl_present" = "x1" -a "x$libcrypto_present" = "x1"; then 1616 1562 AC_MSG_RESULT([OpenSSL library found, SSL support enabled]) 1563 1564 # Check if SRTP should be compiled with OpenSSL 1565 # support, to enable cryptos such as AES GCM 1566 AC_CHECK_LIB(crypto,EVP_aes_128_gcm,[ac_ssl_has_aes_gcm=1]) 1567 if test "x$ac_ssl_has_aes_gcm" = "x1"; then 1568 AC_MSG_RESULT([OpenSSL has AES GCM support, SRTP will use OpenSSL]) 1569 else 1570 AC_MSG_RESULT([OpenSSL AES GCM support not found, SRTP will only support AES CM cryptos]) 1571 fi 1572 1573 # Check if OpenSSL supports setting curve algorithm 1574 # and has elliptic curve 1575 1576 AC_MSG_CHECKING([OpenSSL setting curve functions]) 1577 AC_SUBST(set_curve_present,0) 1578 AC_SUBST(ec_curve_present,0) 1579 AC_LINK_IFELSE([AC_LANG_PROGRAM([[#include <openssl/ssl.h> 1580 ]], 1581 [ SSL_set1_curves(NULL, NULL, 0);] 1582 )], 1583 [ set_curve_present=1 1584 AC_MSG_RESULT(ok) 1585 ], 1586 [ 1587 AC_MSG_RESULT(no) 1588 ]) 1589 1590 AC_CHECK_LIB(ssl,EC_curve_nid2nist,[ec_curve_present=1]) 1591 if test "x$set_curve_present" = "x1" -a "x$ec_curve_present" = "x1"; then 1592 [ac_ssl_has_ec=1] 1593 AC_MSG_RESULT([OpenSSL has elliptic curve support]) 1594 else 1595 AC_MSG_RESULT([OpenSSL elliptic curve algorithm unsupported]) 1596 fi 1597 1598 AC_MSG_CHECKING([OpenSSL setting sigalg]) 1599 AC_LINK_IFELSE([AC_LANG_PROGRAM([[#include <openssl/ssl.h> 1600 ]], 1601 [SSL_set1_sigalgs_list(NULL, NULL);] 1602 )], 1603 [ ac_ssl_has_sigalg=1 1604 AC_MSG_RESULT(ok) 1605 ], 1606 [ 1607 AC_MSG_RESULT(no) 1608 ]) 1609 1617 1610 # PJSIP_HAS_TLS_TRANSPORT setting follows PJ_HAS_SSL_SOCK 1618 1611 #AC_DEFINE(PJSIP_HAS_TLS_TRANSPORT, 1) … … 1625 1618 dnl # Obsolete option --with-opencore-amrnb 1626 1619 AC_ARG_WITH(opencore-amrnb, 1627 A C_HELP_STRING([--with-opencore-amrnb=DIR],1620 AS_HELP_STRING([--with-opencore-amrnb=DIR], 1628 1621 [This option is obsolete and replaced by --with-opencore-amr=DIR]), 1629 1622 [AC_MSG_ERROR(This option is obsolete and replaced by --with-opencore-amr=DIR)], 1630 [ ]1623 [true;] 1631 1624 ) 1632 1625 1633 1626 dnl # opencore-amr alt prefix 1634 1627 AC_ARG_WITH(opencore-amr, 1635 A C_HELP_STRING([--with-opencore-amr=DIR],1628 AS_HELP_STRING([--with-opencore-amr=DIR], 1636 1629 [Specify alternate libopencore-amr prefix]), 1637 1630 [], … … 1646 1639 dnl # vo-amrwbenc alt prefix 1647 1640 AC_ARG_WITH(opencore-amrwbenc, 1648 A C_HELP_STRING([--with-opencore-amrwbenc=DIR],1641 AS_HELP_STRING([--with-opencore-amrwbenc=DIR], 1649 1642 [Specify alternate libvo-amrwbenc prefix]), 1650 1643 [], … … 1662 1655 AC_SUBST(ac_no_opencore_amrwb) 1663 1656 AC_ARG_ENABLE(opencore_amr, 1664 A C_HELP_STRING([--disable-opencore-amr],1657 AS_HELP_STRING([--disable-opencore-amr], 1665 1658 [Exclude OpenCORE AMR support from the build (default: autodetect)]) 1666 1659 , … … 1717 1710 dnl # SILK prefix 1718 1711 AC_ARG_WITH(silk, 1719 A C_HELP_STRING([--with-silk=DIR],1712 AS_HELP_STRING([--with-silk=DIR], 1720 1713 [Specify alternate SILK prefix]), 1721 1714 [], … … 1731 1724 AC_SUBST(ac_no_silk) 1732 1725 AC_ARG_ENABLE(silk, 1733 A C_HELP_STRING([--disable-silk],1726 AS_HELP_STRING([--disable-silk], 1734 1727 [Exclude SILK support from the build (default: autodetect)]) 1735 1728 , … … 1762 1755 ]) 1763 1756 1757 dnl # Do not use default OPUS installation if we are cross-compiling 1758 if test "x$ac_cross_compile" != "x" -a "x$with_opus" = "xno"; then 1759 enable_opus=no 1760 fi 1761 1762 dnl # OPUS prefix 1763 AC_ARG_WITH(opus, 1764 AS_HELP_STRING([--with-opus=DIR], 1765 [Specify alternate OPUS prefix]), 1766 [], 1767 [with_opus=no] 1768 ) 1769 1770 dnl # Include OPUS support 1771 AC_SUBST(ac_no_opus) 1772 AC_ARG_ENABLE(opus, 1773 AS_HELP_STRING([--disable-opus], 1774 [Exclude OPUS support from the build (default: autodetect)]) 1775 , 1776 [ 1777 if test "$enable_opus" = "no"; then 1778 [ac_no_opus=1] 1779 AC_DEFINE(PJMEDIA_HAS_OPUS_CODEC,0) 1780 AC_MSG_RESULT([Checking if OPUS support is disabled... yes]) 1781 fi 1782 ], 1783 [ 1784 AC_MSG_RESULT([checking for OPUS installations..]) 1785 if test "x$with_opus" != "xno" -a "x$with_opus" != "x"; then 1786 CFLAGS="$CFLAGS -I$with_opus/include" 1787 CPPFLAGS="$CPPFLAGS -I$with_opus/include" 1788 LDFLAGS="$LDFLAGS -L$with_opus/lib" 1789 AC_MSG_RESULT([Using OPUS prefix... $with_opus]) 1790 fi 1791 AC_SUBST(opus_h_present) 1792 AC_SUBST(opus_present) 1793 AC_CHECK_HEADER(opus/opus.h,[opus_h_present=1]) 1794 AC_CHECK_LIB(opus,opus_repacketizer_get_size,[opus_present=1 && LIBS="-lopus $LIBS"]) 1795 if test "x$opus_h_present" = "x1" -a "x$opus_present" = "x1"; then 1796 AC_MSG_RESULT([OPUS library found, OPUS support enabled]) 1797 AC_DEFINE(PJMEDIA_HAS_OPUS_CODEC,1) 1798 else 1799 [ac_no_opus=1] 1800 AC_MSG_RESULT([OPUS library not found, OPUS support disabled]) 1801 AC_DEFINE(PJMEDIA_HAS_OPUS_CODEC,0) 1802 fi 1803 ]) 1804 1805 dnl # Include libyuv 1806 AC_SUBST(ac_no_yuv) 1807 AC_ARG_ENABLE(libyuv, 1808 AS_HELP_STRING([--disable-libyuv], 1809 [Exclude libyuv in the build]), 1810 [if test "$enable_libyuv" = "no"; then 1811 [ac_no_yuv=1] 1812 AC_DEFINE(PJMEDIA_HAS_LIBYUV,0) 1813 AC_MSG_RESULT([Checking if libyuv is disabled...yes]) 1814 fi], 1815 AC_MSG_RESULT([Checking if libyuv is disabled...no])) 1816 1817 1818 dnl # Include webrtc 1819 AC_SUBST(ac_no_webrtc) 1820 AC_SUBST(ac_webrtc_instset) 1821 AC_SUBST(ac_webrtc_cflags) 1822 AC_SUBST(ac_webrtc_ldflags) 1823 AC_ARG_ENABLE(libwebrtc, 1824 AS_HELP_STRING([--disable-libwebrtc], 1825 [Exclude libwebrtc in the build]), 1826 [if test "$enable_libwebrtc" = "no"; then 1827 [ac_no_webrtc=1] 1828 AC_DEFINE(PJMEDIA_HAS_LIBWEBRTC,0) 1829 AC_MSG_RESULT([Checking if libwebrtc is disabled...yes]) 1830 fi], 1831 [ 1832 AC_MSG_RESULT([Checking if libwebrtc is disabled...no]) 1833 case $target in 1834 *-apple-darwin_ios*) 1835 case $target in 1836 arm64*) 1837 ac_webrtc_instset=neon 1838 ac_webrtc_cflags="-DWEBRTC_ARCH_ARM64" 1839 ;; 1840 *arm*) 1841 ac_webrtc_instset=neon 1842 ;; 1843 *) 1844 ac_webrtc_instset=sse2 1845 ;; 1846 esac 1847 ;; 1848 *android*) 1849 case $TARGET_ABI in 1850 armeabi-v7a) 1851 ac_webrtc_instset=neon 1852 ac_webrtc_cflags="-mfloat-abi=softfp -mfpu=neon" 1853 ;; 1854 armeabi) 1855 ac_webrtc_instset=neon 1856 ac_webrtc_cflags="-mthumb -mfloat-abi=softfp -mfpu=neon -march=armv7" 1857 ;; 1858 arm64*) 1859 ac_webrtc_instset=neon 1860 ac_webrtc_cflags="-DWEBRTC_ARCH_ARM64" 1861 ;; 1862 mips64*) 1863 ac_webrtc_instset=generic 1864 ;; 1865 mips*) 1866 ac_webrtc_instset=mips 1867 ;; 1868 *) 1869 ac_webrtc_instset=sse2 1870 ;; 1871 esac 1872 ;; 1873 *mingw* | *cygw* | *win32* | *w32* | *darwin* | *linux*) 1874 ac_webrtc_instset=sse2 1875 ;; 1876 *) 1877 ;; 1878 esac 1879 ]) 1880 1764 1881 1765 1882 dnl ########################################## … … 1832 1949 1833 1950 AC_SUBST(target) 1834 AC_SUBST(ac_linux_poll,select)1835 1951 AC_SUBST(ac_host,unix) 1836 1952 AC_SUBST(ac_main_obj) … … 1846 1962 1847 1963 ac_build_mak_vars=`echo $ac_build_mak_vars | sed 's/\\\\n/\n/g'` 1848 AC_OUTPUT ()1964 AC_OUTPUT 1849 1965 1850 1966
Note: See TracChangeset
for help on using the changeset viewer.