depends  flex    &&

# Officially ZLib is optional, but we require it because some other
# optional extensions depend on it, and it"s omnipresent anyway.
depends  zlib  "--with-zlib --with-zlib-dir=/usr"  &&

case  "$PHP4_APACHE"  in
  handler)  depends  APACHE;;
  filter)   depends  APACHE2;;
esac  &&

optional_depends  C-CLIENT            \
                  "--with-imap"       \
                  "--without-imap"    \
                  "for IMAP support"  \
                  z-rejected          &&

optional_depends  MAIL-TRANSPORT-AGENT  \
                  ""                    \
                  ""                    \
                  "for SMTP support"    &&

optional_depends  bzip2                      \
                  "--with-bz2=/usr"          \
                  "--without-bz2"            \
                  "for compression support"  &&

optional_depends  aspell                    \
                  "--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  libmcal                         \
                  "--with-mcal=/usr"              \
                  "--without-mcal"                \
                  "for MCAL calendaring 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  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           \
                   --with-x-includes=/usr/X11/include  \
                   --with-x-libraries=/usr/X11/lib"    \
                  ""                                   \
                  "for XFree86 support"
