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

📄 configure

📁 一个用于智能手机的多媒体库适合S60 WinCE的跨平台开发库
💻
📖 第 1 页 / 共 3 页
字号:
                #ifndef FAAD2_VERSION                ok faad1                #endif                int main( void ) { return 0; }EOF            if $cc $CFLAGS -o $TMPE $TMPC 2> /dev/null ; then                echo "faad2 is under GPL and --enable-gpl is not specified"                fail="yes"            fi        else            faad="no"            faadbin="no"            echo "faad test failed"        fi    fi       if test "$fail" = "yes"; then        exit 1    fifi# compute mmx stateif test $mmx = "default"; then    if test $cpu = "x86"; then        mmx="yes"    else        mmx="no"    fifi#Darwin CC versionsneedmdynamicnopic="no"if test $targetos = Darwin; then    if test -n "`$cc -v 2>&1 | grep xlc`"; then	CFLAGS="$CFLAGS -qpdf2 -qlanglvl=extc99 -qmaxmem=-1 -qarch=auto -qtune=auto"    else	gcc_version="`$cc -v 2>&1 | grep version | cut -d ' ' -f3-`"	case "$gcc_version" in	    *2.95*) 		CFLAGS="$CFLAGS -no-cpp-precomp -pipe -fomit-frame-pointer"		;;	    *3.*)		CFLAGS="$CFLAGS -no-cpp-precomp -pipe -fomit-frame-pointer -force_cpusubtype_ALL -Wno-sign-compare"		if test "$lshared" = no; then		   needmdynamicnopic="yes"		fi		;;	    *)		CFLAGS="$CFLAGS -no-cpp-precomp -pipe -fomit-frame-pointer"		if test "$lshared" = no; then		   needmdynamicnopic="yes"		fi		;;	esac    fifi# Can only do AltiVec on PowerPCif test $altivec = "default"; then    if test $cpu = "powerpc"; then        altivec="yes"    else        altivec="no"    fifi# Add processor-specific flagsTUNECPU="generic"if test $tune != "generic"; then    case $tune in	601|ppc601|PowerPC601)	    CFLAGS="$CFLAGS -mcpu=601"	    if test $altivec = "yes"; then		echo "WARNING: tuning for PPC601 but altivec enabled !";	    fi	    TUNECPU=ppc601	;;	603*|ppc603*|PowerPC603*)	    CFLAGS="$CFLAGS -mcpu=603"	    if test $altivec = "yes"; then		echo "WARNING: tuning for PPC603 but altivec enabled !";	    fi	    TUNECPU=ppc603	;;	604*|ppc604*|PowerPC604*)	    CFLAGS="$CFLAGS -mcpu=604"	    if test $altivec = "yes"; then		echo "WARNING: tuning for PPC604 but altivec enabled !";	    fi	    TUNECPU=ppc604	;;	G3|g3|75*|ppc75*|PowerPC75*)	    CFLAGS="$CFLAGS -mcpu=750 -mtune=750 -mpowerpc-gfxopt"	    if test $altivec = "yes"; then		echo "WARNING: tuning for PPC75x but altivec enabled !";	    fi	    TUNECPU=ppc750	;;	G4|g4|745*|ppc745*|PowerPC745*)	    CFLAGS="$CFLAGS -mcpu=7450 -mtune=7450 -mpowerpc-gfxopt"	    if test $altivec = "no"; then		echo "WARNING: tuning for PPC745x but altivec disabled !";	    fi	    TUNECPU=ppc7450	;;	74*|ppc74*|PowerPC74*)	    CFLAGS="$CFLAGS -mcpu=7400 -mtune=7400 -mpowerpc-gfxopt"	    if test $altivec = "no"; then		echo "WARNING: tuning for PPC74xx but altivec disabled !";	    fi	    TUNECPU=ppc7400	;;	G5|g5|970|ppc970|PowerPC970|power4*|Power4*)	    CFLAGS="$CFLAGS -mcpu=970 -mtune=970 -mpowerpc64 -force_cpusubtype_ALL "	    if test $altivec = "no"; then		echo "WARNING: tuning for PPC970 but altivec disabled !";	    fi	    TUNECPU=ppc970	;;	*)	echo "WARNING: unknown CPU "$tune", ignored"	;;    esacfi# AltiVec flags: The FSF version of GCC differs from the Apple version if test $cpu = "powerpc"; then    if test $altivec = "yes"; then        if test -n "`$cc -v 2>&1 | grep version | grep Apple`"; then            CFLAGS="$CFLAGS -faltivec"        else            CFLAGS="$CFLAGS -maltivec -mabi=altivec"        fi    fifi# See if we have <altivec.h>cat > $TMPC << EOF#include <altivec.h>int main( void ) { return 0; }EOF_altivec_h="no"if $cc $CFLAGS -o $TMPE $TMPC 2> /dev/null ; then_altivec_h="yes"fi# See does our compiler support Motorola AltiVec C APIif test $altivec = "yes"; thenif test $_altivec_h = "yes"; thencat > $TMPC << EOF#include <altivec.h>int main(void) {    vector signed int v1, v2, v3;    v1 = vec_add(v2,v3);    return 0;}EOFelsecat > $TMPC << EOFint main(void) {    vector signed int v1, v2, v3;    v1 = vec_add(v2,v3);    return 0;}EOFfi$cc $CFLAGS -o $TMPE $TMPC 2> /dev/null || altivec="no"fi# Can only do mmi on mipsif test $mmi = "default"; then    if test $cpu = "mips"; then        mmi="yes"    else        mmi="no"    fifi# See does our compiler support mmiif test $mmi = "yes"; thencat > $TMPC << EOFint main(void) {    __asm__ ("lq \$2, 0(\$2)");    return 0;}EOF$cc -o $TMPE $TMPC 2> /dev/null || mmi="no"fiif test "$mingw32" = "yes" ; then    v4l="no"    audio_oss="no"    dv1394="no"    ffserver="no"    network="no"    LIBPREF=""    LIBSUF=".lib"    SLIBPREF=""    SLIBSUF=".dll"    EXESUF=".exe"    prefix="/c/Program Files/FFmpeg"    bindir="$prefix"ficc="${cross_prefix}${cc}"ar="${cross_prefix}${ar}"ranlib="${cross_prefix}${ranlib}"strip="${cross_prefix}${strip}"if test -z "$cross_prefix" ; then# ---# big/little endian testcat > $TMPC << EOF#include <inttypes.h>int main(int argc, char ** argv){	volatile uint32_t i=0x01234567;	return (*((uint8_t*)(&i))) == 0x67;}EOFif $cc -o $TMPE $TMPC 2>/dev/null ; then$TMPE && bigendian="yes"elseecho big/little test failedfielse# if cross compiling, cannot launch a program, so make a static guessif test "$cpu" = "powerpc" -o "$cpu" = "mips" ; then    bigendian="yes"fifi# ---# *inttypes.h* testcat > $TMPC << EOF#include <inttypes.h>int main(int argc, char ** argv){    return 0;}EOF$cc -o $TMPE $TMPC 2>/dev/null || inttypes="no"# ---# *int_fast* testcat > $TMPC << EOF#include <inttypes.h>int main(int argc, char ** argv){	volatile uint_fast64_t i=0x01234567;	return 0;}EOF$cc -o $TMPE $TMPC 2>/dev/null || emu_fast_int="yes"# ---# check availability of some header filescat > $TMPC << EOF#include <malloc.h>int main( void ) { return 0; }EOF_memalign=no_malloc_h=noif $cc -o $TMPE $TMPC 2> /dev/null ; then_malloc_h=yes_memalign=yes# check for memalign - atmoscat > $TMPC << EOF#include <malloc.h>int main ( void ) {char *string = NULL;string = memalign(64, sizeof(char));return 0;}EOF$cc -o $TMPE $TMPC 2> /dev/null || _memalign=noficat > $TMPC << EOF#include <time.h>int main( void ) { localtime_r(NULL, NULL); }EOFlocaltime_r=noif $cc -o $TMPE $TMPC 2> /dev/null ; then  localtime_r=yesfiif test "$zlib" = "yes"; then# check for zlib - mmu_mancat > $TMPC << EOF#include <zlib.h>int main ( void ) {if (zlibVersion() != ZLIB_VERSION)   puts("zlib version differs !!!");   return 1;return 0;}EOF$cc $CFLAGS -o $TMPE $TMPC -lz 2> /dev/null || zlib="no"# $TMPE 2> /dev/null > /dev/null || zlib="no"# XXX: more tests needed - runtime testfiif test "$zlib" = "yes"; thenextralibs="$extralibs -lz"fi# test for lrintf in math.hcat > $TMPC << EOF#define _ISOC9X_SOURCE  1#include <math.h>int main( void ) { return (lrintf(3.999f) > 0)?0:1; }EOFhave_lrintf="no"if $cc $extralibs -o $TMPE $TMPC 2> /dev/null ; then  have_lrintf="yes"  $TMPE 2> /dev/null > /dev/null || have_lrintf="no"fi_restrict=for restrict_keyword in restrict __restrict__ __restrict; do  echo "void foo(char * $restrict_keyword p);" > $TMPC  if $cc -c -o $TMPO $TMPC 2> /dev/null; then    _restrict=$restrict_keyword    break;  fidone# test gcc version to see if vector builtins can be used# currently only used on i386 for MMX builtinscat > $TMPC << EOFint main(void) { #if __GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 2)return 0;#else#error no vector builtins#endif}EOFbuiltin_vector=noif $cc -o $TMPO $TMPC 2> /dev/null ; then  builtin_vector=yesfi# dlopen/dlfcn.h probingcat > $TMPC << EOF#include <dlfcn.h>int main( void ) { return (int) dlopen("foo", 0); }EOFldl=-ldlif $cc -o $TMPE $TMPC -ldl > /dev/null 2>&1 ; thendlfcn=yesdlopen=yesfiif $cc -o $TMPE $TMPC > /dev/null 2>&1 ; thendlfcn=yesdlopen=yesldl=""ficat > $TMPC << EOFint main( void ) { return (int) dlopen("foo", 0); }EOFif $cc -o $TMPE $TMPC -ldl > /dev/null 2>&1  ; thendlopen=yesfiif $cc -o $TMPE $TMPC > /dev/null 2>&1  ; thendlopen=yesldl=""fiif test "$vhook" = "default" ; then  vhook="$dlopen"fi########################################### imlib probecat > $TMPC << EOF#include <X11/Xlib.h>#include <Imlib2.h>int main( void ) { return (int) imlib_load_font("foo"); }EOFimlib2=noif $cc -o $TMPE $TMPC -lImlib2 > /dev/null 2>&1  ; thenimlib2=yesfi########################################### freetype probecat > $TMPC << EOF#include <ft2build.h>int main( void ) { return (int) FT_Init_FreeType(0); }EOFfreetype2=noif test "x$targetos" != "xBeOS" && test "$os2" != "yes"; then  if test "`which freetype-config`" != ""; then    if $cc -o $TMPE $TMPC `freetype-config --cflags` `freetype-config --libs`  > /dev/null 2>&1 ; then      freetype2=yes    fi  fifi########################################### SDL probecat > $TMPC << EOF#include <SDL.h>#undef main /* We don't want SDL to override our main() */int main( void ) { return SDL_Init (SDL_INIT_VIDEO); }EOFsdl_too_old=nosdl=noif $cc -o $TMPE `sdl-config --cflags` $TMPC `sdl-config --libs`  > /dev/null 2>&1  ; then_sdlversion=`sdl-config --version | sed 's/[^0-9]//g'`if test "$_sdlversion" -lt 121 ; thensdl_too_old=yeselsesdl=yesfificase "`$cc -v 2>&1 | grep version`" in    *gcc*)	CFLAGS="-Wall $CFLAGS"	;;    *)	;;esac

⌨️ 快捷键说明

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