Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 1 | Add config option --with-dev-dsp. |
| 2 | |
| 3 | Upstream-Status: Pending |
| 4 | |
| 5 | Signed-off-by: Zhang Xiao <xiao.zhang@windriver.com> |
| 6 | --- |
| 7 | --- a/configure.ac |
| 8 | +++ b/configure.ac |
| 9 | @@ -106,6 +106,16 @@ AC_ARG_WITH(python,[ --with-python[[=AR |
| 10 | fi |
| 11 | ]) |
| 12 | |
| 13 | +AC_ARG_WITH(dev-dsp,[ --with-dev-dsp enables dev/dsp for entropy producing. auto for auto-detecting dev/dep on host. [[default=no]]],[ |
| 14 | + if test "$withval" = yes; then |
| 15 | + AC_DEFINE([HAVE_DEV_DSP], 1) |
| 16 | + else |
| 17 | + if test "$withval" = auto; then |
| 18 | + ac_detect_dev_dsp=yes |
| 19 | + fi |
| 20 | + fi |
| 21 | + ],[ac_detect_dev_dsp=no]) |
| 22 | + |
| 23 | # Check for expert mode |
| 24 | if test "$ac_enable_expert_mode" = yes; then |
| 25 | BEE_EXPERT_MODE |
| 26 | @@ -464,7 +474,7 @@ linux*) |
| 27 | ac_cv_have_dev_dsp=no |
| 28 | fi |
| 29 | ]) |
| 30 | - if test "$ac_cv_have_dev_dsp" = yes; then |
| 31 | + if test "$ac_cv_have_dev_dsp" = yes && test "$ac_detect_dev_dsp" = yes; then |
| 32 | AC_DEFINE([HAVE_DEV_DSP], 1) |
| 33 | fi |
| 34 | ;; |