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_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'                             &&

config_query_option  QT_GIF     'Enable GIF support?'                   y  \
                                '-qt-gif'                                  \
                                '-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'                                  &&

if [[ $QT_VER == 'snapshot' || $QT_VER == 'prerelease' ]]
then
  config_query_option  QT_WEBKIT  'Build the WebKit module?'  y  \
                                  '-webkit'                      \
                                  '-no-webkit'
fi  &&

# change the old options to the new, can be removed after a year --20080105
QT_DEMO="${QT_DEMO//demos/}" &&
QT_EXAMPLE="${QT_EXAMPLE//examples/}" &&
QT_TOOLS="${QT_TOOLS//tools/}" &&
QT_TRANS="${QT_TRANS//translations/}"
