📄 configure
字号:
if test "$sdl" = "no" ; then ffplay=nofiif test "$debug" = "yes"; then CFLAGS="-g $CFLAGS"fiif test "$optimize" = "small"; then# CFLAGS=${CFLAGS//-O3/-Os} CFLAGS="$CFLAGS -Os"fiif test "$optimize" = "yes"; then if test -n "`$cc -v 2>&1 | grep xlc`"; then CFLAGS="$CFLAGS -O5" LDFLAGS="$LDFLAGS -O5" else CFLAGS="-O3 $CFLAGS" fifiif test x"$bindir" = x""; thenbindir="${prefix}/bin"fiif test x"$mandir" = x""; thenmandir="${prefix}/man"fiecho "Install prefix $prefix"echo "Source path $source_path"echo "C compiler $cc"echo "make $make"echo "CPU $cpu ($tune)"echo "Big Endian $bigendian"echo "inttypes.h $inttypes"echo "broken inttypes.h $emu_fast_int"if test $cpu = "x86"; thenecho "MMX enabled $mmx"echo "Vector Builtins $builtin_vector"fiif test $cpu = "mips"; thenecho "MMI enabled $mmi"fiif test $cpu = "powerpc"; thenecho "AltiVec enabled $altivec"fiecho "gprof enabled $gprof"echo "zlib enabled $zlib"echo "mp3lame enabled $mp3lame"echo "vorbis enabled $vorbis"echo "faad enabled $faad"echo "faadbin enabled $faadbin"echo "faac enabled $faac"echo "a52 support $a52"echo "a52 dlopened $a52bin"echo "pp support $pp"echo "debug symbols $debug"echo "optimize $optimize"echo "shared pp $shared_pp"echo "Video hooking $vhook"echo "SDL support $sdl"if test $sdl_too_old = "yes"; thenecho "-> Your SDL version is too old - please upgrade to have FFplay/SDL support"fiecho "risky / patent encumbered codecs $risky"if test "$vhook" = "yes" ; thenecho "Imlib2 support $imlib2"echo "freetype support $freetype2"fiecho "Sun medialib support" $sunmlibecho "pthreads support" $pthreadsecho "AMR-NB float support" $amr_nbecho "AMR-NB fixed support" $amr_nb_fixedecho "AMR-WB float support" $amr_wbif test "$gpl" = "no" ; thenecho "License: LGPL"elseecho "License: GPL"fiecho "Creating config.mak and config.h"echo "# Automatically generated by configure - do not modify" > config.makecho "/* Automatically generated by configure - do not modify */" > $TMPHecho "prefix=$prefix" >> config.makecho "bindir=$bindir" >> config.makecho "mandir=$mandir" >> config.makecho "MAKE=$make" >> config.makecho "CC=$cc" >> config.makecho "AR=$ar" >> config.makecho "RANLIB=$ranlib" >> config.makecho "STRIP=$strip" >> config.mak# SHCFLAGS is a copy of CFLAGS without -mdynamic-no-pic. Used when building # shared modules on OS/X (vhook/Makefile).SHCFLAGS=$CFLAGSif test "$needmdynamicnopic" = yes; then CFLAGS="$CFLAGS -mdynamic-no-pic"fiecho "OPTFLAGS=$CFLAGS" >> config.makecho "SHCFLAGS=$SHCFLAGS">>config.makecho "LDFLAGS=$LDFLAGS" >> config.makecho "FFSLDFLAGS=$FFSLDFLAGS" >> config.makecho "SHFLAGS=$SHFLAGS" >> config.makecho "LIBPREF=$LIBPREF" >> config.makecho "LIBSUF=$LIBSUF" >> config.makecho "SLIBPREF=$SLIBPREF" >> config.makecho "SLIBSUF=$SLIBSUF" >> config.makecho "EXESUF=$EXESUF" >> config.makecho "TARGET_OS=$TARGET_OS" >> config.makif test "$cpu" = "x86" ; then echo "TARGET_ARCH_X86=yes" >> config.mak echo "#define ARCH_X86 1" >> $TMPHelif test "$cpu" = "armv4l" ; then echo "TARGET_ARCH_ARMV4L=yes" >> config.mak echo "#define ARCH_ARMV4L 1" >> $TMPHelif test "$cpu" = "alpha" ; then echo "TARGET_ARCH_ALPHA=yes" >> config.mak echo "#define ARCH_ALPHA 1" >> $TMPHelif test "$cpu" = "sparc64" ; then echo "TARGET_ARCH_SPARC64=yes" >> config.mak echo "#define ARCH_SPARC64 1" >> $TMPHelif test "$cpu" = "powerpc" ; then echo "TARGET_ARCH_POWERPC=yes" >> config.mak echo "#define ARCH_POWERPC 1" >> $TMPH if test "$powerpc_perf" = "yes"; then echo "#define POWERPC_PERFORMANCE_REPORT 1" >> $TMPH fielif test "$cpu" = "mips" ; then echo "TARGET_ARCH_MIPS=yes" >> config.mak echo "#define ARCH_MIPS 1" >> $TMPHelif test "$cpu" = "sh4" ; then echo "TARGET_ARCH_SH4=yes" >> config.mak echo "#define ARCH_SH4 1" >> $TMPHfiecho "#define TUNECPU $TUNECPU" >> $TMPHif test "$bigendian" = "yes" ; then echo "WORDS_BIGENDIAN=yes" >> config.mak echo "#define WORDS_BIGENDIAN 1" >> $TMPHfiif test "$inttypes" != "yes" ; then echo "#define EMULATE_INTTYPES 1" >> $TMPHfiif test "$emu_fast_int" = "yes" ; then echo "#define EMULATE_FAST_INT 1" >> $TMPHfiif test "$mmx" = "yes" ; then echo "TARGET_MMX=yes" >> config.mak echo "#define HAVE_MMX 1" >> $TMPH echo "#define __CPU__ 586" >> $TMPHfiif test "$builtin_vector" = "yes" ; then echo "TARGET_BUILTIN_VECTOR=yes" >> config.mak echo "#define HAVE_BUILTIN_VECTOR 1" >> $TMPHfiif test "$mmi" = "yes" ; then echo "TARGET_MMI=yes" >> config.mak echo "#define HAVE_MMI 1" >> $TMPHfiif test "$altivec" = "yes" ; then echo "TARGET_ALTIVEC=yes" >> config.mak echo "#define HAVE_ALTIVEC 1" >> $TMPH echo "// Enable the next line to use the reference C code instead of AltiVec" >> $TMPH echo "// #define ALTIVEC_USE_REFERENCE_C_CODE 1" >> $TMPH if test "$_altivec_h" = "yes" ; then echo "#define HAVE_ALTIVEC_H 1" >> $TMPH else echo "#undef HAVE_ALTIVEC_H" >> $TMPH fifiif test "$gprof" = "yes" ; then echo "TARGET_GPROF=yes" >> config.mak echo "#define HAVE_GPROF 1" >> $TMPHfiif test "$localtime_r" = "yes" ; then echo "#define HAVE_LOCALTIME_R 1" >> $TMPHfiif test "$imlib2" = "yes" ; then echo "HAVE_IMLIB2=yes" >> config.makfiif test "$freetype2" = "yes" ; then echo "HAVE_FREETYPE2=yes" >> config.makfiif test "$sunmlib" = "yes" ; then echo "HAVE_MLIB=yes" >> config.mak echo "#define HAVE_MLIB 1" >> $TMPH extralibs="$extralibs -lmlib"fiif test "$pthreads" = "yes" ; then echo "HAVE_PTHREADS=yes" >> config.mak echo "#define HAVE_PTHREADS 1" >> $TMPH if $targetos != FreeBSD; then extralibs="$extralibs -lpthread" fifiif test "$sdl" = "yes" ; then echo "CONFIG_SDL=yes" >> config.mak echo "SDL_LIBS=`sdl-config --libs`" >> config.mak echo "SDL_CFLAGS=`sdl-config --cflags`" >> config.makfiif test "$have_lrintf" = "yes" ; then echo "#define HAVE_LRINTF 1" >> $TMPHfiif test "$vhook" = "yes" ; then echo "BUILD_VHOOK=yes" >> config.mak echo "#define HAVE_VHOOK 1" >> $TMPH extralibs="$extralibs $ldl"fiif test "$lshared" = "yes" ; then echo "BUILD_SHARED=yes" >> config.mak echo "PIC=-fPIC" >> config.makfiecho "EXTRALIBS=$extralibs" >> config.makversion=`grep '#define FFMPEG_VERSION ' $source_path/libavcodec/avcodec.h | cut -d '"' -f 2`echo "VERSION=$version" >>config.mak# if you do not want to use encoders, disable that.echo "#define CONFIG_ENCODERS 1" >> $TMPHecho "CONFIG_ENCODERS=yes" >> config.mak# if you do not want to use decoders, disable that.echo "#define CONFIG_DECODERS 1" >> $TMPHecho "CONFIG_DECODERS=yes" >> config.mak# AC3if test "$a52" = "yes" ; then echo "#define CONFIG_AC3 1" >> $TMPH echo "CONFIG_AC3=yes" >> config.mak if test "$a52bin" = "yes" ; then echo "#define CONFIG_A52BIN 1" >> $TMPH echo "CONFIG_A52BIN=yes" >> config.mak fifi# PPif test "$pp" = "yes" ; then echo "#define CONFIG_PP 1" >> $TMPH echo "CONFIG_PP=yes" >> config.mak if test "$shared_pp" = "yes" ; then echo "#define SHARED_PP 1" >> $TMPH echo "SHARED_PP=yes" >> config.mak fifi# mpeg audio high precision modeif test "$mpegaudio_hp" = "yes" ; then echo "#define CONFIG_MPEGAUDIO_HP 1" >> $TMPHfiif test "$v4l" = "yes" ; then echo "#define CONFIG_VIDEO4LINUX 1" >> $TMPH echo "CONFIG_VIDEO4LINUX=yes" >> config.makfiif test "$dv1394" = "yes" ; then echo "#define CONFIG_DV1394 1" >> $TMPH echo "CONFIG_DV1394=yes" >> config.makfiif test "$dlopen" = "yes" ; then echo "#define CONFIG_HAVE_DLOPEN 1" >> $TMPHfiif test "$dlfcn" = "yes" ; then echo "#define CONFIG_HAVE_DLFCN 1" >> $TMPHfiif test "$audio_oss" = "yes" ; then echo "#define CONFIG_AUDIO_OSS 1" >> $TMPH echo "CONFIG_AUDIO_OSS=yes" >> config.makfiif test "$audio_beos" = "yes" ; then echo "#define CONFIG_AUDIO_BEOS 1" >> $TMPH echo "CONFIG_AUDIO_BEOS=yes" >> config.makfiif test "$network" = "yes" ; then echo "#define CONFIG_NETWORK 1" >> $TMPH echo "CONFIG_NETWORK=yes" >> config.makfiif test "$zlib" = "yes" ; then echo "#define CONFIG_ZLIB 1" >> $TMPH echo "CONFIG_ZLIB=yes" >> config.makfiif test "$mp3lame" = "yes" ; then echo "#define CONFIG_MP3LAME 1" >> $TMPH echo "CONFIG_MP3LAME=yes" >> config.makfiif test "$vorbis" = "yes" ; then echo "#define CONFIG_VORBIS 1" >> $TMPH echo "CONFIG_VORBIS=yes" >> config.makfiif test "$faad" = "yes" ; then echo "#define CONFIG_FAAD 1" >> $TMPH echo "CONFIG_FAAD=yes" >> config.makfiif test "$faadbin" = "yes" ; then echo "#define CONFIG_FAADBIN 1" >> $TMPH echo "CONFIG_FAADBIN=yes" >> config.makfiif test "$faac" = "yes" ; then echo "#define CONFIG_FAAC 1" >> $TMPH echo "CONFIG_FAAC=yes" >> config.makfiif test "$mingw32" = "yes" ; then echo "#define CONFIG_WIN32 1" >> $TMPH echo "CONFIG_WIN32=yes" >> config.mak echo "HAVE_W32THREADS=yes" >> config.mak echo "#define HAVE_W32THREADS 1" >> $TMPH echo "#ifndef __MINGW32__" >> $TMPH echo "#define __MINGW32__ 1" >> $TMPH echo "#endif" >> $TMPHfiif test "$os2" = "yes" ; then echo "#define CONFIG_OS2 1" >> $TMPH echo "CONFIG_OS2=yes" >> config.makfiif test "$TARGET_OS" = "SunOS" ; then echo "#define CONFIG_SUNOS 1" >> $TMPHfiif test "$darwin" = "yes"; then echo "#define CONFIG_DARWIN 1" >> $TMPH echo "CONFIG_DARWIN=yes" >> config.makfiif test "$_malloc_h" = "yes" ; then echo "#define HAVE_MALLOC_H 1" >> $TMPHelse echo "#undef HAVE_MALLOC_H" >> $TMPHfiif test "$_memalign" = "yes" ; then echo "#define HAVE_MEMALIGN 1" >> $TMPHelse echo "#undef HAVE_MEMALIGN" >> $TMPHfiif test "$netserver" = "yes" ; then echo "#define CONFIG_BEOS_NETSERVER 1" >> $TMPH echo "CONFIG_BEOS_NETSERVER=yes" >> config.makfiif test "$need_inet_aton" = "yes" ; then echo "NEED_INET_ATON=yes" >> config.makfiif test "$simpleidct" = "yes" ; then echo "#define SIMPLE_IDCT 1" >> $TMPHfiif test "$ffserver" = "yes" ; then echo "#define CONFIG_FFSERVER 1" >> $TMPH echo "CONFIG_FFSERVER=yes" >> config.makfiif test "$ffplay" = "yes" ; then echo "CONFIG_FFPLAY=yes" >> config.makfiif test "$risky" = "yes" ; then echo "#define CONFIG_RISKY 1" >> $TMPH echo "CONFIG_RISKY=yes" >> config.makfiif test "$gpl" = "yes" ; then echo "#define CONFIG_GPL 1" >> $TMPH echo "CONFIG_GPL=yes" >> config.makfiecho "#define restrict $_restrict" >> $TMPH# build tree in object directory if source path is different from current oneif test "$source_path_used" = "yes" ; then DIRS="libavformat libavcodec libavcodec/alpha libavcodec/armv4l libavcodec/i386 \ libavcodec/ppc libavcodec/liba52 libavcodec/mlib libavcodec/libpostproc tests vhook" FILES="Makefile libavformat/Makefile libavcodec/Makefile libavcodec/libpostproc/Makefile tests/Makefile vhook/Makefile" for dir in $DIRS ; do mkdir -p $dir done for f in $FILES ; do ln -sf $source_path/$f $f donefiecho "SRC_PATH=$source_path" >> config.makif test "$amr_wb" = "yes" ; then echo "#define AMR_WB 1" >> $TMPH echo "AMR_WB=yes" >> config.mak echo echo "AMR WB FLOAT NOTICE ! Make sure you have downloaded TS26.204" echo "V5.1.0 from " echo "http://www.3gpp.org/ftp/Specs/archive/26_series/26.204/26204-510.zip" echo "and extracted the source to libavcodec/amrwb_float" echofiif test "$amr_nb" = "yes" ; then echo "#define AMR_NB 1" >> $TMPH echo "AMR_NB=yes" >> config.mak echoif test "$amr_nb_fixed" = "yes" ; then echo "AMR_NB_FIXED=yes" >> config.mak echo "#define AMR_NB_FIXED 1" >> $TMPH echo "AMR NB FIXED POINT NOTICE! Make sure you have downloaded TS26.073 " echo "REL-5 version 5.1.0 from " echo "http://www.3gpp.org/ftp/Specs/latest/Rel-5/26_series/26073-510.zip" echo "and extracted src to libavcodec/amr" echo "You must also add -DMMS_IO and remove -pedantic-errors to/from CFLAGS in libavcodec/amr/makefile." echo "i.e. CFLAGS = -Wall -I. \$(CFLAGS_\$(MODE)) -D\$(VAD) -DMMS_IO" echoelse echo "AMR NB FLOAT NOTICE ! Make sure you have downloaded TS26.104" echo "REL-5 V5.1.0 from " echo "http://www.3gpp.org/ftp/Specs/latest/Rel-5/26_series/26104-510.zip" echo "and extracted the source to libavcodec/amr_float" echo "and if u try this on an alpha, u may need to change Word32 to int in amr/typedef.h" echofifidiff $TMPH config.h >/dev/null 2>&1if test $? -ne 0 ; then mv -f $TMPH config.helse echo "config.h is unchanged"firm -f $TMPO $TMPC $TMPE $TMPS $TMPH
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -