depends  autoconf   &&
depends  APACHE     &&
depends  CVS        &&
depends  libtool    &&
depends  flex       &&

optional_depends zlib                               \
                 '--with-zlib --with-zlib-dir=/usr' \
                 '--without-zlib'                   \
                 'for LZ compression support'       &&
optional_depends bzip2                     \
                 '--with-bz2=/usr'         \
                 '--without-bz2'           \
                 'for compression support' &&
optional_depends pspell                   \
                 '--with-pspell=/usr'     \
                 '--without-pspell'       \
                 'for spelling functions' &&
optional_depends mhash                        \
                 '--with-mhash=/usr'          \
                 '--without-mhash'            \
                 'for hash functions support' &&
optional_depends mcrypt               \
                 '--with-mcrypt=/usr' \
                 '--without-mcrypt'   \
                 'for crypto library' &&
optional_depends curl                                      \
                 '--with-curl=/usr'                        \
                 '--without-curl'                          \
                 'for transferring files using URL syntax' &&
optional_depends gmp                                   \
                 '--with-gmp=/usr'                     \
                 '--without-gmp'                       \
                 'GNU multi precision library support' &&
optional_depends openssl               \
                 '--with-openssl=/usr' \
                 '--without-openssl'   \
                 'for OpenSSL support' &&
optional_depends gettext                   \
                 '--with-gettext=/usr'     \
                 '--without-gettext'       \
                 'for GNU gettext support' &&
optional_depends pcre                     \
                 '--with-pcre=/usr'       \
                 '--without-pcre'         \
                 'for Perl regex support' &&
optional_depends postgresql                      \
                 '--with-pgsql=/usr'             \
                 '--without-pgsql'               \
                 'for native Postgresql support' &&
optional_depends mysql                      \
                 '--with-mysql=/usr'        \
                 '--without-mysql'          \
                 'for native MySQL support' &&
optional_depends gdbm                                           \
                 '--with-gdbm=/usr'                             \
                 '--without-gdbm'                               \
                 'database routines that use extensive hashing' &&
optional_depends mm                                             \
                 '--with-mm=/usr'                               \
                 '--without-mm'                                 \
                 'for sharing memory between related processes' &&
optional_depends openldap           \
                 '--with-ldap=/usr' \
                 '--without-ldap'   \
                 'for LDAP support' &&
optional_depends expat                                \
                 '--enable-xml --with-expat-dir=/usr' \
                 '--disable-xml'                      \
                 'for XML parsing'                    &&
optional_depends sablot                                  \
                 '--enable-xslt --with-xslt-sablot=/usr' \
                 '--disable-xslt'                        \
                 'for XSLT support'                      &&
optional_depends libxml2               \
                 '--with-dom=/usr'     \
                 '--without-dom'       \
                 'for DOM XML support' &&
optional_depends libxslt                                      \
                 '--with-dom-xslt=/usr --with-dom-exslt=/usr' \
                 '--without-dom-xslt --without-dom-exslt'     \
                 'for DOM XSLT support'                       &&
optional_depends t1lib                           \
                 '--with-t1lib=/usr/share/t1lib' \
                 '--without-tlib'                \
                 'for t1lib support'             &&
optional_depends jpeg                                      \
                 '--with-jpeg-dir=/usr'                    \
                 '--without-jpeg-dir'                      \
                 'for JPEG support (also required for GD)' &&
optional_depends libpng                                   \
                 '--with-png-dir=/usr'                    \
                 '--without-png-dir'                      \
                 'for PNG support (also required for GD)' &&
optional_depends gd                                                              \
                 '--with-gd --enable-gd-native-ttf --with-freetype-dir=/usr/lib' \
                 '--without-gd'                                                  \
                 'for on the fly graphics creation (GD support)'                 &&
optional_depends X11-LIBS                     \
                 '--with-xpm-dir=/usr/X11R6' \
                 ''                          \
                 'for XFree86 support'
                                                                                                                                   
#imap_ssl=$(spell_ok openssl && echo '--with-imap-ssl')
#optional_depends imap "--with-imap $imap_ssl" '--without-imap' 'for IMAP protocol support'
