⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 configure.in

📁 完整的RTP RTSP代码库
💻 IN
📖 第 1 页 / 共 2 页
字号:
     if test x$have_avutil = xtrue; then        LIBS="$LIBS -lavutil"	ffmpeg_add_libs="-lavutil"     else        ffmpeg_add_libs=     fi     AC_CHECK_LIB(avcodec, avcodec_init, 	          [have_ffmpeg=true], [have_ffmpeg=false])     LIBS=$saved_LIBS     if test x$have_ffmpeg = xtrue; then        AC_DEFINE(HAVE_FFMPEG_INSTALLED, 1, [defined if ffmpeg is installed])        FFMPEG_INC=        FFMPEG_LIB="-lavcodec -lz $ffmpeg_add_libs"        AC_CHECK_TYPES([AVRational], , , [#include <ffmpeg/avcodec.h>])	AC_CHECK_MEMBERS(AVCodecContext.time_base, , , [#include <ffmpeg/avcodec.h>])	AC_CHECK_DECLS([avcodec_decode_audio2], , ,[#include <ffmpeg/avcodec.h>])        AC_DEFINE(HAVE_FFMPEG, 1, [enable ffmpeg for mp4live])	AC_CHECK_LIB(amrnb, VADxEncoder_Interface_init, 		     [have_amr_nb=true], [have_amr_nb=false])	AC_CHECK_LIB(amrwb, E_IF_init, 		     [have_amr_wb=true], [have_amr_wb=false])        if test x$have_amr_nb = xtrue; then           FFMPEG_LIB="$FFMPEG_LIB -lamrnb"        fi        if test x$have_amr_wb = xtrue; then           FFMPEG_LIB="$FFMPEG_LIB -lamrwb"        fi     fi  fielse  AC_MSG_NOTICE([disabling ffmpeg library])fiAC_SUBST(FFMPEG_INC)AC_SUBST(FFMPEG_LIB)AM_CONDITIONAL(HAVE_FFMPEG, [test x$have_ffmpeg = xtrue])LAME_LIB=FAAC_LIB=X264_LIB=TWOLAME_LIB=if test x$have_mp4live = xtrue; thendnl mp4live testAC_ARG_ENABLE(mp3lame,[AC_HELP_STRING([--disable-mp3lame],[disable use of installed lame library])],[ case "${enableval}" in  no)  disable_it=yes ;;  yes) disable_it=no ;;  *) AC_MSG_ERROR([bad valud ${enableval} for --disable-mp3lame]) ;;esac],  [disable_it=no])if test x$disable_it = xyes; then  have_lame=false  AC_MSG_NOTICE([disabling lame library])else  saved_LIBS="$LIBS"  LIBS="$LIBS -lm -lz"  AC_CHECK_LIB(mp3lame, lame_init, [have_lame=true], [have_lame=false])  LIBS=$saved_LIBSfiif test x$have_lame = xtrue; then   AC_DEFINE(HAVE_LAME, 1, [enable lame for mp4live])   LAME_LIB=-lmp3lameelse   LAME_LIB=fiAC_ARG_ENABLE(twolame,[AC_HELP_STRING([--disable-twolame],[disable use of installed twolame library])],[ case "${enableval}" in  no)  disable_it=yes ;;  yes) disable_it=no ;;  *) AC_MSG_ERROR([bad valud ${enableval} for --disable-twolame]) ;;esac],  [disable_it=no])if test x$disable_it = xyes; then  have_twolame=false  AC_MSG_NOTICE([disabling twolame library])else  saved_LIBS="$LIBS"  LIBS="$LIBS -lm -lz"  AC_CHECK_LIB(twolame, twolame_init, [have_twolame=true], [have_twolame=false])  LIBS=$saved_LIBSfiif test x$have_twolame = xtrue; then   AC_DEFINE(HAVE_TWOLAME, 1, [enable twolame for mp4live])   TWOLAME_LIB=-ltwolameelse   TWOLAME_LIB=fiAC_ARG_ENABLE(faac,[AC_HELP_STRING([--disable-faac],[disable use of installed faac library])],[ case "${enableval}" in  no)  disable_it=yes ;;  yes) disable_it=no ;;  *) AC_MSG_ERROR([bad valud ${enableval} for --disable-faac]) ;;esac],  [disable_it=no])if test x$disable_it = xyes; then  have_faac=false  AC_MSG_NOTICE([disabling faac library])else  saved_LIBS="$LIBS"  LIBS="$LIBS -lm -lz"  AC_CHECK_LIB(faac, faacEncOpen, [have_faac=true], [have_faac=false])  LIBS=$saved_LIBSfiif test x$have_faac = xtrue; then   AC_DEFINE(HAVE_FAAC, 1, [enable faac for mp4live])   FAAC_LIB=-lfaacelse   FAAC_LIB=fiAC_ARG_ENABLE(x264,[AC_HELP_STRING([--disable-x264],[disable use of installed x264 library])],[ case "${enableval}" in  no)  disable_it=yes ;;  yes) disable_it=no ;;  *) AC_MSG_ERROR([bad valud ${enableval} for --disable-x264]) ;;esac],  [disable_it=no])if test x$disable_it = xyes; then  have_x264=false  AC_MSG_NOTICE([disabling x264 library])else  saved_LIBS="$LIBS"  LIBS="$LIBS -lm -lz -lpthread"  AC_CHECK_LIB(x264, x264_encoder_open, [have_x264=true], [have_x264=false])  LIBS=$saved_LIBSfiif test x$have_x264 = xtrue; then   AC_DEFINE(HAVE_X264, 1, [enable x264 for mp4live])   AC_CHECK_MEMBERS([x264_param_t.rc.i_rc_method], , , [#include <stdint.h>#include <x264.h>])   X264_LIB=-lx264else   X264_LIB=fidnl - end of mp4live testfiAC_SUBST(LAME_LIB)AC_SUBST(FAAC_LIB)AC_SUBST(X264_LIB)AC_SUBST(TWOLAME_LIB)AM_CONDITIONAL(HAVE_X264, [test x$have_x264 = xtrue])	   AC_ARG_ENABLE(ipv6,[AC_HELP_STRING([--enable-ipv6],[enable IPv6])])if test x$enable_ipv6 = xyes; then   AC_DEFINE(HAVE_IPv6, 1, [enable IPv6 architecture])   AC_MSG_NOTICE([ipv6 enabled $enable_ipv6])      AC_CACHE_CHECK(for getipnodebyname in <netdb.h>, ucl_cv_getipnodebyname_in_netdb_h,	[AC_EGREP_HEADER(getipnodebyname,		netdb.h,		ucl_cv_getipnodebyname_in_netdb_h=yes,			ucl_cv_getipnodebyname_in_netdb_h=no)])   if test $ucl_cv_getipnodebyname_in_netdb_h   then	AC_DEFINE([HAVE_GETIPNODEBYNAME], [1], [have getipnodebyname])     fi   AC_CHECK_HEADERS(netinet6/in6.h)   AC_CHECK_HEADERS(netinet/ip6.h)   AC_CHECK_TYPES([addrinfo], , , 		  [#include <netdb.h>])   AC_CACHE_CHECK(for sin6_len in struct sockaddr_in6, ucl_cv_sin6_len,	[AC_TRY_COMPILE([		#ifdef HAVE_NETINET6_IN6_H		#include <netinet6/in6.h>		#else		#ifdef HAVE_NETINET_IP6_H		#include <netinet/ip6.h>		#else		#include <netinet/in.h>		#endif		#endif /* HAVE_NETINET_IN6_H */	],[		struct sockaddr_in6	s_in;		s_in.sin6_len = 0;	],		ucl_cv_sin6_len=yes,			ucl_cv_sin6_len=no	)])   if test $ucl_cv_sin6_len = yes   then	AC_DEFINE([HAVE_SIN6_LEN], [1], [have sin6_len])    fielse   AC_MSG_NOTICE([ipv6 not enabled $enable_ipv6])fiAC_ARG_ENABLE(ppc,              [AC_HELP_STRING([--enable-ppc],	                      [use PPC assembly on ppc [default=yes]])],              , 	      enable_ppc=yes)dnl read out glib and gtk paths and flags.  Will need to dummy thisdnl out for a glibless systemAC_ARG_ENABLE(gtk-glib,[AC_HELP_STRING([--disable-gtk-glib],[disable gtk check])],[ case "${enableval}" in  no) disable_gtk_glib=yes ;;  yes)  disable_gtk_glib=no ;;  *) AC_MSG_ERROR([bad valud ${enableval} for --disable-gtk-glib]) ;;esac],  [disable_gtk_glib=no])glib_gtk=noif test x$disable_gtk_glib = xno; then  AM_PATH_GLIB_2_0(, [haveglib20=yes], [haveglib20=no])  if test x$haveglib20 = xyes; then    AM_PATH_GTK_2_0(, [havegtk20=yes], [havegtk20=no])   if test x$havegtk20 = xyes; then       AC_DEFINE(HAVE_GTK_2_0, 1, [Have GTK 2.0 on system])      AC_DEFINE(HAVE_GTK, 1, [Have GTK on system])      glib_gtk=yes   fi  fi  dnl If we're going to check for GLIB, we most likely need the real path  dnl we need to save off the CFLAGS and CPPFLAGS for the AC_CHECK_HEADER  dnl command   save_CFLAG="$CFLAGS"  save_CPPFLAG="$CPPFLAGS"  CFLAGS="$CFLAGS $GLIB_CFLAGS"  CPPFLAGS="$CPPFLAGS $GLIB_CFLAGS"  AC_CHECK_HEADERS(glib.h)  CFLAGS="$save_CFLAG"  CPPFLAGS="$save_CPPFLAG"fiif test x$glib_gtk = xno; then  GLIB_CFLAGS=""  GLIB_LIBS=""  AC_SUBST(GLIB_CFLAGS)  AC_SUBST(GLIB_LIBS)      GTK_CFLAGS=""      GTK_LIBS=""      AC_SUBST(GTK_CFLAGS)      AC_SUBST(GTK_LIBS)fiAM_CONDITIONAL(NO_GLIB_GTK, test x$glib_gtk = xno)AC_ARG_ENABLE(mmx,              [AC_HELP_STRING([--enable-mmx],[use MMX assembly on x86 [default=yes]])],              , 	      enable_mmx=yes)test_use_mmx=falseif test x$enable_mmx = xyes; then   AC_CHECK_PROG(USENASM, nasm, true, false)   if test x$USENASM = xtrue; then	AC_MSG_CHECKING(nasm version...)	BILLSNASM_arg=`nasm -r | tr '.' ' '`        BILLSNASM_ret=`util/testnasm.sh $BILLSNASM_arg`	if test x$BILLSNASM_ret = x"yes"; then	   USENASM=true	   AC_MSG_RESULT(valid)        else           USENASM=false           AC_MSG_RESULT(invalid)	   AC_MSG_WARN(Installed version of NASM is incorrect; please update to 0.98.19 or greater)        fi   fi   if test x$USENASM = xtrue; then        AC_PATH_PROG(NASM, nasm)	case $target in	i?86*)		CFLAGS="$CFLAGS -DUSE_MMX"		CXXFLAGS="$CXXFLAGS -DUSE_MMX"		case $ARCH in		win32)		  NASMFLAGS="-f win32"		  ;;		*)		  NASMFLAGS="-f elf"		  ;;		esac		AC_SUBST(NASMFLAGS)		test_use_mmx=true		;;	esac    fifiAC_PATH_XAC_PATH_XTRAextra=if test x$have_x = xyes; then    extra="$X_LIBS -lX11 -lXext"fidnl Get SDL cflags and SDL libraries to includeSDL_LIBS="`sdl-config --libs` $extra"AC_SUBST(SDL_LIBS)SDL_LIB_LIBS="`sdl-config --libs | sed /-lSDLmain/s///`"AC_SUBST(SDL_LIB_LIBS)AC_SUBST(SUN_LIBS)dnlBASE_ERR="-Wall"AC_ARG_ENABLE(warns-as-err,[AC_HELP_STRING([--enable-warns-as-err],[enable warnings as errors])],	[if test x$enableval = xno; then	   AC_MSG_NOTICE([compiler warnings will not be errors])         else            BASE_ERR="$BASE_ERR -Werror"	   AC_MSG_NOTICE([enabling compiler warnings as errors])         fi	 ],	 [AC_MSG_NOTICE([compiler warnings will not be errs])]) BILLS_CWARNINGS="$BASE_ERR"AM_CONDITIONAL(HAVE_ALIGN_LOOPS, false)MY_CHECK_CC_OPT_F_OR_M(align-loops, ALIGN_LOOPS)AM_CONDITIONAL(HAVE_ALIGN_FUNCS, false)MY_CHECK_CC_OPT_F_OR_M(align-functions, ALIGN_FUNCS)AM_CONDITIONAL(HAVE_ALIGN_JUMPS, false)MY_CHECK_CC_OPT_F_OR_M(align-jumps, ALIGN_JUMPS)MY_CHECK_CC_OPT_SET([-Wmissing-prototypes], BILLS_CWARNINGS, [c compiler])MY_CHECK_CC_OPT_SET([-Wstrict-prototypes], BILLS_CWARNINGS, [c compiler])MY_CHECK_CC_OPT_SET([-Wmissing-declarations], BILLS_CWARNINGS, [c compiler])MY_CHECK_CC_OPT_SET([-Wmissing-field-initializers], BILLS_CWARNINGS, [c compiler])MY_CHECK_CC_OPT_SET([-Wno-char-subscripts], BILLS_CWARNINGS, [c compiler])MY_CHECK_CC_OPT_SET([-Wno-unknown-pragmas],BILLS_CWARNINGS, [c compiler])MY_CHECK_CC_OPT_SET([-Wformat=2],BILLS_CWARNINGS, [c compiler])MY_CHECK_CC_OPT_SET([-Wdeclaration-after-statement], BILLS_CWARNINGS, [c compiler])MY_CHECK_CC_OPT_SET([-Wpointer-arith], BILLS_CWARNINGS, [c compiler])MY_CHECK_CC_OPT_SET([-Wsign-compare], BILLS_CWARNINGS, [c compiler])MY_CHECK_CC_OPT_SET([-Wswitch-enum], BILLS_CWARNINGS, [c compiler])MY_CHECK_CC_OPT_SET([-Wtraditional], BILLS_CWARNINGS, [c compiler])MY_CHECK_CC_OPT_SET([-Wnested-externs], BILLS_CWARNINGS, [c compiler])BILLS_CPPWARNINGS="$BASE_ERR"AC_LANG_PUSH(C++)MY_CHECK_CC_OPT_SET([-Wmissing-prototypes], BILLS_CPPWARNINGS,[c++ compiler])MY_CHECK_CC_OPT_SET([-Wmissing-field-initializers], BILLS_CWARNINGS, [c++ compiler])MY_CHECK_CC_OPT_SET([-Wno-char-subscripts], BILLS_CPPWARNINGS,[c++ compiler])MY_CHECK_CC_OPT_SET([-Woverloaded-virtual], BILLS_CPPWARNINGS,[c++ compiler])MY_CHECK_CC_OPT_SET([-Wno-unknown-pragmas], BILLS_CPPWARNINGS,[c++ compiler])MY_CHECK_CC_OPT_SET([-Wno-deprecated], BILLS_CPPWARNINGS,[c++ compiler])MY_CHECK_CC_OPT_SET([-Wformat=2], BILLS_CPPWARNINGS,[c++ compiler])MY_CHECK_CC_OPT_SET([-Wpointer-arith], BILLS_CPPWARNINGS, [c++ compiler])MY_CHECK_CC_OPT_SET([-Wsign-compare], BILLS_CPPWARNINGS, [c++ compiler])MY_CHECK_CC_OPT_SET([-fno-strict-aliasing], BILLS_CPPWARNINGS, [c++ compiler])AC_LANG_POP(C++)AC_SUBST(BILLS_CWARNINGS)AC_SUBST(BILLS_CPPWARNINGS)PLAYER_PLUGIN_DIR=$libdir/mp4player_pluginAC_SUBST(PLAYER_PLUGIN_DIR)SDL_CFLAGS=`sdl-config --cflags`case "$target" in   *-apple-darwin*)	have_ubb=false	AC_ARG_ENABLE(universal-binary, 	              [AC_HELP_STRING([--universal-binary],[enable universal binary build on Mac])],		      [ case "${enableval}" in		        yes) have_ubb=true ;;			no)  have_ubb=false ;;			*)   AC_MSG_ERROR(bad value ${enableval} for --enable-universal-binary) ;;			esac],		      [have_ubb=false])         if test $have_ubb = true; then	    CFLAGS="$CFLAGS -arch i386 -arch ppc"  	    CXXFLAGS="$CXXFLAGS -arch i386 -arch ppc"  	    LDFLAGS="$LDFLAGS -arch i386 -arch ppc"  	    AC_MSG_NOTICE([Mac universal build is enabled])	 fi	 ;;esacCFLAGS="$CFLAGS -DMPEG4IP $SDL_CFLAGS"AC_SUBST(CFLAGS)CXXFLAGS="$CXXFLAGS -DMPEG4IP $SDL_CFLAGS"AC_SUBST(CXXFLAGS)AC_SUBST(LDFLAGS)dnl Now output the Makefile'sAC_OUTPUT( \	Makefile \	common/Makefile \	common/video/Makefile \	doc/Makefile \	doc/ietf/Makefile \	doc/mcast/Makefile \	doc/programs/Makefile \	doc/mp4v2/Makefile \	include/Makefile \	lib/Makefile \	lib/audio/Makefile \	lib/avi/Makefile \	lib/fposrec/Makefile \	lib/ffmpeg/Makefile \	lib/gnu/Makefile \	lib/mp4/Makefile \        lib/ismacryp/Makefile \	lib/srtp/Makefile \	lib/mp4/doc/Makefile \	lib/mp4v2/Makefile \	lib/mp4v2/test/Makefile \	lib/mp4v2/util/Makefile \	lib/mp4av/Makefile \	lib/mpeg2ps/Makefile \	lib/mpeg2t/Makefile \	lib/msg_queue/Makefile \	lib/rtp/Makefile \	lib/sdp/Makefile \	lib/utils/Makefile \	server/Makefile \	server/mp4live/Makefile \	server/mp4live/gui/Makefile \	server/mp4live/h261/Makefile \	server/mp4creator/Makefile \	server/util/Makefile \	server/util/mp4encode/Makefile \	server/util/avi2raw/Makefile \	server/util/avidump/Makefile \	server/util/rgb2yuv/Makefile \	server/util/lboxcrop/Makefile \	player/Makefile \	player/lib/Makefile \	player/lib/libhttp/Makefile \	player/lib/rtsp/Makefile \	player/lib/audio/Makefile \	player/lib/audio/celp/Makefile \	player/lib/audio/celp/BS/Makefile \	player/lib/audio/celp/dec/Makefile \	player/lib/audio/celp/include/Makefile \	player/lib/audio/faad/Makefile \	player/lib/audio/mp3util/Makefile \	player/lib/audio/portaudio/Makefile \	player/lib/mp4util/Makefile \	player/plugin/Makefile \	player/plugin/audio/Makefile \	player/plugin/audio/a52dec/Makefile \	player/plugin/audio/celp/Makefile \	player/plugin/audio/ffmpeg/Makefile \	player/plugin/audio/g711/Makefile \	player/plugin/audio/raw/Makefile \	player/plugin/rtp/Makefile \	player/plugin/rtp/h261/Makefile \	player/plugin/rtp/h264/Makefile \	player/plugin/rtp/isma_audio/Makefile \	player/plugin/rtp/isma_href/Makefile \        player/plugin/rtp/isma_video/Makefile \        player/plugin/rtp/rfc2429/Makefile \	player/plugin/rtp/rfc3016/Makefile \	player/plugin/rtp/rfc3267/Makefile \	player/plugin/text/Makefile \	player/plugin/text/href/Makefile \	player/plugin/text/plain/Makefile \	player/plugin/video/Makefile \	player/plugin/video/ffmpeg/Makefile \	player/plugin/video/h261/Makefile \	player/plugin/video/mpeg2dec/Makefile \	player/plugin/video/raw/Makefile \	player/plugin/video/xvid/Makefile \	player/src/Makefile \	player/src/codec/Makefile \	player/src/codec/aa/Makefile \	player/src/codec/mp3/Makefile \	player/src/codec/mpeg4/Makefile \	player/src/codec/wav/Makefile \	player/src/win_client/Makefile \	player/src/win_common/Makefile \	player/src/win_gui/Makefile \	player/src/win_gui/hlp/Makefile \	player/src/win_gui/res/Makefile \	util/Makefile \	util/h264/Makefile \	util/iptv/Makefile \	util/mpeg2/Makefile \	util/mpeg4vol/Makefile \	util/yuv/Makefile \	mpeg4ip-config)

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -