Merge "Add the 64-bit CPU cycle count utility function"
[aom.git] / configure
blobff97dee4487b89a1bd8a1aeb9b7fa4b96f5d1eb0
1 #!/bin/sh
2 ##
3 ## configure
4 ##
5 ## This script is the front-end to the build system. It provides a similar
6 ## interface to standard configure scripts with some extra bits for dealing
7 ## with toolchains that differ from the standard POSIX interface and
8 ## for extracting subsets of the source tree. In theory, reusable parts
9 ## of this script were intended to live in build/make/configure.sh,
10 ## but in practice, the line is pretty blurry.
12 ## This build system is based in part on the FFmpeg configure script.
15 #source_path="`dirname \"$0\"`"
16 source_path=${0%/*}
17 . "${source_path}/build/make/configure.sh"
19 show_help(){
20 show_help_pre
21 cat << EOF
22 Advanced options:
23 ${toggle_libs} libraries
24 ${toggle_examples} examples
25 ${toggle_docs} documentation
26 ${toggle_unit_tests} unit tests
27 ${toggle_decode_perf_tests} build decoder perf tests with unit tests
28 ${toggle_encode_perf_tests} build encoder perf tests with unit tests
29 --cpu=CPU tune for the specified CPU (ARM: cortex-a8, X86: sse3)
30 --libc=PATH path to alternate libc
31 --size-limit=WxH max size to allow in the decoder
32 --as={yasm|nasm|auto} use specified assembler [auto, yasm preferred]
33 --sdk-path=PATH path to root of sdk (android builds only)
34 ${toggle_codec_srcs} in/exclude codec library source code
35 ${toggle_debug_libs} in/exclude debug version of libraries
36 ${toggle_static_msvcrt} use static MSVCRT (VS builds only)
37 ${toggle_vp9_highbitdepth} use VP9 high bit depth (10/12) profiles
38 ${toggle_better_hw_compatibility}
39 enable encoder to produce streams with better
40 hardware decoder compatibility
41 ${toggle_vp8} VP8 codec support
42 ${toggle_vp9} VP9 codec support
43 ${toggle_vp10} VP10 codec support
44 ${toggle_internal_stats} output of encoder internal stats for debug, if supported (encoders)
45 ${toggle_postproc} postprocessing
46 ${toggle_vp9_postproc} vp9 specific postprocessing
47 ${toggle_multithread} multithreaded encoding and decoding
48 ${toggle_spatial_resampling} spatial sampling (scaling) support
49 ${toggle_realtime_only} enable this option while building for real-time encoding
50 ${toggle_onthefly_bitpacking} enable on-the-fly bitpacking in real-time encoding
51 ${toggle_error_concealment} enable this option to get a decoder which is able to conceal losses
52 ${toggle_coefficient_range_checking}
53 enable decoder to check if intermediate
54 transform coefficients are in valid range
55 ${toggle_runtime_cpu_detect} runtime cpu detection
56 ${toggle_shared} shared library support
57 ${toggle_static} static library support
58 ${toggle_small} favor smaller size over speed
59 ${toggle_postproc_visualizer} macro block / block level visualizers
60 ${toggle_multi_res_encoding} enable multiple-resolution encoding
61 ${toggle_temporal_denoising} enable temporal denoising and disable the spatial denoiser
62 ${toggle_vp9_temporal_denoising}
63 enable vp9 temporal denoising
64 ${toggle_webm_io} enable input from and output to WebM container
65 ${toggle_libyuv} enable libyuv
67 Codecs:
68 Codecs can be selectively enabled or disabled individually, or by family:
69 --disable-<codec>
70 is equivalent to:
71 --disable-<codec>-encoder
72 --disable-<codec>-decoder
74 Codecs available in this distribution:
75 EOF
76 #restore editor state '
78 family="";
79 last_family="";
80 c="";
81 str="";
82 for c in ${CODECS}; do
83 family=${c%_*}
84 if [ "${family}" != "${last_family}" ]; then
85 [ -z "${str}" ] || echo "${str}"
86 str="$(printf ' %10s:' ${family})"
88 str="${str} $(printf '%10s' ${c#*_})"
89 last_family=${family}
90 done
91 echo "${str}"
92 show_help_post
96 ## BEGIN APPLICATION SPECIFIC CONFIGURATION
99 # all_platforms is a list of all supported target platforms. Maintain
100 # alphabetically by architecture, generic-gnu last.
101 all_platforms="${all_platforms} armv6-darwin-gcc"
102 all_platforms="${all_platforms} armv6-linux-rvct"
103 all_platforms="${all_platforms} armv6-linux-gcc"
104 all_platforms="${all_platforms} armv6-none-rvct"
105 all_platforms="${all_platforms} arm64-darwin-gcc"
106 all_platforms="${all_platforms} arm64-linux-gcc"
107 all_platforms="${all_platforms} armv7-android-gcc" #neon Cortex-A8
108 all_platforms="${all_platforms} armv7-darwin-gcc" #neon Cortex-A8
109 all_platforms="${all_platforms} armv7-linux-rvct" #neon Cortex-A8
110 all_platforms="${all_platforms} armv7-linux-gcc" #neon Cortex-A8
111 all_platforms="${all_platforms} armv7-none-rvct" #neon Cortex-A8
112 all_platforms="${all_platforms} armv7-win32-vs11"
113 all_platforms="${all_platforms} armv7-win32-vs12"
114 all_platforms="${all_platforms} armv7-win32-vs14"
115 all_platforms="${all_platforms} armv7s-darwin-gcc"
116 all_platforms="${all_platforms} mips32-linux-gcc"
117 all_platforms="${all_platforms} mips64-linux-gcc"
118 all_platforms="${all_platforms} sparc-solaris-gcc"
119 all_platforms="${all_platforms} x86-android-gcc"
120 all_platforms="${all_platforms} x86-darwin8-gcc"
121 all_platforms="${all_platforms} x86-darwin8-icc"
122 all_platforms="${all_platforms} x86-darwin9-gcc"
123 all_platforms="${all_platforms} x86-darwin9-icc"
124 all_platforms="${all_platforms} x86-darwin10-gcc"
125 all_platforms="${all_platforms} x86-darwin11-gcc"
126 all_platforms="${all_platforms} x86-darwin12-gcc"
127 all_platforms="${all_platforms} x86-darwin13-gcc"
128 all_platforms="${all_platforms} x86-darwin14-gcc"
129 all_platforms="${all_platforms} x86-darwin15-gcc"
130 all_platforms="${all_platforms} x86-iphonesimulator-gcc"
131 all_platforms="${all_platforms} x86-linux-gcc"
132 all_platforms="${all_platforms} x86-linux-icc"
133 all_platforms="${all_platforms} x86-os2-gcc"
134 all_platforms="${all_platforms} x86-solaris-gcc"
135 all_platforms="${all_platforms} x86-win32-gcc"
136 all_platforms="${all_platforms} x86-win32-vs7"
137 all_platforms="${all_platforms} x86-win32-vs8"
138 all_platforms="${all_platforms} x86-win32-vs9"
139 all_platforms="${all_platforms} x86-win32-vs10"
140 all_platforms="${all_platforms} x86-win32-vs11"
141 all_platforms="${all_platforms} x86-win32-vs12"
142 all_platforms="${all_platforms} x86-win32-vs14"
143 all_platforms="${all_platforms} x86_64-android-gcc"
144 all_platforms="${all_platforms} x86_64-darwin9-gcc"
145 all_platforms="${all_platforms} x86_64-darwin10-gcc"
146 all_platforms="${all_platforms} x86_64-darwin11-gcc"
147 all_platforms="${all_platforms} x86_64-darwin12-gcc"
148 all_platforms="${all_platforms} x86_64-darwin13-gcc"
149 all_platforms="${all_platforms} x86_64-darwin14-gcc"
150 all_platforms="${all_platforms} x86_64-darwin15-gcc"
151 all_platforms="${all_platforms} x86_64-iphonesimulator-gcc"
152 all_platforms="${all_platforms} x86_64-linux-gcc"
153 all_platforms="${all_platforms} x86_64-linux-icc"
154 all_platforms="${all_platforms} x86_64-solaris-gcc"
155 all_platforms="${all_platforms} x86_64-win64-gcc"
156 all_platforms="${all_platforms} x86_64-win64-vs8"
157 all_platforms="${all_platforms} x86_64-win64-vs9"
158 all_platforms="${all_platforms} x86_64-win64-vs10"
159 all_platforms="${all_platforms} x86_64-win64-vs11"
160 all_platforms="${all_platforms} x86_64-win64-vs12"
161 all_platforms="${all_platforms} x86_64-win64-vs14"
162 all_platforms="${all_platforms} generic-gnu"
164 # all_targets is a list of all targets that can be configured
165 # note that these should be in dependency order for now.
166 all_targets="libs examples docs"
168 # all targets available are enabled, by default.
169 for t in ${all_targets}; do
170 [ -f "${source_path}/${t}.mk" ] && enable_feature ${t}
171 done
173 if ! perl --version >/dev/null; then
174 die "Perl is required to build"
178 if [ "`cd \"${source_path}\" && pwd`" != "`pwd`" ]; then
179 # test to see if source_path already configured
180 if [ -f "${source_path}/vpx_config.h" ]; then
181 die "source directory already configured; run 'make distclean' there first"
185 # check installed doxygen version
186 doxy_version=$(doxygen --version 2>/dev/null)
187 doxy_major=${doxy_version%%.*}
188 if [ ${doxy_major:-0} -ge 1 ]; then
189 doxy_version=${doxy_version#*.}
190 doxy_minor=${doxy_version%%.*}
191 doxy_patch=${doxy_version##*.}
193 [ $doxy_major -gt 1 ] && enable_feature doxygen
194 [ $doxy_minor -gt 5 ] && enable_feature doxygen
195 [ $doxy_minor -eq 5 ] && [ $doxy_patch -ge 3 ] && enable_feature doxygen
198 # disable codecs when their source directory does not exist
199 [ -d "${source_path}/vp8" ] || disable_feature vp8
200 [ -d "${source_path}/vp9" ] || disable_feature vp9
201 [ -d "${source_path}/vp10" ] || disable_feature vp10
203 # disable vp10 codec by default
204 disable_feature vp10
206 # install everything except the sources, by default. sources will have
207 # to be enabled when doing dist builds, since that's no longer a common
208 # case.
209 enabled doxygen && enable_feature install_docs
210 enable_feature install_bins
211 enable_feature install_libs
213 enable_feature static
214 enable_feature optimizations
215 enable_feature dependency_tracking
216 enable_feature spatial_resampling
217 enable_feature multithread
218 enable_feature os_support
219 enable_feature temporal_denoising
221 CODECS="
222 vp8_encoder
223 vp8_decoder
224 vp9_encoder
225 vp9_decoder
226 vp10_encoder
227 vp10_decoder
229 CODEC_FAMILIES="
232 vp10
235 ARCH_LIST="
237 mips
239 x86_64
241 ARCH_EXT_LIST_X86="
244 sse2
245 sse3
246 ssse3
247 sse4_1
249 avx2
251 ARCH_EXT_LIST="
252 edsp
253 media
254 neon
255 neon_asm
257 mips32
258 dspr2
260 mips64
262 ${ARCH_EXT_LIST_X86}
264 HAVE_LIST="
265 ${ARCH_EXT_LIST}
266 vpx_ports
267 pthread_h
268 unistd_h
270 EXPERIMENT_LIST="
271 spatial_svc
272 fp_mb_stats
273 emulate_hardware
274 misc_fixes
276 CONFIG_LIST="
277 dependency_tracking
278 external_build
279 install_docs
280 install_bins
281 install_libs
282 install_srcs
283 use_x86inc
284 debug
285 gprof
286 gcov
287 rvct
289 msvs
291 big_endian
293 codec_srcs
294 debug_libs
296 dequant_tokens
297 dc_recon
298 runtime_cpu_detect
299 postproc
300 vp9_postproc
301 multithread
302 internal_stats
303 ${CODECS}
304 ${CODEC_FAMILIES}
305 encoders
306 decoders
307 static_msvcrt
308 spatial_resampling
309 realtime_only
310 onthefly_bitpacking
311 error_concealment
312 shared
313 static
314 small
315 postproc_visualizer
316 os_support
317 unit_tests
318 webm_io
319 libyuv
320 decode_perf_tests
321 encode_perf_tests
322 multi_res_encoding
323 temporal_denoising
324 vp9_temporal_denoising
325 coefficient_range_checking
326 vp9_highbitdepth
327 better_hw_compatibility
328 experimental
329 size_limit
330 ${EXPERIMENT_LIST}
332 CMDLINE_SELECT="
333 dependency_tracking
334 external_build
335 extra_warnings
336 werror
337 install_docs
338 install_bins
339 install_libs
340 install_srcs
341 debug
342 gprof
343 gcov
345 use_x86inc
346 optimizations
347 ccache
348 runtime_cpu_detect
349 thumb
351 libs
352 examples
353 docs
354 libc
356 size_limit
357 codec_srcs
358 debug_libs
360 dequant_tokens
361 dc_recon
362 postproc
363 vp9_postproc
364 multithread
365 internal_stats
366 ${CODECS}
367 ${CODEC_FAMILIES}
368 static_msvcrt
369 spatial_resampling
370 realtime_only
371 onthefly_bitpacking
372 error_concealment
373 shared
374 static
375 small
376 postproc_visualizer
377 unit_tests
378 webm_io
379 libyuv
380 decode_perf_tests
381 encode_perf_tests
382 multi_res_encoding
383 temporal_denoising
384 vp9_temporal_denoising
385 coefficient_range_checking
386 better_hw_compatibility
387 vp9_highbitdepth
388 experimental
391 process_cmdline() {
392 for opt do
393 optval="${opt#*=}"
394 case "$opt" in
395 --disable-codecs) for c in ${CODECS}; do disable_feature $c; done ;;
396 --enable-?*|--disable-?*)
397 eval `echo "$opt" | sed 's/--/action=/;s/-/ option=/;s/-/_/g'`
398 if echo "${EXPERIMENT_LIST}" | grep "^ *$option\$" >/dev/null; then
399 if enabled experimental; then
400 ${action}_feature $option
401 else
402 log_echo "Ignoring $opt -- not in experimental mode."
404 else
405 process_common_cmdline $opt
408 *) process_common_cmdline "$opt"
410 esac
411 done
414 post_process_cmdline() {
415 c=""
417 # If the codec family is disabled, disable all components of that family.
418 # If the codec family is enabled, enable all components of that family.
419 log_echo "Configuring selected codecs"
420 for c in ${CODECS}; do
421 disabled ${c%%_*} && disable_feature ${c}
422 enabled ${c%%_*} && enable_feature ${c}
423 done
425 # Enable all detected codecs, if they haven't been disabled
426 for c in ${CODECS}; do soft_enable $c; done
428 # Enable the codec family if any component of that family is enabled
429 for c in ${CODECS}; do
430 enabled $c && enable_feature ${c%_*}
431 done
433 # Set the {en,de}coders variable if any algorithm in that class is enabled
434 for c in ${CODECS}; do
435 enabled ${c} && enable_feature ${c##*_}s
436 done
440 process_targets() {
441 enabled child || write_common_config_banner
442 write_common_target_config_h ${BUILD_PFX}vpx_config.h
443 write_common_config_targets
445 # Calculate the default distribution name, based on the enabled features
446 cf=""
447 DIST_DIR=vpx
448 for cf in $CODEC_FAMILIES; do
449 if enabled ${cf}_encoder && enabled ${cf}_decoder; then
450 DIST_DIR="${DIST_DIR}-${cf}"
451 elif enabled ${cf}_encoder; then
452 DIST_DIR="${DIST_DIR}-${cf}cx"
453 elif enabled ${cf}_decoder; then
454 DIST_DIR="${DIST_DIR}-${cf}dx"
456 done
457 enabled debug_libs && DIST_DIR="${DIST_DIR}-debug"
458 enabled codec_srcs && DIST_DIR="${DIST_DIR}-src"
459 ! enabled postproc && ! enabled vp9_postproc && DIST_DIR="${DIST_DIR}-nopost"
460 ! enabled multithread && DIST_DIR="${DIST_DIR}-nomt"
461 ! enabled install_docs && DIST_DIR="${DIST_DIR}-nodocs"
462 DIST_DIR="${DIST_DIR}-${tgt_isa}-${tgt_os}"
463 case "${tgt_os}" in
464 win*) enabled static_msvcrt && DIST_DIR="${DIST_DIR}mt" || DIST_DIR="${DIST_DIR}md"
465 DIST_DIR="${DIST_DIR}-${tgt_cc}"
467 esac
468 if [ -f "${source_path}/build/make/version.sh" ]; then
469 ver=`"$source_path/build/make/version.sh" --bare "$source_path"`
470 DIST_DIR="${DIST_DIR}-${ver}"
471 VERSION_STRING=${ver}
472 ver=${ver%%-*}
473 VERSION_PATCH=${ver##*.}
474 ver=${ver%.*}
475 VERSION_MINOR=${ver##*.}
476 ver=${ver#v}
477 VERSION_MAJOR=${ver%.*}
479 enabled child || cat <<EOF >> config.mk
481 PREFIX=${prefix}
482 ifeq (\$(MAKECMDGOALS),dist)
483 DIST_DIR?=${DIST_DIR}
484 else
485 DIST_DIR?=\$(DESTDIR)${prefix}
486 endif
487 LIBSUBDIR=${libdir##${prefix}/}
489 VERSION_STRING=${VERSION_STRING}
491 VERSION_MAJOR=${VERSION_MAJOR}
492 VERSION_MINOR=${VERSION_MINOR}
493 VERSION_PATCH=${VERSION_PATCH}
495 CONFIGURE_ARGS=${CONFIGURE_ARGS}
497 enabled child || echo "CONFIGURE_ARGS?=${CONFIGURE_ARGS}" >> config.mk
500 # Write makefiles for all enabled targets
502 for tgt in libs examples docs solution; do
503 tgt_fn="$tgt-$toolchain.mk"
505 if enabled $tgt; then
506 echo "Creating makefiles for ${toolchain} ${tgt}"
507 write_common_target_config_mk $tgt_fn ${BUILD_PFX}vpx_config.h
508 #write_${tgt}_config
510 done
514 process_detect() {
515 if enabled shared; then
516 # Can only build shared libs on a subset of platforms. Doing this check
517 # here rather than at option parse time because the target auto-detect
518 # magic happens after the command line has been parsed.
519 if ! enabled linux && ! enabled os2; then
520 if enabled gnu; then
521 echo "--enable-shared is only supported on ELF; assuming this is OK"
522 else
523 die "--enable-shared only supported on ELF and OS/2 for now"
527 if [ -z "$CC" ] || enabled external_build; then
528 echo "Bypassing toolchain for environment detection."
529 enable_feature external_build
530 check_header() {
531 log fake_check_header "$@"
532 header=$1
533 shift
534 var=`echo $header | sed 's/[^A-Za-z0-9_]/_/g'`
535 disable_feature $var
536 # Headers common to all environments
537 case $header in
538 stdio.h)
539 true;
542 result=false
543 for d in "$@"; do
544 [ -f "${d##-I}/$header" ] && result=true && break
545 done
546 ${result:-true}
547 esac && enable_feature $var
549 # Specialize windows and POSIX environments.
550 case $toolchain in
551 *-win*-*)
552 # Don't check for any headers in Windows builds.
553 false
556 case $header in
557 pthread.h) true;;
558 unistd.h) true;;
559 *) false;;
560 esac && enable_feature $var
561 esac
562 enabled $var
564 check_ld() {
565 true
568 check_header stdio.h || die "Unable to invoke compiler: ${CC} ${CFLAGS}"
569 check_ld <<EOF || die "Toolchain is unable to link executables"
570 int main(void) {return 0;}
572 # check system headers
573 check_header pthread.h
574 check_header unistd.h # for sysconf(3) and friends.
576 check_header vpx/vpx_integer.h -I${source_path} && enable_feature vpx_ports
579 process_toolchain() {
580 process_common_toolchain
582 # Enable some useful compiler flags
583 if enabled gcc; then
584 enabled werror && check_add_cflags -Werror
585 check_add_cflags -Wall
586 check_add_cflags -Wdeclaration-after-statement
587 check_add_cflags -Wdisabled-optimization
588 check_add_cflags -Wpointer-arith
589 check_add_cflags -Wtype-limits
590 check_add_cflags -Wcast-qual
591 check_add_cflags -Wvla
592 check_add_cflags -Wimplicit-function-declaration
593 check_add_cflags -Wuninitialized
594 check_add_cflags -Wunused-variable
595 case ${CC} in
596 *clang*)
597 # libvpx and/or clang have issues with aliasing:
598 # https://code.google.com/p/webm/issues/detail?id=603
599 # work around them until they are fixed
600 check_add_cflags -fno-strict-aliasing
602 *) check_add_cflags -Wunused-but-set-variable ;;
603 esac
604 if enabled mips || [ -z "${INLINE}" ]; then
605 enabled extra_warnings || check_add_cflags -Wno-unused-function
606 else
607 check_add_cflags -Wunused-function
611 if enabled icc; then
612 enabled werror && check_add_cflags -Werror
613 check_add_cflags -Wall
614 check_add_cflags -Wpointer-arith
616 # ICC has a number of floating point optimizations that we disable
617 # in favor of deterministic output WRT to other compilers
618 add_cflags -fp-model precise
621 # Enable extra, harmless warnings. These might provide additional insight
622 # to what the compiler is doing and why, but in general, but they shouldn't
623 # be treated as fatal, even if we're treating warnings as errors.
624 GCC_EXTRA_WARNINGS="
625 -Wdisabled-optimization
626 -Winline
628 enabled gcc && EXTRA_WARNINGS="${GCC_EXTRA_WARNINGS}"
629 RVCT_EXTRA_WARNINGS="
630 --remarks
632 enabled rvct && EXTRA_WARNINGS="${RVCT_EXTRA_WARNINGS}"
633 if enabled extra_warnings; then
634 for w in ${EXTRA_WARNINGS}; do
635 check_add_cflags ${w}
636 enabled gcc && enabled werror && check_add_cflags -Wno-error=${w}
637 done
640 # ccache only really works on gcc toolchains
641 enabled gcc || soft_disable ccache
642 if enabled mips; then
643 enable_feature dequant_tokens
644 enable_feature dc_recon
647 if enabled internal_stats; then
648 enable_feature vp9_postproc
651 # Enable the postbuild target if building for visual studio.
652 case "$tgt_cc" in
653 vs*) enable_feature msvs
654 enable_feature solution
655 vs_version=${tgt_cc##vs}
656 case $vs_version in
657 [789])
658 VCPROJ_SFX=vcproj
659 gen_vcproj_cmd=${source_path}/build/make/gen_msvs_proj.sh
661 10|11|12|14)
662 VCPROJ_SFX=vcxproj
663 gen_vcproj_cmd=${source_path}/build/make/gen_msvs_vcxproj.sh
664 enabled werror && gen_vcproj_cmd="${gen_vcproj_cmd} --enable-werror"
666 esac
667 all_targets="${all_targets} solution"
668 INLINE="__forceinline"
670 esac
672 # Other toolchain specific defaults
673 case $toolchain in x86*) soft_enable postproc;; esac
675 if enabled postproc_visualizer; then
676 enabled postproc || die "postproc_visualizer requires postproc to be enabled"
679 # Enable unit tests by default if we have a working C++ compiler.
680 case "$toolchain" in
681 *-vs*)
682 soft_enable unit_tests
683 soft_enable webm_io
684 soft_enable libyuv
686 *-android-*)
687 soft_enable webm_io
688 soft_enable libyuv
689 # GTestLog must be modified to use Android logging utilities.
691 *-darwin-*)
692 # iOS/ARM builds do not work with gtest. This does not match
693 # x86 targets.
695 *-iphonesimulator-*)
696 soft_enable webm_io
697 soft_enable libyuv
699 *-win*)
700 # Some mingw toolchains don't have pthread available by default.
701 # Treat these more like visual studio where threading in gtest
702 # would be disabled for the same reason.
703 check_cxx "$@" <<EOF && soft_enable unit_tests
704 int z;
706 check_cxx "$@" <<EOF && soft_enable webm_io
707 int z;
709 check_cxx "$@" <<EOF && soft_enable libyuv
710 int z;
714 enabled pthread_h && check_cxx "$@" <<EOF && soft_enable unit_tests
715 int z;
717 check_cxx "$@" <<EOF && soft_enable webm_io
718 int z;
720 check_cxx "$@" <<EOF && soft_enable libyuv
721 int z;
724 esac
725 # libwebm needs to be linked with C++ standard library
726 enabled webm_io && LD=${CXX}
728 # append any user defined extra cflags
729 if [ -n "${extra_cflags}" ] ; then
730 check_add_cflags ${extra_cflags} || \
731 die "Requested extra CFLAGS '${extra_cflags}' not supported by compiler"
733 if [ -n "${extra_cxxflags}" ]; then
734 check_add_cxxflags ${extra_cxxflags} || \
735 die "Requested extra CXXFLAGS '${extra_cxxflags}' not supported by compiler"
741 ## END APPLICATION SPECIFIC CONFIGURATION
743 CONFIGURE_ARGS="$@"
744 process "$@"
745 print_webm_license ${BUILD_PFX}vpx_config.c "/*" " */"
746 cat <<EOF >> ${BUILD_PFX}vpx_config.c
747 #include "vpx/vpx_codec.h"
748 static const char* const cfg = "$CONFIGURE_ARGS";
749 const char *vpx_codec_build_config(void) {return cfg;}