Changeset 3664 for pjproject/trunk/aconfigure.ac
- Timestamp:
- Jul 19, 2011 3:42:28 AM (13 years ago)
- Location:
- pjproject/trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk
- Property svn:mergeinfo changed
-
pjproject/trunk/aconfigure.ac
r3464 r3664 409 409 ac_os_objs="$ac_os_objs file_access_win32.o file_io_win32.o os_core_win32.o os_error_win32.o os_time_win32.o os_timestamp_win32.o guid_win32.o" 410 410 ;; 411 *darwin*) 412 ac_os_objs="$ac_os_objs os_core_darwin.o" 413 ;; 411 414 *) 412 415 ac_os_objs="$ac_os_objs file_access_unistd.o file_io_ansi.o os_core_unix.o os_error_unix.o os_time_unix.o os_timestamp_posix.o" … … 578 581 AC_ARG_ENABLE(oss, 579 582 AC_HELP_STRING([--disable-oss], 580 [Disable OSS audio (default: not disabled)]) 581 , 583 [Disable OSS audio (default: not disabled)]), 582 584 [ 583 585 if test "$enable_oss" = "no"; then … … 586 588 fi 587 589 ]) 590 ;; 591 esac 592 fi 593 594 AC_SUBST(ac_pjmedia_video) 595 if test "$enable_video" = "no"; then 596 true; 597 else 598 case $target in 599 arm-apple-darwin*) 600 ac_pjmedia_video=iphone_os 601 AC_SUBST(ac_ios_cflags) 602 ac_ios_cflags="-DPJMEDIA_VIDEO_DEV_HAS_IOS=1" 603 LIBS="$LIBS -framework AVFoundation -framework UIKit -framework CoreGraphics -framework QuartzCore -framework CoreVideo -framework CoreMedia" 604 AC_MSG_RESULT([Checking video device backend... AVFoundation]) 605 ;; 606 *darwin*) 607 ac_pjmedia_video=mac_os 608 AC_SUBST(ac_pjmedia_video_has_qt) 609 AC_SUBST(ac_qt_cflags) 610 SAVED_LIBS="$LIBS" 611 LIBS="-framework QTKit" 612 AC_LINK_IFELSE([AC_LANG_PROGRAM([[]], [])],[ac_pjmedia_video_has_qt=yes],[ac_pjmedia_video_has_qt=no]) 613 LIBS="$SAVED_LIBS" 614 if test "$ac_pjmedia_video_has_qt" = "yes"; then 615 ac_qt_cflags="-DPJMEDIA_VIDEO_DEV_HAS_QT=1" 616 LIBS="$LIBS -framework QTKit -framework Foundation -framework AppKit -framework QuartzCore -framework OpenGL" 617 AC_MSG_RESULT([Checking if QTKit framework is available... yes]) 618 else 619 AC_MSG_RESULT([Checking if QTKit framework is available... no]) 620 fi 588 621 ;; 589 622 esac … … 726 759 ) 727 760 761 dnl # SDL 762 AC_ARG_ENABLE(sdl, 763 AC_HELP_STRING([--disable-sdl], 764 [Disable SDL (default: not disabled)]), 765 [ 766 if test "$enable_sdl" = "no"; then 767 AC_MSG_RESULT([Checking if SDL is disabled... yes]) 768 fi 769 ], 770 [ 771 AC_MSG_CHECKING([SDL availability..]) 772 if sdl-config --version; then 773 AC_SUBST(ac_sdl_cflags) 774 AC_SUBST(ac_sdl_ldflags) 775 ac_sdl_cflags=`sdl-config --cflags` 776 ac_sdl_cflags="-DPJMEDIA_VIDEO_DEV_HAS_SDL=1 $ac_sdl_cflags" 777 ac_sdl_ldflags=`sdl-config --libs` 778 LIBS="$LIBS $ac_sdl_ldflags" 779 fi 780 ]) 781 782 783 dnl # FFMPEG stuffs 784 AC_ARG_ENABLE(ffmpeg, 785 AC_HELP_STRING([--disable-ffmpeg], 786 [Disable ffmpeg (default: not disabled)]), 787 [ 788 AC_SUBST(ac_has_ffmpeg,0) 789 if test "$enable_ffmpeg" = "no"; then 790 AC_MSG_RESULT([Checking if ffmpeg is disabled... yes]) 791 fi 792 ], 793 [ 794 AC_SUBST(ac_ffmpeg_cflags) 795 AC_SUBST(ac_ffmpeg_ldflags) 796 797 FFMPEG_PREFIX="" 798 if test "x$with_ffmpeg" != "xno" -a "x$with_ffmpeg" != "x"; then 799 FFMPEG_PREFIX=$with_ffmpeg 800 AC_MSG_RESULT([Using ffmpeg prefix... $FFMPEG_PREFIX]) 801 LIBS="-L$FFMPEG_PREFIX/lib $LIBS" 802 LDFLAGS="-L$FFMPEG_PREFIX/lib $LDFLAGS" 803 CFLAGS="-I$FFMPEG_PREFIX/include $CFLAGS" 804 fi 805 806 AC_CHECK_LIB(avdevice, 807 avdevice_version, 808 [ac_ffmpeg_cflags="$ac_ffmpeg_cflags -DPJMEDIA_HAS_LIBAVDEVICE=1" 809 ac_ffmpeg_ldflags="$ac_ffmpeg_ldflags -lavdevice" 810 ] 811 ) 812 AC_CHECK_LIB(avformat, 813 av_register_all, 814 [ac_ffmpeg_cflags="$ac_ffmpeg_cflags -DPJMEDIA_HAS_LIBAVFORMAT=1" 815 ac_ffmpeg_ldflags="$ac_ffmpeg_ldflags -lavformat" 816 ] 817 ) 818 AC_CHECK_LIB(avcodec, 819 avcodec_init, 820 [ac_ffmpeg_cflags="$ac_ffmpeg_cflags -DPJMEDIA_HAS_LIBAVCODEC=1" 821 ac_ffmpeg_ldflags="$ac_ffmpeg_ldflags -lavcodec" 822 ] 823 ) 824 AC_CHECK_LIB(swscale, 825 sws_scale, 826 [ac_ffmpeg_cflags="$ac_ffmpeg_cflags -DPJMEDIA_HAS_LIBSWSCALE=1" 827 ac_ffmpeg_ldflags="$ac_ffmpeg_ldflags -lswscale" 828 ] 829 ) 830 AC_CHECK_LIB(avutil, 831 av_malloc, 832 [ac_ffmpeg_cflags="$ac_ffmpeg_cflags -DPJMEDIA_HAS_LIBAVUTIL=1" 833 ac_ffmpeg_ldflags="$ac_ffmpeg_ldflags -lavutil" 834 ] 835 ) 836 AC_CHECK_LIB(avcore, 837 avcore_version, 838 [ac_ffmpeg_cflags="$ac_ffmpeg_cflags -DPJMEDIA_HAS_LIBAVCORE=1" 839 ac_ffmpeg_ldflags="$ac_ffmpeg_ldflags -lavcore" 840 ] 841 ) 842 LIBS="$LIBS $ac_ffmpeg_ldflags" 843 ] 844 ) 845 846 AC_ARG_WITH(ffmpeg, 847 AC_HELP_STRING([--with-ffmpeg=DIR], 848 [Specify alternate FFMPEG prefix]), 849 [], 850 [with_ffmpeg=no] 851 ) 852 853 854 dnl # Video for Linux 2 855 AC_ARG_ENABLE(v4l2, 856 AC_HELP_STRING([--disable-v4l2], 857 [Disable Video4Linux2 (default: not disabled)]), 858 [ 859 if test "$enable_v4l2" = "no"; then 860 AC_MSG_RESULT([Checking if V4L2 is disabled... yes]) 861 fi 862 ], 863 [ 864 AC_SUBST(ac_v4l2_cflags) 865 AC_SUBST(ac_v4l2_ldflags) 866 AC_CHECK_LIB(v4l2, 867 v4l2_open, 868 [ac_v4l2_cflags="-DPJMEDIA_VIDEO_DEV_HAS_V4L2=1" 869 ac_v4l2_ldflags="-lv4l2" 870 LIBS="$LIBS -lv4l2" 871 ] 872 ) 873 ]) 728 874 729 875 dnl ########################################################
Note: See TracChangeset
for help on using the changeset viewer.