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

📄 configure.in

📁 网络MPEG4IP流媒体开发源代码
💻 IN
字号:
dnl Process this file with autoconf to produce a configure script.AC_INIT()AM_CONFIG_HEADER(config.h)dnl Detect the canonical host and target build environmentAC_CANONICAL_HOSTAC_CANONICAL_TARGETAM_INIT_AUTOMAKE(mpeg4ip, 0.9.8)AC_CONFIG_SUBDIRS(lib/rtp)dnl Checks for programs.AC_CHECK_FILE(lib/SDL/sdl-config,,	      AC_MSG_ERROR([Configure for SDL needs to run first - either run bootstrap or run lib/SDL/configure]))AC_LIBTOOL_DLOPENAM_PROG_LIBTOOLAC_PROG_MAKE_SETAC_PROG_CCOBJC="???"AC_SUBST(OBJC)AC_PROG_CXX(c++)AC_C_INLINEAC_C_CONSTAC_PROG_INSTALLAC_PATH_XTRAAC_C_BIGENDIANAS=gccAC_SUBST(AS)ASFLAGS="$ASFLAGS"AC_SUBST(ASFLAGS)CCAS=gccAC_SUBST(CCAS)CCASFLAGS="$ASFLAGS"AC_SUBST(CCASFLAGS)dnl Checks for libraries.AC_CHECK_LIB(sndfile, sf_open_read)AC_CHECK_LIB(sndfile, sf_open_read,	     [AM_CONDITIONAL(HAVE_LIBSNDFILE, true)],	     [AM_CONDITIONAL(HAVE_LIBSNDFILE, false)])dnl Checks for header files.AC_HEADER_STDCAC_CHECK_HEADERS(fcntl.h unistd.h stdint.h inttypes.h getopt.h byteswap.h)AC_CHECK_HEADERS(linux/cdrom.h sys/dvdio.h)dnl check for Sun, BSD/OS librariesAC_CHECK_LIB(socket, socket)AC_CHECK_LIB(gnugetopt, getopt_long)AC_SEARCH_LIBS(inet_addr, nsl)AC_SEARCH_LIBS(dlopen, dl libc)dnl Checks for typedefs, structures, and compiler characteristics.dnl Checks for library functions.AC_CHECK_FUNCS(strerror strcasestr poll getopt getopt_long getrusage socketpair strsep inet_ntoa)dnl MY_CHECK_TYPEDEF_FROM_INCLUDE(typedef, include files, define)dnl checks if typedef is in include files.  add define in acconfig.hAC_DEFUN(MY_CHECK_TYPEDEF_FROM_INCLUDE,[   AC_MSG_CHECKING([for $1])   AC_TRY_COMPILE([$2],	          [$1;],                  mpeg4ip_ok=yes, mpeg4ip_ok=no)   if test $mpeg4ip_ok = yes; then      AC_DEFINE($3)      AC_MSG_RESULT([yes])   else      AC_MSG_RESULT([no])   fi])MY_CHECK_TYPEDEF_FROM_INCLUDE([in_port_t temp], 	[#include <sys/types.h>	 #include <netinet/in.h>], [HAVE_IN_PORT_T])MY_CHECK_TYPEDEF_FROM_INCLUDE([socklen_t temp], 	[#include <sys/types.h>	 #include <sys/socket.h>], HAVE_SOCKLEN_T)MY_CHECK_TYPEDEF_FROM_INCLUDE([fpos_t foo; foo.__pos = 0;],	[#include <stdio.h>],	[HAVE_FPOS_T_POS])MY_CHECK_TYPEDEF_FROM_INCLUDE([struct addrinfo foo;],	[#include <netdb.h>],	[HAVE_ST_ADDRINFO])dnl borrowed from ac-archive.sourceforge.netdnl @author  Guido Draheim <guidod@gmx.de>dnl heavilly modifiedAC_DEFUN(MY_CHECK_CC_OPT,[   AC_MSG_CHECKING([whether ${CC-cc} accepts $1])   echo 'void f(){}' > conftest.c   if test -z "`${CC-cc} -c $1 conftest.c 2>&1`"; then      $2=yes      AC_MSG_RESULT([yes])   else      $2=no      AC_MSG_RESULT([no])   fi   rm -f conftest*])AC_DEFUN(MY_CHECK_CC_OPT_F_OR_M,[  temp_val=-m$1  MY_CHECK_CC_OPT($temp_val,mpeg4ip_ok)  if test $mpeg4ip_ok = yes; then     AC_SUBST($2, $temp_val)     AM_CONDITIONAL(HAVE_$2, true)  else     temp_val=-f$1     MY_CHECK_CC_OPT($temp_val, mpeg4ip_ok)     if test $mpeg4ip_ok = yes; then        AC_SUBST($2, $temp_val)     AM_CONDITIONAL(HAVE_$2, true)     else        temp_val=        AC_SUBST($2, $temp_val)     AM_CONDITIONAL(HAVE_$2, false)     fi  fi])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)dnl Allow server build to be disabledAC_ARG_ENABLE(server, [  --enable-server        enable server build],[ case "${enableval}" in  yes) server=true ;;  no)  server=false ;;  *)   AC_MSG_ERROR(bad value ${enableval} for --enable-server) ;;esac],[server=true])AM_CONDITIONAL(SERVER, test $server = true)dnl Allow player build to be disabledAC_ARG_ENABLE(player, [  --enable-player        enable player build],[ case "${enableval}" in  yes) player=true ;;  no)  player=false ;;  *)   AC_MSG_ERROR(bad value ${enableval} for --enable-player) ;;esac],[player=true])AM_CONDITIONAL(PLAYER, test $player = true)AC_ARG_ENABLE(mp4live,[  --enable-mp4live       enable mp4live build on Linux [default=yes]],                  , enable_mp4live=yes)    if test x$enable_mp4live = xyes; then		case "$target" in		*-*-linux*)			AM_CONDITIONAL(MP4LIVE, true)			;;		*)			AM_CONDITIONAL(MP4LIVE, false)			;;		esac	else		AM_CONDITIONAL(MP4LIVE, false)    fiAC_ARG_ENABLE(ipv6,[   --enable-ipv6       enable IPv6],              enable_ipv6=yes)    if test x$enable_ipv6 = xyes; then       AC_DEFINE(HAVE_IPv6)    fidnl ### Checking for the existence of filesdnl MY_CHECK_FILE(FILE, [ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND]])AC_DEFUN(MY_CHECK_FILE,[dnl Do the transliteration at runtime so arg 1 can be a shell variable.ac_safe=`echo "$1" | sed 'y%./+-%__p_%'`AC_MSG_CHECKING([for $1])AC_CACHE_VAL(ac_cv_file_$ac_safe,  if test -r $1; then    eval "ac_cv_file_$ac_safe=yes"  else    eval "ac_cv_file_$ac_safe=no"  fi)dnlif eval "test \"`echo '$ac_cv_file_'$ac_safe`\" = yes"; then  AC_MSG_RESULT(yes)  ifelse([$2], , :, [$2])else  AC_MSG_RESULT(no)ifelse([$3], , , [$3])fi])AC_ARG_ENABLE(ppc,              [  --enable-ppc           use PPC assembly on ppc [default=yes]],              , 	      enable_ppc=yes)if test x$enable_ppc = xyes; thencase $target in*powerpc*) 	AC_DEFINE(ARCH_PPC)        AM_CONDITIONAL(USE_PPC, true)	;;*)	AM_CONDITIONAL(USE_PPC, false)	;;esacelse   AM_CONDITIONAL(USE_PPC, false)fidnl read out glib and gtk paths and flags.  Will need to dummy thisdnl out for a glibless systemglib_gtk=noAM_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)      AC_DEFINE(HAVE_GTK)      glib_gtk=yes   else      haveglib20=no   fifiif test x$haveglib20 = xno; then    AM_PATH_GLIB(, [glib_gtk=yes], [glib_gtk=no])   if test x$glib_gtk = xyes; then      AM_PATH_GTK(, [glib_gtk=yes], [glib_gtk=no])      AC_DEFINE(HAVE_GTK)   fifiAM_CONDITIONAL(NO_GLIB_GTK, test x$glib_gtk = xno)dnl If we're going to check for GLIB, we most likely need the real pathdnl we need to save off the CFLAGS and CPPFLAGS for the AC_CHECK_HEADERdnl command save_CFLAG="$CFLAGS"save_CPPFLAG="$CPPFLAGS"CFLAGS="$CFLAGS $GLIB_CFLAGS"CPPFLAGS="$CPPFLAGS $GLIB_CFLAGS"AC_CHECK_HEADER(glib.h)CFLAGS="$save_CFLAG"CPPFLAGS="$save_CPPFLAG"AC_ARG_ENABLE(mmx,              [  --enable-mmx           use MMX assembly on x86 [default=yes]],              , 	      enable_mmx=yes)if 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)        AM_CONDITIONAL(USE_MMX, true)	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)		AM_CONDITIONAL(USE_MMX, true)		arch_x86=:		AC_DEFINE(ARCH_X86)		;;	*)		AM_CONDITIONAL(USE_MMX, false)		;;	esac    else        AM_CONDITIONAL(USE_MMX, false)    fielse    AM_CONDITIONAL(USE_MMX, false)fidnl Get SDL cflags and SDL libraries to includeSDL_LIBS="`lib/SDL/sdl-config --libs | sed 's,-L.* -lSDL,\$(top_builddir)/lib/SDL/src/libSDL.la,'`"AC_SUBST(SDL_LIBS)dnlBILLS_CWARNINGS="-Wall -Werror -Wmissing-prototypes -Wmissing-declarations -Wno-char-subscripts -Wno-unknown-pragmas"BILLS_CPPWARNINGS="-Wall -Werror -Wmissing-prototypes -Wmissing-declarations -Wno-char-subscripts -Woverloaded-virtual -Wno-unknown-pragmas -Wno-deprecated"AC_SUBST(BILLS_CWARNINGS)AC_SUBST(BILLS_CPPWARNINGS)PLAYER_PLUGIN_DIR=$libdir/mp4player_pluginAC_SUBST(PLAYER_PLUGIN_DIR)CFLAGS="$CFLAGS -DMPEG4IP"AC_SUBST(CFLAGS)CXXFLAGS="$CXXFLAGS -DMPEG4IP"AC_SUBST(CXXFLAGS)dnl Now output the Makefile'sAC_OUTPUT( \	Makefile \	common/video/mpeg4/Makefile \	common/video/mpeg4/app/Makefile \	common/video/mpeg4/app/convertpar/Makefile \	common/video/mpeg4/app/decoder/Makefile \	common/video/mpeg4/app/encoder/Makefile \	common/video/mpeg4/sys/Makefile \	common/video/mpeg4/sys/decoder/Makefile \	common/video/mpeg4/sys/encoder/Makefile \	common/video/mpeg4/tools/Makefile \	common/video/mpeg4/tools/entropy/Makefile \	common/video/mpeg4/type/Makefile \	common/video/mpeg4/vtc/Makefile \	common/video/mpeg4/vtc/include/Makefile \	common/video/mpeg4/vtc/main/Makefile \	common/video/mpeg4/vtc/pezw/Makefile \	common/video/mpeg4/vtc/wavelet/Makefile \	common/video/mpeg4/vtc/zte/Makefile \	common/video/mpeg4/vtc/ztq/Makefile \	doc/Makefile \	doc/encoding/Makefile \	doc/ietf/Makefile \	doc/mcast/Makefile \	doc/programs/Makefile \	doc/mp4v2/Makefile \	include/Makefile \	lib/Makefile \	lib/avi/Makefile \	lib/bitstream/Makefile \	lib/config_file/Makefile \	lib/fposrec/Makefile \	lib/gnu/Makefile \	lib/mp4/Makefile \	lib/mp4/doc/Makefile \	lib/mp4v2/Makefile \	lib/mp4v2/test/Makefile \	lib/mp4v2/util/Makefile \	lib/mp4av/Makefile \	lib/mpeg2t/Makefile \	lib/msg_queue/Makefile \	lib/SDL_VisualC/Makefile \	lib/sdp/Makefile \	lib/xvid/Makefile \	lib/xvid/dct/Makefile \	lib/xvid/dct/x86_asm/Makefile \	lib/xvid/bitstream/Makefile \	lib/xvid/bitstream/ppc_asm/Makefile \	lib/xvid/bitstream/x86_asm/Makefile \	lib/xvid/image/Makefile \	lib/xvid/image/x86_asm/Makefile \	lib/xvid/motion/Makefile \	lib/xvid/motion/x86_asm/Makefile \	lib/xvid/prediction/Makefile \	lib/xvid/quant/Makefile \	lib/xvid/quant/x86_asm/Makefile \	lib/xvid/utils/Makefile \	lib/xvid/utils/x86_asm/Makefile \	mpeg4ip.pbproj/Makefile \	common/Makefile \	common/video/Makefile \	common/video/libmpeg32/Makefile \	common/video/libmpeg32/video/Makefile \	server/Makefile \	server/audio/Makefile \	server/audio/faac/Makefile \	server/video/Makefile \	server/video/H26L/Makefile \	server/mp4live/Makefile \	server/mp4live/gui/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 \	server/util/xvidenc/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/mp3/Makefile \	player/lib/audio/mp3util/Makefile \	player/lib/mp4util/Makefile \	player/plugin/Makefile \	player/plugin/audio/Makefile \	player/plugin/audio/celp/Makefile \	player/plugin/audio/raw/Makefile \	player/plugin/rtp/Makefile \	player/plugin/rtp/h261/Makefile \	player/plugin/rtp/isma_audio/Makefile \	player/plugin/video/Makefile \	player/plugin/video/h261/Makefile \	player/plugin/video/mpeg3/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/osx/Makefile \	player/src/osx/English.lproj/Makefile \	player/src/osx/SDLMain.nib/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/iptv/Makefile \	util/yuv/Makefile \)

⌨️ 快捷键说明

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