config_query         QT_DOC     'install documents(very big)?' n           &&

config_query_option  QT_DEMO    'install demos?' n                         \
                                '-make'                                    \
                                '-nomake'                                  &&

config_query_option  QT_EXAMPLE 'install examples?' n                      \
                                '-make'                                    \
                                '-nomake'                                  &&

config_query_option  QT_TOOLS   'install tools?' y                         \
                                '-make'                                    \
                                '-nomake'                                  &&

config_query_option  QT_TRANS   'install translations?' n                  \
                                '-make'                                    \
                                '-nomake'                                  &&

config_query_option  QT_STL     'build STL support?' y                     \
                                '-stl'                                     \
                                '-no-stl'                                  &&

config_query_option  QT_QT3     'build qt3 support?' y                     \
                                '-qt3support'                              \
                                '-no-qt3support'                           &&

config_query_option  QT_DEBUG   'Compile with debugging symbols?'       n  \
                                '-debug'                                   \
                                '-no-separate-debug-info'                  &&

config_query_option  QT_NIS     'Enable Network Information Services?'  y  \
                                '-nis'                                     \
                                '-no-nis'                                  &&

config_query_option  QT_XRAMA   'Enable Xinerama support?'              n  \
                                '-xinerama'                                \
                                '-no-xinerama'                             &&

if list_find "$QT_GIF" "-qt-gif"; then
  list_remove "QT_GIF" "-qt-gif"
fi &&

config_query_option  QT_GIF     'Enable GIF support?'                   y  \
                                ''                                         \
                                '-no-gif'                                  &&

config_query_option  QT_EXCEPT  'Disable exception checking'            n  \
                                '-no-exceptions'                           \
                                '-exceptions'                              &&

config_query_option  QT_PCH     'Enable precompiled header support?'    y  \
                                '-pch'                                     \
                                '-no-pch'                                  &&

config_query_option  QT_WEBKIT  'Build the WebKit module?'  y  \
                                '-webkit'                      \
                                '-no-webkit' &&

if [[ $QT_WEBKIT == '-webkit' ]]; then
  message "${MESSAGE_COLOR}Note that HTML5 Video requires either"
  message "Multimedia support or Phonon to be built.${DEFAULT_COLOR}" 
  config_query       QT_WEBKIT_VIDEO 'Build Webkit with HTML5 video support?' y
fi &&

config_query_option  QT_MEDIA 'Build Multimedia support?' y \
                                '-multimedia' \
                                '-no-multimedia' &&

config_query_option  QT_GTK   'Build the GTK theme integration?' y \
                              '-gtkstyle' \
                              '-no-gtkstyle'  &&

config_query_option  QT_PHONON 'Build phonon backend?' n \
                               '-phonon -phonon-backend' \
                               '-no-phonon -no-phonon-backend' &&

config_query_option  QT_ACCESS 'Compile Accessibility support' n \
                                '-accessibility'  \
                                '-no-accessibility'
