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

📄 configure.ac

📁 libdvbcsa is a implementation of the DVB Common Scrambling Algorithm
💻 AC
字号:
AC_INIT(libdvbcsa, 1.0.0)AC_PREREQ(2.50)AC_ARG_ENABLE(debug, AC_HELP_STRING(--enable-debug, [Enable debug]), enable_debug=$enableval, enable_debug=no)if test "$enable_debug" = "yes" ; then    GCC_CFLAGS="$CFLAGS -g -DDVBCSA_DEBUG -D_XOPEN_SOURCE=600"else    GCC_CFLAGS="$CFLAGS -O2 -fexpensive-optimizations -funroll-loops -fomit-frame-pointer -D_XOPEN_SOURCE=600"fiAC_ARG_ENABLE(uint32, AC_HELP_STRING(--enable-uint32, [Use native 32 bits integers for bitslice]), enable_uint32=$enableval, enable_uint32=no)AC_ARG_ENABLE(uint64, AC_HELP_STRING(--enable-uint64, [Use native 64 bits integers for bitslice]), enable_uint64=$enableval, enable_uint64=no)AC_ARG_ENABLE(mmx, AC_HELP_STRING(--enable-mmx, [Use MMX for bitslice]), mmx_debug=$enableval, enable_mmx=no)AC_ARG_ENABLE(sse2, AC_HELP_STRING(--enable-sse2, [Use SSE2 for bitslice]), sse2_debug=$enableval, enable_sse2=no)AC_ARG_ENABLE(altivec, AC_HELP_STRING(--enable-altivec, [Use AltiVec for bitslice]), altivec_debug=$enableval, enable_altivec=no)AM_INIT_AUTOMAKE(libdvbcsa, 1.0.0)AM_CONFIG_HEADER(config.h)AC_PROG_CCAM_PROG_LIBTOOL AC_LANG(C)AC_STDC_HEADERSAC_CHECK_HEADERS(assert.h)AC_C_CONSTAC_C_INLINEAC_CHECK_SIZEOF(long)if test "$enable_mmx" = "yes" ; then     transpose_64=yes     AC_DEFINE(DVBCSA_USE_MMX, 1, Using MMX bitslice.)     GCC_CFLAGS="$GCC_CFLAGS -mmmx"elif test "$enable_sse2" = "yes" ; then     transpose_128=yes     AC_DEFINE(DVBCSA_USE_SSE, 1, Using SSE2 bitslice.)     GCC_CFLAGS="$GCC_CFLAGS -msse -msse2"elif test "$enable_altivec" = "yes" ; then     transpose_128=yes     AC_DEFINE(DVBCSA_USE_ALTIVEC, 1, Using AltiVec bitslice.)     GCC_CFLAGS="$GCC_CFLAGS -maltivec -mabi=altivec"elif test "$enable_uint32" = "yes" ; then     transpose_32=yes     AC_DEFINE(DVBCSA_USE_UINT32, 1, Using 32 bits integer bitslice.)elif test "$enable_uint64" = "yes" ; then     transpose_64=yes     AC_DEFINE(DVBCSA_USE_UINT64, 1, Using 64 bits integer bitslice.)else     case $ac_cv_sizeof_long in     	  8)	       transpose_64=yes	       AC_DEFINE(DVBCSA_USE_UINT64, 1, Using 64 bits integer bitslice.)	  ;;	  *)	       transpose_32=yes	       AC_DEFINE(DVBCSA_USE_UINT32, 1, Using 32 bits integer bitslice.)     	  ;;     esacfiAM_CONDITIONAL(TRANSPOSE_128, test "$transpose_128" = "yes")AM_CONDITIONAL(TRANSPOSE_64, test "$transpose_64" = "yes")AM_CONDITIONAL(TRANSPOSE_32, test "$transpose_32" = "yes")if test "$GCC" = "yes" ; then    CFLAGS="-Wall $GCC_CFLAGS"fiAC_CHECK_FUNC(posix_memalign, AC_DEFINE(HAVE_POSIX_MEMALIGN, 1, posix_memalign is available))AC_OUTPUT([  Makefile  src/Makefile  src/dvbcsa/Makefile  test/Makefile])

⌨️ 快捷键说明

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