comparison configure.ac @ 50:690c44762f6f

enable proper optional mmx.
author Robert McIntyre <rlm@mit.edu>
date Thu, 21 Mar 2013 21:30:11 +0000
parents 9c1b4651b731
children ddd34d2646f9
comparison
equal deleted inserted replaced
49:9c1b4651b731 50:690c44762f6f
13 13
14 AC_CONFIG_HEADERS([config.h]) 14 AC_CONFIG_HEADERS([config.h])
15 15
16 16
17 AS_CASE([$target], 17 AS_CASE([$target],
18 [i?86-*-*], [VBA_USE_C_CORE=no] 18 [i?86-*-*], [VBA_USE_C_CORE="no" VBA_USE_MMX="yes"]
19 [*] , [VBA_USE_C_CORE=yes]) 19 [*] , [VBA_USE_C_CORE="yes" VBA_USE_MMX="no" ])
20 20
21 AC_ARG_ENABLE(c-core, 21 AC_ARG_ENABLE(c-core,
22 AC_HELP_STRING([--enable-c-core],[enable C core (default is no on x86 targets)]), 22 AC_HELP_STRING([--enable-c-core],[enable C core (default is no on x86 targets)]),
23 [VBA_USE_C_CORE=$enableval]) 23 [VBA_USE_C_CORE=$enableval])
24 24
34 [yes], [AM_CXXFLAGS="$AM_CXXFLAGS -DPROFILING" 34 [yes], [AM_CXXFLAGS="$AM_CXXFLAGS -DPROFILING"
35 VBA_SRC_EXTRA="$VBA_SRC_EXTRA prof" 35 VBA_SRC_EXTRA="$VBA_SRC_EXTRA prof"
36 VBA_LIBS="$VBA_LIBS ../prof/libprof.a"], 36 VBA_LIBS="$VBA_LIBS ../prof/libprof.a"],
37 [no], []) 37 [no], [])
38 38
39 AC_ARG_ENABLE(mmx,
40 AC_HELP_STRING([--enable-mmx],[use MMX (default is yes on x86 targets)]),
41 [VBA_USE_MMX=$enableval])
42
43 AC_PATH_PROG(NASM, nasm)
44 AM_CONDITIONAL([USE_MMX], [test "x$VBA_USE_MMX" = xyes])
45 AS_IF([test "x$VBA_USE_MMX" = xyes],
46 [AS_IF([test "x$NASM" = x],
47 [AC_MSG_ERROR([*** Couldn't find nasm program.])],
48 [AM_CXXFLAGS="$AM_CXXFLAGS -DMMX"
49 VBA_LIBS="$VBA_LIBS ../filters/lib386.a"])])
50
51
52
39 # Checks for programs. 53 # Checks for programs.
40 AC_PROG_CXX 54 AC_PROG_CXX
41 AC_PROG_CC 55 AC_PROG_CC
42 AC_PROG_AWK 56 AC_PROG_AWK
43 AC_PROG_INSTALL 57 AC_PROG_INSTALL
44 AC_PROG_RANLIB 58 AC_PROG_RANLIB
45 AC_PROG_CPP 59 AC_PROG_CPP
46 AC_PROG_MKDIR_P 60 AC_PROG_MKDIR_P
47 AC_PATH_PROG(NASM, nasm)
48 61
49 # Checks for libraries. 62 # Checks for libraries.
50 AC_CHECK_LIB(z, gzopen, 63 AC_CHECK_LIB(z, gzopen,
51 , AC_MSG_ERROR([*** Cannot compile without zlib.])) 64 , AC_MSG_ERROR([*** Cannot compile without zlib.]))
52 65
108 121
109 AC_SUBST([AM_CXXFLAGS]) 122 AC_SUBST([AM_CXXFLAGS])
110 AC_SUBST([VBA_SRC_EXTRA]) 123 AC_SUBST([VBA_SRC_EXTRA])
111 AC_SUBST([VBA_LIBS]) 124 AC_SUBST([VBA_LIBS])
112 125
113
114 AC_OUTPUT 126 AC_OUTPUT
115 127
116 128
117 echo "******** RLM ****************" 129 echo "******** RLM ****************"
118 echo "target= $target" 130 echo "target= $target"
119 echo "VBA_USE_C_CORE= $VBA_USE_C_CORE" 131 echo "VBA_USE_C_CORE= $VBA_USE_C_CORE"
132 echo "VBA_USE_MMX= $VBA_USE_MMX"
120 echo "AM_CXXFLAGS= $AM_CXXFLAGS" 133 echo "AM_CXXFLAGS= $AM_CXXFLAGS"
121 echo "enable_c_core= $enable_c_core" 134 echo "enable_c_core= $enable_c_core"
122 echo "enable_profiling= $enable_profiling" 135 echo "enable_profiling= $enable_profiling"
123 echo "VBA_SRC_EXTRA= $VBA_SRC_EXTRA" 136 echo "VBA_SRC_EXTRA= $VBA_SRC_EXTRA"
124 echo "VBA_LIBS= $VBA_LIBS" 137 echo "VBA_LIBS= $VBA_LIBS"