OLD | NEW |
1 dnl Process this file with autoconf to produce a configure script. -*-m4-*- | 1 dnl Process this file with autoconf to produce a configure script. -*-m4-*- |
2 | 2 |
3 dnl The package_version file will be automatically synced to the git revision | 3 dnl The package_version file will be automatically synced to the git revision |
4 dnl by the update_version script when configured in the repository, but will | 4 dnl by the update_version script when configured in the repository, but will |
5 dnl remain constant in tarball releases unless it is manually edited. | 5 dnl remain constant in tarball releases unless it is manually edited. |
6 m4_define([CURRENT_VERSION], | 6 m4_define([CURRENT_VERSION], |
7 m4_esyscmd([ ./update_version 2>/dev/null || true | 7 m4_esyscmd([ ./update_version 2>/dev/null || true |
8 if test -e package_version; then | 8 if test -e package_version; then |
9 . ./package_version | 9 . ./package_version |
10 printf "$PACKAGE_VERSION" | 10 printf "$PACKAGE_VERSION" |
11 else | 11 else |
12 printf "unknown" | 12 printf "unknown" |
13 fi ])) | 13 fi ])) |
14 | 14 |
15 AC_INIT([opus],[CURRENT_VERSION],[opus@xiph.org]) | 15 AC_INIT([opus],[CURRENT_VERSION],[opus@xiph.org]) |
16 | 16 |
17 AC_CONFIG_SRCDIR(src/opus_encoder.c) | 17 AC_CONFIG_SRCDIR(src/opus_encoder.c) |
18 AC_CONFIG_MACRO_DIR([m4]) | 18 AC_CONFIG_MACRO_DIR([m4]) |
19 | 19 |
20 dnl enable silent rules on automake 1.11 and later | 20 dnl enable silent rules on automake 1.11 and later |
21 m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])]) | 21 m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])]) |
22 | 22 |
23 # For libtool. | 23 # For libtool. |
24 dnl Please update these for releases. | 24 dnl Please update these for releases. |
25 OPUS_LT_CURRENT=4 | 25 OPUS_LT_CURRENT=5 |
26 OPUS_LT_REVISION=0 | 26 OPUS_LT_REVISION=0 |
27 OPUS_LT_AGE=4 | 27 OPUS_LT_AGE=5 |
28 | 28 |
29 AC_SUBST(OPUS_LT_CURRENT) | 29 AC_SUBST(OPUS_LT_CURRENT) |
30 AC_SUBST(OPUS_LT_REVISION) | 30 AC_SUBST(OPUS_LT_REVISION) |
31 AC_SUBST(OPUS_LT_AGE) | 31 AC_SUBST(OPUS_LT_AGE) |
32 | 32 |
33 AM_INIT_AUTOMAKE([no-define]) | 33 AM_INIT_AUTOMAKE([no-define]) |
34 AM_MAINTAINER_MODE([enable]) | 34 AM_MAINTAINER_MODE([enable]) |
35 | 35 |
36 AC_CANONICAL_HOST | 36 AC_CANONICAL_HOST |
37 AC_MINGW32 | 37 AC_MINGW32 |
38 AM_PROG_LIBTOOL | 38 AM_PROG_LIBTOOL |
39 AM_PROG_CC_C_O | 39 AM_PROG_CC_C_O |
40 | 40 |
41 AC_PROG_CC_C99 | 41 AC_PROG_CC_C99 |
42 AC_C_CONST | 42 AC_C_CONST |
43 AC_C_INLINE | 43 AC_C_INLINE |
44 | 44 |
| 45 AM_PROG_AS |
| 46 |
45 AC_DEFINE([OPUS_BUILD], [], [This is a build of OPUS]) | 47 AC_DEFINE([OPUS_BUILD], [], [This is a build of OPUS]) |
46 | 48 |
47 #Use a hacked up version of autoconf's AC_C_RESTRICT because it's not | 49 #Use a hacked up version of autoconf's AC_C_RESTRICT because it's not |
48 #strong enough a test to detect old buggy versions of GCC (e.g. 2.95.3) | 50 #strong enough a test to detect old buggy versions of GCC (e.g. 2.95.3) |
49 #Note: Both this and the test for variable-size arrays below are also | 51 #Note: Both this and the test for variable-size arrays below are also |
50 # done by AC_PROG_CC_C99, but not thoroughly enough apparently. | 52 # done by AC_PROG_CC_C99, but not thoroughly enough apparently. |
51 AC_CACHE_CHECK([for C/C++ restrict keyword], ac_cv_c_restrict, | 53 AC_CACHE_CHECK([for C/C++ restrict keyword], ac_cv_c_restrict, |
52 [ac_cv_c_restrict=no | 54 [ac_cv_c_restrict=no |
53 # The order here caters to the fact that C++ does not require restrict. | 55 # The order here caters to the fact that C++ does not require restrict. |
54 for ac_kw in __restrict __restrict__ _Restrict restrict; do | 56 for ac_kw in __restrict __restrict__ _Restrict restrict; do |
55 AC_COMPILE_IFELSE([AC_LANG_PROGRAM( | 57 AC_COMPILE_IFELSE([AC_LANG_PROGRAM( |
56 [[typedef int * int_ptr; | 58 [[typedef int * int_ptr; |
57 » int foo (int_ptr $ac_kw ip, int * $ac_kw baz[]) { | 59 int foo (int_ptr $ac_kw ip, int * $ac_kw baz[]) { |
58 » return ip[0]; | 60 return ip[0]; |
59 }]], | 61 }]], |
60 [[int s[1]; | 62 [[int s[1]; |
61 » int * $ac_kw t = s; | 63 int * $ac_kw t = s; |
62 » t[0] = 0; | 64 t[0] = 0; |
63 » return foo(t, (void *)0)]])], | 65 return foo(t, (void *)0)]])], |
64 [ac_cv_c_restrict=$ac_kw]) | 66 [ac_cv_c_restrict=$ac_kw]) |
65 test "$ac_cv_c_restrict" != no && break | 67 test "$ac_cv_c_restrict" != no && break |
66 done | 68 done |
67 ]) | 69 ]) |
68 | 70 |
69 AH_VERBATIM([restrict], | 71 AH_VERBATIM([restrict], |
70 [/* Define to the equivalent of the C99 'restrict' keyword, or to | 72 [/* Define to the equivalent of the C99 'restrict' keyword, or to |
71 nothing if this is not supported. Do not define if restrict is | 73 nothing if this is not supported. Do not define if restrict is |
72 supported directly. */ | 74 supported directly. */ |
73 #undef restrict | 75 #undef restrict |
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
131 AM_CONDITIONAL([FIXED_POINT], [test "$enable_fixed_point" = "yes"]) | 133 AM_CONDITIONAL([FIXED_POINT], [test "$enable_fixed_point" = "yes"]) |
132 | 134 |
133 AC_ARG_ENABLE([fixed-point-debug], | 135 AC_ARG_ENABLE([fixed-point-debug], |
134 [AS_HELP_STRING([--enable-fixed-point-debug], [debug fixed-point implementat
ion])],, | 136 [AS_HELP_STRING([--enable-fixed-point-debug], [debug fixed-point implementat
ion])],, |
135 [enable_fixed_point_debug=no]) | 137 [enable_fixed_point_debug=no]) |
136 | 138 |
137 AS_IF([test "$enable_fixed_point_debug" = "yes"],[ | 139 AS_IF([test "$enable_fixed_point_debug" = "yes"],[ |
138 AC_DEFINE([FIXED_DEBUG], [1], [Debug fixed-point implementation]) | 140 AC_DEFINE([FIXED_DEBUG], [1], [Debug fixed-point implementation]) |
139 ]) | 141 ]) |
140 | 142 |
| 143 AC_ARG_ENABLE([float_api], |
| 144 [AS_HELP_STRING([--disable-float-api], |
| 145 [compile without the floating point API (for machines with n
o float library)])],, |
| 146 [enable_float_api=yes]) |
| 147 |
| 148 AM_CONDITIONAL([DISABLE_FLOAT_API], [test "$enable_float_api" = "no"]) |
| 149 |
| 150 AS_IF([test "$enable_float_api" = "no"],[ |
| 151 AC_DEFINE([DISABLE_FLOAT_API], [1], [Do not build the float API]) |
| 152 ]) |
| 153 |
141 AC_ARG_ENABLE([custom-modes], | 154 AC_ARG_ENABLE([custom-modes], |
142 [AS_HELP_STRING([--enable-custom-modes], [enable non-Opus modes, e.g. 44.1 k
Hz & 2^n frames])],, | 155 [AS_HELP_STRING([--enable-custom-modes], [enable non-Opus modes, e.g. 44.1 k
Hz & 2^n frames])],, |
143 [enable_custom_modes=no]) | 156 [enable_custom_modes=no]) |
144 | 157 |
145 AS_IF([test "$enable_custom_modes" = "yes"],[ | 158 AS_IF([test "$enable_custom_modes" = "yes"],[ |
146 AC_DEFINE([CUSTOM_MODES], [1], [Custom modes]) | 159 AC_DEFINE([CUSTOM_MODES], [1], [Custom modes]) |
147 PC_BUILD="$PC_BUILD, custom modes" | 160 PC_BUILD="$PC_BUILD, custom modes" |
148 ]) | 161 ]) |
149 | 162 |
150 AM_CONDITIONAL([CUSTOM_MODES], [test "$enable_custom_modes" = "yes"]) | 163 AM_CONDITIONAL([CUSTOM_MODES], [test "$enable_custom_modes" = "yes"]) |
151 | 164 |
152 has_float_approx=no | 165 has_float_approx=no |
153 #case "$host_cpu" in | 166 #case "$host_cpu" in |
154 #i[[3456]]86 | x86_64 | powerpc64 | powerpc32 | ia64) | 167 #i[[3456]]86 | x86_64 | powerpc64 | powerpc32 | ia64) |
155 # has_float_approx=yes | 168 # has_float_approx=yes |
156 # ;; | 169 # ;; |
157 #esac | 170 #esac |
158 | 171 |
159 AC_ARG_ENABLE([float-approx], | 172 AC_ARG_ENABLE([float-approx], |
160 [AS_HELP_STRING([--enable-float-approx], [enable fast approximations for flo
ating point])], | 173 [AS_HELP_STRING([--enable-float-approx], [enable fast approximations for flo
ating point])], |
161 [if test "$enable_float_approx" = "yes"; then | 174 [if test "$enable_float_approx" = "yes"; then |
162 AC_WARN([Floating point approximations are not supported on all platforms
.]) | 175 AC_WARN([Floating point approximations are not supported on all platforms
.]) |
163 fi | 176 fi |
164 ], | 177 ], |
165 [enable_float_approx=$has_float_approx]) | 178 [enable_float_approx=$has_float_approx]) |
166 | 179 |
167 AS_IF([test "$enable_float_approx" = "yes"],[ | 180 AS_IF([test "$enable_float_approx" = "yes"],[ |
168 AC_DEFINE([FLOAT_APPROX], [1], [Float approximations]) | 181 AC_DEFINE([FLOAT_APPROX], [1], [Float approximations]) |
169 ]) | 182 ]) |
170 | 183 |
171 AC_ARG_ENABLE([asm], | 184 AC_ARG_ENABLE([asm], |
172 [AS_HELP_STRING([--disable-asm], [Disable assembly optimizations])],, | 185 [AS_HELP_STRING([--disable-asm], [Disable assembly optimizations])],, |
173 [enable_asm=yes]) | 186 [enable_asm=yes]) |
174 | 187 |
175 rtcd_support=no | |
176 cpu_arm=no | |
177 | |
178 AS_IF([test "$enable_asm" = "yes"],[ | |
179 asm_optimization="no asm for your platform, please send patches" | |
180 case $host_cpu in | |
181 arm*) | |
182 cpu_arm=yes | |
183 AS_GCC_INLINE_ASSEMBLY([asm_optimization="ARM"], | |
184 [asm_optimization="disabled"]) | |
185 if test "$asm_optimization" = "ARM" ; then | |
186 rtcd_support=yes | |
187 AC_DEFINE([ARMv4_ASM], 1, [Use generic ARMv4 asm optimizations]) | |
188 AS_ASM_ARM_EDSP([ARMv5E_ASM=1],[ARMv5E_ASM=0]) | |
189 if test "$ARMv5E_ASM" = "1" ; then | |
190 AC_DEFINE([ARMv5E_ASM], [1], [Use ARMv5E asm optimizations]) | |
191 asm_optimization="$asm_optimization (EDSP)" | |
192 fi | |
193 AS_ASM_ARM_MEDIA([ARMv6_ASM=1],[ARMv6_ASM=0]) | |
194 if test "$ARMv6_ASM" = "1" ; then | |
195 AC_DEFINE([ARMv6_ASM], [1], [Use ARMv6 asm optimizations]) | |
196 asm_optimization="$asm_optimization (Media)" | |
197 fi | |
198 AS_ASM_ARM_NEON([ARM_HAVE_NEON=1],[ARM_HAVE_NEON=0]) | |
199 if test "$ARM_HAVE_NEON" = "1" ; then | |
200 AC_DEFINE([ARM_HAVE_NEON], 1, [Use ARM NEON optimizations]) | |
201 asm_optimization="$asm_optimization (NEON)" | |
202 fi | |
203 fi | |
204 ;; | |
205 esac | |
206 ],[ | |
207 asm_optimization="disabled" | |
208 ]) | |
209 | |
210 AM_CONDITIONAL([CPU_ARM], [test "$cpu_arm" = "yes"]) | |
211 | |
212 AC_ARG_ENABLE([rtcd], | 188 AC_ARG_ENABLE([rtcd], |
213 [AS_HELP_STRING([--disable-rtcd], [Disable run-time CPU capabilities detecti
on])],, | 189 [AS_HELP_STRING([--disable-rtcd], [Disable run-time CPU capabilities detecti
on])],, |
214 [enable_rtcd=yes]) | 190 [enable_rtcd=yes]) |
215 | 191 |
216 AS_IF([test "$enable_rtcd" = "yes"],[ | 192 rtcd_support=no |
217 AS_IF([test "$rtcd_support" = "yes"],[ | 193 cpu_arm=no |
218 AC_DEFINE([OPUS_HAVE_RTCD], [1], [Use run-time CPU capabilities detectio
n]) | 194 |
219 ],[ | 195 AS_IF([test x"${enable_asm}" = x"yes"],[ |
220 rtcd_support="no rtcd for your platform, please send patches" | 196 inline_optimization="No ASM for your platform, please send patches" |
| 197 case $host_cpu in |
| 198 arm*) |
| 199 dnl Currently we only have asm for fixed-point |
| 200 AS_IF([test "$enable_float" != "yes"],[ |
| 201 cpu_arm=yes |
| 202 AC_DEFINE([OPUS_ARM_ASM], [], [Make use of ARM asm optimization]) |
| 203 AS_GCC_INLINE_ASSEMBLY( |
| 204 [inline_optimization="ARM"], |
| 205 [inline_optimization="disabled"] |
| 206 ) |
| 207 AS_ASM_ARM_EDSP([OPUS_ARM_INLINE_EDSP=1],[OPUS_ARM_INLINE_EDSP=0]) |
| 208 AS_ASM_ARM_MEDIA([OPUS_ARM_INLINE_MEDIA=1], |
| 209 [OPUS_ARM_INLINE_MEDIA=0]) |
| 210 AS_ASM_ARM_NEON([OPUS_ARM_INLINE_NEON=1],[OPUS_ARM_INLINE_NEON=0]) |
| 211 AS_IF([test x"$inline_optimization" = x"ARM"],[ |
| 212 AM_CONDITIONAL([OPUS_ARM_INLINE_ASM],[true]) |
| 213 AC_DEFINE([OPUS_ARM_INLINE_ASM], 1, |
| 214 [Use generic ARMv4 inline asm optimizations]) |
| 215 AS_IF([test x"$OPUS_ARM_INLINE_EDSP" = x"1"],[ |
| 216 AC_DEFINE([OPUS_ARM_INLINE_EDSP], [1], |
| 217 [Use ARMv5E inline asm optimizations]) |
| 218 inline_optimization="$inline_optimization (EDSP)" |
| 219 ]) |
| 220 AS_IF([test x"$OPUS_ARM_INLINE_MEDIA" = x"1"],[ |
| 221 AC_DEFINE([OPUS_ARM_INLINE_MEDIA], [1], |
| 222 [Use ARMv6 inline asm optimizations]) |
| 223 inline_optimization="$inline_optimization (Media)" |
| 224 ]) |
| 225 AS_IF([test x"$OPUS_ARM_INLINE_NEON" = x"1"],[ |
| 226 AC_DEFINE([OPUS_ARM_INLINE_NEON], 1, |
| 227 [Use ARM NEON inline asm optimizations]) |
| 228 inline_optimization="$inline_optimization (NEON)" |
| 229 ]) |
| 230 ]) |
| 231 dnl We need Perl to translate RVCT-syntax asm to gas syntax. |
| 232 AC_CHECK_PROG([HAVE_PERL], perl, yes, no) |
| 233 AS_IF([test x"$HAVE_PERL" = x"yes"],[ |
| 234 AM_CONDITIONAL([OPUS_ARM_EXTERNAL_ASM],[true]) |
| 235 asm_optimization="ARM" |
| 236 AS_IF([test x"$OPUS_ARM_INLINE_EDSP" = x"1"], [ |
| 237 OPUS_ARM_PRESUME_EDSP=1 |
| 238 OPUS_ARM_MAY_HAVE_EDSP=1 |
| 239 ], |
| 240 [ |
| 241 OPUS_ARM_PRESUME_EDSP=0 |
| 242 OPUS_ARM_MAY_HAVE_EDSP=0 |
| 243 ]) |
| 244 AS_IF([test x"$OPUS_ARM_INLINE_MEDIA" = x"1"], [ |
| 245 OPUS_ARM_PRESUME_MEDIA=1 |
| 246 OPUS_ARM_MAY_HAVE_MEDIA=1 |
| 247 ], |
| 248 [ |
| 249 OPUS_ARM_PRESUME_MEDIA=0 |
| 250 OPUS_ARM_MAY_HAVE_MEDIA=0 |
| 251 ]) |
| 252 AS_IF([test x"$OPUS_ARM_INLINE_NEON" = x"1"], [ |
| 253 OPUS_ARM_PRESUME_NEON=1 |
| 254 OPUS_ARM_MAY_HAVE_NEON=1 |
| 255 ], |
| 256 [ |
| 257 OPUS_ARM_PRESUME_NEON=0 |
| 258 OPUS_ARM_MAY_HAVE_NEON=0 |
| 259 ]) |
| 260 AS_IF([test x"$enable_rtcd" = x"yes"],[ |
| 261 AS_IF([test x"$OPUS_ARM_MAY_HAVE_EDSP" != x"1"],[ |
| 262 AC_MSG_NOTICE( |
| 263 [Trying to force-enable armv5e EDSP instructions...]) |
| 264 AS_ASM_ARM_EDSP_FORCE([OPUS_ARM_MAY_HAVE_EDSP=1]) |
| 265 ]) |
| 266 AS_IF([test x"$OPUS_ARM_MAY_HAVE_MEDIA" != x"1"],[ |
| 267 AC_MSG_NOTICE( |
| 268 [Trying to force-enable ARMv6 media instructions...]) |
| 269 AS_ASM_ARM_MEDIA_FORCE([OPUS_ARM_MAY_HAVE_MEDIA=1]) |
| 270 ]) |
| 271 AS_IF([test x"$OPUS_ARM_MAY_HAVE_NEON" != x"1"],[ |
| 272 AC_MSG_NOTICE( |
| 273 [Trying to force-enable NEON instructions...]) |
| 274 AS_ASM_ARM_NEON_FORCE([OPUS_ARM_MAY_HAVE_NEON=1]) |
| 275 ]) |
| 276 ]) |
| 277 rtcd_support= |
| 278 AS_IF([test x"$OPUS_ARM_MAY_HAVE_EDSP" = x"1"],[ |
| 279 AC_DEFINE(OPUS_ARM_MAY_HAVE_EDSP, 1, |
| 280 [Define if assembler supports EDSP instructions]) |
| 281 AS_IF([test x"$OPUS_ARM_PRESUME_EDSP" = x"1"],[ |
| 282 AC_DEFINE(OPUS_ARM_PRESUME_EDSP, 1, |
| 283 [Define if binary requires EDSP instruction support]) |
| 284 asm_optimization="$asm_optimization (EDSP)" |
| 285 ], |
| 286 [rtcd_support="$rtcd_support (EDSP)"] |
| 287 ) |
| 288 ]) |
| 289 AC_SUBST(OPUS_ARM_MAY_HAVE_EDSP) |
| 290 AS_IF([test x"$OPUS_ARM_MAY_HAVE_MEDIA" = x"1"],[ |
| 291 AC_DEFINE(OPUS_ARM_MAY_HAVE_MEDIA, 1, |
| 292 [Define if assembler supports ARMv6 media instructions]) |
| 293 AS_IF([test x"$OPUS_ARM_PRESUME_MEDIA" = x"1"],[ |
| 294 AC_DEFINE(OPUS_ARM_PRESUME_MEDIA, 1, |
| 295 [Define if binary requires ARMv6 media instruction sup
port]) |
| 296 asm_optimization="$asm_optimization (Media)" |
| 297 ], |
| 298 [rtcd_support="$rtcd_support (Media)"] |
| 299 ) |
| 300 ]) |
| 301 AC_SUBST(OPUS_ARM_MAY_HAVE_MEDIA) |
| 302 AS_IF([test x"$OPUS_ARM_MAY_HAVE_NEON" = x"1"],[ |
| 303 AC_DEFINE(OPUS_ARM_MAY_HAVE_NEON, 1, |
| 304 [Define if compiler supports NEON instructions]) |
| 305 AS_IF([test x"$OPUS_ARM_PRESUME_NEON" = x"1"], [ |
| 306 AC_DEFINE(OPUS_ARM_PRESUME_NEON, 1, |
| 307 [Define if binary requires NEON instruction support]) |
| 308 asm_optimization="$asm_optimization (NEON)" |
| 309 ], |
| 310 [rtcd_support="$rtcd_support (NEON)"] |
| 311 ) |
| 312 ]) |
| 313 AC_SUBST(OPUS_ARM_MAY_HAVE_NEON) |
| 314 dnl Make sure turning on RTCD gets us at least one |
| 315 dnl instruction set. |
| 316 AS_IF([test x"$rtcd_support" != x""], |
| 317 [rtcd_support=ARM"$rtcd_support"], |
| 318 [rtcd_support="no"] |
| 319 ) |
| 320 ], |
| 321 [ |
| 322 AC_MSG_WARN( |
| 323 [*** ARM assembly requires perl -- disabling optimizations]) |
| 324 asm_optimization="(missing perl dependency for ARM)" |
| 325 ]) |
| 326 ]) |
| 327 ;; |
| 328 esac |
| 329 ],[ |
| 330 inline_optimization="disabled" |
| 331 asm_optimization="disabled" |
| 332 ]) |
| 333 |
| 334 AM_CONDITIONAL([CPU_ARM], [test "$cpu_arm" = "yes"]) |
| 335 AM_CONDITIONAL([OPUS_ARM_INLINE_ASM], |
| 336 [test x"${inline_optimization:0:3}" = x"ARM"]) |
| 337 AM_CONDITIONAL([OPUS_ARM_EXTERNAL_ASM], |
| 338 [test x"${asm_optimization:0:3}" = x"ARM"]) |
| 339 |
| 340 AS_IF([test x"$enable_rtcd" = x"yes"],[ |
| 341 AS_IF([test x"$rtcd_support" != x"no"],[ |
| 342 AC_DEFINE([OPUS_HAVE_RTCD], [1], |
| 343 [Use run-time CPU capabilities detection]) |
| 344 OPUS_HAVE_RTCD=1 |
| 345 AC_SUBST(OPUS_HAVE_RTCD) |
221 ]) | 346 ]) |
222 ],[ | 347 ],[ |
223 rtcd_support="no" | 348 rtcd_support="disabled" |
224 ]) | 349 ]) |
225 | 350 |
226 AC_ARG_ENABLE([assertions], | 351 AC_ARG_ENABLE([assertions], |
227 [AS_HELP_STRING([--enable-assertions],[enable additional software error chec
king])],, | 352 [AS_HELP_STRING([--enable-assertions],[enable additional software error chec
king])],, |
228 [enable_assertions=no]) | 353 [enable_assertions=no]) |
229 | 354 |
230 AS_IF([test "$enable_assertions" = "yes"], [ | 355 AS_IF([test "$enable_assertions" = "yes"], [ |
231 AC_DEFINE([ENABLE_ASSERTIONS], [1], [Assertions]) | 356 AC_DEFINE([ENABLE_ASSERTIONS], [1], [Assertions]) |
232 ]) | 357 ]) |
233 | 358 |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
282 saved_LIBS="$LIBS" | 407 saved_LIBS="$LIBS" |
283 LIBS="$LIBS $LIBM" | 408 LIBS="$LIBS $LIBM" |
284 AC_CHECK_FUNCS([lrintf]) | 409 AC_CHECK_FUNCS([lrintf]) |
285 AC_CHECK_FUNCS([lrint]) | 410 AC_CHECK_FUNCS([lrint]) |
286 LIBS="$saved_LIBS" | 411 LIBS="$saved_LIBS" |
287 | 412 |
288 AC_CHECK_FUNCS([__malloc_hook]) | 413 AC_CHECK_FUNCS([__malloc_hook]) |
289 | 414 |
290 AC_SUBST([PC_BUILD]) | 415 AC_SUBST([PC_BUILD]) |
291 | 416 |
292 | 417 AC_CONFIG_FILES([ |
293 AC_CONFIG_FILES([Makefile opus.pc opus-uninstalled.pc | 418 Makefile |
294 doc/Makefile doc/Doxyfile]) | 419 opus.pc |
| 420 opus-uninstalled.pc |
| 421 celt/arm/armopts.s |
| 422 doc/Makefile |
| 423 doc/Doxyfile |
| 424 ]) |
295 AC_CONFIG_HEADERS([config.h]) | 425 AC_CONFIG_HEADERS([config.h]) |
296 | 426 |
297 AC_OUTPUT | 427 AC_OUTPUT |
298 | 428 |
299 AC_MSG_NOTICE([ | 429 AC_MSG_NOTICE([ |
300 ------------------------------------------------------------------------ | 430 ------------------------------------------------------------------------ |
301 $PACKAGE_NAME $PACKAGE_VERSION: Automatic configuration OK. | 431 $PACKAGE_NAME $PACKAGE_VERSION: Automatic configuration OK. |
302 | 432 |
303 Compiler support: | 433 Compiler support: |
304 | 434 |
305 C99 var arrays: ................ ${has_var_arrays} | 435 C99 var arrays: ................ ${has_var_arrays} |
306 C99 lrintf: .................... ${ac_cv_func_lrintf} | 436 C99 lrintf: .................... ${ac_cv_func_lrintf} |
307 Use alloca: .................... ${use_alloca} | 437 Use alloca: .................... ${use_alloca} |
308 | 438 |
309 General configuration: | 439 General configuration: |
310 | 440 |
311 Floating point support: ........ ${enable_float} | 441 Floating point support: ........ ${enable_float} |
312 Fast float approximations: ..... ${enable_float_approx} | 442 Fast float approximations: ..... ${enable_float_approx} |
313 Fixed point debugging: ......... ${enable_fixed_point_debug} | 443 Fixed point debugging: ......... ${enable_fixed_point_debug} |
314 Assembly optimization: ......... ${asm_optimization} | 444 Inline Assembly Optimizations: . ${inline_optimization} |
| 445 External Assembly Optimizations: ${asm_optimization} |
315 Run-time CPU detection: ........ ${rtcd_support} | 446 Run-time CPU detection: ........ ${rtcd_support} |
316 Custom modes: .................. ${enable_custom_modes} | 447 Custom modes: .................. ${enable_custom_modes} |
317 Assertion checking: ............ ${enable_assertions} | 448 Assertion checking: ............ ${enable_assertions} |
318 Fuzzing: ....................... ${enable_fuzzing} | 449 Fuzzing: ....................... ${enable_fuzzing} |
319 | 450 |
320 API documentation: ............. ${enable_doc} | 451 API documentation: ............. ${enable_doc} |
321 Extra programs: ................ ${enable_extra_programs} | 452 Extra programs: ................ ${enable_extra_programs} |
322 ------------------------------------------------------------------------ | 453 ------------------------------------------------------------------------ |
323 | 454 |
324 Type "make; make install" to compile and install | 455 Type "make; make install" to compile and install |
325 Type "make check" to run the test suite | 456 Type "make check" to run the test suite |
326 ]) | 457 ]) |
327 | 458 |
OLD | NEW |