config_query_option  JACK_OSS                         \
                     "Enable OSS driver support?"  y  \
                     "--enable-oss"                   \
                     "--disable-oss"                  &&

# Old query & var name for dynsimd was misleading
if [[ $MIXSSE ]]; then
  local JACK_SIMD="$MIXSSE"  &&
  persistent_remove MIXSSE
fi  &&
config_query_option  JACK_SIMD                            \
                     "Enable dynamic SIMD selection?"  n  \
                     "--enable-dynsimd"                   \
                     "--disable-dynsimd"                  &&

config_query_option  JACK_SHM                           \
                     "Use POSIX shared memory API?"  n  \
                     "--enable-posix-shm"               \
                     "--disable-posix-shm"              &&

config_query_option  JACK_RESIZE                           \
                     "Enable buffer resizing feature?"  n  \
                     "--enable-resize"                     \
                     "--disable-resize"                    &&

config_query_option  JACK_OPTIMIZE                                      \
                     "Ask the compiler for its best optimizations?"  n  \
                     "--enable-optimize"                                \
                     "--disable-optimize"                               &&

if [[ $JACK_VCS != y ]]
then
  config_query  JACK_TIME                                              \
                "Apply time patch (required by jackmidi_alsaseq)?"  n  
fi  &&

local  _DEFTMP  &&
if [[ $JACK_SHM == "--enable-posix-shm" ]]
then
  _DEFTMP=/dev/shm
else
  _DEFTMP=/tmp
fi  &&

config_query_string  JACK_TMPDIR  "Input default JACK temp dir:"  $_DEFTMP
