Changeset 4131 for pjproject/trunk/aconfigure.ac
- Timestamp:
- May 17, 2012 11:23:41 AM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/aconfigure.ac
r4108 r4131 613 613 614 614 AC_SUBST(ac_pjmedia_video) 615 616 dnl # --disable-video option 617 AC_ARG_ENABLE(video, 618 AC_HELP_STRING([--disable-video], 619 [Disable video feature]), 620 [if test "$enable_video" = "no"; then 621 #AC_DEFINE(PJMEDIA_HAS_VIDEO,0) 622 AC_MSG_RESULT([Video is disabled]) 623 enable_sdl="no" 624 enable_ffmpeg="no" 625 enable_v4l2="no" 626 fi], 627 []) 628 629 case $target in 630 arm-apple-darwin*) 631 LIBS="$LIBS -framework UIKit" 632 ;; 633 *darwin*) 634 LIBS="$LIBS -framework Foundation -framework AppKit" 635 ;; 636 esac 637 615 638 if test "$enable_video" = "no"; then 616 639 true; … … 622 645 AC_SUBST(ac_ios_cflags) 623 646 SAVED_LIBS="$LIBS" 624 LIBS="-framework AVFoundation -framework UIKit -frameworkCoreGraphics -framework QuartzCore -framework CoreVideo -framework CoreMedia"647 LIBS="-framework AVFoundation -framework CoreGraphics -framework QuartzCore -framework CoreVideo -framework CoreMedia" 625 648 AC_LINK_IFELSE([AC_LANG_PROGRAM([[]], [])],[ac_pjmedia_video_has_ios=yes],[ac_pjmedia_video_has_ios=no]) 626 649 LIBS="$SAVED_LIBS" 627 650 if test "$ac_pjmedia_video_has_ios" = "yes"; then 628 651 ac_ios_cflags="-DPJMEDIA_VIDEO_DEV_HAS_IOS=1" 629 LIBS="$LIBS -framework AVFoundation -framework UIKit -frameworkCoreGraphics -framework QuartzCore -framework CoreVideo -framework CoreMedia"652 LIBS="$LIBS -framework AVFoundation -framework CoreGraphics -framework QuartzCore -framework CoreVideo -framework CoreMedia" 630 653 AC_MSG_RESULT([Checking if AVFoundation framework is available... yes]) 631 654 else … … 643 666 if test "$ac_pjmedia_video_has_qt" = "yes"; then 644 667 ac_qt_cflags="-DPJMEDIA_VIDEO_DEV_HAS_QT=1" 645 LIBS="$LIBS -framework QTKit -framework Foundation -framework AppKit -frameworkQuartzCore -framework OpenGL"668 LIBS="$LIBS -framework QTKit -framework QuartzCore -framework OpenGL" 646 669 AC_MSG_RESULT([Checking if QTKit framework is available... yes]) 647 670 else … … 858 881 FFMPEG_PREFIX=$with_ffmpeg 859 882 AC_MSG_RESULT([Using ffmpeg prefix... $FFMPEG_PREFIX]) 860 PKG_CONFIG_PATH=$FFMPEG_PREFIX/lib/pkgconfig883 export PKG_CONFIG_PATH=$FFMPEG_PREFIX/lib/pkgconfig 861 884 fi 862 885 … … 957 980 958 981 LIBS="$LIBS $ac_ffmpeg_ldflags" 959 PKG_CONFIG_PATH=$SAVED_PKG_CONFIG_PATH982 export PKG_CONFIG_PATH=$SAVED_PKG_CONFIG_PATH 960 983 ] 961 984 )
Note: See TracChangeset
for help on using the changeset viewer.