?? configure.ac
字號(hào):
AC_INIT(codec_g72x, 1.0-beta5, asterisk.hosting.lv)saved_cflags="$CFLAGS"AC_CONFIG_HEADERS([config.h])AC_PROG_INSTALLAM_INIT_AUTOMAKEAC_PROG_CCAM_PROG_CC_C_OAC_DISABLE_STATICAM_PROG_LIBTOOL#echo cflags: "${saved_cflags}"#echo host_os: "${host_os}"#echo build_cpu: "${build_cpu}"#echo prefix: "${prefix}"#echo default_prefix: "${ac_default_prefix}"case "${host_os}" in freebsd*) ac_default_prefix=/usr/local ;; *) ac_default_prefix=/usr ;;esacif test "${prefix}" = "NONE"; then prefix="${ac_default_prefix}"fiif test "${prefix}" != "/usr"; then CPPFLAGS="$CPPFLAGS -I${prefix}/include"fi#echo new prefix: "${prefix}"ASTERISK_VERSION="14";AC_ARG_WITH(asterisk-includes, AS_HELP_STRING([--with-asterisk-includes=PATH], [Path to Asterisk includes (defaults to PREFIX/include)]), [ASTERISK_CFLAGS="-I$withval"])AC_ARG_WITH(asterisk12, AS_HELP_STRING([--with-asterisk12], [Build for Asterisk 1.2 (not supported yet)]), [ASTERISK_VERSION="12"])AC_ARG_WITH(asterisk14, AS_HELP_STRING([--with-asterisk14], [Build for Asterisk 1.4 (the default)]), [ASTERISK_VERSION="14"])AC_ARG_WITH(asterisk16, AS_HELP_STRING([--with-asterisk16], [Build for Asterisk 1.6]), [ASTERISK_VERSION="16"])AC_ARG_WITH(asterisk17, AS_HELP_STRING([--with-asterisk17], [Build for Asterisk SVN TRUNK]), [ASTERISK_VERSION="17"])AC_ARG_WITH(callweaver, AS_HELP_STRING([--with-callweaver=PATH], [Build for CallWeaver (not supported yet)]), [CALLWEAVER_CFLAGS="-DG72X_CALLWEAVER -I\"$withval\""])AC_ARG_WITH([ipp], AS_HELP_STRING([--with-ipp=PATH], [Path to Intel IPP]), [ipp_root="$withval"], [ case "$build_cpu" in i?86) ipp_root="/opt/intel/ipp/5.3/ia32"; ;; x86_64|amd64) ipp_root="/opt/intel/ipp/5.3/em64t"; ;; esac; echo -e "\nNOTICE: Defaulting to $ipp_root as IPP_ROOT - use --with-ipp if necessary"; ])case "$build_cpu" in i586) march="pentium" ippcore="px"; ipp_cdefs="-DIPPCORE_NO_SSE" ;; # XXX check for pentium2 or sigill i686) march="pentium3" ippcore="a6"; cflags="-msse -mfpmath=sse" ;; x86_64|amd64) march="nocona" # -mfpmath=sse is default on x86_64 # older K8 doesn't have SSE3 cflags="-msse2" ;;esac# IPP cores are:# 32-bit# px - pentium mmx# a6 - pentium3 sse# w7 - pentium4 sse2# t7 - pentium4 prescott sse3# v8 - core2 ssse3# p8 - core2 penryn sse4.1# 64-bit# mx - older amd64 w/o sse3?# m7 - pentium4 sse3 em64t# u8 - core2 ssse3# y8 - core2 penryn sse4.1# sse3 ssse3 sse4.1# k8 w/o sse3# k8 +# prescott +# core2 + +# penryn + + +AC_ARG_ENABLE([opteron-sse3], AS_HELP_STRING([--enable-opteron-sse3], [Optimize for K8/Opteron/Athlon64 (enables SSE3)]), [march="k8"; ippcore="t7"; cflags="-msse3 -mfpmath=sse";])AC_ARG_ENABLE([opteron], AS_HELP_STRING([--enable-opteron], [Optimize for K8/Opteron/Athlon64 (enables SSE2)]), [march="k8"; ippcore="w7"; cflags="-msse2 -mfpmath=sse";])AC_ARG_ENABLE([athlon], AS_HELP_STRING([--enable-athlon], [Optimize for K7/Athlon-XP (enables SSE)]), [march="athlon-xp"; ippcore="a6"; cflags="-msse -mfpmath=sse";])AC_ARG_ENABLE([penryn], AS_HELP_STRING([--enable-penryn], [Optimize for Intel Core2 Penryn (enables SSE4)]), [march="nocona"; ippcore="p8"; cflags="-msse3 -mfpmath=sse";])AC_ARG_ENABLE([core2], AS_HELP_STRING([--enable-core2], [Optimize for Intel Core2 (enables SSE3)]), [march="nocona"; ippcore="v8"; cflags="-msse3 -mfpmath=sse";])AC_ARG_ENABLE([prescott], AS_HELP_STRING([--enable-prescott], [Optimize for Pentium4 Prescott (enables SSE3)]), [march="prescott"; ippcore="t7"; cflags="-msse3 -mfpmath=sse";])AC_ARG_ENABLE([pentium4], AS_HELP_STRING([--enable-pentium4], [Optimize for Pentium4 (enables SSE2)]), [march="pentium4"; ippcore="w7"; cflags="-msse2 -mfpmath=sse";])AC_ARG_ENABLE([pentiumm], AS_HELP_STRING([--enable-pentiumm], [Optimize for Pentium M (enables SSE2)]), [march="pentium-m"; ippcore="w7"; cflags="-msse2 -mfpmath=sse";])AC_ARG_ENABLE([pentium3], AS_HELP_STRING([--enable-pentium3], [Optimize for Pentium3 (enables SSE, the default)]), [march="pentium3"; ippcore="a6"; cflags="-msse -mfpmath=sse";])AC_ARG_ENABLE([pentium2], AS_HELP_STRING([--enable-pentium2], [Optimize for Pentium2]), [march="pentium2"; ippcore="px"; ipp_cdefs="-DIPPCORE_NO_SSE" cflags="";])AC_ARG_ENABLE([pentium], AS_HELP_STRING([--enable-pentium], [Optimize for Pentium]), [march="pentium"; ippcore="px"; ipp_cdefs="-DIPPCORE_NO_SSE" cflags="";])if test -z "$march"; then echo -e "\nERROR: Detected build CPU $build_cpu is not supported, use --enable-pentium/etc. to choose the core" exit 1fiif test -z "$saved_cflags"; then CFLAGS="-O3 -fomit-frame-pointer -march=$march $cflags"fiIPP_CFLAGS="-I\"$ipp_root/include\" $ipp_cdefs";IPP_LDFLAGS="-L\"$ipp_root/lib\"";case "$build_cpu" in i?86) IPP_CFLAGS="$IPP_CFLAGS -include \"$ipp_root/tools/staticlib/ipp_$ippcore.h\""; IPP_LIBS="-lippscmerged -lippsrmerged -lippsmerged -lippcore"; ;; x86_64|amd64) IPP_CFLAGS="$IPP_CFLAGS -DIPPCORE_STATIC_INIT" IPP_LIBS="-lippscemergedem64t -lippsremergedem64t -lippsemergedem64t -lippscmergedem64t -lippsrmergedem64t -lippsmergedem64t -lippcoreem64t"; ;;esacAC_SUBST([ASTERISK_CFLAGS ASTERISK_VERSION CALLWEAVER_CFLAGS])AC_SUBST([IPP_CFLAGS IPP_LDFLAGS IPP_LIBS])AC_OUTPUT([Makefile])
?? 快捷鍵說(shuō)明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -